/* SkalX Quorum, în haina platformei SkalX (account.skalx.dev): teal #0f766e, Inter 13px, titluri IBM Plex Serif.
   Fiecare model își păstrează culoarea: bulina și bula replicii. Macheta: claude.ai/artifact/7UXSiYpQso1p2SPVF5wNHT */
:root {
  --ground: #f4f6f8; --surface: #ffffff; --subtle: #f8fafb; --hover: #f1f5f9; --sel: #eaeef2;
  --ink: #0b1420; --ink-2: #3f4a5a; --muted: #5b6675; --faint: #8a95a4;
  --line: #e8ecf1; --line-2: #d7dce2;
  --brand: #0f766e; --brand-hover: #268277; --brand-press: #064f4b; --brand-tint: #e7f1f0; --brand-line: #99c8c2;
  --info-bg: #e0e7ff; --info: #1e40ff;
  --warn-bg: #ffedd5; --warn: #c2410c; --warn-line: #fed7aa; --warn-soft: #fff7e6; --warn-banner: #fffbeb;
  --err: #b91c1c; --err-bg: #fee2e2; --err-line: #fecaca;
  --ok-bg: #dcf6e5; --ok: #145b39; --ok-line: #c1efd2;
  --serif: 'IBM Plex Serif', 'Source Serif 4', Georgia, serif;
  --body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-1: 0 1px 2px #0b14200a, 0 1px 3px #0b14200d;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ground); color: var(--ink); font: 400 14px/1.6 var(--body); }
h1 { margin: 0; font: 600 26px/1.2 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; left: -9999px; }
hr { border: 0; height: 1px; background: var(--line); margin: 2px 0; width: 100%; }
code { font: 12.5px var(--mono); background: var(--subtle); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-xs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lbl, .flbl { font: 500 13px/1.3 var(--body); color: var(--ink-2); }
.cap { font: 600 11px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; line-height: 1.5; }
.hint { font-size: 12px; color: var(--muted); }
.lead { font-size: 14px; max-width: 640px; color: var(--ink-2); }
.err { color: var(--err); font-size: 13px; }
.mono { font-family: var(--mono); }

.field { width: 100%; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); padding: 8px 10px; line-height: 1.5; resize: vertical; min-height: 36px; }
select.field { height: 36px; padding: 0 8px; }
.field:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.field.big { font-size: 16px; font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; background: var(--surface); font-weight: 500; font-size: 13px; cursor: pointer; min-height: 36px; }
.chip:hover { background: var(--hover); }
.chip.dashed { border: 1px dashed var(--line-2); color: var(--ink-2); }
.chip.file { background: var(--subtle); cursor: default; font-weight: 400; }
.chip.file button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0 2px; font-size: 16px; }
.chip.on { background: var(--sel); border-color: var(--line-2); color: var(--brand); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.primary { border: 1px solid transparent; border-radius: 6px; background: var(--brand); color: #ffffff; padding: 0 16px; font-weight: 500; cursor: pointer; min-height: 36px; }
.primary:hover { background: var(--brand-hover); }
.primary:active { background: var(--brand-press); }
.primary.slim { padding: 0 12px; min-height: 32px; }
.primary:disabled { opacity: .45; cursor: default; }
.ghost { border: 1px solid var(--line-2); background: var(--surface); border-radius: 6px; padding: 0 12px; font-weight: 500; font-size: 13px; cursor: pointer; min-height: 32px; }
.ghost:hover { background: var(--hover); }
.ghost.danger { color: var(--err); border-color: var(--err-line); }
.ghost.sm { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.footer-line { padding-top: 4px; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; min-width: 0; box-shadow: var(--shadow-1); }

/* Bulina unui model: cerc plin în culoarea lui, cu inel deschis */
.av { width: 32px; height: 32px; border-radius: 50%; flex: none; color: #ffffff; font: 600 12px/32px var(--body); text-align: center; }
.av.sm { width: 28px; height: 28px; font-size: 11px; line-height: 28px; }
.av.xs { width: 22px; height: 22px; font-size: 9px; line-height: 22px; }

/* Autentificare */
.login { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 32px; box-shadow: var(--shadow-1); }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand svg { width: 52px; height: 52px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 14px rgba(15,118,110,.10); }
.login-brand h1 { font: 600 26px/1.2 var(--serif); }
.login-by { display: block; font: 600 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.login-box .muted { color: var(--ink-2); }
.login-box .primary { min-height: 36px; }

a.sso { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; min-height: 40px; font-size: 14px; }
.me-box { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 8px; border-top: 1px solid var(--line); }
.me-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.me-who b { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-who small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-out { font-size: 12px; color: var(--ink-2); text-decoration: none; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; }
.me-out:hover { background: var(--hover); }

/* Cadrul: meniul platformei | canal | cine ce susține */
.app { display: flex; height: 100vh; height: 100dvh; }
.nav { width: 240px; flex: none; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; padding: 0 8px 12px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; height: 48px; flex: none; padding: 0 8px; margin: 0 -8px 8px; border-bottom: 1px solid var(--line); padding-left: 16px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.2; }
.brand-t b { font-weight: 600; font-size: 14px; }
.brand-t small { font-size: 11px; color: var(--muted); }
.nav-new { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; background: var(--brand); color: #ffffff; border-radius: 6px; padding: 0 10px; font-weight: 500; font-size: 13px; min-height: 34px; cursor: pointer; margin: 4px 0 8px; }
.nav-new:hover { background: var(--brand-hover); }
.nav-lbl { font: 600 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 8px 4px; }
.channels { display: flex; flex-direction: column; gap: 2px; }
.ch { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); background: none; border: 0; text-align: left; cursor: pointer; min-height: 40px; font-size: 13px; }
.ch b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ch:hover { background: var(--hover); }
.ch.sel { background: var(--sel); color: var(--brand); }
.ch.sel b { font-weight: 600; }
.st { align-self: flex-start; border-radius: 4px; padding: 0 5px; font: 500 10.5px/16px var(--body); border: 1px solid transparent; }
.st.deb { background: var(--info-bg); color: var(--info); }
.st.rev { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.st.dec { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.nav-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 10px 8px; line-height: 1.45; }
.nav-link { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--ink-2); text-align: left; padding: 6px 8px; border-radius: 6px; cursor: pointer; min-height: 34px; font-size: 13px; }
.nav-link:hover { background: var(--hover); }
.nav-link.sel { background: var(--sel); color: var(--brand); font-weight: 500; }

.center { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 48px; flex: none; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 18px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 13px; }
.crumbs .here { color: var(--ink); }
.pane { flex: 1; min-height: 0; }
.scroll { overflow-y: auto; }
.form { max-width: 800px; margin: 0 auto; padding: 28px 18px 56px; display: flex; flex-direction: column; gap: 18px; }
.form > .stack:not(:first-child):not(.opts), .form > .grid2 { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.opts { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.members { grid-template-columns: minmax(0, 1fr) !important; }
.mrow { display: grid; grid-template-columns: 250px minmax(0, 1fr) 150px; gap: 8px; align-items: center; }
.mpick { font: 12.5px var(--mono); min-height: 34px; }
.mprice { font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .mrow { grid-template-columns: minmax(0, 1fr); } }
.mchip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.mchip:hover { background: var(--hover); }
.mchip input { accent-color: var(--brand); width: 15px; height: 15px; margin: 0; flex: none; }
.mchip:has(input:not(:checked)) { opacity: .55; }
.mname { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mname b { font-weight: 500; }
.mname small { font-size: 12px; color: var(--muted); }
.opts .row { font-size: 13.5px; align-items: flex-start; }
.opts input { margin-top: 4px; accent-color: var(--brand); }
.form .tiny.muted { background: var(--warn-banner); border: 1px solid #fde7c7; border-radius: 8px; padding: 10px 12px; color: var(--ink-2); }

/* Canalul */
.channel { display: flex; flex-direction: column; background: var(--ground); }
.ch-head { min-height: 48px; padding: 6px 18px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ch-title { font: 600 14px var(--body); }
.tags-legend { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.feed { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 22px max(18px, calc((100% - 820px) / 2)) 24px; }
.composer { padding: 10px max(18px, calc((100% - 820px) / 2)) 14px; display: flex; flex-direction: column; gap: 8px; }
.say { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 10px 0 14px; background: var(--surface); border: 1px solid #5f9c90; border-radius: 12px; box-shadow: 0 4px 22px rgba(15,118,110,.12); }
.say .field { border: 0; box-shadow: none; padding: 0; min-height: 0; background: transparent; }
.say .field:focus { box-shadow: none; }
.send { width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: var(--brand); color: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.send:hover { background: var(--brand-hover); }
.mentions { display: flex; gap: 6px; flex-wrap: wrap; }
.mentions button { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font-size: 12px; color: var(--ink-2); cursor: pointer; min-height: 26px; }
.mentions button:hover { border-color: var(--line-2); background: var(--hover); }

/* O replică: bulina și numele sus, mesajul într-o bulă în culoarea modelului */
.turn { align-self: stretch; display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.turn-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who { font-weight: 600; font-size: 14px; }
.meta { font-size: 12px; color: var(--muted); }
.model { font-size: 11.5px; color: var(--muted); padding: 0 6px; border-radius: 4px; background: rgba(11,20,32,.05); }
.side-pos .sp small { font-weight: 400; color: var(--muted); font-size: 11px; }
.chair-tag { font: 500 10px/16px var(--body); padding: 0 6px; border-radius: 4px; background: var(--ink); color: #ffffff; }
.b { margin-left: 40px; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 12px 16px; font-size: 14px; line-height: 1.6; color: var(--ink); display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.b.dez { border-style: dashed; }
.b.wait { background: var(--surface); }
.b ul, .b ol { margin: 0; padding-left: 18px; }
.b li { margin: 2px 0; }
.b p + p { margin-top: 4px; }
.b a { color: var(--brand); }
.t { display: inline-block; border-radius: 4px; padding: 0 6px; font: 500 11px/18px var(--body); vertical-align: 1px; margin-left: 3px; white-space: nowrap; }
.ctx { background: #f1f3f5; color: var(--ink-2); }
.ass { background: var(--info-bg); color: var(--info); }
.chk { background: var(--warn-bg); color: var(--warn); }
.chk::before { content: '? '; font-weight: 700; }
.posline { align-self: flex-start; display: inline-flex; flex-wrap: wrap; gap: 0 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.75); font-size: 13px; color: var(--muted); }
.posline b { color: var(--ink); font-weight: 600; }
.posline.fin { border-color: var(--brand-line); background: var(--brand-tint); color: var(--ink-2); }
.posline.fin b { color: var(--brand-press); }
.pm { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px dashed #fdba74; border-radius: 8px; background: rgba(255,255,255,.7); font-size: 13px; }
.rx { display: flex; gap: 6px; margin-top: 2px; flex-wrap: wrap; align-items: center; }
.rx button { width: 32px; height: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.rx button:hover { background: var(--hover); }
.rx button.on[data-v="da"] { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.rx button.on[data-v="nu"] { background: var(--err-bg); border-color: var(--err-line); color: var(--err); }
.rx input { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: 12.5px; min-width: 0; flex: 1 1 160px; background: var(--surface); }
.rx .note { font-size: 12px; color: var(--ink-2); }
.sep { align-self: stretch; display: flex; align-items: center; gap: 12px; font: 600 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.sep::before, .sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sep.note { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12.5px; }
.sep.note.bad { justify-content: flex-start; padding: 8px 12px; border: 1px solid var(--warn-line); border-radius: 8px; background: var(--warn-soft); color: var(--ink-2); }
.sep.note.bad::before, .sep.note.bad::after { display: none; }
.me { align-self: flex-end; max-width: min(640px, 85%); background: rgba(11,20,32,.05); color: var(--ink); border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.me b { font-size: 15px; font-weight: 600; }
.me .at { color: var(--brand); font-weight: 600; }
.me .docs { font-size: 12px; color: var(--muted); margin-top: 4px; }
.typing { display: flex; gap: 4px; padding: 4px 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; } }

.qs { display: flex; flex-direction: column; gap: 8px; }
.qs label { font-weight: 500; }
.qs textarea { min-height: 40px; }
.banner { align-self: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.banner b { color: var(--ink); }
.banner.warn { border-color: var(--warn-line); background: var(--warn-soft); }
.banner.decide { border: 2px solid var(--brand); }
.banner .stack { flex: 1 1 260px; }

.share-panel { padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.shared-banner { padding: 8px 18px; background: var(--brand-tint); color: var(--brand-press); font-size: 13px; border-bottom: 1px solid var(--brand-line); }
.b.colleague { background: var(--surface); }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font: 500 22px var(--mono); }
.stat span { font-size: 12px; color: var(--muted); }
.role-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 10px; align-items: center; }
.role-row .bar { height: 8px; border-radius: 4px; background: var(--hover); overflow: hidden; }
.role-row .bar i { display: block; height: 100%; background: var(--brand); }
.res-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); }
.res-row:first-of-type { border-top: 0; }

.tpl-row { gap: 6px; }
.chip.tpl { min-height: 28px; padding: 2px 10px; font-size: 12.5px; }

.swap-btn { border: 0; background: none; color: var(--brand); font-size: 11px; padding: 0 2px; cursor: pointer; text-decoration: underline; }
.swap-form { display: flex; gap: 6px; margin-top: 4px; }
.swap-form .mpick { min-height: 30px; font-size: 11.5px; }

.memo { align-self: stretch; background: var(--surface); border: 1px solid var(--line); border-left-width: 1px; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.memo-row { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 6px; background: var(--subtle); color: var(--ink); text-decoration: none; }
.memo-row:hover { background: var(--hover); }
.memo-row span { font-size: 12.5px; color: var(--ink-2); }
.lesson { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(11,20,32,.08); }
.side-cost { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.side-cost > div { display: flex; justify-content: space-between; }
.side-cost b { font: 400 12.5px var(--mono); }

/* Verdictul */
.verdict { align-self: stretch; display: flex; flex-direction: column; gap: 14px; }
.v-hero { background: var(--ink); color: #ffffff; border-radius: 12px; padding: 24px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.v-ring { flex: none; width: 132px; height: 132px; border-radius: 50%; border: 2px solid #2dd4bf; box-shadow: 0 0 0 8px rgba(45,212,191,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px; }
.v-ring .k { font: 600 10.5px var(--body); letter-spacing: .08em; text-transform: uppercase; color: #99f6e4; }
.v-ring b { font: 600 18px/1.15 var(--serif); overflow-wrap: anywhere; }
.v-ring span:last-child { font-size: 11.5px; color: #cbd5e1; }
.v-head { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.v-by { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #cbd5e1; }
.v-by b { color: #ffffff; font-weight: 600; }
.v-head .rec { font: 600 24px/1.25 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.v-head .why { color: #cbd5e1; font-size: 14px; }
.v-body { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.v-main { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.v-side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.v-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.v-sec h3 { margin: 0; font: 600 17px/1.3 var(--serif); }
.v-sec ul, .v-sec ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.v-bal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v-loss, .v-test { border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.v-loss { background: #fef2f2; border: 1px solid var(--err-line); }
.v-loss .cap { color: var(--err); }
.v-loss b { font: 500 18px/1.35 var(--body); color: #7f1d1d; }
.v-test { background: #ecfdf5; border: 1px solid #a7f3d0; }
.v-test .cap { color: #047857; }
.v-test b { font: 500 18px/1.35 var(--body); color: #064e3b; }
.v-rev { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.v-rev span:last-child { color: var(--ink-2); }
.v-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.v-legend span { display: flex; align-items: center; gap: 6px; }
.v-legend i { width: 22px; border-top: 3px solid var(--brand); }
.v-legend i.no { border-top-style: dashed; border-top-color: #b91c1c; }
.v-tablewrap { overflow-x: auto; }
.v-table { position: relative; width: 100%; min-width: 760px; height: 400px; }
.v-table svg { position: absolute; left: 50%; top: 50%; overflow: visible; }
.v-center { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: var(--brand); color: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 0 0 6px #ffffff, 0 0 0 8px var(--brand-line); }
.v-center b { font: 600 22px/1.1 var(--serif); }
.v-center span { font-size: 11px; color: #ccfbf1; }
.seat { position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; color: #ffffff; font: 600 14px/48px var(--body); text-align: center; }
.seat-l { position: absolute; width: 190px; margin-top: -26px; display: flex; flex-direction: column; line-height: 1.35; font-size: 13px; }
.seat-l b { font-weight: 600; }
.seat-l .model { align-self: inherit; background: none; padding: 0; }
.seat-l .against { color: var(--err); font-size: 11.5px; font-weight: 600; }
.v-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v-split > div { display: flex; flex-direction: column; gap: 6px; }
.v-steps { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px !important; counter-reset: s; }
.v-steps li { display: flex; flex-direction: column; gap: 8px; counter-increment: s; }
.v-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.v-steps li:first-child::before { background: var(--brand); color: #ffffff; }
.v-check { background: var(--warn-banner); border: 1px solid #fde68a; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.v-check h3 { margin: 0; font-size: 14px; font-weight: 600; color: #92400e; }
.v-check label { display: flex; gap: 10px; align-items: flex-start; }
.v-check input { accent-color: var(--brand); width: 16px; height: 16px; margin: 3px 0 0; flex: none; }
.who-tag { display: inline-block; margin-top: 2px; font-size: 11px; font-weight: 500; border-radius: 4px; padding: 0 6px; background: #ffffff; border: 1px solid #fde68a; color: #92400e; }
.v-pm { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.v-pm h3 { margin: 0; padding: 10px 16px; background: var(--ink); color: #ffffff; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.v-pm ul { margin: 0; padding: 14px 16px 14px 32px; display: flex; flex-direction: column; gap: 10px; }
.v-pm .sig { display: block; margin-top: 4px; padding: 6px 8px; border-radius: 6px; background: #fff7ed; border: 1px dashed #fdba74; font-size: 12.5px; }
.v-asoc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.v-asoc h3 { margin: 0; font-size: 14px; font-weight: 600; }
.v-asoc p { align-self: flex-end; max-width: 94%; white-space: pre-wrap; padding: 10px 12px; border-radius: 14px 14px 4px 14px; background: #dcf8c6; box-shadow: 0 1px 1px rgba(11,20,32,.08); }
.v-raw { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) { .v-bal, .v-split, .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* Cine ce susține */
.side { width: 290px; flex: none; border-left: 1px solid var(--line); background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.side-lbl { font: 600 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-pos { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.side-pos > div { display: flex; gap: 8px; align-items: flex-start; }
.side-pos .sp { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.side-pos .sp span { font-size: 12px; font-weight: 600; }
.side-pos .sp b { font-weight: 500; }
.side-list { margin: 0; padding-left: 16px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.side-note { margin-top: auto; background: var(--brand-tint); border-radius: 8px; padding: 12px; font-size: 12.5px; line-height: 1.5; color: var(--brand-press); }
.side-note:empty { display: none; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; z-index: 10; max-width: calc(100% - 32px); }

/* Ecrane înguste */
@media (max-width: 1100px) { .side { display: none !important; } }
@media (max-width: 760px) {
  .app { flex-direction: column; height: auto; min-height: 100dvh; }
  .nav { width: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; align-items: center; padding: 6px 10px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { height: auto; border: 0; margin: 0; padding: 0 6px 0 0; }
  .brand-t small { display: none; }
  .nav-new { margin: 0; white-space: nowrap; }
  .nav-lbl, .nav-foot { display: none; }
  .channels { flex-direction: row; gap: 4px; }
  .ch { max-width: 180px; }
  .nav-link { white-space: nowrap; }
  .topbar { display: none; }
  .channel { height: calc(100dvh - 54px); }
  .feed, .composer { padding-left: 12px; padding-right: 12px; }
  .ch-head { padding-left: 12px; padding-right: 12px; }
  .b { margin-left: 0; }
  .form { padding: 20px 12px 40px; }
  h1 { font-size: 22px; }
}
