/* ==========================================================
   SILENT INTERFERENCE — CRA Tabletop Command Centre
   Front-end v4 — rebuilt for clarity under time pressure.

   COLOUR PSYCHOLOGY (one meaning per colour, never reused):
     navy    #0B3B75  governance, official decisions, authority
     sky     #1C7FD4  information, normal actions, cooperation
     amber   #C2620E  urgency, CRA clock, awaiting decision
     green   #2E7D3A  validated, completed, approved
     red     #B3261E  critical, deadline passed, blocked
     violet  #6B4EA0  Legal / Compliance / regulatory
     slate   #64748B  inactive, future, secondary
   ========================================================== */

:root {
  --navy: #0B3B75;
  --navy-d: #072A55;
  --navy-l: #14539E;
  --sky: #1C7FD4;
  --sky-l: #E7F1FB;
  --amber: #C2620E;
  --amber-l: #FDF1E5;
  --green: #2E7D3A;
  --green-l: #E9F5EB;
  --red: #B3261E;
  --red-l: #FCEBEA;
  --violet: #6B4EA0;
  --violet-l: #F1ECF9;
  --slate: #64748B;
  --slate-l: #F1F5F9;

  --ink: #14202B;
  --ink-2: #46586B;
  --line: #DDE5EC;
  --line-2: #EDF2F6;
  --bg: #F6F8FB;
  --surface: #FFFFFF;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --sh-1: 0 1px 2px rgba(11, 59, 117, .06), 0 2px 8px rgba(11, 59, 117, .04);
  --sh-2: 0 4px 16px rgba(11, 59, 117, .10), 0 1px 3px rgba(11, 59, 117, .06);
  --sh-3: 0 18px 48px rgba(7, 42, 85, .22);

  --sidebar: 244px;
  --topbar: 60px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--sky); }
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- LOGIN ---------------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
@media (max-width: 980px) { .login-wrap { grid-template-columns: 1fr; } .login-brand { display: none; } }
.login-brand {
  background: linear-gradient(155deg, var(--navy-d) 0%, var(--navy) 55%, #10498C 100%);
  color: #fff; padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.login-brand::after {
  content: ""; position: absolute; right: -140px; top: -100px; width: 460px; height: 460px;
  border-radius: 50%; background: rgba(255,255,255,.05);
}
.login-brand .tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25);
  padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.login-brand h1 { font-size: 42px; line-height: 1.06; margin: 22px 0 12px; letter-spacing: -.025em; }
.login-brand .sub { font-size: 15px; color: #C3DBF3; max-width: 460px; }
.login-brand .facts { margin-top: 34px; display: grid; gap: 12px; max-width: 470px; position: relative; }
.login-brand .fact { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: #D6E7F7; }
.login-brand .fact b { color: #fff; }
.login-brand .fact i {
  flex: none; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.16);
  display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700;
}
.login-panel { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.login-panel h2 { font-size: 21px; margin-bottom: 4px; }
.login-panel .hint { color: var(--ink-2); font-size: 13px; margin-bottom: 20px; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 9px; margin-bottom: 18px; }
.role-card {
  text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 11px 12px; display: flex; gap: 10px; align-items: flex-start; transition: border-color .14s, box-shadow .14s, transform .14s;
}
.role-card:hover { border-color: var(--sky); box-shadow: var(--sh-1); transform: translateY(-1px); }
.role-card.sel { border-color: var(--navy); background: var(--sky-l); box-shadow: 0 0 0 3px rgba(28,127,212,.15); }
.role-card .av {
  flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
}
.role-card .nm { font-weight: 700; font-size: 13px; }
.role-card .rl { font-size: 11.5px; color: var(--ink-2); line-height: 1.35; }
.role-card.facil .av { background: var(--amber); }
.pin-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.field label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); transition: border-color .14s, box-shadow .14s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(28,127,212,.14);
}
.field textarea { resize: vertical; min-height: 84px; }
.cp-to-groups { max-height: 260px; overflow-y: auto; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 4px 2px; background: var(--surface); }
.cp-to-group { padding: 7px 10px; }
.cp-to-group + .cp-to-group { border-top: 1px solid var(--line-2); }
.cp-to-group-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cp-to-group-h b { font-size: 12.5px; }
.cp-to-group-h .small.muted { font-size: 10.5px; }
.cp-to-opts { display: grid; gap: 2px; padding-left: 22px; }
.cp-to-opt-row { display: flex; align-items: center; gap: 8px; padding: 3px 4px; border-radius: var(--r-sm); font-size: 12.5px; cursor: pointer; }
.cp-to-opt-row:hover { background: var(--line-2); }
.cp-to-opt-row input, .cp-to-group-h input { width: auto; accent-color: var(--sky); }
.btn {
  border: none; border-radius: var(--r-sm); padding: 10px 18px; font-weight: 700; font-size: 13.5px;
  background: var(--navy); color: #fff; transition: filter .14s, box-shadow .14s;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn:hover:not(:disabled) { filter: brightness(1.1); box-shadow: var(--sh-1); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.wide { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--navy); border: 1.5px solid var(--line); }
.btn.ghost:hover:not(:disabled) { border-color: var(--navy); }
.btn.amber { background: var(--amber); }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.violet { background: var(--violet); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; }
.btn.xs { padding: 4px 9px; font-size: 11.5px; border-radius: var(--r-sm); }

/* ---------------- SHELL ---------------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy-d); color: #C9DCF0; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sb-head { padding: 15px 16px 13px; border-bottom: 1px solid rgba(255,255,255,.10); }
.sb-head .ttl { color: #fff; font-weight: 800; font-size: 14.5px; letter-spacing: -.01em; }
.sb-head .st { font-size: 10.5px; color: #8FB4D8; text-transform: uppercase; letter-spacing: .07em; margin-top: 2px; }
.sb-user { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.10); display: flex; gap: 10px; align-items: center; }
.sb-user .av { width: 36px; height: 36px; border-radius: 9px; background: var(--sky); display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 12.5px; flex: none; }
.sb-user .nm { color: #fff; font-weight: 700; font-size: 13px; }
.sb-user .rl { font-size: 11px; color: #9FC2E4; line-height: 1.3; }
.nav { padding: 8px; flex: 1; }
.nav-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: #6F97BF; padding: 12px 10px 5px; font-weight: 700; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm);
  color: #C9DCF0; text-decoration: none; font-size: 13px; font-weight: 600; margin-bottom: 1px;
  border: none; background: none; width: 100%; text-align: left; transition: background .13s, color .13s;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.on { background: var(--sky); color: #fff; }
.nav-item .ic { width: 17px; text-align: center; flex: none; opacity: .95; }
.nav-item .ct {
  margin-left: auto; background: var(--amber); color: #fff; font-size: 10.5px; font-weight: 800;
  padding: 1px 7px; border-radius: 999px; min-width: 19px; text-align: center;
}
.nav-item.on .ct { background: rgba(255,255,255,.28); }
.sb-foot { padding: 10px 14px 14px; border-top: 1px solid rgba(255,255,255,.10); }
.sb-foot .conn { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #8FB4D8; margin-bottom: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.dot.off { background: var(--red); }
.dot.warn { background: var(--amber); }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar); background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 20px; position: sticky; top: 0; z-index: 40;
}
.topbar h2 { font-size: 16px; }
.topbar .crumb { font-size: 11.5px; color: var(--ink-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* CRA clock — always visible, amber = the regulatory pressure */
.clock-chip {
  display: flex; align-items: center; gap: 10px; background: var(--amber-l); border: 1.5px solid var(--amber);
  border-radius: var(--r); padding: 5px 12px;
}
.clock-chip .lb { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--amber); font-weight: 800; }
.clock-chip .vl { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--ink); }
.clock-chip .sep { width: 1px; height: 24px; background: rgba(194,98,14,.3); }
.clock-chip.crit { background: var(--red-l); border-color: var(--red); }
.clock-chip.crit .lb { color: var(--red); }

.phase-chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--sky-l); color: var(--navy);
  border: 1.5px solid var(--sky); border-radius: 999px; padding: 4px 13px; font-size: 12px; font-weight: 700;
}
.content { padding: 20px; flex: 1; min-width: 0; }

/* ---------------- CARDS / GRID ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-h { padding: 13px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
.card-h h3 { font-size: 14px; }
.card-h .sub { font-size: 11.5px; color: var(--ink-2); }
.card-h .right { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.card-b { padding: 16px; }
.card-b.tight { padding: 10px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-main { grid-template-columns: 1fr 340px; align-items: start; }
@media (max-width: 1280px) { .g-main, .g4, .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .g-main, .g4, .g3, .g2 { grid-template-columns: 1fr; } .shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } }

/* ---------------- BADGES ---------------- */
.bdg {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap; border: 1px solid transparent;
}
.bdg-navy   { background: #E8EFF8; color: var(--navy); border-color: #C6D9EE; }
.bdg-sky    { background: var(--sky-l); color: #12609F; border-color: #C3DFF6; }
.bdg-amber  { background: var(--amber-l); color: var(--amber); border-color: #F2D2B0; }
.bdg-green  { background: var(--green-l); color: var(--green); border-color: #BEE0C4; }
.bdg-red    { background: var(--red-l); color: var(--red); border-color: #F3C9C6; }
.bdg-violet { background: var(--violet-l); color: var(--violet); border-color: #D8CDEC; }
.bdg-slate  { background: var(--slate-l); color: var(--slate); border-color: #DCE3EB; }

/* ---------------- PHASE STEPPER ---------------- */
.stepper { display: flex; gap: 6px; }
.step { flex: 1; min-width: 0; }
.step .bar { height: 5px; border-radius: 3px; background: #E2E8F0; margin-bottom: 7px; }
.step.done .bar { background: var(--green); }
.step.now .bar { background: var(--sky); }
.step .nm { font-size: 11px; font-weight: 700; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.done .nm { color: var(--green); }
.step.now .nm { color: var(--navy); }
.step .mt { font-size: 10px; color: var(--slate); }

/* ---------------- GATES ---------------- */
.gate {
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 13px 14px; background: var(--surface);
  display: flex; flex-direction: column; gap: 8px;
}
.gate.pending { border-left: 4px solid var(--slate); }
.gate.open { border-left: 4px solid var(--amber); background: var(--amber-l); }
.gate.awaiting { border-left: 4px solid var(--violet); background: var(--violet-l); }
.gate.decided-yes { border-left: 4px solid var(--green); background: var(--green-l); }
.gate.decided-no { border-left: 4px solid var(--red); background: var(--red-l); }
.gate .gid { font-family: var(--mono); font-weight: 800; font-size: 15px; color: var(--navy); }
.gate .q { font-weight: 700; font-size: 13.5px; }
.gate .meta { font-size: 11.5px; color: var(--ink-2); }
.gate .rat { font-size: 12px; background: rgba(255,255,255,.75); border-radius: var(--r-sm); padding: 7px 9px; border: 1px solid var(--line-2); }

/* ---------------- TASKS ---------------- */
.task { border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; background: var(--surface); display: flex; gap: 11px; align-items: flex-start; }
.task + .task { margin-top: 8px; }
.task.mine { border-left: 4px solid var(--sky); }
.task.done { opacity: .62; border-left: 4px solid var(--green); }
.task.over { border-left: 4px solid var(--red); background: var(--red-l); }
.task .tt { font-weight: 700; font-size: 13px; }
.task .td { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.task .tm { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.task .act { margin-left: auto; display: flex; flex-direction: column; gap: 5px; flex: none; }

/* ---------------- MAIL ---------------- */
.mail-layout { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .mail-layout { grid-template-columns: 1fr; } }
.mail-list { max-height: 620px; overflow-y: auto; }
.mail-item { padding: 10px 13px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; }
.mail-item:hover { background: var(--slate-l); }
.mail-item.on { background: var(--sky-l); border-left: 3px solid var(--sky); }
.mail-item.unread { background: #FFFDF6; }
.mail-item.unread .sj { font-weight: 800; }
.mail-item .fr { font-size: 11.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.mail-item .sj { font-size: 13px; font-weight: 600; margin: 2px 0; }
.mail-item .pv { font-size: 11.5px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-body { white-space: pre-wrap; font-size: 13.5px; line-height: 1.62; }

/* rule explainer — the fix for "email doesn't work" */
.rule-note {
  border-radius: var(--r); padding: 11px 13px; font-size: 12.5px; line-height: 1.5;
  background: var(--violet-l); border: 1.5px solid #D8CDEC; color: #4A3475; display: flex; gap: 10px;
}
.rule-note.blocked { background: var(--red-l); border-color: #F3C9C6; color: #8B1D17; }
.rule-note.ok { background: var(--green-l); border-color: #BEE0C4; color: #1F5B29; }
.rule-note i { font-style: normal; font-weight: 800; flex: none; }
.rule-note b { display: block; margin-bottom: 2px; }

/* ---------------- TICKET ---------------- */
.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tab {
  padding: 9px 13px; border: none; background: none; font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  border-bottom: 2.5px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--navy); }
.tab.on { color: var(--navy); border-bottom-color: var(--sky); }
.kv { display: grid; grid-template-columns: 190px 1fr; gap: 1px; background: var(--line-2); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.kv > div { background: var(--surface); padding: 8px 12px; font-size: 12.5px; }
.kv .k { font-weight: 700; color: var(--ink-2); font-size: 11.5px; }

/* ---------------- CHANNELS ---------------- */
.chan-layout { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .chan-layout { grid-template-columns: 1fr; } }
.msg-scroll { max-height: 480px; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 11px; }
.msg { display: flex; gap: 9px; }
.msg .av { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.msg .bd { flex: 1; min-width: 0; }
.msg .hd { display: flex; gap: 7px; align-items: baseline; }
.msg .au { font-weight: 700; font-size: 12.5px; }
.msg .tm { font-size: 10.5px; color: var(--slate); font-family: var(--mono); }
.msg .tx { font-size: 13px; margin-top: 1px; white-space: pre-wrap; }

/* ---------------- MODAL ---------------- */
.modal-bg { position: fixed; inset: 0; background: rgba(7,42,85,.55); display: grid; place-items: center; z-index: 200; padding: 22px; }
.modal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3); width: min(660px, 100%); max-height: 90vh; display: flex; flex-direction: column; }
.modal.wide { width: min(940px, 100%); }
.modal-h { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; }
.modal-h h3 { font-size: 16px; }
.modal-h .sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.modal-x { margin-left: auto; background: none; border: none; font-size: 22px; color: var(--slate); line-height: 1; padding: 0 4px; }
.modal-b { padding: 18px; overflow-y: auto; display: grid; gap: 13px; }
.modal-f { padding: 13px 18px; border-top: 1px solid var(--line); display: flex; gap: 9px; justify-content: flex-end; }

/* ---------------- TOAST ---------------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 9px; max-width: 380px; }
.toast {
  background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-2); padding: 12px 14px;
  border-left: 4px solid var(--sky); animation: slideIn .22s ease;
}
.toast.urgent { border-left-color: var(--red); }
.toast.attention { border-left-color: var(--amber); }
.toast.success { border-left-color: var(--green); }
.toast .tt { font-weight: 700; font-size: 13px; }
.toast .tb { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }

/* ---------------- MISC ---------------- */
.empty { padding: 34px 20px; text-align: center; color: var(--slate); font-size: 13px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-size: 25px; font-weight: 800; line-height: 1.05; }
.stat .l { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.row { display: flex; gap: 9px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--ink-2); }
.small { font-size: 11.5px; }
.mono { font-family: var(--mono); }
.banner {
  background: var(--navy); color: #fff; padding: 9px 16px; font-size: 12px; display: flex; align-items: center; gap: 10px;
}
.banner .pill { background: rgba(255,255,255,.16); padding: 2px 9px; border-radius: 999px; font-weight: 700; font-size: 11px; }
.timeline-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.timeline-item .tm { font-family: var(--mono); font-size: 11px; color: var(--slate); flex: none; width: 62px; }
.hr { height: 1px; background: var(--line-2); margin: 4px 0; }

/* ---------------- LIVE STATUS BOARD (screen-share) ---------------- */
.board {
  min-height: 100vh; background: linear-gradient(150deg, var(--navy-d, #072A55), var(--navy) 65%);
  color: #fff; padding: 28px clamp(20px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px;
}
.board-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.board-tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 12px;
}
.board-brand h1 { margin: 10px 0 2px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.02em; }
.board-sub { color: #C3DBF3; font-size: 15px; font-weight: 600; }
.board-clock { display: flex; align-items: center; gap: 22px; }
.bc-item { text-align: right; }
.bc-lb { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #9FC2E4; font-weight: 700; }
.bc-vl { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; font-family: var(--mono); }
.bc-vl.crit { color: #FF9B8A; }
.board-clock #board-exit { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }

.board-stepper { display: flex; gap: 10px; }
.bstep { flex: 1; min-width: 0; }
.bstep .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.16); margin-bottom: 8px; }
.bstep.done .bar { background: var(--green); }
.bstep.now .bar { background: #7FD4EE; box-shadow: 0 0 0 3px rgba(127,212,238,.25); }
.bstep .nm { font-size: 13px; font-weight: 700; color: #C3DBF3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bstep.now .nm { color: #fff; }

.board-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 20px; flex: 1; }
.board-side { display: flex; flex-direction: column; gap: 20px; }
.board-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 18px;
}
.board-card-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #9FC2E4; margin-bottom: 12px; }
.board-gates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bgate {
  border-radius: 12px; padding: 12px 13px; background: rgba(255,255,255,.06); border-left: 5px solid rgba(255,255,255,.3);
}
.bgate.pending { border-left-color: rgba(255,255,255,.3); }
.bgate.open { border-left-color: var(--amber); background: rgba(194,98,14,.18); }
.bgate.awaiting { border-left-color: var(--violet); background: rgba(107,78,160,.22); }
.bgate.decided-yes { border-left-color: var(--green); background: rgba(46,125,58,.22); }
.bgate.decided-no { border-left-color: var(--red); background: rgba(179,38,30,.22); }
.bgate-id { font-family: var(--mono); font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.bgate-q { font-size: 12.5px; color: #E4EEF9; margin-bottom: 8px; line-height: 1.35; }
.bgate-s { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #C3DBF3; }
.board-stat {
  font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; padding: 6px 0;
}
.board-stat-red { color: #FF9B8A; }
.board-stat-amber { color: #FDBE7A; }
.board-stat-green { color: #9BE3A8; }
.board-stat-slate { color: #C3DBF3; }
.board-inject { font-size: 13.5px; line-height: 1.5; color: #E4EEF9; }
.board-inject b { font-family: var(--mono); color: #7FD4EE; }
@media (max-width: 900px) {
  .board-grid { grid-template-columns: 1fr; }
  .board-gates { grid-template-columns: repeat(2, 1fr); }
}
