/* ============================================================
   ZDROWIE — Design System
   Premium health-tech. Apple Health-inspired: clean, soft, calm.
   All tokens are CSS variables so the Tweaks panel can override them.
   ============================================================ */

:root {
  /* — Brand / primary (ciemny granat) — */
  --navy-900: oklch(0.26 0.055 256);
  --navy-800: oklch(0.32 0.062 256);
  --navy-700: oklch(0.40 0.066 256);
  --navy-600: oklch(0.50 0.060 255);

  /* — Accents — */
  --blue:      oklch(0.62 0.135 250);
  --blue-soft: oklch(0.93 0.035 250);
  --teal:      oklch(0.70 0.095 196);
  --teal-soft: oklch(0.94 0.035 196);

  /* — Status — */
  --good:      oklch(0.66 0.115 162);
  --good-soft: oklch(0.94 0.040 162);
  --amber:     oklch(0.76 0.130 75);
  --amber-soft:oklch(0.95 0.050 80);
  --red:       oklch(0.60 0.180 25);
  --red-soft:  oklch(0.95 0.040 28);

  /* — Neutrals (cool-warm balanced, very light) — */
  --bg:        oklch(0.984 0.004 250);
  --bg-sunken: oklch(0.965 0.006 250);
  --surface:   oklch(1 0 0);
  --surface-2: oklch(0.988 0.004 250);
  --line:      oklch(0.92 0.006 250);
  --line-soft: oklch(0.955 0.005 250);

  --ink:       oklch(0.28 0.035 256);   /* primary text */
  --ink-2:     oklch(0.46 0.025 256);   /* secondary text */
  --ink-3:     oklch(0.62 0.018 256);   /* tertiary / captions */
  --ink-4:     oklch(0.74 0.012 256);   /* faint / placeholders */

  /* — Tweakable proxies (panel writes these) — */
  --brand:        var(--navy-800);
  --accent:       var(--blue);
  --accent-2:     var(--teal);
  --accent-soft:  color-mix(in oklab, var(--accent) 15%, var(--surface));

  /* — Typography — */
  --font-ui: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  --fs-scale: 1;     /* tweakable text-size multiplier */

  /* — Radii (tweakable) — */
  --r-card: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* — Shadows (tweakable intensity) — */
  --shadow-strength: 1;
  --shadow-sm: 0 1px 2px oklch(0.4 0.04 256 / calc(0.05 * var(--shadow-strength))),
               0 1px 3px oklch(0.4 0.04 256 / calc(0.05 * var(--shadow-strength)));
  --shadow-md: 0 2px 6px oklch(0.4 0.04 256 / calc(0.05 * var(--shadow-strength))),
               0 8px 24px oklch(0.4 0.04 256 / calc(0.06 * var(--shadow-strength)));
  --shadow-lg: 0 4px 12px oklch(0.4 0.04 256 / calc(0.06 * var(--shadow-strength))),
               0 18px 48px oklch(0.4 0.04 256 / calc(0.08 * var(--shadow-strength)));

  /* — Density (tweakable): drives paddings & gaps — */
  --density: 1;
  --pad-card: calc(26px * var(--density));
  --gap-grid: calc(20px * var(--density));
  --row-h: calc(1px * var(--density));
}

/* ---- Dark theme ---- */
[data-theme="dark"] {
  --bg:        oklch(0.20 0.022 256);
  --bg-sunken: oklch(0.17 0.020 256);
  --surface:   oklch(0.245 0.024 256);
  --surface-2: oklch(0.275 0.026 256);
  --line:      oklch(0.34 0.022 256);
  --line-soft: oklch(0.30 0.020 256);

  --ink:       oklch(0.96 0.010 250);
  --ink-2:     oklch(0.80 0.018 250);
  --ink-3:     oklch(0.66 0.020 250);
  --ink-4:     oklch(0.52 0.020 250);

  --navy-800:  oklch(0.92 0.030 250);
  --blue-soft: oklch(0.34 0.055 250);
  --teal-soft: oklch(0.33 0.045 196);
  --good-soft: oklch(0.33 0.050 162);
  --amber-soft:oklch(0.36 0.060 75);
  --red-soft:  oklch(0.34 0.060 28);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / calc(0.20 * var(--shadow-strength)));
  --shadow-md: 0 2px 8px oklch(0 0 0 / calc(0.28 * var(--shadow-strength)));
  --shadow-lg: 0 12px 40px oklch(0 0 0 / calc(0.40 * var(--shadow-strength)));
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: calc(15px * var(--fs-scale));
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent-soft); }

/* Type scale (all multiply by --fs-scale via body font-size em where possible) */
.t-display { font-size: calc(40px * var(--fs-scale)); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.t-h1 { font-size: calc(28px * var(--fs-scale)); font-weight: 700; letter-spacing: -0.018em; line-height: 1.12; }
.t-h2 { font-size: calc(21px * var(--fs-scale)); font-weight: 700; letter-spacing: -0.014em; line-height: 1.2; }
.t-h3 { font-size: calc(17px * var(--fs-scale)); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.t-body { font-size: calc(15px * var(--fs-scale)); font-weight: 450; }
.t-sm { font-size: calc(13px * var(--fs-scale)); font-weight: 500; }
.t-xs { font-size: calc(11.5px * var(--fs-scale)); font-weight: 600; }
.t-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.t-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.t-label { font-size: calc(11px * var(--fs-scale)); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }

.ink-2 { color: var(--ink-2); }
.ink-3 { color: var(--ink-3); }

/* ============================================================
   Cards & surfaces
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: var(--pad-card); }
.card-hover { transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line); }

/* ============================================================
   Status pills & dots
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: calc(12px * var(--fs-scale)); font-weight: 650;
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.pill-good  { background: var(--good-soft);  color: oklch(0.45 0.10 162); }
.pill-good .dot  { background: var(--good); }
.pill-watch { background: var(--amber-soft); color: oklch(0.50 0.11 65); }
.pill-watch .dot { background: var(--amber); }
.pill-alert { background: var(--red-soft);   color: oklch(0.50 0.16 25); }
.pill-alert .dot { background: var(--red); }
.pill-neutral { background: var(--bg-sunken); color: var(--ink-2); }
.pill-neutral .dot { background: var(--ink-3); }

[data-theme="dark"] .pill-good  { color: oklch(0.82 0.11 162); }
[data-theme="dark"] .pill-watch { color: oklch(0.85 0.11 78); }
[data-theme="dark"] .pill-alert { color: oklch(0.78 0.13 28); }

/* trend chips */
.trend { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: calc(12.5px * var(--fs-scale)); }
.trend.up   { color: var(--red); }
.trend.down { color: var(--good); }
.trend.flat { color: var(--ink-3); }
.trend.good-up { color: var(--good); }
.trend.bad-down { color: var(--red); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 10px 18px; font-size: calc(14px * var(--fs-scale)); font-weight: 650;
  transition: background .18s ease, color .18s, border-color .18s, transform .1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-accent { background: var(--accent); color: white; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-4); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
[data-theme="dark"] .btn-accent, [data-theme="dark"] .btn-primary { color: oklch(0.18 0.02 256); }
[data-theme="dark"] .btn-soft { color: var(--ink); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; color: var(--ink-2);
  transition: background .18s, color .18s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ============================================================
   Avatars
   ============================================================ */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 700; color: white;
  background: var(--accent); flex-shrink: 0; overflow: hidden;
  letter-spacing: -0.01em;
}

/* ============================================================
   Inputs
   ============================================================ */
.input {
  width: 100%; padding: 11px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: calc(14px * var(--fs-scale)); font-family: inherit;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ============================================================
   Utility
   ============================================================ */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.scroll-x { overflow-x: auto; scrollbar-width: thin; }

/* scrollbar */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 3px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* subtle reveal — never animate opacity (a backgrounded iframe freezes the clock at
   frame 0; gating visibility on animation would hide content). Transform-only + fill none. */
@keyframes fadeUp { from { transform: translateY(7px); } to { transform: none; } }
.reveal { animation: fadeUp .4s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* placeholder image (striped) */
.ph {
  background-image: repeating-linear-gradient(135deg, var(--line-soft) 0 10px, transparent 10px 20px);
  background-color: var(--bg-sunken);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); font-family: var(--font-mono); font-size: 11px;
}

@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.pop { animation: pop .5s cubic-bezier(.2,.8,.2,1); }

/* ============================================================
   App shell layout
   ============================================================ */
.app-shell { display: grid; grid-template-columns: 266px 1fr; min-height: 100vh; }

.sidebar {
  display: flex; flex-direction: column;
  padding: 22px 14px; border-right: 1px solid var(--line);
  background: var(--surface); height: 100vh; position: sticky; top: 0;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; border: none; background: transparent;
  color: var(--ink-2); font-weight: 600; font-size: 14.5px; cursor: pointer;
  transition: background .16s, color .16s; text-align: left; width: 100%;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-member {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 10px; border-radius: 11px; border: none; background: transparent;
  cursor: pointer; transition: background .16s; width: 100%;
}
.nav-member:hover { background: var(--surface-2); }
.nav-member.active { background: var(--surface-2); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 68px; flex-shrink: 0; display: flex; align-items: center; gap: 18px;
  padding: 0 30px; border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); position: sticky; top: 0; z-index: 20;
}
.topbar-logo { display: none; }
.topbar-search {
  position: relative;
  flex: 1; max-width: 440px; display: flex; align-items: center; gap: 10px;
  background: var(--bg-sunken); border-radius: 999px; padding: 9px 16px;
  border: 1px solid transparent; transition: border-color .16s;
}
.topbar-search:focus-within { border-color: var(--accent); background: var(--surface); }
.topbar-search-input { border: none; background: none; outline: none; flex: 1; font-family: inherit; font-size: 14px; color: var(--ink); }
.topbar-search-input::placeholder { color: var(--ink-4); }
.topbar-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* live search dropdown */
.search-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 45;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 6px; max-height: min(60vh, 460px); overflow-y: auto;
  animation: notifIn .16s cubic-bezier(.2,.7,.2,1);
}
.search-group { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); padding: 9px 12px 4px; }
.search-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; text-decoration: none; color: var(--ink); transition: background .12s; }
.search-item:hover { background: var(--surface-2); }
.search-av { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.search-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--accent); flex: none; margin: 0 11px; }
.search-meta { display: flex; flex-direction: column; min-width: 0; }
.search-name { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-unit { font-weight: 600; font-size: 11px; color: var(--ink-3); }
.search-sub { font-size: 12px; color: var(--ink-3); }
.search-empty { padding: 14px 12px; color: var(--ink-3); font-size: 13.5px; }

.app-content { flex: 1; overflow-y: auto; padding: 32px 36px; background: var(--bg); }

.paramrow { transition: background .15s; }
.paramrow:hover { background: var(--surface-2); }
.timeline-row { transition: background .15s; }
.timeline-row:hover { background: var(--surface-2); }

/* notifications popover */
.notif-panel {
  position: absolute; top: 60px; right: 16px; z-index: 41;
  width: 392px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column; max-height: min(620px, calc(100vh - 90px));
  animation: notifIn .18s cubic-bezier(.2,.7,.2,1);
}
@keyframes notifIn { from { transform: translateY(-6px) scale(.98); } to { transform: none; } }
.notif-scroll { overflow-y: auto; flex: 1; padding-bottom: 6px; }
.notif-item {
  display: flex; gap: 12px; align-items: flex-start; width: 100%;
  padding: 12px 16px; border: none; cursor: pointer; text-align: left;
  border-radius: 0; transition: background .14s;
}
.notif-item:hover { background: var(--bg-sunken) !important; }
.notif-foot {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px; border: none; border-top: 1px solid var(--line);
  background: var(--surface-2); color: var(--accent); font-weight: 650; font-size: 13.5px;
  cursor: pointer; transition: background .14s;
}
.notif-foot:hover { background: var(--bg-sunken); }

/* ============================================================
   Login
   ============================================================ */
.login-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.login-brand {
  background: var(--brand); padding: 48px 52px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.login-brand::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  top: -160px; right: -160px;
}
.login-brand::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
  bottom: -120px; left: -80px;
}
.login-brand > * { position: relative; z-index: 1; }
.login-form-col { display: flex; align-items: center; justify-content: center; padding: 40px 32px; background: var(--bg); }
.login-card { width: 100%; max-width: 392px; }
.login-logo-sm { display: none; align-items: center; gap: 10px; margin-bottom: 30px; }
.login-label { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 7px; }
.login-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-4); font-size: 12.5px; font-weight: 600; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-logo-sm { display: flex; }
}

.mobile-nav { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar-logo { display: flex; }
  .topbar-search { max-width: none; }
  .app-content { padding: 22px 18px 96px; }
  .profile-grid, .param-grid, .trends-grid, .obs-grid, .pw-grid,
  .dash-stats { grid-template-columns: 1fr !important; }
  .profile-grid > div:last-child { position: static !important; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: color-mix(in oklab, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around;
  }
  .mobile-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: none; cursor: pointer; padding: 5px 18px; border-radius: 12px;
    color: var(--ink-3); font-size: 11px; font-weight: 650;
  }
  .mobile-nav-item.active { color: var(--accent); }
}
@media (max-width: 560px) {
  .trends-grid { grid-template-columns: 1fr !important; }
  .app-content { padding: 18px 14px 96px; }
}

/* ============================================================
   Tweaks panel (launcher + floating panel)
   ============================================================ */
.tweaks-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); box-shadow: var(--shadow-md);
  transition: transform .15s, color .15s;
}
.tweaks-fab:hover { color: var(--accent); transform: rotate(15deg); }
@media (max-width: 980px) { .tweaks-fab { bottom: 78px; } }

.tweaks-panel {
  position: fixed; right: 20px; bottom: 78px; z-index: 51;
  width: 320px; max-width: calc(100vw - 24px);
  max-height: min(72vh, 640px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 18px; animation: notifIn .18s cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 980px) { .tweaks-panel { bottom: 132px; } }
.tweaks-panel[hidden] { display: none; }
.tweaks-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tweaks-section { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 9px; }
.tweaks-row { margin-bottom: 12px; }
.tweaks-row > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }

.seg {
  display: inline-flex; width: 100%; background: var(--bg-sunken);
  border-radius: 999px; padding: 3px; gap: 2px;
}
.seg button {
  flex: 1; border: none; border-radius: 999px; padding: 7px 10px;
  font-size: 12.5px; font-weight: 650; color: var(--ink-3);
  background: transparent; transition: all .16s; text-transform: capitalize;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px; border-radius: 9px; border: 2px solid transparent;
  cursor: pointer; padding: 0; position: relative;
}
.swatch[aria-pressed="true"] { border-color: var(--ink); }

.tweaks-select {
  width: 100%; padding: 9px 12px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 13.5px;
}
.tweaks-range { width: 100%; accent-color: var(--accent); }

/* Segmented control rendered as links (e.g. dashboard member filter) */
.seg .seg-btn {
  flex: 1; text-align: center; text-decoration: none;
  border-radius: 999px; padding: 7px 14px;
  font-size: 12.5px; font-weight: 650; color: var(--ink-3);
  transition: all .16s; white-space: nowrap;
}
.seg .seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ============================================================
   Import dropzone + flash banners
   ============================================================ */
.upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 20px; margin-bottom: 18px;
  border: 1.5px dashed var(--line); border-radius: var(--r-md);
  background: var(--surface-2); cursor: pointer;
  transition: border-color .16s, background .16s;
}
.upload-zone:hover { border-color: var(--accent); }
.upload-zone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone.has-file { border-style: solid; border-color: var(--good); }

.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: var(--r-md); margin-bottom: 18px;
  font-size: 14px; font-weight: 600;
}
.flash .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.flash-success { background: var(--good-soft); color: oklch(0.45 0.10 162); }
.flash-success .dot { background: var(--good); }
.flash-error { background: var(--red-soft); color: oklch(0.50 0.16 25); }
.flash-error .dot { background: var(--red); }
[data-theme="dark"] .flash-success { color: oklch(0.82 0.11 162); }
[data-theme="dark"] .flash-error { color: oklch(0.78 0.13 28); }

/* Disabled CTA (e.g. import submit before a file is chosen) — muted until active.
   Enabling it animates back to the button's own colour via the .btn transition. */
.btn:disabled {
  background: var(--bg-sunken);
  color: var(--ink-4);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* Once the import form has a file / pasted payload, pulse a ring on the CTA so
   it's obvious where to click next. */
@keyframes ctaPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70%  { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 0%, transparent); }
}
.btn.cta-ready { animation: ctaPulse 1.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .btn.cta-ready { animation: none; } }
