:root {
  --navy: #1d2448;
  --navy-deep: #171d3b;
  --red: #c9272c;
  --red-hover: #ad1e23;
  --ink: #242b4f;
  --muted: #6d7286;
  --paper: #fbfcfe;
  --line: #e4e6ed;
  --soft-blue: #f1f3f9;
  --shadow: 0 12px 34px rgba(29, 36, 72, .07);
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif; line-height: 1.6;
}
a { color: var(--navy); }
.site-header { background: var(--navy); color: #fff; }
.site-header-inner {
  min-height: 112px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 20px; color: #fff; text-decoration: none; min-width: 0; }
.brand-mark { width: 72px; height: 72px; object-fit: contain; flex: 0 0 auto; }
.brand-copy { display: flex; flex-direction: column; }
.brand-title {
  font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(1rem, 2.3vw, 1.55rem);
  line-height: 1.3; font-weight: 700; text-transform: uppercase; letter-spacing: .015em;
}
.brand-subtitle { color: #c7c9d7; font-size: .94rem; }
.header-meta { color: #c7c9d7; font-size: .82rem; white-space: nowrap; }
.app-nav { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.09); }
.nav-inner { display: flex; align-items: center; gap: 28px; min-height: 48px; flex-wrap: wrap; }
.nav-inner a { color: #f5f5fa; text-decoration: none; font-family: "Libre Baskerville", Georgia, serif; font-size: .9rem; }
.nav-inner a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.nav-spacer { flex: 1; }
.nav-login, .nav-signout { background: var(--red); border: 1px solid var(--red); border-radius: 7px; color: white !important; padding: 7px 15px; font-family: "DM Sans", Arial, sans-serif !important; }
.nav-login:hover, .nav-signout:hover { background: var(--red-hover); text-decoration: none !important; }
.nav-signout { font-size: .88rem; cursor: pointer; }
.page-shell { min-height: 65vh; padding-top: 42px; padding-bottom: 56px; }
h1, h2, h3, .display-6 { color: var(--navy); }
h1, .display-6 { font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; letter-spacing: -.025em; }
h2, h3 { font-weight: 700; }
.hero {
  position: relative; overflow: hidden; background: linear-gradient(125deg, #f5f6fb 0%, #fff 76%);
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
}
.hero:before { content: ""; position: absolute; width: 7px; inset: 0 auto 0 0; background: var(--red); }
.eyebrow { color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.7rem); line-height: 1.14; max-width: 760px; margin: 0 0 20px; }
.hero .lead { color: #343a5d; max-width: 760px; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.btn-primary { --bs-btn-bg: var(--red); --bs-btn-border-color: var(--red); --bs-btn-hover-bg: var(--red-hover); --bs-btn-hover-border-color: var(--red-hover); --bs-btn-active-bg: var(--red-hover); --bs-btn-active-border-color: var(--red-hover); }
.btn-outline-primary { --bs-btn-color: var(--navy); --bs-btn-border-color: #b9bfd2; --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy); }
.btn { border-radius: 8px; font-weight: 600; padding: .7rem 1.15rem; }
.panel, .feature-card, .stat-card, .card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 5px 20px rgba(29,36,72,.045);
}
.feature-card { padding: 1.45rem; height: 100%; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-card h2 { font-size: 1.12rem; }
.feature-card h2:before { content: ""; display: block; width: 34px; height: 4px; border-radius: 2px; background: var(--red); margin-bottom: 17px; }
.stat-card { padding: 1.25rem; height: 100%; }
.stat-label { color: var(--muted); font-size: .9rem; }
.stat-value { font-size: 2rem; font-weight: 750; margin: .2rem 0; color: var(--navy); }
.eyebrow + h1, .eyebrow + h2 { margin-top: .25rem; }
.form-label { font-weight: 600; color: var(--navy); }
.form-control, .form-select { border-color: #cbd0df; border-radius: 8px; min-height: 44px; }
.form-control:focus, .form-select:focus { border-color: var(--red); box-shadow: 0 0 0 .2rem rgba(201,39,44,.12); }
.form-check-input:checked { background-color: var(--red); border-color: var(--red); }
.table { --bs-table-bg: transparent; }
.table thead th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; border-bottom-color: var(--line); }
.badge { font-weight: 600; }
.alert { border-radius: 10px; }
.site-footer { border-top: 1px solid var(--line); background: #f4f5f9; color: var(--muted); padding: 22px 0 18px; font-size: .86rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; color: var(--navy); font-weight: 600; }
.footer-note { padding-top: 7px; font-size: .78rem; }
@media (max-width: 767px) {
  .site-header-inner { min-height: 92px; }
  .brand-lockup { gap: 12px; }
  .brand-mark { width: 54px; height: 54px; }
  .brand-title { font-size: .95rem; }
  .brand-subtitle { font-size: .78rem; }
  .header-meta { display: none; }
  .nav-inner { gap: 15px; padding-top: 10px; padding-bottom: 10px; }
  .nav-inner a { font-size: .8rem; }
  .page-shell { padding-top: 26px; padding-bottom: 38px; }
  .hero { border-radius: 14px; }
  .footer-inner { flex-direction: column; gap: 2px; }
}

.reminder-strip { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 18px; background:#f1f3f9; border:1px solid #dfe3ef; border-left:4px solid var(--red); border-radius:10px; }
.range-value { min-width: 1.5rem; font-weight:700; color:var(--navy); text-align:center; }
@media (max-width:575px) { .reminder-strip { align-items:flex-start; flex-direction:column; } }
