/* LARZEQ Personal Intelligence — platinum on graphite. */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url("/fonts/Manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url("/fonts/Manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url("/fonts/Manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap; src: url("/fonts/DMMono-400.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 300; font-display: swap; src: url("/fonts/DMMono-300.woff2") format("woff2"); }

:root {
  --bg: #0d0f12;           /* graphite */
  --bg-2: #121519;
  --surface: #171a1f;
  --surface-2: #1d2127;
  --line: rgba(214, 220, 228, 0.09);
  --line-2: rgba(214, 220, 228, 0.18);
  --fg: #eceff3;           /* platinum */
  --fg-2: #c9ced6;
  --muted: #8d949e;
  --muted-2: #6a717b;
  --plat: linear-gradient(135deg, #f4f6f8 0%, #c7ccd3 45%, #9aa1ab 100%);
  --accent: #d9dee5;
  --glow: #7fb6ff;
  --danger: #ff8a7a;
  --ok: #8fd6b0;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px rgba(0, 0, 0, 0.35);
  --r: 14px;
  --r-lg: 20px;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef0f3; --bg-2: #e6e9ed; --surface: #f8f9fa; --surface-2: #ffffff;
    --line: rgba(20, 24, 30, 0.08); --line-2: rgba(20, 24, 30, 0.16);
    --fg: #15181d; --fg-2: #2c3138; --muted: #5f6670; --muted-2: #808792;
    --plat: linear-gradient(135deg, #2b3038 0%, #4a515b 50%, #6c737d 100%);
    --accent: #252a31; --glow: #2f6fd6;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 14px 30px rgba(20, 24, 30, 0.08);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
body { font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; letter-spacing: 0.005em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--glow); text-underline-offset: 2px; word-break: break-word; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.splash { display: grid; place-items: center; height: 100vh; }
.splash img { border-radius: 22px; opacity: 0.9; }

/* --- brand --- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand.big { flex-direction: column; text-align: center; gap: 16px; }
/* The turning 3D mark: its own near-black stage, in light and dark alike. */
.mark { flex: none; display: block; width: 46px; height: 36px; overflow: hidden; border-radius: 10px;
  background: #07090c; box-shadow: var(--shadow); }
.mark video, .mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The first screen: the small turning mark in the corner, ZEQ large in the middle. */
.brand.big .corner { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 16px; z-index: 2; }
.brand.big .hero { width: 100%; max-width: 520px; margin: 0 auto; background: #000; border-radius: 18px; padding: 10px 6% 18px; }
.brand.big .zeq { display: block; width: 100%; height: auto; max-height: 34vh; object-fit: contain; margin: 0 auto; }
.thread-sign { display: none; }
.brand.hero-sm { flex-direction: column; gap: 0; background: #000; border-radius: 14px; padding: 8px 10px 10px; text-align: center; }
.brand.hero-sm .zeq { display: block; width: 100%; height: auto; }
.brand.hero-sm .hero-tag { font-weight: 300; font-size: 11px; letter-spacing: 0.08em; color: #dfe7f1; margin-top: 2px; }
.brand.big .hero-tag { margin: 2px 0 0; font-weight: 300; font-size: clamp(14px, 4.2vw, 22px); line-height: 1.25; letter-spacing: 0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7f1 45%, #9fb0c4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .brand.big .hero, .brand.hero-sm { background: none; } .brand.big .zeq, .brand.hero-sm .zeq { mix-blend-mode: screen; } }
.brand-name { font-weight: 700; letter-spacing: 0.42em; font-size: 15px; background: var(--plat); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.big .brand-name { font-size: 22px; letter-spacing: 0.32em; margin-right: -0.32em; }
.brand-sub { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.brand.big .brand-sub { font-size: 13px; letter-spacing: 0.2em; }

/* --- onboarding --- */
.onboard { max-width: 520px; margin: 0 auto; min-height: 100vh; padding: calc(32px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.onboard .motto { font-weight: 300; font-size: clamp(26px, 5vw, 36px); line-height: 1.15; text-align: center; margin: 8px 0 0; letter-spacing: -0.01em; }
.onboard h2 { font-weight: 500; font-size: 24px; margin: 12px 0 0; }
.lede { color: var(--fg-2); margin: 0; text-align: inherit; }
.onboard > .lede { text-align: center; }
.onboard.form > .lede { text-align: left; }
.stack { display: grid; gap: 10px; margin-top: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .btn.primary { flex: 1; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.chip { border: 1px solid var(--line-2); background: transparent; color: var(--muted); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.chip.on { color: var(--fg); border-color: var(--fg-2); }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.field small { color: var(--muted-2); font-size: 12px; }
input, select, textarea { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; outline: none; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--fg-2); box-shadow: 0 0 0 3px rgba(127, 182, 255, 0.14); }
.err { color: var(--danger); min-height: 1em; margin: 0; font-size: 14px; }
.secret { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 16px; word-break: break-all; font-size: 13px; user-select: all; }
.secret.big { font-size: 28px; letter-spacing: 0.18em; text-align: center; }

/* --- buttons --- */
.btn { border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 11px 18px; cursor: pointer; font-weight: 600; transition: border-color .15s, transform .05s, background .15s; }
.btn:hover { border-color: var(--fg-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--plat); color: #0d0f12; border-color: transparent; }
@media (prefers-color-scheme: light) { .btn.primary { color: #fff; } }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.danger-text { color: var(--danger); }
.icon-btn { background: transparent; border: 0; color: var(--muted); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--fg); background: var(--surface-2); }
.icon-btn.send { color: var(--fg); }
.icon-btn.live { color: var(--danger); }

/* --- the app: rail · conversation · intelligence panel --- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr) minmax(340px, 420px); height: 100vh; height: 100dvh; }
.rail { background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 24px; }
.rail nav { display: grid; gap: 2px; }
.nav { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; color: var(--muted); padding: 10px 12px; border-radius: 11px; cursor: pointer; text-align: left; font-weight: 500; }
.nav:hover { color: var(--fg); background: var(--surface); }
.nav.on { color: var(--fg); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--fg-2); }
.nav span { flex: 1; }
.badge:not(:empty) { font-size: 11px; background: var(--fg); color: var(--bg); border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.rail-foot { margin-top: auto; }
.motto-sm { color: var(--muted-2); font-size: 12px; line-height: 1.4; }
.only-mobile { display: none !important; }

.talk { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); position: relative; }
.to-latest { position: absolute; right: 20px; bottom: 96px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg); font-size: 20px; line-height: 1;
  box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.to-latest[hidden] { display: none; }
.talk-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.her-name { font-weight: 600; font-size: 17px; }
.sub { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.status { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); margin-right: 4px; vertical-align: 1px; }
.status.on { background: var(--ok); }
.pill { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.pill.danger { border: 1px solid var(--danger); color: var(--danger); }
.offline { background: var(--surface); color: var(--muted); text-align: center; font-size: 13px; padding: 6px; }

.thread { flex: 1; overflow-y: auto; overflow-x: hidden; min-width: 0; padding: 24px 28px 8px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: auto; }
.thread > * { max-width: 760px; width: 100%; margin-left: auto; margin-right: auto; }
.earlier { align-self: center; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 14px; font-size: 12px; cursor: pointer; width: auto !important; }
.earlier.quiet { border: 0; cursor: default; }
.day { text-align: center; color: var(--muted-2); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 8px; }
.msg { display: flex; flex-direction: column; gap: 6px; }
.msg .text { white-space: normal; overflow-wrap: anywhere; }
/* a wide table or code block scrolls inside its message, never the whole conversation (1 Dec 2026 checkup) */
.msg pre, .msg table { max-width: 100%; overflow-x: auto; display: block; }
.msg.her .text { color: var(--fg); font-size: 15.5px; }
.msg.her { padding-left: 14px; border-left: 2px solid var(--line-2); }
.msg.me { align-items: flex-end; }
.msg.me .text { background: var(--surface-2); border: 1px solid var(--line); padding: 10px 14px; border-radius: 16px 16px 4px 16px; max-width: 80%; color: var(--fg-2); }
.msg.pending { opacity: 0.6; }
.msg.card { border-left-color: var(--fg-2); background: linear-gradient(90deg, var(--surface) 0%, transparent 100%); padding: 12px 14px; border-radius: 0 var(--r) var(--r) 0; }
.meta { color: var(--muted-2); font-size: 11px; display: flex; gap: 8px; align-items: center; }
.via { text-transform: capitalize; border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
.reaction { font-size: 14px; }
.card-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.card-done { color: var(--ok); font-size: 13px; }
.file { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 12px; cursor: pointer; max-width: 360px; text-align: left; }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { color: var(--muted); }
.thinking { display: flex; gap: 5px; align-items: center; color: var(--muted); font-size: 12px; padding: 0 28px 6px; max-width: 816px; margin: 0 auto; width: 100%; }
.thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--fg-2); animation: pulse 1.2s infinite ease-in-out; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
.thinking span { margin-left: 6px; letter-spacing: 0.06em; }
@keyframes pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .thinking i { animation: none; } }
.composer { display: flex; align-items: flex-end; gap: 6px; margin: 8px auto 20px; padding: 8px; max-width: 760px; width: calc(100% - 56px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); }
.composer textarea { border: 0; background: transparent; resize: none; padding: 9px 6px; max-height: 220px; box-shadow: none;
  overflow-y: hidden; scrollbar-width: none; }
.composer textarea::-webkit-scrollbar { display: none; }
.icon-btn.live { color: #fff; background: #d6363e; }
.rec-time { font-size: 11px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.rec-time:empty { display: none; }

.panel { background: var(--bg-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 22px 24px 8px; }
.panel-head h2 { margin: 0; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.panel-body { overflow-y: auto; padding: 8px 24px 32px; display: grid; gap: 18px; align-content: start; }
.loading { margin: 40px auto; width: 24px; height: 24px; border: 2px solid var(--line-2); border-top-color: var(--fg); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 10px; }
.block h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--fg-2); display: flex; justify-content: space-between; }
.block h4 { margin: 6px 0 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.block p { margin: 0; color: var(--fg-2); font-size: 14px; }
.block.stop { border-color: rgba(255, 138, 122, 0.35); }
.empty { color: var(--muted) !important; font-size: 13px !important; }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); align-items: baseline; }
.list li:first-child { border-top: 0; }
.what { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.what small, .when small { color: var(--muted); font-size: 12px; display: block; }
.what.bad { color: var(--danger); }
.when { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; flex: none; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.block .stat { background: var(--surface-2); }
.stat-v { font-size: 22px; font-weight: 300; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.stat small { color: var(--muted-2); font-size: 11px; }
.approval { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.approval:first-of-type { border-top: 0; padding-top: 0; }
.approval small { color: var(--muted-2); font-size: 11px; }
.code-box { display: grid; gap: 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow); z-index: 10; max-width: calc(100% - 32px); }

/* --- narrower: the panel folds under the conversation's tabs --- */
@media (max-width: 1200px) and (min-width: 901px) {
  .app { grid-template-columns: 76px minmax(0, 1fr) 360px; }
  .rail .brand-words, .nav span, .rail-foot, .rail .hero-tag { display: none; }
  .rail .brand.hero-sm { padding: 4px; border-radius: 10px; }
  .nav { justify-content: center; position: relative; }
  .badge:not(:empty) { position: absolute; top: 4px; right: 6px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .rail, .rail nav { min-width: 0; }
  .rail { order: 2; flex-direction: row; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); gap: 0; }
  .rail > .brand, .rail-foot { display: none; }
  .thread-sign { display: block; width: min(300px, 82%); margin: 6px auto 4px; }
  .rail nav { display: flex; width: 100%; justify-content: space-between; overflow-x: auto; }
  .nav { flex-direction: column; gap: 2px; padding: 6px 8px; font-size: 10px; min-width: 56px; position: relative; }
  .nav.on { box-shadow: none; }
  .badge:not(:empty) { position: absolute; top: 2px; right: 8px; }
  .only-mobile { display: flex !important; }
  .nav[data-view="calendar"], .nav[data-view="documents"] { display: none; }
  .talk, .panel { grid-row: 1; grid-column: 1; min-height: 0; }
  .app[data-tab="talk"] .panel { display: none; }
  .app[data-tab="panel"] .talk { display: none; }
  .panel { border-left: 0; }
  .talk-head { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
  .thread { padding: 16px 16px 8px; }
  .composer { width: calc(100% - 24px); margin: 6px auto 10px; }
  .panel-head { padding: calc(14px + env(safe-area-inset-top)) 16px 6px; }
  .panel-body { padding: 6px 16px 24px; }
  .msg.me .text { max-width: 88%; }
}
.head-mark .mark { width: 46px; height: 36px; }
/* Lena's ZEQ, small beside the mark: the metal letters, never flat text. */
.zeq-small { display: block; height: 34px; width: auto; border-radius: 4px; background: #000; }
@media (prefers-color-scheme: dark) { .zeq-small { mix-blend-mode: screen; background: none; } }
.brand .brand-words { display: flex; flex-direction: column; gap: 3px; }
.rail .brand .brand-sub { font-size: 10px; letter-spacing: 0.12em; white-space: nowrap; }
.panel-head { display: flex; align-items: center; gap: 10px; }
.head-mark { display: inline-flex; flex: none; }
/* Deleting his things: a quiet × on each, "Select" for several at once. */
.block h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.linkbtn { background: none; border: 0; padding: 4px 6px; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; border-radius: 8px; }
.linkbtn:hover { color: var(--fg, inherit); background: var(--line); }
.sel-tools { display: inline-flex; align-items: center; gap: 6px; }
.btn.danger { background: #b4232a; color: #fff; border-color: transparent; }
.btn.danger:disabled { opacity: 0.4; }
.list li .del { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: none; color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer; opacity: 0.35; align-self: center; }
.list li:hover .del, .list li .del:focus-visible { opacity: 1; }
.list li .del:hover { background: rgba(180, 35, 42, 0.15); color: #e5484d; }
@media (hover: none) { .list li .del { opacity: 0.6; } }
.list li.pickable { cursor: pointer; border-radius: 10px; padding-left: 4px; }
.list li.picked { background: rgba(80, 140, 255, 0.12); }
.list li .tick { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--muted); display: inline-grid;
  place-items: center; font-size: 13px; align-self: center; }
.list li.picked .tick { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.list li.pickable { justify-content: flex-start; } .list li.pickable .what { flex: 1; min-width: 0; }
/* Her voice (and his), played in place. */
.voice { display: inline-flex; align-items: center; gap: 10px; min-width: 180px; padding: 8px 14px 8px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: inherit; font: inherit; cursor: pointer; margin-bottom: 6px; }
.voice-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px;
  background: linear-gradient(180deg, #4d8dff, #2a5fd6); color: #fff; }
.voice-wave { flex: 1; height: 18px; min-width: 70px; opacity: 0.55;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0 30%, #000 30% 70%, transparent 70%); }
.voice.on .voice-wave { opacity: 1; animation: wave 0.9s linear infinite; }
@keyframes wave { to { background-position: 10px 0; } }
.voice small { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .voice.on .voice-wave { animation: none; } }
/* The conversation by voice. */
.talk-bar { display: flex; align-items: center; gap: 10px; max-width: 760px; width: calc(100% - 56px); margin: 0 auto;
  padding: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; }
.talk-bar[hidden] { display: none; }
.talk-dot { width: 10px; height: 10px; border-radius: 50%; background: #3b82f6; flex: none; }
.talk-dot.listening { background: #22c55e; animation: pulse 1.4s ease-in-out infinite; }
.talk-dot.thinking { background: #eab308; }
.talk-dot.speaking { background: #3b82f6; animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.talk-state { color: var(--fg-2); }
.talk-level { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.talk-level i { display: block; height: 100%; background: #22c55e; transform-origin: left; transform: scaleX(0); transition: transform 80ms; }
.talk-bar .linkbtn { margin-left: auto; }
.icon-btn.talk-btn.live { color: #fff; background: #22a35a; }
@media (max-width: 900px) { .talk-bar { width: calc(100% - 24px); } }
@media (prefers-reduced-motion: reduce) { .talk-dot { animation: none !important; } }
/* Deleting messages. */
.head-tools { display: inline-flex; align-items: center; gap: 8px; }
.sel-bar { display: flex; align-items: center; gap: 10px; padding: 8px 24px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.sel-bar[hidden] { display: none; }
.sel-bar > span { margin-right: auto; }
.msg { position: relative; }
.msg-del { position: absolute; top: 2px; right: -30px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: none;
  color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; }
.msg.me .msg-del { right: auto; left: -30px; }
.msg:hover .msg-del, .msg-del:focus-visible { opacity: 0.8; }
.msg-del:hover { color: #e5484d; background: rgba(180, 35, 42, 0.15); }
@media (hover: none) { .msg-del { display: none; } }
.msg.pickable { cursor: pointer; outline: 1.5px dashed var(--line-2); outline-offset: 4px; border-radius: 12px; }
.msg.picked { outline: 2px solid #3b82f6; background: rgba(59, 130, 246, 0.10); }

/* one tap to start (30 Nov 2026) */
.btn.big { padding: 18px 20px; font-size: 1.1rem; }
.onboard > .btn.start { width: 100%; }
.keybar { margin: 10px 12px 0; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; flex: none; }
.keybar p { margin: 0 0 8px; font-size: .92rem; }
.keybar .secret { margin: 0 0 8px; word-break: break-all; font-size: .8rem; }
.onboard > .who { text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0 0; }
nav.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 13px; margin-top: 4px; }
nav.legal a { color: var(--muted); }
.block nav.legal { justify-content: flex-start; }
.who-line { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
/* the model working for him (1 Dec 2026, his word): small, beside her name */
.model-now { font-size: 9.5px; color: var(--muted, #9aa1ab); opacity: .75; border: 1px solid var(--line-2, #2a2e35); border-radius: 999px; padding: 0 6px; white-space: nowrap; letter-spacing: .03em; }
