:root {
  color-scheme: dark;
  --page: #e7eaec;
  --page-ink: #1b2227;
  --device-metal: #aeb4b8;
  --device-edge: #6e7478;
  --screen-bg: #111417;
  --screen-surface: #1d2328;
  --screen-focus: #263746;
  --screen-text: #f4f7f8;
  --screen-muted: #a9b3ba;
  --blue: #3d8edb;
  --amber: #d99332;
  --green: #35a86b;
  --red: #d95757;
  --screen-brightness: 0.76;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--page-ink);
  background: var(--page);
}

button { font: inherit; }

.prototype-shell {
  width: min(980px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px) 36px;
}

.prototype-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: min(760px, 100%);
  margin: 0 auto 22px;
}

.prototype-kicker {
  margin: 0 0 5px;
  color: #5d6870;
  font-size: 11px;
  font-weight: 700;
}

.prototype-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.utility-button,
.simulator-actions button {
  border: 1px solid #a7afb4;
  border-radius: 5px;
  color: #263038;
  background: #f7f8f9;
  cursor: pointer;
}

.utility-button {
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
}

.utility-button:hover,
.simulator-actions button:hover { border-color: #4f728e; color: #234e70; }

.device-stage {
  display: grid;
  grid-template-columns: 330px 304px;
  align-items: center;
  justify-content: center;
  gap: 38px;
}

.device {
  position: relative;
  width: 330px;
  min-height: 665px;
  padding: 67px 38px 25px;
  border: 1px solid var(--device-edge);
  border-radius: 22px;
  background: var(--device-metal);
  box-shadow: inset 0 1px 0 #e4e7e9, inset 0 -3px 5px #7e8589, 0 14px 32px rgb(41 48 52 / 18%);
}

.lanyard-slot {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 54px;
  height: 16px;
  border: 2px solid #747b7f;
  border-radius: 8px;
  background: #34393c;
  transform: translateX(-50%);
  box-shadow: inset 0 2px 3px #131617;
}

.device-mark {
  position: absolute;
  top: 39px;
  left: 50%;
  color: #394044;
  font-size: 14px;
  font-weight: 800;
  transform: translateX(-50%);
}

.device-led {
  position: absolute;
  top: 46px;
  right: 49px;
  width: 7px;
  height: 7px;
  border: 1px solid #71787b;
  border-radius: 50%;
  background: #73797c;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.device-led.is-idle { background: var(--green); box-shadow: 0 0 5px rgb(53 168 107 / 75%); }
.device-led.is-translation { background: var(--blue); box-shadow: 0 0 6px rgb(61 142 219 / 85%); }
.device-led.is-qa { background: #6dc5d4; box-shadow: 0 0 6px rgb(109 197 212 / 85%); }
.device-led.is-candidate { background: var(--amber); box-shadow: 0 0 7px rgb(217 147 50 / 90%); }
.device-led.is-charging { background: var(--green); animation: led-pulse 1.3s ease-in-out infinite; }
.device-led.is-provisioning { background: #67bde0; animation: led-pulse 1s ease-in-out infinite; }
.device-led.is-ota { background: var(--blue); animation: led-pulse 650ms ease-in-out infinite; }
.device-led.is-error { background: var(--red); animation: led-error 400ms steps(2, end) infinite; }

.screen-bezel {
  width: 254px;
  height: 334px;
  border: 7px solid #292d2f;
  border-radius: 9px;
  background: #090b0d;
  box-shadow: inset 0 0 0 1px #060708, 0 1px 2px rgb(255 255 255 / 32%);
}

.screen {
  position: relative;
  width: 240px;
  height: 320px;
  overflow: hidden;
  color: var(--screen-text);
  background: var(--screen-bg);
  filter: brightness(var(--screen-brightness));
  outline: none;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  padding: 0 8px;
  color: #d8dde0;
  background: #0c0f11;
  font-size: 9px;
  font-weight: 600;
}

.status-time { font: inherit; }

.status-icons {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 6px;
}

.status-item {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  color: #f4f7f8;
  place-items: center;
}

.status-audio { width: 14px; height: 14px; }
.status-glyph { width: 13px; height: 13px; stroke-width: 2; }
.status-wifi { width: 18px; height: 14px; }

.status-wifi-icon {
  display: block;
  width: 18px;
  height: 14px;
}

.wifi-segment { opacity: .2; }
.wifi-segment.is-active { opacity: 1; }
.status-wifi.is-disconnected { color: var(--red); }
.wifi-slash { stroke: var(--red); stroke-width: 1.8; }

.service-error-dot {
  position: absolute;
  top: 0;
  right: -1px;
  width: 4px;
  height: 4px;
  border: 1px solid #0c0f11;
  border-radius: 50%;
  background: var(--red);
}

.status-battery {
  position: relative;
  display: block;
  width: 23px;
  height: 12px;
  color: #f4f7f8;
}

.battery-shell {
  position: absolute;
  top: 1px;
  left: 0;
  width: 20px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.battery-shell::after {
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
  content: "";
  opacity: .55;
}

.battery-level {
  position: absolute;
  inset: 1.5px;
  overflow: hidden;
  border-radius: 1px;
}

.battery-fill {
  display: block;
  height: 100%;
  min-width: 1px;
  border-radius: 1px;
  background: currentColor;
}

.status-battery.is-low { color: var(--red); }
.status-battery.is-charging { color: var(--green); }

.battery-bolt {
  position: absolute;
  top: 0;
  left: 6px;
  width: 8px;
  height: 9px;
  fill: #0c0f11;
}

.is-error { color: var(--red) !important; }
.is-success { color: var(--green) !important; }
.is-warning { color: var(--amber) !important; }

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 9px;
  border-bottom: 1px solid #2a3035;
  font-size: 14px;
  font-weight: 700;
}

.header-badge {
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
}

.header-badge { padding: 3px 5px; color: #111417; background: var(--amber); }

.view-content {
  height: 248px;
  padding: 8px;
  overflow: hidden auto;
  scrollbar-width: none;
}

.view-content::-webkit-scrollbar { display: none; }
.home-view { height: 282px; padding: 8px; }

.menu-list { display: grid; gap: 4px; }
.home-view .menu-list { gap: 5px; }

.menu-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 45px;
  padding: 5px 7px 5px 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--screen-text);
  background: var(--screen-surface);
}

.home-view .menu-row { min-height: 48px; }
.menu-list.is-compact .menu-row { min-height: 42px; }
.menu-row.is-focused { border-color: #4b789b; background: var(--screen-focus); }
.menu-row.is-editing { border-color: #6ba7d2; background: #29485f; }
.menu-row.is-disabled { color: #667078; }
.menu-row.is-disabled .menu-icon { color: #667078; background: #20272c; }

.menu-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 4px;
  color: #88b8de;
  background: #172c3c;
}

.menu-row.is-focused .menu-icon { color: #b9dcf7; background: #244963; }
.ui-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.menu-icon .ui-icon { width: 15px; height: 15px; }
.menu-copy { display: grid; min-width: 0; gap: 1px; }
.menu-label { overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.menu-meta { overflow: hidden; color: var(--screen-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.menu-value { max-width: 68px; overflow: hidden; color: #b8c3ca; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.chevron { margin-left: 3px; color: #82909a; font-size: 18px; line-height: 1; }
.check-mark { display: grid; margin-left: 4px; color: var(--green); }
.check-mark .ui-icon { width: 17px; height: 17px; }
.adjust-marker { min-width: 23px; color: #c9e8ff; font-size: 9px; font-weight: 800; text-align: right; }
.disabled-mark { min-width: 17px; color: #69757d; font-size: 10px; text-align: center; }

.section-note,
.inline-note {
  margin: 0 0 7px;
  color: var(--screen-muted);
  font-size: 9px;
  line-height: 1.45;
}

.inline-note { margin: 8px 2px 0; }

.info-list {
  border-top: 1px solid #2a3035;
  background: var(--screen-surface);
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #2a3035;
  font-size: 9px;
}

.info-row span { color: var(--screen-muted); }
.info-row strong { max-width: 132px; overflow-wrap: anywhere; text-align: right; font-size: 9px; }

.message-panel,
.process-panel {
  display: flex;
  min-height: 224px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 12px;
  text-align: center;
}

.message-icon,
.process-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid #35536a;
  border-radius: 6px;
  color: #93c4e9;
  background: #182a37;
}

.message-icon .ui-icon,
.process-icon .ui-icon { width: 22px; height: 22px; }
.message-panel h2,
.process-panel h2 { margin: 0 0 7px; font-size: 14px; }
.message-panel p,
.process-panel p { margin: 0; color: var(--screen-muted); font-size: 9px; line-height: 1.6; }

.decision-list {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #2b3237;
  gap: 6px 8px;
  text-align: left;
  font-size: 8px;
}

.decision-list span { color: var(--screen-muted); }
.decision-list strong { color: var(--amber); text-align: right; }

.progress-track,
.module-progress {
  overflow: hidden;
  width: 100%;
  height: 5px;
  border-radius: 2px;
  background: #30373c;
}

.progress-track { margin-top: 16px; }
.progress-track span,
.module-progress span { display: block; height: 100%; background: var(--blue); transition: width 220ms ease; }
.progress-value { margin-top: 7px; color: #b9dcf7; font-size: 10px; }
.provision-process.phase-success .process-icon { border-color: #397b59; color: #9be3b9; background: #173326; }
.provision-process.phase-failed .process-icon { border-color: #88494c; color: #ffc0c0; background: #3a2022; }

.ota-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  padding: 5px 7px;
  margin-bottom: 5px;
  border-left: 3px solid var(--blue);
  background: var(--screen-surface);
}

.ota-summary strong { font-size: 10px; }
.ota-summary span { max-width: 90px; color: var(--screen-muted); font-size: 7px; text-align: right; }
.ota-list { display: grid; gap: 5px; }

.ota-module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 7px;
  padding: 7px;
  border: 1px solid #2c3338;
  border-radius: 4px;
  background: #181d21;
}

.ota-module.is-active { border-color: #426f91; background: var(--screen-focus); }
.ota-module > div:first-child { display: grid; gap: 1px; }
.ota-module strong { font-size: 9px; }
.ota-module span { color: var(--screen-muted); font-size: 7px; }
.ota-state { align-self: center; color: #b9dcf7 !important; }
.module-progress { grid-column: 1 / -1; height: 3px; }

.session-view {
  position: relative;
  height: 282px;
  padding: 10px;
  overflow: hidden;
}

.session-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--screen-muted);
  font-size: 8px;
}

.session-kind { color: #b9dcf7; font-weight: 700; }
.session-center { display: flex; align-items: center; flex-direction: column; padding-top: 30px; text-align: center; }

.voice-orbit {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid #365974;
  border-radius: 50%;
  color: #a8d3f3;
  background: #172731;
}

.voice-orbit > span { display: grid; }
.voice-orbit .ui-icon { width: 27px; height: 27px; }
.voice-orbit.phase-listening { border-color: var(--green); animation: orbit-pulse 1.5s ease-in-out infinite; }
.voice-orbit.phase-playing { border-color: var(--blue); animation: orbit-pulse 750ms ease-in-out infinite; }
.voice-orbit.phase-error { border-color: var(--red); color: #ffc0c0; background: #3a2022; }
.session-center h1 { margin: 15px 0 4px; font-size: 17px; }
.session-center p { margin: 0; color: var(--screen-muted); font-size: 9px; }

.qa-session .voice-orbit.phase-connecting,
.qa-session .voice-orbit.phase-recognizing,
.qa-session .voice-orbit.phase-processing { border-color: #6dc5d4; }

.session-alert {
  position: absolute;
  right: 10px;
  bottom: 31px;
  left: 10px;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #7f4245;
  border-radius: 4px;
  color: #ffc0c0;
  background: #3a2022;
  font-size: 9px;
}

.session-alert > span { display: grid; }
.session-alert .ui-icon { width: 14px; height: 14px; }

.candidate-panel {
  position: absolute;
  right: 10px;
  bottom: 30px;
  left: 10px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 43px;
  padding: 5px 7px;
  border: 1px solid #8b642b;
  border-radius: 4px;
  color: #ffe4b4;
  background: #3d2e19;
}

.candidate-panel > span { display: grid; }
.candidate-panel div { display: grid; gap: 2px; }
.candidate-panel strong { font-size: 9px; }
.candidate-panel small { color: #ddc39b; font-size: 7px; }
.session-system { position: absolute; right: 10px; bottom: 9px; left: 10px; display: flex; align-items: center; gap: 5px; color: var(--screen-muted); font-size: 7px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.screen.is-sleeping,
.screen-off {
  width: 100%;
  height: 100%;
  background: #000;
}

.screen.is-sleeping { filter: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  padding: 16px;
  place-items: center;
  background: rgb(5 7 8 / 86%);
}

.device-modal {
  width: 100%;
  padding: 15px 12px 10px;
  border: 1px solid #555f66;
  border-radius: 6px;
  text-align: center;
  background: #20262b;
}

.device-modal > .ui-icon { width: 22px; height: 22px; color: var(--amber); }
.device-modal h2 { margin: 7px 0 5px; font-size: 13px; }
.device-modal p { margin: 0; color: var(--screen-muted); font-size: 8px; line-height: 1.5; }
.device-modal div { display: flex; justify-content: space-between; margin-top: 13px; padding-top: 8px; border-top: 1px solid #353d43; color: #bddcf3; font-size: 7px; }

.device-controls { position: relative; height: 235px; }

.dpad {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 145px;
  height: 145px;
  border: 1px solid #555b5e;
  border-radius: 50%;
  background: #383d40;
  transform: translateX(-50%);
  box-shadow: inset 0 1px 1px #697074, 0 2px 3px rgb(30 34 36 / 35%);
}

.dpad-key,
.action-key,
.volume-key,
.side-key {
  border: 0;
  color: #f2f3f3;
  background: transparent;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.dpad-key { position: absolute; display: grid; width: 44px; height: 36px; place-items: center; font-size: 13px; }
.dpad-up { top: 3px; left: 50px; }
.dpad-down { bottom: 3px; left: 50px; }
.dpad-left { top: 54px; left: 3px; }
.dpad-right { top: 54px; right: 3px; }
.dpad-ok { top: 44px; left: 44px; width: 56px; height: 56px; border: 1px solid #858b8e; border-radius: 50%; background: #4b5053; font-size: 15px; }

.dpad-key:hover,
.dpad-key.is-pressed { color: #fff; background: rgb(105 137 159 / 30%); }
.dpad-ok:hover,
.dpad-ok.is-pressed { background: #607282; }

.action-row { position: absolute; top: 170px; right: -11px; left: -11px; display: flex; justify-content: space-between; }
.action-key { display: flex; align-items: center; justify-content: center; width: 94px; height: 38px; gap: 7px; border: 1px solid #555b5e; border-radius: 6px; background: #3a3f42; box-shadow: inset 0 1px 1px #6c7377; font-size: 12px; }
.action-key:hover,
.action-key.is-pressed { background: #536776; }
.button-symbol { font-size: 17px; }

.volume-row { position: absolute; right: 3px; bottom: -6px; left: 3px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.volume-key { display: grid; width: 28px; height: 24px; place-items: center; border: 1px solid #6d7478; border-radius: 4px; background: #454b4e; font-size: 15px; }
.volume-key:hover,
.volume-key.is-pressed { background: #62727d; }
.volume-label { color: #535b5f; font-size: 8px; font-weight: 800; }

.power-key { position: absolute; top: 104px; right: -7px; width: 8px; height: 55px; border: 1px solid #555b5e; border-radius: 0 3px 3px 0; background: #747b7f; }
.power-icon { display: none; }

.prototype-notes {
  padding: 13px;
  border: 1px solid #c5cbce;
  border-radius: 6px;
  background: #f6f7f8;
}

.notes-heading { display: flex; align-items: center; gap: 8px; color: #1e2b34; font-size: 13px; font-weight: 700; }
.prototype-notes p { margin: 10px 0 0; color: #667178; font-size: 11px; line-height: 1.55; }
.prototype-notes strong { color: #28343b; }
.notes-divider { height: 1px; margin: 12px 0; background: #d6dadd; }
.notes-status { min-height: 19px; margin-top: 8px; color: #344956; font-size: 10px; font-weight: 650; line-height: 1.45; }
.simulator-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.simulator-actions button { min-height: 31px; padding: 4px 6px; font-size: 10px; }
.simulator-actions button.is-active { border-color: #b45555; color: #8f2f34; background: #fff1f1; }

.companion-column {
  display: grid;
  width: 304px;
  align-content: start;
  gap: 12px;
}

.phone-prototype { display: grid; place-items: center; }

.phone-shell {
  position: relative;
  width: 304px;
  height: 512px;
  padding: 17px 9px 16px;
  border: 1px solid #555d63;
  border-radius: 28px;
  background: #262b2f;
  box-shadow: inset 0 1px 1px #626a70, 0 7px 8px rgb(29 36 40 / 20%);
}

.phone-speaker {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: #0d1012;
  transform: translateX(-50%);
}

.phone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 76px;
  height: 3px;
  border-radius: 2px;
  background: #91979b;
  transform: translateX(-50%);
}

.phone-screen {
  display: grid;
  grid-template-rows: 20px 50px minmax(0, 1fr) 25px;
  width: 284px;
  height: 479px;
  overflow: hidden;
  border-radius: 16px;
  color: #16202a;
  background: #f3f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  color: #37434c;
  background: #fff;
  font-size: 8px;
  font-weight: 700;
}

.phone-app-header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #dce1e5;
  background: #fff;
}

.phone-system-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-bottom: 1px solid #dce1e5;
  background: #fff;
}

.phone-system-header > span {
  overflow: hidden;
  color: #236b9c;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-system-header > strong { font-size: 12px; text-align: center; }

.phone-brand {
  display: grid;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  color: #fff;
  background: #236b9c;
  font-size: 10px;
  font-weight: 800;
  place-items: center;
}

.phone-app-header > div { display: grid; min-width: 0; gap: 1px; }
.phone-app-header strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.phone-app-header small { color: #65727b; font-size: 7px; }
.phone-app-header select,
.phone-system-header select {
  max-width: 76px;
  height: 27px;
  padding: 0 5px;
  border: 1px solid #cfd6db;
  border-radius: 6px;
  color: #26343e;
  background: #f8fafb;
  font-size: 8px;
}

.phone-system-header select { justify-self: end; }

.phone-content { min-height: 0; overflow: hidden auto; scrollbar-width: none; }
.phone-content::-webkit-scrollbar { display: none; }
.phone-footer { display: grid; border-top: 1px solid #dce1e5; color: #68757e; background: #fff; font-size: 7px; place-items: center; }

.phone-state-panel {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px 22px;
  text-align: center;
}

.phone-state-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 13px;
  border-radius: 12px;
  color: #236b9c;
  background: #e2edf4;
  place-items: center;
}

.phone-state-icon .ui-icon { width: 24px; height: 24px; }
.phase-success .phone-state-icon { color: #217548; background: #dff1e7; }
.phase-error .phone-state-icon,
.phase-cancelled .phone-state-icon { color: #ad3f45; background: #f7e3e4; }
.phone-state-panel h2 { margin: 0 0 7px; font-size: 16px; }
.phone-state-panel p { max-width: 230px; margin: 0; color: #586771; font-size: 10px; line-height: 1.55; }

.phone-primary,
.phone-icon-button,
.phone-network-row,
.phone-field button {
  font: inherit;
  cursor: pointer;
}

.phone-primary {
  width: 100%;
  min-height: 37px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #236b9c;
  font-size: 10px;
  font-weight: 700;
}

.phone-primary:hover,
.phone-primary:focus-visible { background: #19577f; }
.phone-primary:active { transform: translateY(1px); }
.phone-primary:disabled { color: #78858d; background: #d7dee3; cursor: not-allowed; transform: none; }

.phone-network-view { padding: 15px 13px; }

.phone-portal-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.phone-portal-heading strong { font-size: 13px; }
.phone-portal-heading small { color: #68757e; font-size: 8px; }

.phone-config-form {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid #d4dce1;
  border-radius: 8px;
  background: #fff;
}

.phone-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.phone-section-heading > div { display: grid; gap: 2px; }
.phone-section-heading strong { font-size: 13px; }
.phone-section-heading small { color: #68757e; font-size: 8px; }
.phone-scan-heading { margin: 14px 0 7px; }
.phone-scan-state { min-height: 11px; margin: 0; color: #68757e; font-size: 7px; }
.phone-scan-state.is-error { color: #a8373d; }
.phone-icon-button {
  display: grid;
  width: 31px;
  height: 31px;
  border: 1px solid #cfd7dc;
  border-radius: 7px;
  color: #315d79;
  background: #fff;
  place-items: center;
}
.phone-icon-button .ui-icon { width: 14px; height: 14px; }
.phone-icon-button:disabled { color: #89959d; background: #eef1f3; cursor: not-allowed; }
.phone-icon-button.is-spinning .ui-icon { animation: phone-refresh 800ms linear infinite; }

.phone-network-list { border-top: 1px solid #d7dee3; background: #fff; }
.phone-list-label { margin: 12px 2px 5px; color: #62717b; font-size: 8px; font-weight: 700; }
.phone-system-wifi .phone-section-heading { margin-bottom: 3px; }
.phone-network-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid #d7dee3;
  color: #16202a;
  background: #fff;
  text-align: left;
}
.phone-network-row:not(.is-readonly):hover,
.phone-network-row:not(.is-readonly):focus-visible { background: #eaf2f7; }
.phone-network-row[disabled] { cursor: default; }
.phone-network-row.is-readonly { cursor: default; }
.phone-network-row.is-device-ap { background: #eaf3f8; }
.phone-network-row.is-connected .phone-network-icon { color: #217548; background: #dff1e7; }
.phone-network-row.is-connected .phone-network-meta small { color: #217548; font-weight: 700; }
.phone-network-icon { display: grid; width: 28px; height: 28px; border-radius: 7px; color: #236b9c; background: #e2edf4; place-items: center; }
.phone-network-icon .ui-icon { width: 15px; height: 15px; }
.phone-network-row > span:nth-child(2),
.phone-network-meta { display: grid; min-width: 0; gap: 2px; }
.phone-network-row strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.phone-network-row small { color: #68757e; font-size: 7px; }
.phone-network-meta { justify-items: end; text-align: right; }
.phone-network-meta b { color: #315d79; font-size: 8px; }
.phone-network-row.is-selected { background: #eaf3f8; box-shadow: inset 0 0 0 1px #8db8d4; }
.phone-field { display: grid; gap: 5px; color: #4c5b65; font-size: 9px; }
.phone-field > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phone-password-mode { color: #68757e; font-size: 7px; font-weight: 700; }
.phone-field > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.phone-field input { min-width: 0; height: 38px; padding: 0 9px; border: 1px solid #bcc8cf; border-radius: 7px 0 0 7px; color: #17232c; background: #fff; font-size: 10px; outline: none; }
.phone-field > input { width: 100%; border-radius: 7px; }
.phone-field input[readonly] { color: #34444e; background: #f3f6f8; cursor: text; }
.phone-field input:disabled { color: #8b969d; background: #eef1f3; cursor: not-allowed; }
.phone-field input:focus { border-color: #236b9c; box-shadow: inset 0 0 0 1px #236b9c; }
.phone-field button { padding: 0 8px; border: 1px solid #bcc8cf; border-left: 0; border-radius: 0 7px 7px 0; color: #315d79; background: #edf2f5; font-size: 8px; }
.phone-field button:disabled { color: #89959d; cursor: not-allowed; }
.phone-config-form .phone-primary { min-height: 34px; }
.phone-form-error { margin: -1px 0 0; color: #a8373d; font-size: 8px; }
.phone-inline-status { color: #315d79; font-size: 8px; }
.phone-inline-status.is-info { padding: 8px 10px; border-bottom: 1px solid #d7dee3; background: #eaf3f8; text-align: center; }

.phone-connect-progress { overflow: hidden; width: 100%; height: 5px; margin-top: 7px; border-radius: 3px; background: #d7e0e5; }
.phone-connect-progress span { display: block; width: 64%; height: 100%; border-radius: inherit; background: #236b9c; animation: phone-progress 1.1s ease-in-out infinite alternate; }
.phone-skeleton-list { display: grid; gap: 7px; }
.phone-skeleton-list span { height: 49px; border-radius: 7px; background: #dfe5e9; animation: phone-skeleton 900ms ease-in-out infinite alternate; }

.toast {
  position: fixed;
  z-index: 20;
  bottom: 22px;
  left: 50%;
  max-width: min(340px, calc(100vw - 32px));
  padding: 9px 13px;
  border: 1px solid #4c5c66;
  border-radius: 5px;
  color: #f4f7f8;
  background: #202a30;
  box-shadow: 0 8px 22px rgb(15 22 26 / 24%);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast[data-tone="success"] { border-color: #3f8260; }
.toast[data-tone="error"] { border-color: #a44e51; }

@keyframes led-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; box-shadow: 0 0 7px currentColor; } }
@keyframes led-error { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .2; } }
@keyframes orbit-pulse { 0%, 100% { transform: scale(.96); } 50% { transform: scale(1); } }
@keyframes phone-progress { from { transform: translateX(-38%); } to { transform: translateX(62%); } }
@keyframes phone-skeleton { from { opacity: .48; } to { opacity: .9; } }
@keyframes phone-refresh { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .prototype-shell { padding: 18px 12px 30px; }
  .prototype-header { width: 330px; max-width: 100%; margin-bottom: 16px; }
  .prototype-kicker { font-size: 9px; }
  .prototype-header h1 { font-size: 18px; }
  .device-stage { grid-template-columns: 1fr; gap: 18px; }
  .device { justify-self: center; }
  .companion-column { width: min(330px, calc(100vw - 24px)); justify-self: center; }
  .prototype-notes { width: 100%; }
}

@media (max-width: 370px) {
  .prototype-shell { padding-inline: 8px; }
  .device { transform: scale(.92); transform-origin: top center; margin-bottom: -53px; }
  .companion-column { width: min(330px, calc(100vw - 16px)); }
  .utility-button { padding: 0 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
