/* ==========================================================================
   Jazz Salvage — Atelier Cinétique
   Direction: Apple-style motion, cinematic dark hero, premium glass surfaces,
   soft animated gradients, tilt micro-interactions, reveal on scroll.
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #f3f4f8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #0b0e14;
  --muted: #5a6372;
  --line: rgba(11, 14, 20, 0.08);

  --accent: #0b0e14;
  --accent-soft: rgba(11, 14, 20, 0.06);
  --hot-1: #ff6bd6;
  --hot-2: #7a8cff;
  --hot-3: #7cf5ff;
  --warm: #ffb86b;

  --priority-a: #ff5a5f;
  --priority-b: #f3ab34;
  --priority-c: #4a88ff;

  --shadow-sm: 0 6px 18px rgba(10, 14, 22, 0.08);
  --shadow: 0 18px 50px rgba(10, 14, 22, 0.10);
  --shadow-lg: 0 40px 90px rgba(10, 14, 22, 0.18);

  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-emphasis: cubic-bezier(0.2, 0.8, 0.2, 1);

  --scroll-progress: 0;
  --hero-px: 0;
  --hero-py: 0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  background: #f3f4f8;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 10% -10%, rgba(122, 140, 255, 0.25), transparent 45%),
    radial-gradient(ellipse at 110% 10%, rgba(255, 107, 214, 0.22), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(124, 245, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #eef1f7, #f5f7fb 40%, #eef1f7);
  background-attachment: fixed;
}

body.overlay-open { overflow: hidden; }

button, input, textarea { font: inherit; }

/* ----- animated canvas layer ----- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.85;
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ----- ticker marquee ----- */
.ticker {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.92), rgba(11, 14, 20, 0.8));
  color: #eaf0ff;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.ticker-track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: tickerSlide 38s linear infinite;
  padding-left: 100%;
}

.ticker-track span { opacity: 0.82; }
.ticker-track span:nth-child(even) { color: var(--hot-1); opacity: 1; }

@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ----- shell ----- */
.app-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 80px;
  position: relative;
}

.app-foot {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  justify-content: center;
  opacity: 0.6;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: #f4f7ff;
  background:
    radial-gradient(circle at 20% 0%, rgba(122, 140, 255, 0.35), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(255, 107, 214, 0.28), transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(124, 245, 255, 0.22), transparent 60%),
    linear-gradient(160deg, #0a0d14 0%, #11151f 60%, #0e1220 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  perspective: 1600px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: screen;
  transition: transform 600ms var(--ease-out);
}

.hero::before {
  width: 360px; height: 360px;
  right: -90px; top: -180px;
  background: radial-gradient(circle, rgba(122, 140, 255, 0.55), transparent 70%);
  transform: translate3d(calc(var(--hero-px) * 30px), calc(var(--hero-py) * 22px), 0);
}

.hero::after {
  width: 280px; height: 280px;
  left: -100px; bottom: -140px;
  background: radial-gradient(circle, rgba(255, 107, 214, 0.42), transparent 72%);
  transform: translate3d(calc(var(--hero-px) * -24px), calc(var(--hero-py) * -20px), 0);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  z-index: 1;
}

.hero-copy-block {
  transform: translate3d(calc(var(--hero-px) * -6px), calc(var(--hero-py) * -4px), 0);
  transition: transform 500ms var(--ease-out);
}

.eyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(244, 247, 255, 0.7);
}

.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hot-1);
  box-shadow: 0 0 14px rgba(255, 107, 214, 0.85);
  animation: pulseDot 1.8s var(--ease-out) infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.7; }
}

.hero-title {
  margin: 0;
  font-family: "SF Pro Display", -apple-system, "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  background: linear-gradient(120deg, #ffffff 0%, #d4dbff 40%, #ffb6e6 78%, #bff6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: riseIn 900ms var(--ease-emphasis) forwards;
}

.hero-title .line:nth-child(2) > span { animation-delay: 110ms; }

@keyframes riseIn {
  to { transform: translateY(0); }
}

.hero-copy {
  max-width: 460px;
  margin: 14px 0 20px;
  color: rgba(244, 247, 255, 0.74);
  font-size: 0.98rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 700ms var(--ease-out) 280ms forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 700ms var(--ease-out) 380ms forwards;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out),
    background 260ms var(--ease-out), color 260ms var(--ease-out);
  border: 1px solid transparent;
}

.btn-primary {
  color: #0b0e14;
  background: linear-gradient(135deg, #ffffff, #d8deff 60%, #ffe1f3);
  box-shadow: 0 12px 30px rgba(122, 140, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-primary svg { width: 16px; height: 16px; }

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(255, 107, 214, 0.4),
    0 12px 30px rgba(122, 140, 255, 0.45);
}

.btn-ghost {
  color: rgba(244, 247, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

/* ----- hero visual (ring + silhouette) ----- */
.hero-visual {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
  transform: translate3d(calc(var(--hero-px) * 18px), calc(var(--hero-py) * 14px), 0);
  transition: transform 500ms var(--ease-out);
}

.ring {
  width: 210px;
  height: 210px;
  position: relative;
  transform: rotate(-90deg);
  filter: drop-shadow(0 10px 30px rgba(122, 140, 255, 0.35));
  animation: ringFloat 6s var(--ease-out) infinite;
}

@keyframes ringFloat {
  0%, 100% { transform: rotate(-90deg) translateY(0); }
  50%      { transform: rotate(-90deg) translateY(-4px); }
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.ring-progress {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.4s var(--ease-emphasis);
}

.jazz {
  position: absolute;
  width: 160px;
  height: auto;
  color: rgba(244, 247, 255, 0.9);
  filter: drop-shadow(0 6px 12px rgba(122, 140, 255, 0.35));
  animation: jazzFloat 5.5s var(--ease-out) infinite;
  transform-origin: center;
}

@keyframes jazzFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-1deg); }
}

.ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
  transform: translateY(72px);
}

.ring-number {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.ring-label {
  display: block;
  margin-top: 2px;
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 247, 255, 0.6);
}

/* ----- hero stats ----- */
.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  z-index: 1;
}

.hero-stats article {
  position: relative;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(16px);
  overflow: hidden;
  transform: translateY(14px);
  opacity: 0;
  animation: fadeUp 800ms var(--ease-out) forwards;
}

.hero-stats article:nth-child(1) { animation-delay: 420ms; }
.hero-stats article:nth-child(2) { animation-delay: 500ms; }
.hero-stats article:nth-child(3) { animation-delay: 580ms; }

.hero-stats article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--hot-1), var(--hot-2), var(--hot-3));
}

.hero-stats .stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff, #cfd7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats small {
  color: rgba(244, 247, 255, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================================================
   PANELS
   ============================================================ */
.layout { margin-top: 22px; }

.panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(130%);
}

.panel-list { padding: 20px; }

.toolbar { display: grid; gap: 14px; }

.search-box span,
.filters legend,
.detail-section h3,
.meta-block h3 {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 20px rgba(15, 23, 36, 0.04);
  transition: border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out),
    transform 240ms var(--ease-out);
}

.search-box input:focus {
  outline: none;
  border-color: rgba(122, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(122, 140, 255, 0.14),
    0 10px 20px rgba(15, 23, 36, 0.05);
  transform: translateY(-1px);
}

/* ----- chip group with gliding indicator ----- */
.filters {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
}

.chip-group {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.05);
  border: 1px solid rgba(11, 14, 20, 0.06);
  isolation: isolate;
}

.chip-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a2030, #0b0e14);
  box-shadow: 0 10px 22px rgba(15, 23, 36, 0.22);
  z-index: -1;
  transition: transform 380ms var(--ease-emphasis), width 380ms var(--ease-emphasis);
}

.filter-chip,
.status-chip {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 280ms var(--ease-out), transform 220ms var(--ease-out);
}

.filter-chip.is-active,
.status-chip.is-active { color: #f8fbff; }

.filter-chip:hover,
.status-chip:hover { transform: translateY(-1px); }

.ghost-button {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 14, 20, 0.08);
  cursor: pointer;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* ----- quick rules ----- */
.quick-rules {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.64), rgba(240, 244, 252, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-sm);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-emphasis);
}

.quick-rules.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reference-box {
  background: linear-gradient(140deg, rgba(122, 140, 255, 0.10), rgba(255, 255, 255, 0.48));
}

.quick-rules h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.quick-rules ul,
.detail-list,
.resource-list,
.safety-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

/* ----- section heading ----- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

/* ============================================================
   ACCORDION LIST
   ============================================================ */
.parts-list {
  display: grid;
  gap: 10px;
}

.list-empty {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: rgba(11, 14, 20, 0.04);
  color: var(--muted);
  text-align: center;
}

.accordion-item {
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 248, 252, 0.72));
  border: 1px solid rgba(11, 14, 20, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm);
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-emphasis),
    box-shadow 280ms var(--ease-out), border-color 280ms var(--ease-out);
  transform-style: preserve-3d;
}

.accordion-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(var(--item-index, 0) * 40ms);
}

.accordion-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(122, 140, 255, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
}

.accordion-item:hover::after { opacity: 1; }

.accordion-item.is-open {
  border-color: rgba(122, 140, 255, 0.24);
  box-shadow: 0 26px 56px rgba(11, 14, 20, 0.14);
}

.accordion-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px;
  align-items: center;
}

.row-check { display: flex; align-items: center; }
.row-check input { position: absolute; opacity: 0; pointer-events: none; }

.check-mark {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(11, 14, 20, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(11, 14, 20, 0.06);
  transition: border-color 220ms var(--ease-out), background 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.row-check:hover .check-mark { transform: scale(1.05); }

.row-check input:checked + .check-mark {
  border-color: transparent;
  background: linear-gradient(135deg, #5f7dff, #a66bff);
  box-shadow: 0 10px 22px rgba(122, 140, 255, 0.35);
}

.row-check input:checked + .check-mark::after {
  content: "";
  width: 10px;
  height: 6px;
  margin-top: -2px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(1);
  animation: checkPop 360ms var(--ease-emphasis);
}

@keyframes checkPop {
  from { transform: rotate(-45deg) scale(0.4); opacity: 0; }
  to   { transform: rotate(-45deg) scale(1);   opacity: 1; }
}

.row-toggle {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.84));
  padding: 12px 14px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 260ms var(--ease-out), transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out), background 260ms var(--ease-out);
}

.row-toggle::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--hot-1), var(--hot-2) 55%, var(--hot-3));
  opacity: 0.85;
  transition: opacity 260ms var(--ease-out);
}

.accordion-item.is-open .row-toggle {
  transform: translateY(-1px);
  border-color: rgba(122, 140, 255, 0.32);
  box-shadow: 0 16px 30px rgba(15, 23, 36, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 255, 0.92));
}

.row-title {
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(11, 14, 20, 0.06);
  font-size: 0.95rem;
  transition: transform 380ms var(--ease-emphasis), background 260ms var(--ease-out),
    color 260ms var(--ease-out);
}

.accordion-item.is-open .row-arrow {
  transform: rotate(135deg);
  color: #fff;
  background: linear-gradient(135deg, #5f7dff, #a66bff);
}

/* ----- panel expansion (grid rows trick) ----- */
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease-emphasis),
    padding 420ms var(--ease-emphasis);
  overflow: hidden;
}

.accordion-panel.is-open { grid-template-rows: 1fr; }

.accordion-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.accordion-summary,
.accordion-meta,
.accordion-actions {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-emphasis);
}

.accordion-item.is-open .accordion-panel { padding: 4px 16px 16px 52px; }

.accordion-item.is-open .accordion-summary { transition-delay: 90ms; opacity: 1; transform: translateY(0); }
.accordion-item.is-open .accordion-meta    { transition-delay: 140ms; opacity: 1; transform: translateY(0); }
.accordion-item.is-open .accordion-actions { transition-delay: 190ms; opacity: 1; transform: translateY(0); }

.accordion-summary {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.accordion-meta,
.detail-topline,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.accordion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.thin-button,
.thin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 14, 20, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out),
    border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out),
    color 220ms var(--ease-out);
}

.thin-button {
  color: #f6f8ff;
  background: linear-gradient(180deg, #1a2030, #0b0e14);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(11, 14, 20, 0.22);
}

.thin-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(122, 140, 255, 0.35);
}

.thin-link:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* ----- badges & pills ----- */
.priority-pill,
.tag,
.detail-badge,
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.priority-pill {
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 6px 14px rgba(11, 14, 20, 0.12);
}

.priority-pill[data-priority="A"] { background: linear-gradient(135deg, #ff5a5f, #ff2d94); }
.priority-pill[data-priority="B"] { background: linear-gradient(135deg, #ffb86b, #f3ab34); color: #2a1800; }
.priority-pill[data-priority="C"] { background: linear-gradient(135deg, #4a88ff, #7cf5ff); color: #04121a; }

.tag,
.detail-badge {
  color: var(--accent);
  background: rgba(11, 14, 20, 0.06);
}

.accordion-item.is-checked {
  border-color: rgba(122, 140, 255, 0.22);
}

.accordion-item.is-checked .row-toggle {
  background:
    linear-gradient(180deg, rgba(232, 239, 255, 0.9), rgba(247, 250, 255, 0.95));
}

.accordion-item.is-checked .row-title {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(11, 14, 20, 0.3);
}

/* ============================================================
   OVERLAY (full detail)
   ============================================================ */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 17, 0.5);
  backdrop-filter: blur(16px) saturate(150%);
  animation: fadeIn 240ms var(--ease-out);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.overlay-panel {
  position: absolute;
  inset: 24px 14px;
  max-width: 860px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 245, 252, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 40px 100px rgba(7, 12, 20, 0.28);
  overflow: auto;
  animation: overlayIn 420ms var(--ease-emphasis);
}

@keyframes overlayIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.overlay-head .eyebrow { color: var(--muted); }
.overlay-content { padding-bottom: 12px; }

.detail-title {
  margin: 12px 0 6px;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.detail-summary,
.detail-section li,
.resource-link,
.meta-block p {
  color: var(--muted);
  line-height: 1.55;
}

.detail-summary { margin: 10px 0 0; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.meta-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 246, 250, 0.84));
  box-shadow: var(--shadow-sm);
}

.detail-section { margin-top: 22px; }

.resource-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.resource-link {
  justify-content: space-between;
  text-decoration: none;
  background: rgba(11, 14, 20, 0.05);
  padding: 10px 14px;
  color: var(--accent);
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.resource-link:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.doc-link { background: rgba(122, 140, 255, 0.12); }

.inline-link { display: inline-flex; }

.resource-link::after {
  content: "ouvrir";
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.safety-list li { margin-bottom: 8px; }

.note-input,
.media-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.note-input:focus,
.media-input:focus {
  outline: none;
  border-color: rgba(122, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(122, 140, 255, 0.14);
}

.note-input { resize: vertical; min-height: 120px; }

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .overlay-panel { inset: 14px; }
}

@media (max-width: 640px) {
  .app-shell { padding: 14px 12px 60px; }

  .hero { padding: 20px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-visual {
    min-height: 180px;
    order: -1;
    margin-bottom: 4px;
  }

  .ring { width: 170px; height: 170px; }
  .jazz { width: 124px; }
  .ring-center { transform: translateY(56px); }
  .ring-number { font-size: 1.1rem; }

  .hero-stats { gap: 8px; }
  .hero-stats article { padding: 10px 12px; }
  .hero-stats .stat-num { font-size: 1.15rem; }
  .hero-stats small { font-size: 0.66rem; letter-spacing: 0.14em; }

  .panel-list { padding: 16px; }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .meta-grid { grid-template-columns: 1fr; }
  .detail-actions { flex-direction: column; align-items: stretch; }

  .accordion-item.is-open .accordion-panel {
    padding: 4px 14px 14px 14px;
  }

  .accordion-actions { flex-direction: column; align-items: stretch; }

  .row-toggle { padding: 11px 12px; }

  .overlay-panel { inset: 10px; padding: 16px; border-radius: 20px; }

  .ticker { font-size: 0.64rem; letter-spacing: 0.22em; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-title .line > span { transform: translateY(0); }
  .hero-copy, .hero-cta, .hero-stats article { opacity: 1; transform: none; }
  .accordion-item { opacity: 1; transform: none; }
}
