/* ============================================================
   Woodpecker 3.0 — Components (zénithal vocabulary)
   Secondary = row, never card (Z2). Amber = state only (Z7).
   ============================================================ */

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 40px;
  padding: 0 var(--s-4);
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast), opacity var(--dur-fast);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; pointer-events: none; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: var(--fw-bold);
}
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:active { background: var(--surface); }
.btn--danger { background: transparent; border-color: color-mix(in srgb, var(--short) 50%, transparent); color: var(--short); }
.btn--lg { height: 52px; font-size: var(--fs-lg); border-radius: var(--r-lg); }
.btn--sm { height: 32px; padding: 0 var(--s-3); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn--xs { height: 26px; padding: 0 var(--s-2); font-size: var(--fs-xs); border-radius: var(--r-xs); }
.btn--block { width: 100%; }
.btn--icon { width: 40px; padding: 0; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn:active { transform: scale(0.93); }

/* ------------------------------------------------------------
   Focal card — the single dominant block per screen (Z1)
   ------------------------------------------------------------ */
.focal-card {
  padding: 0 0 var(--s-5);
}
.focal-card__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
}
.focal-card__sub {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-top: 4px;
}

/* ------------------------------------------------------------
   Launch instrument picker (Accueil)
   ------------------------------------------------------------ */
.launch-instruments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.launch-instrument {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-1);
  text-align: center;
  background: var(--surface);
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.launch-instrument:active { transform: scale(0.96); }
.launch-instrument .sym { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.launch-instrument .ses { font-size: var(--fs-2xs); color: var(--text-dim); margin-top: 2px; letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.launch-instrument.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.launch-instrument.is-active .ses { color: var(--accent-dim); }

/* Launch options strip */
.launch-options {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
  flex-wrap: wrap;
}
.launch-opt {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Compressed cockpit orient — replaces the ceremonial title + subtitle.
   The instrument grid is the hero; this just engraves the panel. */
.launch-eyebrow {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
}

/* Signed section break — the single wp-strip beat on Accueil.
   Dim neutral so amber stays reserved for selection (Z7). */
.launch-sec {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-1);
}
.launch-sec .wp-strip { color: var(--text-dim); }
.launch-sec__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-xwide);
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ------------------------------------------------------------
   Switch
   ------------------------------------------------------------ */
.switch { position: relative; display: inline-block; width: 40px; height: 23px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track {
  position: absolute; inset: 0;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  transition: background var(--dur);
}
.switch__track::after {
  content: ""; position: absolute;
  top: 3px; left: 3px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--dur), background var(--dur);
}
.switch input:checked ~ .switch__track { background: var(--accent); }
.switch input:checked ~ .switch__track::after { transform: translateX(17px); background: var(--accent-ink); }

/* ------------------------------------------------------------
   Row — the secondary unit (Z2)
   ------------------------------------------------------------ */
.row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border-soft);
}
.row:first-child { padding-top: 0; }
.row__main { flex: 1; min-width: 0; }
.row__end { text-align: right; flex: none; }
.row__sub { color: var(--text-dim); font-size: var(--fs-sm); margin-top: 3px; overflow-wrap: anywhere; }
.row__title { font-size: var(--fs-md); font-weight: var(--fw-medium); }
.row__meta { font-size: var(--fs-xs); color: var(--text-dim); }
.row--action { cursor: pointer; transition: background var(--dur-fast); margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.row--action:hover { background: var(--surface); }
.row--action:active { background: var(--surface-2); }
.row__chev { color: var(--text-dim); flex: none; }
.row__badge {
  font-size: var(--fs-2xs);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 2px 8px;
}

/* Lead row — the dominant secondary beat (de-equalized hierarchy on Accueil). */
.row--lead { padding: var(--s-5) 0; }
.row--lead .row__title { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.row__lead-val {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ------------------------------------------------------------
   KPI strip (3 cells, no boxes)
   ------------------------------------------------------------ */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
.kpi { text-align: center; padding: var(--s-3) 0; }
.kpi__label { font-size: var(--fs-xs); color: var(--text-dim); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.kpi__value { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin-top: 4px; font-family: var(--font-mono); }

/* Hero score (Stats focal) */
.hero-score { text-align: center; padding: var(--s-4) 0 var(--s-5); }
.hero-score__label { font-size: var(--fs-xs); color: var(--text-dim); text-transform: uppercase; letter-spacing: var(--tracking-xwide); }
.hero-score__value {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  line-height: 1;
  margin: var(--s-2) 0;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}
.hero-score__value--good { color: var(--accent); }
.hero-score__trend { font-size: var(--fs-sm); color: var(--text-muted); }

/* Equity mini chart */
.equity-mini { width: 100%; height: 120px; display: block; }

/* ------------------------------------------------------------
   Accordion
   ------------------------------------------------------------ */
.accordion__item { border-bottom: 1px solid var(--border-soft); }
.accordion__item:last-child { border-bottom: 0; }
.accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) 0;
  text-align: left;
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
}
.accordion__ico { color: var(--text-dim); display: grid; place-items: center; flex: none; }
.accordion__label { flex: 1; min-width: 0; }
.accordion__preview {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--fw-regular);
}
.accordion__chevron { color: var(--text-dim); transition: transform var(--dur); flex: none; }
.accordion__item.is-open .accordion__chevron { transform: rotate(180deg); }
.accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.accordion__item.is-open .accordion__body { grid-template-rows: 1fr; }
.accordion__inner { overflow: hidden; min-height: 0; }
.accordion__body .accordion__inner > * { padding-bottom: var(--s-4); }

/* ------------------------------------------------------------
   Chips, tags
   ------------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 var(--s-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  background: transparent;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.chip:active { transform: scale(0.96); }
.chip--sm { height: 28px; padding: 0 12px; font-size: var(--fs-xs); }
.chip--active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tag {
  font-size: var(--fs-2xs);
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.tag::before { content: "#"; opacity: 0.6; }

/* ------------------------------------------------------------
   Form fields
   ------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-3); }
.field__label { font-size: var(--fs-xs); color: var(--text-dim); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.input, .textarea, .select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 10px 12px;
  font-size: var(--fs-md);
  transition: border-color var(--dur-fast);
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); outline: none; }
.textarea { resize: vertical; min-height: 72px; line-height: var(--lh); }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

/* Definition list (stats detail rows) */
.deflist { display: flex; flex-direction: column; }
.deflist__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border-soft);
}
.deflist__row:last-child { border-bottom: 0; }
.deflist__k { color: var(--text-muted); font-size: var(--fs-sm); }
.deflist__v { font-family: var(--font-mono); font-weight: var(--fw-semi); font-size: var(--fs-md); }

/* Horizontal bar (tag/mistake distribution) */
.bar-row { padding: var(--s-2) 0; }
.bar-row__top { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: 4px; }
.bar-row__label { color: var(--text); }
.bar-row__count { color: var(--text-dim); font-family: var(--font-mono); }
.bar-row__track { height: 6px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.bar-row__fill { height: 100%; background: var(--accent); border-radius: var(--r-pill); transition: width var(--dur-slow) var(--ease); }
.bar-row__fill--neg { background: var(--short); opacity: 0.7; }

/* Link row */
.link-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  background: none;
  transition: color var(--dur-fast);
}
.link-row:hover { color: var(--text); }
.link-row .arrow { transition: transform var(--dur-fast); }
.link-row:hover .arrow { transform: translateX(2px); }

/* Progress */
.progress { height: 6px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.progress__bar { height: 100%; background: var(--accent); border-radius: var(--r-pill); transition: width var(--dur-slow) var(--ease); }
.progress__bar--long { background: var(--long); }
.progress__bar--short { background: var(--short); }

/* Empty / state */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s-2);
  padding: var(--s-8) var(--s-5);
  color: var(--text-muted);
}
.empty__icon { color: var(--text-faint); margin-bottom: var(--s-2); }
.empty h3 { font-size: var(--fs-lg); color: var(--text); font-weight: var(--fw-semi); }
.empty p { font-size: var(--fs-sm); max-width: 320px; }
.empty .btn { margin-top: var(--s-3); }

/* Section label */
.sec-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s-2);
}

/* ------------------------------------------------------------
   Overlays: modal, bottom-sheet, drawer, toast
   ------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--overlay);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn var(--dur) var(--ease);
}
.modal-overlay--end { justify-content: flex-end; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 560px;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 0 var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom, 0));
  box-shadow: var(--shadow-2);
  animation: sheetUp var(--dur-slow) var(--ease-out);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__handle { width: 40px; height: 4px; background: var(--border-strong); border-radius: var(--r-pill); margin: 10px auto 0; flex: none; }

.modal__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  flex: none;
}
.modal__head h3 { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.modal__body { overflow-y: auto; padding: var(--s-2) 0 var(--s-4); }
.modal__foot {
  display: flex;
  gap: var(--s-3);
  padding-top: var(--s-3);
  flex: none;
}
.modal__foot .btn { flex: 1; }

@media (min-width: 760px) {
  .modal-overlay { align-items: center; padding: var(--s-6); }
  .modal {
    max-width: 560px;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    animation: popIn var(--dur) var(--ease-out);
  }
  @keyframes popIn { from { transform: scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Drawer (right) */
.drawer {
  width: min(420px, 88vw);
  height: 100%;
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border-soft);
  flex: none;
}
.drawer__head h3 { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.drawer__body { overflow-y: auto; padding: var(--s-4) var(--s-5) calc(var(--s-6) + env(safe-area-inset-bottom, 0)); }

/* Toast */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--s-5));
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-2);
  animation: toastIn var(--dur) var(--ease-out);
}
.toast--success { border-color: color-mix(in srgb, var(--long) 45%, var(--border)); }
.toast--error { border-color: color-mix(in srgb, var(--short) 45%, var(--border)); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Center stack helpers for splash / empty CTAs */
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); }

/* ============================================================
   Brand identity — candle mark, mascot, wing-bar, coach voice,
   trace entries, stamp, peck loader. Calm cockpit, weird coach.
   ============================================================ */

.wp-mark { color: var(--accent); display: inline-flex; flex: none; }

/* Mascot — only at narrative moments (login, empty states, recap). */
.mascot { display: block; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5)); }
.mascot--lg { width: 188px; height: auto; }
.mascot--md { width: 104px; height: auto; }
.mascot--sm { width: 46px; height: auto; }

/* Mascot attitudes — same image, different mood (no extra assets). */
.mascot-wrap { position: relative; display: inline-block; line-height: 0; }
.mascot-wrap .mascot {
  transform-origin: 50% 92%;
  animation: mascot-breathe 4.5s ease-in-out infinite;
}
.mascot-wrap--peck .mascot { animation: mascot-peck 0.42s ease-in-out infinite; transform-origin: 50% 100%; }
.mascot-wrap--rest .mascot { opacity: 0.72; animation: mascot-breathe 5.5s ease-in-out infinite; }
@keyframes mascot-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.022); } }
@keyframes mascot-peck { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }

/* think = question bubble over the head */
.mascot-bubble {
  position: absolute; top: 0%; right: 4%;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; font-family: var(--font-mono);
  box-shadow: var(--shadow-1);
  animation: mascot-float 2.6s ease-in-out infinite;
}
@keyframes mascot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* rest = drifting z's */
.mascot-zzz { position: absolute; top: 2%; right: -2%; display: flex; flex-direction: column; line-height: 0.9; }
.mascot-zzz i {
  font-style: normal; font-weight: 700; font-family: var(--font-mono); color: var(--text-dim);
  display: block;
}
.mascot-zzz i:nth-child(1) { font-size: 9px; animation: zzz 3.2s ease-in-out infinite; }
.mascot-zzz i:nth-child(2) { font-size: 12px; align-self: flex-end; animation: zzz 3.2s ease-in-out infinite 0.5s; }
.mascot-zzz i:nth-child(3) { font-size: 15px; align-self: flex-end; animation: zzz 3.2s ease-in-out infinite 1s; }
@keyframes zzz { 0%, 100% { transform: translateY(3px); opacity: 0.15; } 50% { transform: translateY(-3px); opacity: 0.75; } }

/* peck = wood chips falling beside the block */
.mascot-chips { position: absolute; bottom: 10%; right: -8%; display: flex; gap: 3px; align-items: flex-end; height: 14px; }
.mascot-chips i { display: block; width: 4px; height: 7px; border-radius: 1px; background: var(--wood); animation: chip 0.7s ease-in-out infinite; }
.mascot-chips i:nth-child(2) { animation-delay: 0.15s; background: var(--accent); }
.mascot-chips i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chip { 0%, 100% { transform: translateY(0) rotate(0); opacity: 0.25; } 50% { transform: translateY(-5px) rotate(22deg); opacity: 1; } }

/* Wing-bar signature separator (three bars). */
.wp-strip { color: var(--accent); display: inline-flex; opacity: 0.85; }
.wp-strip--dim { color: var(--text-faint); }

/* Coach voice — dry one-liner. */
.coach-line { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh); }
.coach-line--good { color: var(--long); }
.coach-line--bad { color: var(--short); }
.coach-line--ok { color: var(--accent-2); }

/* Stamp — compact R badge. */
.stamp {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 30px; padding: 0 8px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: var(--fs-sm);
  border: 1px solid var(--border-soft); background: var(--surface);
  letter-spacing: -0.01em;
}
.stamp--win { color: var(--long); border-color: color-mix(in srgb, var(--long) 40%, var(--border-soft)); }
.stamp--loss { color: var(--short); border-color: color-mix(in srgb, var(--short) 40%, var(--border-soft)); }

/* Trace — editorial journal entry (a training trace, not a table row). */
.trace {
  position: relative;
  padding: var(--s-4) 0 var(--s-4) var(--s-4);
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background var(--dur-fast);
}
.trace:first-child { padding-top: var(--s-2); }
.trace:active { background: var(--surface); }
.trace::before {
  content: ""; position: absolute; left: 0; top: var(--s-3); bottom: var(--s-3);
  width: 2px; border-radius: var(--r-pill); background: var(--text-faint);
}
.trace--win::before { background: var(--long); }
.trace--loss::before { background: var(--short); }
.trace__time { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-dim); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.trace__head { display: flex; align-items: baseline; gap: 8px; margin-top: 3px; }
.trace__inst { font-weight: var(--fw-bold); font-size: var(--fs-md); }
.trace__tf { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-dim); }
.trace__setup { font-size: var(--fs-sm); color: var(--text-muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace__end { margin-top: 7px; display: flex; align-items: center; gap: 8px; }
.trace__meta { font-size: var(--fs-xs); color: var(--text-dim); }

/* Peck loader — three chips like falling wood shavings. */
.loader-peck { display: inline-flex; align-items: flex-end; gap: 4px; height: 20px; }
.loader-peck span { width: 4px; height: 8px; border-radius: 1px; background: var(--accent); animation: peck 0.9s var(--ease) infinite; }
.loader-peck span:nth-child(2) { animation-delay: 0.15s; background: var(--wood); }
.loader-peck span:nth-child(3) { animation-delay: 0.3s; }
@keyframes peck { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-6px); opacity: 1; } }

/* Rapport — Stats progress report owner (distinctive, non-generic). */
.rapport { padding: var(--s-2) 0 var(--s-4); }
.rapport__head { display: flex; align-items: center; justify-content: space-between; }
.rapport__no { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-dim); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.rapport__date { font-size: var(--fs-xs); color: var(--text-faint); }
.rapport__score { text-align: center; margin: var(--s-5) 0 var(--s-2); }
.rapport__score-num { font-size: var(--fs-3xl); font-weight: var(--fw-bold); line-height: 1; font-family: var(--font-mono); letter-spacing: -0.03em; }
.rapport__score-num--good { color: var(--accent); }
.rapport__trend { font-size: var(--fs-sm); color: var(--text-muted); }
.rapport__verdict { text-align: center; max-width: 340px; margin: var(--s-3) auto var(--s-5); }
.rapport__kpi {
  display: flex; align-items: baseline; justify-content: center; gap: var(--s-2); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-muted);
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  padding: var(--s-3) var(--s-2);
}
.rapport__kpi b { color: var(--text); font-weight: var(--fw-semi); }
.rapport__kpi .sep { color: var(--text-faint); }
.rapport__curve { margin: var(--s-4) 0 0; }
