:root { --bg:#06111f; --panel:#0b1e33; --line:#1d3550; --ink:#eaf2fb; --mute:#8aa3bd; --teal:#2dd4bf; --gold:#f5b942; --red:#f2545b; --violet:#a78bfa; --sky:#38bdf8; --orange:#fb923c; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif; }
h1 { font-size: 24px; margin-bottom: 6px; } h2 { font-size: 20px; margin-bottom: 6px; } h3 { font-size: 16px; margin-bottom: 8px; color: var(--teal); }
.mute { color: var(--mute); } .small { font-size: 13px; } .warn { color: var(--gold); }
header { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #06111fee; border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; letter-spacing: .04em; color: var(--teal); }
main { max-width: 760px; margin: 0 auto; padding: 14px 16px 110px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
label { display: block; margin: 10px 0 4px; font-size: 14px; color: var(--mute); }
select, input, textarea { width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: var(--ink); background: #071628; border: 1px solid var(--line); border-radius: 10px; }
textarea { min-height: 64px; resize: vertical; margin-top: 8px; }
.btn { display: block; width: 100%; margin-top: 12px; padding: 12px; border: 0; border-radius: 10px; font: inherit; font-weight: 700; color: #06111f; background: var(--teal); cursor: pointer; }
.rules li { margin: 0 0 8px 20px; }
.grp { margin: 18px 4px 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.stmt { margin: 4px 0 10px; }
.scale { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.sc { padding: 11px 0; border-radius: 8px; border: 1px solid var(--line); background: #071628; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.sc.lo.on { background: var(--red); color: #06111f; } .sc.mid.on { background: var(--mute); color: #06111f; } .sc.hi.on { background: var(--teal); color: #06111f; }
.scl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--mute); margin-top: 4px; }
.saved { font-size: 12px; color: var(--teal); text-align: right; min-height: 14px; }
.sl { display: block; } .sl b { float: right; color: var(--gold); } input[type=range] { padding: 0; accent-color: var(--gold); }
.bar { position: relative; padding: 6px 8px; margin: 4px 0; border-radius: 8px; background: #071628; overflow: hidden; } .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #f5b94233; border-right: 2px solid var(--gold); } .bar span { position: relative; }
.case { padding: 10px 12px; border-left: 3px solid var(--gold); background: #f5b9420f; border-radius: 6px; margin: 8px 0; font-size: 14.5px; }
.note { position: relative; padding: 8px 46px 8px 10px; margin: 6px 0; border-radius: 8px; background: #071628; border-left: 3px solid var(--sky); font-size: 14.5px; }
.note.k-pain { border-color: var(--red); } .note.k-handover { border-color: var(--orange); } .note.k-idea { border-color: var(--teal); } .note.k-doc { border-color: var(--violet); }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.plus { position: absolute; right: 6px; top: 6px; border: 1px solid var(--line); background: transparent; color: var(--mute); border-radius: 8px; padding: 2px 7px; font: inherit; font-size: 13px; cursor: pointer; } .plus.on { color: #06111f; background: var(--teal); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--mute); margin-top: 8px; } .legend b { color: var(--gold); }
.rl { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 8px; margin: 6px 0; } .rl select { margin: 0; padding: 7px 8px; }
.vote { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); } .vote input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #06111f; background: var(--mute); }
.pill.agreed { background: var(--teal); } .pill.rejected { background: var(--red); } .pill.uncertain { background: var(--gold); } .pill.escalate { background: var(--violet); }
.msg { border-color: var(--gold); color: var(--gold); }
#tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; overflow-x: auto; padding: 10px; background: #06111ff2; border-top: 1px solid var(--line); }
#tabs button { flex: none; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--mute); font: inherit; font-size: 14px; cursor: pointer; }
#tabs button.on { color: #06111f; background: var(--gold); border-color: var(--gold); font-weight: 700; }
#toast { position: fixed; left: 50%; bottom: 76px; transform: translate(-50%, 20px); opacity: 0; transition: .25s; padding: 9px 16px; border-radius: 10px; background: var(--teal); color: #06111f; font-weight: 700; z-index: 9; pointer-events: none; }
#toast.on { opacity: 1; transform: translate(-50%, 0); } #toast.bad { background: var(--red); }

/* ---------- screen + console ---------- */
body.b { font-size: 17px; } main.b { max-width: none; padding: 18px 26px 40px; }
.top { display: flex; gap: 18px; align-items: baseline; margin-bottom: 14px; flex-wrap: wrap; } .top h1 { font-size: 30px; } .top .k { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 26px; background: #0b1e33; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 4; }
.ctl button, .ctl a, .ctl select { width: auto; margin: 0; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: #071628; color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: none; }
.ctl button.on { background: var(--gold); color: #06111f; font-weight: 700; } .ctl .sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.ctl label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-size: 13px; } .ctl input[type=checkbox] { width: auto; margin: 0; }
.ctl input[type=text] { width: 240px; margin: 0; padding: 6px 10px; }
.sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 26px; border-bottom: 1px solid var(--line); font-size: 13px; }
.sub a, .sub button { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--sky); font: inherit; font-size: 12.5px; text-decoration: none; cursor: pointer; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14.5px; } th { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hist { display: flex; gap: 2px; align-items: flex-end; height: 34px; } .hist i { width: 10px; border-radius: 2px 2px 0 0; background: var(--mute); min-height: 1px; } .hist i.lo { background: var(--red); } .hist i.hi { background: var(--teal); }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.hbar { display: grid; grid-template-columns: 240px 1fr 170px; gap: 12px; align-items: center; margin: 8px 0; } .hbar .t { height: 26px; border-radius: 6px; background: #071628; position: relative; overflow: hidden; } .hbar .t i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #f5b94255, var(--gold)); }
.range { position: relative; height: 10px; background: #071628; border-radius: 5px; } .range i { position: absolute; top: 0; bottom: 0; background: #2dd4bf66; border-radius: 5px; } .range b { position: absolute; top: -3px; width: 4px; height: 16px; background: var(--gold); border-radius: 2px; }
.heat td { text-align: center; font-weight: 800; font-size: 15px; }
.lane { display: grid; grid-template-columns: 210px repeat(5, 1fr); gap: 6px; } .lane > div { background: #071628; border-radius: 8px; padding: 6px 8px; font-size: 13px; min-height: 34px; } .lane .h { background: transparent; color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.join { font-size: 34px; font-weight: 800; color: var(--gold); word-break: break-all; } .bigc { font-size: 64px; font-weight: 800; color: var(--teal); line-height: 1; }
#qr { display: inline-block; padding: 12px; background: #fff; border-radius: 12px; margin: 10px 0; }
.rec { padding: 3px 9px; border-radius: 7px; border: 1px solid var(--teal); background: transparent; color: var(--teal); font: inherit; font-size: 12.5px; cursor: pointer; }
dialog { margin: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 18px; width: min(720px, 94vw); } dialog::backdrop { background: #000a; }
.del { background: none; border: 0; color: var(--red); cursor: pointer; font: inherit; }
.login { max-width: 460px; margin: 60px auto; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; } .kpi b { display: block; font-size: 34px; color: var(--gold); line-height: 1.1; } .kpi span { color: var(--mute); font-size: 13px; }
.cfg { width: 100%; min-height: 60vh; font: 13px/1.4 Consolas, monospace; }
@media (max-width: 900px) { .grid2, .kpis { grid-template-columns: 1fr; } .hbar { grid-template-columns: 1fr; } }
