/* Song coach ("Teach me this song"): upload, analysis, review, the song's plan and the practice lane.
   Uses the tokens in base.css. Classes are prefixed sc-. */

.sc-main { display: block; padding: 18px var(--gutter) 64px; }
.sc-stage { max-width: 1120px; margin: 0 auto; }
.sc-stage > section { animation: none; }
.sc-enter { animation: sc-in 420ms var(--ease-out) backwards; }   /* backwards, not both: a held transform would trap fixed children (the pinned button) */
.sc-enter > * { animation: sc-in 520ms var(--ease-out) backwards; }
.sc-enter > *:nth-child(2) { animation-delay: 50ms; }
.sc-enter > *:nth-child(3) { animation-delay: 100ms; }
.sc-enter > *:nth-child(4) { animation-delay: 150ms; }
.sc-enter > *:nth-child(5) { animation-delay: 200ms; }
.sc-enter > *:nth-child(n+6) { animation-delay: 240ms; }
@keyframes sc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.sc-hero-bud { position: relative; width: 132px; margin: 0 auto 8px; }
.sc-hero-bud.sm { width: 84px; margin: 0; flex: none; }
.sc-hero-bud svg { width: 100%; height: auto; }
.sc-notes i {
  position: absolute; top: 18%; right: -6%; font-style: normal; font-weight: 700; color: var(--coral);
  font-size: 1.4rem; opacity: 0; animation: sc-note 2.8s ease-out infinite;
}
.sc-notes i:nth-child(2) { animation-delay: 0.9s; right: 4%; color: var(--teal-deeper); }
.sc-notes i:nth-child(3) { animation-delay: 1.8s; right: -14%; }
@keyframes sc-note { 0% { opacity: 0; transform: translate(0, 10px) rotate(-8deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -46px) rotate(14deg); } }

.sc-card-title, .sc-stage h2 { font-family: var(--font-head); }

/* ---------- Upload ---------- */

.sc-home { max-width: 640px; margin: 0 auto; text-align: center; }
.sc-hero-text .ob-title { font-size: clamp(2rem, 6vw, 3rem); }
.sc-hero-text .ob-hint { max-width: 32em; margin: 10px auto 0; }
.sc-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 26px auto 0; padding: 30px 20px 26px;
  border: 2.5px dashed var(--teal-dark); border-radius: var(--r-card); background: var(--white);
  cursor: pointer; transition: transform 160ms var(--ease-out), border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  box-shadow: var(--sh-card);
}
@media (hover: hover) and (pointer: fine) { .sc-drop:hover { transform: translateY(-2px); border-color: var(--teal-deeper); } }
.sc-drop:active { transform: translateY(1px) scale(0.995); }
.sc-drop:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.sc-drop.is-over { background: var(--belly); border-color: var(--coral); transform: scale(1.015); }
.sc-drop.is-locked { border-style: solid; border-color: var(--dash); }
.sc-drop b { font-family: var(--font-head); font-size: 1.35rem; }
.sc-drop small { color: var(--ink-soft); margin-top: 6px; }
.sc-drop-or { color: var(--ink-soft); font-size: 0.9rem; }
.sc-drop .btn { pointer-events: none; }
.sc-drop-ic {
  position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 6px;
  border-radius: 50%; background: var(--teal); color: var(--ink);
}
.sc-drop-ic > .ic { width: 32px; height: 32px; animation: sc-bob 2.4s ease-in-out infinite; }
@keyframes sc-bob { 50% { transform: translateY(-4px); } }
.sc-eq { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.sc-eq i { width: 4px; height: 100%; border-radius: 2px; background: var(--coral); transform-origin: bottom; animation: sc-eq 1.1s ease-in-out infinite; }
.sc-eq i:nth-child(2) { animation-delay: -0.3s; } .sc-eq i:nth-child(3) { animation-delay: -0.6s; }
.sc-eq i:nth-child(4) { animation-delay: -0.15s; } .sc-eq i:nth-child(5) { animation-delay: -0.45s; }
@keyframes sc-eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

.sc-facts { list-style: none; padding: 0; margin: 18px auto 0; display: grid; gap: 8px; text-align: left; max-width: 520px; }
.sc-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); }
.sc-facts .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--teal-deeper); }
.sc-demo { margin-top: 18px; }

.sc-mine { margin-top: 34px; text-align: left; }
.sc-mine-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.sc-mine-list li { display: flex; align-items: center; gap: 6px; }
.sc-song {
  flex: 1; display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-decoration: none;
  background: var(--white); border-radius: 16px; box-shadow: var(--sh-card);
  transition: transform 120ms ease-out;
}
@media (hover: hover) and (pointer: fine) { .sc-song:hover { transform: translateY(-1px); } }
.sc-song:active { transform: translateY(1px); }
.sc-song > .ic { width: 20px; height: 20px; color: var(--ink-soft); }
.sc-song-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sc-song-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-song-text small { color: var(--ink-soft); }
.sc-del { border: 0; background: none; padding: 10px; border-radius: 50%; cursor: pointer; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .sc-del:hover { background: var(--blush); color: var(--coral-text); } }
.sc-del .ic { width: 20px; height: 20px; }

.sc-ring-sm {
  --p: 0; position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: conic-gradient(var(--teal-deeper) calc(var(--p) * 360deg), var(--belly) 0);
}
.sc-ring-sm::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--white); }
.sc-ring-sm b { position: relative; font-size: 0.72rem; font-weight: 700; }

/* ---------- Analysing ---------- */

.sc-analyse, .sc-few { max-width: 560px; margin: 0 auto; text-align: center; }
.sc-hero-bud.is-listening svg { animation: sc-tilt 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes sc-tilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.sc-bubble {
  position: absolute; left: 92%; top: 6%; white-space: nowrap; padding: 6px 12px; border-radius: 14px 14px 14px 4px;
  background: var(--white); font-family: var(--font-hand); font-size: 1.25rem; font-weight: 700; box-shadow: var(--sh-card);
}
.sc-scan { position: relative; margin: 22px 0 14px; height: 120px; border-radius: 16px; background: var(--white); overflow: hidden; box-shadow: var(--sh-card); }
.sc-partial { width: 100%; height: 100%; }
.sc-scan-glow { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(145, 215, 215, 0.25), transparent); animation: sc-sweep 1.8s linear infinite; }
@keyframes sc-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sc-bar { height: 10px; border-radius: 99px; background: var(--belly); overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal-deeper), var(--teal)); transition: width 200ms ease-out; }
.sc-phases { list-style: none; padding: 0; margin: 18px auto 0; display: grid; gap: 10px; text-align: left; max-width: 320px; }
.sc-phases li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 600; transition: color 200ms ease; }
.sc-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--dash); color: transparent; transition: all 240ms var(--ease-out); }
.sc-dot .ic { width: 16px; height: 16px; }
.sc-phases li.is-now { color: var(--ink); }
.sc-phases li.is-now .sc-dot { border-color: var(--coral); animation: sc-pulse 1s ease-in-out infinite; }
.sc-phases li.is-done { color: var(--ink); }
.sc-phases li.is-done .sc-dot { background: var(--teal-deeper); border-color: var(--teal-deeper); color: var(--white); transform: scale(1.05); }
@keyframes sc-pulse { 50% { box-shadow: 0 0 0 6px rgba(242, 113, 101, 0.18); } }

/* ---------- Review ---------- */

.sc-review { max-width: 760px; margin: 0 auto; }
.sc-review-head { display: flex; gap: 16px; align-items: center; }
.sc-chips { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sc-chips li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 16px; background: var(--white); box-shadow: var(--sh-card); }
.sc-chips small { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.sc-chips b { font-family: var(--font-head); font-size: 1.15rem; }
.sc-chips.sm { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sc-chips.sm li { flex-direction: row; align-items: center; padding: 6px 12px; border-radius: 99px; }
.sc-chips.sm b { font-size: 0.95rem; font-family: var(--font-body); }
.sc-chips.sm .sc-chip-prog { padding: 2px; background: none; box-shadow: none; }
.sc-chips.sm .sc-ring-sm { width: 40px; height: 40px; }
.sc-mapcard { padding: 12px 12px 10px; }
.sc-map { width: 100%; height: 150px; cursor: pointer; touch-action: manipulation; }
.sc-map-bar { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.sc-map-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-soft); font-size: 0.9rem; }
.sc-legend { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink-soft); }
.sc-legend i { width: 14px; height: 6px; border-radius: 3px; background: rgba(46, 61, 68, 0.16); }
.sc-legend i.l-ok { background: var(--teal-deeper); margin-left: 8px; }

.sc-fit h2 { margin-bottom: 12px; }
.sc-fit-keys { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; height: 60px; padding-top: 24px; }
.sc-fit-keys > i { background: var(--mint); border-radius: 0 0 5px 5px; border: 1px solid rgba(46, 61, 68, 0.1); }
.sc-fit-keys > i.blk { background: #3B4A51; height: 62%; }
.sc-fit-you, .sc-fit-song { position: absolute; height: 10px; border-radius: 6px; }
.sc-fit-you { top: 24px; bottom: 0; height: auto; background: rgba(145, 215, 215, 0.45); border: 2px solid var(--teal-deeper); border-radius: 8px; }
.sc-fit-song { top: 0; height: 18px; background: var(--coral); border-radius: 9px; }
.sc-fit-you em, .sc-fit-song em { position: absolute; font-style: normal; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.sc-fit-song em { left: 8px; top: 50%; transform: translateY(-50%); color: var(--white); font-size: 0.7rem; }
.sc-fit-you em { right: 4px; bottom: 2px; color: var(--ink); }
.sc-fit-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-soft); font-weight: 700; margin-top: 4px; }
.sc-fit-msg { margin: 10px 0 0; font-weight: 600; }
.sc-fit-msg.is-fit::before { content: '✓ '; color: var(--teal-deeper); font-weight: 700; }
.sc-fit-oct { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.sc-fit .sc-legendrow { display: flex; gap: 14px; }

.sc-lines { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.sc-line { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--white); box-shadow: var(--sh-card); transition: opacity 200ms ease, transform 200ms ease; }
.sc-line.is-skip { opacity: 0.5; }
.sc-line.is-playing { box-shadow: 0 0 0 2px var(--coral), var(--sh-card); }
.sc-line-play { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--teal); cursor: pointer; transition: transform 100ms ease-out; }
.sc-line-play:active { transform: scale(0.92); }
.sc-line-play .ic { width: 20px; height: 20px; }
.sc-line.is-playing .sc-line-play { background: var(--coral); color: var(--white); }
.sc-line-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sc-line-text small { color: var(--ink-soft); font-size: 0.85rem; }
.sc-contour rect { fill: var(--teal-deeper); }
.sc-line.is-skip .sc-contour rect { fill: var(--dash); }
.sc-skip { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.sc-skip input { width: 18px; height: 18px; accent-color: var(--coral); }
.sc-name { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-weight: 700; }
.sc-name input { font: inherit; font-weight: 600; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--belly); background: var(--white); }
.sc-name input:focus { outline: none; border-color: var(--teal-deeper); }
.sc-sticky { position: sticky; bottom: 12px; margin-top: 18px; z-index: 2; }
.sc-sticky .btn { width: 100%; }

/* ---------- The song: map, fit and plan ---------- */

.sc-over { display: grid; gap: 22px; }
.sc-over-head .ob-title { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.sc-over-head .eyebrow { margin-bottom: 6px; }
.sc-round {
  display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--coral); color: var(--white); box-shadow: var(--sh-solid); transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}
.sc-round.sm { width: 42px; height: 42px; box-shadow: var(--sh-solid); }
.sc-round:active { transform: translateY(1px); box-shadow: var(--sh-press); }
.sc-round .ic { width: 22px; height: 22px; }
.sc-round .ic-fill, .sc-go .ic-fill { fill: currentColor; }

.sc-oct { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-weight: 700; color: var(--ink-soft); }
.sc-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 99px; background: var(--white); box-shadow: var(--sh-card); }
.sc-seg-b { border: 0; background: none; padding: 7px 14px; border-radius: 99px; font-weight: 700; font-size: 0.92rem; cursor: pointer; color: var(--ink-soft); transition: background-color 160ms ease, color 160ms ease; }
.sc-seg-b.is-on { background: var(--ink); color: var(--white); }

.sc-plan-head h2 { font-size: 1.5rem; }
.sc-plan-head p { margin: 6px 0 14px; color: var(--ink-soft); }
.sc-continue { width: 100%; }
.sc-path { list-style: none; padding: 0; margin: 20px 0 0; position: relative; }
.sc-path::before { content: ''; position: absolute; left: 27px; top: 20px; bottom: 20px; border-left: 3px dashed var(--dash); }
.sc-node { position: relative; margin-bottom: 8px; }
.sc-node a {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 6px; text-decoration: none; border-radius: 16px;
  transition: background-color 160ms ease, transform 120ms ease-out;
}
@media (hover: hover) and (pointer: fine) { .sc-node a:hover { background: rgba(255, 255, 255, 0.7); } }
.sc-node a:active { transform: scale(0.99); }
.sc-node-ic {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--dash); color: var(--ink-soft);
}
.sc-node-ic .ic { width: 20px; height: 20px; }
.sc-node.t-chain .sc-node-ic { width: 38px; height: 38px; margin: 0 3px; }
.sc-node.t-full .sc-node-ic { width: 52px; height: 52px; margin-left: -4px; background: var(--sun); border-color: var(--yellow); }
.sc-node.is-done .sc-node-ic { background: var(--teal-deeper); border-color: var(--teal-deeper); color: var(--white); }
.sc-node.is-next a { background: var(--white); box-shadow: var(--sh-card); }
.sc-node.is-next .sc-node-ic { border-color: var(--coral); color: var(--coral); animation: sc-pulse 1.6s ease-in-out infinite; }
.sc-node-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sc-node-text small { color: var(--ink-soft); font-size: 0.85rem; }
.sc-node.is-next .sc-node-text small { color: var(--coral-text); font-weight: 700; }
.sc-node .sc-contour { flex: none; opacity: 0.85; }
.sc-stars { display: inline-flex; gap: 1px; }
.sc-stars i { display: grid; color: var(--dash); }
.sc-stars i .ic { width: 16px; height: 16px; }
.sc-stars i.on { color: #E2B33B; }
.sc-stars i .ic * { fill: currentColor; stroke: currentColor; }

/* ---------- Practice ---------- */

.sc-run { max-width: 940px; margin: 0 auto; }
.sc-run-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sc-run-head .eyebrow { margin-bottom: 4px; }
.sc-run-head .ob-title { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.sc-run-head small { font-size: 0.55em; color: var(--ink-soft); font-weight: 600; }
.sc-run-stars .ic { width: 22px; height: 22px; }

.sc-steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sc-steps::-webkit-scrollbar { display: none; }
.sc-steps li { flex: 1 0 auto; }
.sc-step {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; border: 0; cursor: pointer;
  border-radius: 16px; background: transparent; font-weight: 700; font-size: 0.82rem; color: var(--ink-soft);
  transition: background-color 180ms ease, color 180ms ease, transform 100ms ease-out;
}
.sc-step:active { transform: scale(0.96); }
.sc-step-ic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); box-shadow: var(--sh-card); transition: background-color 180ms ease; }
.sc-step-ic > .ic { width: 20px; height: 20px; }
.sc-step-check { position: absolute; right: -4px; top: -4px; display: none; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-deeper); color: var(--white); }
.sc-step-check .ic { width: 12px; height: 12px; stroke-width: 3; }
.sc-step.is-done .sc-step-check { display: grid; }
.sc-step.is-on { background: var(--white); color: var(--ink); box-shadow: var(--sh-card); }
.sc-step.is-on .sc-step-ic { background: var(--coral); color: var(--white); box-shadow: var(--sh-solid); }

.sc-coach { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; }
.sc-coach-bud { flex: none; width: 54px; }
.sc-coach-bud svg { width: 100%; height: auto; }
.sc-coach-text {
  position: relative; margin: 0; padding: 10px 14px; border-radius: 14px 14px 14px 6px; background: var(--white);
  font-weight: 600; line-height: 1.4; box-shadow: var(--sh-card);
}

.sc-lanebox {
  position: relative; border-radius: 18px; overflow: hidden; background: var(--white);
  box-shadow: var(--sh-card), inset 0 0 0 1px rgba(46, 61, 68, 0.04);
}
.sc-lane { width: 100%; height: clamp(250px, 44vh, 440px); }
.sc-readout { position: absolute; right: 14px; top: 10px; padding: 4px 12px; border-radius: 99px; background: rgba(247, 245, 240, 0.92); font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(211, 240, 235, 0.8); }
.sc-prog i { display: block; height: 100%; width: 0; background: var(--coral); border-radius: 0 3px 3px 0; }
.sc-count {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.sc-count small { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-size: 0.8rem; }
.sc-count b { font-family: var(--font-head); font-size: 3.2rem; line-height: 1; }
.sc-count .sc-count-n { font-size: 5.5rem; color: var(--coral); }
.sc-loopchip {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 12px; border: 0; border-radius: 99px; background: var(--sun); font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.sc-loopchip .ic { width: 16px; height: 16px; }
.sc-loopchip b { padding: 3px 10px; border-radius: 99px; background: var(--white); font-size: 0.78rem; }

.sc-transport { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 18px; }
.sc-speed { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.sc-speed .sc-seg-b { padding: 6px 10px; font-size: 0.85rem; text-transform: none; letter-spacing: 0; }
.sc-go {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 92px; height: 92px; border: 0; border-radius: 50%; cursor: pointer; color: var(--white); background: var(--teal-deeper);
  box-shadow: var(--sh-solid); transition: transform 90ms ease-out, box-shadow 90ms ease-out, background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.sc-go.is-sing { background: var(--coral); box-shadow: var(--sh-solid); }
.sc-go:active { transform: translateY(1px); box-shadow: var(--sh-press); }
.sc-go[disabled] { opacity: 0.7; }
.sc-go-ic .ic { width: 30px; height: 30px; }
.sc-go-label { font-weight: 700; font-size: 0.8rem; }
.sc-go-ring { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid currentColor; color: var(--coral); opacity: 0; }
.sc-go.is-sing:not(.is-running) .sc-go-ring { animation: sc-ring 2s ease-out infinite; }
.sc-go.is-running { background: var(--ink); box-shadow: var(--sh-solid); }
@keyframes sc-ring { 0% { transform: scale(0.9); opacity: 0.6; } 100% { transform: scale(1.25); opacity: 0; } }
.sc-repeat {
  justify-self: end; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--white); font-weight: 700; color: var(--ink-soft); box-shadow: var(--sh-card); transition: background-color 160ms ease, color 160ms ease;
}
.sc-repeat .ic { width: 18px; height: 18px; }
.sc-repeat.is-on { background: var(--ink); color: var(--white); box-shadow: var(--sh-solid); }
.sc-tipline { text-align: center; color: var(--ink-soft); font-size: 0.88rem; margin: 12px 0 0; min-height: 1.3em; }

.sc-result {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; margin-top: 18px; padding: 18px 20px;
  border-radius: 18px; background: var(--white); box-shadow: var(--sh-card);
  animation: sc-up 420ms var(--ease-out) both;
}
.sc-result.is-pass { background: linear-gradient(180deg, #F2FCFA, var(--white)); box-shadow: var(--sh-card); }
.sc-result.is-mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 14px; }
@keyframes sc-up { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.sc-ring { position: relative; width: 110px; height: 110px; }
.sc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.sc-ring .bg { stroke: var(--belly); }
.sc-ring .fg { stroke: var(--teal-deeper); stroke-dasharray: var(--c); }
.sc-result:not(.is-pass) .sc-ring .fg { stroke: var(--coral); }
.sc-ring-n { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.sc-result-text h2 { font-size: 1.6rem; }
.sc-result-text .sc-stars { margin-top: 4px; }
.sc-result-text .sc-stars .ic { width: 24px; height: 24px; }
.sc-result-text .sc-stars i.on { animation: sc-star 500ms var(--ease-spring) both; }
.sc-result-text .sc-stars i:nth-child(2).on { animation-delay: 120ms; }
.sc-result-text .sc-stars i:nth-child(3).on { animation-delay: 240ms; }
@keyframes sc-star { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
.sc-hits { margin: 4px 0 0; font-weight: 700; }
.sc-dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.sc-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--blush); border: 2px solid var(--coral); }
.sc-dots i.hit { background: var(--teal-deeper); border-color: var(--teal-deeper); }
.sc-dots i.close { background: #E2C76B; border-color: #BFA24B; }
.sc-tip { margin: 10px 0 0; color: var(--ink-soft); line-height: 1.45; }
.sc-result-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sc-result-actions .btn .ic { width: 20px; height: 20px; }

/* ---------- Songs tab card ---------- */

.songs-top .sc-card { grid-column: 1 / -1; margin: 0; }
.sc-card { position: relative; overflow: hidden; padding: 0; background: var(--ink); color: var(--white); box-shadow: var(--sh-solid); }
.sc-card-main { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; }
.sc-card-art { display: flex; align-items: center; gap: 3px; height: 56px; }
.sc-card-art i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px; background: var(--teal); animation: sc-eq 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.13s); transform-origin: center; }
.sc-card-art i:nth-child(3n) { background: var(--coral); }
.sc-card-text { display: flex; flex-direction: column; gap: 2px; }
.sc-card-text b { font-family: var(--font-head); font-size: 1.3rem; }
.sc-card-text small { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; line-height: 1.4; }
.sc-card .btn .ic { width: 18px; height: 18px; }
.sc-card-mine { list-style: none; margin: 0; padding: 0 20px 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-card-mine a { display: inline-block; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.88rem; }

/* ---------- Wide screens ---------- */

@media (min-width: 900px) {
  .sc-over { grid-template-columns: 1.25fr 1fr; align-items: start; gap: 34px; }
  .sc-over-b { position: sticky; top: 16px; }
  .sc-map { height: 190px; }
  .sc-lane { height: clamp(300px, 50vh, 480px); }
}

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  .sc-main { padding-top: 10px; }
  .sc-chips { grid-template-columns: repeat(2, 1fr); }
  .sc-review-head .sc-hero-bud.sm { width: 64px; }
  .sc-line .sc-contour { display: none; }
  .sc-node .sc-contour { display: none; }
  .sc-step { padding: 6px 4px; font-size: 0.74rem; }
  .sc-step-ic { width: 36px; height: 36px; }
  .sc-transport { grid-template-columns: 1fr auto; grid-template-areas: "go go" "speed repeat"; justify-items: center; }
  .sc-go { grid-area: go; }
  .sc-speed { grid-area: speed; justify-self: start; }
  .sc-repeat { grid-area: repeat; align-self: end; }
  .sc-result { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sc-dots { justify-content: center; }
  .sc-result-actions { justify-content: center; }
  .sc-result-actions .btn { flex: 1 1 100%; }
  .sc-card-main { grid-template-columns: 64px 1fr; }
  .sc-card-main .btn { grid-column: 1 / -1; }
  .sc-legend { display: none; }
  .sc-bubble { left: 70%; top: -10%; font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-enter, .sc-enter > *, .sc-result, .sc-notes i, .sc-eq i, .sc-drop-ic > .ic, .sc-card-art i,
  .sc-hero-bud.is-listening svg, .sc-scan-glow, .sc-go-ring, .sc-node.is-next .sc-node-ic, .sc-phases li.is-now .sc-dot,
  .sc-result-text .sc-stars i.on { animation: none !important; }
}

/* ---------- Same feel as the rest of the app (polish pass) ----------
   Press feedback on everything tappable, springs only on things that pop, the sticky button on a
   fade so it never sits on top of text, Bud on a sun like the upgrade page. */

.sc-shell .ob-top {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
}
.sc-main { padding-bottom: calc(64px + var(--safe-b)); }
.sc-stage :is(button, a):focus-visible { outline: 3px solid rgba(46, 61, 68, 0.22); outline-offset: 3px; }

/* Bud on a sun on the upload screen */
.sc-home .sc-hero-bud { isolation: isolate; margin-top: 30px; margin-bottom: 24px; }
.sc-home .sc-hero-bud::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 52%; width: 112%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); translate: -50% -50%; animation: sun-in 700ms var(--ease-out) both;
}
.sc-drop.is-over { transition-timing-function: var(--ease-spring); }
.sc-facts .ic { stroke-width: 2.4; }

/* Press feedback */
.sc-song:active { transform: scale(var(--press)); transition-duration: 70ms; }
.sc-node a:active { transform: scale(0.98); }
.sc-seg-b, .sc-repeat, .sc-loopchip, .sc-del, .sc-card-mine a, .sc-skip { transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
.sc-seg-b:active, .sc-repeat:active, .sc-loopchip:active, .sc-del:active, .sc-card-mine a:active { transform: scale(0.93); transition-duration: 60ms; }
.sc-seg-b.is-on { animation: sc-seg-pop 320ms var(--ease-spring); }
@keyframes sc-seg-pop { 0% { transform: scale(0.88); } 100% { transform: scale(1); } }
.sc-step.is-on .sc-step-ic { animation: tab-pop 460ms var(--ease-spring); }
.sc-line-play { transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.sc-go.is-sing:not(.is-running):active { box-shadow: var(--sh-press); }
.sc-go:not(.is-sing):not(.is-running):active { box-shadow: var(--sh-press); }
.sc-go.is-running:active { box-shadow: var(--sh-press); }
.sc-go-ic .ic { transition: transform 220ms var(--ease-spring); }
.sc-go:active .sc-go-ic .ic { transform: scale(0.88); }

/* The review's Build my plan: sticks to the bottom on a fade, clear of the home indicator */
.sc-sticky {
  bottom: 0; margin-top: 10px; padding: 18px 0 calc(12px + var(--safe-b));
  background: linear-gradient(to top, var(--mint) 68%, rgba(247, 245, 240, 0));
}

/* Result: a white card with a teal edge when it's nailed; the note dots pop in one by one */
.sc-result.is-pass { background: var(--white); box-shadow: var(--sh-card), inset 0 0 0 2px var(--belly); }
.sc-dots i { animation: dot-pop 420ms var(--ease-spring) both; }
.sc-dots i:nth-child(1) { animation-delay: 300ms; } .sc-dots i:nth-child(2) { animation-delay: 340ms; }
.sc-dots i:nth-child(3) { animation-delay: 380ms; } .sc-dots i:nth-child(4) { animation-delay: 420ms; }
.sc-dots i:nth-child(5) { animation-delay: 460ms; } .sc-dots i:nth-child(6) { animation-delay: 500ms; }
.sc-dots i:nth-child(7) { animation-delay: 540ms; } .sc-dots i:nth-child(8) { animation-delay: 580ms; }
.sc-dots i:nth-child(n+9) { animation-delay: 620ms; }
.sc-result-actions .btn { min-height: 48px; }

/* The plan's path: the line up to the next node is solid teal, the rest still to walk */
.sc-node.is-done + .sc-node::before {
  content: ''; position: absolute; left: 27px; top: -14px; height: 28px; border-left: 3px solid var(--teal-deeper); z-index: 0;
}

/* Songs tab card */
.sc-card { transition: transform 180ms var(--ease-out); }
.sc-card:has(.sc-card-main:active) { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .sc-card:hover { transform: translateY(-1px); }
  .sc-card-mine a:hover { background: rgba(255, 255, 255, 0.2); }
}

@media (prefers-reduced-motion: reduce) {
  .sc-home .sc-hero-bud::before, .sc-seg-b.is-on, .sc-step.is-on .sc-step-ic, .sc-dots i { animation: none !important; }
  .sc-song:active, .sc-node a:active, .sc-seg-b:active, .sc-repeat:active, .sc-loopchip:active, .sc-card:has(.sc-card-main:active) { transform: none !important; }
}

/* ---------- YouTube: the link field, the video dock and getting the melody ---------- */

.sc-ytform { margin: 18px auto 0; max-width: 560px; text-align: left; }
.sc-ytform label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.sc-ytform label .ic { width: 22px; height: 22px; color: #E5484D; }
.sc-ytform label .ic .ic-fill { fill: currentColor; }
.sc-ytrow { display: flex; gap: 10px; }
.sc-ytrow .input { flex: 1; min-width: 0; font: inherit; font-weight: 600; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--belly); background: var(--white); }
.sc-ytrow .input:focus { outline: none; border-color: var(--teal-deeper); }
.sc-ytrow .btn { flex: none; }
.sc-yterr { margin: 8px 0 0; color: var(--coral-text); font-weight: 700; font-size: 0.92rem; }

/* The video: in the flow on phones and tablets; docked top right on wide screens, with room kept for it. */
.sc-ytdock { max-width: 640px; margin: 0 auto 18px; }
.sc-yt { position: relative; aspect-ratio: 16 / 9; min-height: 200px; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--sh-card); }
.sc-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sc-yt-credit { margin: 6px 0 0; text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
@media (min-width: 1200px) {
  .sc-shell.has-yt .sc-main { padding-right: 440px; }
  .sc-ytdock { position: fixed; z-index: 30; top: 96px; right: 28px; width: 384px; margin: 0; }
  .sc-yt { min-height: 216px; box-shadow: 0 10px 30px rgba(46, 61, 68, 0.18); }
}

.sc-ytstart, .sc-ytcap { max-width: 640px; margin: 0 auto; }
.sc-ytstart .ob-title, .sc-ytcap .ob-title { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.sc-how { display: grid; gap: 10px; margin-top: 18px; }
.sc-how-card {
  position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer;
  border-radius: 16px; background: var(--white); box-shadow: var(--sh-card); border: 2.5px solid transparent;
  transition: border-color 160ms ease, transform 120ms ease-out;
}
.sc-how-card:active { transform: scale(0.99); }
.sc-how-card input { position: absolute; opacity: 0; pointer-events: none; }
.sc-how-card:has(input:checked) { border-color: var(--coral); }
.sc-how-card:has(input:focus-visible) { outline: 3px solid var(--teal-deeper); outline-offset: 2px; }
.sc-how-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--belly); }
.sc-how-card:has(input:checked) .sc-how-ic { background: var(--coral); color: var(--white); }
.sc-how-card:has(input:checked) .sc-how-ic .ic-fill { fill: var(--white); }
.sc-how-ic .ic { width: 24px; height: 24px; }
.sc-how-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 8px; }
.sc-how-text small { color: var(--ink-soft); line-height: 1.4; }
.sc-how-best { position: absolute; top: -10px; right: 14px; padding: 2px 10px; border-radius: 99px; background: var(--teal-deeper); color: var(--white); font-style: normal; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.04em; }
.sc-yttip { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.sc-yttip .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--teal-deeper); }

.sc-capnow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-weight: 700; }
.sc-capnote { font-family: var(--font-head); font-size: 1.6rem; }
.sc-captime { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.sc-rec { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; background: var(--white); color: var(--ink-soft); font-size: 0.85rem; }
.sc-rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--dash); }
.sc-ytcap.is-rec .sc-rec { color: var(--coral-text); }
.sc-ytcap.is-rec .sc-rec i { background: var(--coral); animation: sc-blink 1.2s ease-in-out infinite; }
@keyframes sc-blink { 50% { opacity: 0.25; } }
.sc-capbox { margin-top: 10px; border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: var(--sh-card); }
.sc-capcanvas { width: 100%; height: clamp(160px, 28vh, 260px); }
.sc-capstatus { text-align: center; font-weight: 700; margin: 12px 0 0; }
@media (prefers-reduced-motion: reduce) { .sc-ytcap.is-rec .sc-rec i { animation: none; } }
@media (max-width: 640px) {
  .sc-ytrow { flex-direction: column; }
  .sc-ytrow .btn { width: 100%; }
  .sc-ytdock { margin-bottom: 14px; }
}

/* Long song names (YouTube titles) stay on one line above the stage title. */
.sc-run-head > div { min-width: 0; }
.sc-run-head .eyebrow, .sc-over-head .eyebrow { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-over-head .ob-title, .sc-ytcap .eyebrow { overflow-wrap: anywhere; }
/* Phones with the video showing: room for the video, the lane and the Sing button on one screen. */
@media (max-width: 640px) {
  .sc-shell.has-yt .sc-run .sc-coach { display: none; }
  .sc-shell.has-yt .sc-run .sc-steps { margin-top: 10px; }
  .sc-shell.has-yt .sc-run .sc-lanebox { margin-top: 12px; }
  .sc-shell.has-yt .sc-lane { height: clamp(190px, 30vh, 280px); }
  .sc-shell.has-yt .sc-main { padding-top: 6px; }
}
/* Short windows: a smaller video, never under YouTube's 200px minimum. */
@media (max-width: 1199px) and (max-height: 760px) {
  .sc-ytdock { max-width: max(356px, min(640px, calc((100svh - 300px) * 1.78))); }
}

/* Words for a line */
.sc-run-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sc-words-btn .ic { width: 16px; height: 16px; }
.sc-words-input { width: 100%; font: inherit; font-weight: 600; line-height: 1.5; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--belly); background: var(--white); resize: vertical; margin-top: 8px; }
.sc-words-input:focus { outline: none; border-color: var(--teal-deeper); }
.sc-words-count { margin: 6px 0 0; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); min-height: 1.2em; }
.sc-words-count.is-over { color: var(--coral-text); }
@media (max-width: 640px) { .sc-run-head { align-items: flex-start; } .sc-run-side { flex-direction: column-reverse; align-items: flex-end; gap: 6px; } }

/* Phones: "Start line 1" / "Continue" stays in thumb reach while you look over the song and its plan */
@media (max-width: 759px) {
  .sc-continue {
    position: fixed; z-index: 30; left: var(--gutter); right: var(--gutter); width: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    box-shadow: var(--sh-solid), 0 -10px 24px 14px var(--mint);
  }
  .sc-main:has(.sc-continue) { padding-bottom: 110px; }
}
.sc-continue > .ic:first-child + span:last-child { margin-right: 30px; }
/* Phones: the lane shares the screen with the steps, Bud and the Play button, so it's sized to fit them all */
@media (max-width: 759px) { .sc-lane { height: clamp(200px, 34svh, 440px); } }

/* ---------- First use: learn the song named in the welcome test (#/coach?learn) ---------- */
.sc-learn { max-width: 560px; margin: 0 auto; text-align: center; }
.sc-learn .sc-hero-bud { margin-top: 8px; margin-bottom: 14px; }
.sc-learn .ob-title { font-size: clamp(1.7rem, 4.5vw, 2.4rem); overflow-wrap: anywhere; }
.sc-learn .ob-hint { max-width: 30em; margin-left: auto; margin-right: auto; }
.sc-learn-form { margin-top: 22px; }
.sc-learn-field { position: relative; }
.sc-learn-field > .ic { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: #E5484D; pointer-events: none; }
.sc-learn-field > .ic .ic-fill { fill: currentColor; }
.sc-learn-field .input {
  width: 100%; font: inherit; font-weight: 600; padding: 14px 16px 14px 46px;
  border-radius: 16px; border: 1px solid var(--line-strong); background: var(--white);
}
.sc-learn-field .input:focus { outline: none; border-color: var(--teal-deeper); }
.sc-learn .sc-yterr { text-align: left; }
.sc-learn-find { display: inline-flex; align-items: center; gap: 2px; margin-top: 12px; }
.sc-learn-find .ic { width: 18px; height: 18px; }
.sc-learn-actions { margin-top: 26px; }
@media (min-width: 480px) { .sc-learn-actions { justify-content: center; } }
/* While the link is being typed or pasted, the buttons sit right under the field, clear of the keyboard. */
.sc-learn:has(input:focus) .ob-actions { position: static; margin-top: 18px; box-shadow: none; }
.sc-dayone { margin: 6px 0 0; font-weight: 700; color: var(--teal-text, var(--ink)); }

/* ---------- Your key (the song's plan screen) ---------- */
.sc-key h2 { margin-bottom: 12px; }
.sc-key-keys { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; height: 34px; }
.sc-key-keys > i { background: var(--white); border-radius: 0 0 5px 5px; border: 1px solid rgba(46, 61, 68, 0.14); }
.sc-key-keys > i.blk { background: #3B4A51; height: 62%; }
.sc-key-bands { display: grid; gap: 5px; margin-top: 8px; }
.sc-key-band { display: block; position: relative; height: 22px; border-radius: 11px; min-width: 22px; }
.sc-key-band em { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.sc-key-band.is-you { background: rgba(145, 215, 215, 0.45); border: 2px solid var(--teal-deeper); }
.sc-key-band.is-you em { color: var(--ink); }
.sc-key-band.is-singer { background: transparent; border: 2px dashed rgba(46, 61, 68, 0.35); }
.sc-key-band.is-singer em { color: var(--ink-soft); }
.sc-key-band.is-yours { background: var(--coral); }
.sc-key-band.is-yours em { color: var(--white); }
.sc-key-msg { margin: 12px 0 0; font-weight: 600; }
.sc-key-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sc-key-nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.sc-key-move { font-weight: 700; color: var(--ink-soft); font-size: 0.92rem; }
.sc-key-step { display: flex; align-items: center; gap: 10px; }
.sc-key-step b { min-width: 9.5em; text-align: center; font-family: var(--font-head); }
.sc-key-step .sc-round { font-size: 1.4rem; font-weight: 700; line-height: 1; color: var(--white); }
.sc-key-pick { font-size: 0.85rem; color: var(--teal-deeper); font-weight: 700; }
.sc-key-kar { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line, rgba(46, 61, 68, 0.1)); color: var(--ink-soft); font-size: 0.95rem; }
.sc-key-kar .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--coral-text); }
@media (max-width: 400px) { .sc-key-step b { min-width: 8em; font-size: 0.95rem; } }

/* Steps with the singer: the recording plays as it is, so speed and loop give way to one button that
   takes the line to Bud's piano, where it can go slower and on repeat. */
.sc-speed[hidden], .sc-repeat[hidden], .sc-slower[hidden] { display: none !important; }
.sc-slower {
  grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 0; border-radius: 99px; cursor: pointer; background: var(--white); color: var(--ink); font: inherit; font-weight: 700;
  box-shadow: var(--sh-card);
}
.sc-slower .ic { width: 20px; height: 20px; color: var(--coral-text); flex: none; }
.sc-transport > .sc-go { grid-column: 2; grid-row: 1; }
.sc-transport > .sc-slower { grid-row: 2; }
@media (max-width: 640px) { .sc-transport > .sc-go { grid-column: 1 / -1; } }
.sc-learn-actions .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sc-learn-actions .btn-secondary .ic { width: 20px; height: 20px; }

/* ---------- From any app or speaker: Bud listens to the song playing ---------- */
.sc-learn-any { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; }
.sc-learn-any .ic { width: 20px; height: 20px; flex: none; color: var(--coral-text); }
.sc-home .sc-learn-any { margin: 14px auto 0; }
.sc-any-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.sc-any-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-weight: 600; }
.sc-any-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: var(--white); font-weight: 700; font-family: var(--font-head); }

/* A long line's parts (its motifs), under the lane in Bud's steps */
.sc-parts { display: flex; justify-content: center; margin-top: 14px; }
.sc-parts .sc-seg { flex-wrap: wrap; justify-content: center; max-width: 100%; }
.sc-parts .sc-seg-b { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; }
.sc-parts .sc-seg-b .ic { width: 14px; height: 14px; }
.sc-parts .sc-seg-b.is-done:not(.is-on) { color: var(--ink); }

/* Android: recording the song as it plays on the phone — a simple level meter */
.sc-capmeter {
  display: flex; align-items: center; justify-content: center; gap: 5px; height: 120px; margin-top: 12px;
  border-radius: 22px; background: var(--white); box-shadow: var(--sh-card);
}
.sc-capmeter i { width: 6px; height: 80px; border-radius: 3px; background: var(--teal-deeper); transform: scaleY(0.06); transition: transform 180ms ease-out; }
.sc-capture-btn { width: 100%; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .sc-capmeter i { transition: none; } }
