:root {
  --navy: #1e3a5f;
  --navy-dark: #142b47;
  --ink: #17202b;
  --muted: #667384;
  --line: #dde4eb;
  --bg: #f3f6f8;
  --white: #fff;
  --shadow: 0 10px 30px rgba(30, 58, 95, .07);
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-inner { width: min(1160px, calc(100% - 32px)); margin: 0 auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 800; }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 1.08rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .68rem; margin-top: 3px; }
.site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 12px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav.is-open { display: flex; flex-direction: column; gap: 3px; }
.site-nav a { padding: 10px 8px; text-decoration: none; color: #435365; font-size: .94rem; font-weight: 600; border-radius: 7px; }
.site-nav a:hover, .site-nav a:focus { color: var(--navy); background: #f0f4f8; }
.nav-toggle { border: 0; background: transparent; padding: 8px; width: 42px; height: 42px; cursor: pointer; display: grid; place-content: center; gap: 4px; }
.nav-toggle > span:not(.sr-only) { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.main-content { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 64px; min-height: calc(100vh - 130px); }
.hero, .page-intro { max-width: 700px; margin-bottom: 28px; }
.eyebrow { color: var(--navy); font-size: .73rem; font-weight: 800; letter-spacing: .1em; margin: 0 0 8px; text-transform: uppercase; }
h1 { color: var(--navy-dark); font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.035em; line-height: 1.14; margin: 0 0 12px; }
h2 { color: var(--navy-dark); line-height: 1.25; }
.lede { color: var(--muted); font-size: 1.04rem; max-width: 650px; margin: 0; }
.card-grid, .report-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.portal-card, .report-card, .card-surface, .auth-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.portal-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 21px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.portal-card:hover, .report-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(30, 58, 95, .12); }
.card-icon { color: var(--navy); background: #eaf0f6; border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.3rem; }
.portal-card strong, .portal-card small, .report-card strong, .report-card small { display: block; }
.portal-card strong, .report-card strong { color: var(--navy-dark); font-size: 1.03rem; }
.portal-card small, .report-card small { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.card-arrow { color: var(--navy); font-size: 1.3rem; }
.report-card { padding: 21px; text-decoration: none; min-height: 190px; display: flex; flex-direction: column; }
.report-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.text-link { color: var(--navy); font-size: .84rem; font-weight: 700; margin-top: auto; padding-top: 18px; }
.auth-card { width: min(100%, 470px); margin: 30px auto; padding: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; padding: 10px 16px; text-decoration: none; font-weight: 700; border: 1px solid transparent; }
.button-primary { color: #fff; background: var(--navy); }
.button-primary:hover { background: var(--navy-dark); }
.button-secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.button-wide { width: 100%; margin-top: 24px; }
.help-text { color: var(--muted); font-size: .8rem; margin: 17px 0 0; }
.alert { background: #eef4f8; border: 1px solid #cbdce9; border-radius: 8px; color: #38516a; font-size: .9rem; padding: 12px 14px; margin-top: 20px; }
.alert-error { background: #fff3f1; border-color: #f0c6c0; color: #8d3328; }
code { background: #edf1f5; border-radius: 4px; padding: 1px 4px; font-size: .9em; }
.empty-state { padding: 36px 24px; text-align: center; max-width: 680px; }
.empty-state p { color: var(--muted); }
.empty-icon { display: grid; place-items: center; margin: 0 auto 10px; color: var(--navy); font-size: 2rem; }
.report-toolbar { margin: -18px 0 20px; }
.back-link { color: var(--navy); font-size: .88rem; font-weight: 700; text-decoration: none; }
.report-content { overflow-x: auto; }
.nav-divider { display: none; }
.user-email { color: var(--muted); font-size: .78rem; padding: 8px; }
.logout-link { color: var(--navy) !important; }
.site-footer { color: #8693a1; font-size: .75rem; text-align: center; padding: 18px 16px 28px; }
@media (min-width: 700px) {
  .header-inner { min-height: 78px; }
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; align-items: center; gap: 3px; padding: 0; border: 0; box-shadow: none; }
  .site-nav a { padding: 8px 10px; }
  .nav-divider { display: block; height: 22px; width: 1px; background: var(--line); margin: 0 8px; }
  .main-content { padding-top: 58px; }
  .card-grid, .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-card { min-height: 130px; }
}
