/* APAS — NAC institutional theme (management presentation quality) */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/source-sans-3-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/source-serif-4-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/source-serif-4-700.woff2") format("woff2");
}

:root {
  /* 2025 Northern Province PVT Data Deep Dive palette */
  --green-dark: #0b8f63;
  --green: #0e9e6e;
  --green-mid: #10b981;
  --green-pale: #e6f9f1;
  --orange: #d4a843;
  --orange-soft: #f7efd9;
  --ink: #1a1a2e;
  --muted: #6b7280;
  --line: #d1d5db;
  --paper: #e8f0ec;
  --card: #ffffff;
  --red: #c8102e;
  --amber: #d4a843;
  --blue: #1a3a6b;
  --navy: #1a3a6b;
  --navy-tint: #e6edf6;
  --surface: #f3f4f6;
  --charcoal: #373b44;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(26, 26, 46, .05), 0 8px 24px rgba(26, 58, 107, .07);
  --shadow-lg: 0 12px 40px rgba(26, 26, 46, .16);
  --font-ui: "Source Sans 3", Candara, Calibri, "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Constantia, "Palatino Linotype", Georgia, serif;
  --sidebar-w: 268px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background:
    radial-gradient(1100px 480px at 88% -8%, rgba(16, 185, 129, .16), transparent 55%),
    radial-gradient(900px 420px at -8% 18%, rgba(26, 58, 107, .10), transparent 52%),
    radial-gradient(700px 360px at 50% 100%, rgba(212, 168, 67, .07), transparent 55%),
    linear-gradient(180deg, #e6f9f1 0%, var(--paper) 38%, var(--surface) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background:
    linear-gradient(165deg, rgba(16, 185, 129, .22) 0%, transparent 36%),
    linear-gradient(180deg, #1a3a6b 0%, #143056 42%, #0f243f 100%);
  color: #eef4fb;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand-logo {
  width: 48px; height: 48px; flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 4px 12px rgba(0,0,0,.22);
}
.brand-mark {
  background: var(--green-mid); color: #fff; font-weight: 700; letter-spacing: .5px;
  border-radius: 8px; padding: 8px 10px; font-size: 14px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-text span { font-size: 11px; opacity: .78; line-height: 1.3; }
.sidebar nav { padding: 8px 0 28px; overflow-y: auto; flex: 1; }
.nav-header {
  padding: 18px 18px 6px; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 1.4px; color: rgba(255,255,255,.48); font-weight: 600;
}
.nav-link {
  display: block; padding: 9px 18px; color: #d7e2f0; text-decoration: none;
  border-left: 3px solid transparent; font-size: 14px;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.active {
  background: rgba(255,255,255,.12);
  border-left-color: var(--green-mid);
  color: #fff;
  font-weight: 600;
}

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
  position: sticky; top: 0; z-index: 30;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--green-dark);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }
.topbar-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.whoami { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.whoami-name { font-weight: 600; font-size: 13.5px; }
.whoami-role { font-size: 11.5px; color: var(--muted); }
.bell {
  position: relative; text-decoration: none; font-size: 13.5px;
  color: var(--green-dark); font-weight: 600;
  padding: 7px 11px; border-radius: 8px;
  transition: background .15s ease;
}
.bell:hover { background: var(--green-pale); }
.bell-badge {
  background: var(--orange); color: #fff; border-radius: 10px; font-size: 11px;
  padding: 1px 6px; margin-left: 5px; font-weight: 700;
}
.content {
  padding: 28px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  animation: rise .45s var(--ease) both;
}
.content-wide { max-width: 1440px; }
.footer {
  padding: 16px 28px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  background: rgba(255,255,255,.45);
}
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(18, 28, 12, .45);
  z-index: 35;
}

/* Cycle / executive banner */
.cycle-banner {
  display: flex; align-items: stretch; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background:
    linear-gradient(120deg, rgba(255,255,255,.92), rgba(232,242,222,.75)),
    linear-gradient(90deg, var(--green-dark), var(--green));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cycle-banner::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--orange), var(--green-mid));
}
.cycle-banner-main { min-width: 0; padding-left: 8px; }
.cycle-banner-kicker {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px;
  color: var(--muted); font-weight: 700; margin: 0 0 4px;
}
.cycle-banner h2 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--navy);
  font-weight: 700;
}
.cycle-banner p { margin: 0; color: var(--muted); font-size: 14px; max-width: 52ch; }
.cycle-banner-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-left: 8px;
}
.attention-list { list-style: none; padding: 0; margin: 0; }
.attention-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.attention-list li:last-child { border-bottom: none; }
.attention-list .attn-text { flex: 1; min-width: 0; }
.row-sla td { background: #fff6ef; }
.row-sla-breach td { background: #fdf0ee; }
.dash-section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted); font-weight: 700; margin: 8px 0 12px;
}
.dash-fold { margin-top: 8px; }
.dash-fold > summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--green-dark);
  padding: 10px 0;
  list-style: none;
}
.dash-fold > summary::-webkit-details-marker { display: none; }
.dash-fold > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  transition: transform .2s var(--ease);
  color: var(--orange);
}
.dash-fold[open] > summary::before { transform: rotate(90deg); }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: box-shadow .2s var(--ease);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdf8, #fff);
}
.card-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy);
  font-weight: 650;
}
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 18px 20px; }

/* Stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--green-dark));
  opacity: .85;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.stat-value .badge { font-family: var(--font-ui); font-size: 13px; vertical-align: middle; }
.stat-label {
  font-size: 11.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px;
  margin-top: 4px; font-weight: 600;
}
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th {
  text-align: left; background: var(--green-pale); color: var(--navy);
  padding: 10px 12px; border-bottom: 2px solid var(--green-mid); font-size: 12px;
  text-transform: uppercase; letter-spacing: .45px; white-space: nowrap; font-weight: 700;
}
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:hover td { background: #f3faf7; }
.empty { color: var(--muted); font-style: italic; padding: 8px 0; }

/* Forms */
.form-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.form-row label { font-weight: 600; font-size: 13.5px; color: var(--navy); }
.form-row small { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
input, select, textarea {
  font: inherit; padding: 9px 11px; border: 1px solid #c0ceb2; border-radius: 8px;
  background: #fff; color: var(--ink); width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(111, 168, 63, .22);
}
form.inline { display: inline; }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 13.5px;
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { border-color: var(--green-mid); background: var(--green-pale); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-primary:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn-warn { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-warn:hover { filter: brightness(.94); background: var(--orange); color: #fff; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(.94); background: var(--red); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--green-dark); background: var(--green-pale); border-color: transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; }
.btn-link { background: none; border: none; color: var(--green-dark); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.btn-link.danger { color: var(--red); }

/* Badges */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 600; text-transform: capitalize; white-space: nowrap;
}
.b-green { background: #e6f9f1; color: #0b8f63; }
.b-amber { background: #f7efd9; color: #8a6d1a; }
.b-orange { background: #f7efd9; color: #9a7420; }
.b-red { background: #fde8ec; color: #c8102e; }
.b-blue { background: #e6edf6; color: #1a3a6b; }
.b-grey { background: #eceff0; color: #5a666d; }

/* Flash */
.flash { padding: 12px 28px; font-weight: 600; font-size: 14px; animation: rise .35s var(--ease) both; }
.flash-ok { background: #e6f9f1; color: #0b8f63; border-bottom: 1px solid #b6ecd8; }
.flash-error { background: #fde8ec; color: #c8102e; border-bottom: 1px solid #f2c3be; }
.flash-warn { background: #f7efd9; color: #8a6d1a; border-bottom: 1px solid #ead9a8; }
.auth-card .flash, .auth-card .flash-warn, .auth-card .flash-error {
  border-radius: 8px; margin-bottom: 14px; padding: 10px 14px; border-bottom: none;
}

/* Progress */
.progress {
  position: relative; background: #e3eadc; border-radius: 999px; height: 20px;
  overflow: hidden; min-width: 90px;
}
.progress-fill {
  background: linear-gradient(90deg, var(--green-mid), var(--green));
  height: 100%;
  width: 0;
  transition: width 1s var(--ease);
}
.progress[data-ready] .progress-fill { /* width set inline */ }
.progress span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: var(--ink);
}

/* Detail lists */
.detail-list { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0; }
.detail-list dt { font-weight: 600; color: var(--muted); font-size: 13px; }
.detail-list dd { margin: 0; }

/* Attachments */
.attach-list { list-style: none; padding: 0; margin: 8px 0 0; }
.attach-list li { padding: 4px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 8px; align-items: center; }

/* Auth — split institutional login */
body.bare {
  min-height: 100vh;
  background: #0f243f;
}
.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.auth-hero {
  position: relative;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f4f7fb;
  background:
    radial-gradient(ellipse 90% 55% at 12% 0%, rgba(255, 255, 255, .14), transparent 48%),
    radial-gradient(ellipse 70% 50% at 92% 10%, rgba(16, 185, 129, .38), transparent 52%),
    radial-gradient(ellipse 80% 60% at 18% 92%, rgba(212, 168, 67, .22), transparent 55%),
    linear-gradient(155deg, #1a3a6b 0%, #143056 42%, #0f243f 100%);
  overflow: hidden;
}
.auth-hero::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), rgba(16,185,129,.65), rgba(212,168,67,.5), transparent);
  z-index: 2;
}
.auth-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: .45;
}
.auth-hero-brand, .auth-hero-copy, .auth-hero-foot { position: relative; z-index: 1; }
.auth-hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px 14px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  max-width: 34rem;
}
.auth-hero-brand img {
  width: 88px; height: 88px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.55),
    0 0 0 4px rgba(16, 185, 129, .55),
    0 10px 28px rgba(0,0,0,.35);
}
.auth-hero-org {
  min-width: 0;
  padding-right: 6px;
}
.auth-hero-org strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  letter-spacing: .01em;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.auth-hero-org strong::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-mid), var(--orange));
  box-shadow: 0 0 12px rgba(16, 185, 129, .55);
}
.auth-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 700;
  max-width: 14ch;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.2);
}
.auth-hero-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(244, 247, 251, .9);
  max-width: 36ch;
}
.auth-hero-foot { font-size: 13px; color: rgba(244, 247, 251, .7); }
.auth-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 32px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(16, 185, 129, .10), transparent),
    radial-gradient(500px 280px at 10% 100%, rgba(26, 58, 107, .06), transparent),
    var(--paper);
}
.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 36px 40px;
  width: 100%;
  max-width: 420px;
  animation: rise .5s var(--ease) both;
}
.auth-card h2 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 26px;
  color: var(--navy);
}
.auth-card .auth-lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.auth-brand { text-align: center; margin-bottom: 20px; }
.auth-brand h1 { margin: 12px 0 2px; font-size: 22px; color: var(--green-dark); font-family: var(--font-display); }
.auth-brand p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-note { font-size: 12.5px; color: var(--muted); margin-top: 18px; line-height: 1.45; }
.auth-foot { color: var(--muted); font-size: 12.5px; margin-top: 20px; text-align: center; }
.brand-mark.big { font-size: 20px; padding: 12px 16px; display: inline-block; }
.error-block { text-align: center; }
.error-block h2 { font-size: 40px; margin: 6px 0; color: var(--green-dark); font-family: var(--font-display); }

/* Formal report letterhead */
.report-letterhead {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px 26px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.report-letterhead-top {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--navy);
  margin-bottom: 14px;
}
.report-letterhead-top img {
  width: 72px; height: 72px;
  object-fit: contain;
}
.report-letterhead-org {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 2px;
  line-height: 1.25;
}
.report-letterhead-sub { margin: 0; color: var(--muted); font-size: 13px; }
.report-letterhead h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--ink);
}
.report-letterhead .report-meta { margin: 0; font-size: 13.5px; color: var(--muted); }
.report-confidential {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}
.signoff-lines td { height: 42px; vertical-align: bottom; }
.signoff-lines td:nth-child(3) {
  border-bottom: 1px solid #999;
  min-width: 160px;
}
.signoff-lines td:nth-child(4) {
  border-bottom: 1px solid #999;
  min-width: 100px;
}

/* Utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 16px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar form { display: flex; gap: 8px; align-items: center; }
.toolbar select, .toolbar input { width: auto; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .content, .auth-card, .flash { animation: none; }
  .progress-fill { transition: none; }
}

/* Print */
@media print {
  .sidebar, .topbar, .footer, .no-print, .flash, .sidebar-backdrop, .nav-toggle { display: none !important; }
  .shell { display: block; }
  .main { display: block; }
  .content { max-width: none; padding: 0; animation: none; }
  .card, .report-letterhead { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  body {
    background: #fff;
    font-size: 12px;
  }
  .report-letterhead-top { border-bottom-color: #2f4a1c; }
  .report-confidential { color: #666; }
}

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { min-height: 240px; padding: 28px 24px; }
  .auth-hero-copy h1 { max-width: none; font-size: 1.75rem; }
  .auth-hero-copy p { display: none; }
  .shell { position: relative; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    transform: translateX(-105%);
    transition: transform .28s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .sidebar-backdrop { display: block; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .form-grid, .detail-list { grid-template-columns: 1fr; }
  .content { padding: 18px 16px; }
  .topbar { padding: 10px 14px; }
  .whoami { display: none; }
  .cycle-banner { padding: 16px; }
}
