:root {
    color-scheme: light;
    --background: #f3f6fb;
    --surface: #ffffff;
    --text: #1d2b43;
    --muted: #67748a;
    --line: #dfe6f0;
    --primary: #285bd5;
    --danger: #b72b3a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font: 15px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
header { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 18px 4%; background: #152642; color: white; }
header a { color: white; text-decoration: none; }
header .brand { font-size: 20px; font-weight: 800; }
header nav { display: flex; flex-wrap: wrap; gap: 18px; margin-right: auto; }
header form { margin: 0; }
header button { margin: 0; background: #314763; }
main { width: min(1120px, 92%); margin: 36px auto; }
h1 { font-size: clamp(25px, 4vw, 36px); line-height: 1.25; overflow-wrap: anywhere; }
h2 { font-size: 21px; margin-top: 0; }
h3 { margin: 8px 0; overflow-wrap: anywhere; }
a { color: var(--primary); }
section { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 18px 0; box-shadow: 0 4px 20px #172b4d05; }
section.narrow { max-width: 520px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.grid section { margin: 0; }
label { display: block; margin: 14px 0; font-weight: 600; }
input, textarea, select { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid #cbd5e3; border-radius: 8px; background: white; color: var(--text); font: inherit; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid #285bd525; border-color: var(--primary); }
button { padding: 11px 18px; border: 0; border-radius: 8px; background: var(--primary); color: white; font: inherit; font-weight: 650; cursor: pointer; margin-top: 8px; }
button:hover { filter: brightness(1.08); }
button.danger { background: var(--danger); }
small, footer { color: var(--muted); }
footer { text-align: center; padding: 24px; }
article { padding: 18px 0; border-bottom: 1px solid var(--line); }
article:last-child { border-bottom: 0; }
.body { white-space: pre-wrap; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; background: #e9efff; color: #2d52a5; font-size: 12px; font-weight: 700; }
.notice { padding: 16px 20px; margin: 18px 0; background: #e7f5ec; border: 1px solid #b9dfc7; border-radius: 10px; color: #235938; }
.error { background: #fff0f1; border-color: #edbec5; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); }
details { margin-top: 20px; }
summary { cursor: pointer; color: var(--muted); }
@media (max-width: 650px) {
    header { align-items: flex-start; gap: 14px; }
    header nav { width: 100%; }
    header span { overflow-wrap: anywhere; }
    section { padding: 18px; }
}
