  /* ===== Zumbrix v3: futuristic glass + HUD (keeps every old id/class working) ===== */
  :root {
    --bg: #02050b; --bg2: #040a14; --panel: rgba(14, 30, 52, .62);
    --line: rgba(120, 220, 255, .13); --line-strong: rgba(120, 220, 255, .38);
    --text: #eaf8ff; --muted: #93adc2; --faint: #5f7a90;
    --accent: #5ef1ff; --accent-2: #4f8bff; --orange: #a993ff; --violet: #a993ff;
    --grad: linear-gradient(120deg, #5ef1ff 0%, #4f8bff 55%, #a993ff 100%);
    --grad-grok: linear-gradient(120deg, #c9b8ff 0%, #a993ff 50%, #ff7ad9 100%);
    --warn-c: #ffc85e; --ok: #5dffa8; --danger: #ff5a6e;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --glow: 0 0 16px rgba(94, 241, 255, .28);
  }
  body { background:
      radial-gradient(900px 520px at 50% -12%, rgba(79,139,255,.24), transparent 62%),
      radial-gradient(600px 480px at 110% 70%, rgba(169,147,255,.12), transparent 62%),
      radial-gradient(500px 400px at -10% 45%, rgba(94,241,255,.07), transparent 62%),
      linear-gradient(var(--bg), var(--bg2)); background-attachment: fixed; }
  body::before { background-size: 32px 32px; opacity: .8; animation: v3drift 16s linear infinite; }
  @keyframes v3drift { to { background-position: 0 32px, 0 32px; } }
  body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40; background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(255,255,255,.016) 2px 3px); }
  #fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }

  /* type: futuristic font only for titles & numbers, plain text everywhere else */
  h1 { font: 700 23px/1.2 var(--display); letter-spacing: .02em; text-transform: none; text-shadow: 0 0 18px rgba(94,241,255,.25); margin: 8px 0 6px; }
  .kicker { font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
  .kicker b { color: var(--accent); font-weight: 600; }
  h2 { display: flex; align-items: center; gap: 10px; font: 600 11px/1.2 var(--mono); letter-spacing: .14em; color: var(--accent); margin: 24px 0 10px; opacity: 1; }
  h2::before { content: "//"; width: auto; height: auto; margin: 0; background: none; box-shadow: none; color: var(--faint); letter-spacing: 0; }
  h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(94,241,255,.35), transparent); order: 2; }
  h2 .h2link, h2 a { order: 3; color: var(--muted); cursor: pointer; text-decoration: none; letter-spacing: .06em; font-weight: 500; }
  .label, details.help summary, .linkbtn, .vstatus, .notes-wait, .recog, .rem .when, .ev .when, .seg .when, #activity, .ntmic .st { font-family: var(--mono) !important; }
  .label { letter-spacing: .12em; }
  .muted { color: var(--muted); }
  button { font: 600 15px/1 var(--body); letter-spacing: 0; text-transform: none; border-radius: 12px; background: var(--grad); box-shadow: 0 0 18px rgba(94,241,255,.28); }
  button.ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line); }
  button.ghost:hover { border-color: rgba(94,241,255,.5); box-shadow: 0 0 14px rgba(94,241,255,.15); color: var(--accent); }
  .head button { font-size: 13px; padding: 9px 12px; }
  .quick button, .sharebar button, .set-row > button, .seg-choice button { font-size: 13px; }
  .chip, .badge { font: 600 11px/1 var(--mono); letter-spacing: .05em; border-radius: 12px; }
  input, select, textarea { background: rgba(4, 12, 24, .7); border-color: var(--line); }

  /* glass cards with a gradient hairline instead of corner brackets */
  .card { background: linear-gradient(180deg, rgba(20,42,72,.62), rgba(10,22,40,.55)); border: 0; border-radius: 20px; }
  .card::after { display: none; }
  .card:not(.chatbox)::before { content: ""; position: absolute; inset: 0; width: auto; height: auto; border-radius: inherit; padding: 1px; opacity: 1; border: 0;
    background: linear-gradient(140deg, rgba(94,241,255,.5), rgba(94,241,255,.07) 30%, rgba(169,147,255,.05) 70%, rgba(169,147,255,.42));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
  .chatbox { border: 1px solid var(--line); }
  #aChat:empty::before { content: "Ask Zumbrix anything. Your conversation appears here."; }
  #gChat:empty::before { content: "Talk to Grok Bot. Your conversation appears here."; }
  .list-item { background: linear-gradient(180deg, rgba(20,42,72,.55), rgba(10,22,40,.5)); border-color: var(--line); font: 400 15px/1.45 var(--body); }
  .rows > * + * { border-top: 1px solid var(--line); }
  .row2 { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
  .row2 .grow { flex: 1; min-width: 0; } .row2 .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row2 .s { color: var(--muted); font-size: 13px; } .card.rows { padding: 0; }
  .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--accent); font-size: 16px;
        background: linear-gradient(140deg, rgba(94,241,255,.16), rgba(79,139,255,.06)); box-shadow: inset 0 0 0 1px rgba(94,241,255,.22); }

  /* top bar */
  .topbar { margin-bottom: 4px; }
  .brand { cursor: pointer; letter-spacing: .26em; }
  .brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: none; }
  .beye { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
  .beye::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #5ef1ff, transparent 30%, #a993ff 55%, transparent 80%, #5ef1ff);
    animation: spin 4s linear infinite; -webkit-mask: radial-gradient(circle, transparent 57%, #000 60%); mask: radial-gradient(circle, transparent 57%, #000 60%); }
  .beye i { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #eaffff 0 18%, #3fe2f5 20% 48%, #0b3550 52%); box-shadow: 0 0 12px rgba(94,241,255,.8); animation: v3iris 3.2s ease-in-out infinite; }
  @keyframes v3iris { 50% { transform: scale(.82); } }
  .tright { display: flex; align-items: center; gap: 8px; }
  .status { font: 600 11px/1 var(--mono) !important; letter-spacing: .1em; padding: 7px 10px; border-radius: 99px; background: rgba(93,255,168,.07); border: 1px solid rgba(93,255,168,.22);
            color: var(--ok); box-shadow: none; text-transform: uppercase; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .status[data-s="bad"] { background: rgba(255,77,109,.08); border-color: rgba(255,77,109,.35); }
  .status[data-s="rec"], .status[data-s="warn"], .status[data-s="think"], .status[data-s="speak"] { background: rgba(94,241,255,.06); border-color: var(--line-strong); }
  .mebtn { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--display); letter-spacing: .04em; color: var(--text);
           background: radial-gradient(circle at 30% 30%, #1d3a62, #0b1628); box-shadow: 0 0 0 1.5px rgba(94,241,255,.5), 0 0 14px rgba(94,241,255,.25); }

  /* bottom menu: 5 tabs with a gliding light */
  nav.tabs { width: min(460px, calc(100% - 24px)); gap: 0; border-radius: 20px; background: linear-gradient(180deg, rgba(16,34,58,.86), rgba(6,14,28,.9)); border-color: rgba(120,220,255,.18); }
  nav.tabs button { position: relative; z-index: 1; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: none !important; padding: 9px 0 7px; }
  nav.tabs button.active { color: var(--accent); text-shadow: none; }
  nav.tabs .beam { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 20px; transition: transform .35s cubic-bezier(.2,.8,.2,1), width .35s;
    background: linear-gradient(180deg, rgba(94,241,255,.18), rgba(94,241,255,.04)); box-shadow: inset 0 0 0 1px rgba(94,241,255,.35), 0 0 20px rgba(94,241,255,.2); }
  nav.tabs .beam::before { content: ""; position: absolute; top: -1px; left: 25%; right: 25%; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent); }

  /* home */
  .recorder { padding: 18px 16px 16px; }
  .timer { font-size: 32px; margin: 16px 0 8px; }
  .glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gl { display: block; text-align: left; padding: 12px 12px 11px; margin: 0; color: var(--text); box-shadow: none; }
  .gl .num { font: 700 24px/1.1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .gl .cap { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
  #homeToday { margin-top: 8px; }
  .telem { padding: 4px 14px; }
  .tl { display: grid; grid-template-columns: 104px 1fr 78px; align-items: center; gap: 10px; padding: 10px 0; font: 500 12px var(--mono); }
  .tl + .tl { border-top: 1px dashed rgba(120,220,255,.12); }
  .tl .nm { color: var(--text); letter-spacing: .03em; } .tl .nm small { display: block; color: var(--faint); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
  .tl .meter { height: 6px; border-radius: 12px; background: rgba(255,255,255,.07); overflow: hidden; position: relative; }
  .tl .meter i { position: absolute; inset: 0 auto 0 0; border-radius: 12px; background: var(--grad); box-shadow: 0 0 10px rgba(94,241,255,.6); transition: width .8s cubic-bezier(.2,.8,.2,1); }
  .tl .meter.v i { background: var(--grad-grok); } .tl .meter.off i { background: rgba(255,255,255,.12); box-shadow: none; }
  .tl .val { text-align: right; color: var(--accent); font-variant-numeric: tabular-nums; } .tl .val.off { color: var(--faint); } .tl .val.v { color: var(--violet); }

  /* chat */
  .chathead { margin: 4px 0 10px; }
  .cseg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: rgba(10,22,40,.7); border: 1px solid var(--line); }
  .cseg .glide { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; transition: transform .3s cubic-bezier(.2,.8,.2,1);
    background: linear-gradient(120deg, rgba(94,241,255,.22), rgba(79,139,255,.14)); box-shadow: inset 0 0 0 1px rgba(94,241,255,.5), 0 0 18px rgba(94,241,255,.25); }
  .cseg.grok .glide { transform: translateX(100%); background: linear-gradient(120deg, rgba(169,147,255,.25), rgba(255,122,217,.12)); box-shadow: inset 0 0 0 1px rgba(169,147,255,.6), 0 0 18px rgba(169,147,255,.3); }
  .cseg button { position: relative; z-index: 1; background: none; box-shadow: none; color: var(--muted); height: 38px; padding: 0; font: 700 13px var(--display); letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .cseg button.on { color: var(--text); }
  .cseg .pip { width: 7px; height: 7px; border-radius: 50%; background: #5ef1ff; box-shadow: 0 0 8px #5ef1ff; }
  .cseg button[data-chat="grok"] .pip { background: #a993ff; box-shadow: 0 0 8px #a993ff; }
  .croute { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; text-align: center; flex-wrap: wrap; }
  .croute .ln { width: 16px; height: 1px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
  .croute .linkbtn { padding: 2px 4px; font-size: 11px; letter-spacing: .06em; }
  .iconbtn { background: none; box-shadow: none; border: 1px solid var(--line); color: var(--muted); padding: 4px 8px; font-size: 13px; border-radius: 12px; }
  .msg.user { background: var(--grad); box-shadow: 0 0 20px rgba(79,139,255,.3); font-weight: 500; }
  .msg.assistant { background: linear-gradient(180deg, rgba(20,42,72,.62), rgba(10,22,40,.6)); border: 1px solid var(--line); border-left: 2px solid var(--accent); box-shadow: -4px 0 14px -6px rgba(94,241,255,.7); }
  .msg .who { font: 600 11px var(--mono); letter-spacing: .1em; color: var(--accent); }
  #view-grok { --accent: #a993ff; --accent-2: #ff7ad9; --line-strong: rgba(169,147,255,.45); }
  #view-grok .msg.user { background: var(--grad-grok); box-shadow: 0 0 20px rgba(169,147,255,.3); }
  #view-grok .croute .ln { background: #a993ff; box-shadow: 0 0 6px #a993ff; }
  .agentbar { margin-bottom: 6px; }
  .achip { font: 500 13px var(--body); letter-spacing: 0; border-radius: 12px; background: rgba(255,255,255,.035); }
  .achip.on { background: rgba(94,241,255,.12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(94,241,255,.45), 0 0 14px rgba(94,241,255,.18); }
  .micbtn { flex: 0 0 auto !important; width: 46px; height: 46px; padding: 0 !important; border-radius: 50% !important; display: grid; place-items: center; color: #02121c !important;
            background: var(--grad) !important; border: 0 !important; box-shadow: 0 0 20px rgba(94,241,255,.45) !important; }
  .micbtn svg { width: 21px; height: 21px; }
  #view-assistant .row:has(#aAsk), #view-grok .row:has(#gAsk) { flex-wrap: nowrap; gap: 7px; }
  #aAskBtn, #gAskBtn, #gTalk { padding: 0 12px; height: 46px; flex: 0 0 auto; font-size: 13px; }
  #aCamBtn { width: 40px; height: 40px; font-size: 15px !important; padding: 0 !important; display: grid; place-items: center; border-radius: 50% !important; }
  #aAsk, #gAsk { min-height: 46px; padding: 12px 14px; border-radius: 20px; }
  .tl { grid-template-columns: 118px 1fr 74px; }

  /* voice: a full-screen HUD that only appears while talking */
  #view-assistant .voice-card { display: none; }
  .voice-card .vclose, .voice-card .vcorner { display: none; }
  body.voice-open #view-assistant .voice-card { display: flex; flex-direction: column; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 30; margin: 0; border-radius: 0;
    padding: calc(40px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom));
    background: radial-gradient(circle at 50% 40%, rgba(12,40,70,.96), rgba(2,6,12,.985) 66%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  body.voice-open #view-assistant .voice-card::before { display: none; }
  body.voice-open .voice-card .vclose { display: grid; place-items: center; position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; padding: 0; border-radius: 50%;
    background: rgba(255,255,255,.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 16px; }
  body.voice-open .voice-card .vcorner { display: block; position: absolute; top: calc(18px + env(safe-area-inset-top)); font: 500 11px/1.7 var(--mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
  .vcorner b { color: var(--accent); font-weight: 600; } .vtl { left: 18px; text-align: left; } .vtr { right: 74px; text-align: right; }
  body.voice-open .voice-card.compact .reactor.voice { width: 210px; height: 210px; }
  body.voice-open .voice-card.compact .reactor.voice .r2 { inset: 16px; } body.voice-open .voice-card.compact .reactor.voice .r3 { inset: 32px; }
  body.voice-open .voice-card.compact .reactor.voice .core { inset: 54px; font-size: 12px; }
  body.voice-open .voice-card .vstatus { margin-top: 18px; font-size: 11px; }
  body.voice-open .voice-card .heard { font-size: 20px; font-style: normal; color: var(--text); max-width: 340px; min-height: 52px; margin-top: 14px; }
  body.voice-open #vWave { height: 46px; max-width: 360px; }
  body.voice-open nav.tabs { display: none; }
  #view-grok .voice-card { display: none; }
  body.grok-voice #view-grok .voice-card { display: block; }

  /* library pills scroll sideways instead of wrapping */
  .logs-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; }
  .logs-seg::-webkit-scrollbar { display: none; }
  .logs-seg button { flex: 0 0 auto; padding: 9px 14px; font: 500 15px var(--body); border-radius: 12px; background: rgba(255,255,255,.035); color: var(--muted); }
  .logs-seg button.on { background: var(--grad); color: #02121c; font-weight: 600; }

  .fcap { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

  .payday { text-align: center; flex: none; }
  .payday svg { width: 64px; height: 64px; display: block; } .payday svg circle { fill: none; stroke-width: 4; }
  .payday text { font: 700 16px var(--display); fill: var(--text); }

  .amt { font: 600 15px var(--display); letter-spacing: .02em; text-align: right; white-space: nowrap; }
  .amt small { display: block; font: 500 11px var(--mono); color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
  .chip.w { color: var(--warn-c); border-color: rgba(255,181,71,.4); background: rgba(255,181,71,.1); }
  .chip.c { color: var(--accent); border-color: rgba(94,241,255,.4); background: rgba(94,241,255,.1); }
  .missing { padding: 14px; border-radius: 20px; margin: 8px 0 0; background: repeating-linear-gradient(135deg, rgba(255,181,71,.05) 0 8px, transparent 8px 16px); box-shadow: inset 0 0 0 1px rgba(255,181,71,.3); }
  .missing .h { font: 600 11px var(--mono); letter-spacing: .12em; color: var(--warn-c); text-transform: uppercase; }
  .missing .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
  .missing .tags button { font: 500 13px var(--body); padding: 6px 11px; border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .cc { position: relative; flex: none; width: 264px; height: 164px; border-radius: 20px; padding: 15px 16px; scroll-snap-align: start; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
    text-align: left; color: var(--text); font: 400 15px var(--body); cursor: pointer;
    background: linear-gradient(135deg, #10325a 0%, #0b1a33 55%, #2a1d55 100%); box-shadow: 0 0 0 1px rgba(94,241,255,.35), 0 12px 30px rgba(0,0,0,.4), 0 0 26px rgba(79,139,255,.18); }
  .cc:nth-child(even) { background: linear-gradient(135deg, #2b1a52 0%, #120d2a 55%, #3d1446 100%); box-shadow: 0 0 0 1px rgba(169,147,255,.45), 0 12px 30px rgba(0,0,0,.4); }
  .cc::before { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); animation: v3sheen 6s ease-in-out infinite; pointer-events: none; }
  @keyframes v3sheen { 0% { transform: translateX(-30%); } 60%, 100% { transform: translateX(30%); } }
  .cc .top { display: flex; justify-content: space-between; align-items: center; position: relative; }
  .cc .nm { font: 700 13px var(--display); letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
  .cc .l4 { font: 500 11px var(--mono); color: var(--muted); letter-spacing: .1em; }
  .cc .bal { position: relative; } .cc .bal b { display: block; font: 700 24px var(--display); margin-top: 2px; }
  .cc .util { position: relative; height: 5px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; }
  .cc .util i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--grad); }
  .cc .util i.hi { background: linear-gradient(90deg, var(--warn-c), var(--danger)); }
  .cc .foot { position: relative; display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--muted); letter-spacing: .03em; margin-top: 7px; }
  .cc.add { background: rgba(255,255,255,.02); box-shadow: inset 0 0 0 1.5px rgba(94,241,255,.35); align-items: center; justify-content: center; gap: 8px; color: var(--accent); font-weight: 600; }
  .cc.add::before { display: none; } .cc.add .plus { font-size: 30px; line-height: 1; }
  .plan { padding: 14px 16px; margin-top: 4px; }
  .plan .big { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; } .plan .big b { font: 700 22px var(--display); } .plan .big span { font: 600 15px var(--mono); color: var(--accent); }
  .plan .bar { height: 6px; border-radius: 12px; background: rgba(255,255,255,.08); margin: 12px 0 10px; position: relative; overflow: hidden; }
  .plan .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 12px; background: var(--grad); box-shadow: 0 0 10px #5ef1ff; }
  .debtsum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .debtsum span { display: block; font-size: 12px; color: var(--muted); } .debtsum b { font: 700 19px var(--display); white-space: nowrap; } .debtsum b.good { color: var(--ok); }
  .plan .debtbar { height: 10px; margin: 10px 0 6px; } .plan .debtbar i { background: var(--ok); box-shadow: 0 0 10px rgba(93,255,168,.5); }
  .nextoff { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); font-size: 15px; }
  .nextoff .n { font-size: 17px; line-height: 1.3; } .nextoff.extra b { color: var(--text); }
  .debtlist { margin: 12px 0 8px; display: grid; gap: 6px; }
  .debtrow { display: block; width: 100%; text-align: left; font: inherit; color: inherit; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); cursor: pointer; }
  .debtrow .dtop, .debtrow .dfoot { display: flex; justify-content: space-between; gap: 8px; } .debtrow .dtop { font-size: 15px; } .debtrow .dtop b { white-space: nowrap; }
  .debtrow .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .debtrow .bar { height: 6px; margin: 7px 0 5px; } .debtrow .bar i { background: var(--ok); box-shadow: none; }
  .debtrow .dfoot { font-size: 12px; color: var(--muted); } .debtrow .xtra { color: var(--accent); font-weight: 600; }
  .plan .stp { display: flex; gap: 10px; align-items: center; font-size: 15px; padding: 4px 0; }
  .plan .stp .n { width: 22px; height: 22px; border-radius: 12px; display: grid; place-items: center; font: 600 11px var(--mono); background: rgba(94,241,255,.1); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(94,241,255,.3); flex: none; }
  .asks { display: flex; gap: 8px; flex-wrap: wrap; }
  .asks button { font: 500 15px var(--body); padding: 10px 13px; }

  .fmonth { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; margin: 14px 0 0; }
  .fmonth button { min-height: 44px; border-radius: 12px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 600 15px var(--body); }
  
 .chk-row .s .chip { margin-left: 2px; vertical-align: 1px; white-space: nowrap; }
  .paybtn { flex: none; min-width: 78px; min-height: 44px; padding: 0 14px; border-radius: 12px; font: 700 15px var(--body); background: linear-gradient(120deg, var(--ok), var(--ok)); color: #02170c; box-shadow: 0 0 16px rgba(93,255,168,.3); }
  #dlg .card { padding-top: 14px; }
  .dlgx { position: sticky; top: 0; float: right; z-index: 3; width: 40px; height: 40px; margin: -4px -4px 0 8px; padding: 0; border-radius: 50%;
          display: grid; place-items: center; font: 600 16px var(--body); color: var(--text); background: rgba(10,22,40,.92);
          box-shadow: inset 0 0 0 1px var(--line-strong), 0 4px 14px rgba(0,0,0,.4); }
  .dlgx + * { margin-top: 0 !important; }
  .routecard { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); }
  .routecard .ab { flex-wrap: nowrap !important; margin-bottom: 8px; } .routecard .ab select { flex: 1; }
  .abpin { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 800 12px var(--body); color: #02121c; flex: 0 0 26px !important; }
  .abpin.a { background: var(--ok); } .abpin.b { background: var(--danger); }
  .rtchk { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; font-size: 15px; } .rtchk input { width: 20px; height: 20px; accent-color: #5ef1ff; }
  .routemap { height: 230px; border-radius: 12px; overflow: hidden; background: #0b1626; box-shadow: inset 0 0 0 1px var(--line); }
  .routemap .leaflet-control-attribution { font-size: 11px; background: rgba(0,0,0,.5); color: #ccc; } .routemap .leaflet-control-attribution a { color: var(--accent); }
  .routeinfo { margin: 10px 2px; font-size: 15px; } .routeinfo b { color: var(--text); font: 700 18px var(--display); }
  .swipe { position: relative; overflow: hidden; border-radius: 12px; touch-action: pan-y; }
  .swipe + .swipe { border-top: 1px solid var(--line); }
  .swipe .person { position: relative; z-index: 1; background: #0d1a2c; padding-left: 4px; padding-right: 4px; border-top: 0 !important; will-change: transform; }
  .swipe .swbg { position: absolute; inset: 0; display: none; align-items: center; padding: 0 18px; font: 700 15px var(--body); color: #fff; }
  .swipe .swbg.left { background: #2f6fe0; justify-content: flex-start; } .swipe .swbg.right { background: #d92d3f; justify-content: flex-end; }
  .swipe.goright .swbg.left, .swipe.goleft .swbg.right { display: flex; }
  .swipe.armed .swbg { filter: brightness(1.25); } .swipe.armed .swbg.left { font-size: 15px; } .swipe.armed .swbg.right { font-size: 15px; }
  .genbar { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border-radius: 99px; background: rgba(169,147,255,.12); box-shadow: inset 0 0 0 1px rgba(169,147,255,.4); }
  .genbar .gb-lbl { color: var(--violet); white-space: nowrap; }
  .genbar .gb-track { width: 72px; height: 6px; border-radius: 12px; background: rgba(255,255,255,.1); overflow: hidden; position: relative; }
  .genbar .gb-track i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 12px; background: linear-gradient(90deg, #a993ff, #5ef1ff); box-shadow: 0 0 8px #a993ff; transition: width .6s linear; }
  .genbar b { color: var(--text); font-weight: 600; min-width: 34px; text-align: right; }
  .genbar.ai { background: rgba(94,241,255,.10); box-shadow: inset 0 0 0 1px rgba(94,241,255,.4); margin-left: 6px; }
  .genbar.ai .gb-lbl { color: #8ff6ff; }
  .genbar.ai .gb-track i { background: linear-gradient(90deg, #5ef1ff, #7dffb2); box-shadow: 0 0 8px #5ef1ff; transition: width .9s ease-out; }
  .genbar.ai { padding: 3px 8px; gap: 6px; } .genbar.ai .gb-track { width: 56px; } .genbar.ai b { min-width: 30px; font-size: 12px; }
  .genbar.ai:not(.busy) { opacity: .55; } .genbar.ai.busy .gb-lbl { animation: aipulse 1.2s ease-in-out infinite; }
  @keyframes aipulse { 50% { opacity: .45; } }
  .genbar.g4080 { background: rgba(169,147,255,.10); box-shadow: inset 0 0 0 1px rgba(169,147,255,.4); }
  .genbar.g4080 .gb-lbl { color: var(--violet); } .genbar.g4080 .gb-track i { background: linear-gradient(90deg, #a993ff, #ff8fd8); box-shadow: 0 0 8px #a993ff; }
  .gen-wrap { position: relative; display: inline-block; max-width: 420px; width: 100%; margin: 4px 0; }
  .gen-wrap .gen-img { margin: 0; }
  .gen-del, .gen-save, .gen-copy { position: absolute; top: 8px; width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 16px;
    background: rgba(4,10,20,.75); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-decoration: none; }
  .gen-del { right: 8px; } .gen-save { right: 54px; } .gen-copy { right: 100px; }
  .tripkind { margin: 2px 0 4px; } .tripkind button { min-height: 46px; font-size: 15px; }
  .irsline { font-size: 13px; color: var(--muted); margin: -4px 2px 2px; } .irsline b { color: var(--text); } .irsline .linkbtn { padding: 2px 6px; }
  .accttotal { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; margin-bottom: 8px; }
  .accttotal span { font-weight: 600; } .accttotal b { font: 700 22px var(--display); color: #5ef1ff; }
  .gasbtn { width: 100%; min-height: 52px; margin-bottom: 12px; border-radius: 12px; font: 700 16px var(--body); background: linear-gradient(120deg, var(--warn-c), #ff7a45); color: #1a0d00; box-shadow: 0 0 18px rgba(255,181,71,.3); }
  .place-row .locbtn { flex: 0 0 44px !important; width: 44px; height: 44px; padding: 0; font-size: 18px; border-radius: 12px; }
  .bf-prog { height: 8px; border-radius: 12px; background: rgba(255,255,255,.08); overflow: hidden; }
  .bf-prog > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
  .bf-row { display: flex; align-items: center; gap: 8px; padding: 10px 2px; border-top: 1px solid var(--line); }
  .bf-row .bf-n { flex: 1; min-width: 0; } .bf-row .bf-n b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  .bf-row a, .bf-row button { flex: none; padding: 8px 10px; min-height: 0; font-size: 13px; }
  .gaddr { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
  .gasrow { cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
  .gasrow .gn { flex: 1; min-width: 0; } .gasrow .gn .muted { font-size: 13px; } .gasrow .gall { font: 500 12px var(--mono); color: var(--muted); margin-top: 3px; }
  .gasrow .gp { font: 700 19px var(--display); color: var(--accent); white-space: nowrap; }
  .gasrow.best .gp { color: var(--ok); }
  .addpay { width: 100%; min-height: 56px; border-radius: 20px; font: 700 17px var(--body); letter-spacing: 0; background: linear-gradient(120deg, var(--ok), var(--ok)); color: #02170c; box-shadow: 0 0 22px rgba(93,255,168,.35); }
  .pots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .pot { display: block; width: 100%; text-align: left; margin: 0; padding: 14px; color: var(--text); font: 400 15px var(--body); box-shadow: none; }
  .pot.empty { opacity: .8; } .pot .pamt { font: 700 22px var(--display); margin: 6px 0 8px; }
  .pleft { margin: 6px 0 10px; } .pleft span { display: block; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
  .pleft b { display: block; font: 800 27px/1.15 var(--display); color: var(--ok); text-shadow: 0 0 16px rgba(93,255,168,.35); white-space: nowrap; letter-spacing: -.01em; }
  .pleft.short span, .pleft.short b { color: var(--danger); text-shadow: 0 0 16px rgba(255,90,110,.35); }

  .pline { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); padding: 2px 0; }
  .pline b { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pline.left { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; font-weight: 600; color: var(--text); } .pline.left b { color: var(--ok); }
  .pline.short b, .pline.short span { color: var(--danger) !important; }
  button.moneyleft { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
  button.moneyleft:active { transform: scale(.99); }
  .moneyleft .neg, .spendtop .neg { color: var(--danger); }
  .addspend { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); color: var(--accent); font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; }
  .spendtop { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; }
  .spendtop > div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
  .spendtop span { display: block; font-size: 12px; color: var(--muted); }
  .spendtop b { font: 700 19px var(--display); color: var(--ok); white-space: nowrap; } .spendtop > div + div b { color: var(--text); }
  .paidtag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font: 700 11px var(--display, inherit); letter-spacing: .08em;
    text-transform: uppercase; color: #04140b; background: var(--ok); box-shadow: 0 0 10px rgba(93,255,168,.35); vertical-align: 2px; transform: rotate(-3deg); }
  .row2.billpaid .amt { opacity: .55; }
  .pots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pots > .pot { min-width: 0; padding-left: 12px; padding-right: 12px; }
  .pots .pline { gap: 4px; font-size: 13px; } .pots .pline span { min-width: 0; } .pots .pline b { white-space: nowrap; }
  .pline.pspend b { color: var(--danger); }
  .moneyleft .good { color: var(--ok); }
  .avail { color: var(--ok); font-weight: 600; font-size: 13px; margin-top: 4px; }
  .availtot { color: var(--muted); font-size: 13px; margin: 2px 0 4px; } .availtot b { color: var(--ok); font-size: 15px; }
  .swipe .swcard { position: relative; z-index: 1; background: #0d1a2c; will-change: transform; }
  .acctsw .swbg.left { background: #1f9d5c; } .acctsw .swbg.right { background: #5b6473; }
  .acctsw + .acctsw { border-top: 1px solid var(--line); }
  .linktag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #04140b; background: var(--ok); vertical-align: 2px; } .pline.ptop { margin-top: 6px; color: var(--text); } .pline.ptop b { color: var(--text); }
  .chk-row.canplan { cursor: pointer; } .chk-row.canplan:active { background: rgba(94,231,255,.06); }
  .planpen { font-size: 12px; color: var(--accent); opacity: .7; }
  .spadd input { flex: 1; min-width: 0; } .spadd button { flex: 0 0 auto; } #spCam { padding-left: 12px; padding-right: 12px; font-size: 18px; }
  .spreading { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 15px; color: var(--accent); }
  .spreading .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(94,231,255,.25); border-top-color: var(--accent); animation: spspin .8s linear infinite; }
  @keyframes spspin { to { transform: rotate(360deg); } }
  .spfound { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 8px; border-radius: 12px; background: rgba(94,231,255,.06); border: 1px solid rgba(94,231,255,.25); font-size: 15px; }
  .spfound img { width: 48px; height: 60px; object-fit: cover; border-radius: 12px; cursor: zoom-in; flex: 0 0 auto; }
  .spfound .neg { color: var(--danger); }
  .sprc { padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.15); background: none; cursor: zoom-in; }
  .sprc img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .spdate { align-items: center; margin-top: 8px; } .spdate span { flex: 0 0 42px; font-size: 13px; } .spdate input { flex: 1; }
  .spendlist { max-height: 34vh; overflow-y: auto; margin: 4px -4px 0; }
  .spendlist .row2 { padding: 8px 4px; gap: 6px; } .spendlist .spdel, .spendlist .spedbtn { padding: 6px 7px; font-size: 16px; }
  .spendlist .spamt { color: var(--danger); font-weight: 600; white-space: nowrap; background: none; border: 1px dashed rgba(255,139,154,.35); border-radius: 12px; padding: 4px 7px; font-size: 15px; }
  .spendlist .spedbtn { color: var(--accent); } .spendlist .grow.spedit { cursor: pointer; min-width: 0; } .spnote { font-style: italic; }
  #spPer button { flex: 1; font-size: 13px; padding-left: 4px; padding-right: 4px; }
  .gen-img, .chat-photo, img.grok-inline { cursor: zoom-in; }
  #imgView { position: fixed; inset: 0; z-index: 1000; background: rgba(2,5,10,.96); display: flex; align-items: center; justify-content: center;
    padding: calc(env(safe-area-inset-top) + 60px) 10px calc(env(safe-area-inset-bottom) + 16px); }
  #imgView img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; touch-action: pinch-zoom; }
  .iv-bar { position: absolute; top: calc(env(safe-area-inset-top) + 10px); left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 10px; }
  .iv-bar button { height: 44px; min-width: 44px; padding: 0 16px; border-radius: 20px; font-size: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; }
  #ivClose { width: 44px; padding: 0; font-size: 20px; }
  body.iv-open { overflow: hidden; }
  .moneyleft { margin-top: 10px; padding: 14px; } .moneyleft .pline.big { font-size: 15px; color: var(--text); font-weight: 600; }
  .moneyleft .pline.big b { font: 700 22px var(--display); color: var(--ok); }
  #view-finance .neg { color: var(--danger); }

  .fform label { display: block; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
  .fform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  /* start-up */
  #boot { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
          background: radial-gradient(circle at 50% 45%, #0b2340, #02060c 70%); transition: opacity .5s, visibility .5s; }
  #boot.done { opacity: 0; visibility: hidden; }
  #boot .beye { width: 76px; height: 76px; } #boot .beye i { width: 40px; height: 40px; }
  #boot .bword { font: 800 22px var(--display); letter-spacing: .4em; padding-left: .4em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  #boot .bload { width: 200px; height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
  #boot .bload i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 10px #5ef1ff; transition: width .25s; }
  #boot pre { margin: 0; min-height: 110px; width: 250px; font: 500 11px/1.8 var(--mono); color: var(--muted); letter-spacing: .05em; white-space: pre-wrap; }
  #boot pre b { color: var(--ok); font-weight: 600; } #boot pre em { color: var(--faint); font-style: normal; }
  @media (prefers-reduced-motion: reduce) { body::before, .beye::before, .cc::before { animation: none !important; } #fx { display: none; } }

  /* ================= screen sizes: iPhone · Galaxy Fold (closed / open) · PC ================= */
  textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fgrid > .fcol > h2:first-child, .fgrid > .fcol > :first-child { margin-top: 0; }

  /* Fold closed (cover screen ~344px) and small phones */
  @media (max-width: 380px) {
    main { padding-left: 12px; padding-right: 12px; }
    h1 { font-size: 22px; }
    .status { padding: 6px 8px; letter-spacing: .04em; max-width: 42vw; }
    .pots { grid-template-columns: minmax(0, 1fr); }            /* the two paychecks stack */
    .pots .pline { font-size: 15px; }
    .moneyleft .pline.big { flex-wrap: wrap; } .moneyleft .pline.big b { font-size: 20px; }
    .addspend { font-size: 13px; }
    .chk-row { gap: 8px; } .chk-row .s .chip { white-space: normal; }
    .paybtn { min-width: 62px; padding: 0 10px; font-size: 13px; }
    .croute { gap: 6px; font-size: 11px; letter-spacing: .02em; } .croute .ln { display: none; }
    #aAsk, #gAsk { font-size: 15px; min-width: 0; }
    nav.tabs { width: calc(100% - 16px); } nav.tabs button { font-size: 8.5px; letter-spacing: .02em; }
    .spendtop b, .debtsum b { font-size: 16px; }
    #spPer button { font-size: 12px; }
    .seg-choice button { padding-left: 6px; padding-right: 6px; }
    .logs-seg { flex-wrap: wrap; } .logs-seg button { flex: 1 1 auto; }
    #dlg { padding-left: 8px; padding-right: 8px; } #dlg .card { padding: 14px; }
  }

  /* Fold open (~690px) and tablets: use the extra width */
  @media (min-width: 600px) and (max-width: 1099px) {
    main { max-width: 900px; padding-left: 22px; padding-right: 22px; }
    .chat .msg { max-width: min(80%, 620px); }
    nav.tabs { width: min(560px, calc(100% - 32px)); }
    nav.tabs button { font-size: 11px; }
  }

  /* PC: full screen, menu on the left, side-by-side columns */
  @media (min-width: 1100px) {
    body { padding-bottom: 24px; }
    main { max-width: 1680px; margin: 0 0 0 max(124px, calc((100vw - 1680px) / 2)); padding: 22px 40px 32px 16px; }
    nav.tabs { left: 18px; top: 50%; bottom: auto; transform: translateY(-50%); width: 88px; flex-direction: column; gap: 6px; padding: 8px; border-radius: 20px; }
    nav.tabs button { flex: none; padding: 14px 0 11px; font-size: 11px; gap: 6px; }
    nav.tabs button svg { width: 24px; height: 24px; }
    nav.tabs .beam { top: 0; bottom: auto; left: 8px; right: 8px; width: auto !important; }
    nav.tabs .beam::before { top: 25%; bottom: 25%; left: -1px; right: auto; width: 2px; height: auto; }
    h1 { font-size: 30px; }

    #homeExtras > h2:first-child { margin-top: 0; }

    /* Finance: the month (paychecks, still to pay) on the left; bills, cards, payoff and accounts on the right */
    .fgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
    .cards { margin: 0; padding: 4px 0 12px; }

    /* Chat: full height, wider bubbles */
    .chat .msg { max-width: min(72%, 820px); }
    #view-assistant .chatbox, #view-grok .chatbox { min-height: 360px; }

    /* Reading pages stay a comfortable width */
    #view-list, #view-tasks, #view-convo, #view-settings { max-width: 1180px; }
    #convoList, #receiptList, #milesList, #peopleList, #inboxList { font-size: 15.5px; }
    #dlg .card { width: min(520px, 100%); }
  }
  @media (min-width: 1100px) and (max-height: 700px) { nav.tabs button { padding: 9px 0 7px; } }
  /* Home → AI usage: your machines vs Grok, glowing bars */
  h2 .au-seg.seg-choice { float: right; margin-top: -6px; gap: 4px; }
  h2 .au-seg.seg-choice button { padding: 5px 10px; min-height: 0; height: auto; font-size: 11px; line-height: 1.2; letter-spacing: .04em; white-space: nowrap; }
  .au { display: grid; gap: 14px; padding: 16px; }
  .au-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
  .au-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: #fff; }
  .au-ico.m { background: linear-gradient(135deg, #0e3b52, #1d6f8f); box-shadow: 0 0 14px rgba(94,241,255,.35); }
  .au-ico.g { background: linear-gradient(135deg, #3b2a6b, #7a4fd1); box-shadow: 0 0 14px rgba(169,147,255,.35); }
  .au-bar { position: relative; height: 26px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); overflow: hidden; }
  .au-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 12px; transition: width 1s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
  .au-bar.m i { background: linear-gradient(90deg, #0f5d7a, #5ef1ff); box-shadow: 0 0 16px rgba(94,241,255,.55); }
  .au-bar.g i { background: linear-gradient(90deg, #5a3aa8, var(--violet)); box-shadow: 0 0 16px rgba(169,147,255,.55); }
  .au-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.35) 45%, transparent 70%);
                     background-size: 200% 100%; animation: auShine 3.2s linear infinite; }
  @keyframes auShine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
  @media (prefers-reduced-motion: reduce) { .au-bar i::after { animation: none; } .au-bar i { transition: none; } }
  .au-num { text-align: right; min-width: 92px; }
  .au-num b { font: 700 30px/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
  .au-num b small { font-size: 15px; margin-left: 1px; }
  .au-num div { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
  .au-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
  .au-foot { font-size: 12px; color: var(--muted); }
  @media (max-width: 420px) { .au-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; } .au-ico { width: 36px; height: 36px; font-size: 17px; }
    .au-num { min-width: 70px; } .au-num b { font-size: 24px; } }
  /* ---- Memory page: rings / timeline / network / list of the shared memory, by source */
  .mem-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
  @media (max-width: 900px) { .mem-layout { grid-template-columns: minmax(0, 1fr); } }
  .mem-main { padding: 12px; min-width: 0; }
  .mem-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
  .mem-bar .seg-choice { flex: 0 1 auto; }
  .mem-bar .seg-choice button { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  .mem-bar input { flex: 1 1 160px; min-width: 0; padding: 9px 12px; font-size: 15px; }
  #memStage { position: relative; width: 100%; }
  #memCanvas { display: block; width: 100%; height: 440px; touch-action: manipulation; cursor: pointer; }
  @media (min-width: 900px) { #memCanvas { height: 560px; } }
  #memEmpty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
  #memEmpty.hidden { display: none; }
  .mem-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .mem-stats div { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
  .mem-stats b { display: block; font: 700 20px/1.1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
  .mem-stats span { font-size: 11px; color: var(--muted); }
  @media (max-width: 480px) { .mem-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .mem-side { padding: 14px; display: grid; gap: 8px; }
  .mem-side-h { display: flex; justify-content: space-between; align-items: baseline; }
  .msrc { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 12px;
          cursor: pointer; border: 1px solid transparent; background: none; color: inherit; text-align: left; width: 100%; font: inherit; }
  .msrc:hover { background: rgba(255,255,255,.04); }
  .msrc .dot { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #04121c; }
  .msrc .nm { font-size: 15px; } .msrc .nm small { display: block; font-size: 12px; color: var(--muted); }
  .msrc .tg { width: 34px; height: 20px; border-radius: 12px; background: rgba(255,255,255,.12); position: relative; transition: background .2s; }
  .msrc .tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
  .msrc.on .tg { background: var(--accent); } .msrc.on .tg::after { transform: translateX(14px); }
  .msrc.off .dot, .msrc.off .nm { opacity: .4; }
  .msrc.none .nm small { color: var(--faint, #56708a); }
  .mem-picked { margin-top: 14px; }
  .mem-picked .mph { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
  .mitem { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer; }
  .mitem:first-child { border-top: 0; }
  .mitem i { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
  .mitem .tx { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
  .mitem .tx mark { background: rgba(94,241,255,.25); color: inherit; border-radius: 3px; padding: 0 1px; }
  .mitem .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
  #memListBox { max-height: 560px; overflow-y: auto; padding-right: 4px; }
  .mtopics { display: flex; flex-wrap: wrap; gap: 6px; }
  .mtopics button { padding: 4px 9px; min-height: 0; font-size: 12px; }
  @media (max-width: 520px) { .mem-bar .seg-choice { flex: 1 1 100%; display: flex; flex-wrap: nowrap; gap: 4px; } .mem-bar .seg-choice button { flex: 1; padding: 7px 4px; font-size: 12px; }
    #memCanvas { height: 400px; } }
  /* Hermes's computer: live screen of the Debian box */
  .box-open { width: 100%; margin-top: 8px; }
  #boxView { position: fixed; inset: 0; z-index: 45; background: #02060c; display: flex; flex-direction: column;
             padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
  #boxView.hidden { display: none; }
  .box-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .box-title { font: 700 13px/1.2 var(--display); letter-spacing: .06em; color: var(--text); }
  .box-title small { font: 500 11px var(--mono); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
  .box-acts { display: flex; gap: 6px; } .box-acts button { padding: 7px 12px; min-height: 0; font-size: 13px; }
  #boxCtl.on { color: var(--warn-c); border-color: rgba(255,200,94,.5); }
  #boxStage { flex: 1; position: relative; display: flex; min-height: 0; }
  #boxFrame { flex: 1; width: 100%; border: 0; background: #000; }
  #boxPad { position: absolute; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
            display: flex; flex-direction: column; justify-content: flex-end; background: rgba(94,241,255,.025); }
  #boxPad.hidden { display: none; }
  .pad-hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px);
              font-size: 13px; line-height: 1.45; color: var(--text); background: rgba(2,6,12,.82); border: 1px solid var(--line);
              padding: 8px 12px; border-radius: 12px; pointer-events: none; transition: opacity .6s; text-align: center; }
  .pad-hint.faded { opacity: 0; }
  .pad-btns { display: flex; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(2,6,12,.9) 40%); }
  .pad-btns button { flex: 1; padding: 14px 4px; min-height: 0; font-size: 15px; background: rgba(255,255,255,.08); border: 1px solid var(--line);
                     color: var(--text); border-radius: 12px; touch-action: manipulation; }
  .pad-btns button:active { background: rgba(94,241,255,.18); }
  .pad-btns button.on { color: var(--warn-c); border-color: rgba(255,200,94,.6); }
  .box-type { padding: 8px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; background: rgba(6,16,30,.96); }
  .box-type.hidden { display: none; }
  .box-type-row { display: flex; gap: 8px; } .box-type-row input { flex: 1; min-width: 0; font-size: 16px; padding: 10px 12px; }
  .box-type-row button { padding: 10px 16px; }
  .box-enter { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
  .box-enter input { width: 18px; height: 18px; accent-color: var(--accent); }
  .box-keys { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .box-keys button { flex: 0 0 auto; padding: 8px 12px; min-height: 0; font-size: 13px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); border-radius: 12px; }
  #boxZoom.on, #boxKb.on, #boxPadBtn.on { color: var(--accent); border-color: rgba(94,241,255,.5); }
  @media (max-width: 560px) { .box-title small { display: none; } .box-acts button { padding: 7px 9px; font-size: 13px; } }
