@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
:root {
  --bg: #FAFAFA; --surface: #FFFFFF; --ink: #14171F; --muted: #5B6270; --line: #E4E2DA; --line-strong: #CFCCC2;
  --accent: #6D28D9; --accent-hi: #5B21B6; --accent-soft: #EEE8FB;
  --ok: #047857; --ok-soft: #C9EAD9; --bad: #B91C1C; --bad-soft: #F5CACA; --warn: #B45309;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 1px rgba(20,23,31,.025), 0 1px 3px rgba(20,23,31,.02);
  --t-bad: #FCF1F0; --t-bad-line: #F3D6D3; --t-warn: #FDF5E9; --t-warn-line: #F3E0BF;
  --t-neutral: #F1F0EB; --t-accent: #F4F0FD; --t-accent-line: #E1D8F7; --t-ok: #EDF7F2; --t-ok-line: #CFE9DB;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; text-rendering: optimizeLegibility; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2 { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); } h2 { font-size: 1.15rem; }
p { margin: 0 0 16px; }
.mono { font-family: var(--mono); font-weight: 600; }
.muted { color: var(--muted); } .fine { color: var(--muted); font-size: .85rem; margin-top: 56px; }
.crim { color: var(--bad); } .emer { color: var(--ok); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.pad { padding: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* header: wordmark left, quiet underline tabs right */
.top { max-width: 1300px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: clamp(16px, 2.6vh, 36px) 32px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.mark { background: var(--ink); color: #fff; border-radius: 4px; padding: 3px 8px; font-family: var(--mono); font-size: .8rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 32px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 6px 0; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }
main { max-width: 1300px; margin: 0 auto; padding: clamp(24px, 3.8vh, 56px) 32px 144px; }
main:focus { outline: none; }

/* home */
.hero { margin: 24px 0 88px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 56px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero-art { width: 100%; height: auto; display: block; }
.eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.2rem, 6.5vw, 3.6rem); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 32px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.steps { list-style: none; padding: 0; margin: 0 0 96px; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.step { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: start; align-content: start; padding: 32px 30px; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); }
.sn { color: var(--muted); font-size: .8rem; } .step strong { font-size: 1.05rem; letter-spacing: -.01em; }
.pts { font-size: .75rem; color: var(--accent-hi); }
.step p { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
.sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 28px; margin-bottom: 32px; }
.sechead h2 { font-size: 1.4rem; margin: 0; }
.check { display: flex; gap: 14px; align-items: center; margin: 0; color: var(--muted); font-size: .9rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.grid { display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--surface); border: 0; border-radius: 6px; padding: 36px 40px; box-shadow: var(--shadow); }
.cart { display: grid; grid-template-columns: 112px 1fr auto; grid-template-areas: "art chips btn" "art title btn" "art meta btn"; column-gap: 32px; align-items: center; align-content: center; row-gap: 0; padding: 30px 36px; }
.cart .row { grid-area: chips; margin: 32px 0; gap: 12px; }
.cart h2 { grid-area: title; margin: 0; }
.cart p { grid-area: meta; margin: 8px 0 0; font-size: .92rem; }
.cart .btn { grid-area: btn; min-height: 46px; padding: 0 28px; }
.cart.sev-critical { background: var(--t-bad); }
.cart.sev-high { background: var(--t-warn); }
.cart.sev-medium { background: var(--t-accent); }
.cart.sev-low { background: var(--t-ok); }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 24px 0; }
.chip { display: inline-block; font-size: .72rem; font-weight: 500; padding: 0; background: none; border-radius: 0; color: var(--accent-hi); text-transform: uppercase; letter-spacing: .1em; }
.chip.sev { color: var(--muted); }
.chip + .chip::before { content: "\00b7"; margin-right: 8px; color: var(--muted); }

.btn { font: inherit; font-size: .9rem; font-weight: 600; letter-spacing: .01em; line-height: 1; min-height: 42px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 4px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: none; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.link { background: none; border: 0; color: var(--accent-hi); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* drill: a focused stage */
.strip { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: clamp(12px, 2.5vh, 20px); max-width: 720px; margin-left: auto; margin-right: auto; }
.strip .mono { font-size: .9rem; }
.strip .quit { margin-left: auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 4px; color: var(--muted); cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.strip .quit:hover { background: var(--ink); color: #fff; }
.bar { height: 6px; background: #E4E4E4; border-radius: 2px; overflow: hidden; margin: 0 auto 28px; max-width: 720px; }
.bar.big { height: 12px; margin: 0; flex: 1; max-width: none; }
.fill { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.live-fill { background: var(--bad); }
main > .scenario, main > .opts, main > .clock, main > .fb { max-width: 720px; margin-left: auto; margin-right: auto; }
.clock { display: flex; align-items: center; gap: 20px; margin-top: 16px; margin-bottom: 18px; margin: clamp(16px, 2.6vh, 32px) 0 clamp(14px, 2.4vh, 32px); }
.secs { min-width: 3.6em; text-align: right; font-size: 1.6rem; color: var(--ink); }
body.urgent .secs { color: var(--bad); }

.scenario { margin-bottom: clamp(16px, 3vh, 36px); font-size: 1.3rem; line-height: 1.55; font-weight: 500; background: var(--t-accent); padding: clamp(20px, 3.6vh, 40px) 44px; }
.scenario p { margin: 0; }
.scenario.hot { background: var(--t-bad); }
.tag { display: block; font-size: .72rem; font-weight: 500; color: var(--accent-hi); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.tag.crim { color: var(--bad); }
main > .q { max-width: 720px; margin: clamp(18px, 3.6vh, 48px) auto clamp(12px, 2vh, 22px); font-size: 1.05rem; color: var(--muted); font-weight: 700; }
.opts { display: grid; gap: clamp(10px, 1.8vh, 16px); }
.opt { display: flex; gap: 20px; align-items: flex-start; text-align: left; width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--surface); border: 0; border-radius: 6px; padding: clamp(15px, 2.7vh, 24px) 28px; cursor: pointer; box-shadow: var(--shadow); }
.opt:hover:not(:disabled) { background: var(--t-accent); }
.opt:disabled { cursor: default; box-shadow: none; }
.opt kbd { font-family: var(--mono); font-weight: 600; font-size: .9rem; color: var(--muted); background: none; border: 0; border-radius: 0; padding: 0; min-width: 1ch; flex: none; margin-top: 3px; }
.otxt { display: flex; flex-direction: column; gap: 6px; }
.otxt strong { font-weight: 700; } .otxt small { color: var(--muted); font-size: .92rem; }
.opt.right { background: var(--ok-soft); box-shadow: none; }
.opt.wrong { background: var(--bad-soft); box-shadow: none; }
.opt.right .otxt strong, .opt.wrong .otxt strong { font-weight: 700; }
.opt.right, .opt.wrong { font-weight: 600; }
.opt .ind { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 14px; flex: none; }
.opt .you { font-family: var(--mono); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.opt.right .ind svg { color: var(--ok); } .opt.wrong .ind svg { color: var(--bad); }
.opt { transition: background-color .2s ease, transform .08s ease, box-shadow .15s ease; }
.fb { margin-top: clamp(16px, 3vh, 36px); border-radius: 6px; padding: clamp(16px, 2.4vh, 26px) 32px; border: 0; background: var(--surface); box-shadow: var(--shadow); }
.fb.ok { background: var(--t-ok); } .fb.bad { background: var(--t-bad); }
.fb strong { display: block; margin-bottom: 8px; }
.fb.ok strong { color: var(--ok); } .fb.bad strong { color: var(--bad); }

/* report */
.score { font-size: 1.6rem; margin: 8px 0 28px; }
.honest { padding: 22px 28px; background: var(--t-accent); border: 0; border-radius: 6px; max-width: 720px; }
.tiles { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 36px 0 64px; }
.tile { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 0; border-radius: 6px; padding: 32px 30px; box-shadow: var(--shadow); }
.tname { font-size: .8rem; font-weight: 700; color: var(--muted); } .tval { font-size: 2rem; line-height: 1.1; } .tdef { font-size: .85rem; color: var(--muted); }
.rvs { list-style: none; padding: 0; display: grid; gap: 20px; margin: 28px 0 56px; }
.rv { display: flex; flex-direction: column; gap: 8px; padding: 28px 32px; background: var(--t-ok); border-radius: 6px; border: 0; box-shadow: var(--shadow); }
.rv.bad { background: var(--t-bad); }

/* history, drill library, about */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 32px 0; background: var(--surface); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.tbl th, .tbl td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
textarea { width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 24px; font: .85rem/1.45 var(--mono); }
.out { margin: 16px 0 32px; } .out ul { padding-left: 20px; } .warn { color: var(--warn); }
.imp { list-style: none; padding: 0; } .imp li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
main > h1 + .card.prose { margin-top: 48px; }
.card.prose { max-width: 820px; padding: 72px 80px 80px; line-height: 1.75; }
.prose > p { margin: 0 0 24px; max-width: 38em; }
.prose h2 { margin: 72px 0 20px; font-size: 1.25rem; }
.prose > p:first-child { margin-top: 0; }
.prose dl { margin: 0; }
.prose dt { font-weight: 700; margin-top: 40px; }
.prose dd { margin: 12px 0 0; color: var(--muted); max-width: 38em; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 4px; z-index: 20; box-shadow: var(--shadow); }

@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  body { font-size: 16px; }
  main { padding: 28px 24px 112px; } .top { padding: 20px 24px 0; }
  .hero { margin-bottom: 48px; }
  .steps { grid-template-columns: 1fr; gap: 12px; margin-bottom: 56px; }
  .step { grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px; padding: 20px 22px; } .step p { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 24px; width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; } .tab { white-space: nowrap; flex: none; }
  .cart { grid-template-columns: 1fr; grid-template-areas: "chips" "title" "meta" "btn"; padding: 26px 24px; }
  .cart .btn { margin-top: 24px; width: 100%; }
  .card, .card.prose { padding: 36px 28px 44px; } .prose h2 { margin-top: 56px; }
  .card { padding: 28px 24px; } .tile, .tile.big { padding: 26px 24px; } .rv { padding: 22px 24px; }
  .scenario { font-size: 1.05rem; line-height: 1.5; padding: 18px 20px; margin-bottom: 14px; }
  .opt { padding: 14px 16px; gap: 14px; font-size: 1rem; }
  .opts { gap: 8px; } .fb { margin-top: 16px; padding: 18px 20px; }
  main > .q { margin: 18px auto 10px; }
  .clock { margin: 14px 0 12px; } .secs { font-size: 2rem; min-width: 2.6em; }
  .tbl { font-size: .8rem; } .tbl th, .tbl td { padding: 12px 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* round 2 polish */
body { transition: background-color .4s ease; }
body.urgent { background: #FBEAE8; }
.pips { display: flex; gap: 20px; max-width: 720px; margin: 0 auto clamp(18px, 3.4vh, 56px); }
.pgroup { display: flex; gap: 4px; flex: 1; }
.pip { flex: 1; height: 6px; border-radius: 2px; background: #E4E4E4; }
.pip.done { background: var(--ink); } .pip.now { background: var(--accent); }
.fill { background: var(--ink); } .live-fill { background: var(--ok); transition: background-color .3s; }
.live-fill.amber { background: var(--warn); } .live-fill.red { background: var(--bad); }
.secs { font-size: 2.4rem; line-height: 1; }
.opt { transition: transform .08s ease, border-color .15s ease, box-shadow .15s ease; }
.opt:active:not(:disabled) { transform: scale(.992); }
.opt:hover:not(:disabled) { box-shadow: 0 1px 3px rgba(20,23,31,.05); }
.btn { transition: background-color .12s ease, color .12s ease, border-color .12s ease, transform .06s ease; }
.btn:active { transform: translateY(1px); }
.fb strong { font-family: var(--mono); font-size: 1.15rem; }
.hero .score { margin-top: 0; }
.tiles.lead { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 24px; }
.tile.big { padding: 40px 34px; }
.tile.big:first-child { background: var(--t-accent); }
.tile.big .tval { font-size: 3rem; letter-spacing: -.02em; }
.tiles:not(.lead) .tval { font-size: 1.5rem; }

@media (max-width: 560px) { .pips { margin-bottom: 20px; gap: 12px; } }

.cart-art { grid-area: art; width: 112px; height: 112px; display: block; align-self: center; }
.empty { text-align: center; padding: 48px 0 24px; } .empty-art { width: 220px; height: auto; margin-bottom: 24px; }
.empty .muted { margin-bottom: 28px; }
.report-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; gap: 24px; } .hero:not(.report-hero) .hero-art { display: none; } .hero-art { max-width: 300px; } .report-hero .hero-art { max-width: 200px; order: -1; } }
@media (max-width: 560px) { .cart { grid-template-columns: 1fr; grid-template-areas: "art" "chips" "title" "meta" "btn"; } .cart-art { width: 88px; height: 88px; margin-bottom: 0; align-self: start; } .hero-art { display: none; } .report-hero .hero-art { display: block; max-width: 140px; } }

.nw { white-space: nowrap; }

/* ---- roles ---- */
.brandrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.rolechip { display: inline-flex; align-items: center; gap: 12px; font: inherit; font-size: .85rem; font-weight: 500; color: var(--ink); background: var(--surface); border: 0; border-radius: 4px; padding: 7px 12px; cursor: pointer; box-shadow: var(--shadow); }
.rolechip .chg { color: var(--accent-hi); font-weight: 600; }
.rolechip:hover { background: var(--t-accent); }
.hero-single { grid-template-columns: 1fr; }
.hero-single .hero-copy { max-width: 680px; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; }
.role { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 36px 32px; }
.role h2 { margin: 8px 0 0; font-size: 1.25rem; } .role .muted { flex: 1; margin-bottom: 24px; }
.role .sn { font-size: .85rem; }

/* ---- add a cartridge (teller) ---- */




.imp .acts { display: inline-flex; gap: 20px; }

/* ---- compliance dashboard ---- */
.cohortbox { padding: 36px 40px; margin-bottom: 40px; }
.cohortbox h2 { margin-bottom: 8px; }
.cohortbox .row { margin: 24px 0 16px; }
.cohortbox input[type=file] { font: inherit; font-size: .9rem; }
.cohortbox input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: .9rem; min-height: 42px; padding: 0 20px; margin-right: 16px; border-radius: 4px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.cohortbox input[type=file]::file-selector-button:hover { background: var(--ink); color: #fff; }
label.btn { cursor: pointer; }
.msgs { list-style: none; padding: 0; margin: 8px 0 0; color: var(--muted); font-size: .92rem; } .msgs li { margin-bottom: 4px; }
.honest.warn { background: var(--t-bad); max-width: none; margin-bottom: 40px; }
.secttl { font-size: 1.4rem; margin: 64px 0 20px; }
.radarbox { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 40px; }
.radar { width: 100%; height: auto; display: block; }
.r-ring { fill: none; stroke: #E0E0E0; stroke-width: 1; } .r-axis { stroke: #E0E0E0; stroke-width: 1; }
.r-area { fill: rgba(109, 40, 217, .16); stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.r-dot { fill: var(--accent); } .r-label { font-family: var(--mono); font-weight: 600; font-size: 15px; fill: var(--ink); }
.scores { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.scores li { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: baseline; }
.sname { font-weight: 600; } .sval { font-size: 1.5rem; } .sdef { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.tbl-wrap { overflow-x: auto; margin: 24px 0 40px; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); }
.tbl-wrap .tbl { margin: 0; box-shadow: none; border-radius: 0; min-width: 640px; }
.tbl td { vertical-align: top; }
.cellstack { display: flex; flex-direction: column; gap: 6px; }
.cellstack small { font-size: .85rem; line-height: 1.5; }
.method { margin-top: 56px; } .method p { color: var(--muted); }
.noprint { }

@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } .radarbox { grid-template-columns: 1fr; gap: 32px; } .radar { max-width: 340px; } }
@media (max-width: 560px) { .cohortbox { padding: 28px 24px; } .role { padding: 28px 24px; } .secttl { margin-top: 48px; } .imp li { flex-direction: column; gap: 8px; } }

/* ---- print: the dashboard as an audit document ---- */
@media print {
  body { background: #fff; font-size: 12pt; } body::before { display: none; }
  .top, .noprint, .cohortbox, .skip, .toast, #live { display: none !important; }
  main { padding: 0; max-width: none; }
  .tile, .tbl-wrap, .card, .radarbox { box-shadow: none; break-inside: avoid; }
  .tbl-wrap { overflow: visible; } .tbl-wrap .tbl { min-width: 0; }
  .secttl { margin-top: 28pt; }
  h1, h2, .secttl, .eyebrow { break-after: avoid; }
  .tbl tr, .scard, .tile { break-inside: avoid; }
  .tbl thead { display: table-header-group; }
}

/* ---- radar section, round 2 ---- */
.radarbox { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; }
.radar { max-width: 400px; }
.r-ring { stroke: #E6E6E6; } .r-ring.outer { stroke: #D4D4D4; stroke-width: 1.5; }
.r-axis { stroke: #E0E0E0; }
.r-scale { font-family: var(--mono); font-size: 11px; fill: #9A9FA8; }
.r-area { fill: rgba(109, 40, 217, .18); }
.r-label { font-size: 14px; letter-spacing: .08em; fill: var(--muted); }
.r-value { font-family: var(--mono); font-weight: 600; font-size: 20px; fill: var(--ink); }
.scores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.scard { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: 6px; padding: 28px 28px 26px; box-shadow: var(--shadow); }
.scard.good { background: var(--t-ok); } .scard.mid { background: var(--t-accent); } .scard.low { background: var(--t-bad); }
.shead { display: flex; justify-content: space-between; align-items: baseline; }
.skey { font-size: .8rem; letter-spacing: .1em; color: var(--muted); }
.sband { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.sbig { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; }
.scard .sval { font-size: 3rem; line-height: 1; letter-spacing: -.02em; } .smax { color: var(--muted); font-size: .95rem; }
.meter { height: 6px; border-radius: 2px; background: rgba(20, 23, 31, .10); overflow: hidden; margin-bottom: 12px; }
.mfill { display: block; height: 100%; border-radius: 2px; background: var(--ink); }
.scard.good .mfill { background: var(--ok); } .scard.mid .mfill { background: var(--accent); } .scard.low .mfill { background: var(--bad); }
.scard .sname { font-weight: 600; }
.scard .sdef { grid-column: auto; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.sraw { font-size: .8rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 1000px) { .radarbox { grid-template-columns: 1fr; gap: 40px; } .radar { margin: 0 auto; } }
@media (max-width: 560px) { .scores { grid-template-columns: 1fr; } .scard { padding: 24px; } }

/* ---- radar section, round 3: override the old list layout, generous spacing ---- */
.radarbox { gap: 72px; margin-bottom: 72px; }
.scores { gap: 28px; }
.scores .scard { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 40px 36px 36px; }
.scores .scard .shead { margin-bottom: 8px; }
.scores .scard .sbig { margin: 6px 0 12px; }
.scores .scard .meter { margin-bottom: 24px; }
.scores .scard .sname { font-size: 1.05rem; }
.scores .scard .sdef { margin-top: 2px; line-height: 1.6; }
.scores .scard .sraw { margin-top: 12px; }
.secttl { margin: 88px 0 32px; }
.radarbox + .tiles { margin-top: 0; }
@media (max-width: 1000px) { .radarbox { gap: 56px; margin-bottom: 56px; } }
@media (max-width: 560px) { .scores .scard { padding: 32px 28px; } .scores { gap: 20px; } .secttl { margin: 64px 0 24px; } }

/* ---- icons (IBM Carbon glyphs) ---- */
.ico { flex: none; display: inline-block; vertical-align: middle; }
.btn .ico, .link .ico { margin-top: 2px; }
.link { display: inline-flex; align-items: center; gap: 8px; }
.rolechip .ico { color: var(--muted); }
.rolechip .chg { display: inline-flex; align-items: center; gap: 6px; }
.roleico { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--t-accent); color: var(--accent-hi); margin-bottom: 12px; }
.stepico { display: inline-flex; color: var(--accent-hi); margin-bottom: 8px; }
.skeyrow { display: inline-flex; align-items: center; gap: 12px; cursor: default; }
.skeyrow .ico { color: var(--accent-hi); }
.scard.good .skeyrow .ico { color: var(--ok); } .scard.low .skeyrow .ico { color: var(--bad); }
.fb strong { display: flex; align-items: center; gap: 12px; }
.fb.ok strong .ico { color: var(--ok); } .fb.bad strong .ico { color: var(--bad); }
.honest { display: flex; align-items: flex-start; gap: 16px; }
.honest .ico { margin-top: 3px; color: var(--accent-hi); } .honest.warn .ico { color: var(--bad); }
.cellstack strong { display: flex; align-items: flex-start; gap: 10px; }
.cellstack strong .ico { margin-top: 3px; color: var(--bad); }
.opt .ind .ico { display: block; }

/* ---- tooltips ---- */
.hint { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: 8px; color: #8A8F99; cursor: help; vertical-align: calc(.3em - 7px); border-radius: 50%; line-height: 0; }
.hint .ic, .hint .ic .ico { display: block; width: 14px; height: 14px; margin: 0; vertical-align: top; color: inherit; }
.hint:hover, .hint:focus-visible { color: var(--accent-hi); }
.tname .hint, th .hint { margin-left: 6px; }
.tipbox { position: fixed; z-index: 40; left: 0; top: 0; max-width: 300px; padding: 12px 16px; border-radius: 4px; background: var(--ink); color: #fff; font-size: .85rem; line-height: 1.55; font-weight: 400; letter-spacing: 0; text-transform: none; pointer-events: none; opacity: 0; transition: opacity .12s ease; box-shadow: 0 6px 20px rgba(20, 23, 31, .22); }
.tipbox.on { opacity: 1; }
[data-tip] { cursor: help; }
button[data-tip], label[data-tip] { cursor: pointer; }
.sband[data-tip] { cursor: help; text-decoration: underline dotted; text-underline-offset: 4px; }
@media (max-width: 560px) { .stepico { display: none; } .roleico { width: 56px; height: 56px; } }
@media print { .hint, .tipbox { display: none !important; } }

/* table headings stay on one line; body text still wraps, and a wide table scrolls inside its container */
.tbl th { white-space: nowrap; }
.tbl .cellstack { min-width: 170px; }
.tbl th { font-size: .74rem; letter-spacing: .04em; }
.tbl th, .tbl td { padding-left: 16px; padding-right: 16px; }

/* ---- print, final word: last in the file so it beats the screen rules above ---- */
@media print {
  .tile, .tbl-wrap, .card { box-shadow: none; }
  .radarbox { break-inside: auto; }
  .hero { margin-bottom: 14pt; } .hero h1 { font-size: 26pt; margin-bottom: 8pt; } .lede { font-size: 11pt; }
  .honest { margin-bottom: 14pt; padding: 10pt 14pt; }
  .secttl { margin: 18pt 0 10pt; font-size: 15pt; } .secttl + p { break-after: avoid; margin-bottom: 8pt; }
  .radarbox { grid-template-columns: 1fr; gap: 10pt; margin-bottom: 14pt; } .radar { max-width: 230px; margin: 0 auto; }
  .scores { gap: 10pt; } .scores .scard { padding: 12pt 14pt; gap: 6pt; } .scores .scard .sval { font-size: 22pt; } .scores .scard .sdef { font-size: 9pt; line-height: 1.4; margin: 0; } .scores .scard .meter { margin-bottom: 8pt; } .scores .scard .shead { margin-bottom: 0; } .scores .scard .sbig { margin: 2pt 0 4pt; }
  .tiles { gap: 10pt; margin: 14pt 0 18pt; } .tile, .tile.big { padding: 10pt 12pt; } .tile .tval { font-size: 16pt; }
  .tbl-wrap { margin: 10pt 0 18pt; } .tbl th, .tbl td { padding: 7pt 9pt; font-size: 9pt; }
  .method { margin-top: 18pt; }
  .radarbox, .radarbox * { max-width: none; }
  .radar { width: 210px; max-width: 210px; margin: 0 auto; }
}

/* ---- SCORM export ---- */
.scormbox { margin-top: 88px; }
.scormbox h2 { font-size: 1.4rem; margin-bottom: 12px; }
.passrow { display: inline-flex; align-items: center; gap: 16px; margin: 24px 56px 40px 0; font-weight: 600; }
.passrow .hint { margin-left: 0; vertical-align: baseline; }
.passrow select { font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }
@media (max-width: 560px) { .scormbox { margin-top: 64px; } }

/* ---- rebound drill ---- */
.rebound { background: var(--t-accent); border-radius: 6px; padding: 40px 44px; margin: 0 0 72px; box-shadow: var(--shadow); }
.rb-head { display: flex; gap: 28px; align-items: flex-start; }
.rb-head .roleico { background: rgba(255,255,255,.7); margin: 0; flex: none; }
.rb-head .eyebrow { margin-bottom: 8px; } .rb-head h2 { font-size: 1.5rem; margin-bottom: 8px; } .rb-head p { margin: 0; }
.rb-list { list-style: none; padding: 0; margin: 32px 0 8px; display: grid; gap: 4px; }
.rb-list li { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid rgba(20,23,31,.10); }
.rb-list li:last-child { border-bottom: 0; }
.rb-name { font-weight: 600; } .rb-name small { font-weight: 400; } .rb-meta { font-size: .9rem; white-space: nowrap; }
@media (max-width: 720px) { .rebound { padding: 28px 24px; } .rb-head { flex-direction: column; gap: 16px; } .rb-list li { flex-direction: column; gap: 4px; } .rb-meta { white-space: normal; } }

/* roomy app screens (operator rule: very generous spacing). Drill phases are not touched. */
.hero { margin: 40px 0 128px; gap: 72px; }
.hero h1 { margin-bottom: 40px; }
.steps { gap: 32px; margin-bottom: 128px; }
.step { gap: 16px; padding: 48px 44px; }
.step p { margin-top: 12px; }
.stepico { margin-bottom: 16px; }
.sechead { margin-bottom: 48px; gap: 16px 32px; }
.rebound { padding: 56px 56px 52px; margin-bottom: 128px; }
.rb-head { gap: 36px; }
.rb-head .eyebrow { margin-bottom: 14px; } .rb-head h2 { margin-bottom: 14px; }
.rb-list { margin: 48px 0 24px; gap: 8px; }
.rb-list li { padding: 24px 0; }
.rb-list + .btn, .rebound .btn { margin-top: 24px; }
.cart { padding: 44px 48px; column-gap: 48px; }
.cart p { margin-top: 12px; }
main .grid { gap: 32px; }
.tile { gap: 16px; padding: 44px 40px; }
.tile.big { padding: 56px 44px; }
.rvs { gap: 28px; margin: 40px 0 72px; }
.rv { gap: 14px; padding: 40px 44px; }
@media (max-width: 720px) {
  .hero { margin-bottom: 72px; } .steps { margin-bottom: 80px; }
  .step, .tile, .rv { padding: 32px 28px; } .tile.big { padding: 40px 28px; }
  .rebound { padding: 36px 28px; margin-bottom: 80px; } .cart { padding: 32px 28px; }
}
main > h1 + p { margin-bottom: 56px; }
.tbl th, .tbl td { padding: 24px 28px; }
.tbl-wrap + p { margin: 56px 0 32px; }
main > .row, main > .actions { gap: 20px; }
.cohortbox { padding: 56px 56px 52px; margin-bottom: 72px; }
.cohortbox h2 { margin-bottom: 16px; }
.cohortbox .row { margin: 40px 0 28px; gap: 20px; }
.cohortbox .row + p, .cohortbox .fine { margin-top: 8px; }
@media (max-width: 560px) { .cohortbox { padding: 36px 28px; } }
.honest { padding: 36px 40px; gap: 20px; line-height: 1.7; }
.honest.warn { margin-bottom: 72px; }
.scores { gap: 40px; }
.scores .scard { gap: 18px; padding: 48px 44px 44px; }
.radarbox { gap: 88px; margin: 56px 0 96px; }
@media (max-width: 560px) { .scores { gap: 24px; } .scores .scard { padding: 36px 28px; } .radarbox { gap: 48px; } }
.cellstack { gap: 14px; }
.cellstack small { line-height: 1.7; }
.cellstack strong { gap: 14px; line-height: 1.5; }
.tbl td { line-height: 1.7; vertical-align: top; }
.tbl .cellstack { min-width: 220px; }
.tbl-wrap { margin-bottom: 40px; }
.tbl th, .tbl td { padding: 24px 22px; }
.tbl th:first-child, .tbl td:first-child { min-width: 260px; padding-left: 28px; }
main h3 { margin: 56px 0 24px; font-size: 1.05rem; }
main > h2 { margin: 72px 0 28px; }
main h1 { margin-bottom: 24px; }
main h1 + p { margin-bottom: 56px; }
main textarea { margin-bottom: 24px; }
/* the drill is one screen: no extra bottom space under it (Phase 3 must fit without scrolling) */
main:has(> .pips) { padding-bottom: 40px; }
.tiles { gap: 32px; margin: 56px 0 72px; }
.honest + .honest { margin-top: 32px; }
.tile .tname { line-height: 1.5; min-height: 3em; }
.hero .score { margin-top: 28px; }
.imp li { padding: 28px 0; }
.imp li .acts { gap: 24px; }
main > p.muted { margin-bottom: 32px; }
.sigtag { display: block; margin-top: 6px; font-size: .85rem; }
.trustbox { margin-top: 128px; }
.trustbox h3 { margin: 56px 0 8px; }
.trustbox textarea { margin-top: 24px; }
.trustbox .check { margin-top: 40px; }
.check .hint { margin-left: 0; }
/* sharing with the institution (only present when an institution has switched it on) */
.sharebox { margin-top: 128px; }
.sharebox h2 { margin-bottom: 20px; }
.sharebox > p.muted { max-width: 38em; line-height: 1.75; }
.card.sharebox { padding: 56px 56px 52px; margin: 72px 0; }
.terms { list-style: none; padding: 0; margin: 40px 0 16px; display: grid; gap: 32px; max-width: 40em; line-height: 1.75; }
.terms strong { display: block; margin-bottom: 6px; }
@media (max-width: 560px) { .card.sharebox { padding: 36px 28px; } .sharebox { margin-top: 96px; } }
.reviewbox { margin-top: 128px; }
.reviewbox > p.muted { max-width: 40em; line-height: 1.75; margin-bottom: 40px; }
.reviewbox h3 { margin: 64px 0 12px; }

/* instructions shown before and during a drill */
.before { margin: 0 0 96px; max-width: 46em; }
.before h2 { margin: 0 0 28px; font-size: 1.25rem; }
.before p { margin: 0 0 24px; line-height: 1.75; }
.drillhint { max-width: 720px; margin: -8px auto 24px; font-size: .9rem; }

/* modal */
.modal { border: 0; border-radius: 6px; padding: 56px 56px 52px; width: min(660px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); }
.modal::backdrop { background: rgba(22, 22, 22, .45); }
.modal[open] { display: grid; gap: 40px; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal h2 { margin: 0; font-size: 1.3rem; }
.modal p { margin: 0; line-height: 1.75; }
.modal-x { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; }
.modal-x:hover { background: var(--bg); }
.modal input[type=file] { font: inherit; font-size: .9rem; }
.modal input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: .9rem; min-height: 42px; padding: 0 20px; margin-right: 16px; border-radius: 4px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.modal > .row { margin-top: 0; padding-top: 8px; }
@media (max-width: 560px) { .modal { padding: 40px 28px 36px; gap: 32px; } }

.addcart { margin-top: 72px; } .addcart h2 { font-size: 1.15rem; }
@media (max-width: 560px) { .addcart { margin-top: 56px; } }

/* teaching what a micro-simulation is */
.defn { max-width: 46em; margin: 0 0 56px; line-height: 1.75; color: var(--muted); }
.cart .situation { margin: 0; line-height: 1.65; }
.sample { max-width: 46em; margin: 0 0 96px; }
.sample h2 { margin: 0 0 28px; font-size: 1.25rem; }
.sample blockquote { margin: 0 0 24px; padding: 32px 36px; background: var(--surface); border-radius: 6px; line-height: 1.75; font-size: 1.05rem; }
.sample p { margin: 0; line-height: 1.75; }
@media (max-width: 560px) { .sample blockquote { padding: 24px; } .defn { margin-bottom: 40px; } }
.cart .cmeta { grid-area: meta; display: grid; gap: 10px; margin-top: 12px; }
.cart .cmeta p { grid-area: auto; margin: 0; }
.modal-steps { display: grid; gap: 20px; justify-items: start; }
.modal-steps h3 { margin: 0; font-size: 1.05rem; }
.modal-steps ol { margin: 0; padding-left: 24px; display: grid; gap: 18px; line-height: 1.75; }
.modal-steps p { margin: 0; }
.modal-steps input[type=file] { margin-top: 8px; }
.modal-steps .row { margin-top: 20px; }

/* add dialog */
.modal[open] { gap: 32px; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 56px 32px 48px; background: var(--bg); border-radius: 6px; transition: background-color .12s ease; }
.dropzone.over { background: var(--t-accent); }
.dropzone .drop-ico { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); color: var(--accent, var(--ink)); margin-bottom: 8px; }
.dropzone p { margin: 0; }
.dropzone .drop-title { font-weight: 600; font-size: 1.05rem; }
.dropzone .btn { margin-top: 20px; }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone .drop-msg { margin-top: 12px; min-height: 0; }
.modal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.modal-foot p { margin: 0; }
@media (max-width: 560px) { .dropzone { padding: 40px 20px 36px; } .modal-foot .btn { width: 100%; } }

/* simulation library steps */
.libsteps { list-style: none; counter-reset: ls; padding: 0; margin: 48px 0 40px; display: grid; gap: 56px; max-width: 46em; }
.libsteps li { counter-increment: ls; display: grid; gap: 20px; justify-items: start; padding-left: 64px; position: relative; }
.libsteps li::before { content: counter(ls); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.libsteps h2 { margin: 0; font-size: 1.2rem; }
.libsteps p { margin: 0; line-height: 1.75; }
.libsteps textarea { width: 100%; }
@media (max-width: 560px) { .libsteps li { padding-left: 0; padding-top: 56px; } }

/* briefing screen */
.brief { display: grid; gap: 72px; padding-bottom: 72px; }
.brief-head { display: grid; gap: 28px; justify-items: start; }
.brief-head h1 { margin: 0; }
.brief-head .eyebrow { margin: 0; }
.brief-head .row { margin: 12px 0 0; }
.brief-sec { display: grid; gap: 28px; }
.brief-sec h2 { margin: 0; font-size: 1.25rem; }
.brief-sec p { margin: 0; line-height: 1.75; max-width: 46em; }
.brief-sec blockquote { margin: 0; padding: 36px 40px; background: var(--surface); border-radius: 6px; line-height: 1.8; font-size: 1.08rem; }
.brief .steps { margin: 0; }
.tips3 { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tip3 { display: grid; gap: 14px; align-content: start; padding: 36px 36px 40px; background: var(--surface); border-radius: 6px; }
.tip3-ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); color: var(--accent, var(--ink)); margin-bottom: 8px; }
.tip3 p { margin: 0; line-height: 1.7; color: var(--muted); }
@media (max-width: 900px) { .tips3 { grid-template-columns: 1fr; } .brief { gap: 56px; } }
@media (max-width: 560px) { .brief-sec blockquote { padding: 24px; } .tip3 { padding: 28px 24px; } }
