/* Control room: the same warm paper, cards and type as the rest; colour only where it carries meaning. */
:root {
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --s-public: #86b6ef; --s-internal: #3987e5; --s-confidential: #1c5cab; --s-restricted: #0d366b;
  --grid: #eef0f4; --axis: #c9cdd8;
}
.top nav a.here { color: var(--ink); }
.ctl { max-width: 1240px; padding-top: 6px; }
.ctl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 10px 0 14px; }
.ctl-head h1 { font-size: 30px; letter-spacing: -.02em; margin: 0; }
.ctl-head .sub { color: var(--muted); margin: 4px 0 0; }
.ctl-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 13px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg.small button { padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.card-h > .seg { flex: none; }
.link { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.link:hover { color: var(--ink); border-color: var(--ink); }
.modehelp { font-size: 12.5px; color: var(--muted); margin: -4px 0 12px; max-width: 900px; line-height: 1.5; }
.modehelp b { color: var(--ink); font-weight: 500; }
.seeded { font-size: 12.5px; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.seeded b { color: var(--ink); font-weight: 500; }

.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; background: var(--bg); padding: 10px 0 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 8px 14px 8px 10px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.tabs button span { font: 600 11px var(--mono); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); }
.tabs button.on { color: var(--ink); background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tabs button.on span { background: var(--ink); color: var(--on-ink); }
.tab { padding-top: 14px; }

.card { background: var(--card); border-radius: 14px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04); margin-bottom: 16px; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.card h2 { font-size: 16px; margin: 0 0 3px; letter-spacing: -.01em; }
.card-h p { margin: 0; color: var(--muted); font-size: 13px; max-width: 640px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid2 > .card { margin-bottom: 16px; }
h3.section { font-size: 15px; margin: 26px 0 12px; }
h3.section span { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }

/* profile */
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ptiles div { background: var(--soft); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--muted); }
.ptiles b { display: block; font-size: 26px; color: var(--ink); font-weight: 600; letter-spacing: -.02em; }
.ptiles .bad b { color: var(--bad); }
.grid2.tight { gap: 24px; }
.sublabel { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.gmem { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.gmem .s { color: var(--muted); font-size: 12px; }
.gmem .cur { color: var(--good); font-weight: 600; }

/* stewards and actions */
.steward { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.steward b { color: var(--ink); font-weight: 500; }
.verdict .acts label { display: flex; gap: 8px; margin: 6px 0; cursor: pointer; align-items: flex-start; }
.verdict .acts label input { margin-top: 3px; accent-color: var(--ink); }
.verdict .acts label.done span { text-decoration: line-through; color: var(--muted); }
.verdict .acts .by { font-size: 11px; color: var(--muted2); }
.verdict .prog { font-size: 12px; color: var(--muted); }

/* four eyes */
.pend { grid-column: 1 / -1; background: var(--warn-bg); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.pend button { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.pend button.ok { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pend button:disabled { opacity: .45; cursor: default; }

/* hero + tiles */
.hero-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr); gap: 16px; margin-bottom: 16px; }
.hero-row > .card { margin: 0; }
.khero .big { font-size: 64px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: 6px 0 10px; }
.khero .lbl { font-size: 15px; line-height: 1.45; max-width: 360px; }
.khero .note { color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.khero .kicker { font: 500 11px var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.tile { background: var(--card); border-radius: 14px; padding: 18px 18px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer; display: flex; flex-direction: column; border: 1px solid transparent; transition: border-color .15s; }
.tile:hover { border-color: var(--line); }
.tile .t-l { font-size: 13px; color: var(--muted); min-height: 36px; }
.tile .t-v { font-size: 32px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 2px; }
.tile .t-d { font-size: 12.5px; color: var(--muted); }
.tile .t-d b { font-weight: 500; color: var(--ink); }
.tile .t-more { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--muted2); }
.tile svg.spark { width: 100%; height: 30px; margin-top: 8px; }

/* status */
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 2px 8px 2px 6px; border-radius: 6px; white-space: nowrap; background: var(--soft); color: var(--ink); }
.st i { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; font: 700 9px/1 var(--sans); color: #fff; font-style: normal; }
.st.good i, .st.prevented i { background: var(--good); }
.st.warning i { background: var(--warning); color: #3b2a00; }
.st.serious i { background: var(--serious); }
.st.critical i { background: var(--critical); }
.st.reviewed { background: none; color: var(--muted); padding-left: 0; }

/* verdicts */
.verdicts { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 16px; }
.verdict { background: var(--card); border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04); border-top: 4px solid var(--good); display: flex; flex-direction: column; }
.verdict.serious { border-top-color: var(--serious); }
.verdict.critical { border-top-color: var(--critical); }
.verdict.warning { border-top-color: var(--warning); }
.verdict .v-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.verdict h4 { margin: 0; font-size: 17px; }
.verdict .head { font-weight: 500; margin: 4px 0 8px; font-size: 14px; }
.verdict ul { margin: 0 0 10px; padding-left: 18px; color: var(--ink2); font-size: 13.5px; }
.verdict .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 12px; }
.verdict .nums div { background: var(--soft); border-radius: 8px; padding: 7px 9px; }
.verdict .nums b { display: block; font-size: 17px; }
.verdict .nums span { font-size: 11px; color: var(--muted); }
.verdict .acts { font-size: 13px; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.verdict .acts div { display: flex; gap: 8px; margin: 5px 0; }
.verdict .acts div::before { content: "→"; color: var(--muted); }
.verdict .foot-l { margin-top: 10px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tip { position: fixed; z-index: 30; pointer-events: none; background: var(--ink); color: var(--on-ink); font-size: 12px; padding: 8px 10px; border-radius: 8px; max-width: 280px; line-height: 1.45; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.tip b { font-weight: 600; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); }
table.t td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line2); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12.5px; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--tint); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.chip { display: inline-block; font: 500 11px var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip.warn { border-color: var(--serious); color: var(--t-serious); }
.lab { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.lab i { width: 9px; height: 9px; border-radius: 2px; }

/* decided bar */
.dbar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; gap: 2px; }
.dbar div { height: 100%; min-width: 2px; cursor: pointer; }
.dbar div:first-child { border-radius: 8px 0 0 8px; }
.dbar div:last-child { border-radius: 0 8px 8px 0; }
.dlegend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.dlegend div { font-size: 12.5px; color: var(--muted); }
.dlegend b { display: block; color: var(--ink); font-size: 20px; font-weight: 600; }
.dlegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* lists */
.list .row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.list .row:last-child { border-bottom: 0; }
.list .row:hover { background: var(--tint); }
.list .row .q { font-size: 13.5px; }
.list .row .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list.scroll { max-height: 440px; overflow: auto; }
.empty { color: var(--muted); font-size: 13px; padding: 16px 4px; }

/* policies */
.pol { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 150px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.pol:last-child { border-bottom: 0; }
.pol .id { font: 600 12px var(--mono); }
.pol .nm { font-weight: 500; font-size: 14px; }
.pol .why { font-size: 12.5px; color: var(--muted); }
.pol .cnt { font-size: 12px; color: var(--muted); text-align: right; }
.pol .cnt b { color: var(--ink); font-weight: 500; }
.pol .seg button.on[data-m="block"] { background: var(--ink); color: var(--on-ink); }
.pol .chg { font-size: 11.5px; color: var(--muted2); margin-top: 2px; }

/* matrix */
.mx { display: grid; gap: 3px; font-size: 11.5px; }
.mx .h { color: var(--muted); text-align: center; align-self: end; padding-bottom: 4px; writing-mode: horizontal-tb; }
.mx .rh { color: var(--muted); align-self: center; padding-right: 6px; text-align: right; }
.mx .c { height: 34px; border-radius: 5px; display: grid; place-items: center; font: 500 11px var(--mono); cursor: pointer; position: relative; }
.mx .c:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.mx .c .w { position: absolute; top: 3px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 1.5px var(--card); }

/* dial */
.dial-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; }
.sl { margin-bottom: 16px; }
.sl .sl-h { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.sl .sl-h b { font-family: var(--mono); font-weight: 500; }
.sl .sl-h span { color: var(--muted); font-size: 12px; }
.sl input { width: 100%; accent-color: var(--ink); }
.dial-out .big { font-size: 44px; font-weight: 600; letter-spacing: -.02em; }
.dial-out .lbl { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.flip { font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.flip .arrow { color: var(--muted); }
.flip .bad { color: var(--bad); }

/* channels */
.chan { display: grid; grid-template-columns: 190px minmax(0, 1fr) 70px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.chan:last-child { border-bottom: 0; }
.chan .nm { font-weight: 500; font-size: 13.5px; }
.chan .md { font-size: 11.5px; color: var(--muted); }
.sbar { display: flex; height: 16px; border-radius: 4px; overflow: hidden; gap: 2px; }
.sbar div { height: 100%; }

/* watches */
.watch { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.watch .s { color: var(--muted); font-size: 12px; }
.wform { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.wform select { font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }

/* proof */
.chain .ok { display: flex; align-items: center; gap: 14px; }
.chain .seal { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--good-bg); color: var(--good); font-size: 26px; flex: none; }
.chain .seal.bad { background: var(--bad-bg); color: var(--critical); }
.chain h2 { margin: 0; }
.chain .hash { font: 12px var(--mono); color: var(--muted); word-break: break-all; margin-top: 10px; }
.chain .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.chain .facts div { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.chain .facts b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; }
.ex { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.ex:last-child { border-bottom: 0; }
.ex .s { color: var(--muted); font-size: 12.5px; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 20; background: var(--scrim); }
.drawer-in { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--bg); overflow: auto; padding: 26px 28px; box-shadow: -20px 0 50px rgba(0,0,0,.18); animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: .4; } }
.drawer-in h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.01em; }
.drawer-in .x { float: right; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }
.drawer-in .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.drawer-in .card { padding: 16px 18px; }
.drawer-in textarea { width: 100%; min-height: 70px; font: inherit; font-size: 13.5px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; resize: vertical; }
.drawer-in .paras p { font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; }
.rlist .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.rlist .r a { text-decoration: none; }
.rlist .r a:hover { text-decoration: underline; }
.rlist .r .s { color: var(--muted); font-size: 12px; }

@media (max-width: 1000px) {
  .ptiles { grid-template-columns: repeat(2, 1fr); }
  .hero-row, .grid2, .dial-body { grid-template-columns: 1fr; }
  .tiles.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .top nav { gap: 14px; }

  .card { overflow-x: auto; }
  .tiles { grid-template-columns: 1fr; }
  .tiles.four { grid-template-columns: 1fr 1fr; }
  .pol { grid-template-columns: 1fr; gap: 6px; }
  .chan { grid-template-columns: 1fr; }
  .dlegend { grid-template-columns: 1fr 1fr; }
  .verdicts { grid-template-columns: 1fr; }
}
@media print { .tabs, .ctl-tools, .top nav { display: none; } }

/* Level 1: three questions, three answers */
.answers3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 16px; }
.acard { background: var(--card); border-radius: 16px; padding: 22px 24px 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04); border-top: 4px solid var(--good); cursor: pointer; display: flex; flex-direction: column; }
.acard.warning, .acard.serious { border-top-color: var(--warning); }
.acard.critical { border-top-color: var(--critical); }
.acard .aq { font-size: 14px; font-weight: 500; display: flex; gap: 8px; align-items: center; min-height: 40px; }
.acard .abig { font-size: 46px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: 12px 0 4px; }
.acard .aunit { font-size: 13px; color: var(--muted); }
.acard p { font-size: 14px; line-height: 1.5; color: var(--ink2); margin: 14px 0 12px; flex: 1; }
.acard .link { align-self: flex-start; }
.ch-n { font: 600 12px var(--mono); width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.ch-n.small { width: 20px; height: 20px; font-size: 11px; }
.todo .row .btn.small { padding: 5px 11px; font-size: 12.5px; }

/* Level 2: one chapter per question */
.chapter { margin-top: 34px; }
.ch-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.ch-head h2 { font-size: 20px; letter-spacing: -.015em; margin: 0 0 4px; }
.ch-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 820px; }
.ch-foot { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 10px; }
.ch-foot b { color: var(--ink); font-weight: 500; }
.chev { color: var(--muted); font-size: 18px; }
.pcheck { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.pcheck .s { color: var(--muted); font-size: 12.5px; }
.pcheck .st { background: none; padding: 0; }

/* Level 3: details, closed until asked for */
details.more { margin-top: 4px; }
details.more > summary { list-style: none; cursor: pointer; color: var(--muted); font-size: 13.5px; padding: 10px 2px; display: inline-flex; gap: 8px; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; font: 600 14px var(--mono); width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); }
details.more[open] > summary::before { content: "−"; }
details.more > summary:hover { color: var(--ink); }
details.more[open] { padding-top: 6px; }
.verdicts.one { display: block; }
.verdicts.one .verdict { box-shadow: none; }

@media (max-width: 1000px) { .answers3 { grid-template-columns: 1fr; } }

.eyebrow { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.acard .eyebrow { margin-bottom: 8px; }
.acard .aq { min-height: 0; }


/* ---- Alignment with the Aspected demos: lines instead of shadows, 6px corners, one brand blue ---- */
.ctl { max-width: 1180px; padding-top: 8px; }
.ctl-head { align-items: flex-end; margin: 40px 0 20px; }
.ctl-head h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; margin: 10px 0 8px; }
.ctl-head .sub { font-size: 16px; color: var(--ink2); margin: 0; }
.seg { background: var(--soft); border-radius: 6px; padding: 3px; }
.seg button { border-radius: 4px; color: var(--ink2); font-size: 13px; font-weight: 600; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seeded { background: var(--soft); border-radius: 6px; color: var(--ink2); font-size: 13px; }
.card, .tile, .verdict, .acard { box-shadow: none; border: 1px solid var(--line); border-radius: 6px; }
.card h2 { font-size: 17px; }
.card-h p { color: var(--ink2); font-size: 14px; }
.acard { border-top: 4px solid var(--good); }
.acard.warning, .acard.serious { border-top-color: var(--warning); }
.acard.critical { border-top-color: var(--critical); }
.acard .eyebrow { color: var(--brand-text); }
.acard .aq { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.acard .abig { font-size: 48px; font-weight: 700; }
.acard p { color: var(--ink2); font-size: 15px; }
.acard:hover { border-color: var(--ink2); }
.verdict { border-top-width: 4px; }
.verdict .nums div, .ptiles div, .chain .facts div { background: var(--soft); border-radius: 4px; }
.ch-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.ch-head p { font-size: 15px; color: var(--ink2); }
.ch-n { background: var(--brand); }
.chapter { margin-top: 48px; }
.eyebrow { color: var(--brand-text); font: 600 12px var(--sans); letter-spacing: .12em; }
details.more > summary { color: var(--brand-text); font-weight: 600; font-size: 14px; }
details.more > summary::before { border-color: var(--brand-text); color: var(--brand-text); }
details.more > summary:hover { color: var(--brand2); }
.list .row:hover, table.t tr.click:hover td { background: var(--tint); }
.list .row { border-bottom-color: var(--line2); }
table.t th { color: var(--muted); font-weight: 600; letter-spacing: .08em; }
table.t td { border-bottom-color: var(--line2); }
.st { background: var(--soft); border-radius: 3px; font-weight: 600; }
.chip { border-radius: 3px; font-family: var(--sans); font-weight: 600; font-size: 11.5px; }
.chip.dark { background: var(--ink); }
.drawer { background: var(--scrim); }
.drawer-in { background: var(--card); border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(11,20,48,.14); }
.drawer-in .card { background: var(--soft); border: 0; }
.tip { background: var(--ink); border-radius: 4px; }
.pend { background: var(--warn-bg); border-radius: 4px; }
.pend button { border-radius: 4px; }
.pend button.ok { background: var(--brand); border-color: var(--brand); }
.verdict .acts label input, .sl input { accent-color: var(--brand); }
.chain .seal { background: var(--good-bg); }
.mx .c { border-radius: 3px; }
.wform select { border-radius: 4px; }
.link { color: var(--brand-text); border-bottom: 0; font-weight: 600; }
.link:hover { color: var(--brand2); }
.todo .row .btn.small { height: 30px; padding: 0 12px; font-size: 13px; border-color: var(--line); color: var(--ink2); }
.todo .row .btn.small:hover { border-color: var(--ink); color: var(--ink); background: var(--card); }

table.t th.n { font-family: var(--sans); font-size: 11.5px; }

/* A sentence under a big number reads as a sentence, not as an uppercase label. */
.khero .lbl, .dial-out .lbl { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink2); }
.khero .lbl b { font-weight: 600; color: var(--ink); }

/* EU AI Act additions: alert rules, suspensions, overrides, retrieval test, configuration versions, ingestion */
.arule { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.arule .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.arule .s b.bad { color: var(--bad); }
.arule .ar { display: flex; align-items: center; gap: 10px; }
.aspark { width: 110px; height: 30px; }
.st.override { color: var(--brand-text); }
.st.override i { background: var(--brand); }
.s.why { color: var(--ink2); font-style: italic; }
.dtest { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.dtest .s { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tsum { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 18px; margin-bottom: 14px; align-items: end; }
.tsum .big { font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.tsum .big span { font-size: 16px; color: var(--muted); font-weight: 500; }
.tsum .big.bad { color: var(--bad); }
.tsum .big.muted2 { color: var(--muted); }
.tsum .lbl { font-size: 12.5px; color: var(--muted); }
.tsum .lbl b { color: var(--ink); font-weight: 600; }
.tsum .decl { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ing-sum { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
tr.odd td { background: var(--warn-bg); }
.card.ing.odd { border: 1px solid var(--serious); }
@media (max-width: 760px) { .tsum { grid-template-columns: 1fr; } .arule { grid-template-columns: 1fr; } }
.tsum .lbl { text-transform: none; letter-spacing: 0; font-weight: 400; }
#tests td.mono, #tests td.n, #configs .chip, #ingestion td:first-child { white-space: nowrap; }

/* ---- Phone: one column, summary first, lists instead of tiles, 44px targets ---- */
@media (max-width: 760px) {
  .ctl { padding: 0 var(--sp4); }
  .ctl-head { margin: var(--sp5) 0 var(--sp4); gap: var(--sp4); }
  .ctl-head h1 { font-size: var(--fs-xxl); }
  .ctl-head .sub { font-size: var(--fs-s); }
  .ctl-tools { width: 100%; gap: var(--sp2); }
  .ctl-tools #reportBtn { display: none; }          /* the board is stage 4 in the bottom bar */
  #period { display: flex; width: 100%; }
  #period button, .seg button { flex: 1; min-height: var(--tap); }
  .seg.small button { min-height: 40px; }
  #exportBtn { width: 100%; justify-content: center; }
  .card { padding: var(--sp4); border-radius: 6px; }
  .ch-head h2 { font-size: var(--fs-xl); }
  .ch-head p { font-size: var(--fs-s); }
  .chapter { margin-top: var(--sp6); }
  details.more > summary { min-height: var(--tap); }
  /* The three questions: a compact list, the whole row taps through. */
  .answers3 { display: block; margin: 0 0 var(--sp4); border-top: 1px solid var(--line); }
  .acard { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp3); align-items: center; border-radius: 0; box-shadow: none;
    background: transparent; border-top: 0; border-bottom: 1px solid var(--line); border-left: 4px solid var(--good); padding: var(--sp3) var(--sp3); }
  .acard.warning, .acard.serious { border-left-color: var(--warning); }
  .acard.critical { border-left-color: var(--critical); }
  .acard .eyebrow { grid-column: 1; margin: 0; }
  .acard .aq { grid-column: 1; font-size: var(--fs-m); }
  .acard .abig { grid-column: 2; grid-row: 1 / span 3; font-size: var(--fs-xxl); margin: 0; }
  .acard .aunit { grid-column: 1; font-size: var(--fs-xs); }
  .acard p, .acard .link { display: none; }
  /* Tiles become rows: label left, number right. */
  .tiles, .tiles.four { display: block; }
  .tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp3); border-radius: 0; box-shadow: none; background: transparent;
    border: 0; border-bottom: 1px solid var(--line2); padding: var(--sp3) 0; }
  .tile .t-l { min-height: 0; grid-column: 1; color: var(--ink); font-size: var(--fs-s); }
  .tile .t-v { grid-column: 2; grid-row: 1 / span 2; font-size: var(--fs-xl); margin: 0; align-self: center; }
  .tile .t-d { grid-column: 1; font-size: var(--fs-xs); }
  .tile .t-more, .tile svg.spark { display: none; }
  /* Tables keep their key columns; the rest is in the drawer one tap away. */
  table.t th.opt, table.t td.opt { display: none; }
  table.t th, table.t td { padding: var(--sp2) 6px; }
  .wform { flex-direction: column; align-items: stretch; }
  .wform select, .wform input, .wform .btn { width: 100% !important; max-width: 100%; min-height: var(--tap); }
  .wform > span { display: none; }
  .list .row { min-height: var(--tap); padding: var(--sp3) var(--sp1); }
  .todo .row .btn.small { display: none; }          /* the row itself is the button */
  .pend { flex-direction: column; align-items: stretch; }
  .pend button { min-height: var(--tap); flex: 1; }
  .drawer-in { padding: var(--sp4); }
  .drawer-in .x { width: var(--tap); height: var(--tap); }
  .arule .ar { justify-content: space-between; }
  .ex { flex-direction: column; align-items: stretch; gap: var(--sp2); }
  .ex .btn { justify-content: center; }
}

/* ---- EU AI Act, first in the control room: status header, obligations, evidence one tap away ---- */
.act { border: 1px solid var(--line); border-radius: 6px; background: var(--card); padding: var(--sp4) var(--sp5); margin: 0 0 var(--sp5); }
.act-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp5); flex-wrap: wrap; margin-bottom: var(--sp3); }
.act-head h2 { font-size: var(--fs-l); margin: 0; letter-spacing: -.01em; }
.act-stats { display: flex; gap: var(--sp5); }
.act-stats > div { font-size: var(--fs-xs); color: var(--muted); max-width: 150px; line-height: 1.35; }
.act-stats b { display: block; font-size: var(--fs-xl); font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.act-stats b span { font-size: var(--fs-s); color: var(--muted); font-weight: 500; }
.act-stats .bad b { color: var(--t-serious); }
.act-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp5); border-top: 1px solid var(--line2); }
.act-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: var(--sp3); align-items: center; text-align: left; width: 100%;
  font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line2); padding: var(--sp2) var(--sp1); cursor: pointer; min-height: 40px; }
.act-row:hover { background: var(--tint); }
.act-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.act-row.warning .dot { background: var(--warning); }
.act-row.critical .dot { background: var(--critical); }
.act-row .ob { display: flex; flex-direction: column; min-width: 0; }
.act-row .ob b { font-size: var(--fs-s); font-weight: 500; }
.act-row .ob span { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-row .act-n { font: 600 var(--fs-s) var(--mono); text-align: right; white-space: nowrap; }
.act-row .act-n span { display: block; font: 500 11px var(--sans); color: var(--muted); }
.act-note { font-size: var(--fs-xs); color: var(--muted); margin: var(--sp3) 0 0; }
.ev-list a.ev-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp3); align-items: center; text-decoration: none; color: inherit; min-height: var(--tap); }
.ev-list a.ev-item:hover { background: var(--tint); }
@media (max-width: 900px) { .act-list { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .act { padding: var(--sp4); margin-top: var(--sp2); }
  .act-stats { width: 100%; justify-content: space-between; gap: var(--sp3); }
  .act-row { min-height: var(--tap); padding: var(--sp3) var(--sp1); }
}
.act-row { min-height: 36px; padding: 6px var(--sp1); }
.act-row .ob { flex-direction: row; align-items: baseline; gap: var(--sp2); }
.act-row .ob b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.act-row .ob span { flex: 1 1 0; }
.act-stats .key { display: flex; gap: var(--sp3); align-items: center; }
@media (max-width: 760px) { .act-row .ob { flex-direction: column; gap: 0; } .act-row .ob b { white-space: normal; } }
