/* ═══════════════════════════════════════════════════════════════════════════
   VoltType — PHONE SHELL (≤ 900px)
   The iPhone/Android-web layout, mirroring the Android app screen for screen
   (Chairman 2026-09-20: "build this one the same way as the Android
   application — all the features, same look"). Tokens are copied from
   android-native/.../core/theme/Tokens.kt, light AND dark palettes.
   Desktop (≥ 901px) never sees any of this: the shell is display:none there.
   ═══════════════════════════════════════════════════════════════════════════ */

#vt-phone { display: none; }

@media (max-width: 900px) {
  /* The old phone UI (top bar, Record/Transcript/Settings/Pro) steps aside. */
  body.vt-phone #app-shell > :not(#vt-phone) { display: none !important; }
  body.vt-phone #vt-float-stop { display: none !important; }
  body.vt-phone { overflow: hidden; }

  /* Every colour, size and face below is read from theme.css — the CSS half of
     design/volttype-theme/tokens.json, the one source Windows, Android, iOS and
     the web app share (Chairman 2026-09-22/23). Nothing here invents a value. */
  #vt-phone {
    --p-accent: var(--blue);
    --p-accent-soft: var(--blue-soft);
    --p-accent-light: var(--blue-w);
    --p-teal: var(--teal);
    --p-grad: linear-gradient(150deg, var(--blue-w), var(--teal));
    --p-success: var(--device-dot);
    --p-device: var(--device);
    --p-device-fill: var(--device-fill);
    --p-device-deep: var(--device-deep);
    --p-pro: var(--pro);
    --p-pro-fill: var(--pro-fill);
    --p-pro-fill-soft: var(--pro-fill-soft);
    --p-pro-deep: var(--pro-deep);
    --p-pro-line: var(--pro-line);
    --p-danger: var(--stop);
    --p-stop-fill: var(--stop-fill);
    --p-stop-ink: var(--stop-ink);
    --p-warn: var(--warn);
    --p-ink: var(--ink);
    --p-ink2: var(--secondary);
    --p-muted: var(--muted);
    --p-faint: var(--faint);
    --p-page: var(--page);
    --p-card: var(--card);
    --p-panel: var(--panel);
    --p-chip: var(--chips);
    --p-hair: var(--line);
    --p-hair2: var(--line);
    --p-shadow: 0 4px 16px rgba(15,23,42,.04);
    --p-r-chip: var(--r-chip); --p-r-card: var(--r-card); --p-r-panel: var(--r-panel); --p-r-pill: var(--r-pill);
    --p-ui: var(--font-ui);
    --p-mono: var(--font-label);

    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 50;
    background: var(--p-page); color: var(--p-ink);
    font-family: var(--p-ui); font-size: 15px; line-height: 1.45;
    -webkit-font-smoothing: antialiased;
  }
  /* Dark: theme.css already carries every dark twin under :root[data-theme="dark"],
     so the shell only needs to drop its light-only shadow. */
  #vt-phone[data-theme="dark"] { --p-shadow: none; }

  /* ── Pages ── */
  #vt-phone .p-page {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: calc(24px + env(safe-area-inset-top)) 24px 32px;
    animation: p-rise .26s ease-out;
  }
  @keyframes p-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  #vt-phone h1 { font: 700 26px/1.15 var(--p-ui); letter-spacing: -.02em; margin: 0; color: var(--p-ink); }
  #vt-phone h2 { font: 700 22px/1.2 var(--p-ui); letter-spacing: -.01em; margin: 0; color: var(--p-ink); }
  #vt-phone .p-lead { color: var(--p-ink2); font-size: 16px; margin: 2px 0 0; }
  #vt-phone .p-tech { font: 500 11px/1.4 var(--p-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--p-faint); }
  #vt-phone .p-tech.device { color: var(--p-device); }
  #vt-phone .p-cap { font: 400 12px/1.45 var(--p-mono); color: var(--p-faint); }
  #vt-phone .p-cap.device { color: var(--p-device); }
  #vt-phone .p-cap.acc { color: var(--p-accent); }
  #vt-phone .p-cap.ok { color: var(--p-success); }
  #vt-phone .p-tech.ok { color: var(--p-success); }
  #vt-phone .p-tech.acc { color: var(--p-accent); }
  #vt-phone .p-sub { font-size: 13.5px; color: var(--p-ink2); }
  #vt-phone .p-back { display: inline-block; color: var(--p-accent); font-weight: 600; padding: 8px 4px 8px 0; margin-bottom: 4px; background: none; border: 0; font-family: var(--p-ui); font-size: 15px; }
  #vt-phone .p-section { margin-top: 24px; }
  #vt-phone .p-section > .p-tech { margin-bottom: 8px; }

  #vt-phone .p-card {
    background: var(--p-card); border-radius: var(--p-r-card); padding: 16px;
    margin-bottom: 10px; box-shadow: var(--p-shadow);
  }
  #vt-phone .p-card.tight { padding: 0; overflow: hidden; }

  /* Buttons */
  #vt-phone button, #vt-phone input, #vt-phone textarea { font-family: var(--p-ui); font-size: 15px; color: var(--p-ink); }
  #vt-phone .p-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--p-accent); color: #fff; border: 0; border-radius: var(--p-r-pill);
    padding: 0 22px; height: 48px; font-weight: 700; cursor: pointer; white-space: nowrap;
  }
  #vt-phone .p-btn.block { width: 100%; height: 50px; font-size: 16px; }
  #vt-phone .p-btn.dark { background: var(--p-ink); color: var(--p-card); }
  #vt-phone .p-btn.grad { background: var(--p-grad); }
  #vt-phone .p-btn:disabled { background: #D3D6DB; color: #fff; opacity: 1; cursor: default; }
  #vt-phone[data-theme="dark"] .p-btn:disabled { background: #2A3446; color: #8592A8; }
  #vt-phone .p-btn.outline { background: rgba(37,99,235,.06); color: var(--p-ink); border: 1.5px solid var(--p-accent); border-radius: 12px; }
  #vt-phone .p-text { background: none; border: 0; color: var(--p-accent); font-weight: 600; padding: 8px 10px; cursor: pointer; border-radius: 8px; }
  #vt-phone .p-text.muted { color: var(--p-muted); }
  #vt-phone .p-chipbtn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--p-chip); color: var(--p-ink); border: 1px solid var(--p-hair2); border-radius: var(--p-r-card);
    height: 44px; padding: 0 14px; font-weight: 600; cursor: pointer;
  }
  #vt-phone .p-chipbtn.ready { background: var(--p-accent); color: #fff; border-color: var(--p-accent); }
  #vt-phone .p-chipbtn:disabled { opacity: .5; }
  #vt-phone .p-row2 { display: flex; gap: 8px; margin-bottom: 8px; }
  #vt-phone .p-row2 > * { flex: 1; }

  /* Fields */
  #vt-phone .p-field {
    width: 100%; box-sizing: border-box; background: var(--p-card); border: 1px solid var(--p-hair2);
    border-radius: 10px; padding: 14px 14px; outline: none; resize: none; line-height: 1.5; font-size: 16px;
  }
  #vt-phone .p-field:focus { border-color: var(--p-accent); }
  #vt-phone .p-field::placeholder { color: var(--p-faint); }
  #vt-phone .p-field.tall { min-height: 176px; }

  /* Row items (More · Settings) */
  #vt-phone .p-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border-bottom: 1px solid var(--p-hair); cursor: pointer; background: none; width: 100%; border-left: 0; border-right: 0; border-top: 0; text-align: left;
  }
  #vt-phone .p-item:last-child { border-bottom: 0; }
  #vt-phone .p-item .t { font-weight: 700; font-size: 19px; color: var(--p-ink); }
  #vt-phone .p-item .s { font-size: 14.5px; color: var(--p-ink2); }
  #vt-phone .p-item { padding: 18px 16px; }
  #vt-phone .p-item .chev { margin-left: auto; color: var(--p-faint); font-size: 22px; line-height: 1; }
  #vt-phone .p-item .grow { flex: 1; min-width: 0; }

  /* Choice rows (radio look) */
  #vt-phone .p-choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--p-hair); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; }
  #vt-phone .p-choice:last-child { border-bottom: 0; }
  #vt-phone .p-choice .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--p-hair2); flex: 0 0 20px; }
  #vt-phone .p-choice.on .dot { border: 6px solid var(--p-accent); }

  /* Segment (Online | Offline) */
  #vt-phone .p-seg { display: flex; gap: 4px; background: var(--p-chip); border-radius: var(--p-r-pill); padding: 4px; }
  #vt-phone .p-seg button { flex: 1; height: 40px; border: 0; border-radius: var(--p-r-pill); background: transparent; color: var(--p-ink2); font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
  #vt-phone .p-seg button.on { background: var(--p-ink); color: var(--p-card); }

  /* Language chips */
  #vt-phone .p-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  #vt-phone .p-chips::-webkit-scrollbar { display: none; }
  #vt-phone .p-chip { flex: 0 0 auto; background: var(--p-page); color: var(--p-ink2); border: 0; border-radius: var(--p-r-pill); padding: 9px 14px; font-weight: 600; cursor: pointer; }
  #vt-phone .p-chip.on { background: var(--p-ink); color: var(--p-card); }
  #vt-phone .p-track { position: relative; height: 4px; border-radius: 999px; background: var(--p-chip); margin-top: 10px; }
  #vt-phone .p-track > i { position: absolute; top: 0; height: 4px; width: 38%; border-radius: 999px; background: var(--p-accent); }

  /* ── The status line: ● typed on this phone · nothing is sent.
        On the iPhone web app nothing runs on the phone, so it reads the honest
        muted line (design handoff 2026-09-23: "the green line becomes the muted
        line"). The day an on-device engine ships on Apple, .device turns it green. */
  #vt-phone .p-status { display: flex; align-items: center; gap: 7px; font: 400 13px/1.4 var(--p-mono); color: var(--p-muted); }
  #vt-phone .p-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p-faint); flex: 0 0 8px; }
  #vt-phone .p-status.device { color: var(--p-device); }
  #vt-phone .p-status.device::before { background: var(--p-success); }

  /* ── The receipt: what left this phone today. Green with a zero, ink with a
        number — the same rule as Android's ReceiptCard. */
  #vt-phone .p-receipt { background: var(--p-card); border-radius: var(--p-r-card); padding: 16px 18px; margin-bottom: 10px; box-shadow: var(--p-shadow); }
  #vt-phone .p-receipt.zero { background: var(--p-device-fill); box-shadow: none; }
  #vt-phone .p-receipt .lead { font-size: 15px; color: var(--p-ink2); }
  #vt-phone .p-receipt.zero .lead { color: var(--p-device); }
  #vt-phone .p-receipt .number { font: 700 38px/1.1 var(--p-ui); letter-spacing: -.02em; color: var(--p-ink); }
  #vt-phone .p-receipt.zero .number { color: var(--p-device-deep); }
  #vt-phone .p-receipt .unit { font: 500 17px/1 var(--p-ui); color: var(--p-ink2); margin-left: 8px; }
  #vt-phone .p-receipt.zero .unit { color: var(--p-device); }
  #vt-phone .p-receipt .seelog { background: none; border: 0; padding: 8px 0 0; font: 500 14px var(--p-ui); color: var(--p-accent); text-decoration: underline; cursor: pointer; }
  #vt-phone .p-receipt.zero .seelog { color: var(--p-device); }

  /* ── PRO badge + the locked language chip: the 74 are visible, never hidden ── */
  #vt-phone .p-pro-badge { display: inline-block; font: 600 11px/1 var(--p-mono); letter-spacing: .06em; color: var(--p-pro); background: var(--p-pro-fill); border-radius: 6px; padding: 3px 9px; }
  #vt-phone .p-chip.locked { background: transparent; color: var(--p-muted); border: 1px dashed #CBD5E1; }
  #vt-phone[data-theme="dark"] .p-chip.locked { border-color: var(--p-faint); }
  #vt-phone .p-chip.auto { background: var(--p-device-fill); color: var(--p-device); border: 1px solid #A7DCC6; font-weight: 500; }
  #vt-phone .p-bar { height: 6px; border-radius: 999px; background: var(--p-chip); overflow: hidden; }
  #vt-phone .p-bar > i { display: block; height: 100%; background: var(--p-accent); }
  #vt-phone .p-quiet { background: var(--p-accent-soft); color: var(--p-accent); border: 0; border-radius: 10px; padding: 11px 15px; font: 500 14px var(--p-ui); cursor: pointer; }

  /* ── The Pro sheet's two columns: what you have, and what Pro adds ── */
  #vt-phone .p-cols { display: flex; gap: 10px; }
  #vt-phone .p-cols > div { flex: 1; border-radius: 14px; padding: 13px; }
  #vt-phone .p-cols .have { background: var(--p-device-fill); color: var(--p-device-deep); }
  #vt-phone .p-cols .have .h { color: var(--p-device); }
  #vt-phone .p-cols .get { background: var(--p-pro-fill-soft); color: var(--p-pro-deep); }
  #vt-phone .p-cols .get .h { color: var(--p-pro); }
  #vt-phone .p-cols .big { font: 700 19px/1.2 var(--p-ui); margin: 2px 0; }
  #vt-phone .p-cols li { list-style: none; font-size: 13px; padding: 2px 0; }

  /* Status dot line */
  #vt-phone .p-dotline { display: flex; align-items: center; gap: 8px; }
  #vt-phone .p-dotline i { width: 8px; height: 8px; border-radius: 50%; background: var(--p-accent); flex: 0 0 8px; }
  #vt-phone .p-dotline.ok i { background: var(--p-success); }

  /* Setup steps */
  #vt-phone .p-step { display: block; background: var(--p-card); border-radius: var(--p-r-card); padding: 14px 16px 16px; margin-bottom: 10px; box-shadow: var(--p-shadow); }
  #vt-phone .p-step .head { display: flex; align-items: center; gap: 12px; }
  #vt-phone .p-step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--p-chip); display: flex; align-items: center; justify-content: center; font: 600 13px var(--p-mono); color: var(--p-muted); flex: 0 0 36px; }
  #vt-phone .p-step.done .n { background: var(--p-success); color: #fff; font-family: var(--p-ui); font-size: 17px; }
  #vt-phone .p-step .t { font-weight: 700; font-size: 20px; }
  #vt-phone .p-step .b { font-size: 16px; color: var(--p-ink2); margin-top: 6px; }
  #vt-phone .p-step .p-btn { margin-top: 12px; height: 44px; padding: 0 20px; font-size: 15px; }

  /* Coins (theme · profile) */
  #vt-phone .p-coin { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--p-card); display: flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer; color: var(--p-ink); box-shadow: var(--p-shadow); }
  #vt-phone .p-coin.avatar { background: var(--p-grad); color: #fff; font-weight: 700; font-size: 17px; }
  #vt-phone .p-logo-tile { width: 56px; height: 56px; border-radius: 16px; background: var(--p-card); display: flex; align-items: center; justify-content: center; }
  #vt-phone .p-logo-tile img { width: 36px; height: 36px; }

  /* Mic */
  #vt-phone .p-mic {
    width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--p-grad); color: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 64px;
    box-shadow: 0 8px 24px rgba(47,107,255,.35); transition: transform .15s, background .2s;
  }
  #vt-phone .p-mic:active { transform: scale(.94); }
  #vt-phone .p-mic.rec { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 24px rgba(239,68,68,.35); animation: p-pulse 1.4s ease-in-out infinite; }
  #vt-phone .p-mic.busy { background: var(--p-muted); box-shadow: none; }
  @keyframes p-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
  #vt-phone .p-mic svg { width: 28px; height: 28px; }
  #vt-phone .p-bars { display: flex; gap: 3px; align-items: center; height: 22px; }
  #vt-phone .p-bars i { width: 3px; height: 6px; border-radius: 2px; background: var(--p-accent-light); opacity: .35; }
  #vt-phone .p-bars.live i { animation: p-bar .8s ease-in-out infinite; opacity: 1; }
  #vt-phone .p-bars.live i:nth-child(2n) { animation-delay: .15s; } #vt-phone .p-bars.live i:nth-child(3n) { animation-delay: .3s; }
  @keyframes p-bar { 0%,100% { height: 6px; } 50% { height: 20px; } }

  /* Tab bar — own bar, not Material: chosen tab in a soft blue pill */
  #vt-phone .p-tabs {
    display: flex; padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: var(--p-card); border-top: 1px solid var(--p-hair2); flex: 0 0 auto;
  }
  #vt-phone .p-tab { flex: 1; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; cursor: pointer; }
  #vt-phone .p-tab .pill { width: 40px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--p-muted); transition: width .25s cubic-bezier(.3,1.4,.6,1), background .22s, color .22s; }
  #vt-phone .p-tab .pill svg { width: 24px; height: 24px; transition: transform .25s cubic-bezier(.3,1.6,.6,1); }
  #vt-phone .p-tab .lbl { font: 500 12px var(--p-mono); letter-spacing: .02em; color: var(--p-muted); transition: color .22s; }
  #vt-phone .p-tab.on .pill { width: 64px; background: rgba(37,99,235,.12); color: var(--p-accent); }
  #vt-phone .p-tab.on .pill svg { transform: scale(1.12); }
  #vt-phone .p-tab.on .lbl { color: var(--p-accent); font-weight: 700; }

  /* Sheets (account · offline · pro · language) */
  #vt-phone .p-scrim { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 60; display: flex; align-items: flex-end; justify-content: center; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  #vt-phone .p-sheet { width: 100%; max-height: 88vh; overflow-y: auto; background: var(--p-card); border-radius: var(--p-r-panel) var(--p-r-panel) 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); animation: p-up .28s ease-out; }
  #vt-phone .p-sheet.center { border-radius: var(--p-r-panel); margin: 0 18px 18px; width: auto; }
  @keyframes p-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

  /* A link inside body text — the one accent colour, nothing else. */
  #vt-phone .p-link { color: var(--p-accent); font-weight: 600; text-decoration: none; }
  #vt-phone .p-link:active { text-decoration: underline; }

  /* Switch — the design's toggle: 42 x 25 px pill, accent on, hairline off. */
  #vt-phone .p-sw { flex: 0 0 42px; width: 42px; height: 25px; border: 0; border-radius: 999px; background: var(--p-hair2); padding: 0; cursor: pointer; transition: background .15s; }
  #vt-phone .p-sw.on { background: var(--p-accent); }
  #vt-phone .p-sw i { display: block; width: 19px; height: 19px; margin: 3px; border-radius: 50%; background: var(--p-card); transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
  #vt-phone .p-sw.on i { transform: translateX(17px); }

  /* Notice / banner */
  #vt-phone .p-notice { background: #FFF7ED; border: 1px solid #FDBA74; color: #9A3412; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-top: 8px; }
  #vt-phone[data-theme="dark"] .p-notice { background: rgba(253,186,116,.12); }
  #vt-phone .p-upd { display: flex; align-items: center; gap: 12px; background: #0F172A; color: #fff; border-radius: var(--p-r-card); padding: 10px 16px; margin-bottom: 16px; }
  #vt-phone .p-upd .p-btn { background: #22D3EE; color: #0F172A; height: 38px; }

  /* Meeting transcript */
  #vt-phone .p-seg-row { display: flex; gap: 8px; padding: 3px 0; }
  #vt-phone .p-seg-row .ts { font: 500 11px/1.6 var(--p-mono); color: var(--p-muted); flex: 0 0 auto; }

  /* Toast */
  #vt-phone .p-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--p-ink); color: var(--p-card); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 70; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

  /* The device-key section adopted from the old Settings screen */
  #vt-phone #settings-shortcut-section { margin: 0; }
  #vt-phone #settings-shortcut-section .settings-section-label { display: none; }
  #vt-phone #settings-shortcut-section .settings-card { background: var(--p-card); border-radius: var(--p-r-card); border: 0; box-shadow: var(--p-shadow); }
  #vt-phone #settings-shortcut-section .settings-row-label { color: var(--p-ink); }
  #vt-phone #settings-shortcut-section .settings-row-sub { color: var(--p-ink2); }
  #vt-phone #settings-shortcut-section .settings-btn-small { background: var(--p-accent); color: #fff; border: 0; border-radius: 10px; font-weight: 700; padding: 9px 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIGN-IN (≤ 900px) — the Android SignInScreen: no card, one left-aligned
   column on the page colour, outlined fields, accent button, outlined Google.
   The markup is the shared #auth-overlay; only its phone look changes here.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  #auth-overlay {
    --p-accent: #2563EB; --p-ink: #0F172A; --p-ink2: #475569; --p-muted: #64748B; --p-faint: #94A3B8;
    --p-page: #EEF1F5; --p-card: #FFFFFF; --p-hair2: rgba(15,23,42,.10);
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    background: var(--p-page); padding: calc(48px + env(safe-area-inset-top)) 24px 24px;
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif; overflow-y: auto;
  }
  @media (prefers-color-scheme: dark) {
    #auth-overlay:not([data-theme="light"]) {
      --p-ink: #E8EEF8; --p-ink2: #B3BFD1; --p-muted: #8592A8; --p-faint: #55637A;
      --p-page: #0D1320; --p-card: #141C2B; --p-hair2: rgba(255,255,255,.15);
    }
  }
  #auth-overlay.hidden { display: none; }
  #auth-overlay .auth-logo-wrap { display: block; margin: 0 0 20px; }
  #auth-overlay .auth-logo-mark { width: 56px; height: 56px; border-radius: 16px; background: var(--p-card); box-shadow: none; padding: 0; display: flex; align-items: center; justify-content: center; }
  #auth-overlay .auth-logo-mark img { width: 36px; height: 36px; }
  #auth-overlay .auth-logo-text { display: none; }
  #auth-overlay .auth-card { background: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; max-width: none; width: auto; }
  #auth-overlay .auth-title { font: 700 30px/1.15 'Space Grotesk', system-ui, sans-serif; letter-spacing: -.02em; color: var(--p-ink); margin: 0; text-align: left; }
  #auth-overlay .auth-sub { color: var(--p-ink2); font-size: 15.5px; margin: 6px 0 24px; text-align: left; }
  #auth-overlay .auth-input {
    width: 100%; box-sizing: border-box; height: 56px; background: var(--p-card); color: var(--p-ink);
    border: 1px solid var(--p-hair2); border-radius: 10px; padding: 0 16px; font: 500 16px 'Space Grotesk', system-ui, sans-serif; margin: 0 0 12px;
  }
  #auth-overlay .auth-input:focus { border: 2px solid var(--p-accent); outline: none; padding: 0 15px; }
  #auth-overlay .auth-input::placeholder { color: var(--p-faint); }
  #auth-overlay .auth-error { color: var(--p-accent); background: none; border: 0; padding: 0 0 12px; font-size: 14.5px; text-align: left; }
  #auth-overlay .auth-submit { width: 100%; height: 52px; margin: 8px 0 12px; background: var(--p-accent); color: #fff; border: 0; border-radius: 12px; font: 700 16px 'Space Grotesk', system-ui, sans-serif; box-shadow: none; }
  #auth-overlay .auth-submit:disabled { background: #D3D6DB; color: #fff; opacity: 1; }
  #auth-overlay:not([data-theme="light"]) .auth-submit:disabled { background: #2A3446; color: #8592A8; }
  #auth-overlay .auth-divider { display: none !important; }
  #auth-overlay .auth-google { width: 100%; height: 52px; background: transparent; color: var(--p-ink); border: 1px solid var(--p-hair2); border-radius: 12px; font: 600 15.5px 'Space Grotesk', system-ui, sans-serif; display: flex; align-items: center; justify-content: center; gap: 10px; }
  #auth-overlay .auth-toggle { margin-top: 20px; text-align: center; color: var(--p-accent); font-weight: 600; font-size: 15px; }
  #auth-overlay .auth-toggle #pwa-toggle-btn { color: var(--p-accent); font-weight: 600; background: none; border: 0; padding: 0; font-size: 15px; }
  #auth-overlay .auth-back { display: none; }
  #auth-overlay .p-auth-foot { margin-top: 24px; font: 500 12.5px/1.5 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .02em; color: #16A34A; text-align: left; }
  #auth-overlay:not([data-theme="light"]) .p-auth-foot { color: #2EDB8A; }

  /* "A new version is available" — sits above the tab bar, same type as the app */
  body.vt-phone #vt-update { bottom: calc(84px + env(safe-area-inset-bottom)) !important; font-family: 'Space Grotesk', system-ui, sans-serif !important; border-radius: 16px !important; }
  /* Install pop-up — same family as the rest */
  #vt-install [role="dialog"] { font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif !important; }
}
