:root {
    color-scheme: light;
    --canvas: #f6f5fb;
    --paper: #fff;
    --ink: #171a34;
    --body: #35384f;
    --muted: #575970;
    --line: #e7e7f0;
    --violet: #4b36cb;
    --violet-wash: #eeebff;
    --rail: #19182f;
    --rail-width: 76px;
    --radius: 20px;
    --shadow: 0 2px 5px #221a4306, 0 12px 26px #221a4305;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 15px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, a { touch-action: manipulation; }
:where(a, button, [tabindex]):focus-visible {
    outline: 3px solid #7561f4;
    outline-offset: 3px;
}

.rail {
    --rail-open: min(292px, 88vw);
    position: fixed;
    z-index: 5;
    inset: 0 auto 0 0;
    width: var(--rail-width);
    padding: 18px 12px;
    color: #f3f0ff;
    background: var(--rail);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #777097 var(--rail);
    transition: width .2s ease;
}
.rail:hover, .rail:focus-within, .rail.is-open {
    width: var(--rail-open);
    box-shadow: 10px 0 32px #251e4b32;
}
.brand, .railitem {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 46px;
    border-radius: 11px;
    padding: 5px 6px;
    white-space: nowrap;
    text-decoration: none;
}
.brand { margin-bottom: 25px; font-weight: 750; }
.brandmark, .nav-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: none;
    border-radius: 10px;
    font-weight: 700;
}
.brandmark { background: #c8bbff; color: #302269; font-size: 20px; }
.nav-icon { background: #302d49; color: #e1daf7; }
.course-icon { font-size: 14px; }
.railitem { margin: 4px 0; color: #eeeafd; }
.railitem:hover { background: #383254; }
.railitem.selected { background: #473983; }
.railitem.selected .nav-icon { background: #ad99ff; color: #21164f; }
.railcaption {
    margin: 18px 6px 5px;
    border-top: 1px solid #3f395d;
    padding-top: 9px;
    color: #c2b9db;
    font-size: 13px;
}
.railname { display: block; flex: 0 0 calc(var(--rail-open) - 97px); }
.rail:not(:hover):not(:focus-within):not(.is-open) .railname {
    position: absolute;
    inset: 0 auto auto 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.railitem .railname { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.tip { display: none; }

main {
    margin-left: var(--rail-width);
    padding: 29px clamp(19px, 3.55vw, 62px) 62px;
    max-width: 1530px;
}
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 18px;
    padding: clamp(24px, 3.2vw, 45px);
    border: 1px solid #3e2b87;
    border-radius: 25px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 94% 15%, #7054d6 0%, #4e37a8 35%, transparent 68%),
        linear-gradient(118deg, #22174e, #382479 77%);
    box-shadow: 0 12px 36px #30236728;
}
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 400px;
    height: 400px;
    right: -36px;
    top: -169px;
    border-radius: 50%;
    background: repeating-radial-gradient(ellipse, transparent 0 26px, #d6c8ff38 27px 28px, transparent 29px 39px);
    opacity: .74;
    transform: rotate(-25deg) scaleX(1.28);
    pointer-events: none;
}
.hero-copy { max-width: min(100%, 850px); }
.eyebrow { color: #ded4ff; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
.eyebrow span { margin-inline: 4px; color: #c3b3f1; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
h1 {
    font: 740 clamp(37px, 6vw, 72px)/1.03 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    letter-spacing: -.06em;
    overflow-wrap: anywhere;
}
.hero-subject h1 { font-size: clamp(32px, 4.45vw, 56px); }
.hero-description { color: #e8e2ff; margin-top: 9px; font-size: clamp(14px, 1.35vw, 16px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-weight: 690;
    cursor: pointer;
    text-decoration: none;
}
button { background: #f1eaff; color: #2c205e; }
button:hover { background: #fff; }
button:disabled { opacity: .72; cursor: wait; }
.button-icon { font-size: 18px; line-height: 1; }
.ghost { color: #fff; background: #f4eaff19; border-color: #ded3ff66; }
.ghost:hover { background: #f4eaff34; }
.menu-toggle { display: none; }
.hero :focus-visible { outline-color: #f1eaff; }

.metrics, .content-grid { display: grid; gap: 15px; }
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.content-grid { grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr); }
.metric, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric { display: flex; min-width: 0; flex-direction: column; padding: 16px 20px 17px; text-decoration: none; }
.metric > span { color: var(--body); font-weight: 650; }
.metric > strong {
    margin: 6px 0 5px;
    color: #332477;
    font-size: clamp(28px, 3.6vw, 39px);
    line-height: 1.14;
    letter-spacing: -.055em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.metric > strong i { font-style: normal; font-weight: 400; color: #776b91; }
.metric > small { color: var(--muted); margin-top: auto; }
.urgent-metric { background: #fff6f2; border-color: #f4ddd2; }
.urgent-metric:hover { border-color: #c88679; }
.urgent-metric:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.urgent-metric > strong { color: #9a3a28; }
.coverage-metric { background: #f0edff; border-color: #e5dcff; }

.panel { min-width: 0; padding: 21px 23px; }
.panelhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
h2 { font-size: 22px; line-height: 1.22; letter-spacing: -.032em; }
.panelhead p { color: var(--muted); margin-top: 5px; font-size: 14px; }
.count, .score-coverage {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 9px;
    background: var(--violet-wash);
    color: #49348f;
    font-size: 13px;
    font-weight: 700;
}
.score-coverage { white-space: nowrap; }
.task {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.taskdot { width: 7px; height: 7px; margin-top: 8px; background: #725cca; border-radius: 50%; }
.taskdot.urgent { background: #c25439; }
.taskdot.overdue { background: #ae741e; }
.task h3 { font-size: 16px; overflow-wrap: anywhere; }
.topic { color: var(--violet); text-decoration: none; font-weight: 650; font-size: 13px; }
.topic:hover { text-decoration: underline; }
.task p, .taskmeta span, .empty { color: var(--muted); font-size: 14px; }
.taskmeta { text-align: right; font-size: 13px; }
.taskmeta span { display: block; margin-top: 3px; }
.taskdate { display: inline-block; padding: 2px 6px; border-radius: 6px; background: #f0edf8; }
.taskdate.urgent { background: #fceee8; color: #903421; }
.taskdate.overdue { background: #fbf1db; color: #79510e; }
.notice { color: #473786; background: #eee9ff; padding: 11px 14px; border-radius: 10px; margin-bottom: 12px; }
.empty { padding: 10px 0; }
.sources div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 11px 0; }
.sources dd { font-weight: 700; text-align: right; }

.report { margin-top: 16px; }
.tablewrap { overflow: auto; scrollbar-width: thin; scrollbar-color: #bfb6d5 #f4f1fa; }
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 555px; text-align: left; }
td, th { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { color: var(--muted); background: #f7f5fc; font-size: 13px; }
thead th:first-child { border-top-left-radius: 9px; }
thead th:last-child { border-top-right-radius: 9px; }
tbody tr:hover { background: #f9f7ff; }
tbody tr:last-child > * { border-bottom: 0; }
td small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.badge { display: inline-block; color: #453875; background: #f1edf9; border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 630; }
.badge.matched { color: #205c48; background: #e8f5ef; }
.badge.different, .badge.warn { color: #834a20; background: #fff0dd; }

.scoreboard { margin-bottom: 16px; }
.scoreboard .tablewrap { max-height: 378px; border: 1px solid var(--line); border-radius: 10px; }
.scoreboard table { min-width: 690px; }
.scoreboard thead th { position: sticky; z-index: 1; top: 0; }
.scoreboard tbody th { width: 33%; font-size: 14px; font-weight: 660; }
.scoreboard tbody td { font-variant-numeric: tabular-nums; }
.scoreboard tbody td:last-child { width: 26%; color: var(--muted); font-size: 13px; }
.scoreboard tbody a { text-decoration: none; text-underline-offset: 3px; }
.scoreboard tbody a:hover { color: var(--violet); text-decoration: underline; }
.scorevalue { color: #3b298e; font-size: 21px; line-height: 1.1; letter-spacing: -.03em; }

progress { appearance: none; display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; background: #eeeaf8; overflow: hidden; accent-color: #6753ce; }
progress::-webkit-progress-bar { background: #eeeaf8; border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg,#5945bc,#9079e9); border-radius: 999px; }
progress::-moz-progress-bar { background: #6753ce; }
.progress-label, .bar > div { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin: 12px 0 7px; }
.progress-label strong { color: #392980; font-size: 26px; }
.bar { color: var(--body); font-size: 14px; }

@media (max-width: 850px) {
    .content-grid { grid-template-columns: 1fr; }
    .metric { padding: 12px 14px; }
    .scoreboard table { min-width: 635px; }
}
@media (max-width: 650px) {
    .menu-toggle { display: inline-flex; }
    .scoreboard .tablewrap { max-height: none; }
    .scoreboard table { min-width: 0; }
    .scoreboard thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .scoreboard tbody tr { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 8px 5px; align-items: start; border-bottom: 1px solid var(--line); padding: 11px; }
    .scoreboard tbody tr:last-child { border-bottom: 0; }
    .scoreboard tbody th, .scoreboard tbody td { width: auto !important; padding: 0; border: 0; min-width: 0; }
    .scoreboard tbody th, .scoreboard .score-check { grid-column: 1 / -1; }
    .scoreboard tbody td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; font-weight: 650; }
    .scoreboard .source-score { font-weight: 650; }
    .scorevalue { font-size: 18px; }
}
@media (max-width: 520px) {
    :root { --rail-width: 54px; }
    .rail { padding: 12px 5px; }
    .nav-icon, .brandmark { width: 32px; height: 32px; }
    main { padding: 15px 12px 40px; }
    .hero { padding: 20px 15px; gap: 17px; border-radius: 17px; }
    .hero::after { right: -260px; opacity: .48; }
    .hero-subject h1 { font-size: 31px; }
    button, .button { min-height: 40px; padding-inline: 10px; font-size: 13px; }
    .metrics { grid-template-columns: 1fr; gap: 7px; }
    .metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; }
    .metric > strong { grid-row: 1 / 3; grid-column: 2; margin: 0; }
    .metric > small { grid-column: 1; }
    .panel { padding: 14px; }
    .panelhead { flex-wrap: wrap; gap: 7px; }
    .taskmeta { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .rail { transition: none; } }

