/* SAI Academy — dashboard look in SAI brand colours: neutral grey canvas,
   white rounded panels, charcoal dark surfaces, SAI red as the highlight. */
* { box-sizing: border-box; margin: 0; }
:root {
  --bg: #E9E9E9; --panel: #ffffff; --panel-2: #F4F4F4; --panel-3: #EAEAEA;
  --dark: #1E1E1E; --dark-2: #2C2C2C;
  --tan-a: #E3E3E3; --tan-b: #D4D4D4;
  --text: #1c1c1c; --muted: #8A8A8A; --muted-2: #B8B8B8;
  --line: rgba(30,30,30,.08); --line-2: rgba(30,30,30,.14);
  --brand: #E5252D; --brand-soft: rgba(229,37,45,.12);
  --red: #E5252D; --red-hover: #c41a22; --red-soft: rgba(229,37,45,.14);
  --green: #2e7d32; --green-soft: rgba(46,125,50,.12);
  --amber: #b26a00; --amber-soft: rgba(178,106,0,.14);
  --blue: #2b6fd6; --blue-soft: rgba(87,155,252,.18);
  --radius: 24px; --radius-sm: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
}
html, body { min-height: 100%; }
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13px; }
h1 { font-family: "Sora", sans-serif; font-weight: 600; font-size: 26px; letter-spacing: -.5px; }
h2 { font-family: "Sora", sans-serif; font-weight: 600; font-size: 17px; margin-bottom: 8px; }

/* ============ ICON RAIL ============ */
.rail {
  position: fixed; left: 20px; top: 20px; bottom: 20px; width: 66px; z-index: 20;
  background: var(--panel); border-radius: 33px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 10px;
}
.rail-logo { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 6px; }
.rail-logo img { height: 18px; }
.rail nav { display: flex; flex-direction: column; gap: 6px; }
.rail nav button, .rail-bottom button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
  background: transparent; color: var(--muted); display: grid; place-items: center;
  cursor: pointer; transition: background .15s, color .15s;
}
.rail nav button:hover, .rail-bottom button:hover { background: var(--panel-2); color: var(--text); }
.rail nav button.active { background: var(--brand); color: #fff; }
.rail-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--dark); color: #fff; font-family: "Sora", sans-serif; font-weight: 600; font-size: 14px; display: grid; place-items: center; }

/* ============ LAYOUT ============ */
main { margin-left: 106px; padding: 26px 28px 34px; }
main.narrow { margin: 90px auto; max-width: 420px; padding: 0 16px; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 22px 24px; }
.panel.dark { background: var(--dark); color: #fff; }
.panel.tan { background: linear-gradient(135deg, var(--tan-a), var(--tan-b)); }
.card { background: var(--panel); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.page-head .grow-col { flex: 1; }
.page-head .t { font-family: "Sora", sans-serif; font-weight: 600; font-size: 26px; letter-spacing: -.5px; }
.page-head .sub, .page-head .muted { margin-top: 3px; }
.page-head .actions { display: flex; gap: 8px; align-items: center; }
#tm-panel .form-grid input, #tm-panel .form-grid select { margin: 2px 0 6px; }
.head-actions { display: flex; align-items: center; gap: 12px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 999px; padding: 0 16px; height: 42px; width: 240px; color: var(--muted); }
.search input { border: 0; background: transparent; margin: 0; padding: 0; font: inherit; font-size: 13px; width: 100%; outline: none; color: var(--text); }
.search input::placeholder { color: var(--muted); }

input, select, textarea { width: 100%; font: inherit; font-size: 14px; padding: 11px 14px; border-radius: 12px; margin: 6px 0; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
textarea { font-family: ui-monospace, monospace; font-size: 12px; }
button { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; background: var(--dark); color: #fff; transition: background .15s, transform .12s; }
button:hover { background: var(--dark-2); }
button:active { transform: scale(.985); }
button.ghost { background: var(--panel); border-color: var(--line-2); color: var(--text); }
button.ghost:hover { background: var(--panel-2); }
button.dark { background: var(--dark); }
button.primary { background: var(--red); }
button.primary:hover { background: var(--red-hover); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; padding: 0; display: grid; place-items: center; background: var(--brand); color: #fff; flex-shrink: 0; }
.kebab { width: 32px; height: 32px; border-radius: 50%; padding: 0; background: transparent; color: var(--muted); display: grid; place-items: center; font-size: 16px; letter-spacing: 1px; }
.kebab:hover { background: var(--panel-3); color: var(--text); }

.pill { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .2px; padding: 3px 10px; border-radius: 999px; background: var(--panel-3); color: var(--muted); }
.pill.compliant, .pill.completed { background: var(--green-soft); color: var(--green); }
.pill.assigned, .pill.not_started { background: var(--blue-soft); color: var(--blue); }
.pill.due_soon { background: var(--amber-soft); color: var(--amber); }
.pill.overdue { background: var(--red-soft); color: var(--red); }
.pill.never_assigned { background: var(--panel-3); color: var(--muted); }
.pill.pending_verification { background: var(--amber-soft); color: var(--amber); }
.pill.cleared { background: var(--dark); color: #fff; }

/* ============ LEARNER HOME ============ */
.grid-top { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; margin-bottom: 20px; }
.grid-bottom { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.hero-panel { display: flex; flex-direction: column; gap: 16px; min-height: 340px; }
.ov-head { display: flex; align-items: center; justify-content: space-between; }
.ov-head .t { font-family: "Sora", sans-serif; font-weight: 600; font-size: 16px; }
.ov-body { display: flex; gap: 16px; flex: 1; }
.ov-next { width: 290px; flex-shrink: 0; background: rgba(255,255,255,.72); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.ov-next .eyebrow { font-size: 12px; color: rgba(30,30,30,.6); }
.ov-next .title { font-family: "Sora", sans-serif; font-weight: 600; font-size: 20px; line-height: 1.3; }
.ov-next .next { font-size: 12.5px; color: rgba(30,30,30,.65); }
.ov-due { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(30,30,30,.7); margin-top: 6px; }
.ov-prog { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: rgba(30,30,30,.65); margin: 4px 0 10px; }
.ov-prog .bar { background: rgba(30,30,30,.1); }
.ov-grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ov-tile { background: rgba(255,255,255,.72); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; }
.ov-tile .lbl { font-size: 12px; color: rgba(30,30,30,.6); }
.ov-tile .num { font-family: "Sora", sans-serif; font-weight: 600; font-size: 36px; letter-spacing: -1px; line-height: 1; margin: auto 0 8px; padding-top: 10px; }
.ov-tile .num small { font-size: 16px; font-weight: 500; color: rgba(30,30,30,.5); letter-spacing: 0; }
.ov-tile.warn .num { color: var(--red); }
.ov-tile .sub { font-size: 11.5px; color: rgba(30,30,30,.6); }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head .t { font-family: "Sora", sans-serif; font-weight: 600; font-size: 16px; }
.cal-head .m { font-size: 12px; color: rgba(255,255,255,.6); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; justify-items: center; }
.cal-dow { font-size: 11px; color: rgba(255,255,255,.45); padding-bottom: 4px; }
.cal-day { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: rgba(255,255,255,.85); position: relative; }
.cal-day.other { color: rgba(255,255,255,.22); }
.cal-day.today { border: 1.5px solid rgba(255,255,255,.7); }
.cal-day.done { background: var(--dark-2); border: 1.5px solid rgba(255,255,255,.28); }
.cal-day.done::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.cal-day.due { background: var(--brand); color: #fff; font-weight: 600; }
.cal-legend { display: flex; gap: 16px; margin-top: 16px; font-size: 11px; color: rgba(255,255,255,.6); }
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ring + bar cards */
.ring-card { display: flex; align-items: center; gap: 18px; }
.ring-card .txt { flex: 1; }
.ring-card .t, .bar-card .t { font-family: "Sora", sans-serif; font-weight: 600; font-size: 16px; }
.ring-card .s, .bar-card .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ring { position: relative; width: 118px; height: 118px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; }
.ring .track { fill: none; stroke: var(--panel-3); stroke-width: 9; }
.ring .prog { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; }
.ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .c b { font-family: "Sora", sans-serif; font-weight: 600; font-size: 22px; display: block; letter-spacing: -.5px; }
.ring .c span { font-size: 10.5px; color: var(--muted); }
.bar-card .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bar-card .pct { font-family: "Sora", sans-serif; font-weight: 600; font-size: 18px; text-align: right; }
.bar-card .pct small { display: block; font-family: "Inter", sans-serif; font-weight: 400; font-size: 11px; color: var(--muted); }
.slider { position: relative; margin-top: 44px; height: 8px; border-radius: 999px; background: var(--panel-3); }
.slider .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #C4C4C4, var(--brand)); }
.slider .knob { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--dark); border: 3px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.slider .tip { position: absolute; bottom: 14px; transform: translateX(-50%); background: var(--dark); color: #fff; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.slider-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 8px; }

/* course rows (habits list) */
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.list-head .t { font-family: "Sora", sans-serif; font-weight: 600; font-size: 16px; }
.crow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 14px; border-radius: 16px; background: var(--panel-2); margin-bottom: 8px; cursor: pointer; transition: background .15s; }
.crow:hover { background: var(--panel-3); }
.crow img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.crow .name { font-size: 14px; font-weight: 600; }
.crow .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.crow .prog { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.crow .prog b { color: var(--text); font-weight: 600; }
.pips { display: flex; gap: 3px; }
.pip { width: 7px; height: 14px; border-radius: 3px; background: rgba(30,30,30,.12); }
.pip.on { background: var(--red); }
.crow .end { display: flex; align-items: center; gap: 10px; }

/* ============ COURSE PLAYER ============ */
.player-top { display: flex; align-items: center; gap: 20px; padding: 14px 20px; background: var(--panel); border-radius: var(--radius); margin-bottom: 16px; }
.player-top .back { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); font-family: "Sora", sans-serif; font-weight: 600; font-size: 15px; padding: 0; border-radius: 0; }
.player-top .back:hover { color: var(--red); background: none; transform: none; }
.player-top .mid { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: center; }
.bar { height: 7px; background: var(--panel-3); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--red); border-radius: 999px; }
.bar.done > div { background: var(--green); }
.player { display: flex; background: var(--panel); border-radius: var(--radius); overflow: hidden; min-height: 560px; }
.outline { width: 300px; background: var(--panel-2); padding: 20px 12px; flex-shrink: 0; }
.outline .head { font-size: 11px; font-weight: 600; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; padding: 0 12px 10px; }
.mod-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.mod-row:hover { background: var(--panel-3); }
.mod-row.current { background: var(--brand); color: #fff; }
.mod-row.current .t { color: #fff; }
.mod-row .t { font-size: 13.5px; font-weight: 500; }
.mod-row .s { font-size: 11.5px; color: var(--muted); }
.mod-row.current .s { color: rgba(255,255,255,.75); }
.mod-dot { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; box-sizing: border-box; }
.mod-dot.done { background: var(--dark); color: #fff; }
.mod-dot.current { border: 2.5px solid #fff; }
.mod-dot.todo { border: 2px solid var(--muted-2); }
.stage { flex: 1; padding: 30px 34px; display: flex; flex-direction: column; gap: 18px; }
.stage .kicker { display: inline-block; align-self: flex-start; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; }
.stage h3 { font-family: "Sora", sans-serif; font-weight: 600; font-size: 19px; line-height: 1.4; }
.doc-body { background: var(--panel-2); border-radius: var(--radius-sm); padding: 16px 18px; white-space: pre-wrap; font-size: 14px; line-height: 1.6; }
.option { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 14px; padding: 13px 17px; cursor: pointer; margin: 5px 0; font-size: 14px; }
.option:hover { background: var(--panel-2); }
.option.picked { border: 2px solid var(--brand); background: var(--brand-soft); padding: 12px 16px; font-weight: 600; }
.option input { width: auto; margin: 0; accent-color: var(--brand); }
.q { margin: 12px 0; }
.q .qq { font-weight: 600; margin-bottom: 6px; }
.stage-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.ok { color: var(--green); font-weight: 600; font-size: 13px; }
.err { color: var(--red); font-size: 12.5px; margin-top: 6px; }

/* ============ ADMIN ============ */
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--panel); border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; gap: 16px; }
.stat-card .n { font-family: "Sora", sans-serif; font-weight: 600; font-size: 30px; letter-spacing: -1px; line-height: 1; }
.stat-card.warn .n { color: var(--red); }
.stat-card .cap { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-card .ring { width: 64px; height: 64px; }
.stat-card .ring .track, .stat-card .ring .prog { stroke-width: 7; }
.stat-card .ring .c b { font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
tbody tr:hover { background: var(--panel-2); }
.table-wrap { overflow-x: auto; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 160px; }
.module { border-top: 1px solid var(--line); padding: 12px 0; }
.module .mtitle { font-weight: 600; margin-bottom: 6px; }
.evt { font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.evt time { color: var(--muted); margin-right: 8px; }
.empty-state { padding: 28px 6px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ============ LOGIN ============ */
.login-wrap { display: flex; flex-direction: column; gap: 14px; text-align: center; padding: 30px 26px; box-shadow: var(--shadow); }
.login-logo { height: 26px; align-self: center; margin-bottom: 4px; }
.login-wrap h2 { font-weight: 600; font-size: 22px; margin: 0; }
.login-wrap p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.login-wrap button { width: 100%; padding: 12px; }
.login-wrap input { padding: 12px 14px; text-align: center; border-radius: 999px; }
#login-msg { min-height: 16px; }

/* ============ TOAST ============ */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; max-width: 88vw; font-size: 13px; font-weight: 500; padding: 11px 18px; border-radius: 999px; background: var(--dark); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.22); animation: toast-in .2s ease; }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } }
:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }

@media (max-width: 1100px) {
  .grid-top, .grid-bottom { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============ WELCOME / PROFILE CHECK ============ */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; }
.welcome .steps { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.welcome .step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; background: var(--panel-2); border-radius: 14px; }
.welcome .step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--dark); color: #fff; font-family: "Sora", sans-serif; font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.welcome .step b { display: block; font-size: 14px; }
.welcome .step span { font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.form-grid label { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: block; margin-top: 8px; }
.form-grid .full { grid-column: 1 / -1; }

/* ============ ONBOARDING PATH PANEL ============ */
.path-card .t { font-family: "Sora", sans-serif; font-weight: 600; font-size: 16px; }
.path-card .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.path-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.path-step { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; font-size: 13px; cursor: pointer; }
.path-step:hover { background: var(--panel-2); }
.path-step.locked { cursor: default; color: var(--muted); }
.path-step .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box; }
.path-step .dot.done { background: var(--dark); color: #fff; }
.path-step .dot.next { border: 2.5px solid var(--brand); }
.path-step .dot.todo { border: 2px solid var(--muted-2); }
.path-step .k { font-size: 11px; color: var(--muted); }

/* ============ TEAM ============ */
.team-counts { display: flex; gap: 6px; flex-wrap: wrap; }
.mini { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--panel-3); color: var(--muted); }
.mini.compliant { background: var(--green-soft); color: var(--green); }
.mini.pending_verification, .mini.due_soon { background: var(--amber-soft); color: var(--amber); }
.mini.overdue { background: var(--red-soft); color: var(--red); }
.check-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; max-height: 240px; overflow: auto; }
.check-list label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); cursor: pointer; }
.check-list input { width: auto; margin: 0; accent-color: var(--brand); }
.check-list .ord { margin-left: auto; font-size: 11px; color: var(--muted); }

/* ============ BCC: item badges, markdown, start/finish, quiz ============ */
.badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: var(--panel-3); color: var(--muted); text-transform: uppercase; vertical-align: middle; }
.badge.RECORD { background: #e8eefb; color: #2b4fa8; } .badge.COUNCIL_LINK, .badge.COUNCIL_SOP { background: #f0e9f8; color: #6b3fa0; }
.badge.SAI_COURSE { background: var(--red-soft); color: var(--red); } .badge.LOGBOOK { background: var(--amber-soft); color: var(--amber); }
.md { font-size: 14.5px; line-height: 1.65; max-width: 720px; }
.md h1, .md h2, .md h3 { font-family: "Sora", sans-serif; font-weight: 600; line-height: 1.3; margin: 18px 0 8px; }
.md h1 { font-size: 20px; } .md h2 { font-size: 17px; } .md h3 { font-size: 15px; }
.md p { margin: 8px 0; } .md ul, .md ol { margin: 8px 0; padding-left: 22px; } .md li { margin: 4px 0; }
.md table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 10px 0; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line-2); padding: 6px 9px; text-align: left; white-space: normal; }
.md th { background: var(--panel-2); }
.md strong { font-weight: 600; } .md blockquote { border-left: 3px solid var(--brand); margin: 10px 0; padding: 4px 12px; color: var(--muted); }
.md code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.confirm { background: #fff3cd; color: #7a5a00; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.start { max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0; }
.start img { height: 34px; margin-bottom: 6px; }
.start .id { font-family: "Sora", sans-serif; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.start h2 { font-size: 24px; margin: 0; }
.start .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 12px 0; }
.start .fact, .finish .fact { background: var(--panel-2); border-radius: 14px; padding: 12px; }
.start .fact b, .finish .fact b { display: block; font-family: "Sora", sans-serif; font-size: 18px; }
.start .fact span, .finish .fact span { font-size: 11.5px; color: var(--muted); }
.start .contract { font-size: 12px; color: var(--muted); }
.finish { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0; }
.finish .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.qcard { max-width: 720px; }
.qcard .prog { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.qcard .prog .bar { flex: 1; height: 6px; }
.qcard .q { font-size: 17px; font-weight: 600; margin: 10px 0 14px; line-height: 1.4; }
.option.right { border-color: var(--green); background: var(--green-soft); }
.option.wrong { border-color: var(--red); background: var(--red-soft); }
.option.dim { opacity: .55; }
.explain { background: var(--panel-2); border-left: 3px solid var(--dark); border-radius: 0 12px 12px 0; padding: 10px 14px; margin: 12px 0; font-size: 14px; }
.explain.good { border-color: var(--green); } .explain.bad { border-color: var(--red); }
.crit { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.crit .box { width: 18px; height: 18px; border: 2px solid var(--muted-2); border-radius: 4px; margin-top: 2px; }
.crit .box.on { background: var(--dark); border-color: var(--dark); }
.crit small { display: block; color: var(--muted); font-size: 11.5px; }
.player-top img { height: 22px; margin-right: 6px; }
.field { display: flex; flex-direction: column; gap: 2px; }
.field label { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.posts { display: flex; flex-wrap: wrap; gap: 4px; }
.posts label { font-size: 11.5px; display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border-radius: 999px; padding: 3px 9px; cursor: pointer; }
.posts input { width: auto; margin: 0; }
.missing { font-size: 11.5px; color: var(--red); }

/* supervisor sign-offs on My team */
.so-item { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.so-row { display: flex; align-items: center; gap: 12px; }
.so-form { margin: 8px 0 6px; padding: 12px 14px; background: var(--panel-2); border-radius: 10px; }
.crit input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--dark); }
label.crit { cursor: pointer; }
@media (max-width: 600px) { .so-form .form-grid { grid-template-columns: 1fr; } .so-row { flex-wrap: wrap; } }
