/* LiveCaption — UI draft "Graphite Cockpit". Flat: no blur, no shadows-on-hover, no transitions. */
:root {
  --bg: #141518;
  --side: #1a1b1f;
  --card: #1f2025;
  --card2: #25262c;
  --line: #2d2f36;
  --line2: #383a42;
  --text: #ececef;
  --muted: #a0a2aa;
  --faint: #6c6f78;
  --live: #ff4d42;
  --ai: #ffb547;
  --ai-bg: rgba(255, 181, 71, .12);
  --ok: #3ddc68;
  --ok-bg: rgba(61, 220, 104, .12);
  --act: #3b8cff;
  --act-bg: rgba(59, 140, 255, .14);
  --vi: #6fd3ff;
  --warn: #ff9f40;
  --warn-bg: rgba(255, 159, 64, .12);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
:root.light {
  --bg: #f3f3f5;
  --side: #e9e9ec;
  --card: #ffffff;
  --card2: #f5f5f7;
  --line: #e1e1e6;
  --line2: #d2d2d8;
  --text: #1c1c1f;
  --muted: #5f6169;
  --faint: #8d9099;
  --ai: #c27400;
  --ai-bg: rgba(255, 166, 0, .13);
  --ok: #1f9d47;
  --ok-bg: rgba(31, 157, 71, .1);
  --act: #0a6cff;
  --act-bg: rgba(10, 108, 255, .09);
  --vi: #0a84b8;
  --warn: #d26a00;
  --warn-bg: rgba(255, 140, 0, .1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 13px/1.45 var(--font); background: #0b0c0e; color: var(--text); -webkit-font-smoothing: antialiased; }
:root.light body { background: #cfd0d6; }
a { color: var(--act); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; }
.col { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Draft chrome (not part of the app) ---------- */
.note { background: #fff8d6; color: #4a3b00; border-left: 3px solid #e0b000; padding: 8px 12px; border-radius: 6px; font-size: 12px; line-height: 1.5; }
.note b { color: #2e2400; }
.stage { padding: 28px; display: flex; flex-direction: column; gap: 28px; align-items: center; }
.stage > h2.sec { color: #e7e7e7; font-size: 15px; align-self: stretch; max-width: 1200px; margin: 0 auto; width: 100%; }
:root.light .stage > h2.sec { color: #222; }
.stage > .note { max-width: 1200px; width: 100%; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--line2);
  background: var(--card2); color: var(--text); font: 500 12.5px var(--font); cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--act); border-color: var(--act); color: #fff; }
.btn.go { background: #1f8f45; border-color: #1f8f45; color: #fff; }
.btn.stop { background: transparent; border-color: var(--live); color: var(--live); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.big { height: 34px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn .kc { margin-left: 2px; }
.kc { font: 500 11px var(--mono); color: inherit; opacity: .75; letter-spacing: .5px; }
.keycap { display: inline-block; font: 500 11.5px var(--mono); padding: 1px 6px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; color: var(--text); background: var(--card2); }

.seg { display: inline-flex; background: var(--card2); border: 1px solid var(--line2); border-radius: 8px; padding: 2px; gap: 2px; }
.seg span { padding: 3px 11px; border-radius: 6px; color: var(--muted); font-weight: 500; cursor: pointer; white-space: nowrap; }
.seg span.on { background: var(--line2); color: var(--text); }
:root.light .seg span.on { background: #fff; box-shadow: 0 0 0 1px var(--line2); }
.seg.lg span { padding: 6px 14px; }
.seg.lg span small { display: block; font-size: 10.5px; color: var(--faint); font-weight: 400; }

.sw { width: 32px; height: 19px; border-radius: 10px; background: var(--line2); position: relative; flex: none; cursor: pointer; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.sw.on { background: var(--ok); }
.sw.on::after { left: 15px; }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.off { background: var(--card2); color: var(--muted); border: 1px solid var(--line); }
.chip.ai { background: var(--ai-bg); color: var(--ai); }
.chip.act { background: var(--act-bg); color: var(--act); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }

.field { width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 7px; color: var(--text); font: 13px var(--font); padding: 7px 9px; }
textarea.field { resize: vertical; min-height: 64px; line-height: 1.5; }
.select { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px 0 10px; border: 1px solid var(--line2); border-radius: 7px; background: var(--card2); font-weight: 500; }
.select::after { content: "⌄"; color: var(--muted); margin-top: -5px; }
input[type=range] { width: 200px; accent-color: var(--act); }

/* ---------- App window ---------- */
.window { width: 1080px; height: 760px; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 228px 1fr;
  border: 1px solid #000; background: var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.traffic { display: flex; gap: 8px; padding: 14px 16px 10px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; display: block; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }

.livebox { margin: 4px 12px 10px; padding: 11px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.livebox .st { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.livebox .sub { color: var(--muted); font-size: 11.5px; margin: 3px 0 9px; }
.livebox .btn { width: 100%; justify-content: center; }

.nav { flex: 1; overflow: auto; padding: 0 8px 12px; }
.nav h6 { margin: 12px 10px 4px; font-size: 10.5px; font-weight: 650; letter-spacing: .6px; color: var(--faint); text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border-radius: 7px; color: var(--text); cursor: pointer; }
.nav a svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.nav a.on { background: var(--line2); }
:root.light .nav a.on { background: #d9d9de; }
.nav a .badge { margin-left: auto; background: var(--warn); color: #111; font-size: 10.5px; font-weight: 700; border-radius: 9px; padding: 0 6px; }
.nav a .cnt { margin-left: auto; color: var(--faint); font-size: 11.5px; }

.main { overflow: auto; min-height: 0; }
.page { display: none; padding: 22px 30px 40px; max-width: 800px; }
.page.on { display: block; }
.page.wide { max-width: none; }
.page > header { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.page > header h1 { font-size: 21px; }
.page > header p { color: var(--muted); }
.page > header .sp { flex: 1; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.card > h3 { font-size: 13px; padding: 12px 16px 0; display: flex; align-items: center; gap: 8px; }
.card > h3 .sp { flex: 1; }
.card > .desc { color: var(--muted); padding: 2px 16px 0; font-size: 12px; }
.rows { padding: 4px 0; }
.r { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); }
.card > h3 + .rows > .r:first-child, .card > .desc + .rows > .r:first-child { border-top: none; }
.r .t { flex: 1; min-width: 0; }
.r .t b { font-weight: 500; display: block; }
.r .t small { color: var(--muted); font-size: 11.5px; display: block; }
.r.sub { padding-left: 40px; }
.r.block { display: block; }
.r.block > .t { margin-bottom: 8px; }
.info { color: var(--faint); cursor: help; font-size: 11px; border: 1px solid var(--line2); border-radius: 50%; width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-left: 4px; vertical-align: 1px; }

.readiness { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.ready { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; display: flex; flex-direction: column; gap: 6px; }
.ready .h { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; }
.ready .h .ic { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #111; }
.ready.ok .ic { background: var(--ok); }
.ready.bad .ic { background: var(--warn); }
.ready small { color: var(--muted); font-size: 11px; }
.ready .btn { height: 22px; font-size: 11.5px; align-self: flex-start; }

.keys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; padding: 10px 16px 14px; }
.keys-grid div { display: flex; gap: 10px; align-items: center; }
.keys-grid .keycap { min-width: 44px; text-align: center; }

.empty { color: var(--faint); text-align: center; padding: 26px; }

/* master-detail */
.md { display: grid; grid-template-columns: 250px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); min-height: 560px; }
.md .list { border-right: 1px solid var(--line); background: var(--card); }
.md .list .grp { font-size: 10.5px; font-weight: 650; letter-spacing: .5px; color: var(--faint); text-transform: uppercase; padding: 10px 12px 4px; }
.md .item { padding: 8px 12px; border-left: 3px solid transparent; cursor: pointer; }
.md .item.on { background: var(--card2); border-left-color: var(--act); }
.md .item b { display: block; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md .item small { color: var(--muted); font-size: 11.5px; }
.md .detail { padding: 16px 18px; min-width: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 12px 0 14px; }
.tabs span { padding: 6px 12px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; cursor: pointer; }
.tabs span.on { color: var(--text); border-bottom-color: var(--act); }

.tl { display: flex; flex-direction: column; gap: 10px; }
.tl .e { display: grid; grid-template-columns: 52px 1fr; gap: 10px; }
.tl .e .tm { color: var(--faint); font: 11px var(--mono); padding-top: 2px; }
.tl .who { font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.tl .them .who { color: var(--vi); }
.tl .me .who { color: var(--ok); }
.tl .ai .who { color: var(--ai); }
.tl .ai .body { border-left: 2px solid var(--ai); padding-left: 10px; color: var(--muted); }
.tl .vi { color: var(--vi); opacity: .85; font-size: 12px; }

/* screens */
.displays { display: flex; gap: 10px; }
.disp { width: 168px; border: 1px solid var(--line2); border-radius: 9px; padding: 6px; cursor: pointer; background: var(--card2); }
.disp.on { border-color: var(--act); box-shadow: 0 0 0 1px var(--act); }
.disp .thumb { height: 86px; border-radius: 5px; background: #2a3442; position: relative; overflow: hidden; }
.disp .thumb::before { content: ""; position: absolute; left: 8px; right: 30px; top: 10px; height: 8px; background: #42526a; border-radius: 2px; box-shadow: 0 16px 0 #3a4a60, 0 30px 0 #3a4a60, 0 44px 0 #3a4a60; }
.disp b { display: block; font-size: 12px; margin-top: 6px; }
.disp small { color: var(--muted); font-size: 11px; }
.liveview { height: 300px; border-radius: 9px; background: #0d0f12; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: #8a8d95; flex-direction: column; gap: 10px; }
.liveview .play { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #8a8d95; display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* profile docs */
.doc-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.doc-text { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; height: 400px; overflow: auto; font-size: 12.5px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; }
.doc-text b { color: var(--text); }

/* provider rows */
.prov { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.prov:first-of-type { border-top: none; }
.logo { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 13px; }
.prov .t b { font-weight: 600; }
.prov .t small { display: block; color: var(--muted); font-size: 11.5px; }
.prov .uses { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.tag { font-size: 10.5px; padding: 1px 7px; border-radius: 5px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); }
.keyline { grid-column: 2 / 4; display: flex; gap: 8px; align-items: center; }
.keyline .field { font-family: var(--mono); font-size: 12px; }

.radio-list { display: flex; flex-direction: column; gap: 6px; padding: 8px 16px 14px; }
.radio { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.radio.on { border-color: var(--act); background: var(--act-bg); }
.radio .rb { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line2); }
.radio.on .rb { border: 4.5px solid var(--act); }
.radio small { color: var(--muted); display: block; font-size: 11.5px; }

/* jobs */
.jobs { display: flex; flex-direction: column; }
.job { display: grid; grid-template-columns: 150px 120px 1fr 20px; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); align-items: baseline; }
.job:first-child { border-top: none; }
.job b { font-weight: 600; }
.job .tip { color: var(--faint); font-size: 11.5px; display: block; margin-top: 2px; }

/* ---------- Floating panel ---------- */
.desk { width: 1200px; border-radius: 12px; overflow: hidden; position: relative; background: #1b1e24; border: 1px solid #000; }
.desk .meet { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; height: 100%; }
.desk .tile { border-radius: 8px; background: #2d3340; position: relative; }
.desk .tile:nth-child(2) { background: #343a2f; }
.desk .tile span { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: #ddd; background: rgba(0,0,0,.5); padding: 2px 7px; border-radius: 4px; }
.desk .tile i { position: absolute; left: 50%; top: 42%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: #4a5263; }
.desk .tile:nth-child(2) i { background: #5a6450; }
.desk .code { white-space: pre; position: absolute; inset: 0; background: #1e1f24; padding: 26px 34px; font: 13px/1.7 var(--mono); color: #b8bcc6; }
.desk .code .k { color: #ff7ab2; } .desk .code .s { color: #fc6a5d; } .desk .code .c { color: #6c7986; } .desk .code .f { color: #67b7a4; }

.panel { position: absolute; left: 50%; transform: translateX(-50%); width: 860px; border-radius: 12px; overflow: hidden; color: #f2f2f4;
  font-family: var(--font); border: 1px solid rgba(255,255,255,.08); }
.panel.solid { background: rgba(14, 15, 18, .93); }
.panel .strip { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 12px; background: rgba(0,0,0,.35); font-size: 12px; }
.panel .strip .rec { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.panel .strip .rec .dot { background: var(--live); }
.panel .strip .rec .clock { font-family: var(--mono); font-weight: 500; color: #fff; }
.panel .strip .st { color: rgba(255,255,255,.55); }
.panel .strip .sp { flex: 1; }
.pseg { display: inline-flex; background: rgba(255,255,255,.07); border-radius: 6px; padding: 1px; }
.pseg span { padding: 2px 8px; border-radius: 5px; color: rgba(255,255,255,.55); font-weight: 600; font-size: 11px; }
.pseg span.on { background: rgba(255,255,255,.18); color: #fff; }
.pb { height: 24px; min-width: 26px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); font-size: 11.5px; font-weight: 600; border: 0; white-space: nowrap; }
.pb svg { width: 14px; height: 14px; }
.pb.amber { background: rgba(255, 181, 71, .2); color: #ffc876; }
.pb.red { color: #ff6a60; }
.pb.green { background: #1f8f45; color: #fff; }
.pb .kc { opacity: .6; }
.pb .unseen { width: 6px; height: 6px; border-radius: 50%; background: var(--ai); }
.vsep { width: 1px; height: 16px; background: rgba(255,255,255,.12); margin: 0 2px; }

.panel .warns { display: flex; flex-direction: column; gap: 2px; padding: 5px 14px; background: rgba(255, 159, 64, .12); font-size: 11.5px; color: #ffb36b; }

.caps { padding: 10px 22px 12px; }
.caps .ln { font-weight: 600; letter-spacing: -.1px; line-height: 1.3; margin: 3px 0; }
.caps .ln.old { color: rgba(255,255,255,.55); }
.caps .ln.now { color: #fff; }
.caps .ln.open { color: #fff; }
.caps .ln.open::after { content: " ▍"; color: rgba(255,255,255,.35); font-weight: 400; }
.caps .tr { color: var(--vi); font-weight: 500; line-height: 1.3; margin: 0 0 6px; opacity: .92; }
.caps .ln.old + .tr { opacity: .55; }
.caps .lang { font: 600 9.5px var(--mono); color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.2); border-radius: 3px; padding: 0 3px; margin-right: 6px; vertical-align: 3px; }

.divider { height: 7px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); border-top: 1px solid rgba(255,255,255,.06); }
.divider i { width: 36px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.2); }

.sugg { padding: 10px 22px 6px; }
.sugg .meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.sugg .meta .q { color: rgba(255,255,255,.8); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.sugg .meta .src { font-weight: 700; color: var(--ai); letter-spacing: .3px; }
.sugg .meta .sp { flex: 1; }
.sugg .meta .writing { color: var(--ai); font-weight: 600; }
.intent { border-left: 3px solid var(--ai); padding: 2px 0 2px 10px; color: #ffd9a0; font-size: 13.5px; margin-bottom: 10px; }
.intent ol { margin: 2px 0 0; padding-left: 18px; }
.clar { border-left: 3px solid #a98bff; padding: 2px 0 2px 10px; color: #d8ccff; font-size: 13px; margin-bottom: 10px; }
.clar .lbl, .intent .lbl, .expl .lbl { font-size: 10px; font-weight: 800; letter-spacing: .6px; opacity: .8; display: block; margin-bottom: 1px; }
.say .lbl { font-size: 10px; font-weight: 800; letter-spacing: .6px; color: rgba(255,255,255,.5); margin-bottom: 4px; display: block; }
.say p { font-size: 19px; line-height: 1.4; font-weight: 500; color: #fff; margin: 0 0 3px; }
.say .pr { font-size: 14px; color: #8fc3ff; margin: 0 0 9px; font-weight: 500; letter-spacing: .1px; }
.say .pr mark { background: rgba(255, 214, 10, .22); color: #ffe066; border-radius: 3px; padding: 0 2px; }
.est { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 6px; }
pre.cb { background: #0b0c0f; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 10px 12px; font: 12.5px/1.55 var(--mono); color: #d6d9e0; margin: 8px 0; overflow: hidden; }
pre.cb .c { color: #7d8794; } pre.cb .k { color: #ff7ab2; } pre.cb .s { color: #fc8b5d; }
.expl { border-left: 3px solid var(--vi); padding: 2px 0 2px 10px; color: #c6ecff; font-size: 13px; }
.expl ul { margin: 2px 0 0; padding-left: 16px; }
.think { color: rgba(255,255,255,.6); font-size: 12.5px; padding: 6px 0 10px; }

.dock { display: flex; align-items: center; gap: 6px; padding: 7px 10px 8px; border-top: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.35); }
.dock .sp { flex: 1; }
.tog { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 6px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.7); font-size: 11.5px; font-weight: 600; }
.tog i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); }
.tog.on { color: #fff; }
.tog.on i { border: 0; background: var(--ok); }
.tog.on.y i { background: #ffd60a; }

/* subtitle-style (transparent suggestions) */
.panel.subtitle .sugg { background: rgba(0,0,0,.02); }
.panel.subtitle .sugg .band { background: rgba(0,0,0,.75); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 1px 5px; border-radius: 3px; }
.panel.subtitle .sugg .intent, .panel.subtitle .sugg .say { border: 0; padding: 0; }
.panel.subtitle .top { background: rgba(14,15,18,.9); }
.panel.subtitle .dock { background: rgba(14,15,18,.9); }
.panel.subtitle .say p { margin-bottom: 4px; }

.idle { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 12px;
  background: rgba(14,15,18,.93); border: 1px solid rgba(255,255,255,.08); color: #fff; font-size: 12.5px; }
.idle b { font-weight: 650; }

/* phone */
.phone { width: 330px; border-radius: 40px; background: #000; padding: 12px; border: 2px solid #333; }
.phone .scr { border-radius: 30px; background: #111214; color: #eee; padding: 18px 16px 22px; min-height: 640px; font-size: 14px; }
.phone .scr .top { display: flex; justify-content: space-between; font-size: 12px; color: #aaa; margin-bottom: 14px; }
.phone h1 { font-size: 20px; }
.phone .state { margin: 10px 0 14px; padding: 12px; background: #1d1e22; border-radius: 14px; }
.phone .big { width: 100%; height: 54px; border-radius: 14px; border: 0; font: 700 17px var(--font); color: #fff; background: var(--live); }
.phone .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 16px; }
.phone .grid div { background: #1d1e22; border-radius: 14px; height: 74px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; font-weight: 600; }
.phone .grid div small { color: #888; font-weight: 500; font-size: 11px; }
.phone .grid div.hot { background: rgba(255, 181, 71, .18); color: #ffc876; }
.phone .set { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid #26272c; font-size: 13px; }
.phone .seg span { padding: 4px 9px; font-size: 12px; }

/* language picker (sidebar bottom) */
.langpick { padding: 10px 12px 14px; border-top: 1px solid var(--line); }
.langpick .seg { width: 100%; }
.langpick .seg span { flex: 1; text-align: center; padding: 4px 6px; font-size: 12px; }

/* terms (settings page + first-run gate) */
.tsum { border: 1px solid rgba(255,181,71,.35); background: var(--ai-bg); border-radius: 9px; padding: 10px 14px; margin-bottom: 8px; }
.tsum > b { color: var(--ai); font-size: 12px; }
.tsum ul { margin: 4px 0 0; padding-left: 18px; }
.tsum li, .tpage .tb li, .tpage .tb p, .gbd .tb li, .gbd .tb p { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.tsum b, .tb b { color: var(--text); }
.tpage details, .gbd details { border-top: 1px solid var(--line); padding: 9px 0; }
.tpage summary, .gbd summary { cursor: pointer; font-weight: 600; list-style: none; }
.tpage summary .no, .gbd summary .no { font: 600 11px var(--mono); color: var(--ai); margin-right: 8px; }
.tb ul { padding-left: 18px; margin: 4px 0; }
.tb .ph, .tsum .ph { background: rgba(255,214,10,.16); color: var(--ai); border-radius: 4px; padding: 0 3px; }

.gate { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100; align-items: center; justify-content: center; }
.gwin { width: 640px; height: 640px; background: var(--card); border: 1px solid #000; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.ghd { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ghd .grow b { display: block; }
.ghd .grow small { color: var(--muted); font-size: 11.5px; }
.gico { width: 34px; height: 34px; border-radius: 9px; background: var(--ai); color: #1a1205; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; }
.gbd { flex: 1; overflow: auto; padding: 14px 16px; }
.gft { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.gchk { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; }
button.btn:disabled { opacity: .45; cursor: default; }

/* GotchaMee logo in the drafts */
.logo-row { display: flex; align-items: center; gap: 8px; padding: 2px 16px 10px; font-weight: 700; font-size: 15px; }
.logo-row img { width: 26px; height: 26px; }
img.gico { width: 34px; height: 34px; }
.idle img { width: 22px; height: 22px; }
