:root {
  --bg: #f3f4f4;
  --bg-soft: #eef0ef;
  --card: rgba(255, 255, 255, 0.88);
  --card-strong: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --text: #2b2f2f;
  --muted: #707578;
  --muted-soft: #98a0a4;
  --accent: #55d79a;
  --accent-deep: #1e9f68;
  --accent-ink: #145b40;
  --danger: #c15a5a;
  --shadow: 0 22px 40px rgba(52, 63, 59, 0.08);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --device-safe-top-guard: 0px;
  --device-toast-top-guard: 0px;
  --app-safe-top: env(safe-area-inset-top, 0px);
  --app-safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-safe-top-clearance: max(var(--app-safe-top), var(--device-safe-top-guard));
  --toast-safe-top-clearance: max(var(--app-safe-top), var(--device-toast-top-guard));
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "SF Pro Display", "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(141, 247, 190, 0.48), transparent 28%),
    linear-gradient(180deg, #e6f8ea 0%, #f3f4f4 18%, #f3f4f4 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mobile-shell {
  position: relative;
  width: min(100%, 460px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--app-safe-top-clearance) + 20px) 18px calc(var(--app-safe-bottom) + 110px);
}

.app-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -6%, rgba(147, 243, 188, 0.52), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 35%);
}

.screens {
  position: relative;
  z-index: 1;
}

.screen {
  display: none;
  gap: 16px;
}

.screen--active {
  display: grid;
}

body.subpage-open .tabbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
}

body.gallery-viewer-open {
  overflow: hidden;
}

body.gallery-viewer-open .tabbar {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px);
}

.screen-header,
.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.screen-header--wide {
  align-items: flex-start;
}

.screen-header--spacious {
  margin-top: 4px;
  margin-bottom: 24px;
}

.screen-header h1,
.subpage-header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 600;
}

.subpage-header {
  justify-content: space-between;
  margin-bottom: 18px;
}

.subpage-header h1 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}

.subpage-spacer {
  width: 38px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.top-action-row {
  display: flex;
  gap: 10px;
}

.icon-chip,
.back-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(41, 49, 46, 0.05);
  cursor: pointer;
}

.icon-chip svg,
.back-btn svg,
.menu-card svg,
.tab-btn svg,
.device-illustration svg,
.hero-icon-badge svg,
.empty-illustration svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.surface-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
  overflow: hidden;
}

.compact-hero {
  min-height: 160px;
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-weight: 600;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-icon-badge,
.device-illustration {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  border-radius: 32px;
  color: var(--accent-ink);
  background: radial-gradient(circle at 30% 20%, rgba(145, 244, 187, 0.95), rgba(255, 255, 255, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.device-illustration {
  width: 150px;
  height: 150px;
  border-radius: 42px;
}

.device-illustration svg {
  width: 74px;
  height: 74px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.status-badge.offline {
  color: #6b7280;
}

.status-badge.offline::before {
  background: #c6cbd1;
}

.button-row,
.button-column {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-column {
  flex-direction: column;
}

.button-row--tight {
  gap: 8px;
}

.primary-btn,
.secondary-btn,
.ghost-chip,
.text-btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  min-height: 48px;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
}

.primary-btn {
  background: linear-gradient(180deg, #ffffff, #f5fff8 12%, #effbf4 100%);
  border: 1px solid rgba(73, 177, 125, 0.32);
  color: var(--accent-ink);
  font-weight: 600;
}

.primary-btn--full {
  width: 100%;
}

.primary-btn:disabled {
  background: #e7e8e9;
  border-color: #e7e8e9;
  color: #a0a7ab;
  cursor: not-allowed;
}

.secondary-btn,
.link-btn {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--text);
}

.ghost-chip {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--text);
  min-height: 44px;
}

.text-btn {
  min-height: auto;
  padding: 0;
  color: var(--accent-ink);
  font-weight: 600;
}

.text-btn:disabled {
  cursor: not-allowed;
  color: rgba(105, 112, 108, 0.42);
}

.danger-soft {
  color: #8a3d3d;
}

.stack-form,
.stack-list,
.menu-stack {
  display: grid;
  gap: 12px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field,
.switch-field {
  display: grid;
  gap: 8px;
}

.field > span,
.switch-field > span {
  font-size: 14px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
}

.switch-field {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
}

.switch-field input,
.inline-check input {
  accent-color: var(--accent-deep);
  width: 22px;
  height: 22px;
}

.switch-field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 54px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #d8dddf;
  transition: background 0.2s ease;
}

.switch-field input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(33, 38, 36, 0.18);
  transition: transform 0.2s ease;
}

.switch-field input[type="checkbox"]:checked {
  background: linear-gradient(180deg, #4dd688, #2fc56f);
}

.switch-field input[type="checkbox"]:checked::after {
  transform: translateX(22px);
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inline-hint,
.subtle-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.campus-wifi-notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(158, 105, 32, 0.22);
  background: rgba(255, 248, 232, 0.78);
  color: #6d501f;
  font-size: 13px;
  line-height: 1.5;
}

.wifi-profile-list {
  display: grid;
  gap: 9px;
}

.wifi-profile-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
}

.wifi-profile-list__head span,
.wifi-profile-hint {
  color: var(--muted);
}

.wifi-profile-list__items {
  display: grid;
  gap: 8px;
}

.wifi-profile-item,
.wifi-profile-empty {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 249, 247, 0.76);
}

.wifi-profile-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  color: var(--text);
  text-align: left;
}

.wifi-profile-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.wifi-profile-item__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.wifi-profile-item strong,
.wifi-profile-item small,
.wifi-profile-item em,
.wifi-profile-empty strong,
.wifi-profile-empty span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wifi-profile-item strong,
.wifi-profile-empty strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.wifi-profile-item small,
.wifi-profile-empty span,
.wifi-profile-hint {
  font-size: 12px;
  line-height: 1.45;
}

.wifi-profile-item small {
  color: var(--muted);
}

.wifi-profile-item em {
  color: var(--accent-ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.wifi-profile-empty {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.wifi-profile-hint {
  margin: 0;
}

.result-card,
.info-card {
  gap: 14px;
}

.result-panel,
.mini-result {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--text);
  max-height: 260px;
  overflow: auto;
}

.result-panel--muted {
  color: #7f6e6e;
}

.mini-result {
  max-height: 130px;
  color: var(--muted);
}

.stats-grid,
.chip-grid,
.two-stack-grid,
.detail-split {
  display: grid;
  gap: 12px;
}

.stats-grid,
.two-stack-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-split {
  grid-template-columns: 1fr;
}

.mini-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 24px rgba(52, 63, 59, 0.04);
}

.mini-card__label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-card strong {
  font-size: 18px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  min-width: max-content;
}

.section-head h2,
.details-block h2,
.empty-state h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.details-block summary {
  list-style: none;
  cursor: pointer;
}

.details-block summary::-webkit-details-marker {
  display: none;
}

.prompt-list .list-item,
.task-card,
.feedback-history-item,
.list-item {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.task-card {
  cursor: pointer;
}

.task-card.active {
  border-color: rgba(76, 192, 130, 0.38);
  background: rgba(255, 255, 255, 0.9);
}

.card-title-row,
.list-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title-row h3,
.list-item h4,
.feedback-history-item h4 {
  margin: 0;
  font-size: 17px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 28px;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
  background: #eff7f2;
  color: #18885b;
}

.status-pill.done {
  background: #eff7f2;
  color: #18885b;
}

.status-pill.pending {
  background: #f4f4f5;
  color: #666f77;
}

.status-pill.failed {
  background: #f8ecec;
  color: var(--danger);
}

.wireless-step-board {
  display: grid;
  gap: 10px;
}

.simulator-card {
  margin-top: 14px;
}

.simulator-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.glasses-simulator {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #151816, #0c0f0d);
  border: 1px solid rgba(164, 182, 171, 0.18);
}

.glasses-simulator__top,
.glasses-simulator__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.glasses-simulator__top strong {
  color: #e8f1eb;
  font-size: 16px;
}

.glasses-simulator__screen {
  min-height: 240px;
  padding: 18px 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(217, 229, 218, 0.06), rgba(217, 229, 218, 0.02)),
    #0d100e;
  border: 1px solid rgba(196, 216, 202, 0.12);
  box-shadow: inset 0 0 0 1px rgba(184, 216, 191, 0.04);
}

.glasses-simulator__text {
  margin: 0;
  min-height: 204px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #eef6ef;
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: 0;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
}

.glasses-simulator__footer .subtle-text {
  color: #b8c3bc;
}

.wireless-step-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.wireless-step-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.wireless-image-preview {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.preview-image {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  object-fit: cover;
  margin: 12px 0;
}

.empty-state {
  place-items: center;
  text-align: center;
  min-height: 240px;
}

.empty-illustration {
  width: 92px;
  height: 92px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(224, 230, 233, 0.9));
  color: #b8c1c7;
  margin-bottom: 12px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(158, 245, 197, 0.9), rgba(255, 255, 255, 0.9));
  color: var(--accent-ink);
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 20px 34px rgba(77, 118, 97, 0.12);
}

.menu-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.menu-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 248, 247, 0.96);
}

.menu-card__content {
  display: grid;
  gap: 5px;
}

.menu-card__content strong {
  font-size: 16px;
}

.menu-card__content span {
  font-size: 13px;
  color: var(--muted);
}

.menu-card__chevron {
  color: #91979d;
}

.account-login-card {
  display: grid;
  gap: 14px;
}

.account-profile-card {
  display: grid;
  gap: 14px;
}

.auth-legal-copy {
  margin: 0;
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.6;
}

.auth-legal-copy a {
  color: var(--accent-deep);
  text-decoration: none;
}

.account-content-note {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(25, 122, 89, 0.16);
  border-radius: 12px;
  background: rgba(230, 243, 235, 0.62);
}

.account-content-note strong {
  color: var(--accent-ink);
  font-size: 14px;
}

.account-content-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

body.auth-bootstrap-pending .screens,
body.auth-bootstrap-pending .tabbar {
  opacity: 0;
  pointer-events: none;
}

body.auth-bootstrap-pending::after {
  content: "正在检查登录状态…";
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  background:
    radial-gradient(circle at 50% 18%, rgba(147, 243, 188, 0.45), transparent 28%),
    #f7f8f5;
}

body.native-account-required {
  overflow: auto;
}

body.native-account-required .tabbar,
body.native-account-required #page-account .subpage-header,
body.native-account-required #page-account > article:not(.account-login-card),
body.native-account-required #authSummary,
body.native-account-required #authLoggedInActions,
body.native-account-required #authWechatForm {
  display: none !important;
}

body.native-account-required .mobile-shell {
  padding-bottom: calc(var(--app-safe-bottom) + 28px);
}

body.native-account-required #page-account {
  min-height: calc(100dvh - var(--app-safe-top-clearance) - var(--app-safe-bottom) - 48px);
  align-content: center;
}

body.native-account-required .account-login-card {
  padding: 24px 20px;
  border-color: rgba(25, 122, 89, 0.14);
  box-shadow: 0 24px 70px rgba(28, 62, 47, 0.12);
}

body.native-account-required .account-login-card .section-head h2 {
  font-size: 27px;
  line-height: 1.18;
}

.account-device-card {
  display: grid;
  gap: 14px;
}

.account-device-card > .subtle-text {
  margin: -4px 0 0;
}

.auth-device-list {
  display: grid;
  gap: 8px;
}

.auth-device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.auth-device-row__body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.auth-device-row__body strong,
.auth-device-row__body span,
.auth-device-row__body code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-device-row__body span {
  color: var(--muted);
  font-size: 13px;
}

.auth-device-row__body code {
  color: var(--muted-soft);
  font-size: 11px;
}

.account-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.account-summary__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: rgba(85, 215, 154, 0.18);
  font-weight: 800;
  letter-spacing: 0;
}

.account-summary__body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-summary__body strong,
.account-summary__body span,
.account-summary__body code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary__body span {
  color: var(--muted);
  font-size: 13px;
  /* 说明文字允许折行：英文比中文长 1.5-2 倍，nowrap 会截成半句。
     上面那条 nowrap 只该管标识符（昵称、设备号），不该管这一行。 */
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.35;
}

.account-summary__body code {
  color: var(--muted-soft);
  font-size: 11px;
}

.segment-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.segment-btn {
  min-height: 48px;
  border-radius: 16px;
  color: var(--muted);
  cursor: pointer;
}

.segment-btn.active {
  background: var(--card-strong);
  color: var(--text);
  box-shadow: 0 10px 20px rgba(56, 62, 60, 0.08);
}

.media-picker {
  width: 100%;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.64);
  text-align: left;
  cursor: pointer;
}

.media-picker__plus {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #f7f8f8;
  font-size: 38px;
  color: #a7aeb2;
}

.attachment-list {
  display: grid;
  gap: 10px;
}

.context-preview {
  display: grid;
  gap: 10px;
}

.context-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.context-card strong,
.context-card span {
  display: block;
}

.context-card span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.attachment-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.attachment-chip__meta {
  min-width: 0;
}

.attachment-chip__meta strong,
.attachment-chip__meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip__meta span {
  font-size: 12px;
  color: var(--muted);
}

.attachment-chip__thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.info-table {
  display: grid;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row span {
  color: var(--muted);
}

.info-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.compact-table .info-row {
  padding: 12px 14px;
}

.feedback-remark-panel {
  display: grid;
  gap: 10px;
}

.feedback-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feedback-meta-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    #2a2b2a;
}

.feedback-meta-card--wide {
  padding: 14px;
}

.feedback-meta-card span,
.feedback-meta-card strong,
.feedback-meta-card em {
  display: block;
  min-width: 0;
}

.feedback-meta-card span {
  color: #9ca29f;
  font-size: 13px;
  line-height: 1.2;
}

.feedback-meta-card strong {
  margin-top: 8px;
  color: #f5f8f6;
  font-size: 18px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.feedback-meta-card em {
  margin-top: 5px;
  color: rgba(245, 248, 246, 0.62);
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.feedback-meta-code {
  font-size: 20px;
  letter-spacing: 0;
  word-break: break-all;
}

.feedback-delivery-status {
  margin: 0;
  padding: 10px 12px;
  color: #aeb6b1;
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid rgba(46, 224, 182, 0.16);
  border-radius: 8px;
  background: rgba(46, 224, 182, 0.08);
}

@media (max-width: 390px) {
  .feedback-meta-grid {
    grid-template-columns: 1fr;
  }
}

.details-block {
  display: grid;
  gap: 14px;
}

.link-btn {
  width: fit-content;
}

.toast {
  position: fixed;
  top: calc(var(--toast-safe-top-clearance) + 14px);
  left: 50%;
  z-index: 30;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: calc(100vw - 36px);
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(21, 87, 58, 0.92);
  color: #ecfff4;
  text-align: center;
  box-shadow: 0 20px 40px rgba(22, 32, 29, 0.2);
}

.toast.error {
  background: rgba(145, 54, 54, 0.94);
}

body.ota-update-open {
  overflow: hidden;
}

.ota-update-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
}

.ota-update-prompt {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 71;
  width: min(82vw, 462px);
  max-height: min(78vh, 560px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border-radius: 22px;
  background: #fbfbfa;
  color: #111615;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.ota-update-prompt__hero {
  display: grid;
  gap: 8px;
  padding: 34px 46px 24px;
  border-radius: 0 0 22px 22px;
  background:
    radial-gradient(circle at 20% 80%, rgba(226, 248, 255, 0.96), transparent 42%),
    linear-gradient(135deg, #dbfff2 0%, #a7ffc6 100%);
}

.ota-update-prompt__hero .eyebrow {
  margin: 0;
  color: rgba(17, 22, 21, 0.48);
}

.ota-update-prompt__hero h2 {
  margin: 0;
  font-size: clamp(31px, 8vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.ota-update-prompt__hero p {
  margin: 0;
  color: #1d2b28;
  font-size: 16px;
  line-height: 1.35;
}

.ota-update-notes {
  min-height: 0;
  margin: 0;
  padding: 28px 44px 8px 62px;
  overflow-y: auto;
  color: #2e3331;
  font-size: 16px;
  line-height: 1.55;
}

.ota-update-notes li {
  margin: 0 0 10px;
  padding-left: 2px;
}

.ota-update-notes li::marker {
  font-size: 20px;
  color: #111615;
}

.ota-update-current {
  margin: 0;
  padding: 0 44px 18px;
  color: #8a918e;
  font-size: 13px;
  line-height: 1.35;
}

.ota-update-progress {
  padding: 0 44px 18px;
}
.ota-update-progress__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.ota-update-progress__label {
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 600;
}
.ota-update-progress__percent {
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ota-update-progress__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(85, 215, 154, 0.16);
  overflow: hidden;
}
.ota-update-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width 0.6s ease;
}

.ota-update-prompt__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 46px 30px;
}

.ota-update-prompt__actions .primary-btn,
.ota-update-prompt__actions .secondary-btn {
  min-width: 0;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: clamp(16px, 4.2vw, 20px);
  font-weight: 500;
  white-space: nowrap;
}

.ota-update-prompt__actions .primary-btn {
  background: #2ed8b2;
  border: 0;
  color: #041513;
  box-shadow: none;
}

.ota-update-prompt__actions .secondary-btn {
  background: #fbfbfa;
  border: 1px solid rgba(17, 22, 21, 0.28);
  color: #8b908d;
  box-shadow: none;
}

.ota-update-prompt__actions button:disabled {
  opacity: 0.58;
  cursor: default;
}

@media (max-width: 390px) {
  .ota-update-prompt {
    width: calc(100vw - 42px);
  }

  .ota-update-prompt__hero {
    padding: 28px 30px 22px;
  }

  .ota-update-notes {
    padding: 24px 28px 8px 46px;
    font-size: 15px;
  }

  .ota-update-current {
    padding: 0 30px 16px;
  }

  .ota-update-prompt__actions {
    gap: 12px;
    padding: 0 30px 26px;
  }
}

.hidden,
[hidden] {
  display: none !important;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 25;
  transform: translateX(-50%);
  width: min(100%, 460px);
  padding: 10px 18px calc(var(--app-safe-bottom) + 14px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background: linear-gradient(180deg, rgba(243, 244, 244, 0), rgba(243, 244, 244, 0.88) 22%, rgba(243, 244, 244, 0.98) 100%);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.tab-btn {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #343838;
  padding: 8px 0 2px;
  border-radius: 18px;
  cursor: pointer;
}

.tab-btn span {
  font-size: 12px;
}

.tab-btn.active {
  color: var(--accent-ink);
}

.tab-btn.active svg {
  filter: drop-shadow(0 2px 10px rgba(85, 215, 154, 0.28));
}

@media (min-width: 860px) {
  body {
    background:
      radial-gradient(circle at 15% 10%, rgba(141, 247, 190, 0.44), transparent 20%),
      linear-gradient(180deg, #edf8ef 0%, #f4f5f5 100%);
  }

  .mobile-shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .simulator-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Sky One product polish: refined hardware-console skin. */
:root {
  --bg: #f7f8f5;
  --bg-soft: #ecefeb;
  --card: rgba(255, 255, 252, 0.94);
  --card-strong: #fffffc;
  --line: rgba(33, 42, 38, 0.1);
  --line-strong: rgba(33, 42, 38, 0.18);
  --text: #202724;
  --muted: #66706b;
  --muted-soft: #8d9691;
  --accent: #42c08a;
  --accent-deep: #197a59;
  --accent-ink: #114833;
  --signal: #bf8a2d;
  --danger: #b44d4b;
  --shadow: 0 14px 34px rgba(30, 43, 37, 0.09);
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.84), rgba(247, 248, 245, 0.96)),
    repeating-linear-gradient(90deg, rgba(29, 39, 35, 0.035) 0 1px, transparent 1px 18px),
    #f7f8f5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(24, 36, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 36, 31, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

button,
input,
textarea,
select {
  letter-spacing: 0;
}

button,
a,
input,
textarea,
select,
summary {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(66, 192, 138, 0.72);
  outline-offset: 3px;
}

.mobile-shell {
  width: min(100%, 438px);
  padding: calc(var(--app-safe-top-clearance) + 18px) 16px calc(var(--app-safe-bottom) + 104px);
}

.app-gradient {
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.7), transparent 36%),
    linear-gradient(90deg, rgba(66, 192, 138, 0.08), rgba(191, 138, 45, 0.05));
}

.screen {
  gap: 14px;
}

.screen-header,
.subpage-header {
  margin-bottom: 10px;
}

.screen-header h1,
.subpage-header h1 {
  letter-spacing: 0;
  font-weight: 700;
  color: #17211d;
}

.screen-header h1 {
  font-size: 32px;
}

.subpage-header h1 {
  font-size: 19px;
}

.eyebrow {
  margin-bottom: 7px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.surface-card {
  border-radius: 8px;
  padding: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(250, 252, 248, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.surface-card .surface-card {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.hero-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.home-hero {
  position: relative;
  min-height: 218px;
  border-color: rgba(25, 122, 89, 0.22);
  background:
    linear-gradient(140deg, rgba(255, 255, 252, 0.98) 0%, rgba(232, 244, 237, 0.96) 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px 14px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-deep), var(--signal));
  opacity: 0.82;
}

.hero-card h2 {
  letter-spacing: 0;
  font-size: 30px;
  line-height: 1.08;
  color: #17211d;
}

.hero-copy,
.subtle-text,
.inline-hint {
  line-height: 1.62;
}

.device-illustration,
.hero-icon-badge,
.empty-illustration,
.avatar-badge {
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(29, 122, 89, 0.14), rgba(255, 255, 252, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 252, 0.96), rgba(238, 242, 237, 0.96));
  border: 1px solid rgba(25, 122, 89, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 252, 0.8);
}

.device-illustration {
  width: 116px;
  height: 156px;
  align-self: stretch;
}

.device-illustration svg {
  width: 76px;
  height: 76px;
}

.icon-chip,
.back-btn,
.primary-btn,
.secondary-btn,
.ghost-chip,
.text-btn,
.link-btn,
.menu-card,
.menu-card__icon,
.mini-card,
.list-item,
.task-card,
.feedback-history-item,
.context-card,
.attachment-chip,
.media-picker,
.media-picker__plus,
.result-panel,
.mini-result,
.info-table,
.status-pill,
.status-badge,
.segment-control,
.segment-btn,
.wireless-step-item,
.glasses-simulator,
.glasses-simulator__screen,
.wireless-image-preview,
.preview-image,
.photo-preview-main,
.photo-preview-analysis,
.photo-preview-empty {
  border-radius: 8px;
}

.icon-chip,
.back-btn {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 252, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(31, 44, 38, 0.06);
}

.icon-chip:hover,
.back-btn:hover,
.secondary-btn:hover,
.ghost-chip:hover,
.menu-card:hover,
.tab-btn:hover {
  border-color: rgba(25, 122, 89, 0.26);
  box-shadow: 0 12px 28px rgba(31, 44, 38, 0.09);
}

.status-badge {
  padding: 7px 10px;
  background: rgba(230, 243, 235, 0.92);
  border: 1px solid rgba(25, 122, 89, 0.16);
}

.status-badge.offline {
  color: #69706c;
  background: rgba(235, 238, 234, 0.92);
}

.primary-btn,
.secondary-btn,
.ghost-chip,
.link-btn {
  min-height: 46px;
  font-weight: 700;
}

.primary-btn {
  color: #f8fff9;
  background: linear-gradient(180deg, #208c66, #176a50);
  border: 1px solid #176a50;
  box-shadow: 0 12px 24px rgba(23, 106, 80, 0.22);
}

.primary-btn:hover {
  background: linear-gradient(180deg, #239972, #176a50);
}

.primary-btn:disabled {
  background: #e3e7e1;
  border-color: #d9dfd8;
  color: #9aa39d;
  box-shadow: none;
}

.secondary-btn,
.link-btn,
.ghost-chip {
  background: rgba(255, 255, 252, 0.86);
  border: 1px solid var(--line);
}

/* 禁用态必须看得出来。此前 .secondary-btn 没有任何 :disabled 样式,禁用时和可点时
   长得一模一样 —— Focus 卡上的「结束 Focus」默认就是 disabled,用户(以及排查问题的
   我自己)都以为它可以点,点下去毫无反应也毫无提示,于是变成"按键没用"。
   .primary-btn 早就有这一条,补齐其余可点元素。 */
.secondary-btn:disabled,
.link-btn:disabled,
.ghost-chip:disabled {
  background: rgba(255, 255, 252, 0.42);
  border-color: rgba(0, 0, 0, 0.06);
  color: #a0a7ab;
  box-shadow: none;
  cursor: not-allowed;
}

.text-btn {
  color: var(--accent-deep);
}

.field input,
.field select,
.field textarea,
.switch-field {
  border-radius: 8px;
  background: rgba(255, 255, 252, 0.88);
  border-color: var(--line);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(25, 122, 89, 0.32);
  box-shadow: 0 0 0 4px rgba(66, 192, 138, 0.12);
}

.stats-grid {
  gap: 10px;
}

.mini-card {
  min-height: 88px;
  background: rgba(255, 255, 252, 0.86);
  border: 1px solid var(--line);
  box-shadow: none;
}

.mini-card__label {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}

.mini-card strong,
.info-row strong {
  font-variant-numeric: tabular-nums;
}

.section-head h2,
.details-block h2,
.empty-state h2 {
  letter-spacing: 0;
  font-size: 22px;
}

.prompt-list .list-item,
.task-card,
.feedback-history-item,
.list-item {
  background: rgba(255, 255, 252, 0.82);
  border-color: var(--line);
  box-shadow: none;
}

.task-card.active {
  border-color: rgba(25, 122, 89, 0.34);
  box-shadow: inset 4px 0 0 var(--accent-deep);
}

.status-pill {
  min-height: 27px;
  background: rgba(229, 241, 235, 0.92);
  color: var(--accent-deep);
}

.status-pill.pending {
  background: rgba(239, 240, 236, 0.92);
}

.status-pill.failed {
  background: rgba(247, 232, 229, 0.95);
}

.result-panel,
.mini-result {
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.88), rgba(247, 249, 245, 0.88));
  border-color: var(--line);
  font-family: "SF Mono", "Menlo", "PingFang SC", monospace;
  font-size: 13px;
}

.glasses-simulator {
  background: #111815;
  border-color: rgba(255, 255, 252, 0.12);
}

.glasses-simulator__screen {
  background:
    linear-gradient(180deg, rgba(66, 192, 138, 0.08), rgba(66, 192, 138, 0.02)),
    #0c110f;
}

.glasses-simulator__text {
  letter-spacing: 0;
}

.menu-card {
  border-color: var(--line);
  background: rgba(255, 255, 252, 0.9);
}

.menu-card__icon {
  background: rgba(230, 243, 235, 0.72);
  color: var(--accent-ink);
}

.avatar-badge {
  border-radius: 8px;
  color: var(--accent-ink);
}

.segment-control,
.media-picker,
.context-card,
.attachment-chip,
.info-table {
  background: rgba(255, 255, 252, 0.8);
}

.toast {
  border-radius: 8px;
  background: rgba(23, 106, 80, 0.95);
}

.tabbar {
  width: min(100%, 438px);
  gap: 8px;
  background: linear-gradient(180deg, rgba(247, 248, 245, 0), rgba(247, 248, 245, 0.94) 24%, #f7f8f5 100%);
}

.tab-btn {
  border-radius: 8px;
  color: #59615d;
}

.tab-btn.active {
  background: rgba(230, 243, 235, 0.78);
  color: var(--accent-ink);
}

.tab-btn.active svg {
  filter: none;
}

@media (min-width: 860px) {
  body {
    background:
      linear-gradient(180deg, rgba(255, 255, 252, 0.84), rgba(247, 248, 245, 0.96)),
      repeating-linear-gradient(90deg, rgba(29, 39, 35, 0.035) 0 1px, transparent 1px 18px),
      #f7f8f5;
  }
}

@media (max-width: 380px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .device-illustration {
    width: 100%;
    height: 96px;
    justify-self: stretch;
  }
}

/* Customer-first home: Rokid-style operation model, simplified for Sky One. */
.customer-home {
  gap: 14px;
}

.customer-home .home-topbar {
  align-items: center;
  margin: 0 0 4px;
}

.customer-home .home-topbar h1 {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: #252b28;
}

.customer-home .home-topbar .subtle-text {
  margin: 6px 0 0;
  font-size: 15px;
}

.customer-home .top-action-row {
  gap: 14px;
}

.customer-home .icon-chip {
  width: 46px;
  height: 46px;
  color: #262c29;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.customer-home .icon-chip svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.9;
}

.home-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.home-status-pill {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 8px 9px;
  text-align: left;
  color: #26302b;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(42, 54, 48, 0.08);
  box-shadow: 0 10px 24px rgba(31, 43, 37, 0.05);
  cursor: pointer;
}

.home-status-pill > span:not(.status-dot) {
  min-width: 0;
  overflow: hidden;
}

.home-status-pill strong,
.home-status-pill small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-status-pill strong {
  font-size: 11px;
  line-height: 1.1;
  font-weight: 850;
}

.home-status-pill small {
  margin-top: 4px;
  color: #727c76;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 700;
}

.product-readiness-card {
  display: grid;
  gap: 0;
  padding: 14px 15px;
  color: #26302b;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(42, 54, 48, 0.08);
  box-shadow: none;
}

.product-readiness-card--ok {
  background: rgba(239, 247, 242, 0.86);
  border-color: rgba(24, 136, 91, 0.14);
}

.product-readiness-card--warn,
.product-readiness-card--busy {
  background: rgba(255, 248, 232, 0.82);
  border-color: rgba(177, 122, 31, 0.16);
}

.product-readiness-card--fail {
  background: rgba(255, 241, 241, 0.84);
  border-color: rgba(161, 63, 63, 0.17);
}

.product-readiness-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.product-readiness-head > div {
  min-width: 0;
}

.product-readiness-head strong {
  display: block;
  color: #252d29;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-readiness-head p {
  margin: 5px 0 0;
  color: #66716a;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a7ada9;
  box-shadow: 0 0 0 4px rgba(167, 173, 169, 0.16);
}

.status-dot.ok {
  background: #25865f;
  box-shadow: 0 0 0 4px rgba(37, 134, 95, 0.15);
}

.status-dot.warn {
  background: #c78a2e;
  box-shadow: 0 0 0 4px rgba(199, 138, 46, 0.15);
}

.status-dot.pending {
  background: #9aa19d;
  box-shadow: 0 0 0 4px rgba(154, 161, 157, 0.15);
}

.status-dot.busy {
  background: #347ff3;
  box-shadow: 0 0 0 4px rgba(52, 127, 243, 0.14);
}

.status-dot.off {
  background: #a7ada9;
  box-shadow: 0 0 0 4px rgba(167, 173, 169, 0.16);
}

.status-dot.fail {
  background: #a04444;
  box-shadow: 0 0 0 4px rgba(160, 68, 68, 0.14);
}

.customer-device-stage {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 10px 8px 8px;
}

.skyone-glasses-visual {
  position: relative;
  width: min(78vw, 318px);
  height: 132px;
  margin: 0 0 8px;
}

.skyone-glasses-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 24px rgba(31, 39, 36, 0.18));
}

.customer-device-stage h2 {
  margin: 0 0 5px;
  font-size: 28px;
  line-height: 1.1;
  color: #8d9290;
  font-weight: 700;
}

.customer-connection-status {
  margin: 0;
  color: #347ff3;
  font-size: 17px;
  font-weight: 700;
}

.customer-connection-status.connecting::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  vertical-align: -2px;
  border: 3px solid rgba(52, 127, 243, 0.22);
  border-top-color: #347ff3;
  border-radius: 50%;
  animation: skyoneSpin 0.9s linear infinite;
}

.customer-connection-status.offline {
  color: #8d9290;
}

.customer-connection-status.offline::after {
  display: none;
}

.customer-device-copy {
  max-width: 300px;
  margin: 8px 0 12px;
  color: #7d8580;
  font-size: 14px;
  line-height: 1.45;
}

.customer-primary-action {
  width: min(100%, 310px);
  min-height: 48px;
}

.customer-secondary-action {
  width: min(100%, 310px);
  min-height: 44px;
  margin-top: 8px;
}

.customer-status-list {
  width: min(100%, 330px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.customer-status-list > .customer-status-item {
  padding: 13px 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(42, 54, 48, 0.06);
  box-shadow: 0 8px 20px rgba(31, 43, 37, 0.04);
}

.customer-status-list span {
  display: block;
  margin-bottom: 7px;
  color: #8b9390;
  font-size: 12px;
  font-weight: 700;
}

.customer-status-list strong {
  color: #2b312e;
  font-size: 17px;
}

.customer-privacy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.privacy-copy {
  min-width: 0;
}

.customer-privacy-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.customer-privacy-card .subtle-text {
  margin: 0;
}

.home-switch {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 40px;
  cursor: pointer;
}

.home-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.home-switch span {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: #d7ddd9;
  box-shadow: inset 0 0 0 1px rgba(42, 54, 48, 0.08);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.home-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(38, 48, 43, 0.2);
  transition: transform 0.18s ease;
}

.home-switch input:checked + span {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(20, 91, 64, 0.16);
}

.home-switch input:checked + span::after {
  transform: translateX(26px);
}

.home-switch input:focus-visible + span {
  outline: 3px solid rgba(52, 127, 243, 0.32);
  outline-offset: 3px;
}

.customer-api-card {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.customer-api-card .section-head {
  margin-bottom: 0;
}

.photo-preview-card {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.photo-preview-card .section-head {
  margin-bottom: 0;
}

.photo-preview-body {
  min-width: 0;
}

.photo-preview-main {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(42, 54, 48, 0.08);
  background: rgba(246, 249, 247, 0.72);
}

.photo-preview-main img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eef3ef;
}

.photo-preview-main figcaption {
  padding: 8px 10px 9px;
  color: #69746e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.photo-preview-analysis {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-top: 10px;
  padding: 12px;
  background: rgba(247, 249, 247, 0.78);
  border: 1px solid rgba(42, 54, 48, 0.08);
}

.photo-preview-analysis.ok {
  background: rgba(232, 245, 238, 0.62);
  border-color: rgba(37, 134, 95, 0.14);
}

.photo-preview-analysis.warn {
  background: rgba(250, 244, 233, 0.74);
  border-color: rgba(199, 138, 46, 0.16);
}

.photo-preview-analysis.fail {
  background: rgba(248, 235, 233, 0.74);
  border-color: rgba(160, 68, 68, 0.16);
}

.photo-preview-analysis__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.photo-preview-analysis__head small {
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 850;
}

.photo-preview-analysis > strong {
  min-width: 0;
  color: #252d29;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.photo-preview-analysis > p {
  min-width: 0;
  margin: 0;
  color: #68736d;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.photo-preview-analysis__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.photo-preview-analysis__meta span {
  max-width: 100%;
  padding: 5px 8px;
  color: #53615a;
  background: rgba(255, 255, 252, 0.76);
  border: 1px solid rgba(42, 54, 48, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.photo-preview-empty {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: #6d7771;
  background: rgba(246, 249, 247, 0.74);
  border: 1px dashed rgba(42, 54, 48, 0.14);
}

.photo-preview-empty svg {
  width: 30px;
  height: 30px;
  color: var(--accent-ink);
  stroke-width: 1.9;
}

.photo-preview-empty strong,
.photo-preview-empty span {
  display: block;
}

.photo-preview-empty strong {
  color: #29312d;
  font-size: 14px;
  font-weight: 850;
}

.photo-preview-empty span {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.home-feature-tabs {
  position: sticky;
  top: calc(var(--app-safe-top-clearance) + 6px);
  z-index: 12;
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  box-shadow: 0 12px 28px rgba(31, 43, 37, 0.08);
}

.home-feature-tabs .segment-btn {
  min-height: 42px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.focus-progress {
  display: grid;
  gap: 8px;
}

.focus-progress__track {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(37, 50, 43, 0.1);
}

.focus-progress__track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d8760, #77c895);
  transition: width 0.24s ease;
}

.focus-progress > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.focus-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.focus-health-grid div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 8px;
  background: rgba(246, 249, 247, 0.78);
  border: 1px solid rgba(42, 54, 48, 0.08);
}

.focus-health-grid span {
  color: #7d8783;
  font-size: 11px;
  font-weight: 800;
}

.focus-health-grid strong {
  color: #252d29;
  font-size: 14px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.focus-feedback-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.focus-feedback-row .secondary-btn {
  min-height: 40px;
  padding-inline: 10px;
  font-size: 12px;
}

.focus-judgment-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-judgment-policy span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #456155;
  background: rgba(239, 246, 242, 0.86);
  border: 1px solid rgba(42, 54, 48, 0.08);
  font-size: 12px;
  font-weight: 850;
}

.focus-event-list {
  display: grid;
  gap: 9px;
}

.focus-event-empty,
.focus-event-row {
  min-width: 0;
  border-radius: 8px;
  border: 1px solid rgba(42, 54, 48, 0.08);
  background: rgba(248, 250, 248, 0.82);
}

.focus-event-empty {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
}

.focus-event-empty strong,
.focus-event-row strong {
  color: #24302a;
  font-size: 14px;
  font-weight: 900;
}

.focus-event-empty span {
  color: #6f7c75;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.focus-event-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 13px;
}

.focus-event-row.warn {
  background: rgba(255, 249, 235, 0.86);
  border-color: rgba(177, 132, 52, 0.2);
}

.focus-event-row.fail {
  background: rgba(255, 244, 242, 0.9);
  border-color: rgba(152, 84, 72, 0.22);
}

.focus-event-row.busy,
.focus-event-row.pending {
  background: rgba(247, 248, 244, 0.9);
}

.focus-event-row > .status-dot {
  margin-top: 3px;
}

.focus-event-row div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.focus-event-row p {
  margin: 0;
  color: #65736c;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.focus-event-row small {
  color: #87908c;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.focus-reward-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 13px 14px;
  border-radius: 8px;
  color: #24302a;
  background:
    linear-gradient(135deg, rgba(235, 249, 241, 0.95), rgba(252, 248, 232, 0.82));
  border: 1px solid rgba(38, 130, 88, 0.14);
}

.focus-reward-hero div {
  display: grid;
  gap: 4px;
}

.focus-reward-hero span,
.focus-reward-hero small {
  color: #6e7a73;
  font-size: 12px;
  font-weight: 800;
}

.focus-reward-hero strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.focus-reward-hero em {
  align-self: end;
  color: var(--accent-ink);
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
}

.focus-level-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(37, 50, 43, 0.1);
}

.focus-level-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d8760, #d6b156);
  transition: width 0.24s ease;
}

.focus-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.focus-metric-grid div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(246, 249, 247, 0.78);
  border: 1px solid rgba(42, 54, 48, 0.08);
}

.focus-metric-grid span {
  color: #7d8783;
  font-size: 12px;
  font-weight: 800;
}

.focus-metric-grid strong {
  color: #252d29;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.focus-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--accent-ink);
  background: rgba(228, 246, 236, 0.82);
  border: 1px solid rgba(38, 130, 88, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.focus-reminder-policy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.focus-reminder-policy div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(248, 249, 246, 0.82);
  border: 1px solid rgba(42, 54, 48, 0.08);
}

.focus-reminder-policy strong {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #2d8760;
  font-size: 12px;
  font-weight: 900;
}

.focus-reminder-policy div:nth-child(2) strong {
  background: #b18434;
}

.focus-reminder-policy div:nth-child(3) strong {
  background: #985448;
}

.focus-reminder-policy span {
  min-width: 0;
  color: #6e7a73;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.focus-session-list {
  display: grid;
  gap: 8px;
}

.focus-session-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(42, 54, 48, 0.08);
}

.focus-session-row strong {
  color: #252d29;
  font-size: 14px;
}

.focus-session-row strong.perfect {
  color: var(--accent-ink);
}

.focus-session-row strong.completed {
  color: #745824;
}

.focus-session-row strong.ended {
  color: #7f625e;
}

.focus-session-row span {
  color: var(--muted);
  font-size: 12px;
}

.focus-session-row span:first-of-type {
  justify-self: end;
}

.focus-session-row span:last-of-type {
  grid-column: 1 / -1;
}

@media (max-width: 390px) {
  .focus-health-grid {
    grid-template-columns: 1fr;
  }
}

.customer-scan-list {
  width: min(100%, 330px);
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-launcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 2px 0 4px;
}

.home-app-tile {
  min-width: 0;
  min-height: 122px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 15px;
  text-align: left;
  color: #27302b;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(42, 54, 48, 0.08);
  box-shadow: 0 12px 26px rgba(31, 43, 37, 0.055);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-app-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(31, 43, 37, 0.08);
}

.home-app-tile:active {
  transform: translateY(1px);
}

.home-app-tile.active {
  border-color: rgba(38, 130, 88, 0.28);
  background: linear-gradient(180deg, rgba(236, 250, 242, 0.95), rgba(255, 255, 255, 0.88));
}

.home-app-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f6f52;
  background: rgba(226, 243, 235, 0.88);
}

.home-app-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
}

.home-app-icon--focus {
  color: #8a6828;
  background: rgba(248, 235, 198, 0.82);
}

.home-app-icon--status {
  color: #4b648a;
  background: rgba(224, 234, 247, 0.86);
}

.home-app-tile strong,
.home-app-tile small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-app-tile strong {
  font-size: 16px;
  line-height: 1.05;
  font-weight: 850;
}

.home-app-tile small {
  margin-top: 6px;
  color: #727c76;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

.customer-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-feature-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  align-items: start;
  width: 100%;
  padding: 18px;
  text-align: left;
  color: #272d2a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 54, 48, 0.06);
  box-shadow: 0 12px 28px rgba(31, 43, 37, 0.06);
  cursor: pointer;
}

.customer-feature-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(31, 43, 37, 0.09);
}

.feature-copy {
  display: grid;
  gap: 18px;
}

.feature-copy strong {
  font-size: 23px;
  line-height: 1.12;
}

.feature-copy small {
  color: #7e8581;
  font-size: 15px;
  line-height: 1.25;
}

.feature-icon,
.feature-svg {
  width: 48px;
  height: 48px;
  align-self: end;
  justify-self: end;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #197a59;
  background: linear-gradient(180deg, rgba(107, 219, 165, 0.52), rgba(255, 255, 255, 0.58));
  font-weight: 800;
}

.feature-svg {
  color: #5c96ed;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.customer-info-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.customer-info-strip > div,
.diagnostic-grid > div,
.customer-latest > article {
  padding: 15px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(42, 54, 48, 0.06);
  box-shadow: 0 8px 20px rgba(31, 43, 37, 0.04);
}

.customer-info-strip span,
.diagnostic-grid span {
  display: block;
  margin-bottom: 8px;
  color: #8b9390;
  font-weight: 700;
  font-size: 13px;
}

.customer-info-strip strong,
.diagnostic-grid strong {
  color: #2b312e;
  font-size: 18px;
}

.customer-diagnostics {
  padding: 0;
}

.customer-diagnostics summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #68716c;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(42, 54, 48, 0.12);
  cursor: pointer;
  font-weight: 700;
}

.customer-diagnostics__body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.diagnostic-device-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 54, 48, 0.06);
}

.customer-latest {
  display: grid;
  gap: 12px;
}

.customer-latest h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.customer-latest .mini-result {
  max-height: 108px;
}

.customer-privacy-note .subtle-text {
  margin-bottom: 0;
}

.customer-home .surface-card,
.customer-home .mini-card,
.customer-home .menu-card,
.customer-home .customer-feature-card,
.customer-home .home-status-pill,
.customer-home .home-app-tile,
.customer-home .home-app-icon,
.customer-home .customer-status-list > .customer-status-item,
.customer-home .customer-info-strip > div,
.customer-home .diagnostic-grid > div,
.customer-home .customer-latest > article,
.customer-home .diagnostic-device-list,
.customer-home .customer-diagnostics summary,
.customer-home .primary-btn,
.customer-home .secondary-btn,
.customer-home .ghost-chip,
.customer-home .status-pill,
.customer-home .status-badge {
  border-radius: 8px;
}

.status-overview-card {
  gap: 14px;
}

.status-overview-grid {
  display: grid;
  gap: 10px;
}

.status-overview-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(76px, auto);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 14px;
  background: rgba(247, 249, 247, 0.78);
  border: 1px solid rgba(42, 54, 48, 0.07);
}

.status-overview-item h4 {
  margin: 0;
  color: #252d29;
  font-size: 15px;
  line-height: 1.2;
}

.status-overview-item > div {
  min-width: 0;
}

.status-overview-item p {
  margin: 4px 0 0;
  color: #737d77;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.status-overview-item em {
  display: block;
  margin-top: 6px;
  color: #252d29;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.status-overview-item .status-pill {
  justify-self: end;
  max-width: min(156px, 34vw);
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: normal;
}

.upload-diagnostic-card {
  gap: 12px;
}

.upload-diagnostic-steps {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.upload-diagnostic-action {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  color: #27302b;
  background: rgba(239, 247, 242, 0.78);
  border: 1px solid rgba(24, 136, 91, 0.13);
}

.upload-diagnostic-action--warning {
  background: rgba(255, 248, 232, 0.78);
  border-color: rgba(177, 122, 31, 0.18);
}

.upload-diagnostic-action--danger {
  background: rgba(255, 241, 241, 0.82);
  border-color: rgba(161, 63, 63, 0.17);
}

.upload-diagnostic-action span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.upload-diagnostic-action--warning span {
  color: #8b651a;
}

.upload-diagnostic-action--danger span {
  color: #9e3d3d;
}

.upload-diagnostic-action strong {
  font-size: 15px;
  line-height: 1.25;
}

.upload-diagnostic-action p {
  margin: 0;
  color: #67716b;
  font-size: 12px;
  line-height: 1.4;
}

.upload-diagnostic-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 3px;
}

.upload-diagnostic-facts div {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(42, 54, 48, 0.06);
}

.upload-diagnostic-facts small,
.upload-diagnostic-facts b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-diagnostic-facts small {
  color: #7b857f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.upload-diagnostic-facts b {
  margin-top: 4px;
  color: #252d29;
  font-size: 12px;
  line-height: 1.2;
}

.upload-diagnostic-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 2px;
}

.upload-diagnostic-code code {
  display: block;
  min-width: 0;
  padding: 8px 9px;
  color: #58615b;
  background: rgba(255, 255, 255, 0.58);
  border: 1px dashed rgba(42, 54, 48, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-diagnostic-code .text-btn {
  justify-self: end;
  white-space: nowrap;
}

.upload-diagnostic-action em {
  color: #252d29;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.upload-diagnostic-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 13px;
  background: rgba(247, 249, 247, 0.78);
  border: 1px solid rgba(42, 54, 48, 0.07);
}

.upload-diagnostic-step strong,
.upload-diagnostic-step span {
  display: block;
  min-width: 0;
}

.upload-diagnostic-step strong {
  color: #252d29;
  font-size: 14px;
  line-height: 1.2;
}

.upload-diagnostic-step div > span {
  margin-top: 4px;
  color: #737d77;
  font-size: 12px;
  line-height: 1.35;
}

.upload-diagnostic-step .status-pill {
  justify-self: end;
  white-space: nowrap;
}

.upload-diagnostic-empty {
  display: grid;
  gap: 5px;
  padding: 14px;
  color: #737d77;
  background: rgba(247, 249, 247, 0.78);
  border: 1px dashed rgba(42, 54, 48, 0.15);
}

.upload-diagnostic-empty strong {
  color: #252d29;
  font-size: 14px;
}

.upload-diagnostic-empty span {
  font-size: 12px;
  line-height: 1.35;
}

.activity-timeline-card {
  gap: 12px;
}

.activity-timeline-list {
  display: grid;
  gap: 9px;
}

.activity-timeline-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px 13px;
  background: rgba(248, 249, 247, 0.8);
  border: 1px solid rgba(42, 54, 48, 0.07);
}

.activity-timeline-item--ok {
  background: rgba(239, 247, 242, 0.72);
  border-color: rgba(38, 130, 88, 0.13);
}

.activity-timeline-item--warn,
.activity-timeline-item--busy {
  background: rgba(255, 249, 235, 0.7);
  border-color: rgba(177, 122, 31, 0.14);
}

.activity-timeline-item--fail {
  background: rgba(255, 243, 241, 0.72);
  border-color: rgba(151, 72, 65, 0.16);
}

.activity-timeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.activity-timeline-row strong {
  min-width: 0;
  color: #252d29;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.activity-timeline-item p {
  margin: 5px 0 0;
  color: #69736d;
  font-size: 12px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.activity-timeline-item em {
  display: block;
  margin-top: 7px;
  color: #87918b;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.activity-timeline-meta,
.activity-timeline-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.activity-timeline-meta span,
.activity-timeline-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 7px;
  color: #54615a;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(42, 54, 48, 0.08);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.activity-timeline-steps span.done {
  color: #25704d;
  border-color: rgba(38, 130, 88, 0.16);
}

.activity-timeline-steps span.failed {
  color: #984d45;
  border-color: rgba(151, 72, 65, 0.18);
}

.activity-timeline-empty {
  display: grid;
  gap: 5px;
  padding: 14px;
  color: #737d77;
  background: rgba(247, 249, 247, 0.78);
  border: 1px dashed rgba(42, 54, 48, 0.15);
}

.activity-timeline-empty strong {
  color: #252d29;
  font-size: 14px;
}

.activity-timeline-empty span {
  font-size: 12px;
  line-height: 1.35;
}

.api-key-state-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 4px;
}

.api-key-state-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(64px, auto);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  background: rgba(247, 249, 247, 0.76);
  border: 1px solid rgba(42, 54, 48, 0.07);
}

.api-key-state-item strong,
.api-key-state-item small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.api-key-state-item strong {
  color: #252d29;
  font-size: 13px;
  line-height: 1.2;
}

.api-key-state-item small {
  margin-top: 3px;
  color: #737d77;
  font-size: 11px;
  line-height: 1.35;
}

.api-key-state-item em {
  justify-self: end;
  min-width: 0;
  max-width: min(132px, 30vw);
  color: #252d29;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: normal;
}

@media (max-width: 430px) {
  .status-overview-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .status-overview-item .status-pill {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  .api-key-state-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .api-key-state-item em {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }
}

@keyframes skyoneSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 380px) {
  .customer-home .home-topbar h1 {
    font-size: 38px;
  }

  .customer-feature-card {
    min-height: 122px;
    padding: 15px;
  }

  .feature-copy strong {
    font-size: 20px;
  }
}

.surface-card,
.primary-btn,
.secondary-btn,
.ghost-chip,
.text-btn,
.link-btn,
.icon-chip,
.back-btn,
.menu-card,
.menu-card__icon,
.mini-card,
.list-item,
.task-card,
.feedback-history-item,
.context-card,
.attachment-chip,
.media-picker,
.media-picker__plus,
.result-panel,
.mini-result,
.info-table,
.status-pill,
.status-badge,
.segment-control,
.segment-btn,
.home-status-pill,
.home-app-tile,
.home-app-icon,
.status-overview-item,
.wireless-step-item,
.wireless-image-preview,
.preview-image,
.field input,
.field select,
.field textarea,
.switch-field,
.customer-feature-card,
.customer-info-strip > div,
.diagnostic-grid > div,
.customer-latest > article,
.customer-diagnostics summary,
.diagnostic-device-list {
  border-radius: 8px;
}

/* NFR designer handoff: dark AR companion console. */
:root {
  --bg: #050606;
  --bg-soft: #0c0e0d;
  --card: rgba(31, 32, 31, 0.92);
  --card-strong: #242524;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f6f4;
  --muted: #9a9f9d;
  --muted-soft: #6f7472;
  --accent: #2ee0b6;
  --accent-deep: #28cfaa;
  --accent-ink: #06110f;
  --signal: #52b7ff;
  --danger: #ff515f;
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  --radius-xl: 18px;
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 88% 7%, rgba(46, 224, 182, 0.2), transparent 19%),
    radial-gradient(circle at 100% 13%, rgba(255, 88, 36, 0.2), transparent 15%),
    linear-gradient(180deg, #020303 0%, #080909 52%, #050606 100%);
}

body::before {
  opacity: 0.42;
  background:
    radial-gradient(ellipse at 102% 16%, rgba(88, 208, 255, 0.26), transparent 23%),
    repeating-radial-gradient(ellipse at 102% 15%, rgba(46, 180, 255, 0.13) 0 1px, transparent 1px 9px);
  background-repeat: no-repeat;
  background-size: 760px 520px, 760px 520px;
  background-position: calc(50% + 270px) 10px, calc(50% + 270px) 10px;
  -webkit-mask-image: linear-gradient(180deg, #000 0 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0 62%, transparent 100%);
}

.mobile-shell {
  width: min(100%, 430px);
  padding: calc(var(--app-safe-top-clearance) + 22px) 14px calc(var(--app-safe-bottom) + 108px);
}

.app-gradient {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    radial-gradient(circle at 86% 90%, rgba(46, 224, 182, 0.12), transparent 18%);
}

.screen {
  gap: 14px;
}

.screen-header,
.subpage-header,
.customer-home .home-topbar {
  position: relative;
  z-index: 2;
  margin-bottom: 4px;
}

.screen-header h1,
.subpage-header h1,
.customer-home .home-topbar h1 {
  color: #f8faf9;
  font-size: 32px;
  font-weight: 800;
}

.customer-home .home-topbar .subtle-text {
  display: none;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.subtle-text,
.inline-hint {
  color: var(--muted);
}

.surface-card,
.menu-card,
.prompt-list .list-item,
.task-card,
.feedback-history-item,
.list-item,
.wireless-step-item,
.mini-card,
.context-card,
.attachment-chip {
  color: var(--text);
  background: linear-gradient(180deg, rgba(36, 37, 36, 0.95), rgba(25, 26, 25, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.surface-card .surface-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.icon-chip,
.back-btn {
  color: #f2f5f3;
  background: rgba(34, 35, 34, 0.82);
  border: 1px solid var(--line);
  box-shadow: none;
}

.home-status-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 16px;
}

.home-status-pill {
  min-height: 56px;
  padding: 9px 10px;
  color: #f5f8f7;
  background: rgba(42, 43, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.home-status-pill:first-child {
  border-color: rgba(46, 224, 182, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(46, 224, 182, 0.18),
    0 0 26px rgba(46, 224, 182, 0.1);
}

.home-status-pill strong {
  color: #f6f8f7;
  font-size: 13px;
}

.home-status-pill small {
  color: #a4aaa7;
  font-size: 11px;
}

.status-dot {
  background: #777b79;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.05);
}

.status-dot.ok {
  background: #37ff2e;
  box-shadow: 0 0 0 5px rgba(55, 255, 46, 0.13);
}

.status-dot.busy {
  background: #31a8ff;
  box-shadow: 0 0 0 5px rgba(49, 168, 255, 0.14);
}

.status-dot.warn,
.status-dot.fail {
  background: #ff4a54;
  box-shadow: 0 0 0 5px rgba(255, 74, 84, 0.13);
}

.customer-device-stage {
  padding: 6px 4px 12px;
}

.skyone-glasses-visual {
  width: min(100%, 390px);
  height: 255px;
  margin: -6px 0 0;
}

.skyone-glasses-visual::after {
  content: "";
  position: absolute;
  inset: auto 18px 5px;
  height: 42px;
  background: radial-gradient(ellipse, rgba(46, 224, 182, 0.16), transparent 72%);
  filter: blur(8px);
}

.skyone-glasses-visual img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.62));
}

.customer-device-stage h2 {
  display: none;
}

.customer-connection-status {
  margin-top: 2px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.customer-connection-status.offline {
  color: #757a78;
}

.customer-device-copy {
  max-width: 340px;
  margin: 12px 0 22px;
  color: #8f9693;
  font-size: 14px;
}

.primary-btn,
.secondary-btn,
.ghost-chip,
.link-btn {
  border-radius: 999px;
  min-height: 50px;
  font-weight: 850;
}

.primary-btn {
  color: #071411;
  background: linear-gradient(180deg, #36e6bf, #27d8ad);
  border: 1px solid rgba(46, 224, 182, 0.72);
  box-shadow: 0 18px 30px rgba(46, 224, 182, 0.18);
}

.primary-btn:hover {
  background: linear-gradient(180deg, #45f0ca, #27d8ad);
}

.primary-btn:disabled {
  color: #707674;
  background: #2b2d2c;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.secondary-btn,
.link-btn,
.ghost-chip {
  color: #eff3f1;
  background: #292a29;
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.text-btn {
  color: var(--accent);
}

.customer-status-list {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(22, 23, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 26px 42px rgba(0, 0, 0, 0.26);
}

.customer-status-list > .customer-status-item,
.focus-metric-grid div,
.status-overview-item,
.info-table,
.photo-preview-main,
.photo-preview-analysis,
.photo-preview-empty,
.wifi-profile-item,
.wifi-profile-empty {
  color: var(--text);
  background: #2a2b2a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  box-shadow: none;
}

.customer-status-list span,
.focus-metric-grid span,
.info-row span,
.photo-preview-main figcaption,
.photo-preview-analysis > p,
.photo-preview-empty span,
.product-readiness-head p,
.status-overview-item p,
.status-overview-item em {
  color: #9ca29f;
}

.customer-status-list strong,
.focus-metric-grid strong,
.info-row strong,
.photo-preview-analysis > strong,
.photo-preview-empty strong,
.product-readiness-head strong,
.status-overview-item h4 {
  color: #f5f8f6;
}

.home-feature-tabs,
.segment-control {
  position: static;
  padding: 5px;
  border-radius: 999px;
  background: #232423;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.home-feature-tabs .segment-btn,
.segment-btn {
  color: #9aa09d;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.home-feature-tabs .segment-btn.active,
.segment-btn.active {
  color: #071411;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(46, 224, 182, 0.15);
}

.section-head h2,
.details-block h2,
.empty-state h2 {
  color: #f5f8f6;
  font-size: 20px;
}

.field input,
.field select,
.field textarea,
.switch-field,
.result-panel,
.mini-result {
  color: #eff3f1;
  background: #202120;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #676d6a;
}

.field > span,
.switch-field > span {
  color: #a2a8a5;
}

.result-panel,
.mini-result {
  font-family: "SF Mono", "Menlo", "PingFang SC", monospace;
}

.status-pill {
  color: #101615;
  background: var(--accent);
  border-radius: 999px;
}

.status-pill.pending {
  color: #d9dfdc;
  background: #343635;
}

.status-pill.failed {
  color: #ffecef;
  background: rgba(255, 81, 95, 0.24);
}

#page-gallery .screen-header {
  margin-bottom: 10px;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.gallery-photo-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  width: 100%;
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #151816;
  color: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.gallery-photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-photo-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.68));
  pointer-events: none;
}

.gallery-photo-card__meta {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  z-index: 1;
  min-width: 0;
  color: #fff;
}

.gallery-photo-card__meta strong,
.gallery-photo-card__meta span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-photo-card__meta strong {
  font-size: 12px;
  line-height: 1.15;
}

.gallery-photo-card__meta span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  line-height: 1.15;
}

.gallery-photo-viewer {
  position: fixed;
  inset: 0;
  left: 50%;
  z-index: 70;
  width: min(100%, 460px);
  transform: translateX(-50%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: calc(var(--app-safe-top-clearance) + 14px) 18px calc(var(--app-safe-bottom) + 18px);
  color: #f6faf8;
  background:
    radial-gradient(circle at 80% 6%, rgba(72, 199, 151, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(14, 18, 16, 0.98), rgba(2, 4, 4, 0.99));
}

.gallery-photo-viewer__topbar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
}

.gallery-photo-viewer__topbar .back-btn {
  color: #f6faf8;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.gallery-photo-viewer__topbar .eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
}

.gallery-photo-viewer__topbar h2 {
  margin: 0;
  color: #f6faf8;
  font-size: 22px;
  line-height: 1.1;
}

.gallery-photo-viewer__stage {
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-photo-viewer__stage img {
  width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: #050706;
}

.gallery-photo-viewer__footer {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.gallery-photo-viewer__footer p {
  margin: 0;
  min-width: 0;
  color: #9da7a2;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gallery-photo-viewer__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gallery-photo-viewer__actions:has(#galleryPhotoDeleteCancelBtn:not(.hidden)) {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.gallery-photo-viewer__actions .secondary-btn {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border-radius: 8px;
  color: #f3f7f5;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.11);
  font-weight: 800;
}

.gallery-photo-viewer__actions .secondary-btn svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.gallery-photo-viewer__actions .danger-soft {
  color: #ffdcdc;
  background: rgba(194, 64, 76, 0.2);
  border-color: rgba(255, 115, 125, 0.24);
}

.gallery-photo-viewer__actions .danger-soft.is-confirming {
  color: #2b080d;
  background: #ff8c95;
  border-color: #ffb2b8;
}

@media (min-width: 520px) {
  .gallery-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.empty-state {
  background:
    radial-gradient(circle at 50% 22%, rgba(46, 224, 182, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(36, 37, 36, 0.95), rgba(20, 21, 20, 0.96));
}

.empty-illustration,
.avatar-badge,
.menu-card__icon {
  color: var(--accent);
  background: #2a2b2a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.menu-stack {
  gap: 10px;
}

.menu-card {
  padding: 14px;
  border-radius: 12px;
}

.menu-card__content strong {
  color: #f4f7f5;
}

.menu-card__content span {
  color: #909794;
}

.tabbar {
  width: min(100%, 430px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 10px 20px calc(var(--app-safe-bottom) + 18px);
  background:
    linear-gradient(180deg, rgba(5, 6, 6, 0), rgba(5, 6, 6, 0.72) 18%),
    transparent;
}

.tabbar::before {
  content: "";
  position: absolute;
  inset: 8px 14px calc(var(--app-safe-bottom) + 12px);
  z-index: -1;
  border-radius: 999px;
  background: rgba(29, 30, 29, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

.tab-btn {
  min-width: 0;
  color: #a5aaa8;
  padding: 10px 0 7px;
  border-radius: 999px;
}

.tab-btn span {
  font-size: 12px;
  font-weight: 800;
}

.tab-btn.active {
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

.tab-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.tab-btn svg {
  width: 24px;
  height: 24px;
}

.tab-btn.active svg {
  filter: drop-shadow(0 0 12px rgba(46, 224, 182, 0.35));
}

.toast {
  color: #071411;
  background: rgba(46, 224, 182, 0.94);
}

.toast.error {
  color: #fff4f4;
  background: rgba(185, 46, 58, 0.95);
}

.product-readiness-card,
.product-readiness-card--ok,
.product-readiness-card--warn,
.product-readiness-card--busy,
.product-readiness-card--fail,
.focus-reward-hero,
.focus-event-empty,
.focus-event-row,
.focus-judgment-policy span,
.focus-badge,
.focus-reminder-policy div,
.focus-session-row {
  color: var(--text);
  background: #242624;
  border-color: rgba(255, 255, 255, 0.075);
}

.focus-progress__track,
.focus-level-progress {
  background: #343635;
}

.focus-progress__track span,
.focus-level-progress span {
  background: linear-gradient(90deg, var(--accent), #70f05d);
}

.campus-wifi-notice {
  color: #f1d7a5;
  background: rgba(124, 87, 24, 0.18);
  border-color: rgba(241, 193, 103, 0.18);
}

@media (max-width: 380px) {
  .home-status-strip {
    gap: 8px;
  }

  .home-status-pill {
    min-height: 52px;
    padding: 8px;
  }

  .home-status-pill strong {
    font-size: 12px;
  }

  .skyone-glasses-visual {
    height: 220px;
  }
}

/* Screenshot parity: connection controls, device status board, WiFi provisioning card. */
.customer-connection-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: 22px;
  margin: 18px 0 0;
}

.customer-connection-actions .primary-btn,
.customer-connection-actions .secondary-btn {
  width: 100%;
  min-height: 69px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 500;
}

.customer-connection-actions .secondary-btn {
  color: #f2f1ef;
  background: #292a29;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.customer-primary-action {
  min-width: 0;
}

.customer-secondary-action {
  margin-top: 0;
}

.customer-status-list {
  gap: 22px;
  margin-top: 58px;
  padding: 30px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(200, 225, 207, 0.12), transparent 28%),
    rgba(24, 25, 24, 0.94);
}

.customer-status-list > .customer-status-item {
  position: relative;
  min-height: 128px;
  padding: 22px 76px 20px 18px;
  overflow: hidden;
  border-radius: 16px;
  background: #2a2a29;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 22px rgba(0, 0, 0, 0.14);
}

.customer-status-list > .customer-status-item span {
  margin-bottom: 14px;
  color: #9c9b9d;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 500;
}

.customer-status-list > .customer-status-item strong {
  color: #ffffff;
  font-size: 23px;
  line-height: 1;
  font-weight: 650;
}

.customer-status-item::before,
.customer-status-item::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.customer-status-item--battery::before {
  right: 17px;
  top: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #2a2a29 0 50%, transparent 51%),
    conic-gradient(#37ff2e var(--battery-pct, 0%), transparent 0);
}

.customer-status-item--battery::after {
  content: attr(data-battery-label);
  right: 27px;
  top: 47px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
}

.customer-status-item--firmware::before {
  right: 23px;
  top: 28px;
  width: 36px;
  height: 54px;
  border: 3px solid #b5b5b5;
  border-radius: 8px;
  opacity: 0.96;
}

.customer-status-item--firmware::after {
  right: 33px;
  top: 45px;
  width: 17px;
  height: 23px;
  border-top: 3px solid #b5b5b5;
  border-bottom: 3px solid #b5b5b5;
  box-shadow: 0 18px 0 -8px #b5b5b5;
}

.customer-status-item--firmware span::after {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 8px;
  color: #ff4046;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.customer-status-item--camera::before {
  right: 29px;
  top: 46px;
  width: 36px;
  height: 36px;
  border: 3px solid var(--accent);
  border-radius: 7px;
}

.customer-status-item--camera::after {
  right: 14px;
  top: 49px;
  width: 22px;
  height: 30px;
  border: 3px solid var(--accent);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 78%);
}

.customer-status-item--display::before {
  right: 22px;
  top: 42px;
  width: 45px;
  height: 34px;
  border: 3px solid #6ac6ff;
  border-radius: 8px;
}

.customer-status-item--display::after {
  right: 36px;
  top: 68px;
  width: 17px;
  height: 18px;
  border-bottom: 3px solid #6ac6ff;
  box-shadow:
    -14px -12px 0 -6px #6ac6ff,
    0 -12px 0 -6px #6ac6ff,
    14px -12px 0 -6px #6ac6ff;
}

.wifi-provision-card {
  margin-top: 18px;
  padding: 20px 24px 30px;
  border-radius: 0;
  background: #262626;
  border-color: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.wifi-provision-card .section-head {
  position: relative;
  padding-bottom: 15px;
  margin: 0 0 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.wifi-provision-card .eyebrow {
  position: relative;
  margin-bottom: 28px;
  padding-left: 14px;
  color: #a5a3a4;
  font-size: 14px;
  font-weight: 800;
}

.wifi-provision-card .eyebrow::before,
.wifi-provision-card .field > span::before {
  content: "";
  position: absolute;
  left: 0;
  width: 7px;
  height: 18px;
  border-radius: 999px;
  background: #39ff2b;
}

.wifi-provision-card .eyebrow::before {
  top: -1px;
}

.wifi-provision-card .section-head h2 {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.24;
  font-weight: 800;
}

.wifi-provision-card > .subtle-text {
  margin: 0 0 38px;
  color: #9f9c9e;
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0.02em;
}

.wifi-provision-card .stack-form {
  gap: 24px;
}

.wifi-provision-card .field {
  position: relative;
  gap: 11px;
}

.wifi-provision-card .field > span {
  position: relative;
  padding-left: 18px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.wifi-provision-card .field > span::before {
  top: 7px;
  width: 6px;
  height: 6px;
}

.wifi-provision-card .field input,
.wifi-provision-card .field select {
  min-height: 58px;
  padding: 0 18px;
  color: #eee;
  background: #242424;
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 15px;
}

.wifi-provision-card .field input::placeholder {
  color: rgba(255, 255, 255, 0.13);
}

.wifi-provision-card .button-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.wifi-provision-card .wifi-submit-row {
  grid-template-columns: minmax(0, 1fr);
}

.wifi-provision-card .button-row .primary-btn,
.wifi-provision-card .button-row .secondary-btn {
  width: 100%;
  min-height: 53px;
  border-radius: 999px;
}

.wifi-provision-card #homeWifiForm .button-row .secondary-btn:first-child {
  color: #081410;
  background: var(--accent);
  border-color: var(--accent);
}

.wifi-provision-card #homeWifiStatus {
  margin: 1px 0 -3px;
  color: #a7a4a5;
  font-size: 14px;
  line-height: 1.45;
}

.wifi-provision-card .wifi-profile-list {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.wifi-provision-card .wifi-profile-list__head {
  color: #ffffff;
  font-size: 17px;
}

.wifi-provision-card .wifi-profile-list__head span {
  display: none;
}

.wifi-provision-card .wifi-profile-list__items {
  gap: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.wifi-provision-card .wifi-profile-item {
  min-height: 88px;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 0;
  background: #242424;
}

.wifi-provision-card .wifi-profile-item:last-child {
  border-bottom: 0;
}

.wifi-provision-card .wifi-profile-item__dot {
  background: #39ff2b;
}

.wifi-provision-card .wifi-profile-item strong {
  color: #ffffff;
  font-size: 16px;
}

.wifi-provision-card .wifi-profile-item small,
.wifi-provision-card .wifi-profile-hint {
  color: #989596;
}

.wifi-provision-card .wifi-profile-item em {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 430px) {
  .customer-connection-actions {
    gap: 12px;
  }

  .customer-connection-actions .primary-btn,
  .customer-connection-actions .secondary-btn {
    min-height: 58px;
    font-size: 19px;
  }

  .customer-status-list {
    gap: 12px;
    margin-top: 36px;
    padding: 18px;
  }

  .customer-status-list > .customer-status-item {
    min-height: 128px;
    padding: 22px 76px 20px 18px;
  }

  .customer-status-list > .customer-status-item span {
    font-size: 16px;
    line-height: 1.15;
  }

  .customer-status-list > .customer-status-item strong {
    font-size: 23px;
  }

  .customer-status-item--battery::before {
    right: 17px;
    top: 26px;
    width: 58px;
    height: 58px;
  }

  .customer-status-item--battery::after {
    right: 27px;
    top: 47px;
    font-size: 17px;
  }

  .customer-status-item--firmware::before {
    right: 23px;
    top: 28px;
    width: 36px;
    height: 54px;
    border-width: 3px;
  }

  .customer-status-item--firmware::after {
    right: 33px;
    top: 45px;
    width: 17px;
    height: 23px;
    border-top-width: 3px;
    border-bottom-width: 3px;
    box-shadow: 0 18px 0 -8px #b5b5b5;
  }

  .customer-status-item--firmware span::after {
    width: 22px;
    height: 22px;
    border-width: 2px;
    font-size: 15px;
  }

  .customer-status-item--camera::before {
    right: 29px;
    top: 46px;
    width: 36px;
    height: 36px;
    border-width: 3px;
  }

  .customer-status-item--camera::after {
    right: 14px;
    top: 49px;
    width: 22px;
    height: 30px;
    border-width: 3px;
    border-left: 0;
  }

  .customer-status-item--display::before {
    right: 22px;
    top: 42px;
    width: 45px;
    height: 34px;
    border-width: 3px;
  }

  .customer-status-item--display::after {
    right: 36px;
    top: 68px;
    width: 17px;
    height: 18px;
    border-bottom-width: 3px;
    box-shadow:
      -14px -12px 0 -6px #6ac6ff,
      0 -12px 0 -6px #6ac6ff,
      14px -12px 0 -6px #6ac6ff;
  }
}

/* Page 1 rebuild: match AR-首页.jpg as a focused first screen. */
body::before {
  display: none;
}

.customer-home {
  position: relative;
  min-height: calc(100vh - var(--app-safe-top-clearance) - var(--app-safe-bottom) - 130px);
  gap: 0;
  overflow: visible;
}

.customer-home::before {
  content: "";
  position: absolute;
  top: 36px;
  right: -35px;
  width: 320px;
  height: 150px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 100% 35%, rgba(255, 90, 36, 0.44), transparent 22%),
    radial-gradient(ellipse at 82% 30%, rgba(33, 197, 255, 0.42), transparent 28%),
    repeating-radial-gradient(ellipse at 100% 35%, rgba(75, 209, 255, 0.23) 0 1px, transparent 1px 8px);
  filter: blur(0.2px);
  opacity: 0.84;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 38%, #000 100%);
}

.customer-home > .home-feature-tabs,
.customer-home > .photo-preview-card,
.customer-home > .customer-api-card,
.customer-home > .upload-diagnostic-card,
.customer-home > .activity-timeline-card {
  display: none !important;
}

.customer-home .home-topbar {
  margin-top: 14px;
  margin-bottom: 24px;
}

.customer-home .home-topbar h1 {
  font-size: 62px;
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: 0;
}

.home-status-strip {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 42px;
}

.home-status-pill {
  grid-template-columns: 30px minmax(0, 1fr) 8px;
  gap: 5px;
  min-height: 52px;
  padding: 8px;
  border-radius: 999px;
  background: #2c2c2c;
  border-color: transparent;
}

.home-status-pill::after {
  content: "›";
  color: #898989;
  font-size: 23px;
  line-height: 1;
  font-weight: 300;
}

.home-status-pill--api::after {
  content: "⌄";
  font-size: 23px;
  transform: translateY(-2px);
}

.home-status-pill:first-child {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(46, 224, 182, 0.42);
}

.home-status-pill .status-dot {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3a3a3a;
  box-shadow: none;
}

.home-status-pill .status-dot::before,
.home-status-pill .status-dot::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-status-pill--ble .status-dot::before {
  left: 12px;
  top: 6px;
  width: 9px;
  height: 19px;
  border: 2px solid #2aa2ff;
  border-left: 0;
  transform: skewY(34deg);
}

.home-status-pill--ble .status-dot::after {
  left: 9px;
  top: 10px;
  width: 15px;
  height: 12px;
  border-left: 2px solid #2aa2ff;
  border-top: 2px solid #2aa2ff;
  transform: rotate(45deg);
}

.home-status-pill--wifi .status-dot::before {
  left: 7px;
  top: 10px;
  width: 18px;
  height: 14px;
  border-top: 3px solid #38ff29;
  border-radius: 50%;
}

.home-status-pill--wifi .status-dot::after {
  left: 13px;
  top: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38ff29;
  box-shadow: 0 -7px 0 -2px #38ff29;
}

.home-status-pill--api .status-dot::before {
  left: 7px;
  top: 7px;
  width: 16px;
  height: 16px;
  border: 2px solid #ff3d4b;
  border-radius: 50%;
}

.home-status-pill--api .status-dot::after {
  left: 13px;
  top: 10px;
  width: 4px;
  height: 15px;
  background:
    linear-gradient(#ff3d4b 0 38%, transparent 38% 55%, #ff3d4b 55% 100%);
}

.home-status-pill strong {
  font-size: 16px;
  line-height: 1.02;
  font-weight: 850;
}

.home-status-pill small {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 500;
  color: #a4a4a4;
}

.customer-device-stage {
  position: relative;
  z-index: 1;
  padding: 0;
}

.skyone-glasses-visual {
  width: calc(100% + 20px);
  height: 265px;
  margin: 0 -10px 20px;
  background: #030303;
}

.skyone-glasses-visual::after {
  display: none;
}

.skyone-glasses-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: none;
}

.customer-connection-status {
  margin: 0;
  color: var(--accent);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.customer-device-copy {
  max-width: 100%;
  margin: 14px 0 36px;
  color: #9f9f9f;
  font-size: 17px;
  line-height: 1.35;
}

.customer-connection-actions {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0;
}

.customer-connection-actions .primary-btn,
.customer-connection-actions .secondary-btn {
  min-height: 72px;
  font-size: 27px;
  font-weight: 400;
  box-shadow: none;
}

.customer-connection-actions .primary-btn {
  color: #081410;
  background: var(--accent);
  border-color: var(--accent);
}

.customer-connection-actions .secondary-btn {
  color: #f0eeee;
  background: #292929;
  border-color: rgba(255, 255, 255, 0.08);
}

.customer-status-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 33px;
  padding: 16px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(174, 222, 190, 0.15), transparent 24%),
    #171817;
  border: 0;
  box-shadow: none;
}

.customer-status-list > .customer-status-item {
  min-height: 100px;
  padding: 24px 88px 20px 22px;
  border-radius: 14px;
  background: #292929;
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.customer-status-list > .customer-status-item span {
  margin: 0 0 13px;
  color: #989898;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 400;
}

.customer-status-list > .customer-status-item strong {
  font-size: 24px;
  font-weight: 750;
}

.customer-status-item--battery::before {
  right: 28px;
  top: 20px;
  width: 62px;
  height: 62px;
}

.customer-status-item--battery::after {
  right: 39px;
  top: 41px;
  font-size: 19px;
}

.customer-status-item--firmware::before {
  right: 38px;
  top: 23px;
  width: 39px;
  height: 58px;
  border-width: 3px;
}

.customer-status-item--firmware::after {
  right: 49px;
  top: 42px;
  width: 18px;
  height: 24px;
  border-top-width: 3px;
  border-bottom-width: 3px;
}

.customer-status-item--camera::before {
  right: 50px;
  top: 44px;
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.customer-status-item--camera::after {
  right: 32px;
  top: 48px;
  width: 24px;
  height: 32px;
  border-width: 3px;
  border-left: 0;
}

.customer-status-item--display::before {
  right: 39px;
  top: 38px;
  width: 49px;
  height: 36px;
  border-width: 3px;
}

.customer-status-item--display::after {
  right: 53px;
  top: 66px;
  width: 20px;
}

.customer-scan-list {
  display: none !important;
}

.tabbar {
  width: min(100%, 430px);
  padding: 10px 24px calc(var(--app-safe-bottom) + 24px);
}

.tabbar::before {
  inset: 10px 24px calc(var(--app-safe-bottom) + 15px);
  background: #1b1b1b;
  border: 0;
  box-shadow: none;
}

.tab-btn {
  gap: 5px;
  color: #9b9b9b;
}

.tab-btn span {
  font-size: 18px;
  font-weight: 400;
}

.tab-btn svg {
  width: 30px;
  height: 30px;
}

.tab-btn.active {
  color: var(--accent);
}

@media (max-width: 390px) {
  .customer-home .home-topbar h1 {
    font-size: 54px;
  }

  .home-status-strip {
    gap: 9px;
  }

  .home-status-pill {
    padding: 7px 8px;
  }

  .home-status-pill strong {
    font-size: 18px;
  }

  .home-status-pill small {
    font-size: 14px;
  }

  .skyone-glasses-visual {
    height: 238px;
  }

  .customer-status-list > .customer-status-item {
    padding-right: 72px;
  }
}

/* Mobile ratio correction: keep the first screen usable in real iOS WebViews. */
.mobile-shell {
  max-width: 100vw;
  padding: calc(var(--app-safe-top-clearance) + 14px) 16px calc(var(--app-safe-bottom) + 92px);
}

.customer-home {
  min-height: auto;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.customer-home::before {
  top: 64px;
  right: -72px;
  width: 300px;
  height: 124px;
  opacity: 0.58;
}

.customer-home .home-topbar {
  margin-top: 8px;
  margin-bottom: 14px;
}

.customer-home .home-topbar h1 {
  font-size: clamp(28px, 8.2vw, 34px);
  line-height: 1.02;
  font-weight: 600;
  max-width: 100%;
}

.home-status-strip {
  gap: 8px;
  margin: 0 0 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-status-pill {
  grid-template-columns: 24px minmax(0, 1fr) 6px;
  gap: 5px;
  min-height: 44px;
  padding: 7px;
  border-radius: 12px;
}

.home-status-pill::after,
.home-status-pill--api::after {
  font-size: 17px;
}

.home-status-pill .status-dot {
  width: 24px;
  height: 24px;
}

.home-status-pill--ble .status-dot::before {
  left: 10px;
  top: 5px;
  width: 7px;
  height: 15px;
  border-width: 2px;
}

.home-status-pill--ble .status-dot::after {
  left: 7px;
  top: 8px;
  width: 12px;
  height: 10px;
  border-left-width: 2px;
  border-top-width: 2px;
}

.home-status-pill--wifi .status-dot::before {
  left: 5px;
  top: 8px;
  width: 15px;
  height: 12px;
}

.home-status-pill--wifi .status-dot::after {
  left: 10px;
  top: 18px;
  width: 5px;
  height: 5px;
}

.home-status-pill--api .status-dot::before {
  left: 5px;
  top: 5px;
  width: 14px;
  height: 14px;
}

.home-status-pill--api .status-dot::after {
  left: 10px;
  top: 8px;
  width: 4px;
  height: 12px;
}

.home-status-pill strong {
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.05;
  white-space: nowrap;
}

.home-status-pill small {
  margin-top: 3px;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.05;
  white-space: nowrap;
}

.customer-device-stage {
  padding: 0;
}

.skyone-glasses-visual {
  width: 100%;
  height: clamp(146px, 42vw, 176px);
  margin: 0 0 16px;
}

.customer-connection-status {
  font-size: clamp(16px, 4.8vw, 20px);
  line-height: 1.18;
  max-width: 100%;
}

.customer-device-copy {
  max-width: 310px;
  margin: 8px auto 18px;
  font-size: clamp(12px, 3.55vw, 14px);
  line-height: 1.38;
}

.customer-connection-actions {
  width: min(100%, 318px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  justify-content: stretch;
  margin: 0;
}

.customer-connection-actions .primary-btn,
.customer-connection-actions .secondary-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  font-size: clamp(14px, 4.1vw, 16px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.customer-status-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding: 10px;
  border-radius: 14px;
}

.customer-status-list > .customer-status-item {
  min-height: 78px;
  padding: 13px 44px 12px 12px;
  border-radius: 10px;
}

.customer-privacy-card {
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #151615;
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.customer-privacy-card .eyebrow {
  margin-bottom: 5px;
  color: #8f9591;
}

.customer-privacy-card h2 {
  color: #f2f5f3;
}

.customer-privacy-card .subtle-text {
  color: #a4aaa6;
  font-size: 12px;
  line-height: 1.35;
}

.customer-privacy-card .home-switch span {
  background: #383d39;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.customer-privacy-card .home-switch input:checked + span {
  background: #2ee0b6;
  box-shadow: inset 0 0 0 1px rgba(46, 224, 182, 0.18);
}

.customer-status-list > .customer-status-item span {
  max-width: 5.8em;
  margin-bottom: 8px;
  font-size: clamp(12px, 3.4vw, 14px);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.customer-status-list > .customer-status-item strong {
  display: block;
  max-width: 100%;
  font-size: clamp(15px, 4.2vw, 18px);
  line-height: 1.08;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-status-item--battery::before {
  right: 10px;
  top: 17px;
  width: 34px;
  height: 34px;
}

.customer-status-item--battery::after {
  right: 17px;
  top: 29px;
  font-size: 10px;
}

.customer-status-item--firmware::before {
  right: 14px;
  top: 17px;
  width: 23px;
  height: 34px;
  border-width: 2px;
  border-radius: 6px;
}

.customer-status-item--firmware::after {
  right: 20px;
  top: 28px;
  width: 11px;
  height: 15px;
  border-top-width: 2px;
  border-bottom-width: 2px;
  box-shadow: 0 12px 0 -6px #b5b5b5;
}

.customer-status-item--firmware span::after {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  border-width: 2px;
  font-size: 11px;
}

.customer-status-item--camera::before {
  right: 22px;
  top: 31px;
  width: 25px;
  height: 25px;
  border-width: 2px;
  border-radius: 6px;
}

.customer-status-item--camera::after {
  right: 11px;
  top: 34px;
  width: 15px;
  height: 20px;
  border-width: 2px;
  border-left: 0;
}

.customer-status-item--display::before {
  right: 13px;
  top: 27px;
  width: 34px;
  height: 25px;
  border-width: 2px;
  border-radius: 6px;
}

.customer-status-item--display::after {
  right: 23px;
  top: 47px;
  width: 13px;
  height: 12px;
  border-bottom-width: 2px;
  box-shadow:
    -10px -9px 0 -5px #6ac6ff,
    0 -9px 0 -5px #6ac6ff,
    10px -9px 0 -5px #6ac6ff;
}

.tabbar {
  width: min(100%, 430px);
  max-width: 100vw;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px 24px calc(var(--app-safe-bottom) + 14px);
}

.tabbar::before {
  inset: 7px 24px calc(var(--app-safe-bottom) + 8px);
}

.tab-btn {
  padding: 8px 0 6px;
}

.tab-btn svg {
  width: 24px;
  height: 24px;
}

.tab-btn span {
  font-size: 14px;
  line-height: 1.15;
}

@media (max-width: 390px) {
  .customer-home .home-topbar h1 {
    font-size: clamp(27px, 8vw, 32px);
  }

  .home-status-strip {
    gap: 7px;
    margin-bottom: 18px;
  }

  .home-status-pill {
    grid-template-columns: 22px minmax(0, 1fr) 5px;
    min-height: 42px;
    padding: 6px;
  }

  .home-status-pill .status-dot {
    width: 22px;
    height: 22px;
  }

  .skyone-glasses-visual {
    height: clamp(136px, 40vw, 160px);
    margin-bottom: 14px;
  }

  .customer-device-copy {
    margin-bottom: 20px;
  }

  .customer-connection-actions {
    width: min(100%, 300px);
  }

  .customer-status-list {
    gap: 8px;
    margin-top: 20px;
    padding: 9px;
  }

  .customer-status-list > .customer-status-item {
    min-height: 74px;
    padding: 12px 40px 11px 11px;
  }

  .tabbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tabbar::before {
    left: 18px;
    right: 18px;
  }
}

/* Icon fidelity pass: replace rough CSS drawings with stable SVG assets. */
.home-status-pill .status-dot::before,
.home-status-pill .status-dot::after {
  content: none !important;
  display: none !important;
}

.home-status-pill .status-dot {
  background-color: #383838;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 72% 72%;
}

.home-status-pill--ble .status-dot {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232f9aff' stroke-width='3.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 5v38l14-11-22-16 22-16-14-11'/%3E%3Cpath d='M13 14c-4 4-4 16 0 20' opacity='.75'/%3E%3Cpath d='M35 14c4 4 4 16 0 20' opacity='.75'/%3E%3C/g%3E%3C/svg%3E");
}

.home-status-pill--wifi .status-dot {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2343ff34' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M10 20c8-8 20-8 28 0'/%3E%3Cpath d='M16 27c5-5 11-5 16 0'/%3E%3C/g%3E%3Ccircle cx='24' cy='36' r='4.4' fill='%2343ff34'/%3E%3C/svg%3E");
}

.home-status-pill--api .status-dot {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ff424d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='24' r='12'/%3E%3Cpath d='M24 7v9M24 32v9M7 24h9M32 24h9M15.5 15.5l6.2 6.2M26.3 26.3l6.2 6.2M32.5 15.5l-6.2 6.2M21.7 26.3l-6.2 6.2' opacity='.78'/%3E%3C/g%3E%3Ctext x='24' y='27.5' text-anchor='middle' font-size='8' font-family='Arial,sans-serif' font-weight='800' fill='%23ff424d'%3EAP%3C/text%3E%3C/svg%3E");
}

.customer-status-item--firmware::before,
.customer-status-item--firmware::after,
.customer-status-item--camera::before,
.customer-status-item--camera::after,
.customer-status-item--display::before,
.customer-status-item--display::after {
  content: none !important;
  display: none !important;
}

.status-card-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  width: clamp(34px, 11vw, 48px);
  height: clamp(34px, 11vw, 48px);
  transform: translateY(-50%);
  pointer-events: none;
  overflow: visible;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.status-card-icon--firmware {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b9b9b9' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='16' y='6' width='32' height='52' rx='5'/%3E%3Cpath d='M24 19h16M24 31h16'/%3E%3Ccircle cx='32' cy='47' r='3.5' fill='%23b9b9b9' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

.status-card-icon--camera {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2366e7c6' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='15' width='34' height='34' rx='4'/%3E%3Cpath d='M42 25l14-8v30l-14-8z'/%3E%3C/g%3E%3C/svg%3E");
}

.status-card-icon--display {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%236fc6ff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='12' width='46' height='32' rx='7'/%3E%3Cpath d='M25 52h14M32 44v8'/%3E%3C/g%3E%3Cg fill='%236fc6ff'%3E%3Ccircle cx='22' cy='28' r='3'/%3E%3Ccircle cx='32' cy='28' r='3'/%3E%3Ccircle cx='42' cy='28' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.customer-status-item--firmware span::after {
  vertical-align: -3px;
}

/* Use designer-provided icon crops verbatim. */
.home-status-pill .status-dot {
  border-radius: 0;
  background-color: transparent;
  background-size: contain;
}

.home-status-pill--ble .status-dot {
  background-image: url("/assets/icons/bluetooth.png");
}

.home-status-pill--wifi .status-dot {
  background-image: url("/assets/icons/wifi.png");
}

.home-status-pill--api .status-dot {
  background-image: url("/assets/icons/ai-api.png");
}

.status-card-icon {
  background-size: contain;
}

.status-card-icon--firmware {
  opacity: 0.82;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d6d6d4' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='16' y='7' width='32' height='50' rx='6'/%3E%3Cpath d='M24 21h16M24 32h12'/%3E%3Ccircle cx='32' cy='47' r='3.4' fill='%23d6d6d4' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

.status-card-icon--camera {
  background-image: url("/assets/icons/camera.png");
}

.status-card-icon--display {
  background-image: url("/assets/icons/display.png");
}

/* Home icon refinement: make the original crops feel embedded in the controls. */
.home-status-strip {
  grid-template-columns: 1.02fr 1fr 1.02fr;
  gap: 6px;
}

.home-status-pill {
  grid-template-columns: 32px minmax(0, 1fr) 7px;
  gap: 5px;
  min-height: 49px;
  padding: 7px 6px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(56, 56, 56, 0.98), rgba(40, 40, 40, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 8px 18px rgba(0, 0, 0, 0.2);
}

.home-status-pill:first-child {
  border-color: rgba(96, 226, 196, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(96, 226, 196, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.home-status-pill .status-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #343434;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 1px 0 rgba(255, 255, 255, 0.035);
}

.home-status-pill--ble .status-dot {
  background-image: url("/assets/icons/bluetooth-badge.png");
}

.home-status-pill--wifi .status-dot {
  background-image: url("/assets/icons/wifi-badge.png");
}

.home-status-pill--api .status-dot {
  background-image: url("/assets/icons/ai-api-badge.png");
}

.home-status-pill strong {
  font-size: clamp(13px, 3.55vw, 15px);
  line-height: 1.14;
  letter-spacing: 0;
}

.home-status-pill small {
  margin-top: 4px;
  font-size: clamp(10px, 2.9vw, 12px);
  line-height: 1;
}

.home-status-pill::after,
.home-status-pill--api::after {
  align-self: center;
  justify-self: end;
  font-size: 16px;
  opacity: 0.9;
}

@media (max-width: 390px) {
  .home-status-strip {
    grid-template-columns: 1.04fr 0.96fr 1.04fr;
    gap: 5px;
  }

  .home-status-pill {
    grid-template-columns: 30px minmax(0, 1fr) 6px;
    gap: 4px;
    min-height: 46px;
    padding: 7px 5px;
  }

  .home-status-pill .status-dot {
    width: 30px;
    height: 30px;
  }

  .home-status-pill strong {
    font-size: clamp(12px, 3.45vw, 14px);
  }

  .home-status-pill small {
    font-size: clamp(10px, 2.85vw, 11px);
  }
}

/* Final top status icon alignment: CSS owns the badge, assets only supply centered symbols. */
.home-status-pill .status-dot {
  background-image:
    radial-gradient(circle at 50% 50%, #343434 0 58%, #2a2a2a 59% 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.home-status-pill--ble .status-dot {
  background-image:
    url("/assets/icons/bluetooth-symbol.png"),
    radial-gradient(circle at 50% 50%, #343434 0 58%, #2a2a2a 59% 100%);
  background-size: 70% 70%, 100% 100%;
}

.home-status-pill--wifi .status-dot {
  background-image:
    url("/assets/icons/wifi-symbol.png"),
    radial-gradient(circle at 50% 50%, #343434 0 58%, #2a2a2a 59% 100%);
  background-size: 66% 66%, 100% 100%;
}

.home-status-pill--api .status-dot {
  background-image:
    url("/assets/icons/ai-api-symbol.png"),
    radial-gradient(circle at 50% 50%, #343434 0 58%, #2a2a2a 59% 100%);
  background-size: 68% 68%, 100% 100%;
}

.home-status-pill--ble .status-dot,
.home-status-pill--wifi .status-dot,
.home-status-pill--api .status-dot {
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}

/* Replace noisy screenshot-derived symbols with crisp centered status SVGs. */
.home-status-pill .status-dot {
  width: 34px;
  height: 34px;
  background-image:
    radial-gradient(circle at 50% 50%, #343434 0 57%, #2b2b2b 58% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 0 5px rgba(0, 0, 0, 0.12);
}

.home-status-pill--ble .status-dot {
  background-image:
    url("/assets/icons/status-bluetooth.svg"),
    radial-gradient(circle at 50% 50%, #343434 0 57%, #2b2b2b 58% 100%);
  background-size: 63% 63%, 100% 100%;
}

.home-status-pill--wifi .status-dot {
  background-image:
    url("/assets/icons/status-wifi.svg"),
    radial-gradient(circle at 50% 50%, #343434 0 57%, #2b2b2b 58% 100%);
  background-size: 76% 76%, 100% 100%;
}

.home-status-pill--api .status-dot {
  background-image:
    url("/assets/icons/status-ai-api.svg"),
    radial-gradient(circle at 50% 50%, #343434 0 57%, #2b2b2b 58% 100%);
  background-size: 73% 73%, 100% 100%;
}

@media (max-width: 390px) {
  .home-status-pill .status-dot {
    width: 32px;
    height: 32px;
  }
}

/* WiFi bottom sheet: launched from the home WiFi status pill. */
.wifi-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 220ms ease;
  backdrop-filter: blur(1px);
}

body.wifi-sheet-open .wifi-sheet-backdrop {
  opacity: 1;
}

body.wifi-sheet-open {
  overflow: hidden;
}

.customer-home > .wifi-provision-card.wifi-sheet {
  display: block !important;
}

.wifi-provision-card.wifi-sheet {
  position: fixed;
  left: max(0px, calc(50% - 215px));
  right: auto;
  bottom: 0;
  z-index: 90;
  width: min(100vw, 430px);
  max-height: min(64dvh, 650px);
  margin: 0;
  padding: 14px 20px calc(var(--app-safe-bottom) + 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px 18px 0 0;
  transform: translateY(calc(100% + 16px));
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    max-height 260ms cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y;
}

body.wifi-sheet-open .wifi-provision-card.wifi-sheet {
  transform: translateY(var(--wifi-sheet-drag-y, 0px));
}

body.wifi-sheet-expanded .wifi-provision-card.wifi-sheet {
  max-height: calc(100dvh - var(--app-safe-top-clearance) - 4px);
}

body.wifi-sheet-dragging .wifi-provision-card.wifi-sheet {
  transition: none;
}

.wifi-sheet-grabber {
  width: 46px;
  height: 5px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  touch-action: none;
  cursor: grab;
}

.wifi-sheet-grabber:active {
  cursor: grabbing;
}

.wifi-provision-card.wifi-sheet .section-head {
  cursor: grab;
  touch-action: none;
}

.wifi-provision-card.wifi-sheet .section-head:active {
  cursor: grabbing;
}

.wifi-sheet-close {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #9c9c9c;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.wifi-provision-card.wifi-sheet[hidden],
.wifi-sheet-backdrop[hidden] {
  display: none !important;
}

/* Home feature dock: four primary functions under the device status board. */
.customer-home > .home-feature-tabs {
  display: grid !important;
  position: relative;
  top: auto;
  z-index: 1;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #141514;
  border: 1px solid rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.customer-home > .home-feature-tabs .segment-btn {
  min-height: 36px;
  padding: 0 6px;
  color: #9c9c9c;
  background: transparent;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 500;
}

.customer-home > .home-feature-tabs .segment-btn:last-child {
  border-right: 0;
}

.customer-home > .home-feature-tabs .segment-btn.active {
  color: var(--accent);
  background: rgba(46, 224, 182, 0.07);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.customer-home > [data-home-tab-panel]:not(.hidden):not(.home-advanced-card),
.customer-home > .photo-preview-card[data-home-tab-panel]:not(.hidden),
.customer-home > .upload-diagnostic-card[data-home-tab-panel]:not(.hidden) {
  display: grid !important;
}

.customer-home > [data-home-tab-panel].hidden,
.customer-home > .home-advanced-card,
.customer-home > .activity-timeline-card.home-advanced-card {
  display: none !important;
}

.customer-home > .photo-preview-card,
.customer-home > .customer-api-card:not(.wifi-sheet),
.customer-home > .upload-diagnostic-card {
  width: 100%;
  margin-top: 8px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #151615;
  border: 1px solid rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.customer-home > .photo-preview-card .section-head,
.customer-home > .customer-api-card:not(.wifi-sheet) .section-head,
.customer-home > .upload-diagnostic-card .section-head {
  min-height: 62px;
  margin: 0;
  padding: 11px 14px 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.customer-home > .photo-preview-card .section-head > div,
.customer-home > .customer-api-card:not(.wifi-sheet) .section-head > div,
.customer-home > .upload-diagnostic-card .section-head > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.customer-home > .photo-preview-card .eyebrow,
.customer-home > .customer-api-card:not(.wifi-sheet) .eyebrow,
.customer-home > .upload-diagnostic-card .eyebrow {
  position: relative;
  margin: 0;
  padding-left: 12px;
  color: #a8a8a8;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.customer-home > .photo-preview-card .eyebrow::before,
.customer-home > .customer-api-card:not(.wifi-sheet) .eyebrow::before,
.customer-home > .upload-diagnostic-card .eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 5px;
  height: 16px;
  border-radius: 999px;
  background: #39ff2b;
}

.customer-home > .photo-preview-card h2,
.customer-home > .customer-api-card:not(.wifi-sheet) h2,
.customer-home > .upload-diagnostic-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 650;
}

.customer-home .section-actions {
  gap: 8px;
}

.customer-home .home-photo-save-btn {
  display: none !important;
}

.customer-home .section-actions .text-btn,
.home-gallery-card > .section-head .text-btn,
.customer-home > .upload-diagnostic-card .text-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #b8b8b8;
  background: #2c2d2c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  font-size: 0;
}

.customer-home .section-actions .text-btn svg,
.home-gallery-card > .section-head .text-btn svg,
.customer-home > .upload-diagnostic-card .text-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-preview-body {
  padding: 12px 14px 0;
}

.photo-preview-empty {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  place-items: center;
  text-align: center;
  background: #282928;
  border: 0;
  border-radius: 7px;
}

.photo-preview-empty svg {
  width: 54px;
  height: 54px;
  color: rgba(255, 255, 255, 0.12);
}

.photo-preview-empty strong {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.24);
  font-size: 13px;
}

.photo-preview-empty span,
.customer-home > .photo-preview-card > .subtle-text {
  color: rgba(255, 255, 255, 0.28);
}

.customer-home > .photo-preview-card > .subtle-text,
.customer-home > .upload-diagnostic-card > .subtle-text,
.customer-home > .customer-api-card:not(.wifi-sheet) > .subtle-text {
  padding: 10px 14px 14px;
  font-size: 12px;
}

.customer-home .photo-preview-analysis,
.customer-home .photo-preview-analysis.ok,
.customer-home .photo-preview-analysis.warn,
.customer-home .photo-preview-analysis.fail {
  background: #202522;
  border-color: rgba(118, 255, 146, 0.24);
}

.customer-home .photo-preview-analysis.ok {
  background: linear-gradient(180deg, rgba(24, 47, 35, 0.96), rgba(28, 34, 31, 0.98));
}

.customer-home .photo-preview-analysis.warn {
  background: linear-gradient(180deg, rgba(50, 42, 27, 0.96), rgba(31, 30, 28, 0.98));
  border-color: rgba(245, 185, 89, 0.28);
}

.customer-home .photo-preview-analysis.fail {
  background: linear-gradient(180deg, rgba(55, 29, 31, 0.96), rgba(32, 29, 30, 0.98));
  border-color: rgba(255, 112, 124, 0.28);
}

.customer-home .photo-preview-analysis__head small {
  color: #6ff0b8;
}

.customer-home .photo-preview-analysis > strong {
  color: #ffffff;
}

.customer-home .photo-preview-analysis > p {
  color: rgba(244, 250, 247, 0.88);
}

.customer-home .photo-preview-analysis__meta span {
  color: rgba(232, 244, 238, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.upload-diagnostic-steps {
  padding: 12px 14px 14px;
}

.customer-home .upload-diagnostic-empty {
  min-height: 94px;
  display: grid;
  place-items: center;
  gap: 6px;
  margin: 0;
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.28);
  background: #282928;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 7px;
}

.customer-home .upload-diagnostic-empty::before {
  content: "";
  width: 38px;
  height: 38px;
  display: block;
  opacity: 0.28;
  background:
    linear-gradient(135deg, transparent 0 30%, currentColor 31% 43%, transparent 44% 100%),
    linear-gradient(135deg, transparent 0 56%, currentColor 57% 69%, transparent 70% 100%);
  border-radius: 8px;
}

.customer-home .upload-diagnostic-empty strong {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.customer-home .upload-diagnostic-empty span {
  color: rgba(255, 255, 255, 0.24);
  font-size: 12px;
}

.upload-diagnostic-steps:empty {
  min-height: 90px;
  margin: 12px 14px 14px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,0.08), transparent 18%),
    #282928;
}

.home-incognito-card .button-row,
.customer-home [data-home-tab-panel="focus"] .button-row {
  grid-template-columns: 1fr auto;
  padding: 0 14px 14px;
}

.home-incognito-card .primary-btn,
.home-incognito-card .secondary-btn {
  min-height: 46px;
}

.home-gallery-card {
  padding-bottom: 12px !important;
}

.home-ai-prompt-card .stack-form {
  padding: 14px;
  gap: 12px;
}

.home-ai-prompt-card .field {
  gap: 8px;
}

.home-ai-prompt-card .field > span {
  color: #f2f5f3;
  font-size: 13px;
  font-weight: 850;
}

.home-ai-prompt-card textarea {
  min-height: 132px;
  max-height: 240px;
  resize: vertical;
  color: #eeeeec;
  background: #242424;
  border-color: rgba(255, 255, 255, 0.07);
}

.home-ai-prompt-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.home-ai-prompt-card .primary-btn {
  min-height: 48px;
}

.home-ai-prompt-card .subtle-text {
  margin: 0;
  color: #a7a4a5;
  font-size: 13px;
}

.home-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px 2px;
}

.home-photo-save-panel {
  display: grid;
  gap: 8px;
  padding: 10px 14px 14px;
}

.home-photo-save-panel .primary-btn {
  min-height: 46px;
  border-radius: 12px;
}

.home-photo-save-panel .primary-btn:disabled {
  opacity: 0.42;
}

.home-photo-save-panel .subtle-text {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1.35;
}

.home-media-empty {
  grid-column: 1 / -1;
  min-height: 156px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px 18px;
  border-radius: 10px;
  background: #282928;
  color: #777b78;
  text-align: center;
}

.home-media-empty svg {
  width: 42px;
  height: 42px;
  opacity: 0.35;
}

.home-media-empty strong {
  color: #8f938f;
  font-size: 15px;
  line-height: 1.2;
}

.home-media-empty span {
  max-width: 220px;
  color: #666a67;
  font-size: 12px;
  line-height: 1.35;
}

.home-media-tile {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 7px;
  background: #282928;
}

.home-media-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-media-tile span {
  position: absolute;
  z-index: 1;
  left: 7px;
  bottom: 6px;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.home-media-tile--translate::before,
.home-media-grid--translate .home-media-tile::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-right-color: transparent;
}

.home-media-tile--demo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.38) 100%);
}

.home-media-tile--garden {
  background:
    radial-gradient(circle at 22% 22%, rgba(164, 219, 188, 0.8), transparent 20%),
    radial-gradient(circle at 72% 72%, rgba(20, 62, 55, 0.92), transparent 28%),
    linear-gradient(135deg, #22413a, #8ebaa2 48%, #172522);
}

.home-media-tile--portrait {
  background:
    radial-gradient(circle at 52% 24%, #f6d7a1, transparent 14%),
    radial-gradient(circle at 54% 42%, #f0bd92, transparent 16%),
    linear-gradient(135deg, #a6323b, #f1c972 48%, #4c7c71);
}

.home-media-tile--city {
  background:
    radial-gradient(circle at 70% 42%, rgba(255, 235, 166, 0.88), transparent 16%),
    linear-gradient(135deg, #705330, #d89035 45%, #36717c);
}

.home-media-tile--night {
  background:
    radial-gradient(circle at 68% 30%, #fff8cb, transparent 6%),
    radial-gradient(circle at 35% 68%, rgba(91, 177, 219, 0.42), transparent 28%),
    linear-gradient(135deg, #061424, #1a3955 55%, #110f16);
}

.home-media-tile--ar {
  background:
    radial-gradient(circle at 50% 34%, rgba(104, 201, 255, 0.9), transparent 26%),
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.86), transparent 8%),
    linear-gradient(135deg, #061b2e, #2b6f9e 50%, #081018);
}

.home-media-tile--moon {
  background:
    radial-gradient(circle at 76% 22%, #fff8d2, transparent 6%),
    linear-gradient(135deg, #0d2037, #5b2840 55%, #0a111d);
}

.home-media-tile--mist {
  background:
    radial-gradient(circle at 34% 22%, rgba(219, 239, 215, 0.85), transparent 18%),
    linear-gradient(135deg, #1e3e38, #b9cdaa 48%, #21352c);
}

.home-media-tile--palace {
  background:
    radial-gradient(circle at 72% 38%, rgba(255, 216, 108, 0.85), transparent 18%),
    linear-gradient(135deg, #744221, #e2a85e 50%, #5c2d24);
}

.home-media-tile--sea {
  background:
    radial-gradient(circle at 68% 18%, #fff8d0, transparent 7%),
    linear-gradient(135deg, #09283d, #2e7f96 48%, #1a2136);
}

.customer-home [data-home-tab-panel="focus"] {
  gap: 0;
}

.customer-home [data-home-tab-panel="focus"] > .subtle-text,
.customer-home [data-home-tab-panel="focus"] .focus-judgment-policy,
.customer-home [data-home-tab-panel="focus"] .focus-progress,
.customer-home [data-home-tab-panel="focus"] .focus-health-grid,
.customer-home [data-home-tab-panel="focus"] .focus-event-list {
  margin: 0;
  padding: 12px 14px;
}

.customer-home [data-home-tab-panel="focus"] .focus-judgment-policy {
  gap: 7px;
  padding-top: 0;
}

.customer-home [data-home-tab-panel="focus"] .focus-judgment-policy span {
  min-height: 30px;
  background: #2c2d2c;
  border-radius: 7px;
}

.customer-home [data-home-tab-panel="focus"] .focus-health-grid div {
  background: #202522;
  border-color: rgba(118, 255, 146, 0.14);
}

.customer-home [data-home-tab-panel="focus"] .focus-health-grid span {
  color: rgba(232, 244, 238, 0.58);
}

.customer-home [data-home-tab-panel="focus"] .focus-health-grid strong {
  color: #ffffff;
}

.customer-home [data-home-tab-panel="focus"] .focus-feedback-row .secondary-btn {
  color: #d8e8df;
  background: #2c2d2c;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Final homepage visual polish: blend the glasses art into the page instead of
   showing the source image's hard black rectangle. */
.customer-home .skyone-glasses-visual {
  isolation: isolate;
  overflow: visible;
  background: transparent !important;
}

.customer-home .skyone-glasses-visual::before {
  content: "";
  position: absolute;
  inset: 16% 4% 8%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(23, 37, 31, 0.72), transparent 66%),
    radial-gradient(ellipse at 64% 54%, rgba(45, 224, 182, 0.12), transparent 52%);
  filter: blur(18px);
  pointer-events: none;
}

.customer-home .skyone-glasses-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 9, 7, 0.72), transparent 15%, transparent 85%, rgba(4, 9, 7, 0.72)),
    linear-gradient(180deg, rgba(4, 9, 7, 0.5), transparent 20%, transparent 78%, rgba(4, 9, 7, 0.42));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.customer-home .skyone-glasses-visual img {
  position: relative;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.92;
  filter:
    contrast(1.06)
    saturate(0.9)
    drop-shadow(0 26px 34px rgba(0, 0, 0, 0.46));
}

.customer-status-item--firmware span::after {
  content: none !important;
  display: none !important;
}

.customer-status-list > .customer-status-item--firmware strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-status-list > button.customer-status-item {
  width: 100%;
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.customer-status-list > button.customer-status-item:focus-visible {
  outline: 2px solid rgba(46, 224, 182, 0.82);
  outline-offset: 3px;
}

.customer-status-list > button.customer-status-item:disabled {
  cursor: default;
  opacity: 0.72;
}

.customer-status-list > button.customer-status-item.is-installing:disabled {
  cursor: progress;
  opacity: 1;
}

.customer-status-list > .customer-status-item.is-offline {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.customer-status-item--battery.is-offline::before,
.customer-status-item--battery.is-offline::after {
  opacity: 0.12;
}

.customer-status-list > .customer-status-item--firmware.has-update {
  border-color: rgba(46, 224, 182, 0.88);
  background:
    radial-gradient(circle at 100% 0, rgba(46, 224, 182, 0.2), transparent 36%),
    #292929;
  box-shadow:
    inset 0 0 0 1px rgba(46, 224, 182, 0.16),
    0 0 0 1px rgba(46, 224, 182, 0.22),
    0 0 24px rgba(46, 224, 182, 0.2);
}

.customer-status-list > .customer-status-item--firmware.is-installing {
  border-color: rgba(120, 210, 255, 0.46);
}

.customer-status-item--firmware.has-update .status-card-icon--firmware {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(46, 224, 182, 0.42));
}

.customer-status-item--firmware.has-update .status-card-icon--firmware::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 2px solid #292929;
  border-radius: 999px;
  background: #35e6bd;
  box-shadow:
    0 0 0 3px rgba(53, 230, 189, 0.2),
    0 0 14px rgba(53, 230, 189, 0.72);
}

/* The home overview intentionally exposes only the two connection essentials. */
.home-status-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 390px) {
  .customer-status-item--firmware.has-update .status-card-icon--firmware::after {
    right: -3px;
    top: -3px;
    width: 12px;
    height: 12px;
    border-width: 2px;
  }
}

/* 我的页标题：长昵称降字号，任何情况下不溢出屏幕 */
#meTitle {
  overflow-wrap: anywhere;
  max-width: 100%;
}
#meTitle.me-title--long {
  font-size: clamp(20px, 5.5vw, 28px);
  line-height: 1.25;
}

.subtle-text.error-text {
  color: var(--danger);
}

.customer-support-card .secondary-btn {
  white-space: nowrap;
  padding: 10px 18px;
}
