* { box-sizing: border-box; }
:root {
    --navy: #10233f;
    --blue: #1f5f9f;
    --green: #247a52;
    --red: #a63d40;
    --gold: #d8a33b;
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #1e2933;
    --muted: #66717d;
    --border: #d9e0e7;
}
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: var(--blue); }
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: var(--navy); color: white; }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: white; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.main-nav { display: flex; align-items: center; gap: 16px; }
.main-nav a { color: white; text-decoration: none; }
.menu-toggle { display: none; background: none; border: 0; color: white; font-size: 1.5rem; }
.main-content { padding: 32px 0 56px; }
.site-footer { padding: 22px 0; background: #e9edf1; color: var(--muted); font-size: .9rem; }
.testing-banner { background: #fff0b3; color: #5d4600; text-align: center; padding: 9px 16px; font-weight: 800; letter-spacing: .04em; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(16,35,63,.04); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; }
h1 { margin-top: 0; }
label { display: block; font-weight: 700; margin: 0 0 6px; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid #bfc9d4; border-radius: 8px; font: inherit; background: white; }
.form-row { margin-bottom: 16px; }
button, .button { display: inline-block; border: 0; border-radius: 8px; padding: 11px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--blue); color: white; }
.button.secondary { background: #6c7782; }
.button.success { background: var(--green); }
.button.danger { background: var(--red); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; }
.flash.success { background: #e2f4e9; color: #145c36; }
.flash.error { background: #fbe5e5; color: #7d2528; }
.flash.info { background: #e5eef9; color: #1d4d80; }
.stat { font-size: 2rem; font-weight: 800; color: var(--navy); }
.list { margin: 0; padding-left: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--navy); }
.notice { border-left: 4px solid var(--gold); padding: 12px 16px; background: #fff9e9; }
.auth-card { max-width: 520px; margin: 20px auto; }
@media (max-width: 700px) {
    .grid { grid-template-columns: 1fr; }
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--navy); padding: 14px 16px; flex-direction: column; align-items: flex-start; z-index: 10; }
    .main-nav.open { display: flex; }
}
