/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ───────────────────────────────────────────────── */
:root {
  /* Backgrounds — cool-dark, indigo-tinted */
  --p-bg:        #0b0d12;
  --p-surface:   rgba(21,24,32,0.9);
  --p-raised:    rgba(30,34,46,0.92);
  --p-hover:     rgba(36,40,54,0.96);

  /* Borders — translucent warm white */
  --p-border:    rgba(255,255,255,0.09);
  --p-rule:      1px solid var(--p-border);

  /* Text */
  --p-text:      #eaecf2;
  --p-text-sub:  #9aa0b4;
  --p-muted:     #525870;

  /* Accent — amber */
  --p-amber:     #b07d2e;
  --p-amber-lt:  #d4a547;
  --p-amber-dk:  #8a5e1f;
  --p-amber-bg:  rgba(176,125,46,0.08);

  /* Semantic */
  --p-green:     #4a9040;
  --p-green-lt:  #65b556;
  --p-red:       #9b3228;
  --p-red-lt:    #c0392b;

  /* Geometry */
  --p-radius:    8px;
  --p-radius-sm: 5px;
}

/* ── Page shell ──────────────────────────────────────────────────── */
.product-page {
  background-color: var(--p-bg);
  background-image:
    radial-gradient(ellipse 130% 40% at 50% 110%, rgba(176,125,46,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 70% 30% at 0% 0%, rgba(100,110,200,0.04) 0%, transparent 60%);
  color: var(--p-text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ──────────────────────────────────────────────────── */
.app-nav {
  display: flex;
  align-items: center;
  background: rgba(11,13,18,0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.07);
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 0.5rem 0.25rem calc(0.5rem + env(safe-area-inset-bottom));
  z-index: 100;
}
.app-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  text-decoration: none;
  color: var(--p-muted);
  font-size: 0.67rem;
  font-weight: 500;
  min-height: 44px;
  justify-content: center;
  padding: 0.35rem 0;
  border-radius: var(--p-radius-sm);
  transition: color 0.18s cubic-bezier(.4,0,.2,1);
}
.app-nav a:hover  { color: var(--p-amber-lt); }
.app-nav a.active {
  color: var(--p-amber-lt);
  text-shadow: 0 0 12px rgba(176,125,46,0.6);
}
.app-nav a svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.8;
  transition: filter 0.18s;
}
.app-nav a.active svg {
  filter: drop-shadow(0 0 5px rgba(176,125,46,0.55));
}

.product-main {
  flex: 1;
  padding: 1.5rem 1.25rem calc(5rem + env(safe-area-inset-bottom));
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* Desktop sidebar */
@media (min-width: 768px) {
  .product-page { flex-direction: row; }

  /* Hide mobile bottom bar on desktop */
  .app-nav {
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: auto;
    width: 200px;
    border-top: none;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: rgba(11,13,18,0.92);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 0;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
  }

  /* Brand header */
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 0.5rem;
  }
  .nav-brand img { opacity: 0.85; flex-shrink: 0; }
  .nav-brand-text { font-size: 0.78rem; font-weight: 700; color: var(--p-text); line-height: 1.2; }
  .nav-brand-sub  { font-size: 0.62rem; color: var(--p-muted); }

  /* Nav links — icon + label side by side */
  .app-nav a {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.7rem;
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
    min-height: 44px;
    border-radius: 0;
    color: var(--p-text-sub);
    border-left: 2px solid transparent;
    transition: color 0.18s, background 0.18s, border-color 0.18s;
  }
  .app-nav a:hover {
    color: var(--p-text);
    background: rgba(255,255,255,0.04);
    border-left-color: rgba(176,125,46,0.3);
  }
  .app-nav a.active {
    color: var(--p-amber-lt);
    background: rgba(176,125,46,0.08);
    border-left-color: var(--p-amber);
    text-shadow: none;
  }
  .app-nav a.active svg { filter: none; }
  .app-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }

  /* Mid stats block */
  .nav-mid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
  }
  .nav-mid-section {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-mid-heading {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--p-muted);
    margin-bottom: 0.45rem;
  }

  /* Practice week dots */
  .nav-week-row {
    display: flex;
    gap: 0.3rem;
    align-items: flex-end;
  }
  .nav-week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
  }
  .nav-week-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--p-border);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s;
  }
  .nav-week-dot.done  { background: var(--p-amber); border-color: var(--p-amber-lt); }
  .nav-week-dot.today { box-shadow: 0 0 6px rgba(176,125,46,0.5); }
  .nav-week-label {
    font-size: 0.58rem;
    color: var(--p-muted);
    line-height: 1;
  }
  .nav-week-label.today { color: var(--p-amber-lt); font-weight: 700; }

  /* Focus notes */
  .nav-focus-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .nav-focus-note {
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
  }

  /* Stat rows (last session, reed) */
  .nav-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.22rem 0;
  }
  .nav-stat-label {
    font-size: 0.72rem;
    color: var(--p-text-sub);
  }
  .nav-stat-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--p-text);
  }
  .nav-mid-reed {
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
  }

  /* Sidebar footer — Start Session CTA */
  .nav-sidebar-footer {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
  }
  .nav-footer-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--p-muted);
    margin-bottom: 0.25rem;
  }
  .nav-footer-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--p-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-footer-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
  }
  .nav-footer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--p-amber-lt) 0%, var(--p-amber) 100%);
    color: #0b0d12;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border-radius: var(--p-radius-sm);
    text-decoration: none;
    transition: box-shadow 0.18s, transform 0.12s;
    margin-top: 0.25rem;
  }
  .nav-footer-cta:hover {
    box-shadow: 0 0 14px rgba(176,125,46,0.4);
    transform: translateY(-1px);
  }
  .nav-footer-cta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; flex-shrink: 0; }

  .product-main {
    padding: 2rem 2rem 2rem calc(200px + 2rem);
    max-width: 900px;
  }
}

/* Hide sidebar extras on mobile */
.nav-brand, .nav-sidebar-footer, .nav-mid { display: none; }

/* ── Page header (bassoon icon + title) ──────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: var(--p-rule);
}
.page-header img { flex-shrink: 0; opacity: 0.85; }
.page-header h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--p-text);
  line-height: 1.25;
}
.page-header .sub {
  font-size: 0.75rem;
  color: var(--p-muted);
  margin-top: 0.2rem;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.p-card {
  background: var(--p-surface);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset,
              0 8px 32px rgba(0,0,0,0.28);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.p-card h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--p-text);
  margin-bottom: 0.6rem;
}
.p-card .card-sub {
  font-size: 0.78rem;
  color: var(--p-text-sub);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
/* Clickable card hover */
a.p-card, .p-card-link {
  display: block;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  cursor: pointer;
}
a.p-card:hover, .p-card-link:hover {
  border-color: rgba(176,125,46,0.5);
  background: var(--p-raised);
  box-shadow: 0 0 0 1px rgba(176,125,46,0.12),
              0 8px 32px rgba(0,0,0,0.32);
}

/* ── Home big buttons ────────────────────────────────────────────── */
.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

/* ── Stat pills ──────────────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.stat-pill {
  background: var(--p-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 0.85rem 0.9rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.stat-pill:hover {
  border-color: rgba(176,125,46,0.3);
  box-shadow: 0 0 14px rgba(176,125,46,0.08);
}
.stat-pill .label {
  font-size: 0.65rem;
  color: var(--p-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stat-pill .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--p-text);
  margin-top: 0.15rem;
}
.stat-pill .sub { font-size: 0.68rem; color: var(--p-muted); margin-top: 0.1rem; }

/* ── Session list ────────────────────────────────────────────────── */
.session-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: var(--p-rule);
  text-decoration: none;
  color: var(--p-text);
  transition: background 0.1s;
}
.session-item:last-child { border-bottom: none; }
.session-item:hover { background: var(--p-hover); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: var(--p-radius-sm); }
.session-score {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
  /* color set inline via JS scoreColor — only the border uses amber */
  border: 1.5px solid var(--p-border);
}
.session-info  { flex: 1; min-width: 0; }
.session-name  { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-meta  { font-size: 0.72rem; color: var(--p-muted); margin-top: 0.1rem; }

/* ── Trend ───────────────────────────────────────────────────────── */
.trend-up   { color: var(--p-green-lt); }
.trend-down { color: var(--p-red-lt); }
.trend-flat { color: var(--p-muted); }

/* ── Gauge ───────────────────────────────────────────────────────── */
.gauge-wrap  { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.gauge       { position: relative; width: 120px; height: 120px; }
.gauge svg   { width: 120px; height: 120px; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: var(--p-border); stroke-width: 10; }
.gauge-fill  {
  fill: none; stroke: var(--p-amber); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 0.7s cubic-bezier(.4,0,.2,1), stroke 0.5s ease;
}
.gauge-fill.score-excellent { stroke: var(--p-green-lt); }
.gauge-fill.score-good      { stroke: var(--p-amber-lt); }
.gauge-fill.score-fair      { stroke: #c99440; }
.gauge-fill.score-poor      { stroke: var(--p-red-lt); }
.gauge-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge-number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #e0c060 0%, var(--p-amber-lt) 50%, #c8903a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--p-amber-lt); /* fallback */
}
.gauge-sub    { font-size: 0.65rem; color: var(--p-muted); margin-top: 0.1rem; }

/* ── Recording status bar ────────────────────────────────────────── */
.rec-status-bar {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: rgba(155,50,40,0.12);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: var(--p-radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  color: var(--p-red-lt);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.rec-status-bar.visible { display: flex; }
.rec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--p-red-lt);
  animation: blink-dot 1s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink-dot {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

/* ── Home hero card ──────────────────────────────────────────────── */
.hero-card {
  background:
    radial-gradient(ellipse 120% 80% at 50% 130%, rgba(176,125,46,0.13) 0%, transparent 65%),
    var(--p-surface);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(176,125,46,0.3);
  border-radius: var(--p-radius);
  padding: 1.5rem 1.25rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 0 0 1px rgba(176,125,46,0.06),
              0 12px 40px rgba(0,0,0,0.35);
}
.hero-card h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--p-text);
  line-height: 1.3;
}
.hero-card p {
  font-size: 0.85rem;
  color: var(--p-text-sub);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ── Home module grid ────────────────────────────────────────────── */
.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.big-btn {
  background: var(--p-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 1.1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--p-text-sub);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  min-height: 80px;
  justify-content: center;
  transition: border-color 0.18s cubic-bezier(.4,0,.2,1),
              box-shadow 0.18s cubic-bezier(.4,0,.2,1),
              background 0.18s,
              color 0.18s,
              transform 0.12s cubic-bezier(.4,0,.2,1);
}
.big-btn:hover {
  background: var(--p-raised);
  border-color: rgba(176,125,46,0.45);
  color: var(--p-text);
  box-shadow: 0 0 20px rgba(176,125,46,0.12),
              0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.big-btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.big-btn svg { width: 22px; height: 22px; stroke: var(--p-amber); fill: none; stroke-width: 1.8; }
.big-btn .btn-sub { font-size: 0.68rem; font-weight: 400; color: var(--p-muted); margin-top: 0.1rem; }
.reg-bars    { display: flex; flex-direction: column; gap: 0.45rem; }
.reg-bar-row { display: grid; grid-template-columns: 46px 1fr 32px; gap: 0.4rem; align-items: center; font-size: 0.78rem; }
.reg-bar-row .reg-name  { color: var(--p-muted); text-transform: capitalize; }
.reg-bar-track { background: var(--p-raised); border-radius: 3px; height: 7px; overflow: hidden; }
.reg-bar-fill  { height: 100%; border-radius: 3px; transition: width 0.5s ease; background: var(--p-amber); }
.reg-bar-row .reg-val   { color: var(--p-text-sub); font-weight: 600; text-align: right; }

/* ── Recording button ────────────────────────────────────────────── */
.rec-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(192,57,43,0.6);
  background: rgba(192,57,43,0.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.12s;
}
.rec-btn:hover {
  background: rgba(192,57,43,0.12);
  box-shadow: 0 0 16px rgba(192,57,43,0.25);
  transform: scale(1.03);
}
.rec-btn.active {
  background: var(--p-red);
  border-color: var(--p-red-lt);
  animation: pulse-rec 1.2s ease-in-out infinite;
}
.rec-btn svg        { width: 28px; height: 28px; stroke: var(--p-red-lt); fill: none; stroke-width: 2; }
.rec-btn.active svg { stroke: #eaecf2; }
@keyframes pulse-rec {
  0%,100% { box-shadow: 0 0 0 0   rgba(192,57,43,0.5); }
  50%     { box-shadow: 0 0 0 12px rgba(192,57,43,0);  }
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.p-btn {
  background: linear-gradient(135deg, var(--p-amber-lt) 0%, var(--p-amber) 60%, var(--p-amber-dk) 100%);
  color: #0b0d12;
  border: none;
  border-radius: var(--p-radius-sm);
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  font-size: 0.88rem; font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1),
              transform 0.08s cubic-bezier(.4,0,.2,1),
              background 0.18s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 0 0 0 rgba(176,125,46,0);
}
.p-btn:hover {
  background: linear-gradient(135deg, #e0b455 0%, var(--p-amber-lt) 60%, var(--p-amber) 100%);
  box-shadow: 0 0 18px rgba(176,125,46,0.45),
              0 0 40px rgba(176,125,46,0.15);
  transform: translateY(-1px);
}
.p-btn:active   { transform: scale(0.97) translateY(0); box-shadow: none; }
.p-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.p-btn-outline {
  background: transparent;
  color: var(--p-text-sub);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--p-radius-sm);
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s cubic-bezier(.4,0,.2,1),
              color 0.18s,
              background 0.18s,
              box-shadow 0.18s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.p-btn-outline:hover  {
  border-color: rgba(176,125,46,0.55);
  color: var(--p-text);
  background: rgba(176,125,46,0.06);
  box-shadow: 0 0 12px rgba(176,125,46,0.12);
}
.p-btn-outline:active { background: var(--p-raised); transform: scale(0.98); }

/* ── Form elements ───────────────────────────────────────────────── */
.p-label {
  font-size: 0.75rem; color: var(--p-muted);
  margin-bottom: 0.25rem; display: block;
}
.p-input {
  background: rgba(11,13,18,0.7);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  color: var(--p-text);
  padding: 0.48rem 0.7rem;
  font-size: 0.88rem; width: 100%;
  font-family: inherit;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.p-input:focus {
  outline: none;
  border-color: rgba(176,125,46,0.6);
  box-shadow: 0 0 0 3px rgba(176,125,46,0.1);
}

select.p-input { cursor: pointer; }

/* ── Section label — amber outline only ─────────────────────────── */
.p-section-label {
  font-size: 0.68rem; font-weight: 700;
  color: var(--p-amber);
  text-transform: uppercase; letter-spacing: 0.09em;
  margin: 1.1rem 0 0.5rem;
}

/* ── Page title ──────────────────────────────────────────────────── */
.p-page-title { font-size: 1.2rem; font-weight: 700; color: var(--p-text); margin-bottom: 1.25rem; }

/* ── Feedback banners ────────────────────────────────────────────── */
.p-feedback {
  padding: 0.7rem 0.9rem;
  border-radius: var(--p-radius-sm);
  font-size: 0.85rem;
  margin-top: 0.7rem;
  line-height: 1.5;
}
.p-feedback.pass { background: var(--p-raised); border-left: 2px solid var(--p-green-lt);  color: var(--p-text-sub); }
.p-feedback.fail { background: var(--p-raised); border-left: 2px solid var(--p-red-lt);    color: var(--p-text-sub); }
.p-feedback.info { background: var(--p-raised); border-left: 2px solid var(--p-border);    color: var(--p-text-sub); }

/* ── Empty state ─────────────────────────────────────────────────── */
.p-empty {
  text-align: center; padding: 2.5rem 1rem;
  color: var(--p-muted); font-size: 0.88rem;
}
.p-empty .p-empty-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.empty-bassoon {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.85rem; padding: 2.5rem 1rem; text-align: center;
}
.empty-bassoon p   { font-size: 0.88rem; color: var(--p-muted); max-width: 280px; line-height: 1.6; }
.empty-bassoon a   { text-decoration: none; }

/* ── Register pill ───────────────────────────────────────────────── */
.register-pill {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 99px;
  margin-left: 0.35rem;
  border: 1px solid var(--p-amber);
  color: var(--p-amber);
  vertical-align: middle;
}

/* ── How-to guide (collapsible <details>) ────────────────────────── */
.how-to-guide { margin-bottom: 0.85rem; }
.how-to-guide summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--p-amber);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.1rem 0;
  user-select: none;
}
.how-to-guide summary::-webkit-details-marker { display: none; }
.how-to-guide summary::before {
  content: '▶';
  font-size: 0.6rem;
  transition: transform 0.15s;
  display: inline-block;
}
.how-to-guide[open] summary::before { transform: rotate(90deg); }
.how-to-guide .steps { margin-top: 0.85rem; }
.how-to-guide .step {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: var(--p-rule);
  font-size: 0.85rem;
  color: var(--p-text-sub);
  line-height: 1.5;
}
.how-to-guide .step:last-of-type { border-bottom: none; }
.how-to-guide .step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--p-amber);
  color: var(--p-amber);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.how-to-guide .step strong { color: var(--p-text); }

/* ── Score legend ────────────────────────────────────────────────── */
.score-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: var(--p-rule);
}
.score-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  color: var(--p-muted);
}
.score-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Progress page extras ────────────────────────────────────────── */
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.85rem; }
.highlight-grid .p-card { margin-bottom: 0; }
.score-badge    { font-size: 1.6rem; font-weight: 700; line-height: 1; margin: 0.2rem 0; }
.reg-legend     { display: flex; gap: 0.85rem; margin-bottom: 0.7rem; flex-wrap: wrap; }
.reg-legend-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; color: var(--p-muted); }
.reg-legend-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.improvement-banner {
  display: flex; align-items: center; gap: 0.7rem;
  background: rgba(176,125,46,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(176,125,46,0.2);
  border-radius: var(--p-radius);
  padding: 0.8rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--p-text-sub);
}
.improvement-banner .icon { font-size: 1.2rem; flex-shrink: 0; }
