/* Dashboard. Desktop: emerald rail stage + multi-pane work area. Mobile: tab bar + push views. */
body.app { min-height: 100svh; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 32%, #fff2cc 0%, var(--gold) 38%, #9a560a 85%); box-shadow: 0 0 18px rgba(244, 183, 64, .5), 0 0 0 4px rgba(244, 183, 64, .1); display: block; }

/* login */
.login { min-height: 100svh; display: grid; place-items: center; padding: 16px; background: radial-gradient(800px 500px at 50% 30%, #0f5a48, #052620 60%, #031914); color: var(--st-ink); }
.login-card { width: min(420px, 100%); padding: 34px 26px; border-radius: 28px; background: rgba(5, 32, 26, .7); border: 1px solid var(--st-line); box-shadow: var(--shadow-3); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.login-card .brand-mark { width: 54px; height: 54px; margin-bottom: 10px; }
.login-card h1 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.01em; } .login-card p { margin: 0 0 14px; color: var(--st-ink-2); }
.login-card form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.login-card input { height: 50px; border-radius: 999px; border: 1px solid rgba(236, 251, 245, .18); background: rgba(236, 251, 245, .07); color: var(--st-ink); padding: 0 20px; font-size: 16px; }
.login-card .btn { height: 50px; } .err { min-height: 18px; margin: 0; color: #ffb4ad; font-size: 14px; }
.back-site { color: var(--st-muted); font-size: 14px; margin-top: 8px; }

/* shell */
.shell { display: grid; grid-template-columns: 1fr; min-height: 100svh; }
@media (min-width: 1024px) { .shell { grid-template-columns: 252px minmax(0, 1fr); } }
.rail { display: none; }
@media (min-width: 1024px) {
  .rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; height: calc(100svh - 24px); margin: 12px 0 12px 12px; padding: 18px 14px 14px; border-radius: 26px; color: var(--st-ink); overflow: hidden auto; isolation: isolate;
    background: radial-gradient(300px 260px at 50% 78%, rgba(244, 183, 64, .16), transparent 70%), linear-gradient(180deg, #08352c, #052620 60%, #041d18); box-shadow: var(--shadow-2); }
  [dir="rtl"] .rail { margin: 12px 12px 12px 0; }
}
.rail-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 6px 8px; }
.rail-brand b { display: block; font-size: 14.5px; } .rail-brand small { display: block; font-size: 12px; color: var(--st-muted); }
.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; color: var(--st-ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; position: relative; }
.rail-nav a svg, .tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rail-nav a:hover { background: rgba(236, 251, 245, .06); color: var(--st-ink); }
.rail-nav a.on { background: rgba(236, 251, 245, .10); color: var(--st-ink); box-shadow: inset 0 0 0 1px rgba(236, 251, 245, .08); }
.rail-nav a.on::before { content: ''; position: absolute; inset-inline-start: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); }
.badge { margin-inline-start: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(244, 183, 64, .18); color: var(--gold-2); font-size: 11.5px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.badge.live-badge { background: rgba(255, 90, 78, .2); color: #ffb0a8; }
.rail-orb { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px 6px; text-align: center; }
.rail-orb canvas { width: 150px; height: 150px; margin: -10px 0 -18px; cursor: pointer; }
.rail-orb p { margin: 0; font-size: 12.5px; color: var(--st-ink-2); display: flex; gap: 7px; align-items: center; } .rail-orb .dot { color: var(--mint); }
.rail-foot { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--st-line); }
.rf-btn { height: 32px; padding: 0 10px; border-radius: 10px; background: rgba(236, 251, 245, .06); border: 1px solid rgba(236, 251, 245, .1); color: var(--st-ink-2); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.rf-btn:hover { color: var(--st-ink); }

.main { min-width: 0; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 8px) 16px calc(86px + var(--safe-b)); }
@media (min-width: 1024px) { .main { padding: 14px 22px 22px; } }
@media (min-width: 1440px) { .main { padding: 18px 30px 26px; } }
.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0 14px; position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--bg) 70%, transparent); }
.back { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; }
[dir="rtl"] .back svg { transform: scaleX(-1); }
.tb-title { flex: 1; min-width: 0; } .tb-title h1 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.015em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) { .tb-title h1 { font-size: 28px; } }
.tb-sub { font-size: 13px; color: var(--muted); }
.tb-filters { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.seg button { height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--st-2); color: var(--st-ink); }
select, .inp { height: 38px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 12px; font-size: 14px; color: var(--ink); min-width: 0; }
textarea.inp { height: auto; padding: 10px 12px; line-height: 1.45; resize: vertical; }
@media (max-width: 767px) { .tb-filters { width: 100%; } .tb-filters .seg { flex: 1; } .tb-filters .seg button { flex: 1; padding: 0 6px; } }

.live-banner { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(255, 90, 78, .3); background: linear-gradient(90deg, rgba(255, 90, 78, .10), rgba(244, 183, 64, .08)); color: var(--ink); font-weight: 700; text-align: start; }
.lb-txt { font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; unicode-bidi: plaintext; }

/* tab bar (mobile) */
.tabbar { position: fixed; inset-inline: 10px; bottom: calc(10px + var(--safe-b)); z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: 64px; border-radius: 22px; padding: 0 6px; color: var(--st-ink-2);
  background: rgba(5, 38, 32, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-3); }
@media (min-width: 1024px) { .tabbar { display: none; } }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; text-decoration: none; color: inherit; position: relative; padding: 6px 0; }
.tabbar a.on { color: var(--st-ink); } .tabbar a.on svg { stroke: var(--gold-2); }
.tabbar .badge { position: absolute; top: 0; inset-inline-start: calc(50% + 6px); margin: 0; min-width: 18px; height: 17px; font-size: 10px; }
.tab-talk { justify-self: center; width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; border: 0; background: #052620; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg), 0 10px 26px rgba(244, 183, 64, .35); }
.tab-talk .brand-mark { width: 40px; height: 40px; }

/* generic panels */
.view { outline: none; min-width: 0; }
.panel { background: var(--surface); border-radius: var(--r-3); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 6px; }
.panel-h h2 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: .005em; }
.panel-b { padding: 8px 18px 18px; }
.mini-btn { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; font-size: 12px; font-weight: 700; color: var(--muted); }
.chip.demo { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); font-weight: 600; }
.empty { padding: 30px 18px; text-align: center; color: var(--muted); }

/* overview */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.kpi small { font-size: 12.5px; color: var(--muted); font-weight: 600; } .kpi b { font-size: 28px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.kpi .delta { font-size: 12px; font-weight: 700; color: var(--muted); } .kpi .delta.up { color: var(--good); } .kpi .delta.down { color: var(--bad); }
.kpi.hero { background: linear-gradient(160deg, #0a4237, #052620); color: var(--st-ink); box-shadow: var(--shadow-2); }
.kpi.hero small, .kpi.hero .delta { color: var(--st-ink-2); } .kpi.hero .delta.up { color: var(--mint); }
.kpi svg.spark { position: absolute; inset-inline-end: 12px; bottom: 12px; width: 38%; height: 26px; }
.ov-grid { display: grid; gap: 14px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .ov-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
@media (min-width: 1440px) { .ov-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr); } }
.ov-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* call rows */
.calls-list { display: flex; flex-direction: column; }
.crow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 11px 14px; border: 0; background: none; width: 100%; text-align: start; border-radius: 14px; text-decoration: none; color: inherit; }
.crow:hover { background: var(--surface-2); }
.crow.sel { background: rgba(18, 128, 92, .09); box-shadow: inset 0 0 0 1px rgba(18, 128, 92, .18); }
.crow .ci { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.crow .ci.t-complaint { background: var(--bad-bg); color: var(--bad); } .crow .ci.t-lost_found { background: rgba(244, 183, 64, .16); color: #a26800; }
:root[data-theme="dark"] .crow .ci.t-lost_found { color: var(--gold-2); }
.crow .ct { font-weight: 700; font-size: 14.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.crow .cp { grid-column: 2 / 4; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.crow .cg { grid-column: 2 / 4; display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.crow .chip { height: 22px; font-size: 11.5px; padding: 0 8px; }

/* calls view: 3 panes */
.panes { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 768px) { .panes { grid-template-columns: 330px minmax(0, 1fr); } }
@media (min-width: 1280px) { .panes { grid-template-columns: 360px minmax(0, 1fr) 300px; } }
.pane-list { display: flex; flex-direction: column; min-height: 0; }
@media (min-width: 768px) { .pane-list { position: sticky; top: 74px; max-height: calc(100svh - 96px); } }
.pane-list .filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.pane-list .filters .inp { flex: 1 1 100%; } .pane-list .filters select { flex: 1 1 30%; height: 34px; font-size: 13px; padding: 0 8px; }
.pane-list .calls-list { overflow-y: auto; padding: 6px; overscroll-behavior: contain; flex: 1; }
.pane-list .count { padding: 8px 14px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.pane-detail { min-width: 0; }
.pane-side { display: none; }
@media (min-width: 1280px) { .pane-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 74px; } .pane-detail .side-inline { display: none; } }
@media (max-width: 767px) { body.detail-open .pane-list { display: none; } body:not(.detail-open) .pane-detail { display: none; } }
.det-head { padding: 18px 20px 10px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.det-head h2 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.det-head .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.det-sum { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.transcript { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.tl { display: flex; gap: 10px; max-width: 88%; }
.tl .av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--surface-3); color: var(--ink-2); }
.tl.assistant .av { background: radial-gradient(circle at 35% 32%, #fff2cc, var(--gold) 45%, #9a560a); color: transparent; }
.tl .bb { padding: 10px 14px; border-radius: 16px; background: var(--surface-2); font-size: 14.5px; line-height: 1.5; unicode-bidi: plaintext; }
.tl.assistant .bb { background: rgba(18, 128, 92, .07); border: 1px solid rgba(18, 128, 92, .13); }
.tl .ts { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.tl.caller { align-self: flex-end; flex-direction: row-reverse; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; } .typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.fact small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }
.fact span { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.fact span svg { display: inline-block; vertical-align: -3px; margin-inline-end: 4px; }
.fact.wide { grid-column: 1 / -1; }
.side-inline { padding: 16px 20px; border-top: 1px solid var(--line); }
.tk-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(244, 183, 64, .10); border: 1px solid rgba(244, 183, 64, .3); text-decoration: none; color: inherit; font-weight: 700; }

/* tickets */
.tk-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.tk-tabs button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.tk-tabs button.on { background: var(--st-2); color: var(--st-ink); border-color: transparent; }
.tk-tabs button em { font-style: normal; font-size: 11.5px; opacity: .75; }
.trow { text-decoration: none; color: inherit; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 12px 14px; border-radius: 14px; border: 0; background: none; text-align: start; width: 100%; }
.trow:hover { background: var(--surface-2); } .trow.sel { background: rgba(18, 128, 92, .09); box-shadow: inset 0 0 0 1px rgba(18, 128, 92, .18); }
.trow b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .trow time { font-size: 12px; color: var(--muted); }
.trow .tg { grid-column: 1 / -1; display: flex; gap: 5px; flex-wrap: wrap; } .trow .chip { height: 22px; font-size: 11.5px; padding: 0 8px; }
.stepper { display: flex; gap: 4px; flex-wrap: wrap; }
.stepper button { flex: 1 1 auto; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.stepper button.on { background: var(--st-2); color: var(--st-ink); border-color: transparent; box-shadow: 0 0 0 2px rgba(244, 183, 64, .4); }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.hist li { position: relative; padding-inline-start: 20px; font-size: 14px; } .hist li::before { content: ''; position: absolute; inset-inline-start: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.hist li small { display: block; color: var(--muted); font-size: 12px; }
.note-row { display: flex; gap: 8px; margin-top: 12px; } .note-row .inp { flex: 1; }

/* analytics */
.an-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-grid .span2 { grid-column: span 2; } }
@media (min-width: 1440px) { .an-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .an-grid .span2 { grid-column: span 2; } }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); } .chart .ax text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .bar { fill: var(--good); } .chart .bar.now { fill: var(--gold); } .chart .bar:hover, .chart .hit:hover + .bar { opacity: .8; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hb { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) 46px; gap: 10px; align-items: center; font-size: 13.5px; }
.hb .hl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.hb .tr { height: 10px; border-radius: 0 5px 5px 0; background: var(--surface-3); overflow: hidden; } .hb .fl { height: 100%; background: var(--good); border-radius: 0 5px 5px 0; }
[dir="rtl"] .hb .tr, [dir="rtl"] .hb .fl { border-radius: 5px 0 0 5px; }
.hb .hv { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 10.5px; color: var(--muted); direction: ltr; }
.heat .c { aspect-ratio: 1; border-radius: 3px; background: var(--surface-3); min-width: 0; }
.heat .rl { display: flex; align-items: center; font-weight: 600; } .heat .hl2 { text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; background: var(--surface); }
.big-stat { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; } .big-stat b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; } .big-stat span { color: var(--muted); font-size: 13px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; } table.data th, table.data td { text-align: start; padding: 6px 8px; border-bottom: 1px solid var(--line); } table.data td.n { text-align: end; font-variant-numeric: tabular-nums; }

/* knowledge base + settings */
.kb-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.kb-note { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--good-bg); color: var(--good); font-size: 13.5px; font-weight: 600; }
.ktable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.ktable th { text-align: start; font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 10px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.ktable td { padding: 5px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ktable .inp { width: 100%; height: 36px; font-size: 13.5px; background: transparent; border-color: transparent; }
.ktable .inp:hover { border-color: var(--line-2); } .ktable .inp:focus { border-color: var(--good); background: var(--surface); }
.ktable .x { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: 18px; }
.ktable .x:hover { background: var(--bad-bg); color: var(--bad); }
.kwrap { overflow-x: auto; }
@media (max-width: 767px) {
  .ktable.cards thead { display: none; } .ktable.cards tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ktable.cards td { border: 0; padding: 0; } .ktable.cards td.w { grid-column: 1 / -1; } .ktable.cards .inp { border-color: var(--line); }
}
.savebar { position: sticky; bottom: calc(84px + var(--safe-b)); z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 14px 12px 18px; border-radius: 18px; background: var(--st-1); color: var(--st-ink); box-shadow: var(--shadow-3); }
@media (min-width: 1024px) { .savebar { bottom: 18px; } }
.form { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; } .field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); } .field .inp { width: 100%; }
.field.wide { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.checks input { accent-color: #12805c; }
.meter { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--good); }

/* more menu (mobile) */
.more-list { display: flex; flex-direction: column; gap: 8px; }
.more-list a, .more-list button { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border: 0; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; width: 100%; text-align: start; }

/* talk dialog */
.talk-dlg { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 20px)); max-height: calc(100svh - 20px); color: var(--st-ink); }
.talk-dlg::backdrop { background: rgba(2, 16, 13, .6); backdrop-filter: blur(4px); }
.td-stage { position: relative; border-radius: 30px; padding: 26px 20px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; overflow: hidden;
  background: radial-gradient(420px 320px at 50% 34%, rgba(244, 183, 64, .2), transparent 70%), radial-gradient(600px 500px at 50% 30%, #0f5a48, #052620 70%); box-shadow: var(--shadow-3); }
.td-stage h2 { margin: 0; font-size: 20px; font-weight: 900; } .td-stage > p { margin: 0; color: var(--st-ink-2); font-size: 14px; }
.td-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(236, 251, 245, .1); color: var(--st-ink); font-size: 22px; line-height: 1; }
.td-orb { width: min(280px, 70vw); aspect-ratio: 1; margin: -6px 0 -16px; } .td-orb canvas { width: 100%; height: 100%; }
.td-status { margin: 0; color: var(--st-ink-2); font-size: 14px; min-height: 22px; }
.td-caps { width: 100%; max-height: 220px; text-align: start; margin-top: 8px; }
.td-actions { display: flex; gap: 8px; margin-top: 12px; }

.tip { position: fixed; z-index: 50; pointer-events: none; padding: 7px 10px; border-radius: 10px; background: #062a23; color: #eafaf4; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-2); white-space: nowrap; }
.toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(92px + var(--safe-b)); padding: 11px 16px; border-radius: 14px; background: #062a23; color: #eafaf4; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-3); }
@media (min-width: 1024px) { .toast { bottom: 24px; } }
