* { box-sizing: border-box }
:root { color-scheme: light; --ink: #292626; --amber: #ffb20d; --line: #dfdad3; --muted: #595450; font: 16px/1.5 "Segoe UI", Arial, sans-serif }
body { margin: 0; color: var(--ink); background: #faf9f7 }
.brand-line { height: 9px; background: linear-gradient(90deg,#ffab06,#ffd128) }
.shell { width: min(1150px, calc(100% - 36px)); margin: 28px auto 0 }
.masthead { background: var(--ink); color: white; border-radius: 12px; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px }
.brand { font-size: 1.85rem; font-weight: 900; letter-spacing: .05em }
.brand span { color: var(--amber) }
.brand small { font-size: .875rem; font-weight: 500; letter-spacing: 0; margin-left: 9px }
h1,h2,h3,p { margin: 0 0 .7em }
h1 { margin-top: 0; font-size: clamp(2.15rem, 5vw, 3.75rem); line-height: 1.02; letter-spacing: -.052em; max-width: 16ch }
h2 { line-height: 1.16; letter-spacing: -.025em }
.eyebrow { color: #785100; font-size: .875rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase }
.intro { max-width: 68ch; color: var(--muted); font-size: 1.08rem }
nav { margin: 18px 0 30px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
button, input, textarea, select { font: inherit }
button { color: var(--ink); cursor: pointer; background: var(--amber); border: 1px solid transparent; border-radius: 6px; padding: 8px 14px; font-weight: 700 }
button.alt, nav button { background: white; border-color: var(--line) }
button.teacher { color: white; background: transparent; border-color: #8d8580 }
nav button[aria-current="step"] { background: #fff2cd; border-color: #b47800 }
button:disabled { opacity: .53; cursor: default }
:focus-visible { outline: 3px solid #9d6100; outline-offset: 3px }
.card { padding: clamp(15px, 3vw, 26px); border: 1px solid var(--line); border-radius: 13px; background: white; margin: 16px 0 }
.card.accent { border-color: #db970e; background: #fffbef }
.layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(245px,1fr); gap: 20px; align-items: start }
.fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px }
label { display: grid; gap: 5px; margin: 9px 0 15px; font-weight: 650 }
input, textarea, select { width: 100%; padding: 8px 10px; color: var(--ink); background: white; border: 1px solid #9f9890; border-radius: 6px }
textarea { min-height: 84px; resize: vertical }
.scroll { overflow: auto }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums }
th,td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right }
th:first-child,td:first-child { text-align: left }
thead { background: #f4f1eb }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px }
.hint { color: var(--muted) }
.badge { background: #f5eee1; padding: 4px 9px; border-radius: 6px; font-weight: 650 }
#notice:not(:empty) { margin-top: 14px; padding: 10px 15px; border-left: 4px solid #af7300; background: #fff0c7 }
footer { margin: 34px 0; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px }
main { margin-top: 28px }
.break { overflow-wrap: anywhere }
pre { white-space: pre-wrap }
@media(max-width:720px) { .layout { grid-template-columns: 1fr; gap: 0 } .fields { grid-template-columns: 1fr } .masthead { padding: 12px; flex-wrap: wrap } }
@media print { .masthead button, nav, .actions, footer, #notice { display: none } body,.card { background: white } .shell { width: 100%; margin: 0 } .masthead { color: black; background: white; padding: 0 } h1 { font-size: 34px } .card { break-inside: avoid } }
