* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: light; font: 15px/1.55 system-ui, sans-serif; color: #1a293d; background: #eef3f8; }
body { margin: 0; }
header { background: #fff; border-bottom: 1px solid #dce5ee; }
.bar, main { width: min(1080px, calc(100% - 32px)); margin: auto; }
.bar, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar { min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand small { color: #536880; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: #244563; border-radius: 9px; }
main { padding: 24px 0 48px; }
.card { background: #fff; padding: clamp(14px, 3vw, 24px); border: 1px solid #dce5ee; border-radius: 15px; margin-bottom: 18px; }
.portal { padding: 0; overflow: hidden; margin: clamp(12px, 5vh, 42px) auto; box-shadow: 0 18px 50px #223d5619; }
.portal-intro { display: grid; align-items: center; grid-template-columns: 1.2fr 1fr; gap: 20px; padding: clamp(22px, 5vw, 52px); background: linear-gradient(115deg, #15283a, #284967); color: #edf6ff; }
.portal-intro h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -.05em; line-height: 1.05; }
.portal-intro .eyebrow { color: #b7d9f8; }
.portal-art { width: 100%; max-height: 300px; }
.art-grid { stroke: #ffffff25; }
.art-object { stroke: #b1d2f094; stroke-width: 1.4; }
.art-face { stroke: #a8d1f8; fill: #7abdfa25; }
.portal-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: clamp(14px, 3vw, 24px); }
.portal-options a { display: grid; gap: 6px; padding: clamp(14px, 3vw, 25px); border: 1px solid #dce5ee; background: #f5f9fd; border-radius: 12px; text-decoration: none; color: #21354a; }
.portal-options a + a { background: #f2faf7; }
.portal-options a:hover { border-color: #5d88b0; }
.portal-options strong { font-size: 25px; }
.portal-options b { color: #245788; margin-top: 4px; }
.eyebrow { margin: 0 0 6px; color: #365d82; font-size: 12px; font-weight: 700; letter-spacing: .09em; }
.login { max-width: 480px; margin: 8vh auto; }
.login h1 { margin-top: 14px; }
.login form, label { display: grid; gap: 8px; }
.login form { gap: 15px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px; align-items: end; margin: 16px 0; }
.wide { grid-column: 1 / -1; margin: 0; }
button, select, input, textarea { font: inherit; color: inherit; background: #f8fafc; border: 1px solid #a6b9ce; border-radius: 8px; padding: 8px 11px; min-width: 0; }
button, summary { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid #2765a7; outline-offset: 3px; }
.primary { background: #245c96; border-color: #245c96; color: white; font-weight: 650; }
h1, h2, h3 { margin: 0 0 10px; }
a { color: #265b8b; }
.muted { color: #536880; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.metrics > div { background: #f0f5fa; border: 1px solid #e0e9f2; border-radius: 10px; padding: 12px; }
.metrics dt { color: #405973; }
.metrics dd { margin: 0; font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; }
.metrics .metric-detail { font-size: 13px; font-weight: 400; }
#dashboard-results > section { margin-top: 24px; }
.dashboard-table { overflow-x: auto; }
.dashboard table { width: 100%; border-collapse: collapse; }
.dashboard th, .dashboard td { padding: 8px; border-bottom: 1px solid #dce5ee; text-align: left; }
.dashboard-table th, .dashboard-table td { white-space: nowrap; }
.dashboard-drill { background: transparent; color: #265b8b; border-color: transparent; padding-left: 0; text-align: left; text-decoration: underline; text-underline-offset: .15em; }
.tasks { display: grid; gap: 9px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.task { text-align: left; overflow-wrap: anywhere; }
.task[aria-pressed='true'] { border-color: #467aa9; background: #edf6ff; }
.item { border-top: 1px solid #dce5ee; padding: 12px 0; overflow-wrap: anywhere; }
.item p { margin: 4px 0 8px; }
.receipt, #notice { padding: 12px; border: 1px solid #adc8e4; background: #eef6ff; border-radius: 8px; }
#notice.error { border-color: #d39aa1; background: #fdf0f1; color: #762830; }
video { display: block; max-width: 100%; max-height: 65vh; margin-top: 10px; }
@media (max-width: 600px) {
  .portal-intro, .portal-options { grid-template-columns: 1fr; }
  .portal-art { max-height: 150px; }
  .bar { flex-wrap: wrap; padding-block: 7px; }
}
.note-stage { position: relative; width: fit-content; max-width: 100%; }
.note-frame { display: block; max-width: 100%; height: auto; }
.note-stage canvas + canvas { position: absolute; inset: 0; touch-action: none; }
#desk { display: grid; grid-template-columns: minmax(155px, 185px) minmax(0, 1fr); align-items: start; column-gap: 18px; }
#desk > .card { grid-column: 2; min-width: 0; }
#detail[data-workspace-hidden='true'] { display: none; }
.workspace-nav { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 16px; display: grid; gap: 7px; background: #fff; padding: 10px; border: 1px solid #dce5ee; border-radius: 12px; }
.task-requirements { white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-nav button { text-align: left; border-color: transparent; background: transparent; }
.workspace-nav button[aria-current='page'] { background: #e6f0fb; color: #174979; font-weight: 650; }
@media (max-width: 740px) {
  #desk { display: block; }
  .workspace-nav { position: static; display: flex; flex-wrap: wrap; margin-bottom: 12px; }
  .section-head { flex-wrap: wrap; }
}
