/* ==========================================================================
   Neuro Home — design system
   ========================================================================== */
:root {
  /* Brand */
  --violet: #5B2EE5;
  --violet-700: #4520C2;
  --violet-800: #35189A;
  --violet-100: #E6DEFF;
  --violet-50: #F2EEFF;
  --amber: #FFB020;
  --amber-50: #FFF6E3;
  --amber-ink: #7A4D00;
  --green: #12B76A;
  --green-50: #E7F8EF;
  --green-ink: #05603A;
  --red: #D92D20;

  /* Neutrals */
  --ink: #14152A;
  --ink-2: #44465F;
  --ink-3: #62647D;
  --ink-4: #9A9CB2;
  --line: #E4E5EF;
  --line-2: #EEEFF5;
  --ground: #F4F5FA;
  --surface: #FFFFFF;
  --night: #0B0B17;
  --night-2: #16172A;

  /* Type */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Shape & depth (8px grid) */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --shadow-1: 0 1px 2px rgba(20, 21, 42, .05), 0 2px 8px rgba(20, 21, 42, .04);
  --shadow-2: 0 2px 4px rgba(20, 21, 42, .04), 0 12px 32px -8px rgba(20, 21, 42, .12);
  --shadow-3: 0 24px 64px -16px rgba(20, 21, 42, .28);
  --shadow-violet: 0 12px 28px -10px rgba(91, 46, 229, .55);
  --ring: 0 0 0 3px #fff, 0 0 0 5px var(--violet);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);

  /* Liquid Glass tokens (Phase 1 — Neuro Home) */
  --glass-bg: rgba(255, 255, 255, .72);
  --glass-bg-strong: rgba(255, 255, 255, .86);
  --glass-bg-solid: #FFFFFF;
  --glass-blur: 20px;
  --glass-blur-sm: 12px;
  --glass-sat: 1.6;
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(255, 255, 255, .35);
  --glass-shadow: 0 8px 32px -8px rgba(15, 23, 42, .18);
  --glass-ink: #111827;
  --glass-ink-2: #374151;
  --glass-accent: #4520C2;
  --glass-radius-bar: 999px;
  --glass-radius-sheet: 28px;
  --glass-scrim: rgba(11, 11, 23, .34);
  --glass-solid-border: 1px solid #D1D5DB;
  --glass-contrast-border: 1px solid #374151;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* A phone app, not a web page: a double tap must never zoom the screen (it pushed the
   camera buttons off the edge), and a tap fires at once instead of waiting for a
   possible second tap. Pinch-zoom stays on purpose (accessibility; the viewport does not
   cap the scale, and iOS ignores a cap anyway). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
button, a, input, select, textarea, label, [role="button"] { touch-action: manipulation; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 50% -10%, #fff 0%, rgba(255,255,255,0) 60%),
    #E8E9F1;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 18px; height: 18px; }
.ico.xs { width: 14px; height: 14px; stroke-width: 2.2; }
.ico.lg { width: 28px; height: 28px; }
.ico.fill { fill: currentColor; stroke: none; }

/* ==========================================================================
   Stage: side panels + device
   ========================================================================== */
.stage {
  height: 100vh; height: 100dvh;
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  align-items: center;
}
.panel {
  height: 100%;
  padding: 32px 28px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
}
.panel h2 {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 12px;
}
.brandline { display: flex; align-items: center; gap: 12px; }
.brandline strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; display: block; }
.brandline span { font-size: 12.5px; color: var(--ink-3); }
.screen-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.screen-index button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  min-height: 36px; padding: 6px 10px; border: 0; border-radius: 10px;
  background: transparent; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.screen-index button:hover { background: rgba(255,255,255,.7); }
.screen-index button[aria-current="step"] { background: #fff; color: var(--violet); box-shadow: var(--shadow-1); }
.screen-index .num {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: rgba(20,21,42,.06); color: var(--ink-3);
}
.screen-index button[aria-current="step"] .num { background: var(--violet); color: #fff; }
.ctl { display: grid; gap: 10px; }
.ctl-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg-mini { display: flex; background: rgba(20,21,42,.06); border-radius: 12px; padding: 3px; }
.seg-mini label { flex: 1; }
.seg-mini input { position: absolute; opacity: 0; pointer-events: none; }
.seg-mini span {
  display: grid; place-items: center; min-height: 34px; border-radius: 9px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3); cursor: pointer;
}
.seg-mini input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.seg-mini input:focus-visible + span { box-shadow: var(--ring); }
.ctl-btn {
  min-height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 600; padding: 0 14px;
}
.ctl-btn:hover { border-color: var(--ink-4); }
.kbd-hint { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
kbd {
  font-family: var(--font); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line);
}
.tokens { display: grid; gap: 8px; }
.swatch { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.swatch i { width: 32px; height: 32px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(20,21,42,.08); }
.swatch b { font-weight: 700; display: block; }
.swatch code { font-size: 11.5px; color: var(--ink-3); font-family: ui-monospace, Menlo, monospace; }
.type-spec { display: grid; gap: 6px; }
.type-spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.type-spec small { font-size: 11px; color: var(--ink-3); }
.radii { display: flex; gap: 8px; }
.radii i { width: 40px; height: 40px; background: #fff; box-shadow: var(--shadow-1); display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--ink-3); }

.device-area { height: 100%; display: grid; place-items: center; position: relative; }
.device-scale { transform-origin: center center; }
.device {
  width: 414px; height: 868px; padding: 12px; border-radius: 64px;
  background: linear-gradient(145deg, #2A2B3D, #0D0E18 60%, #22232F);
  box-shadow: var(--shadow-3), inset 0 0 0 1.5px rgba(255,255,255,.12), 0 0 0 1px #000;
  position: relative;
}
.device::before { /* side buttons */
  content: ""; position: absolute; left: -3px; top: 180px; width: 3px; height: 64px; border-radius: 2px 0 0 2px;
  background: #1a1b26; box-shadow: 0 84px 0 #1a1b26;
}
.device::after {
  content: ""; position: absolute; right: -3px; top: 230px; width: 3px; height: 96px; border-radius: 0 2px 2px 0;
  background: #1a1b26;
}
.viewport {
  position: relative; width: 390px; height: 844px; border-radius: 52px; overflow: hidden;
  /* Sim run r13: the hidden sheet below the bottom edge made the screen scrollable by code
     (a focus or scrollIntoView slid everything up 77 px). clip forbids any scrolling. */
  overflow: clip;
  background: var(--ground);
  view-transition-name: screen;
  isolation: isolate;
}
.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 122px; height: 35px; border-radius: 20px; background: #000; z-index: 60; pointer-events: none;
}
.home-indicator {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 3px; background: var(--ink); z-index: 60; pointer-events: none;
  transition: background .3s;
}
.viewport[data-theme="dark"] .home-indicator { background: #fff; }

@media (max-width: 1240px) { .stage { grid-template-columns: 280px 1fr; } .panel.right { display: none; } }
@media (max-width: 820px) {
  .stage { grid-template-columns: 1fr; }
  .panel.left { display: none; }
}

/* ==========================================================================
   Screen scaffolding
   ========================================================================== */
.screen {
  position: absolute; inset: 0; display: none; flex-direction: column;
  background: var(--ground);
}
.screen.active { display: flex; }
.screen.dark { background: var(--night); color: #fff; }
.screen.white { background: var(--surface); }
.scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: none; padding: 0 20px 24px;
}
.scroll::-webkit-scrollbar { display: none; }
.navbar {
  padding: max(56px, calc(env(safe-area-inset-top, 0px) + 9px)) 12px 8px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  min-height: 108px; flex: none;
}
.navbar .title { text-align: center; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.navbar .right { justify-self: end; }
.footer {
  flex: none; padding: 12px 20px 34px; display: grid; gap: 10px;
  background: linear-gradient(to bottom, rgba(244,245,250,0), var(--ground) 30%);
  position: relative;
}
.white .footer { background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 30%); }
.dark .footer { background: linear-gradient(to bottom, rgba(11,11,23,0), var(--night) 30%); }
.footer .fine { text-align: center; font-size: 12px; color: var(--ink-3); margin: 0; line-height: 1.5; }
.dark .footer .fine { color: rgba(255,255,255,.62); }

/* Headline type */
.display { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; margin: 0 0 8px; }
.h2 { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.h3 { font-size: 16px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.lead { font-size: 16px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.body { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.meta { font-size: 13px; line-height: 1.45; color: var(--ink-3); margin: 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin: 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 12px; }
.section-title .h3 { font-size: 17px; }
.link {
  border: 0; background: none; padding: 0 4px; min-height: 44px; min-width: 44px; justify-content: center; font-weight: 700; font-size: 14px; color: var(--violet);
  border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
}
.link:hover { color: var(--violet-700); }
.dark .link { color: #C9B8FF; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --bg: var(--violet); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 24px; border: 0; border-radius: 18px;
  background: var(--bg); color: var(--fg);
  font-size: 16px; font-weight: 700; letter-spacing: -.005em;
  box-shadow: var(--shadow-violet);
  transition: transform .18s var(--ease), box-shadow .2s, background .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.btn:hover { background: var(--violet-700); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .icon-btn:focus-visible, .link:focus-visible, .chip:focus-visible,
.tile:focus-visible, .hero-ask:focus-visible, .row-btn:focus-visible, .tab:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: #D9DAE6; color: #6E7089; box-shadow: none; cursor: not-allowed; transform: none;
}
.dark .btn:disabled { background: rgba(255,255,255,.12); color: rgba(255,255,255,.55); }
.btn.secondary { --bg: #fff; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.secondary:hover { background: #FAFAFD; box-shadow: inset 0 0 0 1.5px var(--ink-4); }
.btn.ghost-dark { --bg: rgba(255,255,255,.1); --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.btn.ghost-dark:hover { background: rgba(255,255,255,.16); }
.btn.white { --bg: #fff; --fg: var(--violet-800); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.btn.white:hover { background: #F6F3FF; }
.btn.sm { min-height: 44px; border-radius: 14px; font-size: 14px; padding: 0 16px; width: auto; box-shadow: none; }
.btn .spinner { display: none; }
.btn.loading .label { opacity: 0; }
.btn.loading .spinner { display: block; position: absolute; }
.btn.success { background: var(--green); box-shadow: 0 12px 28px -10px rgba(18,183,106,.6); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 0; display: grid; place-items: center;
  background: transparent; color: var(--ink); transition: background .15s, transform .15s;
  position: relative;
}
.icon-btn:hover { background: rgba(20,21,42,.06); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.surface { background: #fff; box-shadow: var(--shadow-1); }
.icon-btn.glass {
  background: rgba(20,21,42,.42); color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.icon-btn.glass:hover { background: rgba(20,21,42,.55); }
.icon-btn.glass[aria-pressed="true"] { background: #fff; color: var(--ink); }
/* Hold-to-talk on live Neuro (noisy place): neon ring in the logo colours while held. */
.icon-btn.glass.holding {
  background: rgba(20,21,42,.55); color: #fff; transform: scale(1.12);
  box-shadow: 0 0 0 2px #c86bff, 0 0 18px 4px rgba(200,107,255,.65), 0 0 32px 8px rgba(80,200,255,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
#micBtn { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.icon-btn .dot {
  position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 2px var(--ground);
}

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.spinner.violet { border-color: var(--violet-100); border-top-color: var(--violet); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Cards, chips, rows
   ========================================================================== */
.card {
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-2);
  padding: 20px;
}
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card + .card { margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; font-size: 13px; font-weight: 600; border: 0;
  background: var(--ground); color: var(--ink-2);
}
.chip.violet { background: var(--violet-50); color: var(--violet-700); }
.chip.green { background: var(--green-50); color: var(--green-ink); }
.chip.amber { background: var(--amber-50); color: var(--amber-ink); }
.chip.glass {
  background: rgba(20,21,42,.5); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
}
.badge.green { background: var(--green-50); color: var(--green-ink); }
.badge.amber { background: var(--amber); color: var(--ink); }
.badge.violet { background: var(--violet); color: #fff; }
.badge.gray { background: var(--line-2); color: var(--ink-3); }

.icon-tile {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--violet-50); color: var(--violet);
}
.icon-tile.ink { background: var(--ground); color: var(--ink); }
.icon-tile.green { background: var(--green-50); color: var(--green-ink); }
.icon-tile.amber { background: var(--amber-50); color: var(--amber-ink); }

.row { display: flex; align-items: center; gap: 14px; }
.row .grow { flex: 1; min-width: 0; }
.divider { height: 1px; background: var(--line-2); margin: 16px 0; border: 0; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; padding: 6px 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.kv.total { font-size: 17px; padding-top: 10px; }
.kv.total dt { color: var(--ink); font-weight: 700; }
.kv.muted dd { color: var(--ink-3); font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.check-list .mk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 0; }
.check-list .mk.yes { background: var(--green-50); color: var(--green-ink); }
.check-list .mk.no { background: var(--line-2); color: var(--ink-3); }

.note {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
.note strong { color: var(--ink); }
.note .ico { color: var(--violet); margin-top: 1px; }
.note.violet { background: var(--violet-50); border-color: transparent; }
.note.amber { background: var(--amber-50); border-color: #FFE2A8; }
.note.amber .ico { color: var(--amber-ink); }
.note.dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.note.dark strong { color: #fff; }
.note.dark .ico { color: #C9B8FF; }

/* ==========================================================================
   Form fields
   ========================================================================== */
.field { display: grid; gap: 8px; }
.field > label, .field-label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.input-wrap {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px;
  background: #fff; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .15s;
}
.input-wrap:focus-within { box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 4px rgba(91,46,229,.12); }
.input-wrap input, .input-wrap textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 600;
  height: 54px; padding: 0;
}
.input-wrap textarea { height: auto; min-height: 76px; padding: 14px 0; font-size: 16px; font-weight: 500; resize: none; line-height: 1.45; }
.input-wrap input::placeholder, .input-wrap textarea::placeholder { color: var(--ink-4); font-weight: 500; }
.input-wrap .ico { color: var(--ink-3); }
.input-wrap.invalid { box-shadow: inset 0 0 0 2px var(--red); }
.prefix {
  display: inline-flex; align-items: center; gap: 6px; padding-right: 12px; margin-right: 2px;
  border: 0; border-right: 1.5px solid var(--line); background: none; height: 44px; font-weight: 700; font-size: 16px;
  border-radius: 0;
}
.flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 .5px rgba(0,0,0,.15); }
/* minmax(0, 1fr): an input's built-in width must not push the second column off a narrow phone. */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-2 > * { min-width: 0; }
.input-wrap input { width: 100%; }
/* .field and .link set their own display, which beats the hidden attribute: hide these for real. */
#addrZipField[hidden], #addrAddAnother[hidden], #addrHomes[hidden] { display: none; }

.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border: 0; padding: 0; margin: 0; }
.segmented legend { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.segmented label { position: relative; width: 100%; }
.segmented input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.segmented span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px; border-radius: 12px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .15s; text-align: center; white-space: nowrap;
}
.segmented input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.segmented input:focus-visible + span { box-shadow: var(--ring); }

.switch { position: relative; display: inline-flex; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span {
  width: 51px; height: 31px; border-radius: 16px; background: #DADBE6; transition: background .2s; position: relative;
}
.switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .25s var(--ease-spring);
}
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: var(--ring); }

/* Option cards (radio) */
.options { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.option .box {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 16px;
  border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer; transition: box-shadow .15s, background .15s, transform .15s;
}
.option .box:hover { box-shadow: inset 0 0 0 1.5px var(--ink-4); }
.option .box:active { transform: scale(.985); }
.option .radio {
  width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #C8C9D8; flex: none;
  display: grid; place-items: center; transition: all .15s;
}
.option input:checked + .box { box-shadow: inset 0 0 0 2px var(--violet); background: #FCFBFF; }
.option input:checked + .box .radio { box-shadow: inset 0 0 0 7px var(--violet); }
.option input:focus-visible + .box { box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 4px rgba(91,46,229,.18); }
.option input:disabled + .box { opacity: .55; cursor: not-allowed; background: var(--line-2); box-shadow: none; }
.option .opt-title { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.option .opt-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* Toast + sheet */
.toast {
  position: absolute; left: 16px; right: 16px; top: 58px; z-index: 70;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
  background: rgba(20,21,42,.92); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-3);
  transform: translateY(-140%); opacity: 0; transition: transform .45s var(--ease-spring), opacity .3s;
  pointer-events: none;
}
.toast.show { transform: none; opacity: 1; }
/* Camera (owner 21.11.2026): a toast sits under the top bar, never over the close button, Neuro's status and the flip. */
#camera.active ~ .toast { top: max(112px, calc(env(safe-area-inset-top, 0px) + 60px)); }   /* under .cam-top, which follows the safe area */
/* The iPhone app (owner 21.11.2026, «верхний блок обрезан под шапкой»): the page already starts below the status bar,
   so the 56 px a browser keeps for the notch was empty space that pushed every screen down. */
html.nh-native .navbar { padding-top: max(12px, calc(env(safe-area-inset-top, 0px) + 8px)); min-height: 64px; }
html.nh-native .cam-top { padding-top: max(12px, calc(env(safe-area-inset-top, 0px) + 8px)); }
html.nh-native .toast { top: max(12px, calc(env(safe-area-inset-top, 0px) + 8px)); }
html.nh-native #camera.active ~ .toast { top: max(68px, calc(env(safe-area-inset-top, 0px) + 64px)); }
.toast .ico { color: #C9B8FF; }
.scrim {
  position: absolute; inset: 0; z-index: 65; background: rgba(11,11,23,.45);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.scrim.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 66; max-height: 80%; overflow-y: auto;
  background: #fff; border-radius: 28px 28px 0 0; padding: 12px 20px 40px;
  transform: translateY(105%); transition: transform .45s var(--ease), visibility 0s linear .45s;
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.3);
  visibility: hidden;
}
.sheet.show { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }

/* Bottom tab bar */
.tabbar {
  flex: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 12px 30px;
  background: rgba(255,255,255,.86); border-top: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
}
.tab {
  display: grid; justify-items: center; gap: 4px; min-height: 48px; padding: 6px 0 0; border: 0; background: none;
  font-size: 11.5px; font-weight: 700; color: var(--ink-3); border-radius: 12px;
}
.tab[aria-current="page"] { color: var(--violet); }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"]:hover { color: var(--violet-700); }

/* ==========================================================================
   01 Welcome
   ========================================================================== */
.welcome-stage {
  position: relative; height: 430px; flex: none; overflow: hidden;
  background:
    radial-gradient(420px 320px at 70% 20%, #7A55FF 0%, rgba(122,85,255,0) 70%),
    radial-gradient(380px 300px at 10% 100%, #3C17B8 0%, rgba(60,23,184,0) 70%),
    var(--violet);
  border-radius: 0 0 40px 40px;
}
.welcome-stage::before { /* fine engineering grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 75%);
}
.welcome-logo { position: absolute; top: 62px; left: 24px; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.preview-photo {
  position: absolute; left: 50%; top: 112px; width: 196px; height: 262px; margin-left: -110px;
  border-radius: 26px; overflow: hidden; transform: rotate(-5deg);
  box-shadow: 0 30px 60px -20px rgba(15,6,60,.7), 0 0 0 5px rgba(255,255,255,.14);
  animation: floaty 6s ease-in-out infinite;
}
.preview-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 48%; }
.preview-photo .reticle-mini {
  position: absolute; left: 22%; top: 30%; width: 52%; height: 40%;
}
.preview-chip {
  position: absolute; top: 140px; right: 22px; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-3);
  font-size: 13px; font-weight: 700; animation: floaty 6s ease-in-out -2s infinite;
}
.preview-chip small { display: block; font-size: 11.5px; font-weight: 600; color: var(--green-ink); }
.preview-price {
  position: absolute; left: 22px; bottom: 34px; padding: 14px 16px; border-radius: 20px;
  background: #fff; box-shadow: var(--shadow-3); width: 196px; animation: floaty 6s ease-in-out -4s infinite;
}
.preview-price .p { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0; }
.preview-price .meta { font-size: 11.5px; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px;
}
.trust div {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 14px 6px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-1); font-size: 12px; font-weight: 600; color: var(--ink-2); line-height: 1.3;
}
.trust b { font-size: 15px; color: var(--ink); font-weight: 800; display: flex; align-items: center; gap: 4px; }
.trust .ico { color: var(--violet); }
.star-amber { color: var(--amber); }

/* ==========================================================================
   03 Verify — OTP
   ========================================================================== */
.otp { position: relative; margin-top: 28px; }
.otp input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.01; border: 0; font-size: 16px;
  letter-spacing: 40px; caret-color: transparent; color: transparent; z-index: 2; cursor: text;
}
.otp-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-cells .gap { display: none; }
.cell {
  height: 64px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  display: grid; place-items: center; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: box-shadow .15s, transform .2s var(--ease-spring), background .2s;
}
.cell.filled { animation: pop .25s var(--ease-spring); }
.cell.cur { box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 4px rgba(91,46,229,.12); }
.cell.cur::after { content: ""; width: 2px; height: 28px; background: var(--violet); border-radius: 1px; animation: blink 1s steps(1) infinite; }
.otp.ok .cell { box-shadow: inset 0 0 0 2px var(--green); background: var(--green-50); color: var(--green-ink); }
@keyframes pop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
@keyframes blink { 50% { opacity: 0; } }
.qt-bar {
  display: flex; justify-content: center; padding: 10px; margin: 0 -20px; background: #D5D7E0;
  border-top: 1px solid #C5C7D2;
}
.qt-btn {
  display: inline-flex; flex-direction: column; align-items: center; min-height: 44px; padding: 6px 24px; border: 0;
  background: #fff; border-radius: 10px; box-shadow: 0 1px 0 rgba(0,0,0,.2);
  font-size: 12px; color: var(--ink-3); font-weight: 600;
}
.qt-btn b { font-size: 16px; color: var(--ink); letter-spacing: .1em; }
.qt-wrap { transition: transform .35s var(--ease), opacity .3s; }
.qt-wrap[hidden] { display: block; transform: translateY(100%); opacity: 0; pointer-events: none; position: absolute; }

/* ==========================================================================
   04 Address
   ========================================================================== */
.suggest { list-style: none; margin: 8px 0 0; padding: 6px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-2); }
.suggest button {
  width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; min-height: 56px; padding: 8px 10px;
  border: 0; background: none; border-radius: 12px;
}
.suggest button:hover, .suggest button:focus-visible { background: var(--ground); outline: none; }
.suggest:empty { display: none; }
/* Typing an address: the iPhone keyboard covers the lower half of the screen, and the suggestions sit
   right under the field. While the field has focus the block gets room to scroll up above the keyboard. */
#addrSearch { scroll-margin-top: 8px; }
#address.typing #addrSearch { min-height: 65vh; }
.suggest .ico { color: var(--ink-3); }
.suggest b { font-weight: 700; font-size: 15px; }
.suggest mark { background: none; color: var(--violet); }
.row-btn {
  width: 100%; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 4px; margin-top: 8px;
  border: 0; background: none; text-align: left; font-weight: 700; font-size: 15px; color: var(--violet); border-radius: 14px;
}
.row-btn:hover { background: rgba(91,46,229,.05); }
.addr-card { padding: 0; overflow: hidden; }
.addr-map { height: 120px; position: relative; background: #E9EBF3; }
.addr-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.addr-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  color: var(--violet); filter: drop-shadow(0 6px 8px rgba(91,46,229,.4));
  animation: drop .5s var(--ease-spring);
}
@keyframes drop { from { transform: translate(-50%, -180%); opacity: 0; } }
.addr-body { padding: 16px 20px; display: flex; align-items: center; gap: 12px; }

/* ==========================================================================
   05 Home
   ========================================================================== */
.home-top { padding: 60px 20px 8px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.addr-btn {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; min-height: 44px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); border-radius: 8px;
}
.addr-btn .ico { color: var(--violet); }
.hero-ask {
  position: relative; display: block; width: 100%; border: 0; text-align: left; color: #fff;
  border-radius: 32px; padding: 24px; margin-top: 12px; overflow: hidden; min-height: 268px;
  background:
    radial-gradient(260px 220px at 85% 85%, #7B57FF 0%, rgba(123,87,255,0) 70%),
    radial-gradient(300px 200px at 0% 0%, #4A1FD6 0%, rgba(74,31,214,0) 70%),
    var(--violet);
  box-shadow: 0 24px 48px -20px rgba(91,46,229,.7);
  transition: transform .25s var(--ease);
}
.hero-ask:active { transform: scale(.98); }
.hero-ask::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.2px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
}
.hero-ask .k { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.14); font-size: 12.5px; font-weight: 700; }
.hero-ask h2 { position: relative; font-size: 30px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 16px 0 8px; max-width: 220px; }
.hero-ask p { position: relative; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.82); margin: 0; max-width: 200px; }
/* Sim run r17: on iPhone SE the text ran ~9 px under the camera circle. */
@media (max-width: 380px) { .hero-ask p { max-width: calc(100% - 112px); } }
.hero-cam {
  position: absolute; right: 24px; bottom: 24px; width: 96px; height: 96px; border-radius: 50%;
  background: #fff; color: var(--violet); display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(20,8,90,.6);
}
.hero-cam .ico { width: 38px; height: 38px; stroke-width: 1.7; }
.hero-cam::before, .hero-cam::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35);
  animation: ring 2.6s var(--ease) infinite;
}
.hero-cam::after { animation-delay: 1.3s; }
@keyframes ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }
/* В потоке, а не absolute: длинное описание (4 строки на iPhone 390px) раньше
   налезало на «Voice on». Карточка просто становится выше. */
.hero-meta { position: relative; display: flex; gap: 8px; margin-top: 16px; max-width: 200px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.88); }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
/* Sim run r17: long Russian words ("Вентиляторы", "Кондиционер") pushed the 4th tile off the
   screen on iPhone SE; columns never grow past the screen and a long word breaks. */
.services .tile { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.tile {
  display: grid; justify-items: center; align-content: center; gap: 4px; padding: 12px 4px 10px; border: 0; border-radius: 20px;
  background: #fff; box-shadow: var(--shadow-1); font-size: 11.5px; font-weight: 700; color: var(--ink-2);
  transition: transform .15s var(--ease), box-shadow .15s; min-height: 94px; text-align: center;
}
@media (hover: hover) { .tile:hover { box-shadow: var(--shadow-2); color: var(--ink); } }
.tile:active { transform: scale(.95); }
.tile .ico { color: var(--violet); width: 24px; height: 24px; margin-bottom: 2px; }
.tile .svc3d { width: 40px; height: 40px; margin-bottom: 2px; }
.tile small { display: block; font-size: 10px; font-weight: 600; color: var(--violet); letter-spacing: -.01em; }
.job-card { display: grid; gap: 14px; }
.job-card .actions { display: flex; gap: 8px; }

/* ==========================================================================
   06 Camera
   ========================================================================== */
.cam-feed { position: absolute; inset: 0; overflow: hidden; }
.cam-feed img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: handheld 7s ease-in-out infinite; }
@keyframes handheld { 0%,100% { transform: scale(1.04) translate(0,0); } 33% { transform: scale(1.04) translate(-3px,2px) rotate(.2deg); } 66% { transform: scale(1.04) translate(2px,-2px) rotate(-.2deg); } }
.cam-feed::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.75) 82%);
}
.cam-feed.torch img { filter: brightness(1.25) contrast(1.05); }
.cam-top { position: relative; z-index: 2; padding: max(56px, calc(env(safe-area-inset-top, 0px) + 8px)) 16px 0;   /* 15 Pro Max: 59px safe area (28.11.2026) */
  display: flex; align-items: center; justify-content: space-between; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: rgba(20,21,42,.5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF5A4F; box-shadow: 0 0 0 0 rgba(255,90,79,.6); animation: recpulse 1.6s infinite; }
@keyframes recpulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,79,.6); } 100% { box-shadow: 0 0 0 8px rgba(255,90,79,0); } }

/* Neuro's marks on the live video (NeuroMarks in app.js): never take a tap */
.neuro-marks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.neuro-mark { transition: opacity .4s ease; }
.neuro-mark.fading { opacity: 0; }
.neuro-mark .nm-shape {
  fill: none; stroke: #00d4ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, .85));
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: nm-draw .5s ease-out forwards;
}
.neuro-mark .nm-head { fill: #00d4ff; filter: drop-shadow(0 0 6px rgba(0, 212, 255, .85)); }
.neuro-mark .nm-label rect { fill: rgba(6, 14, 28, .88); stroke: rgba(0, 212, 255, .6); stroke-width: 1; }
.neuro-mark .nm-label text { fill: #fff; font: 600 13px -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
@keyframes nm-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .neuro-mark .nm-shape { animation: none; stroke-dashoffset: 0; }
  .neuro-mark { transition: none; }
}
/* Floating Live HUD Diagnosis Card */
.neuro-diy {
  background: rgba(6, 14, 28, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.55);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 10px;
  color: #e6f1ff;
  max-height: 38vh;
  overflow-y: auto;
}
.neuro-diy .nd-badge { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #34d399; text-transform: uppercase; }
.neuro-diy .nd-title { font-size: 16px; font-weight: 700; margin: 4px 0 6px; }
.neuro-diy .nd-steps { margin: 0; padding-left: 22px; }
.neuro-diy .nd-step { font-size: 15px; line-height: 1.35; margin: 4px 0; color: rgba(230, 241, 255, 0.6); }
.neuro-diy .nd-step.current { color: #fff; font-size: 17px; font-weight: 600; }
.neuro-diy .nd-status { font-size: 13px; color: rgba(230, 241, 255, 0.75); margin-top: 6px; }
.neuro-diy.fixed { border-color: #34d399; }
.neuro-diy.fixed .nd-status { color: #34d399; font-weight: 600; }
.neuro-diy.stopped { border-color: rgba(251, 191, 36, 0.7); }
.orb-diagnosis-hud {
  background: rgba(6, 14, 28, 0.92);
  border: 1px solid rgba(0, 212, 255, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 212, 255, 0.25);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border-radius: 22px;
  padding: 16px 18px;
  margin-bottom: 14px;
  animation: slideUpHUD 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpHUD {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.diag-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.diag-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 999px;
  color: #80f0ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'SF Mono', Menlo, monospace;
}
.diag-hud-badge:has(#hudConfidence:empty) { display: none; }
.pulse-cyan {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 8px #00d4ff;
  animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
.diag-hud-price {
  font-size: 19px;
  font-weight: 800;
  color: #55f3a0;
  text-shadow: 0 0 12px rgba(85, 243, 160, 0.4);
}
.diag-hud-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.diag-hud-desc {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(200, 230, 255, 0.8);
  margin-bottom: 12px;
}
.diag-hud-actions {
  display: grid;
  /* The main button keeps the wider share (28.11.2026: on an iPhone SE in Spanish «Preguntarle más a Neuro»
     took its full width and «Reservar un técnico» was cut off). Both may wrap to two lines. */
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);   /* never wider than a narrow iPhone */
  gap: 10px;
}
.diag-hud-actions .btn { min-width: 0; white-space: normal; line-height: 1.2; text-align: center; }
.diag-hud-actions .primary-hud { white-space: normal !important; }
/* Our violet, like every other main button in the app (UI review 21.11.2026: the camera's was cyan). */
.primary-hud {
  background: var(--violet, #5B2EE5) !important;
  color: #fff !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  min-height: 48px;
  padding: 10px 16px !important;
  white-space: nowrap !important;
  box-shadow: 0 6px 20px rgba(91, 46, 229, 0.45) !important;
}
.secondary-hud {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #e0f8ff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
}
.orb-shutter {
  box-shadow: none !important; width: 96px; height: 96px; overflow: visible;
}
.orb-shutter canvas { width: 96px; height: 96px; display: block; border-radius: 50%; transition: transform .15s var(--ease); }
.orb-shutter:active canvas { transform: scale(.9); }
.orb-shutter:focus-visible { box-shadow: 0 0 0 4px var(--violet) !important; }

.reticle {
  position: absolute; z-index: 2; left: 98px; top: 272px; width: 160px; height: 230px;
  transition: all .7s var(--ease);
}
.reticle i { position: absolute; width: 28px; height: 28px; border: 3px solid #fff; }
.reticle i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.reticle i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.reticle i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.reticle i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.reticle.locked i { border-color: var(--amber); }
.reticle .tag {
  position: absolute; left: 0; top: -40px; white-space: nowrap; opacity: 0; transform: translateY(6px);
  transition: all .4s var(--ease);
}
.reticle.locked .tag { opacity: 1; transform: none; }
.reticle .tag .chip { background: var(--amber); color: var(--ink); font-weight: 700; }
.drip-pulse {
  position: absolute; left: 50%; bottom: 18px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  border: 2px solid var(--amber); opacity: 0; animation: ring 1.8s var(--ease) infinite;
}
.reticle.locked .drip-pulse { opacity: 1; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 16px 40px; }
.transcript {
  padding: 16px 18px; border-radius: 24px; margin-bottom: 20px;
  background: rgba(14,14,30,.62); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3); backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.transcript-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.transcript-head span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.wave i { width: 3px; border-radius: 2px; background: #C9B8FF; height: 30%; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.2s; } .wave i:nth-child(3) { animation-delay: -.5s; }
.wave i:nth-child(4) { animation-delay: -.1s; } .wave i:nth-child(5) { animation-delay: -.7s; }
.wave i:nth-child(6) { animation-delay: -.35s; } .wave i:nth-child(7) { animation-delay: -.6s; }
@keyframes wave { 0%,100% { height: 20%; } 50% { height: 100%; } }
.wave.off i { animation: none; height: 15%; background: rgba(255,255,255,.4); }
.transcript p { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 600; min-height: 69px; overflow-wrap: anywhere; }
#camera { overflow-x: hidden; }
#camera .cam-top .live-pill { max-width: calc(100% - 128px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Sim run r11: the price card never covers the close button and status at the top; it scrolls instead. */
#camera .cam-top { z-index: 4; }
/* Sim run r12: while the camera is open the page never scrolls, and the screen is no taller than the visible area. */
@media (max-width: 900px), (display-mode: standalone) {
  html.nh-cam-open, html.nh-cam-open body { overflow: hidden; overscroll-behavior: none; }
  html.nh-cam-open .stage, html.nh-cam-open .device, html.nh-cam-open .viewport { height: min(100dvh, var(--nh-visible-h, 100dvh)) !important; }
}
html.nh-cam-open:has(body.cap-native) { overflow: hidden; overscroll-behavior: none; }
html.nh-cam-open body.cap-native { overflow: hidden; }
html.nh-cam-open body.cap-native .device, html.nh-cam-open body.cap-native .viewport { height: min(100dvh, var(--nh-visible-h, 100dvh)) !important; }
#camera .cam-bottom { max-height: calc(100% - 104px - env(safe-area-inset-top, 0px)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.transcript p .pending { color: rgba(255,255,255,.45); }
.cam-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.cam-side { display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); }
.cam-side .icon-btn { width: 52px; height: 52px; border-radius: 18px; }
.cam-side .icon-btn[aria-pressed="true"] { background: var(--violet); color: #fff; }
.shutter {
  width: 84px; height: 84px; border-radius: 50%; border: 0; padding: 0; background: transparent;
  box-shadow: inset 0 0 0 4px #fff; display: grid; place-items: center; position: relative;
}
.shutter span {
  width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--violet);
  transition: transform .15s var(--ease);
}
.shutter:hover span { transform: scale(.95); }
.shutter:active span { transform: scale(.85); }
.shutter:focus-visible { outline: none; box-shadow: inset 0 0 0 4px #fff, 0 0 0 4px var(--violet); }
.cam-caption { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 14px; font-weight: 500; }
.flash { position: absolute; inset: 0; background: #fff; z-index: 50; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }

/* ==========================================================================
   07 Analyzing
   ========================================================================== */
.an-top { padding: 56px 12px 8px; display: grid; grid-template-columns: 88px 1fr 88px; align-items: center; flex: none; }
.an-top .title { text-align: center; font-weight: 700; font-size: 16px; display: flex; gap: 8px; align-items: center; justify-content: center; }
.an-photo { position: relative; height: 300px; border-radius: 28px; overflow: hidden; margin-top: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.an-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 44%; }
.an-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,11,23,0) 60%, rgba(11,11,23,.6)); }
.scanline {
  position: absolute; left: 0; right: 0; height: 90px; top: -90px; z-index: 1;
  background: linear-gradient(to bottom, rgba(155,125,255,0), rgba(155,125,255,.38) 85%, rgba(220,210,255,.9) 100%);
  animation: scan 2.2s var(--ease) infinite;
}
.done-scan .scanline { display: none; }
@keyframes scan { to { top: 100%; } }
.bbox {
  position: absolute; z-index: 2; left: 31%; top: 30%; width: 38%; height: 50%;
  border: 2px solid var(--amber); border-radius: 14px; opacity: 0; transform: scale(1.15);
  transition: all .6s var(--ease); box-shadow: 0 0 0 9999px rgba(11,11,23,0);
}
.bbox.show { opacity: 1; transform: none; box-shadow: 0 0 0 9999px rgba(11,11,23,.35); }
.bbox .chip { position: absolute; top: -38px; left: -2px; background: var(--amber); color: var(--ink); font-weight: 700; white-space: nowrap; }
.an-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.an-steps li { display: flex; gap: 14px; padding: 12px 4px; align-items: flex-start; transition: opacity .3s; }
.an-steps li.pending { opacity: .45; }
.st-ico {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
}
.st-ico .spinner { width: 18px; height: 18px; border-width: 2px; border-color: rgba(201,184,255,.25); border-top-color: #C9B8FF; }
li.done .st-ico { background: var(--green); color: #fff; animation: pop .3s var(--ease-spring); }
.an-steps b { display: block; font-size: 15.5px; font-weight: 700; }
.an-steps small { display: block; font-size: 13.5px; color: rgba(255,255,255,.62); margin-top: 3px; min-height: 19px; }
li.done small { color: #9EF0C6; }

/* ==========================================================================
   08 Diagnosis
   ========================================================================== */
.diag-photo { position: relative; height: 168px; border-radius: 20px; overflow: hidden; margin: -4px -4px 18px; }
.diag-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 46%; }
.diag-photo .bbox { opacity: 1; transform: none; left: 37%; top: 14%; width: 24%; height: 80%; box-shadow: none; }
.diag-photo .ai-tag { position: absolute; left: 12px; bottom: 12px; }
.conf { margin-top: 18px; }
.conf-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.conf-top b { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--green); width: 0; transition: width 1s var(--ease); }
.seen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.q-card { margin-top: 12px; }
.q-card .q-head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.human-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 4px 0; }

/* ==========================================================================
   09 Estimate
   ========================================================================== */
.price-hero { text-align: left; padding: 24px; }
.price {
  font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.04em; margin: 14px 0 10px;
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px;
}
.price small { font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--ink-3); }
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 18px; padding: 4px; border-radius: 14px; background: var(--ground); }
.modes div { text-align: center; padding: 8px 4px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--ink-3); line-height: 1.25; }
.modes div.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.modes div b { display: block; font-size: 12.5px; }
.onsite { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--violet-50); font-size: 13.5px; font-weight: 600; color: var(--violet-800); }
.onsite .ico { color: var(--violet); }

/* ==========================================================================
   10 Time
   ========================================================================== */
.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 4px 20px 8px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { position: relative; flex: none; }
.day input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.day span {
  display: grid; justify-items: center; gap: 2px; width: 64px; padding: 10px 0 12px; border-radius: 18px; cursor: pointer;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: all .15s;
}
.day small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.day b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.day em { font-style: normal; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.day input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.day input:checked + span small { color: rgba(255,255,255,.7); }
.day input:focus-visible + span { box-shadow: var(--ring); }
.slot-time { font-variant-numeric: tabular-nums; }
.soonest { box-shadow: inset 0 0 0 1.5px var(--line); }

/* ==========================================================================
   11 Confirm
   ========================================================================== */
.sum-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.sum-row + .sum-row { border-top: 1px solid var(--line-2); }
.sum-row .ico { color: var(--ink-3); margin-top: 1px; }
.sum-row b { display: block; font-size: 15px; font-weight: 700; }
.sum-row span { font-size: 13px; color: var(--ink-3); }
.pay-logo {
  width: 52px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 1px var(--line); background: #fff; font-weight: 800; font-size: 13px;
}
.pay-logo.apple { background: #000; color: #fff; box-shadow: none; gap: 1px; display: flex; justify-content: center; align-items: center; font-size: 13px; }
.pay-logo.visa { color: #1A1F71; font-style: italic; letter-spacing: -.02em; font-size: 14px; }
.deposit-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.deposit-split div { padding: 14px; border-radius: 16px; background: var(--ground); }
.deposit-split div.now { background: var(--violet-50); }
.deposit-split small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.deposit-split b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.deposit-split .now small { color: var(--violet-700); }

/* ==========================================================================
   12 Booked
   ========================================================================== */
.success-mark { width: 104px; height: 104px; margin: 8px auto 20px; position: relative; }
.success-mark svg { width: 100%; height: 100%; }
.success-mark .c { stroke: var(--green); stroke-width: 5; fill: var(--green-50); stroke-dasharray: 302; stroke-dashoffset: 302; }
.success-mark .t { stroke: var(--green); stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.play .success-mark .c { animation: draw .7s var(--ease) forwards; }
.play .success-mark .t { animation: draw .45s var(--ease) .55s forwards; }
.success-mark::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--green); opacity: 0;
}
.play .success-mark::after { animation: ring 1s var(--ease) .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rise { opacity: 0; transform: translateY(14px); }
.play .rise { animation: rise .6s var(--ease) forwards; }
.play .rise.d1 { animation-delay: .5s; } .play .rise.d2 { animation-delay: .65s; } .play .rise.d3 { animation-delay: .8s; } .play .rise.d4 { animation-delay: .95s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.tech { display: flex; gap: 16px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 22px; object-fit: cover; flex: none; background: var(--violet-100); }
.avatar.sm { width: 48px; height: 48px; border-radius: 16px; }
.avatar.lg { width: 96px; height: 96px; border-radius: 32px; }
.avatar-wrap { position: relative; flex: none; }
.avatar-wrap .verified {
  position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--violet); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff;
}
.stat-row { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; margin-top: 4px; flex-wrap: wrap; }
.stat-row span { display: inline-flex; align-items: center; gap: 4px; }
.creds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* Radar dispatch simulation */
.radar-dispatch {
  position: relative; width: 84px; height: 84px; margin: 4px auto 16px; border-radius: 50%;
  background: var(--violet-50); display: grid; place-items: center; color: var(--violet);
}
.radar-dispatch::before, .radar-dispatch::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--violet); animation: radar-ring 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.radar-dispatch::after { animation-delay: 1.1s; }
@keyframes radar-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Secure Entry PIN card */
.pin-card {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
  border-radius: 16px; background: var(--violet-50); border: 1px solid var(--violet-100);
  margin-top: 12px; gap: 12px;
}
.pin-code {
  font-size: 20px; font-weight: 800; letter-spacing: 0.2em; color: var(--violet);
  background: #fff; padding: 4px 10px; border-radius: 8px; box-shadow: var(--shadow-1);
  font-variant-numeric: tabular-nums; flex: none;
}
.pin-info b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.pin-info span { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; display: block; margin-top: 2px; }

/* Condo access box */
/* A house has no unit, floor, callbox or valet (28.11.2026: a house owner saw eight fields). A gated community's
   code still fits in "Pet notes / instructions" below, whose hint names the gate code. */
#addrChosen:has(input[name="htype"][value="House"]:checked) .condo-box,
#addrChosen:has(input[name="htype"][value="House"]:checked) .grid-2:has(#apt) { display: none; }
.condo-box {
  background: var(--ground); border-radius: 16px; padding: 14px; margin-top: 14px; border: 1px solid var(--line);
}
.condo-box .condo-title { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.condo-box .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.condo-box .input-wrap { min-height: 44px; }
.condo-box input { font-size: 16px; padding: 0; width: 100%; min-width: 0; }
.condo-box .input-wrap { padding: 0 14px; }
.condo-box .grid-2 { grid-template-columns: minmax(0, 1fr); }   /* 16px text: one field per row, nothing cut off */
/* iPhone zooms the whole page into a field whose text is under 16px and leaves it zoomed and shifted sideways
   (owner on iPhone 13.11.2026, «Callbox / Gate PIN» was 13px). Every field the customer types in is 16px or
   more: test/block-neuro-home-no-zoom.test.js and e2e qa/q25-no-zoom check it. */
.input-wrap select { font-size: 16px; }

/* ==========================================================================
   Radar Dispatch & Sonar
   ========================================================================== */
.radar-stage {
  position: relative; width: 100%; height: 310px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at center, #1D183B 0%, #0B0B17 72%);
  border-radius: 28px; margin-top: 6px; border: 1px solid rgba(255,255,255,.1);
}
.sonar-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--violet);
  box-shadow: 0 0 24px var(--violet); z-index: 5; display: grid; place-items: center; color: #fff;
}
.sonar-ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1.5px solid rgba(167,139,250,.5);
  pointer-events: none; animation: sonar-ping 2.8s cubic-bezier(.1,.8,.3,1) infinite;
}
.sonar-ring:nth-child(2) { animation-delay: .9s; }
.sonar-ring:nth-child(3) { animation-delay: 1.8s; }
@keyframes sonar-ping {
  0% { width: 24px; height: 24px; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { width: 360px; height: 360px; opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
.pro-beacon {
  position: absolute; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); font-size: 11px; font-weight: 700; color: #fff;
  transition: all .4s var(--ease); z-index: 6;
}
.pro-beacon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.pro-beacon.accepted {
  background: var(--violet); border-color: #C4B5FD; transform: scale(1.12);
  box-shadow: 0 0 25px rgba(91,46,229,.9); animation: pop .4s var(--ease-spring);
}
.telemetry-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 14px 16px; margin-top: 14px;
}
.telemetry-step {
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65);
  padding: 6px 0;
}
.telemetry-step.active { color: #fff; }
.telemetry-step.done { color: #86EFAC; }
.telemetry-step .ico { color: var(--violet); }
.telemetry-step.done .ico { color: var(--green); }

/* Alternative Pro Selection Cards */
.alt-pro-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px;
  border: 1.5px solid var(--line); margin-bottom: 10px; cursor: pointer; transition: all .2s;
  background: #fff; text-align: left; width: 100%;
}
.alt-pro-card:hover { border-color: var(--violet); background: var(--violet-50); }
.alt-pro-card.selected { border-color: var(--violet); background: #FAF8FF; box-shadow: 0 0 0 1px var(--violet); }

/* ==========================================================================
   13 Live status
   ========================================================================== */
.map { position: absolute; inset: 0 0 auto 0; height: 500px; background: #ECEEF4; overflow: hidden; }
.map svg { position: absolute; inset: 0; }
.van {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--violet); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 5px rgba(91,46,229,.18), 0 8px 18px rgba(91,46,229,.45);
  offset-path: path("M40 470 L120 400 L120 300 L230 300 L230 200 L300 140");
  offset-rotate: 0deg; offset-distance: 0%;
  transition: offset-distance 1.2s var(--ease);
}
.map-home {
  position: absolute; left: 300px; top: 140px; width: 46px; height: 46px; margin: -46px 0 0 -23px;
  color: var(--ink);
}
.eta-pill {
  position: absolute; z-index: 3; top: 56px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-2);
  font-weight: 700; font-size: 14px; white-space: nowrap;
}
.live-back { position: absolute; z-index: 3; top: max(52px, calc(env(safe-area-inset-top, 0px) + 8px)); left: 16px; }   /* clear of a 59px safe area (15 Pro Max), 28.11.2026 */
.live-sheet {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 32px 32px 0 0;
  box-shadow: 0 -16px 48px -16px rgba(20,21,42,.25); padding: 10px 20px 24px; display: flex; flex-direction: column;
  max-height: 530px;
}
.live-sheet .footer { padding: 8px 0 0; }
.live-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.live-eta { text-align: right; flex-shrink: 0; white-space: nowrap; }
/* The route and the van are a picture of a pro driving: shown only once one really is (owner 18.11.2026). */
#live:not([data-stage="on_the_way"]):not([data-stage="arrived"]) .live-route,
#live:not([data-stage="on_the_way"]):not([data-stage="arrived"]) .van { display: none; }
.live-eta b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.live-eta small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.tracker { list-style: none; margin: 18px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; position: relative; }
.tracker::before { content: ""; position: absolute; top: 13px; left: 10%; right: 10%; height: 3px; background: var(--line-2); border-radius: 2px; }
.tracker .bar { position: absolute; top: 13px; left: 10%; height: 3px; background: var(--violet); border-radius: 2px; transition: width .8s var(--ease); width: 0; }
.tracker li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: center; }
.tracker .node {
  width: 29px; height: 29px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2.5px var(--line);
  display: grid; place-items: center; color: #fff; transition: all .35s var(--ease); position: relative; z-index: 1;
}
.tracker li.done .node { background: var(--violet); box-shadow: none; }
.tracker li.cur .node { background: #fff; box-shadow: inset 0 0 0 2.5px var(--violet), 0 0 0 6px rgba(91,46,229,.14); }
.tracker li.cur .node::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); animation: pop 1.2s ease-in-out infinite alternate; }
.tracker li.done, .tracker li.cur { color: var(--ink); }
.late {
  display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--amber-50); border: 1px solid #FFE0A3;
  font-size: 13.5px; line-height: 1.45; color: var(--ink-2); margin-top: 14px;
  animation: rise .5s var(--ease) forwards;
}
.late .icon-tile { width: 32px; height: 32px; border-radius: 10px; background: var(--amber); color: var(--ink); }
.late strong { color: var(--ink); display: block; }
.contact { display: flex; gap: 8px; }
.contact .icon-btn { background: var(--ground); width: 48px; height: 48px; color: var(--ink); }
.contact .icon-btn:hover { background: var(--violet-50); color: var(--violet); }
.onsite-price { margin-top: 14px; }

/* ==========================================================================
   14 Done & pay
   ========================================================================== */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba figure { margin: 0; position: relative; height: 172px; border-radius: 18px; overflow: hidden; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba figcaption { position: absolute; left: 8px; top: 8px; }
.within {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--green-50);
  color: var(--green-ink); font-size: 13.5px; font-weight: 700; margin-top: 12px;
}
.within .ico { color: var(--green); }
.range-viz { position: relative; height: 6px; border-radius: 3px; background: #CDEFDC; margin: 12px 4px 4px; }
.range-viz i { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #fff; }
.range-viz + .range-lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--green-ink); font-weight: 600; }

/* ==========================================================================
   15 Rate
   ========================================================================== */
.stars { display: flex; justify-content: center; gap: 6px; border: 0; padding: 0; margin: 20px 0 6px; }
.stars label { position: relative; }
.stars input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.stars span {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; cursor: pointer; color: #D6D7E3;
  transition: transform .2s var(--ease-spring), color .15s;
}
.stars span .ico { width: 40px; height: 40px; fill: currentColor; stroke: currentColor; stroke-width: 1; }
.stars span.on { color: var(--amber); }
.stars span:hover { transform: scale(1.12); }
.stars input:focus-visible + span { box-shadow: var(--ring); }
.stars span.bump { animation: bump .35s var(--ease-spring); }
@keyframes bump { 50% { transform: scale(1.3) rotate(-8deg); } }
.rating-word { text-align: center; font-weight: 700; color: var(--ink-3); min-height: 22px; font-size: 15px; }
.rating-word.set { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag-btn {
  min-height: 44px; padding: 0 16px; border-radius: 14px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
}
.tag-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink-4); }
.tag-btn[aria-pressed="true"] { background: var(--violet-50); color: var(--violet-700); box-shadow: inset 0 0 0 2px var(--violet); }
.tag-btn .ico { display: none; }
.tag-btn[aria-pressed="true"] .ico { display: block; }
.tip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tip-grid label { position: relative; }
.tip-grid input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.tip-grid span {
  display: grid; place-items: center; min-height: 52px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 700; font-size: 15px; cursor: pointer; transition: all .15s;
}
.tip-grid input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.tip-grid input:focus-visible + span { box-shadow: var(--ring); }

/* ==========================================================================
   16 My Home
   ========================================================================== */
.mh-top {
  padding: max(54px, calc(env(safe-area-inset-top, 0px) + 12px)) 20px 8px;
  display: flex; justify-content: space-between; align-items: center; flex: none;
  /* 19.11.2026 (owner's screenshot): the page scrolled into a bare edge under the title and was cut mid-line.
     The header has the screen's own ground, and the page fades out over its first 18px instead of a hard cut. */
  background: var(--ground); position: relative; z-index: 2;
}
.mh-top + .scroll {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px);
}
/* Birthday (Account): the line full width, the month, day and Save under it. Side by side the text was
   squeezed to one word a line on an iPhone. */
.bd-block .bd-pick { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.bd-block select {
  border: 1px solid var(--line, #E3E5EC); border-radius: 10px; padding: 8px 10px; font: inherit; background: #fff;
  min-height: 40px;
}
.bd-block select#mhBdMonth { flex: 1 1 140px; min-width: 0; }
.bd-block select#mhBdDay { flex: 0 0 auto; }
#myhome .scroll, #home .home-scroll {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
.mh-hero {
  position: relative; overflow: hidden; border: 0; border-radius: 26px; padding: 20px; color: #fff;
  background:
    radial-gradient(280px 220px at 95% 15%, #7B57FF 0%, rgba(123,87,255,0) 70%),
    radial-gradient(260px 200px at 0% 100%, #4A1FD6 0%, rgba(74,31,214,0) 70%),
    var(--violet);
  box-shadow: 0 20px 44px -22px rgba(91,46,229,.65);
}
.mh-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.2px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(135deg, transparent 25%, #000 100%);
  mask-image: linear-gradient(135deg, transparent 25%, #000 100%);
}
.mh-hero-head { position: relative; display: flex; align-items: center; gap: 14px; }
.mh-badge {
  position: relative; width: 52px; height: 52px; flex: none; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 24px -10px rgba(20,8,90,.55);
}
.mh-badge-rim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mh-badge .ico { position: relative; width: 24px; height: 24px; color: #fff; }
.mh-eyebrow {
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.74); margin: 0 0 2px;
}
.mh-hero .h2 { color: #fff; margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.mh-hero .meta { color: rgba(255,255,255,.78); margin: 3px 0 0; font-size: 13px; }
.mh-hero .facts {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px;
}
.mh-hero .facts div {
  padding: 12px 10px; border-radius: 16px;
  background: rgba(15, 8, 48, .32);
  border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mh-hero .facts b {
  display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em;
  color: #fff; font-variant-numeric: tabular-nums;
}
.mh-hero .facts small {
  display: block; margin-top: 2px; font-size: 11.5px; color: rgba(255,255,255,.8); font-weight: 600;
}
.mh-lang-select {
  border: 1px solid var(--line, #E3E5EC); border-radius: 12px; padding: 8px 12px;
  font: inherit; font-weight: 600; color: var(--ink); background: var(--ground);
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.facts div { padding: 10px 12px; border-radius: 14px; background: var(--ground); }
.facts b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }   /* on the light pill, not the card's white text (was near-invisible) */
.facts small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.systems { display: grid; gap: 0; }
.reminder { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.reminder + .reminder { border-top: 1px solid var(--line-2); }
.history-item .head { display: flex; gap: 14px; align-items: flex-start; }
.history-item .price-tag { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.history-item .actions { display: flex; gap: 8px; margin-top: 14px; }
.history-item .actions .btn { flex: 1; }
/* A past order and a bill open on a tap (owner 13.11.2026: history like Uber's). */
.tap-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 0; -webkit-tap-highlight-color: transparent; }
.tap-card:active { transform: scale(.99); }
.tap-card.loading { opacity: .6; pointer-events: none; }
.tap-card .head > .ico { align-self: center; flex: none; }
.receipt-line { display: flex; justify-content: space-between; font-size: 14.5px; padding: 8px 0; }
.receipt-line span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Transitions
   ========================================================================== */
::view-transition-old(screen), ::view-transition-new(screen) { animation-duration: .34s; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
::view-transition-old(screen) { animation-name: vt-out; }
::view-transition-new(screen) { animation-name: vt-in; }
html[data-dir="back"]::view-transition-old(screen) { animation-name: vt-out-back; }
html[data-dir="back"]::view-transition-new(screen) { animation-name: vt-in-back; }
/* Top-level tab switches (Neuro / My Home / Account): Apple iOS UITabBarController feel — lock the tabbar in place, cross-fade gently instead of sideways push jump. */
html[data-vt="tab"] .screen.active .tabbar { view-transition-name: tabbar; }
html[data-vt="tab"]::view-transition-old(tabbar), html[data-vt="tab"]::view-transition-new(tabbar) { animation: none; }
html[data-vt="tab"]::view-transition-old(screen), html[data-vt="tab"]::view-transition-new(screen) { animation-duration: .18s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
html[data-vt="tab"]::view-transition-old(screen) { animation-name: vt-tab-out; }
html[data-vt="tab"]::view-transition-new(screen) { animation-name: vt-tab-in; }
@keyframes vt-tab-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes vt-tab-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vt-out { to { transform: translateX(-24%); opacity: .5; filter: brightness(.94); } }
@keyframes vt-in { from { transform: translateX(100%); } }
@keyframes vt-out-back { to { transform: translateX(100%); } }
@keyframes vt-in-back { from { transform: translateX(-24%); opacity: .5; } }
/* Fallback when View Transitions aren't supported */
.screen.enter-fwd { animation: vt-in .34s cubic-bezier(0.32, 0.72, 0, 1); }
.screen.enter-back { animation: vt-in-back .34s cubic-bezier(0.32, 0.72, 0, 1); }
.screen.enter-tab { animation: vt-tab-in .18s cubic-bezier(0.22, 1, 0.36, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-old(screen), ::view-transition-new(screen) { animation: none; }
  .rise { opacity: 1; transform: none; }
  .success-mark .c, .success-mark .t { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Tier-1 Modules: Living AI Orb, LiDAR, ServiceTitan GBB, NeuroCover $1M
   ========================================================================== */

/* 1. Living AI Orb (Siri / Gemini Live style) */
.neuro-orb-wrap {
  position: relative; width: 140px; height: 140px; margin: 18px auto 8px; display: grid; place-items: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
/* The conversation with the office on a past visit (My Home). */
.visit-chat { margin-top: 10px; display: grid; gap: 8px; }
.visit-chat[hidden] { display: none; }
.visit-msg { max-width: 88%; padding: 8px 12px; border-radius: 14px; background: var(--surface-2, #f1f1f6); }
.visit-msg p { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.visit-msg .meta { display: block; margin-top: 4px; font-size: 11px; }
.visit-msg.you { justify-self: end; background: var(--violet-100, #ede9fe); }
.icon-tile.amber { background: #fff4e0; color: #b45309; }
.neuro-orb-wrap canvas { width: 140px; height: 140px; display: block; transition: transform .3s var(--ease); }
.neuro-orb-halo {
  position: absolute; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,46,229,.35) 0%, rgba(18,183,106,.2) 45%, transparent 70%);
  filter: blur(14px); animation: orb-halo-pulse 3.6s ease-in-out infinite alternate;
}
.neuro-orb {
  position: relative; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9B82FF, #5B2EE5 55%, #14152A 95%);
  box-shadow: 0 0 35px rgba(91,46,229,.6), inset 0 0 25px rgba(255,255,255,.4);
  overflow: hidden; animation: orb-float 4.2s ease-in-out infinite alternate;
  display: grid; place-items: center;
}
.neuro-orb::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: radial-gradient(circle at 65% 75%, rgba(18,183,106,.65) 0%, rgba(255,176,32,.4) 40%, transparent 70%);
  mix-blend-mode: screen; animation: orb-spin 6.5s linear infinite;
}
.orb-core {
  position: relative; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255,255,255,.2) 75%);
  filter: blur(2px); animation: orb-core-pulse 2s ease-in-out infinite alternate;
}
.orb-speech {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.94); box-shadow: var(--shadow-2); border: 1px solid var(--violet-100);
  font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 6px auto 14px; max-width: 310px;
}
.orb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); animation: pop 1s ease-in-out infinite alternate; }

@keyframes orb-float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-6px) scale(1.03); }
}
@keyframes orb-halo-pulse {
  0% { transform: scale(.92); opacity: .7; }
  100% { transform: scale(1.15); opacity: 1; }
}
@keyframes orb-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes orb-core-pulse {
  0% { transform: scale(.85); opacity: .8; }
  100% { transform: scale(1.2); opacity: 1; filter: blur(4px); }
}

/* 2. LiDAR Depth Tag */
.lidar-tag {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 12px; background: rgba(14,15,26,.8); backdrop-filter: blur(8px);
  border: 1px solid rgba(18,183,106,.5); color: #86EFAC; font-size: 11px; font-weight: 700;
  letter-spacing: .02em; box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* 3. NeuroCover $1,000,000 Property Protection */
.neurocover-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, #FAF8FF 0%, #F0EBFF 100%);
  border: 1.5px solid #D8CCFF; margin-top: 14px;
}
.nc-shield {
  width: 36px; height: 36px; border-radius: 12px; background: var(--violet); color: #fff;
  display: grid; place-items: center; font-size: 18px; flex: none; box-shadow: 0 4px 12px rgba(91,46,229,.3);
}
.neurocover-card b { display: block; font-size: 13.5px; font-weight: 800; color: var(--violet-900); }
.neurocover-card span { display: block; font-size: 12px; color: var(--violet-700); line-height: 1.4; margin-top: 2px; }

/* 4. ServiceTitan Good / Better / Best Change Order Sheet */
.gbb-container { display: grid; gap: 10px; margin: 14px 0 16px; }
.gbb-card {
  border: 2px solid var(--line); border-radius: 18px; padding: 14px; background: #fff;
  text-align: left; cursor: pointer; transition: all .2s; position: relative; width: 100%;
}
.gbb-card:hover { border-color: var(--violet); background: var(--violet-50); }
.gbb-card.selected { border-color: var(--violet); background: #FAF8FF; box-shadow: 0 0 0 2px rgba(91,46,229,.25); }
.gbb-badge {
  position: absolute; top: -10px; right: 14px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--violet); color: #fff;
}
.gbb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.gbb-head h4 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 0; }
.gbb-head .price { font-size: 18px; font-weight: 800; color: var(--violet); margin: 0; }
.gbb-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; margin: 0 0 8px; }
.gbb-warranty { font-size: 11.5px; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 4px; }

/* ==========================================================================
   5. Mobile & Native Capacitor Wrapper Responsive Adaptation
   ========================================================================== */
@media (max-width: 900px), (display-mode: standalone) {
  html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--ground);
  }
  .stage {
    display: block !important;
    width: 100% !important;
    height: 100dvh !important;
  }
  .panel.left, .panel.right {
    display: none !important;
  }
  .device-area, .device-scale {
    padding: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    transform: none !important;
    display: block !important;
  }
  .device {
    width: 100% !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    background: var(--ground) !important;
  }
  .device::before, .device::after, .island, .home-indicator {
    display: none !important;
  }
  .viewport {
    width: 100% !important;
    height: 100dvh !important;
    border-radius: 0 !important;
  }
  .welcome-stage {
    height: clamp(240px, 34dvh, 330px) !important;
    padding-top: 36px !important;
  }
  .welcome-logo {
    top: 16px !important;
  }
  .neuro-orb-wrap {
    width: 96px !important;
    height: 96px !important;
    margin: 20px auto 6px !important;
  }
  .footer {
    padding: 10px 20px calc(env(safe-area-inset-bottom, 12px) + 12px) !important;
  }
}

body.cap-native {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ground);
}
body.cap-native .stage {
  display: block !important;
  width: 100% !important;
  height: 100dvh !important;
}
body.cap-native .panel.left, body.cap-native .panel.right,
body.cap-native .device::before, body.cap-native .device::after,
body.cap-native .island, body.cap-native .home-indicator {
  display: none !important;
}
body.cap-native .device-area, body.cap-native .device-scale,
body.cap-native .device, body.cap-native .viewport {
  width: 100% !important;
  height: 100dvh !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  transform: none !important;
}
body.cap-native .welcome-stage {
  height: clamp(250px, 35dvh, 340px) !important;
  padding-top: 40px !important;
}
body.cap-native .welcome-logo {
  top: 18px !important;
}

/* Аватар техника — инициалы из настоящего имени (фото техника приложение пока не получает). */
.avatar.initials { display: inline-flex; align-items: center; justify-content: center; color: var(--violet); font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.avatar.sm.initials { font-size: 16px; }
.avatar.lg.initials { font-size: 32px; }

/* W4 «как будет после»: лист выбора варианта и картинка с пометкой «примерно». */
.after-hud-btn { grid-column: 1 / -1; }
.after-sheet {
  position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-end; justify-content: center;
  background: rgba(2, 8, 20, 0.62); backdrop-filter: blur(6px);
}
.after-sheet.open { display: flex; }
.after-card {
  width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; box-sizing: border-box;
  background: #0b1626; color: #e8f6ff; border-radius: 22px 22px 0 0; padding: 18px 16px 24px;
  border: 1px solid rgba(0, 212, 255, 0.25);
}
.after-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.after-head h2 { font-size: 19px; margin: 0; }
.after-close { width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255,255,255,0.1); color: #fff; font-size: 24px; }
.after-sub { margin: 6px 0 12px; font-size: 14px; color: rgba(200, 230, 255, 0.85); }
/* Wraps on a narrow phone: on the SE the third kind sat off-screen (sim run r20). */
.after-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.after-kind, .after-opt {
  min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06); color: #e8f6ff; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer;
}
.after-kind.on, .after-opt.on { border-color: #00d4ff; background: rgba(0, 212, 255, 0.18); }
.after-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.after-swatch { width: 20px; height: 20px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.5); }
.after-custom input[type=color] { width: 28px; height: 28px; border: 0; padding: 0; background: transparent; }
.after-price { margin: 12px 0 0; font-size: 14px; color: #c8ecff; }
.after-error { margin: 12px 0 0; font-size: 14px; color: #ffd27a; }
.after-go, .after-book { width: 100%; margin-top: 14px; min-height: 48px; }
.after-result { margin-top: 16px; }
.after-figure { position: relative; margin: 0; }
.after-figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.after-badge {
  position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 12px;
  background: rgba(2, 8, 20, 0.78); color: #fff; font-size: 13px; font-weight: 700;
}
.after-what { margin: 10px 0 0; font-size: 15px; }
.after-disclaimer { margin: 8px 0 0; font-size: 13px; color: rgba(200, 230, 255, 0.8); }

/* The side panels (screen list, prototype price switch, design tokens) are for
   designers on localhost with ?proto=1 (app.js PROTO). A customer on a laptop
   sees just the app. */
body:not(.proto) .panel.left, body:not(.proto) .panel.right { display: none !important; }
body:not(.proto) .stage { grid-template-columns: 1fr; }

/* Тап срабатывает с первого раза: без задержки и зума от двойного тапа на iOS.
   Щипок для увеличения остаётся (доступность). */
button, a, label, input, select, textarea, .tile, .hero-ask { touch-action: manipulation; }

/* Карточка услуги (плитки «Or pick a service») */
.svc-card .svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.svc-card .svc-head .icon-tile { width: 48px; height: 48px; border-radius: 16px; background: var(--violet-50); color: var(--violet); display: grid; place-items: center; flex: none; }
.svc-card .svc-head .icon-tile .svc3d { width: 38px; height: 38px; }

/* All services (owner 13.11.2026): search, popular jobs with their price, sections of rows.
   3D service icons: design/neuro-home-icons → neurohome-assets/services/*.svg. */
.svc-search { margin-top: 4px; }
.svc-pop { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; }
.svc-pop::-webkit-scrollbar { display: none; }
.svc-pop-card {
  flex: none; width: 148px; scroll-snap-align: start; display: grid; gap: 6px; align-content: start; padding: 14px 12px;
  border: 0; border-radius: 20px; background: #fff; box-shadow: var(--shadow-1); text-align: left; font: inherit; color: var(--ink);
  transition: transform .15s var(--ease);
}
.svc-pop-card .svc3d { width: 48px; height: 48px; }
.svc-pop-card b { font-size: 13.5px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; hyphens: auto; }
.svc-pop-card span { font-size: 13px; font-weight: 800; color: var(--violet); }
.svc-rows { background: #fff; border-radius: 20px; box-shadow: var(--shadow-1); overflow: hidden; }
.svc-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px;
  border: 0; background: none; text-align: left; font: inherit; color: var(--ink); transition: background .15s;
}
.svc-row + .svc-row { border-top: 1px solid var(--line-2); }
.svc-row .svc3d { width: 42px; height: 42px; flex: none; }
.svc-row .grow { flex: 1; display: grid; gap: 2px; min-width: 0; }
.svc-row .grow b { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.svc-row .grow span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.svc-row .chev { width: 18px; height: 18px; flex: none; color: var(--ink-4); }
.svc-row:active { background: var(--violet-50); }
.svc-pop-card:active { transform: scale(.97); }
.svc-row:focus-visible, .svc-pop-card:focus-visible { outline: none; box-shadow: var(--ring); }
.svc-empty { display: grid; gap: 6px; padding: 28px 8px 8px; text-align: center; }
.svc-empty b { font-size: 16px; }
.svc-empty span { font-size: 14px; color: var(--ink-3); }
.svc-neuro { margin-top: 24px; display: grid; gap: 14px; padding: 18px; }
.svc-neuro .grow { display: grid; gap: 4px; min-width: 0; }
.svc-neuro .grow b { font-size: 15px; }
.svc-neuro .grow span { font-size: 13.5px; color: var(--ink-3); line-height: 1.4; }
.svc-neuro .btn { width: 100%; }
.svc-card .svc-price { display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--violet-50); margin: 4px 0 16px; }
.svc-card .svc-price b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.svc-card .svc-price span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.svc-card .check-list { margin-bottom: 14px; }
.svc-card .svc-note { font-size: 13px; line-height: 1.45; color: var(--ink-3); margin: 0 0 18px; }
.svc-card .svc-actions { display: grid; gap: 10px; }
.svc-card .svc-fine { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); text-align: center; margin: 12px 0 0; }

/* Приветствие: логотип в общем столбце, а не поверх плашки «Personal App by Gold Hands»
   (абсолютный логотип налезал на неё на iPhone, e2e 30.10.2026). */
#welcome .welcome-logo { position: static; }

/* Ссылки на Условия и Политику в мелком тексте: зона нажатия ~44px по высоте,
   строки не раздвигаются (вертикальный padding у строчного элемента — вне потока). */
.fine a[data-legal] { padding: 14px 2px; margin: 0 -2px; }

/* iPhone draws its own big "play" button over a camera video it would not autoplay
   (Low Power Mode). The camera is not a movie: hide it; the next tap starts the video. */
#webcamVideo::-webkit-media-controls,
#webcamVideo::-webkit-media-controls-start-playback-button,
#webcamVideo::-webkit-media-controls-overlay-play-button,
#webcamVideo::-webkit-media-controls-panel { display: none !important; -webkit-appearance: none; }
/* After a drop or a quiet pause: one tap brings Neuro back in the same camera. */
.transcript .talk-again { display: flex; margin-top: 10px; min-height: 44px; width: auto; padding: 0 16px; }

/* Not in your city yet: covers the address screen, waitlist by e-mail */
.city-closed { position: absolute; inset: 0; z-index: 30; background: var(--bg, #fff); display: grid; align-content: center; justify-items: stretch; gap: 14px; padding: 32px 24px; overflow-y: auto; }
.city-closed[hidden] { display: none; }
.city-closed .cc-art { display: grid; justify-items: center; margin-bottom: 4px; }
.city-closed .h1, .city-closed .body { text-align: center; }
.city-closed .cc-cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.city-closed .cc-cities li { padding: 6px 12px; border-radius: 999px; background: rgba(91,46,229,.08); color: #5b2ee5; font-weight: 600; font-size: 14px; }
.city-closed .cc-channel { display: grid; gap: 8px; margin: 4px 0 8px; }
.city-closed .cc-chan-label { font-weight: 600; font-size: 14px; }
.city-closed .cc-chan { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; font-size: 16px; }
.city-closed .cc-chan input { width: 20px; height: 20px; accent-color: #5b2ee5; }
.city-closed .cc-phone { color: var(--muted, #6b7280); font-size: 14px; margin-left: auto; }
.city-closed .hint { text-align: center; }

/* Spot price on the confirm screen (owner 13.11.2026): TV size tiers and the store-run add-on. */
.spot-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.spot-tier { display: grid; gap: 2px; padding: 12px 8px; min-height: 64px; border-radius: 16px; border: 1.5px solid var(--line, #E5E7EB); background: #fff; text-align: center; font: inherit; color: var(--ink); cursor: pointer; }
.spot-tier b { font-size: 17px; font-weight: 800; }
.spot-tier span { font-size: 13px; color: var(--ink-2); }
.spot-tier[aria-checked="true"] { border-color: var(--violet-700, #6D28D9); background: var(--violet-50); box-shadow: 0 0 0 1px var(--violet-700, #6D28D9) inset; }
/* TV size, picked like the big apps do (owner 13.11.2026): big tiles, a TV drawn bigger on each, the price on each. */
.tv-q { margin: 0 0 16px; }
.tv-q-title { font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.tv-q-hint { font-size: 13px; color: var(--ink-2); margin: 8px 2px 0; }
.spot-tiers.tv-sizes { gap: 10px; }
.spot-tier.tv-size { gap: 4px; padding: 12px 6px 14px; min-height: 148px; align-content: start; justify-items: center; }
.spot-tier.tv-size .tv-pic { width: 64px; height: 44px; margin-bottom: 4px; }
.spot-tier.tv-size .tv-frame { fill: var(--ink, #111827); }
.spot-tier.tv-size .tv-glass { fill: #6366F1; opacity: .85; }
.spot-tier.tv-size .tv-wall { fill: var(--line, #E5E7EB); }
.spot-tier.tv-size b { font-size: 16px; }
.spot-tier.tv-size small { font-size: 12px; color: var(--ink-2); }
.spot-tier.tv-size .tv-price { font-size: 18px; font-weight: 800; color: var(--violet-700, #6D28D9); margin-top: 2px; }
.spot-tier.tv-size[aria-checked="true"] .tv-glass { fill: var(--violet-700, #6D28D9); opacity: 1; }
.tv-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tv-opt { display: grid; gap: 4px; padding: 12px; min-height: 64px; border-radius: 16px; border: 1.5px solid var(--line, #E5E7EB); background: #fff; text-align: left; font: inherit; color: var(--ink); cursor: pointer; align-content: start; }
.tv-opt b { font-size: 15px; font-weight: 800; line-height: 1.25; }
.tv-opt span { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.tv-opt[aria-checked="true"] { border-color: var(--violet-700, #6D28D9); background: var(--violet-50); box-shadow: 0 0 0 1px var(--violet-700, #6D28D9) inset; }
.svc-actions .btn[disabled] { opacity: .55; cursor: not-allowed; }
.addon-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line, #E5E7EB); background: #fff; min-height: 44px; cursor: pointer; }
.addon-row input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--violet-700, #6D28D9); }
.addon-row .grow { display: grid; gap: 2px; }
.addon-row b { font-size: 15px; }
.addon-row span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* Flat-price jobs on a service card (owner 13.11.2026). */
.svc-card .flat-list { display: grid; gap: 8px; margin-bottom: 16px; }
.svc-card .flat-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line, #E5E7EB); background: #fff; }
.svc-card .flat-row .grow { display: grid; gap: 2px; min-width: 0; flex: 1; }
.svc-card .flat-row b { font-size: 15px; }
.svc-card .flat-row .grow > span { font-size: 13px; color: var(--ink-2); }
.svc-card .flat-row .btn { width: auto; min-height: 44px; padding: 0 16px; flex: none; }
/* «Book» on a flat price (owner 13.11.2026): .btn.sm drops the secondary button's border, and the button
   read as plain text. A violet-tinted pill with a violet outline reads as a button next to the big «Choose a time». */
.svc-card .flat-row .btn.secondary { --bg: var(--violet-50); --fg: var(--violet); box-shadow: inset 0 0 0 1.5px var(--violet); }
.svc-card .flat-row .btn.secondary:hover { background: var(--violet-100); }

/* ===================================================================
   01 Welcome: the "Camera" start screen with Neuro (owner pick, 13.11)
   Neuro the mascot stands by a camera frame and says what it sees. The old violet stage,
   its grid and the orb are gone from this screen; the orb lives on in the camera.
   Scoped to #welcome.dark and !important where the phone/native rules above force heights.
   ========================================================================== */
#welcome.dark .welcome-stage {
  height: auto !important; flex: none; overflow: visible; border-radius: 0; background: none;
  padding: max(44px, calc(env(safe-area-inset-top, 0px) + 8px)) 16px 0 !important;
  display: block; position: relative; z-index: 2;
}
#welcome.dark .welcome-stage::before { display: none; }
#welcome .welcome-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 12px; }
#welcome .welcome-brand .welcome-logo { top: auto !important; color: #fff; gap: 10px; font-size: 19px; }
#welcome .welcome-brand .welcome-logo img { width: 34px; height: 34px; display: block; }
.by-gh {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255,255,255,.88); background: rgba(255,255,255,.1); padding: 4px 10px; border-radius: 99px;
}
/* One switch for the marketplace day: BRAND.byGoldHands = false in app.js sets this attribute. */
[data-by-gh="off"] .by-gh { display: none !important; }
.welcome-cam {
  position: relative; height: clamp(220px, 40dvh, 380px); border-radius: 28px; overflow: hidden;
  background: #1a1a2e; box-shadow: 0 24px 60px -24px rgba(91,46,229,.55);
}
.welcome-cam-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.welcome-cam::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,0) 28%, rgba(0,0,0,0) 58%, rgba(0,0,0,.5));
}
.welcome-cam-top { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.welcome-cam-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 99px;
  background: rgba(20,21,42,.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff; font-size: 13px; font-weight: 700;
}
.welcome-cam-pill.round { width: 32px; padding: 0; justify-content: center; }
.welcome-cam-pill .rec { width: 8px; height: 8px; border-radius: 50%; background: #FF4D4D; box-shadow: 0 0 0 3px rgba(255,77,77,.3); animation: pop 1s ease-in-out infinite alternate; }
.welcome-cam-corner { position: absolute; z-index: 2; width: 40px; height: 40px; border: 3px solid #fff; opacity: .95; }
.welcome-cam-corner.tl { top: 20%; left: 18%; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.welcome-cam-corner.tr { top: 20%; right: 18%; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.welcome-cam-corner.bl { top: calc(20% + 150px); left: 18%; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.welcome-cam-corner.br { top: calc(20% + 150px); right: 18%; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.welcome-bubble {
  position: absolute; z-index: 3; left: 30px; bottom: 16px; max-width: calc(100% - 196px); min-width: 170px;
  padding: 11px 15px; border-radius: 20px; background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 1.35; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45);
}
.welcome-bubble::after {
  content: ""; position: absolute; right: -7px; top: 18px;
  border: 8px solid transparent; border-right: 0; border-left-color: #fff;
}
#orbSpeechText { transition: opacity .15s; }
.welcome-neuro {
  position: absolute; z-index: 3; right: 12px; bottom: -44px; width: 146px; padding: 0; border: 0; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
/* The picture moves, the button stays put (a moving button is hard to tap and never "stable"). */
.welcome-neuro img {
  display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 20px rgba(0,0,0,.5));
  transform-origin: 50% 100%; animation: neuro-breathe 4.2s ease-in-out infinite;
}
.welcome-neuro.talk img { animation: neuro-hop .5s var(--ease-spring); }
.welcome-neuro:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 24px; }
@keyframes neuro-breathe { 0%,100% { transform: rotate(5deg) translateY(0) scale(1); } 50% { transform: rotate(4deg) translateY(-5px) scale(1.015); } }
@keyframes neuro-hop { 0% { transform: rotate(5deg) scale(1); } 40% { transform: rotate(0deg) translateY(-14px) scale(1.06); } 100% { transform: rotate(5deg) scale(1); } }
#welcome.dark .display { color: #fff; max-width: 66%; font-size: 30px; }
#welcome.dark .lead { color: rgba(255,255,255,.7); }
/* Two promises on the welcome screen: two equal tiles, not two of three columns (UI review 21.11.2026: in Spanish
   «Precio fijo o por hora…» was cut in a third-wide tile and the screen ran under the button on an iPhone SE). */
#welcome .trust { grid-template-columns: repeat(2, 1fr); }
#welcome.dark .trust div { background: rgba(255,255,255,.07); box-shadow: none; color: rgba(255,255,255,.82); }
#welcome.dark .trust .ico { color: #B9A6FF; }
#welcome.dark .footer .link { color: rgba(255,255,255,.8); }
#welcome.dark .footer .btn .ico { width: 20px; height: 20px; }
@media (max-height: 700px) {
  .welcome-neuro { width: 118px; bottom: -34px; }
  .welcome-bubble { max-width: calc(100% - 160px); font-size: 13px; }
  .welcome-cam-corner.bl, .welcome-cam-corner.br { top: calc(20% + 100px); }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-neuro img, .welcome-neuro.talk img, .welcome-cam-pill .rec { animation: none; }
  .welcome-neuro img { transform: rotate(5deg); }
}
/* App header (Home): the Neuro Home logo next to the name. */
.brand-line { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.brand-line img { width: 22px; height: 22px; display: block; }
.brand-line .by-gh { color: var(--violet); background: var(--violet-50); font-size: 10px; padding: 2px 8px; }
/* «С этим часто заказывают» (owner 13.11.2026): one tap adds, nothing is pre-ticked, per-piece add-ons get a stepper. */
.addon-row { align-items: center; margin-bottom: 8px; }
.addon-row.on { border-color: var(--violet-700, #6D28D9); background: var(--violet-50, #F5F3FF); }
.addon-row .addon-price { font-size: 14px; font-weight: 700; color: var(--ink); }
.addon-add { flex: none; min-height: 44px; min-width: 88px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--violet-700, #6D28D9); background: #fff; color: var(--violet-700, #6D28D9); font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.addon-add[aria-pressed="true"] { background: var(--violet-700, #6D28D9); color: #fff; }
.addon-add .ico { width: 14px; height: 14px; }
.addon-qty { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.addon-qty .qty-btn { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--violet-700, #6D28D9); background: #fff; color: var(--violet-700, #6D28D9); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.addon-qty .qty-btn:disabled { opacity: .4; cursor: default; }
.addon-qty .qty-n { min-width: 22px; text-align: center; font-size: 17px; }
.addon-more { width: 100%; min-height: 44px; border: 0; background: none; color: var(--violet-700, #6D28D9); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.addon-hint { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 4px; border-radius: 16px; background: var(--violet-50, #F5F3FF); font-size: 14px; color: var(--ink); }
.addon-hint .grow { flex: 1; line-height: 1.4; }

/* Home: Neuro stands in the top-right corner of the "Ask Neuro" card, over the camera button
   (owner 13.11). The headline keeps clear of it; only the picture moves. */
.hero-neuro {
  position: absolute; top: 12px; right: 14px; width: 104px; height: auto; pointer-events: none;
  filter: drop-shadow(0 12px 16px rgba(20,8,90,.45)); transform-origin: 50% 100%;
  animation: neuro-float 4.2s ease-in-out infinite;
}
.hero-ask:has(.hero-neuro) h2 { max-width: calc(100% - 112px); }
@keyframes neuro-float { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-5px); } }
@media (max-width: 380px) { .hero-neuro { width: 88px; } }
@media (prefers-reduced-motion: reduce) { .hero-neuro { animation: none; transform: rotate(-4deg); } }

/* ==========================================================================
   18 Describe it + 19 What Neuro understood (owner 13–14.11.2026, mockup 3B)
   Words, photos and video instead of the live camera; the same Neuro and order.
   ========================================================================== */
.dr-hero {
  position: relative; flex: none; height: 252px; color: #fff; overflow: hidden;
  border-radius: 0 0 32px 32px;
  background:
    radial-gradient(260px 220px at 85% 90%, #7B57FF 0%, rgba(123,87,255,0) 70%),
    radial-gradient(300px 220px at 0% 0%, #3C17B8 0%, rgba(60,23,184,0) 70%),
    var(--violet);
}
.dr-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.2px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%); mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
}
.dr-nav { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 54px 16px 0; }
.dr-glass, .dr-live {
  background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.dr-glass:hover { background: rgba(255,255,255,.22); }
.dr-live { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.dr-neuro { position: absolute; left: 10px; bottom: 6px; width: 112px; height: auto; filter: drop-shadow(0 14px 18px rgba(20,8,90,.45)); animation: neuro-float 5s ease-in-out infinite; pointer-events: none; }
.dr-bubble {
  position: absolute; left: 132px; right: 16px; top: 112px; z-index: 1; background: #fff; color: var(--ink);
  border-radius: 22px; padding: 14px 16px; box-shadow: 0 12px 30px -10px rgba(20,8,90,.55);
}
.dr-bubble::before { content: ""; position: absolute; left: -10px; bottom: 22px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.dr-bubble b { display: block; font-size: 12.5px; color: var(--violet); margin-bottom: 3px; }
.dr-bubble p { margin: 0; font-size: 14px; line-height: 1.38; font-weight: 700; }
.dr-scroll { padding-top: 0; }
.dr-card { margin-top: -18px; position: relative; z-index: 2; padding: 16px; }
.dr-card textarea {
  width: 100%; min-height: 108px; resize: none; border: 0; outline: none; background: transparent;
  font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); padding: 2px;
}
.dr-card textarea::placeholder { color: var(--ink-4); font-weight: 500; }
.dr-tools { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.dr-dictate { min-height: 36px; }
.dr-dictate.on { background: var(--violet); color: #fff; }
.dr-dictate.on .ico { animation: recpulse 1.6s infinite; border-radius: 50%; }
.dr-count { font-size: 12px; font-weight: 600; color: var(--ink-4); }
.dr-media-head { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 10px; }
.dr-media-head b { font-size: 15px; }
.dr-media-head span { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.dr-media { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dr-tile, .dr-add { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.dr-tile { background: var(--ground); display: grid; place-items: center; }
.dr-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dr-tile.busy img { opacity: .5; }
.dr-tile .spinner { position: relative; }
.dr-play { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255,255,255,.92); }
.dr-play::after { content: ""; position: absolute; left: 12px; top: 9px; border: 6px solid transparent; border-left: 9px solid var(--violet); border-right: 0; }
.dr-dur { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; font-weight: 700; }
.dr-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(20,21,42,.72); color: #fff; padding: 0; }
.dr-add {
  border: 1.5px dashed rgba(91,46,229,.45); background: var(--violet-50); color: var(--violet);
  display: grid; place-content: center; justify-items: center; gap: 2px; font-size: 12px; font-weight: 700;
}
.dr-tip { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; }
.dr-tip .ico { color: var(--ink-3); }
.dr-starts-title { margin: 18px 4px 10px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.dr-starts { display: flex; flex-wrap: wrap; gap: 8px; }
/* Apple's 44pt tap target for every chip on Describe it (28.11.2026: Dictate was 36px, the starters 38px). */
#text-request button.chip { min-height: 44px; }
.dr-start { min-height: 44px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.dr-steps { list-style: none; margin: 16px 0 8px; padding: 12px 8px; border-radius: 20px; background: var(--violet-50); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.dr-steps li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--violet-800); }
.dr-steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-style: normal; font-size: 13px; font-weight: 800; }
.dr-progress { height: 6px; border-radius: 3px; background: var(--violet-100); overflow: hidden; }
.dr-progress i { display: block; height: 100%; width: var(--p, 0%); background: var(--violet); border-radius: 3px; transition: width .35s var(--ease); }
.dr-menu { display: grid; gap: 8px; }
.dr-menu-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 12px; border: 0; border-radius: 18px; background: var(--ground); text-align: left; }
.dr-menu-row .grow { display: grid; gap: 2px; }
.dr-menu-row b { font-size: 15.5px; }
.dr-menu-row span span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.dr-said { margin-bottom: 12px; display: grid; gap: 8px; }
.dr-said .body { font-weight: 500; color: var(--ink); }
.dr-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.dr-strip:empty { display: none; }
.dr-mini { position: relative; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; }
.dr-mini img { width: 100%; height: 100%; object-fit: cover; }
.dr-mini.video::after { content: ""; position: absolute; left: 18px; top: 15px; border: 8px solid transparent; border-left: 11px solid #fff; border-right: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.dr-match { display: grid; gap: 8px; box-shadow: var(--shadow-2), inset 0 0 0 1.5px var(--violet-100); }
.dr-match .chip { justify-self: start; min-height: 28px; font-size: 12px; }
.dr-match .price { margin-top: 4px; }
.dr-match .check-list { margin-top: 8px; }
.dr-edit { justify-self: center; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
/* Catalog tile «Something else? Describe it» (mockup 02). */
.dr-else {
  position: relative; display: grid; gap: 6px; width: 100%; margin-top: 24px; padding: 18px 120px 18px 18px; border: 0; border-radius: 24px;
  text-align: left; color: #fff; overflow: hidden; min-height: 140px;
  background: radial-gradient(260px 200px at 90% 100%, #7B57FF 0%, rgba(123,87,255,0) 70%), var(--violet);
  box-shadow: var(--shadow-violet);
}
.dr-else-k { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12px; font-weight: 700; }
.dr-else b { font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.dr-else-sub { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.84); font-weight: 600; }
.dr-else img { position: absolute; right: 8px; bottom: -4px; width: 104px; height: auto; pointer-events: none; }
.dr-else:active { transform: scale(.98); }
@media (max-width: 360px) { .dr-bubble { left: 116px; } .dr-neuro { width: 98px; } .dr-media { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .dr-neuro { animation: none; } }
/* .btn / .note / .card set their own display, which beats the hidden attribute: keep hidden hidden here. */
#text-request [hidden], #understood [hidden] { display: none !important; }
/* Typing (28.11.2026): with the keyboard up the header folds to its top bar so the field has the screen. */
#text-request .dr-hero { transition: height .22s ease; }
#text-request .dr-neuro, #text-request .dr-bubble { transition: opacity .15s ease; }
#text-request.dr-typing .dr-hero { height: 110px; border-radius: 0 0 24px 24px; }  /* .dr-nav: 54px top + 44px buttons */
#text-request.dr-typing .dr-neuro, #text-request.dr-typing .dr-bubble { opacity: 0; visibility: hidden; }
#text-request.dr-typing .dr-card { margin-top: 12px; }
#text-request.dr-typing .dr-card textarea { min-height: 180px; }
#text-request.dr-typing .dr-starts-title, #text-request.dr-typing .dr-starts, #text-request.dr-typing .dr-steps, #text-request.dr-typing .dr-tip { display: none; }
@media (prefers-reduced-motion: reduce) { #text-request .dr-hero, #text-request .dr-neuro, #text-request .dr-bubble { transition: none; } }

/* ==========================================================================
   Home without a pinned header (owner 13.11.2026)
   The Neuro Home logo floats on the screen — transparent, no bar — with "by Gold Hands"
   under it, and scrolls away with the content, so Home uses the whole screen.
   The address moved to My Home (#mhAddressCard) and the booking step; support is the Dispatch tab.
   ========================================================================== */
/* Mockup 1A (owner pick 14.11): the violet block runs from the top edge, full width, the logo on it. */
#home .home-scroll { padding-top: 0; }
.home-hero {
  position: relative; margin: 0 -20px; overflow: hidden; color: #fff;
  padding: max(52px, calc(env(safe-area-inset-top, 0px) + 10px)) 20px 20px;
  border-radius: 0 0 36px 36px;
  background:
    radial-gradient(320px 260px at 90% 70%, #7B57FF 0%, rgba(123,87,255,0) 70%),
    radial-gradient(340px 240px at 0% 0%, #4A1FD6 0%, rgba(74,31,214,0) 70%),
    var(--violet);
  box-shadow: 0 24px 48px -24px rgba(91,46,229,.7);
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.2px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%); mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
}
.home-brand { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 2px 6px; background: none; }
.home-brand .brand-line { margin: 0; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #fff !important; background: none; }
.home-brand .brand-line img { width: 30px; height: 30px; }
.home-brand .by-gh { color: rgba(255,255,255,.78); background: none; padding: 0 0 0 38px; font-size: 10px; letter-spacing: .08em; }
.home-hero .hero-ask { background: none; box-shadow: none; border-radius: 0; margin-top: 4px; padding: 8px 2px 4px; min-height: 300px; overflow: visible; }
.home-hero .hero-ask::before { display: none; }
.home-hero .hero-ask:active { transform: scale(.99); }
.home-hero .hero-ask h2 { max-width: calc(100% - 132px); }
.home-hero .hero-ask p { max-width: calc(100% - 136px); }
/* The camera button (owner 14.11): no white disc. A see-through glass button in the logo's neon colours
   (pink → violet → blue rim, glassy fill), a big neon camera glyph, and it gently breathes with neon rings. */
.home-hero .hero-cam { width: 116px; height: 116px; right: 0; bottom: 0; animation: cam-breathe 2.4s ease-in-out infinite; }
.home-hero .hero-cam.glass {
  color: #fff;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.34), rgba(255,255,255,.10) 42%, rgba(255,255,255,.04) 70%);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.45), inset 0 -16px 28px rgba(255,123,234,.14),
    0 0 34px rgba(185,140,255,.5), 0 14px 30px -10px rgba(20,8,90,.5);
}
.home-hero .hero-cam .cam-rim { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(255,123,234,.55)); }
.home-hero .hero-cam .ico { position: relative; width: 56px; height: 56px; stroke-width: 1.8; }
.home-hero .hero-cam .cam-neon { stroke: url(#nhNeon); fill: none; filter: drop-shadow(0 0 5px rgba(255,123,234,.9)) drop-shadow(0 0 10px rgba(111,182,255,.6)); }
.home-hero .hero-cam::before, .home-hero .hero-cam::after { inset: -12px; border-width: 2.5px; animation-duration: 2.4s; }
.home-hero .hero-cam::before { border-color: rgba(255,139,239,.6); box-shadow: 0 0 14px rgba(255,139,239,.35); }
.home-hero .hero-cam::after { border-color: rgba(111,182,255,.6); box-shadow: 0 0 14px rgba(111,182,255,.35); animation-delay: 1.2s; }
@keyframes cam-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* Neuro stands above the camera, clear of it: the whole button stays visible (coordinator review 14.11). */
.home-hero .hero-neuro { right: 10px; top: -10px; width: 100px; }
.hero-text-req {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 18px; padding: 12px 14px 12px 12px;
  border: 1.5px solid rgba(255,255,255,.28); border-radius: 22px; background: rgba(255,255,255,.1); color: #fff; text-align: left; font: inherit;
}
.hero-text-req[hidden] { display: none; }
.hero-text-req .htr-ico { --gi-size: 52px; --gi-glyph: 28px; }
.hero-text-req .grow { flex: 1; min-width: 0; }
.hero-text-req b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.hero-text-req small { display: block; font-size: 13px; color: rgba(255,255,255,.8); margin-top: 2px; }
.hero-text-req:active { transform: scale(.98); }
#home .home-hero + #homeUnfinished, #home .home-hero ~ .section-title:first-of-type { margin-top: 18px; }
@media (max-width: 380px) {
  .home-hero .hero-cam { width: 96px; height: 96px; }
  .home-hero .hero-ask h2, .home-hero .hero-ask p { max-width: calc(100% - 108px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .hero-cam, .home-hero .hero-cam::before, .home-hero .hero-cam::after { animation: none; }
}
#confirm .sum-row .grow { flex: 1; min-width: 0; }
#confirm .sum-row #cChangeAddr { align-self: center; flex: none; }
/* .btn.sm drops the secondary border — keep "Change" looking like a button. */
#acProfile .btn.secondary, #account .ac-page .btn.secondary { --bg: var(--violet-50); --fg: var(--violet); box-shadow: inset 0 0 0 1.5px var(--violet); flex: none; }

/* ===================================================================   Glass neon icons — one shared look for the whole customer app (owner 14.11.2026:
   «охуенного качества, использовать везде»). Frosted glass, a neon rim in the logo's
   colours (pink → violet → blue) and a glowing gradient glyph; the gradients are
   nhNeon / nhNeonInk / nhRim in the icon sprite (app.html).
     <span class="glass-ico"><svg class="ico">…</svg></span>           on violet / dark
     <span class="glass-ico on-light"><svg class="ico">…</svg></span>  on white screens
   Sizes: --gi-size (box), --gi-glyph (icon). The 3D service icons in the grid are not this.
   ========================================================================== */
.glass-ico {
  --gi-size: 44px; --gi-glyph: 24px; --gi-r: 14px;
  position: relative; flex: none; display: inline-grid; place-items: center;
  width: var(--gi-size); height: var(--gi-size); border-radius: var(--gi-r);
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.32), rgba(255,255,255,.08) 50%, rgba(255,255,255,.03));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 18px rgba(185,140,255,.45);
}
.glass-ico::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: linear-gradient(135deg, #FF7BEA, #9B6BFF 50%, #5FB0FF);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(255,123,234,.5));
}
.glass-ico > .ico {
  position: relative; width: var(--gi-glyph); height: var(--gi-glyph); fill: none; stroke: url(#nhNeon); stroke-width: 1.9;
  filter: drop-shadow(0 0 4px rgba(255,123,234,.85)) drop-shadow(0 0 8px rgba(111,182,255,.5));
}
.glass-ico.on-light {
  background: radial-gradient(circle at 30% 25%, rgba(155,107,255,.16), rgba(155,107,255,.05) 60%), rgba(255,255,255,.7);
  box-shadow: 0 0 14px rgba(155,107,255,.24);
}
.glass-ico.on-light > .ico { stroke: url(#nhNeonInk); filter: drop-shadow(0 0 3px rgba(226,63,203,.35)) drop-shadow(0 0 6px rgba(47,134,238,.25)); }
.glass-ico.sm { --gi-size: 36px; --gi-glyph: 20px; --gi-r: 12px; }
/* Bottom bar: the open tab's icon sits in glass; the others are the same neon glyph, quieter. */
.tab .glass-ico.tab-gi { --gi-size: 40px; --gi-glyph: 22px; --gi-r: 13px; background: none; box-shadow: none; }
.tab .glass-ico.tab-gi::before { opacity: 0; }
.tab:not([aria-current="page"]) .glass-ico.tab-gi > .ico { opacity: .55; filter: none; }
.tab[aria-current="page"] .glass-ico.tab-gi { background: radial-gradient(circle at 30% 25%, rgba(155,107,255,.16), rgba(155,107,255,.05) 60%), rgba(255,255,255,.7); box-shadow: 0 0 14px rgba(155,107,255,.24); }
.tab[aria-current="page"] .glass-ico.tab-gi::before { opacity: 1; }
/* Header buttons on white screens (My Home edit). */
.icon-btn.glass-ico.on-light { --gi-size: 48px; --gi-r: 16px; }
/* Booking summary and booked-screen rows. */
.sum-row .glass-ico { margin-top: -2px; }
/* Existing icon tiles (estimate, service card, help) take the same look. */
.icon-tile:not(.green):not(.amber):not(.ink) { position: relative; background: radial-gradient(circle at 30% 25%, rgba(155,107,255,.16), rgba(155,107,255,.05) 60%), rgba(255,255,255,.7) !important; box-shadow: 0 0 14px rgba(155,107,255,.24); }
.icon-tile:not(.green):not(.amber):not(.ink)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: linear-gradient(135deg, #FF7BEA, #9B6BFF 50%, #5FB0FF);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.icon-tile:not(.green):not(.amber):not(.ink) > .ico { position: relative; stroke: url(#nhNeonInk); filter: drop-shadow(0 0 3px rgba(226,63,203,.35)); }
.icon-tile > img { position: relative; }

/* Service icons (owner pick 14.11, option 2): the realistic 3D object inside the same glass tile. */
.glass-ico > img { position: relative; display: block; filter: drop-shadow(0 0 5px rgba(185,140,255,.3)); }
.tile .svc-gi { --gi-size: 54px; --gi-r: 18px; margin-bottom: 4px; }
.tile .svc-gi .svc3d { width: 40px; height: 40px; margin: 0; }
.svc-pop-card .svc-gi { --gi-size: 58px; --gi-r: 19px; }
.svc-pop-card .svc-gi .svc3d { width: 44px; height: 44px; }
.svc-row .svc-gi { --gi-size: 48px; --gi-r: 16px; }
.svc-row .svc-gi .svc3d { width: 36px; height: 36px; }
.svc-card .svc-head .svc-gi { --gi-size: 54px; --gi-r: 18px; }
.svc-card .svc-head .svc-gi .svc3d { width: 40px; height: 40px; }
/* App icons as 3D objects in glass (owner 14.11): the picture fills the tile like the service icons. */
.glass-ico > img { width: calc(var(--gi-size) * .74); height: calc(var(--gi-size) * .74); }
.tab .glass-ico.tab-gi > img { width: 30px; height: 30px; }
.tab:not([aria-current="page"]) .glass-ico.tab-gi > img { opacity: .6; filter: saturate(.55); }
.icon-btn.glass-ico.on-light > img { width: 30px; height: 30px; }
#account .card + .card { margin-top: 14px; }
/* Account profile (14.11.2026): the photo in a neon glass ring, the visit-time picks as glass tiles. */
.ac-avatar {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; padding: 0; border: 0; cursor: pointer;
  background: radial-gradient(circle at 30% 25%, rgba(155,107,255,.16), rgba(155,107,255,.05) 60%), rgba(255,255,255,.7);
  box-shadow: 0 0 16px rgba(155,107,255,.3); display: grid; place-items: center;
}
.ac-avatar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2.5px; pointer-events: none; z-index: 1;
  background: linear-gradient(135deg, #FF7BEA, #9B6BFF 50%, #5FB0FF);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(255,123,234,.5));
}
.ac-avatar [hidden] { display: none !important; }
.ac-avatar > #acAvatarImg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ac-avatar .ac-initials { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; font-size: 22px; color: var(--violet-700, #4A22C7); }
.ac-avatar .ac-initials > img { width: 44px; height: 44px; }
.ac-avatar .ac-cam {
  position: absolute; right: -4px; bottom: -4px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; box-shadow: 0 0 10px rgba(155,107,255,.45), inset 0 0 0 1.5px rgba(155,107,255,.55);
}
.ac-avatar .ac-cam > img { width: 18px; height: 18px; }
.ac-avatar:focus-visible { box-shadow: var(--ring); }
.ac-windows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ac-win {
  position: relative; display: grid; gap: 2px; text-align: left; padding: 10px 12px; min-height: 52px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line, #E3E5EC); background: #fff; color: var(--ink, #14152A); font: inherit;
}
.ac-win b { font-size: 14px; }
.ac-win span { font-size: 12px; color: var(--ink-3, #6b7280); }
.ac-win[aria-pressed="true"] {
  border-color: transparent;
  background: radial-gradient(circle at 30% 25%, rgba(155,107,255,.16), rgba(155,107,255,.05) 60%), rgba(255,255,255,.85);
  box-shadow: 0 0 14px rgba(155,107,255,.28);
}
.ac-win[aria-pressed="true"]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, #FF7BEA, #9B6BFF 50%, #5FB0FF);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.ac-win[aria-pressed="true"] b { color: var(--violet-700, #4A22C7); }
.ac-win:focus-visible { box-shadow: var(--ring); }
/* Account as one list (owner 21.11.2026, a big app's settings screen in our colours): grouped white cards of rows,
   each row an icon, a name, what is set now and an arrow. Pages inside Account replace the list (app.js openAcPage). */
#account .ac-top { justify-content: flex-start; gap: 4px; }
#account .ac-top .ac-back { margin-left: -10px; flex: none; }
#account .ac-top.sub .h1 { font-size: 22px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#account .ac-main[hidden], #account .ac-page[hidden], #account .ac-row[hidden], #account .ac-back[hidden] { display: none; }
.ac-group { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-1); overflow: hidden; }
.ac-group-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 24px 6px 8px; }
.ac-row {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 14px 10px 16px;
  border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.ac-row + .ac-row::before { content: ""; position: absolute; top: 0; left: 66px; right: 0; height: 1px; background: var(--line-2); }
.ac-row:active, .ac-me-txt:active { background: var(--violet-50); }
.ac-row:focus-visible, .ac-me-txt:focus-visible { outline: none; box-shadow: inset var(--ring); }
.ac-row.loading { opacity: .6; pointer-events: none; }
.ac-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-txt b { font-size: 15.5px; font-weight: 650; color: var(--ink); line-height: 1.25; }
.ac-txt small { display: block; font-size: 13px; line-height: 1.35; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-txt small:empty { display: none; }
.ac-txt small.ac-hint { color: var(--violet); font-weight: 600; }
.ac-txt small.ac-due { color: var(--amber-ink, #B54708); font-weight: 600; }
.ac-go { width: 18px; height: 18px; color: var(--ink-4); stroke-width: 2.2; }
.ac-me { display: flex; align-items: center; gap: 14px; padding: 14px 6px 14px 16px; }
.ac-me-txt {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 8px; border-radius: 14px;
  border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ac-me .ac-txt b { font-size: 18px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Language: the row is the phone's own picker. The select covers the row, invisible; 16px so iOS does not zoom. */
.ac-cover-select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ac-logout {
  display: flex; align-items: center; justify-content: center; position: relative; width: 100%; min-height: 54px; margin: 24px 0 8px;
  border: 0; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-1);
  font: inherit; font-size: 15.5px; font-weight: 650; color: var(--red, #D92D20); cursor: pointer;
}
.ac-logout .spinner { display: none; }
.ac-logout.loading .label { opacity: 0; }
.ac-logout.loading .spinner { display: block; position: absolute; }
.ac-page-sub { margin: 0 6px 12px; }
#acBills > .card:first-child { margin-top: 0 !important; }
/* Upcoming visits: the next visit on Home and My Home's calendar (owner 14.11.2026). */
#homeNext { margin-bottom: 14px; }
.visit-card { margin-top: 10px; }
.visit-card.next { margin-top: 0; box-shadow: inset 0 0 0 1.5px var(--violet-50), 0 10px 28px rgba(91, 46, 229, .12); }
.visit-card .eyebrow { margin-bottom: 8px; }
.visit-main { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.visit-main .grow { display: grid; gap: 2px; min-width: 0; }
.visit-title { font-size: 16px; }
.visit-who { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.visit-who .chip { flex: none; }
.visit-card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.visit-card .actions .btn { justify-content: center; width: 100%; gap: 6px; white-space: nowrap; text-decoration: none; background: var(--ground); box-shadow: none; }
.visit-card .actions [data-visit-cal]:first-child, .visit-card .actions [data-visit-cal]:nth-child(3) { grid-column: 1 / -1; }
#mhCalSync { text-decoration: none; }
.cal-strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 4px 20px 8px; scrollbar-width: none; }
.cal-strip::-webkit-scrollbar { display: none; }
.cal-day {
  flex: none; display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 9px 6px 10px; border: 0; border-radius: 16px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; color: var(--ink-3); cursor: pointer;
}
.cal-day small { font-size: 11.5px; font-weight: 600; }
.cal-day b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.cal-day em { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.cal-day.has { color: var(--ink); }
.cal-day.on { background: var(--ink); color: #fff; box-shadow: none; }
.cal-day.on em { background: #fff; }
.cal-day:disabled { cursor: default; opacity: .6; }
.cal-day:focus-visible { box-shadow: var(--ring); }
.cal-group { scroll-margin-top: 12px; }
.cal-day-head { margin: 16px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* ── MOMO-style neon animated launch splash ── */
.nh-splash {
  position: fixed; inset: 0; z-index: 9999;
  /* same colours as the native launch image, so even before the canvas paints nothing changes */
  background: #070933 linear-gradient(180deg,#070933 0%,#190a4d 45%,#4c0f7a 78%,#7e127d 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity .42s ease, transform .42s ease;
}
.nh-splash.out { opacity: 0; pointer-events: none; transform: scale(1.03); }
#nhSplashCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The canvas draws the logo in the launch image's exact spot; the progress bar is not in that image, so it fades in. */
.nh-splash-canvas .nh-splash-brand { visibility: hidden; }
.nh-splash-canvas .nh-splash-prog { opacity: 0; transition: opacity .45s ease; }
.nh-splash-canvas.nh-splash-live .nh-splash-prog { opacity: 1; }
.nh-splash-brand {
  position: relative; z-index: 2; text-align: center; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.nh-splash-logo {
  color: #fff;
  font-size: clamp(30px, 8.5vw, 44px);
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.05;
  text-shadow: 0 0 28px rgba(217, 70, 239, .8), 0 4px 20px rgba(0, 0, 0, .55);
}
.nh-splash-sub {
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nh-splash-prog {
  position: absolute; left: 0; right: 0; bottom: max(46px, env(safe-area-inset-bottom, 34px));
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.nh-splash-track {
  width: 144px; height: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.nh-splash-fill {
  height: 100%; width: 8%; border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #c084fc, #f472b6);
  box-shadow: 0 0 12px rgba(244, 114, 182, .85);
}
.nh-splash-txt {
  margin: 0; color: rgba(255, 255, 255, .86);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

/* ==========================================================================
   Flip to face (owner 14.11.2026, mockup «Back camera today + new flip button»).
   A small glass button with a neon rim in the logo's colours sits next to the flashlight;
   it turns the live view to the front camera. Face to face, the video is a mirror like any
   selfie, a note says nothing from it is saved, Neuro draws no circles on it, and the
   middle button (dashed pink ring) turns back to the problem.
   ========================================================================== */
.cam-top-right { display: flex; align-items: center; gap: 10px; }
#camera .cam-top:has(#flipCam:not([hidden])) .live-pill { max-width: calc(100% - 184px); }
#camera .flip-btn {
  color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.26), rgba(255,255,255,.07) 50%, rgba(20,21,42,.35));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 16px rgba(185,140,255,.5);
}
#camera .flip-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, #FF7BEA, #9B6BFF 50%, #5FB0FF);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
#camera .flip-btn .ico { position: relative; stroke-width: 1.9; filter: drop-shadow(0 0 3px rgba(255,123,234,.9)) drop-shadow(0 0 7px rgba(111,182,255,.6)); }
#camera .flip-btn[aria-pressed="true"] {
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.3), rgba(255,123,234,.18) 55%, rgba(20,21,42,.35)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 3px rgba(255,123,234,.18), 0 0 22px rgba(255,123,234,.7);
}
#camera .flip-btn[hidden] { display: none; }
#camera.selfie #webcamVideo { transform: scaleX(-1); }
#camera.selfie .neuro-marks { display: none; }
#camera.selfie .live-pill { box-shadow: inset 0 0 0 1px rgba(255,123,234,.55), 0 0 14px rgba(255,123,234,.3); }
.selfie-tag {
  position: absolute; z-index: 4; top: 112px; left: 50%; transform: translateX(-50%); margin: 0;
  display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 32px);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 12.5px; font-weight: 600; color: #DDF6FF;
  background: rgba(20,21,42,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(127,240,255,.35);
}
.selfie-tag[hidden] { display: none; }
.selfie-tag .ico { width: 13px; height: 13px; flex: none; stroke-width: 2.4; }
#camera.selfie .orb-shutter::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; pointer-events: none;
  border: 2px dashed rgba(255,123,234,.75);
}
#camera .live-pill .rec-dot { flex: none; }

/* Home service grid (owner 17.11.2026, set 6 from the icon gallery): the 3D objects drawn for the
   14.11 glass pick (neurohome-assets/services-glass/) in the light glass tile. The dark tile of 16.11 is gone. */

/* Owner 17.11.2026: the "Type or upload photos" icon is the white neon line picture again (not the
   coloured photo), and the bottom tabs are full-strength again (the faded, desaturated look is gone). */
.tab { color: var(--ink-2); }
.tab:not([aria-current="page"]) .glass-ico.tab-gi > img { opacity: 1; filter: none; }

/* Account → Payment methods (wallet.js, 19.11.2026): .btn / .row set display, so [hidden] must win here. */
#acWallet [hidden] { display: none !important; }

/* Notifications (19.11.2026): the one-line "why" before the iOS question, and Account → Notifications. */
.nh-push-ask { display: grid; justify-items: center; text-align: center; gap: 10px; padding-top: 4px; }
.nh-push-ask .btn { width: 100%; }
.nh-push-off-line { margin: 8px 4px 0; }
.nh-push-off-line .link { padding: 0; min-height: auto; margin-left: 4px; }
.nh-push-bell { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #7A55FF, var(--violet)); box-shadow: var(--shadow-violet, 0 10px 24px rgba(91,46,229,.3)); }
.nh-push-bell .ico { width: 30px; height: 30px; }
.nh-notify-banner { margin: 12px 0 4px; padding: 14px; border-radius: 16px; background: var(--violet-50); color: var(--violet-800); }
.nh-notify-banner b { display: block; font-size: 15px; }
.nh-notify-banner p { margin: 4px 0 10px; font-size: 13.5px; color: var(--ink-2); }
.nh-notify-banner.muted p { margin: 0; }
.nh-notify-list { margin-top: 8px; }
.nh-notify-row { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.nh-notify-row:last-child { border-bottom: 0; }
.nh-notify-row .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nh-notify-row b { font-size: 15px; }
.nh-notify-row .meta { font-size: 13px; }

/* Trust on the start (owner 21.11.2026, from a competitor review). Real data only: the pros count and the
   reviews come from the server, and an empty answer shows nothing. The welcome screen has the one
   "how booking works" strip (four steps), built on the describe screen's .dr-steps. */
.how-minute { margin: 22px 0 0; font-size: 14px; font-weight: 700; color: var(--ink-2); text-align: center; }
.dr-steps.how-steps { grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.dr-steps.how-steps li { font-size: 11px; line-height: 1.25; }
#welcome.dark .how-minute { color: rgba(255,255,255,.82); }
#welcome.dark .dr-steps.how-steps { background: rgba(255,255,255,.07); }
#welcome.dark .dr-steps.how-steps li { color: rgba(255,255,255,.82); }
.pros-near { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-1); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pros-map { flex: none; width: 56px; height: 38px; }
.pros-map rect { fill: var(--violet-50); }
.pros-map path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.pros-map .pro { fill: var(--violet); }
.pros-map .you { fill: #fff; stroke: var(--violet-800); stroke-width: 2.4; }
.review-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 8px;
  scrollbar-width: none; }
.review-strip::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; margin: 0; padding: 14px 16px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-1); display: grid; gap: 6px; align-content: start; }
.review-stars { color: var(--amber); font-size: 14px; letter-spacing: 1px; }
.review-card blockquote { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review-card figcaption { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
/* .pros-near sets display, so [hidden] must win (as #acWallet above). */
.pros-near[hidden], .home-reviews[hidden], #cFeesLine[hidden] { display: none !important; }
/* Permissions at sign-up (owner 21.11.2026): why, then the iPhone's own questions. */
.perms { position: absolute; inset: 0; z-index: 68; background: #fff; display: grid; align-content: center; gap: 14px; padding: 32px 24px; overflow-y: auto; }
.perms[hidden] { display: none; }
.perms .h1, .perms .body, .perms .hint { text-align: center; }
.perms-list { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 10px; }
.perms-list li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #F6F4FF; }
.perms-list li[hidden] { display: none; }
.perms-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #5b2ee5; }
.perms-txt { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; color: var(--ink-2, #4b5563); }
.perms-txt b { font-size: 16px; color: var(--ink, #111); }
.perms-state { font-size: 13px; font-weight: 700; color: var(--ink-3, #6b7280); }
.perms-list li[data-state="granted"] .perms-state { color: #15803d; }
.perms-list li[data-state="denied"] .perms-state { color: #b45309; }
/* App welcome plaque on Home (owner 21.11.2026: «$35 в вашей банке»). Shown while the $35 is unspent; a tap opens the jar. */
.welcome-offer:not([hidden]) { display: block; margin: 0 0 12px; }
.welcome-offer .wo-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; font: inherit; cursor: pointer;
  border-radius: 18px; background: linear-gradient(135deg, #FFF6D6, #FFE9A8); border: 1px solid #F5D06B; color: #3B2A00; }
.welcome-offer .wo-gift { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: rgba(255, 255, 255, .7); }
.welcome-offer b { display: block; font-size: 17px; line-height: 1.2; }
.welcome-offer small { display: block; font-size: 13px; opacity: .75; margin-top: 2px; }
/* "Neuro is AI and can make mistakes" under every Neuro answer (owner 21.11.2026, like Gemini):
   one small grey line, never a button, never over one. */
.ai-note { font-size: 11.5px; line-height: 1.45; color: var(--ink-3); text-align: center; margin: 10px 4px 0; font-weight: 400; }
.ai-note a { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.screen.dark .ai-note { color: rgba(255,255,255,.55); }
#camera .ai-note { margin-top: 6px; }

/* Owner 25.11.2026: a small red dot while a call is recorded, not a big «Recording» pill. */
.cam-rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); align-self: center; flex: none; }
.cam-rec-dot[hidden] { display: none; }

/* ==========================================================================
   Liquid Glass (Phase 1 — Neuro Home, CSS-only)
   Solid fallback outside @supports; glass activates only when backdrop-filter
   is supported. Respects html.solid-ui / solid-ui-auto / solid-ui-system,
   prefers-reduced-transparency, prefers-contrast, and prefers-reduced-motion.
   ========================================================================== */
.screen.dark,
.dark-glass-scope {
  --glass-bg: rgba(17, 24, 39, .72);
  --glass-bg-strong: rgba(17, 24, 39, .86);
  --glass-bg-solid: #111827;
  --glass-ink: #F9FAFB;
  --glass-ink-2: #D1D5DB;
  --glass-accent: #DDD2FF;
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .08);
  --glass-solid-border: 1px solid rgba(255, 255, 255, .2);
  --glass-contrast-border: 1px solid #D1D5DB;
}

/* Floating capsule tabbar (solid fallback by default) */
.tabbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 10px));
  z-index: 20;
  padding: 6px 8px;
  gap: 4px;
  border-radius: var(--glass-radius-bar);
  background: var(--glass-bg-solid);
  border: var(--glass-solid-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  will-change: transform;
}
@media (max-width: 820px) {
  .tabbar { bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px)); }
}
body.cap-native .tabbar { bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px)); }
#home .home-scroll,
#myhome .scroll,
#account .scroll {
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}
.tabbar .tab {
  position: relative;
  min-height: 48px;
  padding: 5px 6px 6px;
  border-radius: var(--glass-radius-bar);
  color: var(--glass-ink-2);
  transition: color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.tabbar .tab:hover { color: var(--glass-ink); }
.tabbar .tab[aria-current="page"] {
  color: var(--glass-accent);
  background: rgba(91, 46, 229, .08);
}
.tabbar .tab[aria-current="page"]:hover { color: var(--glass-accent); }
.tabbar .tab[aria-current="page"] .glass-ico.tab-gi {
  border-radius: var(--glass-radius-bar);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-rim), 0 4px 14px -4px rgba(91, 46, 229, .28);
}

/* Sheet, scrim, toast, and screen headers (solid fallback by default) */
.scrim {
  background: var(--glass-scrim);
}
.sheet {
  background: var(--glass-bg-solid);
  color: var(--glass-ink);
  border-radius: var(--glass-radius-sheet) var(--glass-radius-sheet) 0 0;
  border-top: var(--glass-solid-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.sheet.show { will-change: transform; }
.sheet .grabber { background: rgba(17, 24, 39, .24); }

.toast {
  --glass-bg: rgba(17, 24, 39, .78);
  --glass-bg-strong: rgba(17, 24, 39, .86);
  --glass-bg-solid: #111827;
  --glass-ink: #F9FAFB;
  --glass-ink-2: #D1D5DB;
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .08);
  --glass-solid-border: 1px solid rgba(255, 255, 255, .18);
  background: var(--glass-bg-solid);
  color: var(--glass-ink);
  border: var(--glass-solid-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.navbar,
.mh-top {
  background: var(--glass-bg-solid);
  color: var(--glass-ink);
  border-bottom: var(--glass-solid-border);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.navbar .title { color: var(--glass-ink); }

.ac-row.ac-solid-ui-row { cursor: default; }
.ac-row.ac-solid-ui-row .ac-txt { min-height: 44px; justify-content: center; cursor: pointer; }

/* Enable translucent glass only when backdrop-filter is supported */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabbar {
    background: var(--glass-bg);
    border: 0;
    box-shadow: var(--glass-rim), var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  }
  .sheet {
    background: var(--glass-bg-strong);
    border-top: 0;
    box-shadow: var(--glass-rim), var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  }
  .toast {
    background: var(--glass-bg-strong);
    border: 0;
    box-shadow: var(--glass-rim), var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  }
  .navbar,
  .mh-top {
    background: var(--glass-bg);
    border-bottom: 0;
    box-shadow: var(--glass-rim);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  }
}

/* Solid UI: manual toggle, automatic weak-device fallback, and future native bridge */
html.solid-ui .tabbar,
html.solid-ui-auto .tabbar,
html.solid-ui-system .tabbar,
html.solid-ui .sheet,
html.solid-ui-auto .sheet,
html.solid-ui-system .sheet,
html.solid-ui .toast,
html.solid-ui-auto .toast,
html.solid-ui-system .toast,
html.solid-ui .navbar,
html.solid-ui-auto .navbar,
html.solid-ui-system .navbar,
html.solid-ui .mh-top,
html.solid-ui-auto .mh-top,
html.solid-ui-system .mh-top {
  background: var(--glass-bg-solid);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--glass-shadow);
}
html.solid-ui .tabbar,
html.solid-ui-auto .tabbar,
html.solid-ui-system .tabbar,
html.solid-ui .toast,
html.solid-ui-auto .toast,
html.solid-ui-system .toast {
  border: var(--glass-solid-border);
}
html.solid-ui .sheet,
html.solid-ui-auto .sheet,
html.solid-ui-system .sheet {
  border-top: var(--glass-solid-border);
}
html.solid-ui .navbar,
html.solid-ui-auto .navbar,
html.solid-ui-system .navbar,
html.solid-ui .mh-top,
html.solid-ui-auto .mh-top,
html.solid-ui-system .mh-top {
  border-bottom: var(--glass-solid-border);
  box-shadow: none;
}
html.solid-ui .tabbar .tab[aria-current="page"] .glass-ico.tab-gi,
html.solid-ui-auto .tabbar .tab[aria-current="page"] .glass-ico.tab-gi,
html.solid-ui-system .tabbar .tab[aria-current="page"] .glass-ico.tab-gi,
html.solid-ui .glass-ico,
html.solid-ui-auto .glass-ico,
html.solid-ui-system .glass-ico,
html.solid-ui .icon-btn.glass,
html.solid-ui-auto .icon-btn.glass,
html.solid-ui-system .icon-btn.glass,
html.solid-ui .chip.glass,
html.solid-ui-auto .chip.glass,
html.solid-ui-system .chip.glass,
html.solid-ui .orb-diagnosis-hud,
html.solid-ui-auto .orb-diagnosis-hud,
html.solid-ui-system .orb-diagnosis-hud,
html.solid-ui .transcript,
html.solid-ui-auto .transcript,
html.solid-ui-system .transcript {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.solid-ui .tabbar .tab[aria-current="page"] .glass-ico.tab-gi,
html.solid-ui-auto .tabbar .tab[aria-current="page"] .glass-ico.tab-gi,
html.solid-ui-system .tabbar .tab[aria-current="page"] .glass-ico.tab-gi {
  background: var(--glass-bg-solid);
  box-shadow: inset 0 0 0 1px var(--glass-accent);
}
html.solid-ui .icon-btn.glass,
html.solid-ui-auto .icon-btn.glass,
html.solid-ui-system .icon-btn.glass,
html.solid-ui .chip.glass,
html.solid-ui-auto .chip.glass,
html.solid-ui-system .chip.glass,
html.solid-ui .orb-diagnosis-hud,
html.solid-ui-auto .orb-diagnosis-hud,
html.solid-ui-system .orb-diagnosis-hud,
html.solid-ui .transcript,
html.solid-ui-auto .transcript,
html.solid-ui-system .transcript {
  background: #111827;
}

/* Reduced transparency: solid surfaces without blur */
@media (prefers-reduced-transparency: reduce) {
  .tabbar,
  .sheet,
  .toast,
  .navbar,
  .mh-top {
    background: var(--glass-bg-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .tabbar,
  .toast {
    border: var(--glass-solid-border);
    box-shadow: var(--glass-shadow);
  }
  .sheet { border-top: var(--glass-solid-border); }
  .navbar,
  .mh-top { border-bottom: var(--glass-solid-border); box-shadow: none; }
  .tabbar .tab[aria-current="page"] .glass-ico.tab-gi,
  .glass-ico,
  .icon-btn.glass,
  .chip.glass,
  .orb-diagnosis-hud,
  .transcript {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .icon-btn.glass,
  .chip.glass,
  .orb-diagnosis-hud,
  .transcript { background: #111827; }
}

/* High contrast: solid surfaces plus explicit 1px #374151 / high-contrast borders */
@media (prefers-contrast: more) {
  .tabbar,
  .sheet,
  .toast,
  .navbar,
  .mh-top {
    background: var(--glass-bg-solid);
    color: var(--glass-ink);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .tabbar,
  .toast { border: var(--glass-contrast-border); }
  .sheet { border-top: var(--glass-contrast-border); }
  .navbar,
  .mh-top { border-bottom: var(--glass-contrast-border); }
  .tabbar .tab { color: var(--glass-ink); }
  .tabbar .tab[aria-current="page"] {
    outline: 1px solid #374151;
    outline-offset: -1px;
  }
  .tabbar .tab[aria-current="page"] .glass-ico.tab-gi,
  .glass-ico,
  .icon-btn.glass,
  .chip.glass,
  .orb-diagnosis-hud,
  .transcript {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .icon-btn.glass,
  .chip.glass,
  .orb-diagnosis-hud,
  .transcript { background: #111827; border: 1px solid #D1D5DB; }
}

/* Reduced motion: instant tab switch and no glass transition */
@media (prefers-reduced-motion: reduce) {
  .tabbar,
  .tabbar .tab,
  .sheet,
  .toast {
    transition: none;
    animation: none;
    will-change: auto;
  }
  ::view-transition-old(tabbar),
  ::view-transition-new(tabbar) {
    animation: none;
  }
}
