:root { color-scheme: light; font: 15px/1.5 system-ui, sans-serif; color: #202638; background: #eef1f8; --ink: #24324f; --accent: #364b82; --line: #bdc7df; --muted: #4c5670; --wash: #e8edf8; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 71rem; margin: auto; padding: clamp(.85rem, 4vw, 2.65rem); }
header { border-bottom: 3px solid var(--accent); margin-bottom: 1rem; padding: .25rem 0 .85rem; }
h1, h2, h3, p { margin: 0; }
h1 { line-height: 1.1; color: var(--ink); font-size: clamp(1.9rem, 5vw, 3.4rem); letter-spacing: -.045em; }
h2 { font-size: 1.25rem; }
header p, .help, #summary { color: var(--muted); margin-top: .35rem; }
.panel { background: #fcfdff; border: 1px solid var(--line); border-radius: .7rem; padding: clamp(.8rem, 3vw, 1.35rem); margin-bottom: 1rem; min-width: 0; }
.panel-top, .actions, .exports { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; }
.panel-top { justify-content: space-between; margin-bottom: .6rem; }
.actions { margin-top: .65rem; }
button, select, input, textarea { font: inherit; max-width: 100%; }
label { display: block; font-weight: 600; }
label.file { margin: .65rem 0 .55rem; }
input[type="file"] { display: block; }
textarea { display: block; width: 100%; min-width: 0; resize: vertical; font-family: Consolas, monospace; }
select, textarea, input[type="text"] { border: 1px solid #849daf; border-radius: .35rem; padding: .4rem .5rem; background: #fff; color: var(--ink); }
button { cursor: pointer; border: 1px solid var(--accent); border-radius: .4rem; padding: .46rem .75rem; background: var(--accent); color: #fff; font-weight: 650; }
button.secondary { background: var(--wash); color: var(--ink); border-color: var(--line); }
button:disabled { opacity: .56; cursor: default; }
:focus-visible { outline: 2px solid #005ea2; outline-offset: 2px; }
details { margin: .45rem 0; }
details p { margin-top: .45rem; overflow-wrap: anywhere; }
summary { cursor: pointer; color: var(--ink); font-weight: 650; }
[role="status"]:empty, [role="alert"]:empty { display: none; }
[role="alert"] { color: #98292c; margin-top: .4rem; }
.settings { align-items: flex-end; }
.settings label { min-width: 0; max-width: 100%; }
.settings select, .settings input { display: block; max-width: min(21rem, 100%); }
.category-bar { margin-top: 1.1rem; }
.grade-category { min-width: 0; margin: .7rem 0; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .45rem; }
.grade-category legend { color: var(--ink); font-weight: 650; }
.category-controls { margin-top: 0; }
.category-weight, .assignment input { width: 8.5rem; }
.assignment { padding-bottom: .55rem; }
.add-assignment { margin-top: .25rem; }
#issue-panel, #class-panel { margin-top: 1rem; }
.table-wrap { max-width: 100%; max-height: 28rem; min-width: 0; overflow: auto; margin: .55rem 0; }
table { width: 100%; border-spacing: 0; min-width: 19rem; font-variant-numeric: tabular-nums; text-align: right; }
th, td { padding: .4rem .6rem; border-bottom: 1px solid var(--line); }
thead th { position: sticky; top: 0; background: var(--wash); }
th:first-child, td:first-child { text-align: left; overflow-wrap: anywhere; max-width: 15rem; }
tbody th { font-weight: 560; }
#issues td:last-child { text-align: left; }
#external { margin-top: .5rem; }
footer { display: flex; gap: 1rem; flex-wrap: wrap; }
a { color: var(--accent); }
