/* Slow Session — deep pine & gold on warm paper.
   A pure reskin: every selector matches the existing markup. */

/* ---------- typefaces (vendored, offline-friendly) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../vendor/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../vendor/fonts/fraunces-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../vendor/fonts/fraunces-latin-600-italic.woff2") format("woff2");
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../vendor/fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../vendor/fonts/nunito-sans-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../vendor/fonts/nunito-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../vendor/fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #f3ead7;
  --paper-deep: #ece0c6;
  --card: #fffdf6;
  --ink: #2a2114;
  --muted: #85755b;
  --line: #e2d3b2;
  --line-soft: #eadfc6;

  --pine: #143829;
  --pine-2: #1d4a37;
  --moss: #2e6e4e;
  --moss-soft: #e0ecdf;
  --terracotta: #bc5722;
  --terracotta-deep: #9c4318;
  --gold: #d9a441;
  --gold-soft: #f0dfae;
  --gold-deep: #a97a1e;
  --denim: #4f7fae;
  --stone: #9a8b72;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow:
    0 1px 2px rgba(66, 47, 16, 0.06),
    0 6px 18px rgba(66, 47, 16, 0.07);
  --shadow-lift:
    0 2px 4px rgba(66, 47, 16, 0.08),
    0 12px 28px rgba(66, 47, 16, 0.12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(42, 33, 20, 0.035) 1px, transparent 1.2px),
    linear-gradient(175deg, #f6efe0 0%, var(--paper) 40%, #efe3c9 100%);
  background-size: 26px 26px, 100% 100%;
  background-attachment: fixed;
}

h1, h2, h3, .brand {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.005em;
}
h1 { font-size: 1.9rem; margin: 0.2em 0 0.35em; color: #1c2f24; }
h1 em { color: var(--moss); font-style: italic; }
h2 { font-size: 1.22rem; margin: 0 0 0.6em; color: #23392c; }

a { color: var(--moss); text-underline-offset: 2px; }
p { margin: 0.4em 0 0.85em; }

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.empty { padding: 0.9em 0.4em; }
.yours { color: var(--terracotta); font-size: 0.85em; font-weight: 600; }

::selection { background: var(--gold-soft); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  padding: 0.65rem clamp(1rem, 4vw, 2rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.12)),
    var(--pine);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(20, 56, 41, 0.25);
}
.brand {
  font-size: 1.28rem;
  text-decoration: none;
  color: #f7efdb;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.brand span { border-bottom: 2px solid rgba(217, 164, 65, 0.55); padding-bottom: 1px; }
.nav { display: flex; gap: 0.15rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: rgba(247, 239, 219, 0.72);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 140ms, background-color 140ms;
}
.nav a.active {
  background: rgba(217, 164, 65, 0.18);
  color: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(217, 164, 65, 0.45);
}
.nav a:hover { color: #fff; }

/* ---------- layout ---------- */
.app {
  max-width: 740px;
  margin: 0 auto;
  padding: 1.3rem 1rem 3rem;
}
.app > * {
  animation: rise 380ms cubic-bezier(0.22, 0.8, 0.36, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app > *, .btn-mic.recording { animation: none !important; }
  * { transition: none !important; }
}

.footer {
  max-width: 740px;
  margin: 0 auto;
  padding: 2.2rem 1rem 2.8rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.footer::before {
  content: "❧";
  display: block;
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
.footer a { color: var(--muted); }

/* ---------- cards & hero ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  margin: 0 0 1.1rem;
}
.card > h2:first-child::before,
.card > h2:first-of-type::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold), var(--gold-deep));
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.2);
}

.hero {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 22px;
  padding: 2rem 1.6rem 1.9rem;
  margin: 0 0 1.1rem;
  color: #f3ecd9;
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(217, 164, 65, 0.28), transparent 55%),
    linear-gradient(160deg, var(--pine-2), var(--pine) 70%);
  box-shadow: 0 14px 34px rgba(20, 56, 41, 0.35);
}
.hero::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 190px;
  height: 190px;
  opacity: 0.14;
  transform: rotate(9deg);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 130'%3E%3Cg fill='%23f0dfae'%3E%3Cellipse cx='30' cy='104' rx='15' ry='10' transform='rotate(-16 30 104)'/%3E%3Cellipse cx='92' cy='96' rx='15' ry='10' transform='rotate(-16 92 96)'/%3E%3Crect x='41' y='34' width='6.5' height='66'/%3E%3Crect x='103' y='26' width='6.5' height='66'/%3E%3Cpath d='M41 34 L109.5 26 L109.5 42 L41 50 Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.hero h1 { color: #f7f0dc; font-size: clamp(1.75rem, 5.4vw, 2.35rem); font-weight: 700; }
.hero h1 em { color: var(--gold); }
.hero p { max-width: 48ch; color: rgba(243, 236, 217, 0.85); }
.hero-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 1.1rem; position: relative; }
.hero-actions .btn {
  background: transparent;
  border: 1.5px solid rgba(243, 236, 217, 0.5);
  color: #f3ecd9;
}
.hero-actions .btn:hover { border-color: #f3ecd9; color: #fff; }
.hero-actions .btn-primary {
  background: linear-gradient(170deg, #e7b657, var(--gold) 60%, #c8922f);
  border: none;
  color: #34260a;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.hero-actions .btn-primary:hover { filter: brightness(1.06); color: #34260a; }

.page-head { margin: 0.4rem 0.15rem 1.1rem; }
.crumb {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-deep);
}
.crumb:hover { color: var(--terracotta); }
.tune-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.tune-note { color: #6d5c40; font-style: italic; max-width: 56ch; font-size: 1.02rem; }

.card-list { display: grid; gap: 0.7rem; }
.row-gap { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin: 0.6rem 0 0.2rem; }

/* ---------- tune & set cards ---------- */
.tune-card, .set-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--stone);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  box-shadow: 0 1px 3px rgba(66, 47, 16, 0.05);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms;
}
.tune-card:hover, .set-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line);
}
.set-card { border-left-color: var(--gold); }
.tune-card:has(.type-jig)      { border-left-color: #2e6e4e; }
.tune-card:has(.type-reel)     { border-left-color: #4f7fae; }
.tune-card:has(.type-polka)    { border-left-color: #c2571f; }
.tune-card:has(.type-slip-jig) { border-left-color: #7d5a94; }
.tune-card:has(.type-slide)    { border-left-color: #b98a12; }
.tune-card:has(.type-hornpipe) { border-left-color: #3f7d74; }
.tune-card:has(.type-waltz)    { border-left-color: #a2504f; }

.tune-card-top, .set-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.tune-title, .set-name { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; }
.tune-card-sub, .set-card-tunes { color: var(--muted); font-size: 0.86rem; margin-top: 0.2rem; }
.set-card-tunes { font-weight: 600; }
.set-card-blurb { font-size: 0.87rem; margin-top: 0.35rem; color: #5d5138; }

/* ---------- badges & chips ---------- */
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  background: #ece1c6;
  color: #6b5c43;
}
.badge-soft { background: #f0e8d4; color: var(--muted); }
.type-jig      { background: #ddeadd; color: #235c3d; }
.type-reel     { background: #dde8f2; color: #33587e; }
.type-polka    { background: #f9e2d0; color: #a04a17; }
.type-slip-jig { background: #ece0f1; color: #6b4a82; }
.type-slide    { background: #f6ead0; color: #8a6710; }
.type-hornpipe { background: #dcebe8; color: #2f6a61; }
.type-waltz    { background: #f5e0e0; color: #91403f; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.45rem 0; }
.chip {
  border: 1.5px solid var(--line);
  background: var(--card);
  color: #6f6047;
  border-radius: 999px;
  padding: 0.38rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  transition: border-color 130ms, color 130ms, background-color 130ms, transform 130ms;
}
.chip small { font-size: 0.67rem; color: inherit; opacity: 0.72; font-weight: 700; letter-spacing: 0.04em; }
.chip.active {
  background: linear-gradient(165deg, var(--moss), var(--pine-2));
  border-color: var(--pine-2);
  color: #f3ecd9;
  box-shadow: 0 3px 10px rgba(30, 74, 55, 0.3);
}
.chip:hover:not(.active) { border-color: var(--moss); color: var(--moss); transform: translateY(-1px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: #4c4028;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 130ms, color 130ms, transform 130ms, box-shadow 130ms, filter 130ms;
}
.btn:hover { border-color: var(--moss); color: var(--moss); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(170deg, var(--moss), var(--pine-2) 80%);
  border-color: transparent;
  color: #f5efdc;
  box-shadow: 0 5px 14px rgba(30, 74, 55, 0.32);
}
.btn-primary:hover { color: #fff; filter: brightness(1.07); border-color: transparent; }
.btn-small { padding: 0.34rem 0.8rem; font-size: 0.85rem; }
.btn-danger { color: #a33b2a; border-color: #e3c3b8; background: #fff9f4; }
.btn-danger:hover { border-color: #a33b2a; color: #a33b2a; }
.btn.active {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
  background: #faf1da;
  box-shadow: inset 0 1px 3px rgba(169, 122, 30, 0.15);
}
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn[hidden] { display: none; }

/* ---------- player ---------- */
.player-card { background: linear-gradient(180deg, #fffdf6, #fbf5e6); }
.player-main { display: flex; align-items: center; gap: 1.1rem; }
.btn-play {
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 50%;
  border: none;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.25), transparent 55%),
    linear-gradient(170deg, var(--moss), var(--pine-2));
  color: #f5efdc;
  font-size: 1.55rem;
  cursor: pointer;
  box-shadow:
    0 8px 20px rgba(30, 74, 55, 0.4),
    0 0 0 7px rgba(46, 110, 78, 0.12);
  transition: transform 130ms, filter 130ms, box-shadow 130ms;
}
.btn-play:hover { filter: brightness(1.08); transform: scale(1.03); }
.btn-play:active { transform: scale(0.97); }
.player-side { min-width: 0; }
.player-status { font-size: 0.94rem; color: var(--muted); margin-bottom: 0.45rem; font-style: italic; }
.player-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.speed-block { margin-top: 1rem; }
.control-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gold-deep);
  margin: 0.7rem 0 0.25rem;
}

/* ---------- familiarity ---------- */
.status-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.status-pill {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: #7c6c50;
  cursor: pointer;
  transition: all 140ms ease;
}
.status-pill:hover { transform: translateY(-1px); }
.status-pill.active { color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(66, 47, 16, 0.22); }
.status-pill.st-new.active       { background: linear-gradient(170deg, #a99a80, #8c7c61); }
.status-pill.st-listening.active { background: linear-gradient(170deg, #5f8fbe, #45719c); }
.status-pill.st-learning.active  { background: linear-gradient(170deg, #dfab48, #b8862a); }
.status-pill.st-nearly.active    { background: linear-gradient(170deg, #c9652d, var(--terracotta-deep)); }
.status-pill.st-ready.active     { background: linear-gradient(170deg, var(--moss), var(--pine-2)); }

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stone);
  box-shadow: 0 0 0 2.5px rgba(154, 139, 114, 0.22);
  vertical-align: baseline;
}
.status-dot.st-listening { background: var(--denim); box-shadow: 0 0 0 2.5px rgba(79, 127, 174, 0.22); }
.status-dot.st-learning  { background: var(--gold); box-shadow: 0 0 0 2.5px rgba(217, 164, 65, 0.25); }
.status-dot.st-nearly    { background: var(--terracotta); box-shadow: 0 0 0 2.5px rgba(188, 87, 34, 0.22); }
.status-dot.st-ready     { background: var(--moss); box-shadow: 0 0 0 2.5px rgba(46, 110, 78, 0.22); }

.status-chip {
  font-size: 0.71rem;
  font-weight: 700;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  background: #efe7d2;
  color: var(--muted);
  white-space: nowrap;
}
.status-chip.st-listening { background: #dde8f2; color: #33587e; }
.status-chip.st-learning  { background: #f7ecd2; color: #8a6710; }
.status-chip.st-nearly    { background: #f9e2d0; color: #a04a17; }
.status-chip.st-ready     { background: #ddeadd; color: #235c3d; }

.count-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.count-chip {
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(180deg, #f8f2e2, #f1e7cf);
  border: 1px solid var(--line-soft);
  color: var(--muted);
}
.count-chip strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-right: 0.3rem;
  color: var(--ink);
}
.count-chip.st-ready strong { color: var(--moss); }
.count-chip.st-nearly strong { color: var(--terracotta); }
.count-chip.st-learning strong { color: var(--gold-deep); }

/* ---------- notation ---------- */
.notation-area { margin: 0.9rem 0; overflow-x: auto; }
.ear-first {
  background: linear-gradient(180deg, #eaf2e9, var(--moss-soft));
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  color: #235c3d;
  font-weight: 600;
}
.note-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.45rem; }
.note-bar {
  background: linear-gradient(180deg, #fbf6e8, #f4ecd7);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.32rem 0.6rem;
  font-family: "SF Mono", ui-monospace, Consolas, Menlo, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 2px rgba(66, 47, 16, 0.06);
}
.note-bar b { font-weight: 600; color: #3d3322; }
.note-bar.rep-start { border-left: 3px solid var(--gold-deep); }
.note-bar.rep-end { border-right: 3px solid var(--gold-deep); }

.abc-pre {
  background: #f7f1e0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.55;
}
details summary {
  cursor: pointer;
  color: var(--gold-deep);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.notation-area svg, .transition-sheet svg { max-width: 100%; }

/* ---------- inputs & filters ---------- */
.filters { margin-bottom: 1.1rem; }
input[type="text"], input[type="search"], select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  padding: 0.6rem 0.9rem;
  margin: 0.2rem 0 0.55rem;
  transition: border-color 130ms, box-shadow 130ms;
}
.filters select { width: auto; }
textarea { font-family: "SF Mono", ui-monospace, Consolas, Menlo, monospace; font-size: 0.88rem; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3.5px rgba(46, 110, 78, 0.15);
}
input[type="file"] {
  width: 100%;
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius-sm);
  background: #fbf5e4;
  padding: 0.75rem 0.9rem;
  margin: 0.2rem 0 0.5rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--muted);
}

.add-nudge { text-align: center; color: var(--muted); }

/* ---------- sets ---------- */
.set-order { list-style: none; margin: 0; padding: 0; }
.set-order li { border-bottom: 1px solid var(--line-soft); }
.set-order li:last-child { border-bottom: none; }
.set-order a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.3rem;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: background-color 130ms;
}
.set-order a:hover { background: #faf4e3; }
.set-order li.now-playing {
  background: linear-gradient(90deg, var(--moss-soft), transparent);
  border-radius: 10px;
}
.set-order li.now-playing .order-n {
  background: linear-gradient(170deg, var(--moss), var(--pine-2));
  color: #f3ecd9;
}
.order-n {
  flex: none;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: #efe6cd;
  color: #8a7752;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.order-title {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listen-card { background: linear-gradient(180deg, #fffdf6, #f6efdd); }
.listen-status {
  margin-top: 0.8rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(180deg, #eaf2e9, var(--moss-soft));
  border-left: 4px solid var(--moss);
  border-radius: 10px;
  color: #235c3d;
  font-weight: 600;
  font-size: 0.95rem;
}

.transition-card {
  border: 1.5px dashed var(--gold);
  background: #fdfaf0;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 0.9rem;
}
.transition-head { margin-bottom: 0.45rem; font-family: var(--serif); }
.transition-head strong { font-weight: 600; }
.transition-sheet { overflow-x: auto; }

/* ---------- set editor ---------- */
.picked-row, .pick-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.picked-actions { display: flex; gap: 0.3rem; }
.picked-actions button {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 0.22rem 0.55rem;
  cursor: pointer;
  color: var(--muted);
  transition: color 130ms, border-color 130ms;
}
.picked-actions button:hover:not([disabled]) { color: var(--moss); border-color: var(--moss); }
.picked-actions button[disabled] { opacity: 0.35; cursor: default; }
.pick-list { max-height: 340px; overflow-y: auto; }
.save-row { margin-top: 1rem; }

/* ---------- catch a tune ---------- */
.catch-card { text-align: center; }
.btn-mic {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: none;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(170deg, #cf6a2e, var(--terracotta-deep));
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow:
    0 10px 26px rgba(156, 67, 24, 0.4),
    0 0 0 8px rgba(188, 87, 34, 0.12);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  margin: 0.5rem auto 0.8rem;
  transition: transform 130ms, filter 130ms;
}
.btn-mic span {
  font-size: 0.72rem;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn-mic:hover { filter: brightness(1.07); transform: scale(1.03); }
.btn-mic.recording {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(170deg, #b04a30, #8c2f1c);
  animation: mic-pulse 1.4s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(140, 47, 28, 0.4), 0 0 0 0 rgba(163, 59, 42, 0.4); }
  50% { box-shadow: 0 10px 26px rgba(140, 47, 28, 0.4), 0 0 0 22px rgba(163, 59, 42, 0); }
}

.live-notes {
  background: linear-gradient(180deg, #fbf6e8, #f4ecd7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  margin: 0.7rem 0;
  font-family: "SF Mono", ui-monospace, Consolas, Menlo, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  overflow-wrap: break-word;
  text-align: left;
  color: #4c4028;
}
.upload-row { margin: 0.7rem 0 0.4rem; }

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.match-row:last-of-type { border-bottom: none; }
.match-info { flex: 1; min-width: 0; }
.match-info strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.match-actions { display: flex; gap: 0.4rem; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.conf-bar {
  height: 8px;
  border-radius: 999px;
  background: #ece2c8;
  margin: 0.4rem 0 0.25rem;
  max-width: 270px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(66, 47, 16, 0.12);
}
.conf-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--moss));
}

.capture-row { border-bottom: 1px solid var(--line-soft); padding: 0.8rem 0; }
.capture-row:last-child { border-bottom: none; }
.capture-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.capture-title { font-family: var(--serif); font-weight: 600; }
.mystery { color: var(--terracotta); }
.capture-notes {
  font-family: "SF Mono", ui-monospace, Consolas, Menlo, monospace;
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0.4rem 0;
  overflow-wrap: break-word;
}
.capture-name {
  width: auto;
  margin: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  border-radius: 999px;
}
.catch-teaser {
  background:
    radial-gradient(120% 160% at 90% -30%, rgba(217, 164, 65, 0.18), transparent 55%),
    linear-gradient(160deg, #fdf8ec, #f8ecd6);
  border: 1px solid var(--gold-soft);
}

/* ---------- misc ---------- */
.how-to ol, .how-to ul { padding-left: 1.25rem; margin: 0.4rem 0; }
.how-to li { margin-bottom: 0.5rem; }
.how-to li::marker { color: var(--gold-deep); font-weight: 700; font-family: var(--serif); }
.card code, .how-to code {
  background: #f4ecd7;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  font-size: 0.85em;
}
.danger-zone { text-align: center; }

@media (min-width: 580px) {
  .card-list { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.2rem; }
}
