/* Learning a song: "Learn it with Bud", the gentler take screens, results (21 Nov 2026). Prefix ln-. */

/* ---------- Results: the verdict in lines (take-chat.js lineVerdict / lineStripHtml) ---------- */
.tc-thread .tc-vsub { margin: -2px 0 10px; font-size: 15px; line-height: 1.35; opacity: 0.85; }
.ln-strip { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.ln-strip i { flex: 1 1 14px; max-width: 34px; min-width: 10px; height: 14px; border-radius: 5px; background: color-mix(in srgb, var(--tc-bubble-ink, #fff) 18%, transparent); }
.ln-strip i.is-own { background: #1fb58f; }
.ln-strip i.is-close { background: #f2b01e; }
.ln-strip-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 12px; font-size: 12.5px; opacity: 0.8; }
.ln-strip-key span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -4px; background: color-mix(in srgb, var(--tc-bubble-ink, #fff) 18%, transparent); }
.ln-strip-key span.is-own { background: #1fb58f; }
.ln-strip-key span.is-close { background: #f2b01e; }
.tc-thread .tc-stat.sm { margin: 4px 0 6px; font-size: 17px; font-weight: 700; }
.tc-thread .tc-stat.sm + .tc-dots i { width: 9px; height: 9px; }
.tc-thread .tc-stat.sm + .tc-dots { gap: 4px; }

/* One next step, one yellow button. */
.tc-next-acts { margin-top: 10px; }
.tc-next-acts .btn.tc-next-btn { width: auto; min-width: 0; padding-inline: 22px; }
.tc-more { margin: 0; }
.tc-more > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-weight: 600; }
.tc-more > summary::-webkit-details-marker { display: none; }
.tc-more > summary .ic { width: 18px; height: 18px; transition: transform 0.2s ease; opacity: 0.7; }
.tc-more[open] > summary .ic { transform: rotate(90deg); }
.tc-more-body { display: grid; gap: 12px; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .tc-more > summary .ic { transition: none; } }

/* ---------- Results: after singing a line again (take-chat.js fixChat) ---------- */
.ln-fix { display: grid; gap: 18px; }
.ln-fcard { position: relative; display: grid; gap: 10px; padding: 22px 18px 18px; border-radius: 22px; text-align: center;
  background: #16316e; color: #fff; box-shadow: inset 0 0 0 1.5px #3b4c94; }
.ln-fcard.is-yours, .ln-fcard.is-joinGood { box-shadow: inset 0 0 0 2px #1fb58f, 0 8px 30px rgba(31, 181, 143, 0.25); }
.ln-fbud { justify-self: center; width: 84px; height: 84px; }
.ln-fbud svg, .ln-fbud img { width: 100%; height: 100%; }
.ln-ftitle { margin: 0; font: 800 1.45rem/1.2 var(--font-head, inherit); text-wrap: balance; }
.ln-fsub { margin: 0 0 6px; font-size: 15px; line-height: 1.4; opacity: 0.88; }
.ln-frow { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: left; font-size: 14px; }
.ln-frow b { font-weight: 700; opacity: 0.85; }
.ln-fdots { display: flex; flex-wrap: wrap; gap: 4px; }
.ln-fdots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.ln-fdots i.on { background: #1fb58f; }
.ln-fnum { font-variant-numeric: tabular-nums; font-weight: 700; }
.ln-fvoices { justify-content: center; margin-top: 6px; }
.ln-facts { display: grid; justify-items: center; gap: 10px; }
.ln-fix .tc-sticker { justify-self: center; }
html:not(.look-night) .ln-fcard { background: #eef6ff; color: #10163a; box-shadow: inset 0 0 0 1.5px #c9d6f3; }
html:not(.look-night) .ln-fdots i { background: rgba(16, 22, 58, 0.15); }

/* ---------- Song page: one row for the song's settings (A2) ---------- */
.ln-settings { width: 100%; max-width: 520px; margin: 4px auto 0; border-radius: 16px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12); }
.ln-settings > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; min-height: 48px; }
.ln-settings > summary::-webkit-details-marker { display: none; }
.ln-set-t { display: inline-flex; align-items: center; gap: 8px; }
.ln-set-t .ic { width: 18px; height: 18px; opacity: 0.8; }
.ln-settings > summary small { margin-left: auto; opacity: 0.7; font-size: 13px; text-align: right; }
.ln-settings > summary > .ic { width: 16px; height: 16px; opacity: 0.6; transition: transform 0.2s ease; flex: none; }
.ln-settings[open] > summary > .ic { transform: rotate(90deg); }
/* A library song's "Your voice and this song" card, under Song settings (2 Dec 2026). */
.sc-fitwrap { width: 100%; max-width: 520px; margin: 4px auto 0; }
.sc-fitwrap:empty { display: none; }
.sc-fitwrap > .sc-fit { margin: 0; }
.ot-page-head .sc-fitline.is-short { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 12px 4px 10px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; line-height: 1.3; background: rgba(255, 255, 255, 0.07); color: var(--nt-soft, #b9c3ef); }
.ot-page-head .sc-fitline.is-short .ic { width: 16px; height: 16px; flex: none; }
.ot-page-head .sc-fitline.is-short:is([data-fit="fits"], [data-fit="fitsLo"], [data-fit="fitsHi"]) { background: rgba(63, 216, 255, 0.14); color: var(--nt-cyan, #3fd8ff); }
.sc-fitwrap .sc-fit-msg { font-size: 0.95rem; line-height: 1.45; }
.sc-fitwrap .sc-fit-msg.is-stretch { font-weight: 500; }
@media (min-width: 1000px) { .ot-page.is-yt > .ln-settings { order: 6; margin: 4px 0 0; max-width: none; } .ot-page.is-yt > .sc-fitwrap { order: 7; margin: 0; max-width: none; } }
.sc-fitwrap .sc-fit-use { width: 100%; margin-top: 12px; min-height: 48px; gap: 8px; }
.sc-fitwrap .sc-fit-use .ic { width: 18px; height: 18px; }
.sc-fitwrap .btn.sc-fit-use, .sc-fitwrap .btn.sc-fit-use:hover { border-radius: 999px; font-weight: 700; background: rgba(63, 216, 255, 0.12); background-image: none; color: var(--nt-cyan, #3fd8ff); border: 0; box-shadow: inset 0 0 0 1.5px rgba(63, 216, 255, 0.5); }
.ln-settings-body { display: grid; gap: 12px; justify-items: center; padding: 4px 14px 16px; }
html:not(.look-night) .ln-settings { background: rgba(16, 22, 58, 0.04); box-shadow: inset 0 0 0 1.5px rgba(16, 22, 58, 0.1); }
.ln-learnhint { margin-top: -4px; }

/* ---------- "Learn it with Bud" (learn-run.js) ---------- */
.ln-run { display: grid; gap: 16px; padding-block: 8px 24px; }
.ln-where { margin: 0; text-align: center; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #5ff0f5; }
html:not(.look-night) .ln-where { color: #0b8f9b; }
.ln-pills { display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ln-pills li { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.08); opacity: 0.7; }
.ln-pills li.is-now { background: #ffe46a; color: #10163a; opacity: 1; }
.ln-say { display: flex; align-items: center; gap: 12px; justify-content: center; text-align: left; }
.ln-say p { margin: 0; font-size: 17px; font-weight: 600; max-width: 30ch; }
.ln-bud { display: block; width: 96px; height: 96px; justify-self: center; }
.ln-bud.sm { width: 56px; height: 56px; flex: none; }
.ln-bud svg { width: 100%; height: 100%; }
.ln-card { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 20px 18px; border-radius: 22px; background: #16316e; color: #fff; box-shadow: inset 0 0 0 1.5px #3b4c94; }
html:not(.look-night) .ln-card { background: #eef6ff; color: #10163a; box-shadow: inset 0 0 0 1.5px #c9d6f3; }
.ln-title { margin: 0; font: 800 1.45rem/1.2 var(--font-head, inherit); text-wrap: balance; }
.ln-sub { margin: 0; font-size: 15.5px; line-height: 1.45; opacity: 0.9; max-width: 36ch; }
.ln-card .ln-strip { width: 100%; justify-content: center; }
.ln-card .ln-strip i { background: rgba(255, 255, 255, 0.2); }
.ln-card .ln-strip i.is-own, .ln-strip-key span.is-own { background: #1fb58f; }
.ln-card .ln-strip i.is-close { background: #f2b01e; }
.ln-card .ln-strip-key { justify-content: center; }
.ln-facts { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; text-align: left; font-size: 14.5px; }
.ln-facts li { display: flex; gap: 8px; align-items: flex-start; }
.ln-facts .ic { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #1fb58f; }
.ln-acts { display: grid; justify-items: center; gap: 10px; }
.ln-offer { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; text-align: center; background: rgba(255, 228, 106, 0.12); box-shadow: inset 0 0 0 1.5px rgba(255, 228, 106, 0.45); }
.ln-offer p { margin: 0; font-size: 14.5px; opacity: 0.9; }
.ln-offer-parts { display: flex; gap: 6px; justify-content: center; margin: 2px auto 0; width: 100%; max-width: 260px; }
.ln-offer-parts i { flex: 1; height: 22px; min-width: 0; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 228, 106, 0.55); }
.ln-offer-parts i.is-done { background: #1fb58f; box-shadow: none; color: #fff; }
.ln-offer-parts .ic { width: 14px; height: 14px; }
.ln-offer-partsnote { font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; opacity: 0.8; margin-bottom: 4px; }
/* Short phones (Galaxy browser 360x640): the end-of-part screen with the parts offer keeps its Unlock button in view.
   A smaller Bud; the step row, the first-try strip and the strip's labels step aside there: the title says "from 8 to 11",
   the strip shows now, and the offer's own row of parts shows where the song is. */
@media (max-height: 760px) and (max-width: 959px) {
  .ln-run:has(.ln-offer-rest) { gap: 8px; }
  .ln-run:has(.ln-offer-rest) .ln-card { padding-block: 10px; gap: 4px; }
  .ln-run:has(.ln-offer-rest) .ln-card .ln-sub, .ln-run:has(.ln-offer-rest) .ln-card .ln-strip-key,
  .ln-run:has(.ln-offer-rest) .ln-steps,
  .ln-run:has(.ln-offer-rest) .ln-card .ln-striplabel, .ln-run:has(.ln-offer-rest) .ln-card div.ln-strip:not(:last-of-type) { display: none; }
  .ot.ln-run:has(.ln-offer-rest) .ln-card .ln-bud { width: 56px; height: 56px; }
  .ln-run:has(.ln-offer-rest) .ln-title { font-size: 1.15rem; }
  .ln-offer-rest { padding: 10px 14px; gap: 2px; }
  .ln-offer-rest .ln-offer-parts i { height: 16px; }
  .ln-offer-rest .ln-offer-partsnote { margin-bottom: 2px; }
}
/* Laptops up to about 820 px tall (1280x720, 1366x768 with the browser bar): same idea, the step row stays (2 Dec 2026). */
@media (max-height: 820px) and (min-width: 960px) {
  .ln-run:has(.ln-offer-rest) .ln-card .ln-sub, .ln-run:has(.ln-offer-rest) .ln-card .ln-strip-key,
  .ln-run:has(.ln-offer-rest) .ln-card .ln-striplabel, .ln-run:has(.ln-offer-rest) .ln-card div.ln-strip:not(:last-of-type) { display: none; }
  .ln-run:has(.ln-offer-rest) .ln-card { padding-block: 12px; gap: 4px; }
  .ln-offer-rest { padding: 10px 14px; gap: 2px; }
  .ln-offer-rest .ln-offer-parts i { height: 16px; }
}
.ln-intro .ln-card { margin-top: 6px; }

/* ---------- Singing a song from its video: full screen on phones (A4) ----------
   The tab bar steps aside while singing (21 Nov 2026, first-timer review A4; this reverses the 12 Nov call to keep the
   menu while singing, so one stray tap no longer ends a take). "Back to the song" stays at the top. On laptops the
   side rail stays. */
@media (max-width: 959px) {
  body.on-stage .tabs { display: none !important; }
  body.on-stage .sc-shell, body.on-stage .app-main { padding-bottom: env(safe-area-inset-bottom, 0px) !important; }
  /* No tab bar under it now, so Finish take pins near the bottom, not 64px up over the lane (22 Nov 2026). */
  body.on-stage .sc-shell.sc-embedded .ot-run .ot-actions { bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* "I didn't hear enough": the smaller step first, the tips under it (L3). */
.ln-few-tipsh { margin: 18px 0 6px; font-size: 14px; font-weight: 600; opacity: 0.75; text-align: center; }

/* ---------- Songs tab (A5): three chips, the rest behind More; bringing a song as one row ---------- */
.sc-chips [data-chip].ln-chip-more { display: none; }
.sc-chips.is-all [data-chip].ln-chip-more { display: inline-flex; }
.sc-chips .ln-chip-toggle { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer;
  background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: 0.75; }
.ln-ways { margin: 18px 0 6px; }
.ln-ways > summary { list-style: none; cursor: pointer; }
.ln-ways > summary::-webkit-details-marker { display: none; }
.ln-ways > summary > .ic:last-child { transition: transform 0.2s ease; }
.ln-ways[open] > summary > .ic:last-child { transform: rotate(90deg); }
.ln-ways > .way-rows { margin-top: 8px; }
.ln-ways > summary.way-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 18px; text-align: left;
  background: #16316e; box-shadow: inset 0 0 0 1.5px #3b4c94; }
.ln-ways > summary.way-row .way-text { flex: 1 1 auto; min-width: 0; text-align: left; }
html:not(.look-night) .ln-ways > summary.way-row { background: #fff; box-shadow: inset 0 0 0 1.5px #d7def0; }
.ln-title:focus, .ln-ftitle:focus { outline: none; }
.ln-run .ln-offer + .ln-acts, .ln-run .ln-card + .ln-acts { margin-top: 4px; }
.ln-fvoices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ln-fvoices .tc-voice { width: auto; flex: 0 0 auto; white-space: nowrap; padding-right: 18px; }
.ln-fbud { width: 64px; height: 64px; }
.tc-chat .tc-reply { display: inline-flex; align-items: center; gap: 6px; }
.tc-chat .tc-reply .ic { width: 16px; height: 16px; flex: none; }

/* Second pass (21 Nov 2026): where you are in the part, and what to change after a miss. */
.ln-dots { display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ln-dots li { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.ln-dots li.is-own { background: #3ee08f; }
.ln-dots li.is-later { background: #ffb347; }
.ln-dots li.is-now { background: #ffe46a; box-shadow: 0 0 0 3px rgba(255, 228, 106, 0.3); }
html:not(.look-night) .ln-dots li { background: #d5def2; }
html:not(.look-night) .ln-dots li.is-own { background: #1fae6a; }
html:not(.look-night) .ln-dots li.is-later { background: #f09a2a; }
html:not(.look-night) .ln-dots li.is-now { background: #f5c400; box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.3); }
.ln-tip { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 10px 14px; border-radius: 14px; background: #ffe46a; color: #10163a; font-weight: 700; font-size: 16px; text-align: left; }
.ln-tip .ic { flex: none; width: 24px; height: 24px; }
/* A miss with a tip: a smaller Bud, so the tip and the button both show on a 360x640 phone. */
.ln-card:has(.ln-tip) { gap: 8px; padding-block: 14px 16px; }
.ln-card:has(.ln-tip) .ln-bud { width: 60px; height: 60px; }
.ln-card:has(.ln-tip) .ln-title { font-size: 1.3rem; }
.ln-run .ln-best { display: inline-flex; align-items: center; gap: 6px; }
.ln-run .ln-best .ic { width: 18px; height: 18px; }
/* How far along: stays on phones too, where the song page's other hints fold away (take.css). */
.ot-page.is-yt .ot-actions > .ot-hint.ln-progress { display: block; margin: -2px 0 0; font-size: 14.5px; }
.ot-actions > .ot-hint.ln-progress { order: 0; }
/* The new Bud poses (js/bud-pose.js): pictures, so they keep their shape inside the old sticker's box. */
.ln-bud .ln-pose, .ln-fbud .ln-pose { display: block; width: 100%; height: 100%; object-fit: contain; }
.ln-card .ln-bud { width: 112px; height: 112px; }
.ln-say .ln-bud.sm { width: 72px; height: 72px; }

/* The end of the free part: the card, the offer and its button all on one phone screen. */
.ln-run:has(.ln-offer) .ln-card { gap: 6px; padding-block: 14px; } .ln-run:has(.ln-offer) .ln-bud { width: 72px; height: 72px; } .ln-run:has(.ln-offer) .ln-title { font-size: 1.25rem; } .ln-run:has(.ln-offer) { gap: 12px; }

/* The words while you listen (Learn it with Bud): the muted karaoke video, big, with the singer's video small
   under it (the sound comes from the singer's). Hidden the rest of the time. */
.sc-ytwords { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.sc-ytwords[hidden] { display: none; }
.sc-ytwords iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.sc-ytdock:has(> .sc-ytwords:not([hidden])) { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sc-ytdock:has(> .sc-ytwords:not([hidden])) > .sc-ytwords { order: -1; }
.sc-ytdock:has(> .sc-ytwords:not([hidden])) > .sc-yt { width: 48%; min-height: 0; border-radius: 12px; }
/* The learning screens' buttons follow the card instead of being pinned to the bottom: on the singing stage a
   pinned bar slid over the card (Galaxy, 21 Nov 2026). */
.ot.ln-run > .ob-actions.ln-acts { position: static; background: none; box-shadow: none; padding: 0; margin-top: 4px; }

/* The guided way: the four steps as a row (Hear it · Try it · Practice · Again), and labels over the before/now strips. */
.ln-steps { display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ln-steps li { display: flex; align-items: center; gap: 5px; padding: 5px 9px 5px 5px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, 0.07); opacity: 0.65; white-space: nowrap; }
.ln-steps li b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font-size: 11.5px; }
.ln-steps li.is-now { background: #ffe46a; color: #10163a; opacity: 1; }
.ln-steps li.is-now b { background: #10163a; color: #ffe46a; }
.ln-steps li.is-done { opacity: 0.9; }
.ln-steps li.is-done b { background: #3ee08f; color: #10163a; }
html:not(.look-night) .ln-steps li { background: #e6edfb; }
html:not(.look-night) .ln-steps li.is-now { background: #f5c400; }
@media (max-width: 380px) { .ln-steps li span { display: none; } .ln-steps li.is-now span { display: inline; } }
.ln-striplabel { margin: 4px 0 -4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
/* The matching exercise at a part's end: one tappable row under the card. */
.ln-exercise { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(95, 240, 245, 0.1); box-shadow: inset 0 0 0 1.5px rgba(95, 240, 245, 0.45); color: inherit; text-decoration: none; text-align: left; }
.ln-exercise > .ic { flex: none; width: 24px; height: 24px; color: #5ff0f5; }
.ln-exercise span { flex: 1; display: grid; gap: 2px; }
.ln-exercise b { font-size: 15.5px; }
.ln-exercise small { font-size: 13.5px; opacity: 0.8; }
html:not(.look-night) .ln-exercise { background: #e9fbfc; box-shadow: inset 0 0 0 1.5px #8fdde2; }
/* A song's learning progress on its row (Songs tab): green while learning, gold once known by heart. */
.sc-ready .ln-prog { font-style: normal; justify-self: start; align-self: start; display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 1px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; line-height: 1.6; background: rgba(62, 224, 143, 0.16); color: #3ee08f; }
.sc-ready .ln-prog .ic { width: 13px; height: 13px; }
.sc-ready .ln-prog.is-heart { background: rgba(255, 228, 106, 0.18); color: #ffe46a; }
html:not(.look-night) .sc-ready .ln-prog { background: #e3f8ee; color: #128a52; }
html:not(.look-night) .sc-ready .ln-prog.is-heart { background: #fff4c7; color: #8a6a00; }

/* Live "a little higher / lower / that's it" while singing a line (song-take.js o.arrows): a pill at the top of the
   singing area, yellow to move, green when on it. */
.ot-lanebox { position: relative; }
.ot-aim { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px; border-radius: 999px; font-weight: 800; font-size: 17px; white-space: nowrap; background: #ffe46a; color: #10163a;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6); pointer-events: none; }
.ot-aim .ic { width: 24px; height: 24px; }
.ot-aim.is-on { background: #3ee08f; }
.ot-aim[hidden] { display: none; }

/* "Turn on your microphone" (mic-ask.js micHelp): the steps for this device, numbered. */
.mic-help-steps { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; font-weight: 600; text-align: left; }
.mic-help-steps li::marker { font-weight: 800; color: #5ff0f5; }
html:not(.look-night) .mic-help-steps li::marker { color: #0b8f9b; }

/* The offer's first card (offer.js): the new Bud pose in the glowing disc, not the old drawn picture (22 Nov 2026). */
html.look-night .of-bud { background: radial-gradient(circle at 50% 40%, #1f5fc4 0%, #0a2a6a 75%) !important; }
html.look-night .of-bud > svg { display: block !important; width: 84%; height: 84%; margin: 8%; }
html.look-night .of-free { border-radius: 18px; text-align: left; }
/* A step can be jumped to (22 Nov 2026): the other steps are buttons that look like the step chips. */
.ln-steps li:has(> button) { padding: 0; }
.ln-steps li > button { display: flex; align-items: center; gap: 5px; padding: 5px 9px 5px 5px; min-height: 36px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; cursor: pointer; }
.ln-steps li > button:focus-visible { outline: 3px solid var(--tk-teal, #17b6c2); outline-offset: 2px; }
.ln-steps li:has(> button):hover { opacity: 1; }

/* A new song's two ways in (22 Nov 2026; polished the same day after the owner's Galaxy screenshot): two cards of
   the same size, the icon in a round chip, title and one short line, a chevron. Yellow is the main one. */
.ot-choose { display: grid; gap: 10px; width: 100%; max-width: 520px; margin-left: auto; margin-right: auto; }   /* same width as Song settings below (foldable/inner screens, tablets) */
.ot-pick { display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 14px; align-items: center; width: 100%; min-height: 76px;
  padding: 12px 14px 12px 12px; border: 0; border-radius: 22px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--white); box-shadow: inset 0 0 0 2px var(--line, #d7dcea); transition: transform 120ms ease; }
.ot-pick:active { transform: scale(0.98); }
.ot-pick-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(23, 182, 194, 0.14); color: #0b7f8a; }
.ot-pick-ic .ic { width: 22px; height: 22px; }
.ot-pick > .ic { width: 18px; height: 18px; opacity: 0.6; }
.ot-pick-t { display: block; min-width: 0; }
.ot-pick b { display: block; font: 800 1.1rem/1.2 var(--font-head); letter-spacing: -0.01em; }
.ot-pick small { display: block; margin-top: 3px; font-size: 0.88rem; line-height: 1.3; color: var(--ink-soft); }
.ot-pick.is-main { background: linear-gradient(180deg, #fff3a0 0%, #ffe16a 55%, #f9cf3a 100%); box-shadow: 0 8px 22px -10px rgba(249, 207, 58, 0.7); color: #10163a; }
.ot-pick.is-main .ot-pick-ic { background: #10163a; color: #ffd94a; }
.ot-pick:focus-visible { outline: 3px solid var(--tk-teal, #17b6c2); outline-offset: 2px; }
.ot-pick:disabled { opacity: 0.6; }
html .ot-page .ot-pick.is-main small, html.look-night .ot-page .ot-pick.is-main small { color: #3b3f5c !important; }
html .ot-page .ot-pick.is-main > .ic { color: #10163a; opacity: 0.7; }
html.look-night .ot-pick:not(.is-main) { background: #142352; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(150, 175, 255, 0.3); }
html.look-night .ot-page .ot-pick:not(.is-main) small { color: #bacdfb !important; }
html.look-night .ot-pick:not(.is-main) .ot-pick-ic { background: rgba(34, 238, 242, 0.14); color: #22eef2; }
html.look-night .ot-pick:not(.is-main) > .ic { color: #bacdfb; }

/* Choosing: one place to start. The video is the song's picture (no second Tap to sing on it), and the upgrade bar is
   a quiet line under the cards rather than a second glowing card. */
.sc-shell.is-choosing .sc-ytcover { pointer-events: none; }
.sc-shell.is-choosing .sc-ytcover-go { display: none; }
.sc-shell.is-choosing .sc-ytcover-shade { opacity: 0.25; }
html .sc-shell.is-choosing .ot-actions > .ot-freebar, html.look-night .sc-shell.is-choosing .ot-actions > .ot-freebar {
  background: none !important; border: 0 !important; box-shadow: none !important; padding: 4px 4px !important; gap: 8px !important; justify-content: center; margin-top: 2px !important; }
html .sc-shell.is-choosing .ot-freebar .ot-freebar-ic, html.look-night .sc-shell.is-choosing .ot-freebar .ot-freebar-ic {
  width: 22px !important; height: 22px !important; box-shadow: none !important; }
html .sc-shell.is-choosing .ot-freebar .ot-freebar-ic .ic, html.look-night .sc-shell.is-choosing .ot-freebar .ot-freebar-ic .ic { width: 13px !important; height: 13px !important; }
html .sc-shell.is-choosing .ot-freebar-text b, html.look-night .sc-shell.is-choosing .ot-freebar-text b { font: 600 0.9rem/1.2 var(--font-body, inherit) !important; opacity: 0.85; }
html .sc-shell.is-choosing .ot-freebar-cta, html.look-night .sc-shell.is-choosing .ot-freebar-cta {
  height: auto !important; padding: 0 !important; background: none !important; box-shadow: none !important; color: #ffd94a !important; text-decoration: underline; text-underline-offset: 3px; font-weight: 700 !important; }
html:not(.look-night) .sc-shell.is-choosing .ot-freebar-cta { color: #9a6a00 !important; }
html .sc-shell.is-choosing .ot-freebar-text, html.look-night .sc-shell.is-choosing .ot-freebar-text { flex: 0 1 auto !important; min-width: 0; }
html .sc-shell.is-choosing .ot-freebar-text b, html.look-night .sc-shell.is-choosing .ot-freebar-text b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.86rem !important; }
.sc-shell.is-choosing .ot-actions > .ot-hint:not([data-singhint]):not(:empty) { display: none; }
/* Above the fold while choosing (owner, 22 Nov 2026: "check what falls outside the fold"): at 360x640 the two cards, the
   free line and Song settings (Karaoke / With the singer, the 21 Nov rule) show without scrolling. One-line cards, a
   slightly smaller song picture, settings straight after the free line, "Pick a different song" last. */
@media (max-width: 759px) {
  .ot-pick { min-height: 62px; padding-top: 10px; padding-bottom: 10px; grid-template-columns: 38px minmax(0, 1fr) 16px; gap: 12px; }
  .ot-pick-ic { width: 38px; height: 38px; }
  .ot-pick-ic .ic { width: 20px; height: 20px; }
  .ot-pick b { font-size: 1.02rem; }
  .ot-pick small { font-size: 0.84rem; margin-top: 1px; }
  .ot-choose { gap: 8px; }
  .sc-shell.is-choosing.is-songpage.has-yt .sc-ytdock { width: 76%; margin-left: auto; margin-right: auto; }
  .sc-shell.is-choosing .ot-page.is-yt { gap: 6px; }
  .sc-shell.is-choosing .ot-page.is-yt > .ln-settings { order: 4; margin-top: -8px; }
  .sc-shell.is-choosing .ot-page.is-yt > .sc-fitwrap { order: 5; margin-top: 6px; }
  .sc-shell.is-choosing .ot-page.is-yt > .ot-other { order: 8; }
  .sc-shell.is-choosing .ot-page.is-yt .sc-fitline { font-size: 0.86rem; }
}
/* A line Bud didn't hear: hollow, "Not heard", so it doesn't read as a miss (js/take-chat.js lineVerdict). */
.ln-strip i.is-skip, .ln-card .ln-strip i.is-skip { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc-bubble-ink, #fff) 30%, transparent); }
.ln-strip-key span.is-skip { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc-bubble-ink, #fff) 40%, transparent); }

/* A song the singer brought, while it plays (no video to watch): the lines' tune, their words, a bar that fills. */
.ln-now { margin: 14px auto 4px; max-width: 360px; padding: 14px 16px 12px; border-radius: 18px; background: rgba(150, 175, 255, 0.08); box-shadow: inset 0 0 0 1.5px rgba(150, 175, 255, 0.18); display: grid; gap: 10px; }
.ln-now-tune { width: 100%; height: 56px; display: block; overflow: visible; }
.ln-now-tune polyline { fill: none; stroke: #39e6ee; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ln-now-words { margin: 0; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.35; }
.ln-now-bar { display: block; height: 6px; border-radius: 3px; background: rgba(150, 175, 255, 0.18); overflow: hidden; }
.ln-now-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: #39e6ee; transform-origin: left center; transform: scaleX(0); animation: ln-now-fill linear forwards; }
@keyframes ln-now-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .ln-now-bar i { animation: none; transform: scaleX(1); opacity: 0.5; } }
html:not(.look-night) .ln-now { background: #eef6ff; box-shadow: inset 0 0 0 1.5px #c9d6f3; }
html:not(.look-night) .ln-now-tune polyline { stroke: var(--teal-deeper, #0e8e98); }
html:not(.look-night) .ln-now-bar { background: rgba(16, 22, 58, 0.1); }
html:not(.look-night) .ln-now-bar i { background: var(--teal-deeper, #0e8e98); }

/* "Learn it with Bud", laid out as one calm column (owner, 26 Nov 2026, on the Try it screen: "fix the design here
   also"). On a wider phone or the app's wider pane, a general button-row rule shrank the row to its button and
   pinned it left, under a card twice as wide. Now: one column at most 460px wide and centered, the main button as
   wide as the card, the quiet links centered under it, and a tighter card. */
.ot.ln-run { width: 100%; max-width: 460px; margin-inline: auto; gap: 18px; }
.ot.ln-run > .ob-actions.ln-acts { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: center; gap: 2px; width: 100%; margin-top: 0; }
.ot.ln-run > .ob-actions.ln-acts > .btn { width: 100%; justify-content: center; }
.ot.ln-run > .ob-actions.ln-acts > .btn + .btn { margin-top: 8px; }
.ot.ln-run > .ob-actions.ln-acts > .btn-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.ot.ln-run > .ob-actions.ln-acts > .btn-primary + .btn-link { margin-top: 6px; }
.ot.ln-run .ln-card { padding: 22px 20px 24px; gap: 8px; }
.ot.ln-run .ln-card .ln-bud { width: 96px; height: 96px; margin-bottom: 2px; }
.ot.ln-run .ln-title { margin: 0; font-size: 1.45rem; line-height: 1.2; }
.ot.ln-run .ln-sub { margin: 0; max-width: 32ch; font-size: 15.5px; line-height: 1.45; opacity: 0.85; }
/* The four steps stay one row: on a narrow phone only the current step keeps its word (above, max-width 380px). */
.ot.ln-run .ln-steps { flex-wrap: nowrap; gap: 5px; }
@media (max-width: 420px) { .ot.ln-run .ln-steps li { padding-right: 8px; } }
@media (max-width: 400px) { .ot.ln-run .ln-steps li span { display: none; } .ot.ln-run .ln-steps li.is-now span { display: inline; } .ot.ln-run .ln-steps li { padding: 5px; } .ot.ln-run .ln-steps li.is-now { padding-right: 10px; } }

/* A song the singer brought, before its first take: the two ways in (Sing it through, Learn it line by line) follow
   the song's card instead of being pinned to the screen's bottom, where the taller pair slid up over it (26 Nov 2026). */
.ot-page:not(.is-yt) .ot-actions:has(.ot-choose) { position: static; padding-top: 0; background: none; box-shadow: none; }
/* Learn these lines: which lines were skipped and why, under "Got it" before a jump (26 Nov 2026). */
.ln-card .ln-next-note { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14.5px; line-height: 1.4; opacity: 0.85; max-width: 32ch; }
html:not(.look-night) .ln-card .ln-next-note { border-top-color: rgba(16, 22, 58, 0.12); }

/* A library song's page as one family (owner, 2 Dec 2026: "looks like a mess, polish it"): Song settings and the
   "Your voice and this song" card take the same surface, border, corner and type as "Learn it line by line", so the
   page reads as one stack under the yellow button: same navy, same 22px corners, same icon tile, same title type. */
html.look-night .ot-page.is-yt > .ln-settings { border-radius: 22px; background: #142352; box-shadow: inset 0 0 0 1.5px rgba(150, 175, 255, 0.3); }
/* Laid out like the rows above it: icon tile, title with what's chosen under it, chevron. */
html.look-night .ot-page.is-yt > .ln-settings > summary { display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px; grid-template-areas: "ic t ch" "ic s ch"; column-gap: 12px; row-gap: 2px; align-items: center; min-height: 62px; padding: 9px 14px 9px 12px; }
html.look-night .ot-page.is-yt > .ln-settings .ln-set-t { display: contents; color: #fff; }
html.look-night .ot-page.is-yt > .ln-settings .ln-set-t .ic { grid-area: ic; }
html.look-night .ot-page.is-yt > .ln-settings .ln-set-t b { grid-area: t; align-self: end; color: #fff; }
html.look-night .ot-page.is-yt > .ln-settings > summary small { grid-area: s; align-self: start; margin: 0; text-align: left; }
html.look-night .ot-page.is-yt > .ln-settings > summary:not(:has(small)) .ln-set-t b { grid-row: 1 / 3; align-self: center; }
html.look-night .ot-page.is-yt > .ln-settings > summary > .ic { grid-area: ch; }
html.look-night .ot-page.is-yt > .ln-settings .ln-set-t .ic { box-sizing: border-box; width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: rgba(34, 238, 242, 0.14); color: #22eef2; opacity: 1; flex: none; }
html.look-night .ot-page.is-yt > .ln-settings .ln-set-t b { font: 800 1.02rem/1.2 var(--font-head); letter-spacing: -0.01em; }
html.look-night .ot-page.is-yt > .ln-settings > summary small { font-size: 0.84rem; color: #bacdfb; opacity: 1; }
html.look-night .ot-page.is-yt > .ln-settings > summary > .ic { color: #bacdfb; opacity: 0.6; }
html.look-night .ot-page.is-yt .sc-fitwrap .sc-fit { padding: 16px 16px 18px; border: 0 !important; background: #142352 !important; box-shadow: inset 0 0 0 1.5px rgba(150, 175, 255, 0.3) !important; }
html.look-night .ot-page.is-yt .sc-fitwrap .card-title { margin: 0 0 12px; font: 800 1.02rem/1.2 var(--font-head); letter-spacing: -0.01em; color: #fff; }
html.look-night .ot-page.is-yt .sc-fitwrap .sc-fit-piano { margin-top: 0; }
html.look-night .ot-page.is-yt .sc-fitwrap .sc-fit-msg { font-size: 0.9rem; color: #fff; }
html.look-night .ot-page.is-yt .sc-fitwrap .sc-fit-legend { flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; white-space: nowrap; }
html.look-night .ot-page.is-yt .sc-fitwrap .sc-fit-legend small { display: none; }
/* The song page's buttons don't stick to the screen's bottom, so the fade behind them (for the stuck bar) only showed
   as a dark band behind "Learn it line by line" and the free line. */
html.look-night .sc-shell.is-songpage .ot-page.is-yt > .ot-actions { background: none !important; }
/* One rhythm on phones: 8px between the boxes, and the free line with the same space above and below it. */
@media (max-width: 759px) {
  .sc-shell.is-choosing .ot-page.is-yt > .ln-settings { margin-top: -6px; }
  .sc-shell.is-choosing .ot-page.is-yt > .sc-fitwrap { margin-top: 2px; }
  .sc-shell.is-choosing .ot-page.is-yt > .ot-other { margin-top: 6px; }
}
