:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #65717f;
  --line: #d9e0e7;
  --paper: #f5f7fa;
  --surface: #ffffff;
  --navy: #142f4c;
  --navy-2: #1d466b;
  --red: #b52830;
  --red-dark: #871f26;
  --green: #16805d;
  --amber: #b97812;
  --shadow: 0 14px 32px rgba(20, 47, 76, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #e2a62d; outline-offset: 2px; }
.shell { min-height: 100vh; }
.loading-screen, .centered { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); }
.brand-panel { background: linear-gradient(145deg, #102942 0%, #1c4a70 100%); color: #fff; padding: clamp(32px, 7vw, 96px); display: flex; flex-direction: column; justify-content: space-between; }
.brand-mark { display: flex; align-items: center; gap: 14px; font-weight: 750; letter-spacing: .06em; }
.mark-box { width: 40px; height: 40px; border: 2px solid rgba(255,255,255,.72); display: grid; place-items: center; border-radius: 8px; font-weight: 850; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 800; opacity: .7; }
.brand-panel h1 { max-width: 670px; font-size: clamp(42px, 6vw, 78px); line-height: .98; margin: 24px 0; letter-spacing: -.055em; }
.brand-panel p { max-width: 540px; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.6; }
.brand-footer { font-size: 12px; color: rgba(255,255,255,.56); }
.login-panel { background: var(--surface); display: flex; align-items: center; padding: clamp(24px, 6vw, 90px); }
.auth-card { width: min(420px, 100%); margin: auto; }
.auth-card h2 { margin: 10px 0 8px; color: var(--navy); font-size: 30px; }
.auth-card > p { color: var(--muted); line-height: 1.55; }
.form-stack { display: grid; gap: 15px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 750; color: var(--navy); }
.field input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; background: #fff; color: var(--ink); }
.primary-btn, .secondary-btn, .link-btn { border: 0; border-radius: 8px; padding: 12px 16px; font-weight: 750; transition: transform .15s ease, background .15s ease; }
.primary-btn { background: var(--red); color: #fff; }
.primary-btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.secondary-btn { background: #eaf0f5; color: var(--navy); }
.link-btn { background: transparent; color: var(--red); padding-left: 0; padding-right: 0; }
.form-note { color: var(--muted); font-size: 12px; }
.notice { border-radius: 8px; padding: 11px 13px; font-size: 13px; line-height: 1.45; margin-top: 16px; }
.notice.error { background: #fff0f0; color: #8c2028; border: 1px solid #f0c5c8; }
.notice.success { background: #ecf8f2; color: #0d684a; border: 1px solid #b6e2ce; }
.app-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { width: min(1240px, calc(100% - 36px)); margin: auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 850; letter-spacing: .04em; }
.nav-brand .mark-box { border-color: var(--navy); color: var(--navy); width: 34px; height: 34px; }
.user-chip { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; text-align: right; }
.user-chip strong { color: var(--navy); display: block; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.dashboard { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 42px 0 72px; }
.hero-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.hero-row h1 { color: var(--navy); font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; margin: 8px 0; }
.hero-row p { color: var(--muted); margin: 0; }
.status-banner { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 6px solid var(--amber); border-radius: 10px; padding: 21px 24px; margin-bottom: 30px; }
.status-banner strong { color: var(--navy); font-size: 17px; }
.status-banner p { color: var(--muted); margin: 6px 0 0; }
.section-label { display: flex; justify-content: space-between; align-items: center; color: var(--navy); margin: 30px 0 14px; }
.section-label h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portal-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; min-height: 186px; display: flex; flex-direction: column; box-shadow: 0 5px 18px rgba(20,47,76,.04); }
.portal-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.portal-card h3 { margin: 0; color: var(--navy); font-size: 18px; }
.portal-card p { color: var(--muted); line-height: 1.45; font-size: 13px; margin: 9px 0 18px; }
.dot-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.dot-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.portal-actions { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.portal-actions a { color: var(--red); font-size: 13px; font-weight: 800; text-decoration: none; }
.portal-actions .secondary-btn { padding: 8px 11px; font-size: 12px; }
.two-col { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; margin-top: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 21px; }
.panel h3 { color: var(--navy); margin: 0 0 12px; font-size: 16px; }
.empty-state { border: 1px dashed #c9d2dc; border-radius: 8px; padding: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 7px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.admin-view { margin-top: 30px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 920px) { .login-shell { grid-template-columns: 1fr; } .brand-panel { min-height: 340px; padding: 34px; } .brand-panel h1 { font-size: 48px; } .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two-col { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .header-inner, .dashboard { width: min(100% - 28px, 1240px); } .header-inner { min-height: 66px; } .user-chip > div { display: none; } .hero-row { display: block; } .hero-row .secondary-btn { margin-top: 18px; } .portal-grid { grid-template-columns: 1fr; } .dashboard { padding-top: 28px; } .brand-panel { min-height: 300px; } .brand-panel h1 { font-size: 42px; } }
