/* ═══════════════════════════════════════════════════════════════════════
   Precision Health, Design System  (Editorial-Scientific)
   Newsreader serif headlines · Inter UI · JetBrains Mono data
   Cool institutional palette · hairline borders · soft close shadows
   Shared by the web dashboard and the generated report.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  --text-display: 4.5rem;   --lh-display: 1.04;  --ls-display: -0.022em;
  --text-h1: 3rem;          --lh-h1: 1.08;       --ls-h1: -0.018em;
  --text-h2: 2rem;          --lh-h2: 1.15;       --ls-h2: -0.012em;
  --text-h3: 1.375rem;      --lh-h3: 1.25;       --ls-h3: -0.011em;
  --text-h4: 1.125rem;      --lh-h4: 1.35;       --ls-h4: -0.006em;
  --text-body-lg: 1.0625rem;--lh-body-lg: 1.6;
  --text-body: 1rem;        --lh-body: 1.6;
  --text-small: 0.875rem;   --lh-small: 1.5;
  --text-micro: 0.8125rem;  --lh-micro: 1.45;
  --text-label: 0.75rem;    --lh-label: 1.4;     --ls-label: 0.06em;

  /* Ink & cool neutral ramp */
  --ink: #0A0F1A;
  --gray-50: #F7F9FB;  --gray-100: #EEF2F6; --gray-200: #E2E8F0; --gray-300: #CBD4E1;
  --gray-400: #94A3B8; --gray-500: #64748B; --gray-600: #475569; --gray-700: #334155;
  --gray-800: #1E293B; --gray-900: #0F172A;

  /* Institutional trust blue */
  --primary-50: #EAF1FA; --primary-100: #D2E0F2; --primary-200: #A9C5E8; --primary-400: #3E72B8;
  --primary: #1B4D8F; --primary-600: #173F75; --primary-700: #122F58;
  --primary-ghost: rgba(27, 77, 143, 0.08);

  /* Clinical teal accent (data / score) */
  --accent: #0E7C86; --accent-600: #0B656D; --accent-soft: #E0F2F1;

  /* Semantic status (desaturated, refined) */
  --optimal: #1E7A52;    --optimal-soft: #E6F2EC;
  --borderline: #B7791F; --borderline-soft: #FBF1DD;
  --attention: #B4322A;  --attention-soft: #FBEAE8;
  --info: #1B4D8F;       --info-soft: #EAF1FA;

  /* Surfaces */
  --bg: #FBFCFD; --surface: #FFFFFF; --surface-2: #F7F9FB; --surface-3: #EEF2F6;
  --overlay: rgba(10, 15, 26, 0.45);
  --border: #E2E8F0; --border-strong: #CBD4E1; --border-hair: rgba(10, 15, 26, 0.06);
  --focus-ring: #1B4D8F; --focus-shadow: 0 0 0 3px rgba(27, 77, 143, 0.30);

  /* Spacing (8pt) */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --space-9: 6rem; --space-10: 8rem;

  --container-prose: 760px; --container-content: 1080px; --container-wide: 1280px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);
  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --radius-xl: 24px; --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(10,15,26,0.04), 0 1px 1px rgba(10,15,26,0.03);
  --shadow-sm: 0 1px 3px rgba(10,15,26,0.05), 0 1px 2px rgba(10,15,26,0.04);
  --shadow-md: 0 4px 12px rgba(10,15,26,0.06), 0 1px 3px rgba(10,15,26,0.05);
  --shadow-lg: 0 12px 28px rgba(10,15,26,0.08), 0 4px 8px rgba(10,15,26,0.04);
  --shadow-xl: 0 24px 56px rgba(10,15,26,0.12), 0 8px 16px rgba(10,15,26,0.05);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 120ms; --dur: 200ms; --dur-slow: 320ms; --dur-slower: 500ms;
}

/* ── Reset & base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-body); line-height: var(--lh-body);
  color: var(--gray-700); background: var(--bg);
  font-feature-settings: "cv05" 1, "cv08" 1, "ss03" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; }
.tnum, table, .metric-value, .gauge-value { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ── Typography ──────────────────────────────────────────────────────── */
h1, .h1 { font-family: var(--font-serif); font-size: var(--text-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: 500; color: var(--ink); }
h2, .h2 { font-family: var(--font-serif); font-size: var(--text-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: 500; color: var(--ink); }
h3, .h3 { font-family: var(--font-sans); font-size: var(--text-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 600; color: var(--ink); }
h4, .h4 { font-family: var(--font-sans); font-size: var(--text-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: 600; color: var(--ink); }
.display { font-family: var(--font-serif); font-size: var(--text-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: 500; color: var(--ink); }
.eyebrow, .label { font-size: var(--text-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); font-weight: 600; text-transform: uppercase; color: var(--gray-500); }
.lead { font-size: var(--text-body-lg); line-height: var(--lh-body-lg); color: var(--gray-600); }
.muted { color: var(--gray-500); }
.small { font-size: var(--text-small); }
.micro { font-size: var(--text-micro); color: var(--gray-500); }
.mono { font-family: var(--font-mono); }

/* ── Layout ──────────────────────────────────────────────────────────── */
.container { max-width: var(--container-content); margin-inline: auto; padding-inline: var(--container-pad); }
.container--wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--container-pad); }
.prose { max-width: var(--container-prose); }
.grid { display: grid; gap: var(--space-5); }
.grid-domains { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stack > * + * { margin-top: var(--space-4); }

/* ── Top navigation ──────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { height: 100%; display: flex; align-items: center; gap: var(--space-4); }
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand__mark { width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); display:grid; place-items:center; }
.brand__name { font-weight: 600; color: var(--ink); font-size: var(--text-body); letter-spacing: -0.01em; }
.brand__name b { font-weight: 600; } .brand__name span { color: var(--gray-400); font-weight: 500; }
.topbar__spacer { margin-left: auto; }
.topbar__meta { font-size: var(--text-micro); color: var(--gray-500); display: flex; gap: var(--space-4); align-items:center; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-size: var(--text-small); font-weight: 600; line-height: 1;
  padding: 0.625rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  box-shadow: var(--shadow-xs); text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0.5px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-shadow); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn--sm { padding: 0.4375rem 0.75rem; font-size: var(--text-micro); }
.btn--lg { padding: 0.8125rem 1.375rem; font-size: var(--text-body); }
.btn--primary:hover { --btn-bg: var(--primary-600); box-shadow: var(--shadow-sm); }
.btn--primary:active { --btn-bg: var(--primary-700); }
.btn--secondary { --btn-bg: var(--surface); --btn-fg: var(--gray-700); --btn-bd: var(--border-strong); }
.btn--secondary:hover { --btn-bg: var(--gray-50); --btn-fg: var(--ink); --btn-bd: var(--gray-400); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--gray-600); --btn-bd: transparent; box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--gray-100); --btn-fg: var(--ink); }

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-6); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.card--interactive:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.card--feature { border-radius: var(--radius-lg); padding: var(--space-7); }
.card--accent { position: relative; overflow: hidden; }
.card--accent::before { content:""; position:absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); gap: var(--space-3); }
.card__title { font-size: var(--text-h4); font-weight: 600; color: var(--ink); }

/* ── Inputs ──────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field > label { font-size: var(--text-small); font-weight: 600; color: var(--gray-700); }
.field .hint { font-weight: 400; color: var(--gray-400); font-size: var(--text-micro); }
.input, .select {
  width: 100%; padding: 0.625rem 0.75rem; font-size: var(--text-small); color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.input::placeholder { color: var(--gray-400); }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-shadow); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-4); }

/* ── Dropzone ────────────────────────────────────────────────────────── */
.dropzone {
  --dz-border: var(--border-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: var(--space-2); padding: var(--space-8) var(--space-6); min-height: 220px;
  background: var(--surface); border-radius: var(--radius-lg); border: 1.5px dashed var(--dz-border);
  cursor: pointer; position: relative; isolation: isolate;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.dropzone::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0.5;
  background-image: radial-gradient(var(--gray-200) 1px, transparent 1px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.dropzone__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--primary-ghost); color: var(--primary); margin-bottom: var(--space-1);
  transition: transform var(--dur-slow) var(--ease-spring), background var(--dur) var(--ease-out); }
.dropzone__title { font-size: var(--text-h4); font-weight: 600; color: var(--ink); }
.dropzone__hint { font-size: var(--text-small); color: var(--gray-500); }
.dropzone__browse { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.dropzone__formats { font-size: var(--text-label); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-400); margin-top: var(--space-2); }
.dropzone:hover { --dz-border: var(--primary-200); background: var(--gray-50); }
.dropzone:hover .dropzone__icon { transform: translateY(-2px); }
.dropzone:focus-visible { outline: none; box-shadow: var(--focus-shadow); --dz-border: var(--primary); }
.dropzone.is-dragover { --dz-border: var(--primary); background: var(--primary-ghost);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--primary-200); transform: scale(1.005); }
.dropzone.is-dragover .dropzone__icon { transform: scale(1.08) translateY(-2px); background: var(--primary-100); }
.dropzone.has-file { --dz-border: var(--optimal); background: var(--optimal-soft); border-style: solid; }
.dropzone.has-file .dropzone__icon { background: #fff; color: var(--optimal); }
.filelist { list-style: none; margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); padding: 0; }
.filelist__item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs); animation: slideUp var(--dur-slow) var(--ease-out) both; color: var(--primary); }
.filelist__name { font-size: var(--text-small); font-weight: 500; color: var(--ink); }
.filelist__meta { font-family: var(--font-mono); font-size: var(--text-micro); color: var(--gray-500); margin-left: auto; }

/* ── Upload: step labels + "included in report" checklist ─────────────── */
.field-label { font-size: var(--text-small); font-weight: 600; color: var(--gray-700); }
.field-label .hint { font-weight: 400; color: var(--gray-400); font-size: var(--text-micro); }
.included { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface-2); display: flex; align-items: center;
  gap: var(--space-4); flex-wrap: wrap; }
.included__label { font-size: var(--text-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  font-weight: 600; color: var(--gray-500); }
.included__items { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.incl { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-small); font-weight: 500; color: var(--gray-400); }
.incl__dot { flex: none; width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--gray-300);
  display: grid; place-items: center; transition: all var(--dur) var(--ease-out); }
.incl.is-on { color: var(--optimal); }
.incl.is-on .incl__dot { background: var(--optimal); border-color: var(--optimal); }
.incl.is-on .incl__dot::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); }

/* ── Chips ───────────────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-label); font-weight: 600;
  letter-spacing: 0.02em; padding: 4px 10px; border-radius: var(--radius-full); line-height: 1.4;
  border: 1px solid transparent; white-space: nowrap; }
.chip::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.chip--optimal { color: var(--optimal); background: var(--optimal-soft); border-color: rgba(30,122,82,0.18); }
.chip--borderline { color: var(--borderline); background: var(--borderline-soft); border-color: rgba(183,121,31,0.20); }
.chip--attention { color: var(--attention); background: var(--attention-soft); border-color: rgba(180,50,42,0.18); }
.chip--info, .chip--low { color: var(--primary); background: var(--info-soft); border-color: rgba(27,77,143,0.16); }
.chip--neutral { color: var(--gray-600); background: var(--gray-100); border-color: var(--border); }

/* ── Hero score gauge ────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-7); align-items: center; }
@media (max-width: 760px){ .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.gauge { position: relative; width: 240px; height: 240px; }
.gauge__svg { display: block; }
.gauge__value { transition: stroke-dashoffset 1.4s var(--ease-out); }
.gauge__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.gauge__label { margin-bottom: var(--space-1); white-space: nowrap; font-size: 0.7rem; }
.gauge__num { font-family: var(--font-serif); font-size: 3.6rem; line-height: 1; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.gauge__denom { font-family: var(--font-mono); font-size: var(--text-small); color: var(--gray-400); }
.gauge__status { margin-top: var(--space-3); }
.hero__lead { font-size: var(--text-body-lg); color: var(--gray-600); margin-top: var(--space-3); max-width: 52ch; }

/* ── Domain cards ────────────────────────────────────────────────────── */
.domain__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.domain__icon { display:grid; place-items:center; width:34px; height:34px; border-radius:var(--radius-sm); background: var(--surface-2); color: var(--gray-500); }
.domain__name { font-size: var(--text-body); font-weight: 600; color: var(--ink); margin-right: auto; }
.domain__score { display:flex; align-items:baseline; gap:4px; margin-bottom: var(--space-3); }
.domain__num { font-family: var(--font-mono); font-size: var(--text-mono-lg, 1.75rem); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.domain__max { font-family: var(--font-mono); font-size: var(--text-small); color: var(--gray-400); }
.domain__note { font-size: var(--text-small); color: var(--gray-500); margin-top: var(--space-3); line-height: 1.5; }
.bar { height: 6px; background: var(--gray-100); border-radius: var(--radius-full); overflow: hidden; }
.bar__fill { height: 100%; width: var(--val); background: var(--c, var(--primary)); border-radius: inherit; transform-origin: left; animation: barGrow 1s var(--ease-out) both; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Tables ──────────────────────────────────────────────────────────── */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-xs); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.table thead th { text-align: left; font-size: var(--text-label); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gray-500); padding: var(--space-3) var(--space-4); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.table tbody td { padding: var(--space-4); border-bottom: 1px solid var(--border); color: var(--gray-700); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--dur-fast) var(--ease-out); }
.table tbody tr:hover { background: var(--gray-50); }
.table td.tnum { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.table td.ref { font-family: var(--font-mono); color: var(--gray-400); font-size: var(--text-micro); }

/* ── Section header ──────────────────────────────────────────────────── */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }

/* ── Processing / loading ────────────────────────────────────────────── */
.processing { display: grid; place-items: center; min-height: 72vh; padding: var(--space-7) 0; }
.processing__card { width: min(580px, 92vw); position: relative; overflow: hidden; }
.processing__title { margin-top: var(--space-2); }
.processing__sub { color: var(--gray-500); font-size: var(--text-small); margin-top: var(--space-2); min-height: 1.4em; transition: opacity var(--dur) var(--ease-out); }
.sweep { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gray-100); overflow: hidden; }
.sweep__bar { position: absolute; height: 100%; width: 35%; background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent); animation: sweep 1.6s var(--ease-in-out) infinite; }
@keyframes sweep { 0% { left: -40%; } 100% { left: 100%; } }
.steps { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); }
.step { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-sm); opacity: 0.42; transition: opacity var(--dur-slow) var(--ease-out), background var(--dur) var(--ease-out); }
.step__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gray-300); display: grid; place-items: center; transition: all var(--dur) var(--ease-out); }
.step__label { font-size: var(--text-small); color: var(--gray-600); font-weight: 500; }
.step__spin { margin-left: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--primary-100); border-top-color: var(--primary); opacity: 0; animation: spin 0.7s linear infinite; }
.step.is-active { opacity: 1; background: var(--primary-ghost); }
.step.is-active .step__dot { border-color: var(--primary); }
.step.is-active .step__label { color: var(--ink); }
.step.is-active .step__spin { opacity: 1; }
.step.is-done { opacity: 1; }
.step.is-done .step__dot { background: var(--optimal); border-color: var(--optimal); }
.step.is-done .step__dot::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); }
.step.is-done .step__label { color: var(--gray-600); }
.step.is-done .step__spin { display: none; }
.skeleton { display: flex; gap: var(--space-5); align-items: center; padding-top: var(--space-5); border-top: 1px solid var(--border); }
.sk { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 37%, var(--gray-100) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: var(--radius-sm); }
.sk--gauge { width: 96px; height: 96px; border-radius: 50%; flex: none; }
.sk-col { flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.sk--line { height: 12px; } .w50{width:50%} .w70{width:70%} .w90{width:90%}
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:0 0} }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { margin-top: var(--space-10); border-top: 1px solid var(--border); background: var(--surface-2); padding: var(--space-8) 0 var(--space-6); }
.site-footer__grid { display: flex; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.footer__org { font-size: var(--text-small); font-weight: 600; color: var(--gray-700); margin-top: var(--space-2); }
.footer__fine { font-size: var(--text-micro); color: var(--gray-500); max-width: 44ch; margin-top: 4px; }
.footer__creds { display: flex; gap: var(--space-2); align-items: flex-start; flex-wrap: wrap; }
.footer__badge { font-size: var(--text-label); letter-spacing: 0.03em; text-transform: uppercase; color: var(--gray-500); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 4px 8px; background: var(--surface); }
.footer__legal { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: var(--text-micro); color: var(--gray-400); }

/* ── Callouts ────────────────────────────────────────────────────────── */
.callout { border: 1px solid var(--border); border-left: 3px solid var(--primary); background: var(--info-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--space-4) var(--space-5); }
.callout--optimal { border-left-color: var(--optimal); background: var(--optimal-soft); }
.callout--borderline { border-left-color: var(--borderline); background: var(--borderline-soft); }
.callout--attention { border-left-color: var(--attention); background: var(--attention-soft); }
.callout__title { font-weight: 600; color: var(--ink); margin-bottom: var(--space-1); font-size: var(--text-small); }

/* ── Motion ──────────────────────────────────────────────────────────── */
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-in { opacity: 0; animation: slideUp var(--dur-slow) var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
.stagger > * { opacity: 0; animation: slideUp var(--dur-slow) var(--ease-out) forwards; }
.stagger > *:nth-child(1){ animation-delay: 60ms; } .stagger > *:nth-child(2){ animation-delay: 120ms; }
.stagger > *:nth-child(3){ animation-delay: 180ms; } .stagger > *:nth-child(4){ animation-delay: 240ms; }
.stagger > *:nth-child(5){ animation-delay: 300ms; } .stagger > *:nth-child(6){ animation-delay: 360ms; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .sweep__bar { left: 0; width: 100%; opacity: 0.6; }
}
:root { --text-mono-lg: 1.75rem; }
