  /* ===== Zumbrix home redesign (Nov 2026): AgentOS-style dashboard, Apple-style details, Zumbrix blue.
     While recording, the whole app turns red (body.recording). The ZUMBRIX logo never changes color. ===== */
  body { --zx1: #5ef1ff; --zx2: #4f8bff; --zx3: #a993ff; --zx1-rgb: 94, 241, 255; --zx2-rgb: 79, 139, 255; --zx-red: #ff5a6e;
         --zx-core: radial-gradient(circle at 32% 26%, #ffffff 0%, #e6fcff 9%, #9be9ff 24%, #2f7dff 52%, #11306e 76%, #050c22 100%);
         --zx-grad: linear-gradient(120deg, var(--zx1) 0%, var(--zx2) 55%, var(--zx3) 100%); }
  body.recording { --zx1: #ff8fa3; --zx2: #ff3b5c; --zx3: #ff6b81; --zx1-rgb: 255, 143, 163; --zx2-rgb: 255, 59, 92;
         --zx-core: radial-gradient(circle at 32% 26%, #fff 0%, #ffe4e6 9%, #fda4af 24%, #f43f5e 50%, #9f1239 74%, #3f0717 100%);
         --accent: #ff6b81; --accent-2: #ff3b5c; --violet: #ff6b81; --orange: #ff8fa3;
         --grad: linear-gradient(120deg, #ff8fa3 0%, #ff3b5c 55%, #ff6b81 100%);
         --line: rgba(255, 90, 110, .16); --line-strong: rgba(255, 90, 110, .45); --glow: 0 0 16px rgba(255, 90, 110, .35); }
  body.recording nav.tabs button.active { color: #ff6b81 !important; }
  body.recording nav.tabs button.active svg { filter: drop-shadow(0 0 6px rgba(255, 90, 110, .8)) !important; }
  body.recording nav.tabs .beam { background: linear-gradient(180deg, rgba(255, 90, 110, .2), rgba(255, 59, 92, .08)) !important; border-color: rgba(255, 90, 110, .4) !important; box-shadow: 0 0 18px rgba(255, 59, 92, .25) !important; }
  body::before { transition: background .6s; }
  body.recording::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
         background: radial-gradient(900px 600px at 80% -10%, rgba(255, 59, 92, .18), transparent 70%), radial-gradient(700px 500px at 0% 110%, rgba(255, 59, 92, .1), transparent 70%); }

  /* hero */
  body[data-view="record"] main { max-width: 1180px; }
  .zx-hero { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); padding: 20px 18px 18px; margin: 6px 0 4px;
             background: linear-gradient(180deg, rgba(10, 24, 42, .82), rgba(4, 10, 20, .9)); transition: border-color .6s; }
  .zx-galaxy { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .zx-hero > *:not(canvas) { position: relative; }
  .zx-date { display: flex; align-items: center; gap: 8px; font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .zx-date i { width: 7px; height: 7px; border-radius: 50%; background: #5dffa8; box-shadow: 0 0 8px #5dffa8; }
  .zx-clock { font: 600 38px/1.05 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; color: var(--text); }
  .zx-clock small { font: 600 .42em var(--body); margin-left: 8px; letter-spacing: .04em; color: var(--muted); }
  .zx-hero #homeHello { margin: 6px 0 6px !important; font-size: clamp(28px, 7.6vw, 34px) !important;
             background: var(--zx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .zx-hero .kicker { margin: 0 0 4px !important; color: var(--muted); }
  .zx-hero .kicker b { color: var(--text); }
  .zx-hero .recorder { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 10px 0 0 !important; margin: 0 !important; }
  .zx-hero .recorder::before, .zx-hero .recorder::after { display: none !important; }
  .zx-hero .timer { margin: 4px 0 6px !important; font-size: 30px !important; }
  .zx-hero #recWave { height: 40px; }

  /* the RECORD circle */
  #recBtn.zxrec { position: relative; width: 250px !important; height: 250px !important; margin: 0 auto; padding: 0; border: 0; background: none !important; box-shadow: none !important; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
  #recBtn.zxrec svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  #recBtn .zx-spin { transform-box: view-box; transform-origin: 125px 125px; }
  #recBtn .zx-s1 { animation: zxspin 14s linear infinite; } #recBtn .zx-s2 { animation: zxspin 22s linear infinite reverse; } #recBtn .zx-s3 { animation: zxspin 7s linear infinite; }
  #recBtn .zx-glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--zx1-rgb), .5), rgba(var(--zx2-rgb), .18) 55%, transparent 72%); filter: blur(18px); animation: zxpulse 3.2s ease-in-out infinite; }
  #recBtn .zx-core { position: absolute; inset: 31%; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--zx-core);
         box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 26px rgba(var(--zx1-rgb), .9), 0 0 70px rgba(var(--zx2-rgb), .5), inset 0 -10px 22px rgba(2, 8, 30, .6), inset 0 6px 16px rgba(255,255,255,.35);
         animation: zxbreathe 3.2s ease-in-out infinite; }
  #recBtn .zx-core::before { content: ""; position: absolute; left: 18%; top: 9%; width: 46%; height: 26%; border-radius: 50%; background: linear-gradient(rgba(255,255,255,.75), rgba(255,255,255,0)); filter: blur(1px); }
  #recBtn .zx-core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,255,255,.35) 80%, transparent 90%); animation: zxspin 5s linear infinite; mix-blend-mode: overlay; }
  #recBtn .zx-lbl { position: relative; z-index: 1; font: 800 13px/1 "Orbitron", var(--display); letter-spacing: .28em; padding-left: .28em; color: #fff; text-shadow: 0 1px 8px rgba(0, 20, 60, .8); }
  #recBtn:active .zx-core { transform: scale(.96); }
  #recBtn .zx-wave line { stroke: var(--zx1); stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity .3s; }
  #recBtn.on .zx-wave line { opacity: .9; }
  #recBtn.on .zx-core, #recBtn.on .zx-glow { animation-duration: 1.4s; }
  #recBtn.on .zx-s1 { animation-duration: 4s; } #recBtn.on .zx-s3 { animation-duration: 2.5s; }
  #recBtn:disabled { opacity: .6; }
  @keyframes zxspin { to { transform: rotate(360deg); } }
  @keyframes zxbreathe { 50% { transform: scale(1.03); } }
  @keyframes zxpulse { 50% { opacity: .65; transform: scale(1.08); } }

  /* ask bar + agent chips */
  .zx-askwrap { margin-top: 12px; }
  .zx-ask { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 18px; border: 1px solid transparent;
            background-image: linear-gradient(rgba(4, 12, 24, .94), rgba(4, 12, 24, .94)), linear-gradient(100deg, var(--zx1), var(--zx2), var(--zx3));
            background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 0 30px rgba(var(--zx2-rgb), .18); margin: 0; }
  .zx-ask .zx-sp { width: 20px; height: 20px; fill: none; stroke: #ffc85e; stroke-width: 1.8; stroke-linecap: round; flex: none; }
  .zx-ask input { flex: 1; min-width: 0; background: none !important; border: 0 !important; outline: 0; box-shadow: none !important; color: var(--text); font: 16px var(--body); min-height: 44px; padding: 0 !important; margin: 0 !important; }
  .zx-ibtn { width: 44px; height: 44px; min-width: 44px; padding: 0 !important; border-radius: 13px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(255,255,255,.05) !important; box-shadow: none !important; color: var(--text); flex: none; }
  .zx-ibtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .zx-ibtn.go { border: 0; background: linear-gradient(135deg, var(--zx1), var(--zx2)) !important; color: #021018; box-shadow: 0 6px 20px rgba(var(--zx2-rgb), .35) !important; }
  .zx-chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
  .zx-chips::-webkit-scrollbar { display: none; }
  .zx-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px !important; padding: 0 13px !important; border-radius: 99px !important; font: 500 14px var(--body) !important;
             color: var(--muted) !important; background: rgba(255,255,255,.04) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
  .zx-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, #5dffa8); }
  .zx-chip.on { color: #fff !important; border-color: rgba(var(--zx1-rgb), .5) !important; background: rgba(var(--zx2-rgb), .2) !important; }

  /* stats + tiles */
  .zx-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
  .zx-stat { text-align: left; padding: 14px 16px !important; border-radius: 18px !important; background: rgba(14, 30, 52, .6) !important; border: 1px solid var(--line) !important; box-shadow: none !important; color: var(--text) !important; }
  .zx-stat b { display: block; font: 700 28px/1.1 var(--rounded, var(--display)); font-variant-numeric: tabular-nums; }
  .zx-stat span { display: block; margin-top: 4px; font: 600 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .zx-red { color: var(--zx-red) !important; -webkit-text-fill-color: var(--zx-red); background: none !important; }
  .zx-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .zx-tile { position: relative; overflow: hidden; text-align: left; padding: 16px !important; min-height: 128px; border-radius: 20px !important; border: 1px solid var(--line) !important; box-shadow: none !important; color: var(--text) !important;
             background: radial-gradient(120% 90% at 85% 90%, color-mix(in srgb, var(--c) 28%, transparent), transparent 60%), rgba(8, 18, 32, .82) !important;
             display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
  body.recording .zx-tile { --c: #ff3b5c !important; }
  .zx-tile .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c);
                 background: color-mix(in srgb, var(--c) 14%, rgba(0,0,0,.3)); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
  .zx-tile .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .zx-tile .ar { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; fill: none; stroke: var(--faint, #5f7a90); stroke-width: 1.8; stroke-linecap: round; }
  .zx-tile h4 { margin: 12px 0 2px; font: 600 17px var(--display); color: var(--text); }
  .zx-tile p { margin: 0; font: 13px var(--body); color: var(--muted); }
  .zx-tile.wide { grid-column: 1 / -1; min-height: 96px; display: flex !important; flex-direction: row !important; justify-content: flex-start !important; align-items: center !important; gap: 14px; }
  .zx-tile.wide h4 { margin-top: 0; }
  .zx-tile .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--faint, #5f7a90); margin-right: 5px; vertical-align: 1px; }
  .zx-tile .dot.on { background: #5dffa8; box-shadow: 0 0 6px #5dffa8; }
  /* the old glance row and box buttons are covered by the stats and tiles now */
  #homeExtras > h2:first-child, #homeExtras > .glance { display: none !important; }

  /* finance: still to pay in red, money left behind a tap */
  .zx-reveal { display: inline-flex; align-items: center; min-height: 44px; font: 600 15px var(--body); color: var(--accent); cursor: pointer; }
  .zx-ml.hidden { display: none !important; }

  /* More page (phone) */
  .zx-glabel { font: 400 13px var(--body); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 22px 16px 8px; }
  .zx-group { border-radius: 20px; background: rgba(14, 30, 52, .6); border: 1px solid var(--line); overflow: hidden; }
  .zx-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px !important; position: relative; text-align: left;
            background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: var(--text) !important; font: 16px var(--body) !important; }
  .zx-row + .zx-row::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: rgba(var(--zx1-rgb), .1); }
  .zx-row .ri { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--c); flex: none; }
  body.recording .zx-row .ri { --c: #ff3b5c !important; }
  .zx-row .ri svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .zx-row .rt { flex: 1; min-width: 0; } .zx-row .rt small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
  .zx-row .chev { width: 16px; height: 16px; fill: none; stroke: var(--faint, #5f7a90); stroke-width: 2; stroke-linecap: round; flex: none; }
  .zx-row .on-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint, #5f7a90); flex: none; } .zx-row .on-dot.on { background: #5dffa8; box-shadow: 0 0 8px #5dffa8; }
  .zx-row .pill { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font: 700 13px var(--rounded, var(--body)); background: var(--zx2); color: #fff; }

  /* phone: 5 tabs, the rest under More */
  nav.tabs .zx-moretab { display: none !important; }
  @media (max-width: 599px) {
    nav.tabs button[data-tab="list"], nav.tabs button[data-tab="memory"], nav.tabs button[data-tab="agentmail"] { display: none !important; }
    nav.tabs .zx-moretab { display: flex !important; }
  }
  @media (min-width: 600px) { .zx-stats { grid-template-columns: repeat(4, 1fr); } .zx-tiles { grid-template-columns: repeat(4, 1fr); } }
  @media (min-width: 1000px) {
    .zx-hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "left rec" "ask rec"; align-items: center; column-gap: 24px; padding: 30px 32px 26px; }
    .zx-hero .zx-left { grid-area: left; } .zx-hero .recorder { grid-area: rec; } .zx-hero .zx-askwrap { grid-area: ask; align-self: start; }
    .zx-clock { font-size: 60px; } .zx-hero #homeHello { font-size: 48px !important; }
    .zx-tile { min-height: 150px; }
  }
  @media (prefers-reduced-motion: reduce) { #recBtn *, #recBtn *::before, #recBtn *::after { animation: none !important; } }

