 :root {
    color-scheme: light;
    --ink: #263445;
    --muted: #667487;
    --blue: #173d63;
    --blue2: #245783;
    --paper: #f3f6f9;
    --line: #dce3ea;
    --white: #fff;
    --danger: #a52b2b;
    --success: #24633d;
}
* { box-sizing: border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
header { background:var(--blue); color:white; padding:22px 18px; }
.wrap { width:min(980px,calc(100% - 32px)); margin:0 auto; }
header h1 { margin:0; font-size:1.55rem; font-weight:650; }
header p { margin:5px 0 0; color:#d9e5ef; }
main { padding:30px 0 48px; }
.panel { background:var(--white); border:1px solid var(--line); border-radius:12px; padding:24px; box-shadow:0 5px 18px rgba(28,48,68,.05); }
.login-panel { max-width:470px; margin:28px auto; }
h2 { margin:0 0 18px; font-size:1.25rem; }
h3 { margin-top:0; }
label { display:block; font-weight:600; margin:14px 0 6px; }
input { display:block; width:100%; padding:12px 13px; border:1px solid #bdc9d5; border-radius:7px; font:inherit; background:white; }
input:focus { outline:3px solid #d5e6f5; border-color:var(--blue2); }
button { border:0; border-radius:7px; padding:11px 17px; background:var(--blue2); color:white; font:inherit; font-weight:650; cursor:pointer; }
button:hover { filter:brightness(1.08); }
.login-button { width:100%; margin-top:20px; }
.form-button { margin-top:14px; }
.message { border-radius:7px; padding:11px 13px; margin:0 0 16px; background:#fbeeee; color:var(--danger); }
.notice { background:#edf7f0; color:var(--success); }
.topline { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.topline p { margin:4px 0 0; color:var(--muted); }
.role { display:inline-block; margin-top:8px; padding:3px 9px; border-radius:20px; background:#e7eef5; color:var(--blue); font-size:.85rem; font-weight:650; }
.subject-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; margin-top:22px; }
.subject { border:1px solid var(--line); border-radius:9px; padding:17px; background:#fff; }
.subject h3 { margin:0 0 7px; color:var(--blue); font-size:1.08rem; }
.subject p { margin:0; color:var(--muted); }
.subject-action { margin-top:14px !important; }
.empty { border:1px dashed #bdc9d5; border-radius:9px; padding:22px; color:var(--muted); margin-top:20px; }
.logout { background:#5d6b79; }
.foot { color:var(--muted); text-align:center; font-size:.85rem; margin-top:24px; }
.main-menu { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.menu-link { display:inline-block; padding:9px 13px; border-radius:7px; background:#fff; border:1px solid var(--line); color:var(--blue); text-decoration:none; font-weight:650; }
.menu-link:hover { background:#eaf1f7; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; margin-top:12px; }
th,td { padding:10px 9px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { background:#f5f8fa; color:var(--blue); }
.section-title { margin-top:28px; padding-top:20px; border-top:1px solid var(--line); }
.muted { color:var(--muted); }
.back-link { margin-top:20px; }
@media(max-width:520px) { .panel{padding:19px;} header h1{font-size:1.3rem;} }
.document-card{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:9px;background:#fff}.document-card h3{color:var(--blue);margin:0 0 8px}.document-card h4{margin:22px 0 8px}.document-card form{padding:10px 0}
