:root { --gold:#D4A247; --gold-dark:#8F6A22; --dark:#454545; --med:#6B6B6B; --line:#E8E1D2; --bg:#FAF7F0; --card:#fff; --green:#1F8A4C; --red:#C0392B; }
* { box-sizing:border-box; }
body { margin:0; font-family:Nunito, system-ui, sans-serif; background:var(--bg); color:var(--dark); }
[hidden] { display:none !important; }
header.top { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:14px 24px; background:#fff; border-bottom:4px solid var(--gold); }
header.top img { height:56px; }
header.top h1 { margin:0; font-size:1.5rem; font-weight:900; }
header.top .sub { color:var(--med); font-weight:600; }
header.top .right { margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
main { max-width:1200px; margin:0 auto; padding:22px 16px 48px; }
.card { background:var(--card); border-radius:16px; padding:20px 22px; box-shadow:0 2px 10px rgba(0,0,0,.06); margin-bottom:20px; }
.card h2 { margin:0 0 12px; font-size:1.2rem; font-weight:900; }
.narrow { max-width:440px; margin:20px auto; }
label.field { display:block; font-weight:800; margin-bottom:14px; }
label.field input, label.field select { display:block; width:100%; margin-top:6px; padding:11px 12px; font:inherit; font-weight:600; border:2px solid var(--line); border-radius:10px; background:#fff; color:var(--dark); }
label.field input:focus, label.field select:focus { outline:none; border-color:var(--gold); }
button { font:inherit; font-weight:800; border:2px solid var(--line); background:#fff; color:var(--dark); border-radius:10px; padding:8px 14px; cursor:pointer; }
button:hover { border-color:var(--gold); }
button:disabled { opacity:.55; cursor:default; }
button.primary { background:var(--gold-dark); border-color:var(--gold-dark); color:#fff; }
button.danger { color:var(--red); }
button.wide { width:100%; padding:12px; }
.error { color:var(--red); font-weight:800; min-height:1.3em; margin:0 0 10px; }
.muted { color:var(--med); font-weight:600; }
a.plain { color:var(--gold-dark); font-weight:800; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.chips button { padding:5px 12px; border-radius:999px; }
.chips button[aria-pressed=true] { background:var(--gold-dark); border-color:var(--gold-dark); color:#fff; }
.stats { font-weight:800; margin-bottom:10px; }
.table-wrap { overflow-x:auto; }
table { border-collapse:collapse; width:100%; min-width:760px; }
th, td { text-align:left; padding:9px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { font-size:.85rem; color:var(--med); }
td.num { font-variant-numeric:tabular-nums; white-space:nowrap; }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; background:#BBB; }
.dot.on { background:var(--green); }
tr.off td { color:var(--med); }
.grade-box { border:1px solid var(--line); border-radius:12px; margin-bottom:10px; background:#fff; }
.grade-box summary { padding:12px 14px; cursor:pointer; font-weight:900; }
.grade-box summary small { font-weight:600; color:var(--med); margin-left:8px; }
.grade-body { padding:0 14px 14px; }
.row-tools { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }
.row-tools input { font:inherit; font-weight:800; padding:7px 10px; border:2px solid var(--line); border-radius:10px; width:130px; letter-spacing:.06em; }
.tab-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--line); flex-wrap:wrap; }
.tab-row .name { font-weight:700; flex:1 1 220px; }
.tab-row .state { font-size:.85rem; font-weight:800; color:var(--med); }
.tab-row .state.sent { color:var(--green); }
.code-note { background:#FFF4DE; border:1px solid var(--gold); border-radius:10px; padding:10px 12px; margin:10px 0; font-weight:700; }
@media (max-width:600px) { header.top { padding:12px 16px; } header.top h1 { font-size:1.2rem; } header.top img { height:42px; } }
