/* "Your take" and the chat with Bud (js/bud-take.js).
   Phones: one full-screen panel at a time; the chat slides over the take.
   Wide screens: centred panels; from 1000px the chat sits beside the take. */

.tk-wrap {
  --tk-ink: #111640; --tk-teal: #17b6c2; --tk-deep: #0b7f8a; --tk-wash: #e4f8fa; --tk-coral: #f4594b;
  --tk-blush: #ffe3df; --tk-sun: #ffd65a; --tk-sunwash: #fff4cf; --tk-lilac: #ece7ff; --tk-bg: #f4fbfc;
  --tk-good: #dff7f3; --tk-good-ink: #065a62; --tk-bad-ink: #b3261e; --tk-wob-ink: #7a5600;
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); color: var(--tk-ink);
}
html.tk-locked, html.tk-locked body { overflow: hidden; }
.tk-scrim { position: absolute; inset: 0; background: rgba(17, 22, 64, 0.5); opacity: 0; transition: opacity 220ms ease; }
.tk-wrap.is-in .tk-scrim { opacity: 1; }
.tk-panels { position: relative; display: flex; gap: 22px; align-items: stretch; height: 100%; width: 100%; }
.tk-panel {
  position: relative; display: flex; flex-direction: column; background: var(--tk-bg); overflow: hidden;
  width: 100%; height: 100%;
}
.tk-wrap.is-enter .tk-take { transform: translateY(40px); opacity: 0; }
.tk-wrap.is-in .tk-take { transform: none; opacity: 1; transition: transform 420ms cubic-bezier(.2, .9, .3, 1.2), opacity 220ms ease; }
.tk-wrap.is-out .tk-take, .tk-wrap.is-out .tk-chat { transform: translateY(30px); opacity: 0; transition: transform 200ms ease-in, opacity 200ms ease-in; }
.tk-wrap.is-out .tk-scrim { opacity: 0; }

/* Buttons, outlined with a solid offset shadow, like stickers */
.tk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; min-height: 42px;
  border-radius: 14px; border: 2.5px solid var(--tk-ink); box-shadow: 3px 3px 0 var(--tk-ink); background: #fff; color: var(--tk-ink);
  font: 800 0.88rem/1 var(--font-head); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 90ms ease-out, box-shadow 90ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.tk-btn .ic { width: 18px; height: 18px; flex: none; }
.tk-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tk-ink); }
.tk-btn.go { background: var(--tk-deep); color: #fff; }
.tk-btn.sun { background: var(--tk-sun); }
.tk-btn.big { min-height: 54px; padding: 12px 18px; font-size: 1.02rem; border-radius: 16px; }
.tk-btn.round { width: 54px; padding: 0; flex: none; }
.tk-btn.grow { flex: 1; }
.tk-btn.is-on { background: var(--tk-ink); color: #fff; }
.tk-btn:focus-visible, .tk-line-head:focus-visible, .tk-q:focus-visible, .tk-term:focus-visible, .tk-thumb:focus-visible { outline: 3px solid var(--tk-sun); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .tk-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--tk-ink); } }

/* ---------- The hero ---------- */
.tk-hero { position: relative; flex: none; padding: calc(14px + env(safe-area-inset-top)) 18px 20px; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #0b7f8a 0%, #17b6c2 100%); }
.tk-hero.tk-lo { background: linear-gradient(160deg, #3d4ba0 0%, #6f7fe0 100%); }
.tk-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 500; opacity: 0.95; }
.tk-top > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.22); color: #fff; display: grid; place-items: center; cursor: pointer; }
.tk-x .ic { width: 18px; height: 18px; }
.tk-x.dark { background: var(--tk-wash); color: var(--tk-ink); }
.tk-hero-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-right: 70px; }
.tk-scorecol { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tk-score { width: 96px; height: 96px; border-radius: 50%; background: #fff; color: var(--tk-ink); display: grid; place-items: center;
  border: 3px solid var(--tk-ink); box-shadow: 4px 4px 0 var(--tk-ink); }
.tk-score > div { text-align: center; }
.tk-score b { display: block; font: 900 2.15rem/1 var(--font-head); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tk-score small { display: block; font-size: 0.64rem; font-weight: 600; color: #4a5178; margin-top: 2px; }
.tk-stars { display: flex; gap: 3px; background: #fff; border: 2.5px solid var(--tk-ink); border-radius: 99px; padding: 3px 8px; box-shadow: 2px 2px 0 var(--tk-ink); }
.tk-st { width: 17px; height: 17px; fill: #e3e8f1; stroke: #9aa5bd; stroke-width: 1.6; stroke-linejoin: round; }
.tk-st.on { fill: #ffc531; stroke: var(--tk-ink); }
.tk-wrap.is-enter .tk-st.on { transform: scale(0); }
.tk-wrap.is-in .tk-st.on { transform: none; transition: transform 380ms cubic-bezier(.3, 1.6, .5, 1); }
.tk-wrap.is-in .tk-st.on:nth-child(1) { transition-delay: 900ms; }
.tk-wrap.is-in .tk-st.on:nth-child(2) { transition-delay: 1050ms; }
.tk-wrap.is-in .tk-st.on:nth-child(3) { transition-delay: 1200ms; }
.tk-hero-text h2 { font: 900 1.42rem/1.12 var(--font-head); margin: 0; letter-spacing: -0.01em; outline: 0; }
.tk-hero-text p { font-size: 0.84rem; margin: 6px 0 0; opacity: 0.95; }
.tk-hero-bud { position: absolute; right: -4px; top: 46px; width: 92px; transform: rotate(8deg); pointer-events: none; }
.tk-hero-bud svg { width: 100%; height: auto; display: block; }
.tk-wrap.is-in .tk-hero-bud { animation: tk-bob 3.2s ease-in-out 600ms infinite; }
@keyframes tk-bob { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-6px); } }
.tk-dot { position: absolute; border-radius: 50%; pointer-events: none; }
.tk-dot.d1 { width: 10px; height: 10px; background: var(--tk-sun); left: 52%; top: 16px; }
.tk-dot.d2 { width: 7px; height: 7px; background: #fff; opacity: 0.7; left: 64%; top: 40px; }
.tk-dot.d3 { width: 12px; height: 12px; background: var(--tk-coral); right: 30px; bottom: 24px; }
.tk-badges { position: relative; z-index: 1; list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tk-badge { display: inline-flex; align-items: center; gap: 5px; font: 800 0.78rem/1 var(--font-head); padding: 6px 11px; border-radius: 99px;
  background: #fff; color: var(--tk-ink); border: 2px solid var(--tk-ink); }
.tk-badge.y { background: var(--tk-sun); }
.tk-badge.p { background: var(--tk-lilac); }
.tk-wrap.is-enter .tk-badge { transform: scale(0.4) rotate(-8deg); opacity: 0; }
.tk-wrap.is-in .tk-badge { transform: none; opacity: 1; transition: transform 420ms cubic-bezier(.3, 1.6, .5, 1), opacity 200ms ease; transition-delay: calc(1300ms + var(--i) * 140ms); }

/* ---------- The lines ---------- */
.tk-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 18px; -webkit-overflow-scrolling: touch; }
.tk-words-nudge { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 10px 12px; border-radius: 16px; border: 2px dashed var(--tk-teal);
  background: #fff; color: var(--tk-ink); text-align: left; cursor: pointer; font: inherit; }
.tk-words-nudge .ic { width: 22px; height: 22px; color: var(--tk-deep); flex: none; }
.tk-words-nudge b { display: block; font-family: var(--font-head); }
.tk-words-nudge small { display: block; font-size: 0.8rem; color: #4a5178; }
.tk-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tk-line { border-radius: 20px; transition: background-color 160ms ease; }
.tk-line.is-open { background: #fff; border: 2.5px solid var(--tk-ink); box-shadow: 4px 4px 0 var(--tk-ink); padding-bottom: 14px; }
.tk-line-head { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 8px 6px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; border-radius: 18px; }
.tk-line.is-open .tk-line-head { padding: 12px 12px 6px; }
.tk-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tk-wash); color: var(--tk-deep); display: grid; place-items: center;
  font: 800 0.82rem var(--font-head); border: 2px solid var(--tk-deep); margin-top: 2px; }
.tk-num.ok { background: var(--tk-deep); color: #fff; }
.tk-num .ic { width: 15px; height: 15px; stroke-width: 3; }
.tk-words { flex: 1; display: flex; flex-wrap: wrap; gap: 6px 6px; padding-top: 1px; }
.tk-w { position: relative; display: inline-flex; flex-direction: column; align-items: center; font: 700 1rem/1.2 var(--font-head); padding: 4px 9px; border-radius: 10px;
  background: var(--tk-good); color: var(--tk-good-ink); }
.tk-w[data-m="low"], .tk-w[data-m="high"], .tk-w[data-m="late"], .tk-w[data-m="sag"], .tk-w[data-m="quiet"] { background: var(--tk-blush); color: var(--tk-bad-ink); }
.tk-w[data-m="shaky"], .tk-w[data-m="short"] { background: var(--tk-sunwash); color: var(--tk-wob-ink); }
.tk-w i { position: absolute; top: -9px; right: -7px; font-style: normal; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 2px solid currentColor;
  display: grid; place-items: center; font-size: 0.66rem; font-weight: 900; line-height: 1; }
.tk-w small { font: 500 0.62rem/1 var(--font-body); margin-top: 2px; opacity: 0.9; }
.tk-wrap.is-enter .tk-w { background: #eef1f6; color: #9aa5bd; }
.tk-wrap.is-enter .tk-w i, .tk-wrap.is-enter .tk-w small { opacity: 0; }
.tk-wrap.is-in .tk-w { transition: background-color 240ms ease, color 240ms ease; transition-delay: calc(450ms + var(--k) * 45ms); }
.tk-wrap.is-in .tk-w i, .tk-wrap.is-in .tk-w small { opacity: 1; transition: opacity 200ms ease calc(500ms + var(--k) * 45ms); }
.tk-lstars { flex: none; font-size: 0.82rem; color: #f2b400; letter-spacing: -1px; margin-top: 6px; }
.tk-lstars i { font-style: normal; color: #cfd6e4; }
.tk-line-body { padding: 0 12px; }
.tk-say { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 12px; }
.tk-say-bud { flex: none; width: 46px; margin-top: -2px; }
.tk-say-bud svg { width: 100%; height: auto; display: block; }
.tk-say p { margin: 0; background: var(--tk-wash); border-radius: 16px 16px 16px 4px; padding: 9px 12px; font-size: 0.9rem; line-height: 1.42; }
.tk-lane { position: relative; height: 78px; border-radius: 14px; border: 2px dashed #bfe7ea; background: linear-gradient(#f7fdfe, #ecfafb); }
.tk-lane-svg { width: 100%; height: 100%; display: block; }
.tk-target { fill: #c9f1f3; stroke: var(--tk-teal); stroke-width: 1.5; }
.tk-sung { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.tk-sung.on { stroke: var(--tk-deep); }
.tk-sung.off { stroke: var(--tk-coral); }
.tk-oops { position: absolute; top: -12px; transform: rotate(-5deg); font: 800 0.68rem/1 var(--font-head); background: var(--tk-coral); color: #fff; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.tk-tags { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tk-tag { font: 700 0.76rem/1 var(--font-head); padding: 6px 10px; border-radius: 99px; }
.tk-tag.g { background: var(--tk-good); color: var(--tk-good-ink); }
.tk-tag.r { background: var(--tk-blush); color: var(--tk-bad-ink); }
.tk-tag.y { background: var(--tk-sunwash); color: var(--tk-wob-ink); }
.tk-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-acts .tk-btn { min-height: 40px; padding: 8px 12px; font-size: 0.84rem; }
.tk-extras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tk-extras:empty { display: none; }
.tk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; border: 2px solid var(--tk-deep); background: #fff; color: var(--tk-deep);
  font: 700 0.82rem/1 var(--font-head); cursor: pointer; }
.tk-chip .ic { width: 16px; height: 16px; }
.tk-note { margin-top: 14px; font-size: 0.86rem; color: #4a5178; line-height: 1.45; }
.tk-note a { color: var(--tk-deep); font-weight: 700; }
.tk-note .btn { margin-top: 8px; }
.tk-foot { flex: none; display: flex; gap: 10px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid #e3e8f1; }
.tk-foot [data-primary] { flex: 1; min-width: 0; }
.tk-foot [data-primary] span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- The chat ---------- */
.tk-chat { position: absolute; inset: 0; transform: translateX(100%); transition: transform 320ms cubic-bezier(.2, .8, .2, 1); z-index: 2; }
.tk-wrap.chat-on .tk-chat { transform: none; }
.tk-chead { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; background: #fff; border-bottom: 2px solid #e3e8f1; }
.tk-chead > div { flex: 1; min-width: 0; }
.tk-chead b { display: block; font: 800 1.05rem var(--font-head); }
.tk-chead small { display: block; font-size: 0.76rem; color: var(--tk-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-back { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--tk-wash); color: var(--tk-ink); display: grid; place-items: center; cursor: pointer; }
.tk-back .ic { width: 18px; height: 18px; }
.tk-chead .tk-x { display: none; }
.tk-cav { position: relative; flex: none; width: 50px; height: 50px; }
.tk-cav-in { position: absolute; inset: 0; border-radius: 50%; background: var(--tk-wash); border: 2.5px solid var(--tk-ink); overflow: hidden; display: grid; place-items: center; }
.tk-cav-in svg { width: 94%; height: 94%; }
.tk-online { position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%; background: #2ecc71; border: 2.5px solid #fff; }
.tk-cbody { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(circle at 15% 8%, #e9fbfd 0, transparent 38%), radial-gradient(circle at 90% 72%, #fff4cf 0, transparent 34%), var(--tk-bg); }
.tk-row { display: flex; gap: 7px; align-items: flex-end; animation: tk-in 320ms cubic-bezier(.2, .9, .3, 1.15) both; }
.tk-row.me { justify-content: flex-end; }
@keyframes tk-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
.tk-mav { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--tk-wash); border: 2px solid var(--tk-ink); overflow: hidden; display: grid; place-items: center; align-self: flex-end; }
.tk-mav svg { width: 96%; height: 96%; }
.tk-msg { max-width: min(84%, 440px); padding: 10px 13px; border-radius: 20px 20px 20px 6px; background: #fff; border: 2px solid var(--tk-ink); font-size: 0.9rem; line-height: 1.45; }
.tk-msg p { margin: 0; }
.tk-msg p + p, .tk-msg p + ul, .tk-msg ul + p, .tk-msg p + ol, .tk-msg ol + .tk-btn, .tk-msg p + .tk-hearrow { margin-top: 8px; }
.tk-msg.me { background: var(--tk-deep); color: #fff; border-radius: 20px 20px 6px 20px; font-weight: 500; }
.tk-msg.typing { display: flex; gap: 5px; padding: 13px 15px; }
.tk-msg.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--tk-teal); animation: tk-dots 1s ease-in-out infinite; }
.tk-msg.typing i:nth-child(2) { animation-delay: 150ms; }
.tk-msg.typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes tk-dots { 0%, 100% { transform: translateY(0); opacity: 0.45; } 50% { transform: translateY(-4px); opacity: 1; } }
.tk-term { display: inline; padding: 0 7px; border: 0; border-radius: 8px; background: var(--tk-wash); color: var(--tk-deep); font: inherit; font-weight: 700; border-bottom: 2px solid var(--tk-teal); cursor: pointer; }
.tk-term.song { background: var(--tk-sunwash); color: var(--tk-wob-ink); border-color: var(--tk-sun); cursor: default; }
.tk-tips, .tk-good { list-style: none; padding: 0; display: grid; gap: 7px; }
.tk-tips li { display: flex; gap: 8px; align-items: flex-start; }
.tk-tips li span { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--tk-sunwash); border: 1.5px solid var(--tk-sun); display: grid; place-items: center; font: 800 0.78rem var(--font-head); }
.tk-tips li em { font-style: normal; }
.tk-good li { display: flex; gap: 8px; align-items: flex-start; }
.tk-good .ic { flex: none; width: 18px; height: 18px; color: var(--tk-deep); stroke-width: 3; margin-top: 2px; }
.tk-plan { padding-left: 1.2em; display: grid; gap: 5px; }
.tk-hearrow { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-row .tk-card { max-width: min(88%, 460px); }
.tk-card { border-radius: 20px; overflow: hidden; background: #fff; border: 2.5px solid var(--tk-ink); box-shadow: 4px 4px 0 var(--tk-ink); }
.tk-card-h { background: var(--tk-sun); padding: 10px 12px; display: flex; gap: 10px; align-items: center; border-bottom: 2.5px solid var(--tk-ink); }
.tk-card-bud { flex: none; width: 50px; }
.tk-card-bud svg { width: 100%; height: auto; display: block; }
.tk-card-h small { display: block; font: 800 0.64rem var(--font-head); letter-spacing: 0.1em; color: #6a4b00; }
.tk-card-h b { display: block; font: 800 1.02rem/1.15 var(--font-head); }
.tk-drill ol { list-style: none; padding: 10px 12px 0; margin: 0; display: grid; gap: 7px; counter-reset: s; }
.tk-drill li { display: flex; gap: 9px; font-size: 0.84rem; line-height: 1.4; counter-increment: s; }
.tk-drill li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--tk-deep); color: #fff; font: 800 0.74rem var(--font-head); display: grid; place-items: center; }
.tk-card-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 12px; }
.tk-card-f > span { font-size: 0.78rem; color: #4a5178; }
.tk-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, #ffb35c 0%, #f4594b 55%, #c13a6a 100%); }
.tk-thumb.t-sag, .tk-thumb.t-short, .tk-thumb.t-quiet { background: linear-gradient(135deg, #7be0e6 0%, #17b6c2 50%, #0b7f8a 100%); }
.tk-thumb.t-shaky, .tk-thumb.t-warmup { background: linear-gradient(135deg, #ffe27a 0%, #ffb35c 55%, #f4594b 100%); }
.tk-thumb.t-highNotes { background: linear-gradient(135deg, #b9a8ff 0%, #6f7fe0 55%, #3d4ba0 100%); }
.tk-thumb-bud { position: absolute; left: 12px; top: 10px; width: 72px; }
.tk-thumb-bud svg { width: 100%; height: auto; display: block; }
.tk-thumb-t { position: absolute; right: 12px; top: 12px; width: 55%; font: 900 1.05rem/1.08 var(--font-head); color: #fff; text-align: right; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }
.tk-thumb-wave { position: absolute; left: -10px; right: -10px; bottom: 16px; width: calc(100% + 20px); height: 40px; }
.tk-thumb-wave path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: 0.85; }
.tk-thumb-play { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: #fff;
  border: 3px solid var(--tk-ink); box-shadow: 3px 3px 0 var(--tk-ink); display: grid; place-items: center; font-size: 1.1rem; color: var(--tk-coral); padding-left: 3px; transition: transform 160ms ease; }
.tk-thumb:hover .tk-thumb-play { transform: translate(-50%, -50%) scale(1.08); }
.tk-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.tk-vmeta { padding: 10px 12px 12px; }
.tk-vmeta small { display: block; font: 800 0.64rem var(--font-head); letter-spacing: 0.1em; color: var(--tk-coral); }
.tk-vmeta b { display: block; font: 800 1rem/1.2 var(--font-head); margin: 3px 0 2px; }
.tk-vmeta p { margin: 0; font-size: 0.78rem; color: #4a5178; }
.tk-vrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.tk-vrow .tk-btn { min-height: 38px; padding: 7px 12px; font-size: 0.82rem; }
.tk-vopen { font-size: 0.78rem; color: var(--tk-deep); font-weight: 600; }
.tk-qs { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; padding: 8px 12px 10px; background: var(--tk-bg); }
.tk-qs:empty { display: none; }
.tk-q { font: 700 0.84rem/1 var(--font-head); padding: 9px 13px; border-radius: 99px; background: #fff; color: var(--tk-deep); border: 2px solid var(--tk-deep); cursor: pointer;
  animation: tk-in 260ms ease both; }
.tk-q:disabled { opacity: 0.45; cursor: default; }
.tk-q:not(:disabled):active { transform: scale(0.96); }
.tk-cfoot { flex: none; display: flex; gap: 10px; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid #e3e8f1; }

/* ---------- Wide screens ---------- */
@media (min-width: 700px) {
  .tk-panels { width: auto; height: auto; max-height: min(880px, calc(100vh - 48px)); }
  .tk-panel { width: 460px; height: auto; max-height: min(880px, calc(100vh - 48px)); border-radius: 30px; border: 3px solid var(--tk-ink); box-shadow: 8px 8px 0 rgba(17, 22, 64, 0.85); }
  .tk-hero { padding-top: 16px; }
  .tk-foot, .tk-cfoot { padding-bottom: 16px; }
  .tk-chead { padding-top: 12px; }
}
@media (min-width: 1000px) {
  .tk-chat { position: relative; inset: auto; transform: translateX(30px); opacity: 0; width: 0; border-width: 0; margin-left: -22px; transition: transform 320ms cubic-bezier(.2, .8, .2, 1), opacity 220ms ease, width 0ms 320ms; }
  .tk-chat { height: min(880px, calc(100vh - 48px)); }
  .tk-wrap.chat-on .tk-chat { width: 440px; border-width: 3px; margin-left: 0; transform: none; opacity: 1; transition: transform 320ms cubic-bezier(.2, .8, .2, 1), opacity 220ms ease; }
  .tk-chead .tk-back { display: none; }
  .tk-chead .tk-x { display: grid; }
  .tk-cfoot { display: none; }
  .tk-hero-text h2 { font-size: 1.5rem; }
}
@media (max-height: 640px) and (max-width: 699px) {
  .tk-score { width: 78px; height: 78px; }
  .tk-score b { font-size: 1.8rem; }
  .tk-hero-bud { width: 74px; }
  .tk-badges { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .tk-wrap *, .tk-wrap *::before { animation: none !important; transition: none !important; }
}

/* ---------- The words, heard on the device (song page) ---------- */
.sc-heard { margin-top: 12px; }
.sc-heard-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff;
  border: 2.5px solid var(--ink, #111640); box-shadow: 3px 3px 0 var(--ink, #111640); }
.sc-heard-card > div { flex: 1; min-width: 0; }
.sc-heard-card b { display: block; font-family: var(--font-head); font-size: 0.98rem; }
.sc-heard-card small { display: block; font-size: 0.82rem; color: var(--ink-soft, #4a5178); margin-top: 2px; }
.sc-heard-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; background: #e4f8fa; }
.sc-heard-card.is-ready .sc-heard-ic { background: #fff4cf; }
.sc-heard-card.is-busy .sc-heard-ic { animation: sc-heard-pulse 1.6s ease-in-out infinite; }
@keyframes sc-heard-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.sc-heard-bar { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: #e4f8fa; overflow: hidden; }
.sc-heard-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #17b6c2, #0b7f8a); transition: width 400ms ease; }
.sc-heard-paste { display: inline-block; margin-top: 6px; font-size: 0.86rem; }
.sc-heard-list { list-style: none; padding: 0 6px 0 0; margin: 12px 0 0; display: grid; gap: 8px; max-height: min(52vh, 420px); overflow-y: auto; }
.sc-heard-list li { display: flex; align-items: center; gap: 8px; }
.sc-heard-list label { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc-heard-list .input { flex: 1; min-width: 0; padding: 10px 12px; font-size: 0.95rem; }
.sc-heard-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e4f8fa; color: #0b7f8a; font: 800 0.78rem var(--font-head); }
.sc-heard-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 900 0.85rem var(--font-head); background: #dff7f3; color: #065a62; }
.sc-heard-list li.is-unsure .sc-heard-mark { background: #fff4cf; color: #7a5600; }
.sc-heard-list li.is-unsure .input { border-color: #f2b400; background: #fffaf0; }
@media (prefers-reduced-motion: reduce) { .sc-heard-card.is-busy .sc-heard-ic { animation: none; } }

/* ---------- One take of a song, and its results as a story (js/song-take.js) ---------- */
.ot {
  --tk-ink: #111640; --tk-teal: #17b6c2; --tk-deep: #0b7f8a; --tk-wash: #e4f8fa; --tk-coral: #f4594b;
  --tk-blush: #ffe3df; --tk-sun: #ffd65a; --tk-sunwash: #fff4cf; --tk-good: #dff7f3; --tk-good-ink: #065a62; --tk-bad-ink: #b3261e; --tk-wob-ink: #7a5600;
  width: 100%; max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px;
}
.ot-bud { display: block; width: 120px; margin: 0 auto; }
.ot-bud.sm { width: 76px; margin: 0; flex: none; }
.ot-bud svg { width: 100%; height: auto; display: block; }
.ot-sub { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.ot-hint { margin: 0; font-size: 0.86rem; color: var(--ink-soft); text-align: center; line-height: 1.4; }
.ot-actions, .ot-wrap-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ot-actions .btn-lg, .ot-wrap-actions .btn { width: 100%; }

/* The song's page */
.ot-page-head .ob-title { margin: 2px 0 0; overflow-wrap: anywhere; }
.ot-lede { display: flex; align-items: center; gap: 12px; }
.ot-lede p { margin: 0; line-height: 1.45; }
.ot-last { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; border: 2.5px solid var(--tk-ink); background: var(--white, #fff); box-shadow: 4px 4px 0 var(--tk-ink); }
.ot .tk-score { width: 96px; height: 96px; border-radius: 50%; background: #fff; color: var(--tk-ink); display: grid; place-items: center; border: 3px solid var(--tk-ink); box-shadow: 4px 4px 0 var(--tk-ink); flex: none; }
.ot .tk-score > div { text-align: center; }
.ot .tk-score b { display: block; font: 900 2.15rem/1 var(--font-head); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ot .tk-score small { display: block; font-size: 0.64rem; font-weight: 600; color: #4a5178; margin-top: 2px; }
.ot .tk-score.sm { width: 62px; height: 62px; box-shadow: 2px 2px 0 var(--tk-ink); border-width: 2.5px; }
.ot .tk-score.sm b { font-size: 1.4rem; }
.ot-last-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ot-last-text b { font-family: var(--font-head); }
.ot-last-text small { color: var(--ink-soft); }
.ot-takes summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; font: 700 0.92rem var(--font-head); padding: 8px 2px; list-style: none; }
.ot-takes summary::-webkit-details-marker { display: none; }
.ot-takes summary .ic { width: 16px; height: 16px; transition: transform 160ms ease; }
.ot-takes[open] summary .ic { transform: rotate(90deg); }
.ot-takes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ot-takes a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.ot-takes a b { width: 34px; font: 800 1.05rem var(--font-head); }
.ot-takes a span { flex: 1; color: var(--ink-soft); font-size: 0.9rem; }
.ot-takes a .ic { width: 16px; height: 16px; }

/* The song's picture gives way on short windows, so Sing it stays on screen. */
.ot-page .sc-map { height: clamp(84px, 22svh, 190px); }

/* The singer switch */
.ot-singer-wrap { width: 100%; }
.ot .ot-singer { width: 100%; margin: 0; padding: 10px 14px; border-radius: 16px; border: 2px solid rgba(120, 130, 160, 0.3); }
.ot-run .ot-singer { padding: 6px 14px; }
.ot .switch input:disabled { cursor: default; }
.ot .switch input:disabled + .switch-knob { opacity: 0.5; }

/* Singing */
.ot-now { text-align: center; min-height: 66px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.ot-now-label { margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-now-words { margin: 0; font: 800 clamp(1.1rem, 4.4vw, 1.5rem)/1.2 var(--font-head); overflow-wrap: anywhere; }
.ot-lanebox { margin: 0; }
/* Whatever's left once everything else fits, so Finish take is always on screen. */
.ot-run .sc-lane { height: clamp(150px, calc(100svh - 430px), 380px); }
.ot-track { height: 8px; border-radius: 4px; background: rgba(120, 130, 160, 0.18); overflow: hidden; flex: 1; }
.ot-track i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--tk-teal); transition: width 200ms linear; }
.ot-freenote { display: flex; align-items: center; justify-content: center; gap: 7px; width: fit-content; max-width: 100%; margin: 0 auto 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 0.86rem; font-weight: 700; line-height: 1.25; text-align: center; }
.ot-freenote .ic { width: 15px; height: 15px; flex: none; color: #ffd23f; }
.ot-freeover { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px auto 0; max-width: 34ch; font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); text-align: center; }
.ot-freeover .ic { width: 18px; height: 18px; flex: none; color: var(--sun-deep, #e0a100); }
.ot-freeover .ic .ic-fill { fill: currentColor; }
.ot-live { display: flex; justify-content: center; gap: 22px; margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
.ot-live b { font: 800 1.05rem var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.ot-hearing { align-items: center; text-align: center; padding-top: 8vh; }
/* A karaoke video YouTube won't play in the app: Bud, one line why, one button (songcoach.js, watchBlocked). */
.ot-blocked { align-items: center; text-align: center; padding-top: 6vh; }
.ot-blocked .ot-bud { width: 112px; margin: 0 auto 4px; }
.ot-blocked .ob-title { margin: 0; outline: 0; }
.ot-blocked .ob-sub { max-width: 34ch; margin: 8px auto 0; }
.ot-blocked .ob-actions { flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; }
/* Not a bar at the bottom here: no fade behind the buttons (the Night look gives button rows one). */
html .ot.ot-blocked > .ob-actions.ob-actions { background: none !important; box-shadow: none !important; position: static; }
@media (max-height: 600px) {
  .ot-blocked { padding-top: 0; }
  .ot-blocked .ot-bud { width: 72px; }
  .ot-blocked .ob-actions { margin-top: 14px; }
}

/* The story */
.ot-storytop { display: flex; align-items: center; gap: 14px; min-height: 36px; }
.ot-skip { flex: none; }
.ot-card { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.ot-card > .eyebrow { margin: 0; }
.ot-card .ob-title { margin: 0; outline: 0; }
.ot-card.is-in { animation: ot-in 260ms cubic-bezier(.2, .8, .2, 1); }
.ot-card.is-back { animation: ot-back 260ms cubic-bezier(.2, .8, .2, 1); }
@keyframes ot-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes ot-back { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.ot-nav { display: flex; gap: 10px; align-items: center; position: sticky; bottom: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg, #fff) 26%); z-index: 2; }
.ot-nav .btn { flex: 1; min-width: 0; }
.ot-scorecard { display: flex; flex-direction: column; gap: 12px; }
.ot-score-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ot-panel { padding: 10px 12px; border-radius: 16px; border: 2px dashed #bfe7ea; background: linear-gradient(#f7fdfe, #ecfafb); }
.ot-picture { width: 100%; height: 96px; display: block; }
.ot-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 0.76rem; color: #4a5178; }
.ot-legend i { width: 18px; height: 4px; border-radius: 2px; background: var(--tk-deep); }
.ot-legend i.off { background: var(--tk-coral); margin-left: 10px; }
.ot-range { display: flex; align-items: center; gap: 12px; }
.ot-range p { margin: 0; font-size: 0.9rem; line-height: 1.35; color: #111640; }
.ot-keys { flex: 0 1 46%; min-width: 110px; max-width: 220px; height: auto; display: block; }
.ot-key { fill: #fff; stroke: #111640; stroke-width: 1.5; }
.ot-key.on { fill: var(--tk-teal); }
.ot-key.blk { fill: #111640; }
.ot-key.blk.on { fill: var(--tk-deep); }
.ot-budsay { display: flex; gap: 10px; align-items: flex-start; }
.ot-bubble { background: var(--tk-wash); color: var(--tk-ink); border-radius: 18px 18px 18px 4px; padding: 12px 14px; display: grid; gap: 8px; min-width: 0; }
.ot-bubble p { margin: 0; line-height: 1.45; }
.ot-words { flex: none; }
.ot-lane { height: 96px; }
.ot-say { margin: 0; }
.ot-say p { color: var(--tk-ink); }
.ot-line-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.ot-steps { margin: 0; padding: 12px 14px 12px 34px; border-radius: 16px; background: var(--tk-wash); color: var(--tk-ink); display: grid; gap: 6px; line-height: 1.4; }
.ot-wrapcard { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.ot-limit { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.ot-limit a { font-weight: 700; color: var(--tk-deep); }
.ot-wrap-actions { margin-top: 6px; }
@media (min-width: 760px) { .ot-picture { height: 120px; } }

/* Drawn icons where emoji used to be: badges on a take, the words card */
.tk-badge .ic { width: 15px; height: 15px; }
.sc-heard-ic .ic { width: 22px; height: 22px; }

/* The upgrade moments in the song flow (10 Nov 2026). On the song page: a quiet bar that says what's free.
   On the last result card after the free minute: the offer, as the main thing on the card. */
.ot-freebar { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; text-decoration: none;
  background: var(--tk-sunwash, #fff4cf); color: #111640; box-shadow: 0 0 0 2px #111640; }
.ot-freebar-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ffd65a; }
.ot-freebar-ic .ic { width: 18px; height: 18px; }
.ot-freebar-ic .ic .ic-fill { fill: #111640; }
.ot-freebar-text { flex: 1; min-width: 0; display: grid; gap: 1px; text-align: left; }
.ot-freebar-text b { font: 800 0.95rem/1.2 var(--font-head); }
.ot-freebar-text small { font-size: 0.85rem; color: #3f3a1a; }
.ot-freebar > .ic { width: 18px; height: 18px; flex: none; }
.ot-offer { margin: 18px 0 4px; padding: 18px 16px 16px; border-radius: 22px; background: #0b7f8a; color: #fff; text-align: center; box-shadow: 0 14px 34px rgba(16, 32, 58, 0.2); }
.ot-offer b { display: block; font: 800 1.25rem/1.2 var(--font-head); }
.ot-offer p { margin: 8px auto 14px; max-width: 34ch; font-size: 0.95rem; line-height: 1.45; color: rgba(255, 255, 255, 0.92); }
.ot-offer .ot-offer-btn { width: 100%; border-radius: 999px; background: #ffd65a; color: #111640; box-shadow: 0 5px 0 rgba(4, 50, 58, 0.55); text-decoration: none; }
.ot-offer .ot-offer-btn .ic { stroke: #111640; }
.ot-offer .ot-offer-btn .ic .ic-fill { fill: #111640; }
.ot-offer small { display: block; margin-top: 12px; font-size: 0.85rem; font-weight: 700; color: rgba(255, 255, 255, 0.9); }
/* After the offer: the other choices sit clear of it, not pinned over its last line. */
.ot-wrapcard .ot-offer { position: relative; z-index: 1; flex: none; }
.ot-wrapcard .ot-offer + .ot-wrap-actions { position: static; margin-top: 10px; padding: 0; background: none; box-shadow: none; }
.ot-wrapcard .ot-offer + .ot-wrap-actions .btn-link { color: inherit; }

/* Fix one line: the 30-second steps, then the line's notes before and now. */
.ot-drill { margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; background: var(--tk-wash, #e4f8fa); text-align: left; }
.ot-drill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.ot-drill-head b { font: 800 1rem/1.2 var(--font-head); }
.ot-drill-head span { font-size: 0.8rem; font-weight: 800; color: #0b7f8a; white-space: nowrap; }
.ot-drill .ot-steps { margin: 0; }
.ot-fix-actions { margin-top: 14px; }
.ot-fix-actions .btn { width: 100%; }
.ot-ba { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 12px; }
.ot-ba-cell { min-width: 108px; padding: 14px 12px; border-radius: 18px; background: #eef1f6; text-align: center; }
.ot-ba-cell small { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #4a5178; }
.ot-ba-cell b { font: 800 2.1rem/1.1 var(--font-head); color: #111640; }
.ot-ba-cell b i { font-style: normal; font-size: 1.1rem; color: #4a5178; }
.ot-ba-cell.is-up { background: #dff7f3; box-shadow: 0 0 0 2px #0b7f8a; }
.ot-ba-arrow .ic { width: 22px; height: 22px; color: #4a5178; }

/* ---------- Any song from its karaoke video (js/any-take.js): three scores, explained ---------- */
.at-dims { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.at-dim-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.at-dim-top b { font: 800 1rem var(--font-head); }
.at-dim-top span { font: 800 1.05rem var(--font-head); font-variant-numeric: tabular-nums; }
.at-bar { height: 10px; margin: 6px 0; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.at-bar i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.at-dim small { color: var(--ink-soft); line-height: 1.4; }
.at-notes { margin: 20px 0 0; display: grid; gap: 10px; }
.at-notes p { margin: 0; line-height: 1.45; }
.at-drill { justify-self: start; }
.at-note { margin: 18px 0 0; text-align: center; font-size: 0.84rem; color: var(--ink-soft); }
.at-results .ot-wrap-actions { margin-top: 20px; }
/* The results end with their buttons, in the flow: a sticky bar of three would cover the scores on a phone. */
.at-results .ob-actions { position: static; box-shadow: none; background: none; padding: 0; }
.at-hear { display: inline-flex; align-items: center; gap: 6px; }
.at-hear .ic { width: 18px; height: 18px; }
.at-hear .ic .ic-fill { fill: currentColor; }
/* Room under "You've sung", clear of the sticky Finish bar's fade. */
.at-run .ot-live { margin-bottom: 18px; }

/* Moments to work on: when, what, one tip, and hear it or practise it. */
.at-moments { margin: 22px 0 0; display: grid; gap: 10px; }
.at-moments-title { margin: 0 0 2px; font: 800 1.05rem var(--font-head); }
.at-moment { padding: 12px 14px; border-radius: 16px; background: var(--white); box-shadow: var(--sh-card); }
.at-moment-top { display: block; line-height: 1.35; }
.at-moment-time { margin-right: 8px; }
.at-moment-time { font: 800 1rem var(--font-head); font-variant-numeric: tabular-nums; color: var(--coral-text); }
.at-moment-top span { font-weight: 700; }
.at-moment p { margin: 6px 0 10px; color: var(--ink-soft); line-height: 1.4; }
.at-moment-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.at-loop-tip { margin: 0 auto 10px; max-width: 34ch; text-align: center; color: var(--ink-soft); line-height: 1.4; }
.at-loop [data-say][data-v="good"] { color: var(--good-text, #1f8a5b); }

.at-short { margin: 8px 0 0; font-size: 0.9rem; font-weight: 700; color: var(--coral-text); }

/* Too little heard: what was heard, why it most likely happened, and the way on. */
.at-few { max-width: 520px; margin: 0 auto; text-align: center; }
.at-few-bud { width: 120px; margin: 0 auto 10px; }
.at-few-heard { margin: 10px 0 0; font-weight: 700; color: var(--ink-soft); }
.at-few-tips { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.at-few-tips li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 16px; background: var(--white); box-shadow: var(--sh-card); line-height: 1.4; }
.at-few-tips .ic { width: 20px; height: 20px; margin-top: 1px; color: var(--teal-text); }
.at-few-acts { margin-top: 24px; align-items: stretch; }
/* The not-enough-singing screen: the buttons sit on the page, with no bar behind them. */
.at-few .ob-actions.at-few-acts { position: static; background: none; box-shadow: none; }

/* ---------- A take's results as a chat with Bud (js/take-chat.js), on a normal page with the menu ---------- */
.tc { gap: 12px; padding-bottom: 8px; }
.tc-top .eyebrow { margin: 0; }
.tc-title { margin: 2px 0 0; outline: 0; overflow-wrap: anywhere; }
.tc-chat { border-radius: 24px; border: 2.5px solid var(--tk-ink); box-shadow: 4px 4px 0 var(--tk-ink); overflow: hidden;
  background: radial-gradient(circle at 12% 10%, #e9fbfd 0, transparent 36%), radial-gradient(circle at 92% 80%, #fff4cf 0, transparent 32%), var(--tk-bg, #f4fbfc); }
.tc-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--tk-deep); color: #fff; border-bottom: 2.5px solid var(--tk-ink); }
.tc-av { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--tk-wash); border: 2px solid var(--tk-ink); display: grid; place-items: center; }
.tc-av svg { width: 92%; height: 92%; border-radius: 50%; }
.tc-av i { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #2ecc71; border: 2px solid #fff; }
.tc-who { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.tc-who b { font: 800 1rem var(--font-head); }
.tc-who small { font-size: 0.78rem; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Bud's message sounds on/off, in the corner of his chat (1 Dec 2026). */
.tc-mute { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-right: -4px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 160ms, transform 120ms; }
.tc-mute .ic { width: 18px; height: 18px; }
.tc-mute[aria-pressed="true"] { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); color: rgba(255, 255, 255, 0.75); }
.tc-mute:active { transform: scale(0.9); }
.tc-mute:focus-visible { outline: 3px solid #9fe7ef; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tc-mute { transition: none; } }
.tc-all { flex: none; color: #fff; font-size: 0.85rem; }
.tc-thread { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 16px; min-height: 120px; }
.tc-row { display: flex; gap: 7px; align-items: flex-end; scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom)); }
.tc-row.is-in { animation: tc-in 340ms cubic-bezier(.2, .9, .3, 1.15) both; transform-origin: left bottom; }
@keyframes tc-in { from { opacity: 0; transform: translateY(12px) scale(0.94); } to { opacity: 1; transform: none; } }
.tc-mav { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tk-wash); border: 2px solid var(--tk-ink); overflow: hidden; display: grid; place-items: center; }
.tc-mav svg { width: 96%; height: 96%; }
.tc-msg { position: relative; max-width: min(86%, 460px); min-width: 0; padding: 10px 13px; border-radius: 18px 18px 18px 5px; background: #fff; color: #111640;
  border: 2px solid var(--tk-ink); font-size: 0.93rem; line-height: 1.45; display: grid; gap: 8px; }
.tc-row.wide .tc-msg { width: min(86%, 460px); }
.tc-msg p { margin: 0; }
.tc-msg.typing { display: flex; gap: 5px; padding: 12px 14px; }
.tc-msg.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--tk-teal); animation: tk-dots 1s ease-in-out infinite; }
.tc-msg.typing i:nth-child(2) { animation-delay: 150ms; }
.tc-msg.typing i:nth-child(3) { animation-delay: 300ms; }
.tc-score { display: flex; align-items: center; gap: 12px; }
.tc-score .tk-score { box-shadow: 2px 2px 0 #111640; border-color: #111640; color: #111640; background: #fff; }
.tc-score .tk-score small { font-size: 0.5rem; }
.tc-score-text { display: grid; gap: 2px; min-width: 0; }
.tc-score-text b { font: 800 1.15rem/1.15 var(--font-head); }
.tc-score-text small { font-size: 0.82rem; color: #4a5178; }
.tc-picture { padding: 8px 10px; border-radius: 12px; background: #f1fafb; }
.tc-picture .ot-picture { height: 80px; }
.tc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tc-list li { display: flex; gap: 8px; align-items: flex-start; }
.tc-list .ic { flex: none; width: 17px; height: 17px; margin-top: 3px; color: #0b7f8a; stroke-width: 3; }
.tc-linehead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tc-linehead b { font: 800 1rem var(--font-head); }
.tc-linehead span { font-size: 0.8rem; font-weight: 700; color: #4a5178; white-space: nowrap; }
.tc-words { display: flex; flex-wrap: wrap; gap: 5px; }
.tc-words .tk-w { font-size: 0.9rem; padding: 3px 8px; }
.tc-lane { height: 70px; }
.tc-label { font: 800 0.72rem var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: #4a5178; }
.tc-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tc-facts li { display: flex; gap: 9px; align-items: flex-start; }
.tc-facts em { font-style: normal; color: #4a5178; }
.tc-tag { flex: none; min-width: 52px; text-align: center; padding: 2px 7px; border-radius: 8px; font: 800 0.78rem/1.5 var(--font-head); font-variant-numeric: tabular-nums;
  background: #ffe3df; color: #b3261e; }
.tc-tag[data-m="short"], .tc-tag[data-m="shaky"] { background: #fff4cf; color: #7a5600; }
.tc-tag[data-m="quiet"] { background: #eef1f6; color: #4a5178; }
.tc-note { font-size: 0.78rem; color: #4a5178; }
.tc-acts-in { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-acts-in .tk-btn { min-height: 40px; padding: 8px 12px; }
.tc-drill { box-shadow: 3px 3px 0 #111640; border-color: #111640; }
.tc-drill-why { margin: 0; padding: 10px 12px 0; font-size: 0.86rem; }
.tc-drill .tk-card-f { justify-content: flex-start; }
.tc-range { display: flex; }
.tc-range .ot-keys { flex: 0 1 auto; width: 100%; max-width: 240px; }
.tc-end { display: flex; flex-direction: column; gap: 10px; animation: tc-in 340ms cubic-bezier(.2, .9, .3, 1.15) both; scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom)); }
.tc-end[hidden] { display: none; }
@media (max-width: 420px) { .tc-thread { padding: 12px 8px 14px; } .tc-msg, .tc-row.wide .tc-msg { max-width: calc(100% - 37px); } .tc-row.wide .tc-msg { width: calc(100% - 37px); } }
@media (prefers-reduced-motion: reduce) { .tc-row.is-in, .tc-end { animation: none; } .tc-msg.typing i { animation: none; } }
html[data-theme="dark"] .tc-chat { background: #0a0f1e; }
html[data-theme="dark"] .tc-head { background: #0d3a47; }
html[data-theme="dark"] .tc-msg { background: #151e3e; color: #eef2ff; }
html[data-theme="dark"] .tc-score .tk-score { background: #10183a; color: #eef2ff; border-color: #eef2ff; box-shadow: 2px 2px 0 #eef2ff; }
html[data-theme="dark"] .tc-score-text small, html[data-theme="dark"] .tc-label, html[data-theme="dark"] .tc-note, html[data-theme="dark"] .tc-facts em { color: #b8c0e0; }
html[data-theme="dark"] .tc-picture { background: #10183a; }
html[data-theme="dark"] .tc-list .ic { color: #39e6ee; }
html[data-theme="dark"] .tc-linehead span { color: #a9b4d1; }
html[data-theme="dark"] .tc-tag { background: #3a1f2a; color: #ff9d92; }
html[data-theme="dark"] .tc-tag[data-m="short"], html[data-theme="dark"] .tc-tag[data-m="shaky"] { background: #2e2a14; color: #ffd65a; }
html[data-theme="dark"] .tc-tag[data-m="quiet"] { background: #1b2342; color: #b8c0e0; }
html[data-theme="dark"] .tc-drill { box-shadow: 3px 3px 0 #eef2ff; border-color: #eef2ff; }

/* ---------- The take chat, calmer (owner, 13 Nov 2026) ----------
   Bubbles without the heavy outline, Bud's picture once per run of messages (on the last, as in a messaging app),
   and in dark mode soft panels instead of white outlines. */
.tc-msg { border: 0; box-shadow: 0 0 0 1px rgba(17, 22, 64, 0.1), 0 2px 6px -3px rgba(17, 22, 64, 0.18); }
.tc-row:has(+ .tc-row:not(.tc-typing)) .tc-mav { visibility: hidden; }
.tc-thread { gap: 8px; }
.tc-row:has(+ .tc-row) { margin-bottom: -2px; }
.tc-cents { margin: 0; font-size: 0.78rem; color: #4a5178; }
html[data-theme="dark"] .tc-msg { background: #151e3e; color: #e9edff; box-shadow: none; }
html[data-theme="dark"] .tc-msg small, html[data-theme="dark"] .tc-facts em, html[data-theme="dark"] .tc-label, html[data-theme="dark"] .tc-cents, html[data-theme="dark"] .tc-score-text small { color: #a9b4d1; }
html[data-theme="dark"] .tc-mav { border-color: #2a3560; }
html[data-theme="dark"] .tc-chat { border-color: #2a3560; box-shadow: none; background: #0d1430; }
html[data-theme="dark"] .tc-head { border-bottom-color: #2a3560; }
html[data-theme="dark"] .tc-score .tk-score { box-shadow: none; border-color: #e9edff; color: #fff; background: transparent; }
html[data-theme="dark"] .tc-tag { background: rgba(244, 89, 75, 0.18); color: #ff9d92; }
html[data-theme="dark"] .tc-tag[data-m="short"], html[data-theme="dark"] .tc-tag[data-m="shaky"] { background: rgba(255, 214, 90, 0.16); color: #ffd65a; }
html[data-theme="dark"] .tc-list .ic { color: #39e6ee; }
html[data-theme="dark"] .tc-linehead span { color: #a9b4d1; }
html[data-theme="dark"] .tc-msg .tk-btn { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.22); box-shadow: none; }
html[data-theme="dark"] .tc-msg .tk-btn:hover { background: rgba(255, 255, 255, 0.12); }
html[data-theme="dark"] .tc-msg .tk-btn.sun { background: #ffd65a; color: #111640; border-color: transparent; }
/* Dark mode, inside the chat: the focus card's yellow header keeps dark text, the card loses its white outline, the
   drill button is bright, and the keyboard keeps light white keys and dark black ones (owner, 13 Nov 2026). */
html[data-theme="dark"] .tc-msg .tk-card { border: 1px solid #2a3560; box-shadow: none; background: #0d1430; }
html[data-theme="dark"] .tc-msg .tk-card-h { border-bottom: 0; }
html[data-theme="dark"] .tc-msg .tk-card-h b { color: #111640; }
html[data-theme="dark"] .tc-msg .tk-card-h small { color: #6a4b00; }
html[data-theme="dark"] .tc-msg .tk-btn.go { background: #39e6ee; color: #07101f; border-color: transparent; }
html[data-theme="dark"] .tc-msg .tk-btn.go .ic { color: #07101f; }
html[data-theme="dark"] .ot-key { fill: #dfe5f7; stroke: #0d1430; }
html[data-theme="dark"] .ot-key.blk { fill: #0d1430; stroke: #0d1430; }
html[data-theme="dark"] .ot-key.on { fill: #39e6ee; }
html[data-theme="dark"] .ot-key.blk.on { fill: #0b7f8a; }
/* The end of the report: the buttons sit on the page, with no bar behind them (owner, 13 Nov 2026). */
.tc-end .ob-actions.ot-wrap-actions { position: static; background: none; box-shadow: none; padding: 0; margin-top: 4px; }
html[data-theme="dark"] .tc-end .btn-secondary { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); }

/* ---------- What Bud heard past the free minute, locked: the clean card (owner, 4 Dec 2026) ----------
   The buy sheet's look (navy, a thin light edge, one gold accent): a gold lock and what his notes add up to, the lines
   he heard (time, grey bars, a small lock), one gold button. */
.tc-lk { width: 100%; padding: 16px 16px 14px; border-radius: 20px; color: #fff; text-align: left;
  background: linear-gradient(180deg, #16215a 0%, #0f1842 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 40px -22px rgba(0, 0, 0, 0.8); }
.tc-lk-head { display: flex; align-items: center; gap: 12px; }
.tc-lk-head > span:last-child { display: grid; gap: 2px; min-width: 0; }
.tc-lk-head b { font: 800 1.08rem/1.2 var(--font-head); color: #fff; }
.tc-lk-head small { font-size: 0.86rem; line-height: 1.3; color: rgba(226, 232, 255, 0.72); }
.tc-lk-badge { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(243, 199, 90, 0.14); box-shadow: inset 0 0 0 1px rgba(243, 199, 90, 0.4); }
.tc-lk-badge .ic { width: 19px; height: 19px; color: #f3c75a; }
.tc-lk-lines { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.tc-lk-lines li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.tc-lk-lines li > b { font-size: 0.86rem; font-weight: 700; color: #fff; white-space: nowrap; }
.tc-lk-bars { display: grid; gap: 6px; min-width: 0; }
.tc-lk-bars i { display: block; height: 7px; width: var(--w, 70%); border-radius: 4px; background: rgba(226, 232, 255, 0.16); }
.tc-lk-ic .ic { width: 15px; height: 15px; color: rgba(243, 199, 90, 0.85); }
.tc-lk-more { margin: 8px 0 0; text-align: center; font-size: 0.82rem; font-weight: 700; color: rgba(226, 232, 255, 0.6); }
.tc-lk-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 14px; padding: 0 14px; border-radius: 999px;
  background: linear-gradient(180deg, #f7d77e 0%, #f3c75a 100%); color: #1a1530; font: 800 1rem/1.1 var(--font-head); text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(243, 199, 90, 0.7); }
.tc-lk-btn:active { transform: translateY(1px); }
/* Bud's notes on the rest, blurred in their own box, the card on top. */
.tc-lkwrap { position: relative; display: grid; width: 100%; min-height: 250px; border-radius: 20px; overflow: hidden;
  background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tc-lkpeek { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; filter: blur(6px); opacity: 0.7;
  pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.tc-lkpeek .tc-msg { max-width: none; }
.tc-lk.tc-lk-over { grid-area: 1 / 1; z-index: 1; align-self: center; justify-self: center; width: calc(100% - 24px); margin: 16px 0;
  background: linear-gradient(180deg, rgba(22, 33, 90, 0.96) 0%, rgba(15, 24, 66, 0.96) 100%); }

/* ---------- What Bud heard past the free minute, locked (owner, 13 Nov 2026; replaced by .tc-lk on 4 Dec 2026) ----------
   His real notes on the rest of the song, blurred, and on top what they add up to and the way to unlock them. */
.tc-locked { position: relative; border-radius: 22px; overflow: hidden; min-height: 260px; display: grid; }
.tc-locked-peek { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; filter: blur(7px) saturate(0.9); opacity: 0.75; pointer-events: none; user-select: none; }
.tc-locked-peek .tc-mav { visibility: hidden; }
.tc-locked-over {
  grid-area: 1 / 1; z-index: 1; align-self: center; justify-self: center; width: min(92%, 420px); margin: 18px 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 20px 16px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 0 2px var(--tk-ink), 0 18px 40px -18px rgba(17, 22, 64, 0.5);
}
.tc-locked-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--tk-sun); margin-bottom: 4px; }
.tc-locked-ic .ic { width: 22px; height: 22px; color: #111640; }
.tc-locked-over b { font: 800 1.2rem/1.2 var(--font-head); color: #111640; }
.tc-locked-over > small { color: #4a5178; font-size: 0.92rem; }
.tc-locked-over .btn { width: 100%; margin-top: 10px; }
.tc-locked-over .tc-locked-price { font-size: 0.8rem; font-weight: 700; }
/* Phones (owner's bar, 2 Dec 2026: nothing wraps or runs out at 360 wide): the button on one line, the offer clock in its pill. */
@media (max-width: 420px) {
  .tc-locked-over { width: min(96%, 420px); padding: 18px 14px 14px; }
  .tc-locked-over .btn { padding-inline: 14px; font-size: 1rem; white-space: nowrap; }
  .tc-locked-over .btn .ic { display: none; }
  .tc-locked-over .wl-line { max-width: 100%; font-size: 0.78rem; white-space: nowrap; }
}
html[data-theme="dark"] .tc-locked-over { background: rgba(18, 26, 56, 0.9); box-shadow: 0 0 0 1px #2a3560, 0 18px 40px -18px rgba(0, 0, 0, 0.8); }
html[data-theme="dark"] .tc-locked-over b { color: #fff; }
html[data-theme="dark"] .tc-locked-over > small { color: #a9b4d1; }
/* While singing: a small lock beside the counter once the free minute is over. */
.ot-lock { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; border-radius: 50%; background: var(--tk-sun, #ffd65a); vertical-align: middle; }
.ot-lock .ic { width: 13px; height: 13px; color: #111640; }
/* Bud stops typing for a moment in the middle of a long message. */
.tc-typing.is-paused .tc-msg.typing i { animation-play-state: paused; opacity: 0.35; }
/* A line to work on: the tip first, in plain words; the exact numbers fold away below it. */
.tc-tipline { margin: 0; font-size: 1rem; }
.tc-exact { margin: 2px 0 0; }
.tc-exact > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font: 700 0.85rem var(--font-head); color: #4a5178; }
.tc-exact > summary::-webkit-details-marker { display: none; }
.tc-exact > summary::after { content: '›'; transform: rotate(90deg); transition: transform 160ms ease; }
.tc-exact[open] > summary::after { transform: rotate(-90deg); }
.tc-exact .tc-facts { margin-top: 8px; }
html[data-theme="dark"] .tc-exact > summary { color: #a9b4d1; }

/* ---------- A video lesson in a report (owner, 13 Nov 2026): the real thumbnail, tap to play right there ---------- */
.vl-card { display: grid; gap: 10px; }
.vl-thumb { position: relative; display: block; width: 100%; max-width: 420px; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #000; }
.vl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 200ms ease; }
.vl-thumb:hover img { transform: scale(1.03); }
.vl-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.vl-play svg { width: 26px; height: 26px; fill: #111640; margin-left: 3px; }
.vl-frame { width: 100%; max-width: 420px; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.vl-meta { display: grid; gap: 2px; }
.vl-meta small { font: 800 0.7rem var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: #4a5178; }
.vl-meta b { font: 800 1rem/1.25 var(--font-head); }
.vl-meta span { font-size: 0.85rem; color: #4a5178; }
.at-lesson { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--white, #fff); box-shadow: 0 0 0 2px var(--line); }
.at-lesson > p { margin: 0; }
html[data-theme="dark"] .vl-meta small, html[data-theme="dark"] .vl-meta span { color: #a9b4d1; }
html[data-theme="dark"] .at-lesson { background: #151e3e; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .vl-thumb img { transition: none; } }

/* ---------- Replies at the end of the chat (owner, 13 Nov 2026): tap a question, Bud answers ---------- */
.tc-replies { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 6px 0 2px; animation: tc-in 340ms cubic-bezier(.2, .9, .3, 1.15) both; }
.tc-reply { border: 0; border-radius: 999px; padding: 10px 16px; min-height: 42px; cursor: pointer; font: 700 0.92rem/1.2 var(--font-head);
  background: var(--tk-wash, #e4f8fa); color: #0b5f68; box-shadow: inset 0 0 0 1.5px rgba(23, 182, 194, 0.55); transition: background 140ms ease, transform 140ms ease; }
.tc-reply:hover { background: #d2f3f6; }
.tc-reply:active { transform: scale(0.97); }
.tc-row.me { justify-content: flex-end; }
.tc-row.me .tc-msg { background: var(--tk-teal, #17b6c2); color: #fff; border-radius: 18px 18px 5px 18px; box-shadow: none; font-weight: 600; }
.tc-plan { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
html[data-theme="dark"] .tc-reply { background: rgba(57, 230, 238, 0.1); color: #8ff6ff; box-shadow: inset 0 0 0 1.5px rgba(57, 230, 238, 0.45); }
html[data-theme="dark"] .tc-reply:hover { background: rgba(57, 230, 238, 0.18); }
html[data-theme="dark"] .tc-row.me .tc-msg { background: #0b7f8a; color: #fff; }
@media (prefers-reduced-motion: reduce) { .tc-replies { animation: none; } .tc-reply { transition: none; } }
/* "Sing it again" among the replies: the one that acts, so it looks like a button. */
.tc-reply.is-again { display: inline-flex; align-items: center; gap: 6px; background: var(--tk-teal, #17b6c2); color: #fff; box-shadow: none; }
.tc-reply.is-again .ic { width: 16px; height: 16px; }
.tc-reply.is-again:hover { background: #0b7f8a; }
html[data-theme="dark"] .tc-reply.is-again { background: #39e6ee; color: #07101f; }

/* ---------- The verdict in words first (13 Nov 2026) ----------
   Below a pass the headline and what the user did lead; the score sits small under them, never hidden. The count
   beside a line's name is a plain fact, so it is not red. */
.tc-verdict b { font: 800 1.2rem/1.2 var(--font-head); }
.tc-meta { font-size: 0.8rem; color: #4a5178; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .tc-meta { color: #a9b4d1; }
/* On a computer the conversation gets about an eighth more room: the page, the chat and the bubbles together, so
   lines stay a comfortable length (about 70 characters). Phones and tablets keep their sizes. */
@media (min-width: 1000px) {
  .ot.tc { max-width: 700px; }
  .sc-shell.is-results .sc-stage:has(> .tc), body:not(.coach-busy) .sc-shell.sc-embedded.is-results .sc-main:has(.tc) { max-width: 700px; }
  .tc-msg { max-width: min(86%, 520px); }
  .tc-row.wide .tc-msg { width: min(86%, 520px); }
}
/* What changed since the take before: a small chip with how far each number moved. Better is teal; level or
   under is plain grey, never red. */
.tc-delta { flex: none; min-width: 64px; white-space: nowrap; text-align: center; padding: 2px 7px; border-radius: 8px; font: 800 0.78rem/1.5 var(--font-head); font-variant-numeric: tabular-nums; background: #eef1f6; color: #4a5178; }
.tc-delta[data-d="good"] { background: #dff7f3; color: #065a62; }
html[data-theme="dark"] .tc-delta { background: #1b2342; color: #b8c0e0; }
html[data-theme="dark"] .tc-delta[data-d="good"] { background: rgba(57, 230, 238, 0.14); color: #8ff6ff; }
/* The other result screens (the full report, the story, a song from its video): below a pass the score is a small
   line under the words. */
.tk-hero-text .tk-scoreline { font-size: 0.8rem; opacity: 0.85; font-variant-numeric: tabular-nums; }
.tk-hero-text .tk-stars { display: inline-flex; margin-top: 8px; }
.ot-scoreline { margin: 0; font-size: 0.85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- Bud's chat on sample takes (#/budlab, js/views/budlab.js): a page for reviewing the feedback ---------- */
.bl-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.bl-pick { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; font: 700 0.88rem/1.2 var(--font-head); text-decoration: none;
  color: var(--ink); background: var(--white, #fff); box-shadow: inset 0 0 0 1.5px var(--line); }
.bl-pick:hover { box-shadow: inset 0 0 0 1.5px var(--tk-teal, #17b6c2); }
.bl-pick.is-on { background: #17b6c2; color: #fff; box-shadow: none; }
/* On a phone the samples are one row to swipe along, so the chat starts near the top. */
@media (max-width: 700px) { .bl-picks { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 2px 16px 8px; scrollbar-width: none; } .bl-pick { flex: none; white-space: nowrap; } }
.bl-bar { display: flex; justify-content: flex-end; max-width: 700px; margin: 0 auto 12px; }
.bl-toggle { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 38px; padding: 6px 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 0.85rem/1.2 var(--font-head); color: var(--ink-soft); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.bl-toggle-k { color: var(--ink); font-weight: 700; flex: none; }
.bl-toggle-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-toggle-i { flex: none; transition: transform 0.15s ease; }
.bl-toggle[aria-expanded="true"] .bl-toggle-i { transform: rotate(180deg); }
.bl-panel { margin: 0 0 24px; padding: 16px 18px 4px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.bl-panel .eyebrow { margin: 0 0 4px; }
.bl-lede, .bl-look { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.92rem; max-width: 70ch; }
.bl-panel .bl-switch { margin: 0 0 14px; }
.bl-panel .bl-picks { margin-bottom: 16px; }
html[data-theme="dark"] .bl-toggle { color: rgba(233, 237, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
html[data-theme="dark"] .bl-toggle-k { color: #e9edff; }
html[data-theme="dark"] .bl-panel { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.bl-sample { margin: 0 0 40px; }
.bl-about { max-width: 700px; margin: 0 auto 14px; }
.bl-about h2 { margin: 0 0 4px; font: 800 1.15rem/1.2 var(--font-head); }
.bl-about p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.bl-sample .tc-top { display: none; }
html[data-theme="dark"] .bl-pick { background: rgba(255, 255, 255, 0.05); color: #e9edff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18); }
html[data-theme="dark"] .bl-pick.is-on { background: #39e6ee; color: #07101f; box-shadow: none; }
.bl-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -8px 0 22px; font-size: 0.9rem; color: var(--ink-soft); }
.bl-switch button { min-height: 36px; padding: 6px 12px; border: 0; border-radius: 999px; cursor: pointer; font: 700 0.85rem/1 var(--font-head); color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.bl-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white, #fff); box-shadow: none; }
html[data-theme="dark"] .bl-switch button { color: #e9edff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18); }
html[data-theme="dark"] .bl-switch button[aria-pressed="true"] { background: #e9edff; color: #07101f; }

/* ---------- Bud's messages as iMessage-style bubbles (owner, 13 Nov 2026) ----------
   Modelled on iMessage: the system font (San Francisco on Apple devices, Roboto on Android), 17px text, round 18px
   bubbles that hug their words, grey for Bud and the brand teal for the singer, a plain background, and the curled
   tail at the bottom corner of every bubble. Bud's picture sits by the last bubble of a run only.
   The tail is the classic two-piece one: a bubble-coloured corner (::before) trimmed by a background-coloured curve
   (::after). Both sit behind the bubble's content (z-index -1 inside the bubble's own stacking context), so they
   need the chat behind them to be one plain colour: --tc-bg. */
.tc-chat {
  --tc-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-head: var(--tc-font); --font-body: var(--tc-font); font-family: var(--tc-font);
  --tc-bg: #fff; --tc-bubble: #e9e9eb; --tc-bubble-ink: #000; --tc-inset: #fff; --tc-me-ink: #fff;
  /* The singer's replies: iMessage blue (owner, 13 Nov 2026). To go back to the Singbud teal, change "blue" to
     "teal" in --tc-me here and in the dark-mode line below. #/budlab has a switch to compare the two. */
  --tc-me-blue: #007aff; --tc-me-teal: #0b8f9b; --tc-me: var(--tc-me-blue);
  background: var(--tc-bg);
}
html[data-theme="dark"] .tc-chat { --tc-bg: #000; --tc-bubble: #262628; --tc-bubble-ink: #fff; --tc-inset: #1c1c1e; --tc-me-blue: #0a84ff; --tc-me: var(--tc-me-blue); background: var(--tc-bg); }
.budlab.is-teal .tc-chat, html[data-theme="dark"] .budlab.is-teal .tc-chat { --tc-me: var(--tc-me-teal); }
.tc-thread { gap: 12px; padding: 18px 16px 20px; -webkit-font-smoothing: antialiased; }
.tc-thread .tc-row, .tc-thread .tc-row:has(+ .tc-row) { margin-bottom: 0; gap: 8px; }
.tc-thread .tc-row.me { margin: 4px 0; }
.tc-thread .tc-msg { position: relative; z-index: 0; background: var(--tc-bubble); color: var(--tc-bubble-ink); border: 0; border-radius: 18px;
  padding: 7px 13px 8px; font-size: 17px; line-height: 22px; letter-spacing: -0.01em; max-width: min(75%, 460px); box-shadow: none; filter: none; }
.tc-thread .tc-row.wide .tc-msg { width: min(86%, 460px); max-width: none; padding: 11px 14px 12px; }
.tc-thread .tc-row.me .tc-msg { background: var(--tc-me); color: var(--tc-me-ink); font-weight: 400; }
html[data-theme="dark"] .tc-thread .tc-msg { background: var(--tc-bubble); color: var(--tc-bubble-ink); box-shadow: none; }
html[data-theme="dark"] .tc-thread .tc-row.me .tc-msg { background: var(--tc-me); color: var(--tc-me-ink); }
/* Bold inside a bubble is semibold, as in iMessage, not the heavy display weight. */
.tc-thread .tc-msg :is(b, strong) { font-weight: 600; letter-spacing: -0.01em; }
.tc-thread .tc-msg small, .tc-thread .tc-msg .tc-meta, .tc-thread .tc-msg .tc-exact > summary { letter-spacing: 0; }
/* The tail. */
.tc-thread .tc-row:not(.tc-typing) .tc-msg::before, .tc-thread .tc-row:not(.tc-typing) .tc-msg::after {
  content: ''; position: absolute; z-index: -1; bottom: 0; height: 20px; clip-path: none; transform: none; }
.tc-thread .tc-row:not(.tc-typing) .tc-msg::before { left: -7px; right: auto; width: 20px; background: var(--tc-bubble); border-bottom-right-radius: 16px 14px; }
.tc-thread .tc-row:not(.tc-typing) .tc-msg::after { left: -10px; width: 10px; background: var(--tc-bg); border-bottom-right-radius: 10px; }
.tc-thread .tc-row.me .tc-msg::before { left: auto; right: -7px; background: var(--tc-me); border-bottom-right-radius: 0; border-bottom-left-radius: 16px 14px; }
.tc-thread .tc-row.me .tc-msg::after { left: auto; right: -10px; border-bottom-right-radius: 0; border-bottom-left-radius: 10px; }
/* Bud's picture: by the last bubble of a run. */
.tc-thread .tc-row .tc-mav { visibility: hidden; width: 28px; height: 28px; border-width: 0; background: var(--tc-bubble); }
.tc-thread .tc-row:not(.me):not(:has(+ .tc-row:not(.me))) .tc-mav { visibility: visible; }
html[data-theme="dark"] .tc-thread .tc-mav { border-width: 0; }
/* Typing: the grey bubble with three soft dots, no tail. */
.tc-thread .tc-msg.typing { padding: 13px 15px; gap: 5px; }
.tc-thread .tc-msg.typing i { width: 8px; height: 8px; background: currentColor; opacity: 0.4; }
/* What sits inside a bubble (the pitch picture, the chips, the cards) is a plain panel one step off the bubble. */
.tc-thread .tc-picture, html[data-theme="dark"] .tc-thread .tc-picture { background: var(--tc-inset); }
.tc-thread .tc-lane, html[data-theme="dark"] .tc-thread .tc-lane { background: var(--tc-inset); border: 0; }
.tc-thread .tc-delta { background: var(--tc-inset); color: inherit; }
.tc-thread .tc-delta[data-d="good"] { background: #d7f5f2; color: #065a62; }
html[data-theme="dark"] .tc-thread .tc-delta { background: var(--tc-inset); color: #d1d1d6; }
html[data-theme="dark"] .tc-thread .tc-delta[data-d="good"] { background: rgba(57, 230, 238, 0.16); color: #8ff6ff; }
.tc-thread .tc-msg .tk-card { border-color: rgba(0, 0, 0, 0.12); }
html[data-theme="dark"] .tc-thread .tc-msg .tk-card { background: var(--tc-inset); border-color: rgba(255, 255, 255, 0.12); }
html[data-theme="dark"] .tc-thread .tc-msg :is(small, em), html[data-theme="dark"] .tc-thread .tc-meta, html[data-theme="dark"] .tc-thread .vl-meta span { color: #aeaeb2; }
.tc-thread .tc-msg :is(small, em), .tc-thread .tc-meta, .tc-thread .vl-meta span { color: #6c6c70; }
.tc-thread .tc-msg .tk-card-h small { color: #6a4b00; }
.tc-thread .tc-msg .tc-linehead span { color: #6c6c70; }
html[data-theme="dark"] .tc-thread .tc-msg .tc-linehead span { color: #aeaeb2; }
.tc-replies { padding-top: 8px; }
.tc-reply { font-family: var(--tc-font); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
/* The suggested replies are the singer's words too, so they take the reply colour (--tc-me): tinted outlines, and
   "Sing it again" filled. */
.tc-chat .tc-reply, html[data-theme="dark"] .tc-chat .tc-reply { color: var(--tc-me); background: color-mix(in srgb, var(--tc-me) 10%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc-me) 55%, transparent); }
.tc-chat .tc-reply:hover, html[data-theme="dark"] .tc-chat .tc-reply:hover { background: color-mix(in srgb, var(--tc-me) 18%, transparent); }
.tc-chat .tc-reply.is-again, html[data-theme="dark"] .tc-chat .tc-reply.is-again { background: var(--tc-me); color: #fff; box-shadow: none; }
.tc-chat .tc-reply.is-again:hover, html[data-theme="dark"] .tc-chat .tc-reply.is-again:hover { background: color-mix(in srgb, var(--tc-me) 85%, #000); }
html[data-theme="dark"] .tc-chat .tc-reply:not(.is-again) { color: color-mix(in srgb, var(--tc-me) 70%, #fff); }
@media (min-width: 1000px) {
  .tc-thread .tc-msg { max-width: min(75%, 520px); }
  .tc-thread .tc-row.wide .tc-msg { width: min(86%, 520px); }
}
@media (max-width: 420px) {
  .tc-thread { padding: 14px 12px 16px; }
  .tc-thread .tc-msg { max-width: calc(100% - 52px); }
  .tc-thread .tc-row.wide .tc-msg { width: calc(100% - 46px); }
  .tc-thread .tc-row.me .tc-msg { max-width: 78%; }
}

/* ---------- The chat's header and frame, as in iMessage (owner, 13 Nov 2026) ----------
   No teal bar and no heavy outline: a pale grey bar (near-black in dark mode) with Bud's picture and name centred
   over a hairline, and the whole chat framed by a hairline only. "Show all" sits on the right in the reply colour. */
.tc-chat { --tc-bar: #f6f6f6; --tc-bar-ink: #000; --tc-sub: #8e8e93; --tc-line: rgba(60, 60, 67, 0.18); --tc-avbg: #e9e9eb; }
html[data-theme="dark"] .tc-chat { --tc-bar: #1c1c1e; --tc-bar-ink: #fff; --tc-line: rgba(84, 84, 88, 0.65); --tc-avbg: #3a3a3c; }
.tc-chat, html[data-theme="dark"] .tc-chat { border: 1px solid var(--tc-line); box-shadow: none; border-radius: 22px; }
.tc-chat .tc-head, html[data-theme="dark"] .tc-chat .tc-head {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 64px 9px;
  background: var(--tc-bar); color: var(--tc-bar-ink); border-bottom: 1px solid var(--tc-line); }
.tc-chat .tc-av, html[data-theme="dark"] .tc-chat .tc-av { width: 44px; height: 44px; border: 0; background: var(--tc-avbg); }
.tc-chat .tc-av i, html[data-theme="dark"] .tc-chat .tc-av i { width: 11px; height: 11px; right: 0; bottom: 0; background: #34c759; border: 2px solid var(--tc-bar); }
.tc-chat .tc-who { flex: none; justify-items: center; text-align: center; line-height: 1.2; }
.tc-chat .tc-who b { font: 600 13px/1.2 var(--tc-font); letter-spacing: -0.01em; color: var(--tc-bar-ink); }
.tc-chat .tc-who small { font-size: 11px; color: var(--tc-sub); opacity: 1; }
.tc-chat .tc-all, html[data-theme="dark"] .tc-chat .tc-all { position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--tc-me); font: 400 15px var(--tc-font); text-decoration: none; }
/* The score circle inside a bubble: no fill of its own, a ring in the bubble's ink. */
.tc-chat .tc-score .tk-score, html[data-theme="dark"] .tc-chat .tc-score .tk-score { background: transparent; color: var(--tc-bubble-ink); border-color: var(--tc-bubble-ink); box-shadow: none; }
.tc-chat .tc-score .tk-score b { font-family: var(--tc-font); font-weight: 600; letter-spacing: -0.02em; }

/* ---------- The chat's header, take two (owner, 13 Nov 2026: the grey bar didn't work in either mode) ----------
   The app's header is a slim row on the chat's own background: Bud's small picture, his name and "Listened to your
   take" beside it, left-aligned, no bar and no dividing line, so the conversation starts right under it.
   #/budlab can show two others to compare (.budlab[data-headstyle]): centred with no bar, and no header at all.
   To make one of those the app's, move its rules out of the .budlab selector. */
.tc-chat .tc-head, html[data-theme="dark"] .tc-chat .tc-head {
  flex-direction: row; align-items: center; gap: 10px; padding: 14px 16px 2px; background: var(--tc-bg); border-bottom: 0; }
.tc-chat .tc-av, html[data-theme="dark"] .tc-chat .tc-av { width: 34px; height: 34px; }
.tc-chat .tc-av i, html[data-theme="dark"] .tc-chat .tc-av i { width: 10px; height: 10px; border-color: var(--tc-bg); }
.tc-chat .tc-who { flex: 1; justify-items: start; text-align: left; gap: 1px; }
.tc-chat .tc-who b { font-size: 15px; }
.tc-chat .tc-who small { font-size: 12px; }
.tc-chat .tc-all, html[data-theme="dark"] .tc-chat .tc-all { position: static; transform: none; flex: none; }
/* Centred, no bar. */
.budlab[data-headstyle="centre"] .tc-chat .tc-head { flex-direction: column; gap: 4px; padding: 16px 64px 4px; }
.budlab[data-headstyle="centre"] .tc-chat .tc-who { flex: none; justify-items: center; text-align: center; }
.budlab[data-headstyle="centre"] .tc-chat .tc-all { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
/* No header: Bud's picture by his bubbles says who is talking. "Show all" stays, on the right, while he types. */
.budlab[data-headstyle="none"] .tc-chat .tc-head { padding: 10px 16px 0; justify-content: flex-end; min-height: 0; }
.budlab[data-headstyle="none"] .tc-chat :is(.tc-av, .tc-who) { display: none; }
.budlab[data-headstyle="none"] .tc-chat .tc-all[hidden] { display: none; }
/* The score inside the circle: sized so three digits ("100") stay inside the ring. */
.tc-chat .tc-score .tk-score b { font-size: 1.3rem; }
/* The song's name in Bud's first message is bold (owner, 13 Nov 2026). */
.tc-thread .tc-msg b.tc-song { font-weight: 700; }

/* Light mode looked off (owner, 13 Nov 2026): the chat inherited the app's light 300 text, thin next to iMessage's
   regular 400, and a grey hairline barely showed against the pale page, so the edge looked smudgy. Regular text,
   and in light mode a soft shadow in place of the line; dark mode keeps its hairline. */
.tc-thread { font-weight: 400; }
.tc-chat { border-color: transparent; box-shadow: 0 1px 2px rgba(16, 32, 48, 0.05), 0 10px 32px rgba(16, 32, 48, 0.08); }
html[data-theme="dark"] .tc-chat { border-color: var(--tc-line); box-shadow: none; }

/* Wider on the web (owner, 13 Nov 2026): 700px left a lot of empty page on a laptop, and 880px was then too wide.
   The chat is up to 780px on wide screens, with bubbles to match. */
@media (min-width: 1000px) {
  .ot.tc { max-width: 780px; }
  .sc-shell.is-results .sc-stage:has(> .tc), body:not(.coach-busy) .sc-shell.sc-embedded.is-results .sc-main:has(.tc) { max-width: 780px; }
  .tc-thread .tc-msg { max-width: min(72%, 540px); }
  .tc-thread .tc-row.wide .tc-msg { width: min(86%, 580px); }
  .bl-bar, .bl-about { max-width: 780px; }
}

/* Dark mode on the take page looked off (owner, 13 Nov 2026): iPhone's pure black chat and warm grey bubbles sat
   like a hole in the app's navy page (#0a0f1e). The same iMessage shapes, in navy: the chat a step above the page,
   the bubbles a navy grey, the pictures inside them a step darker. */
html[data-theme="dark"] .tc-chat {
  --tc-bg: #0f1630; --tc-bubble: #222a48; --tc-inset: #161d38; --tc-avbg: #2a3354;
  --tc-line: rgba(255, 255, 255, 0.08); --tc-sub: #8f98b8;
  background: var(--tc-bg);
}
html[data-theme="dark"] .tc-thread .tc-msg .tk-card { border-color: rgba(255, 255, 255, 0.08); }

/* The top of the take page looked bad (owner, 13 Nov 2026): a huge song title, a label and an underlined back link
   stacked up above the chat, which has its own header. Now a quiet back link, a small label and a modest title,
   close together, so the chat leads. */
.sc-shell.is-results .sc-backbar { margin: 0 0 14px; font-size: 0.95rem; text-decoration: none; }
.sc-shell.is-results .sc-backbar span { text-decoration: none; }
.sc-shell.is-results .sc-backbar:hover span { text-decoration: underline; }
/* The owner compared four tops on #/budlab and picked this one, "Small title" (13 Nov 2026): a plain back link in
   the page's ink, a small label and a modest song title, close together above the chat. */
.sc-shell.is-results .sc-backbar { margin-bottom: 12px; font-weight: 400; }
html:not([data-theme="dark"]) .sc-shell.is-results .sc-backbar { color: var(--ink); }
.tc-top { display: grid; gap: 2px; margin: 0 0 4px; }
.tc-top .eyebrow { font-size: 0.72rem; letter-spacing: 0.08em; }
.tc-top .tc-title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem); line-height: 1.15; letter-spacing: -0.01em; }

/* ---------- #/budlab: four tops for the take page, to pick from (owner, 13 Nov 2026) ----------
   Back link only, one bar (back on the left, the song centred), back inside the chat's header, and the small
   title. The owner picked the small title, which the app now uses; the others stay here to compare. */
.bl-back, .bl-nav, .tc-back { display: none; }
.bl-back { margin: 0; font-size: 0.95rem; text-decoration: none; }
.budlab[data-topstyle="back"] .bl-back, .budlab[data-topstyle="title"] .bl-back { display: flex; }
.budlab[data-topstyle="nav"] .bl-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 36px; }
.bl-nav-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; font-size: 0.95rem; text-decoration: none; }
.bl-nav-back .ic { width: 16px; height: 16px; }
.bl-nav b { font: 600 17px/1.2 var(--tc-font, -apple-system, system-ui, sans-serif); letter-spacing: -0.01em; color: var(--ink); text-align: center; }
html[data-theme="dark"] .bl-nav b { color: #fff; }
.budlab[data-topstyle="inhead"] .tc-chat .tc-back { display: grid; place-items: center; flex: none; width: 30px; height: 34px; margin: 0 -4px 0 -6px; color: var(--tc-me); }
.tc-chat .tc-back .ic { width: 22px; height: 22px; stroke-width: 2.4; }
.budlab[data-topstyle="title"] .bl-sample .tc-top { position: static; width: auto; height: auto; margin: 0 0 4px; overflow: visible; clip: auto; white-space: normal; display: grid; gap: 2px; }
.budlab[data-topstyle="title"] .tc-top .eyebrow { font-size: 0.72rem; letter-spacing: 0.08em; }
.budlab[data-topstyle="title"] .tc-top .tc-title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem); line-height: 1.15; letter-spacing: -0.01em; }

/* Bud's header a bit bigger (owner, 13 Nov 2026): picture 34 → 42px, name 15 → 17px, "Your AI vocal coach" 12 → 14px. */
.tc-chat .tc-av, html[data-theme="dark"] .tc-chat .tc-av { width: 42px; height: 42px; }
.tc-chat .tc-av i, html[data-theme="dark"] .tc-chat .tc-av i { width: 11px; height: 11px; }
.tc-chat .tc-head, html[data-theme="dark"] .tc-chat .tc-head { gap: 12px; padding-top: 16px; }
.tc-chat .tc-who { gap: 2px; }
.tc-chat .tc-who b { font-size: 17px; }
.tc-chat .tc-who small { font-size: 14px; }

/* ---------- The playful look (.tc.is-playful), to compare on #/budlab first (owner, 13 Nov 2026) ----------
   Singbud's own kind of playful, not another app's: Bud's face changes with what he says, he sends two stickers,
   the score card and the drill card carry a little colour, and messages pop in. Everything still sits on the
   iMessage bubbles; there are no thick outlines or hard shadows. */

/* 1. Bud's face by each message that has one: waving hello, cheering good news, thinking over the lines, singing
   the drill. */
.tc.is-playful .tc-thread .tc-row.has-face .tc-mav { visibility: visible; width: 32px; height: 32px; background: var(--tc-avbg); }

/* 2. Stickers: Bud big, with no bubble, slightly turned, cut out in white like a real sticker. */
.tc-thread .tc-sticker-row { align-items: flex-end; }
.tc-thread .tc-sticker-row .tc-mav { visibility: hidden !important; }
.tc-sticker { position: relative; width: 150px; height: 150px; margin: -2px 0 2px; }
.tc-sticker-bud { position: absolute; inset: 14px; display: block; transform: rotate(-6deg);
  filter: drop-shadow(0 0 0.5px #fff) drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 6px 10px rgba(16, 32, 48, 0.18)); }
.tc-sticker[data-pose="sing"] .tc-sticker-bud { transform: rotate(5deg); }
.tc-sticker-bud svg { width: 100%; height: 100%; display: block; }
.tc-sticker-fx { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tc-sticker-fx .fx-star { fill: #ffc93c; }
.tc-sticker-fx .fx-note { fill: #17b6c2; stroke: #17b6c2; stroke-width: 3; stroke-linecap: round; }
.tc-sticker-fx path.fx-note { fill: none; }
.tc-sticker-fx .fx-dot { fill: #ff7a6b; }
.tc-sticker-tag { position: absolute; right: -18px; bottom: 16px; padding: 6px 12px; border-radius: 999px; transform: rotate(-5deg);
  background: #ffd84a; color: #111640; font: 800 15px/1 var(--font-head); white-space: nowrap; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(16, 32, 48, 0.16); }
html[data-theme="dark"] .tc-sticker-bud { filter: drop-shadow(0 0 0.5px #fff) drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45)); }
html[data-theme="dark"] .tc-sticker-fx .fx-note { fill: #39e6ee; stroke: #39e6ee; }
html[data-theme="dark"] .tc-sticker-fx path.fx-note { fill: none; }

/* 3. A little colour on the two cards that matter: the score (warm gold for a pass, soft teal below one) and the
   drill (its title on a teal-to-sun band). The tail takes the same colour, since it reads --tc-bubble. */
.tc.is-playful .tc-row.tc-tint-pass { --tc-bubble: #fcefc2; }
.tc.is-playful .tc-row.tc-tint-mid { --tc-bubble: #daf1f3; }
html[data-theme="dark"] .tc.is-playful .tc-row.tc-tint-pass { --tc-bubble: #3a3524; }
html[data-theme="dark"] .tc.is-playful .tc-row.tc-tint-mid { --tc-bubble: #18394a; }
.tc.is-playful .tc-drillrow .tk-card-h { background: linear-gradient(120deg, #c9f0f2 0%, #e9f6e4 55%, #ffe9a8 100%); padding: 12px 14px; border-bottom: 0; }
.tc.is-playful .tc-drillrow .tk-card-h small { color: #0b6b73; }
.tc.is-playful .tc-drillrow .tk-card-h b { color: #111640; }
html[data-theme="dark"] .tc.is-playful .tc-drillrow .tk-card-h { background: linear-gradient(120deg, #1d4d5c 0%, #27434a 55%, #4a4128 100%); }
html[data-theme="dark"] .tc.is-playful .tc-drillrow .tk-card-h small { color: #8ff6ff; }
html[data-theme="dark"] .tc.is-playful .tc-drillrow .tk-card-h b { color: #fff; }

/* 4. Motion, only for people who haven't asked their device for less: bubbles pop in with a little bounce, Bud
   hops as he speaks, stickers land with a twist, the ticks draw themselves in. The score counting up is in
   js/take-chat.js. */
@media (prefers-reduced-motion: no-preference) {
  .tc.is-playful .tc-row.is-in:not(.tc-typing) { animation: tc-pop 460ms cubic-bezier(.34, 1.56, .64, 1) both; transform-origin: left bottom; }
  .tc.is-playful .tc-row.me.is-in { transform-origin: right bottom; }
  .tc.is-playful .tc-row.has-face.is-in .tc-mav { animation: tc-hop 560ms cubic-bezier(.34, 1.56, .64, 1) 120ms both; }
  .tc.is-playful .tc-sticker-row.is-in { animation: none; }
  .tc.is-playful .tc-sticker-row.is-in .tc-sticker-bud { animation: tc-stick 620ms cubic-bezier(.34, 1.56, .64, 1) both; }
  .tc.is-playful .tc-sticker-row.is-in .tc-sticker-fx > * { transform-box: fill-box; transform-origin: center; animation: tc-twinkle 900ms ease-out 280ms both; }
  .tc.is-playful .tc-sticker-row.is-in .tc-sticker-tag { animation: tc-tag 420ms cubic-bezier(.34, 1.56, .64, 1) 420ms both; }
  .tc.is-playful .tc-row.is-in .tc-list.good .ic path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tc-draw 380ms ease-out forwards; animation-delay: calc(380ms + var(--i, 0) * 180ms); }
}
@keyframes tc-pop { from { opacity: 0; transform: translateY(10px) scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes tc-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-6px) rotate(-6deg); } 100% { transform: none; } }
@keyframes tc-stick { from { opacity: 0; transform: scale(0.3) rotate(-24deg); } }
@keyframes tc-twinkle { 0% { opacity: 0; transform: scale(0.2); } 60% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }
@keyframes tc-tag { from { opacity: 0; transform: scale(0.4) rotate(-14deg); } to { opacity: 1; transform: rotate(-5deg); } }
@keyframes tc-draw { to { stroke-dashoffset: 0; } }

/* The singer's picture by their replies (owner, 13 Nov 2026): their Google picture, or their initials on their
   colour, as in the menu. Same size as Bud's, at the foot of the bubble, past the tail. */
.tc-thread .tc-row.me { align-items: flex-end; }
.tc-thread .tc-meav { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-left: 2px; border-radius: 50%; overflow: hidden;
  background: var(--av, #17b6c2); color: #fff; font: 700 12px/1 var(--tc-font); letter-spacing: 0; }
.tc-thread .tc-meav img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* "‹ Songs" lines up with the title and the chat's left edge (owner, 13 Nov 2026): the link's 4px padding and the
   icon's own 6px inset had pushed the chevron 10px in. */
.sc-shell.is-results .sc-backbar { margin-left: -10px; }

/* "Focus on this next" on the drill card's yellow band was hard to read in dark mode (owner, 13 Nov 2026): the dark
   theme's grey for small text in bubbles won over the label's brown. The band stays yellow in both themes, so
   its label stays dark brown in both, a touch bolder. */
.tc-thread .tc-msg .tk-card-h small, html[data-theme="dark"] .tc-thread .tc-msg .tk-card-h small { color: #5a3f00; font-weight: 800; }
html[data-theme="dark"] .tc.is-playful .tc-drillrow .tk-card-h small { color: #8ff6ff; }

/* ---------- The short version of the chat (.tc.is-brief), to compare on #/budlab first (owner, 13 Nov 2026) ----------
   "It just looks like a lot of text": one idea per bubble, the notes as a big number and a row of dots, each line as
   one row with a tag, the take as a voice note, the measurements a tap away. */
.tc-thread .tc-stat { margin: 2px 0 8px; font: 700 26px/1.15 var(--tc-font); letter-spacing: -0.02em; }
.tc-dots { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.tc-dots i { width: 13px; height: 13px; border-radius: 50%; background: color-mix(in srgb, var(--tc-bubble-ink) 16%, transparent); }
.tc-dots i.on { background: #1fb58f; }
.tc-bar { height: 12px; margin: 0 0 10px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--tc-bubble-ink) 14%, transparent); }
.tc-bar i { display: block; height: 100%; border-radius: inherit; background: #1fb58f; }
.tc-thread .tc-best { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.tc-thread .tc-best .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #f2b01e; }
.tc-thread .tc-bline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; }
.tc-thread .tc-bline b { font-weight: 600; }
/* The best part's own voice notes (26 Nov 2026): a little room under the praise when it names the part. */
.tc-thread .tc-bestat { margin-top: 10px; }
.tc-btags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tc-btag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 999px; font: 600 13px/1.2 var(--tc-font);
  background: #ffe3dc; color: #8a2a12; }
button.tc-btag { border: 0; min-height: 30px; padding: 5px 11px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.tc-btag[aria-expanded="true"] { box-shadow: inset 0 0 0 2px currentColor; }
button.tc-btag:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.tc-thread .tc-bmean { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.tc-btag .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.tc-btag[data-m="late"], .tc-btag[data-m="ahead"], .tc-btag[data-m="behind"] { background: #e3ecff; color: #1f3f8f; }
.tc-btag[data-m="quiet"], .tc-btag[data-m="fade"] { background: #ececf1; color: #45455a; }
.tc-thread .tc-bcount { margin-left: auto; font-size: 14px; color: #6c6c70; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .tc-btag { background: rgba(255, 122, 107, 0.18); color: #ffb4a8; }
html[data-theme="dark"] .tc-btag:is([data-m="late"], [data-m="ahead"], [data-m="behind"]) { background: rgba(120, 160, 255, 0.18); color: #b9ccff; }
html[data-theme="dark"] .tc-btag:is([data-m="quiet"], [data-m="fade"]) { background: rgba(255, 255, 255, 0.1); color: #d1d1d6; }
html[data-theme="dark"] .tc-thread .tc-bcount { color: #aeaeb2; }
/* The take as a voice note: a round play button, a waveform (green where the notes landed), the length. */
.tc-voice { box-sizing: border-box; min-width: 0; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 340px; margin: 10px 0 2px; padding: 6px 12px 6px 6px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--tc-inset); color: inherit; font: inherit; text-align: left; }
.tc-voice-play { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tc-me); color: #fff; }
.tc-voice-play .ic { width: 16px; height: 16px; }
.tc-voice-wave { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 28px; min-width: 0; overflow: hidden; }
.tc-voice-wave i { flex: 0 1 3px; min-width: 1px; width: 3px; border-radius: 2px; background: color-mix(in srgb, var(--tc-bubble-ink) 35%, transparent); }
.tc-voice-wave i.on { background: #1fb58f; }
.tc-voice-len { flex: none; font-size: 13px; color: #6c6c70; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .tc-voice-len { color: #aeaeb2; }
.tc-voice:focus-visible { outline: 3px solid var(--tc-me); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .tc-voice.is-on .tc-voice-wave i { animation: tc-wave 700ms ease-in-out infinite alternate; animation-delay: calc(var(--k, 0) * 40ms); }
  .tc.is-playful .tc-row.is-in .tc-dots i { animation: tc-dot 320ms cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(300ms + var(--i) * 35ms); }
}
.tc-voice-wave i:nth-child(odd) { --k: 1; } .tc-voice-wave i:nth-child(3n) { --k: 3; } .tc-voice-wave i:nth-child(4n) { --k: 5; }
@keyframes tc-wave { to { transform: scaleY(0.45); } }
@keyframes tc-dot { from { transform: scale(0); } }

/* You vs the original (owner, 13 Nov 2026: "always let him hear himself vs the original line"): two voice notes,
   one above the other, each with its name; yours in the reply colour, the original in teal with a plain waveform. */
.tc-voices { display: grid; gap: 6px; margin: 10px 0 2px; max-width: 360px; }
/* The floating mixer (26 Nov 2026): while a line plays over the song, right above the corner video (stage.css
   .is-peek .sc-ytdock), the same width: your voice against the song on one slider. */
.tc-mixer { position: fixed; z-index: 61; right: 14px; width: min(230px, 56vw); box-sizing: border-box;
  bottom: calc(var(--tab-h, 64px) + var(--safe-b, 0px) + 14px + min(230px, 56vw) * 0.5625 + 8px);
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px;
  background: #fff; color: #1c1c1e; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.tc-mixer.is-in { opacity: 1; transform: none; }
.tc-mixer-end { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; flex: none; }
.tc-mixer-end .ic { width: 16px; height: 16px; }
.tc-mixer input[type="range"] { flex: 1; min-width: 0; height: 28px; margin: 0; accent-color: var(--tc-me, #2a76ff); }
html[data-theme="dark"] .tc-mixer, html.look-night .tc-mixer { background: #13265a; color: #fff; }
@media (min-width: 960px) { .tc-mixer { right: 24px; width: 340px; bottom: calc(20px + 340px * 0.5625 + 8px); } }
@media (prefers-reduced-motion: reduce) { .tc-mixer { transition: none; } }
.tc-voices .tc-voice { margin: 0; max-width: none; }
.tc-voice-who { flex: none; width: 58px; font: 600 13px/1 var(--tc-font); }
.tc-voice[data-who="orig"] .tc-voice-play { background: #0b8f9b; }
html[data-theme="dark"] .tc-voice[data-who="orig"] .tc-voice-play { background: #17b6c2; color: #07101f; }

/* The playful drill band (owner, 13 Nov 2026: "dont like the header color"): the teal-to-sun fade went muddy olive
   in dark mode. One clean teal instead, in both themes. */
.tc.is-playful .tc-drillrow .tk-card-h { background: #d3f1f4; }
html[data-theme="dark"] .tc.is-playful .tc-drillrow .tk-card-h { background: #154a58; }
/* The free note right under Sing it, as part of the button group, so a phone shows it without scrolling
   (owner, 13 Nov 2026: below the fold no one sees it). Slim, so Sing it stays the one big thing. */
.ot-actions > .ot-freebar { width: 100%; box-sizing: border-box; margin: 2px 0 0; padding: 9px 12px; gap: 10px; border-radius: 14px; }
.ot-actions > .ot-freebar .ot-freebar-ic { width: 28px; height: 28px; }
.ot-actions > .ot-freebar .ot-freebar-ic .ic { width: 15px; height: 15px; }
.ot-actions > .ot-freebar .ot-freebar-text b { font-size: 0.9rem; }
.ot-actions > .ot-freebar .ot-freebar-text small { font-size: 0.8rem; }
/* On a phone the song page is video, title, which video, the facts, then Sing it: no big gap before the button,
   so the free note under it is still on the first screen. */
@media (max-width: 999px) {
  .ot-page.is-yt > .ot-actions { margin-top: 0; padding-top: 4px; }
  .ot-page.is-yt > .ot-chips { margin-top: 2px; }
}
/* The free note comes straight after the button, before the hint and the other links. */
.ot-actions > .ot-freebar { order: 1; }
.ot-actions > .ot-hint, .ot-actions > .ot-other, .ot-actions > [data-bandretry], .ot-actions > .ot-singer-wrap { order: 2; }
/* The banner says plainly that it's the upgrade (owner, 13 Nov 2026): a question, then an Upgrade pill. */
.ot-freebar-cta { flex: none; padding: 7px 14px; border-radius: 999px; background: #111640; color: #fff; font: 800 0.85rem/1 var(--font-head); }
html[data-theme="dark"] .ot-freebar-cta { background: #ffd65a; color: #111640; }

/* ---------- The practice how-to sheet (14 Nov 2026): video first, then four tip cards; one scroll, buttons always showing ---------- */
.sheet.sheet-how { max-width: 680px; padding: 0; display: flex; flex-direction: column; overflow: hidden; max-height: min(92svh, 880px); }
.sheet-how::before { flex: none; margin-top: 10px !important; margin-bottom: 0 !important; }
.sheet-how .sheet-title { flex: none; margin: 0; padding: 18px 24px 4px; font-size: 1.45rem; line-height: 1.2; }
.sheet-how .sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 24px 20px; color: var(--ink); }
.sheet-how .sheet-actions { flex: none; margin: 0; padding: 14px 24px calc(14px + var(--safe-b, 0px)); border-top: 1px solid var(--line); background: var(--white); }
.how-lede { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.45; }
.how-cat { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 99px; background: var(--teal-wash); color: var(--teal-text); font: 700 0.74rem var(--font-head); letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; }
.how-video { margin: 0 0 18px; }
.how-video .vl-card { gap: 8px; }
.how-video .vl-thumb, .how-video .vl-frame { max-width: none; width: 100%; border-radius: 16px; }
.how-video .vl-thumb img { object-fit: cover; }
.how-video .vl-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: #F4594B; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.how-video .vl-play svg { fill: #fff; width: 30px; height: 30px; }
.how-video .vl-meta { gap: 2px 12px; }
.how-video .vl-meta small { grid-column: 1 / -1; color: var(--teal-text); }
.how-video .vl-meta b { font-size: 1.02rem; }
.how-video .vl-meta span { color: var(--ink-soft); font-size: 0.82rem; }
.how-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.how-tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--teal-wash); }
.how-tip-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--white); color: var(--teal-text); }
.how-tip-ic .ic { width: 18px; height: 18px; }
.how-tip .how-h { margin: 0 0 3px; font-size: 0.9rem; }
.how-tip .how-p { margin: 0; font-size: 0.93rem; line-height: 1.45; color: var(--ink); }
.how-tip-watch { background: color-mix(in srgb, #F4594B 9%, var(--white)); }
/* "Goes well with" (practice.js, 18 Nov 2026): related exercises as chips under the tips. */
.how-rel { margin: 16px 0 0; }
.how-rel .how-h { margin: 0 0 8px; font-size: 0.9rem; }
.how-rel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.how-rel-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px 6px 10px; border: 0; border-radius: 999px; font: 600 0.92rem var(--font-body, inherit); color: var(--teal-text); background: var(--teal-wash); cursor: pointer; }
.how-rel-chip .ic { width: 18px; height: 18px; }
html[data-theme="dark"] .how-rel-chip { background: rgba(120, 200, 220, 0.14); color: #bfefff; }
/* "For you" and "Good to know" on the practice page. */
.px-foryou { background: var(--teal-wash); }
.px-foryou::after { display: none !important; }
.px-foryou .px-foryou-k { font: 700 0.74rem var(--font-head); letter-spacing: 0.05em; text-transform: uppercase; color: var(--teal-text); }
.px-foryou .btn { flex: none; }
.px-know { margin: 28px 0 8px; }
.px-know-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.px-know-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--white); color: var(--ink); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); }
.px-know-row span { flex: 1; display: grid; gap: 2px; }
.px-know-row b { font-family: var(--font-head); font-size: 1rem; }
.px-know-row small { color: var(--ink-soft); font-size: 0.88rem; }
.px-know-row .ic { flex: none; width: 18px; height: 18px; color: var(--ink-soft); }
.know-points { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 10px; font-size: 1rem; line-height: 1.5; }
html[data-theme="dark"] .px-know-row { background: rgba(255, 255, 255, 0.06); color: var(--d-ink, #eef2ff); }
html[data-theme="dark"] .px-foryou { background: rgba(120, 200, 220, 0.12); }
.how-tip-tune { grid-column: 1 / -1; background: color-mix(in srgb, #f2b01e 12%, var(--white)); }
.how-tip-tune .how-tip-ic { color: #a86a00; }
html[data-theme="dark"] .how-tip-tune { background: rgba(242, 176, 30, 0.12); }
html[data-theme="dark"] .how-tip-tune .how-tip-ic { background: rgba(242, 176, 30, 0.2); color: #ffd27a; }
.how-tip-watch .how-tip-ic { color: #c2412f; }
@media (min-width: 560px) {
  .how-tips { grid-template-columns: 1fr 1fr; }
  .how-video .vl-meta { grid-template-columns: 1fr auto; align-items: baseline; }
  .how-video .vl-meta span { text-align: right; }
}
@media (min-width: 760px) {
  .sheet.sheet-how { padding: 0; }
  .sheet-how .sheet-title { padding: 26px 28px 4px; }
  .sheet-how .sheet-body { padding: 0 28px 22px; }
  .sheet-how .sheet-actions { padding: 16px 28px; }
}
@media (max-width: 759px) { .sheet.sheet-how { max-height: 94svh; } }

/* ---------- The picture on each practice card (13 Nov 2026): Bud and the shape of what you'll sing (js/practice-art.js) ---------- */
.px-card { overflow: hidden; }
.px-art { display: block; padding: 0; border: 0; border-radius: 0; cursor: pointer; font: inherit; color: inherit; text-align: inherit; margin: -14px -14px 0; aspect-ratio: 400 / 140; max-height: 150px; width: calc(100% + 28px); background: var(--art-bg); border-bottom: 1px solid var(--line); }
.px-art-svg { display: block; width: 100%; height: 100%; transition: transform 300ms cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) { .px-art:hover .px-art-svg { transform: scale(1.03); } }
.px-art:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.px-art .pa-staff { stroke: var(--art-fg); stroke-width: 1; opacity: 0.14; }
.px-art .pa-bar { fill: var(--art-fg); }
.px-art .pa-ghost { fill: none; stroke: var(--art-fg); stroke-width: 2.5; }
.px-art .pa-odd { fill: #F4594B; }
.px-art .pa-line { fill: none; stroke: var(--art-fg); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.px-art .pa-air { fill: none; stroke: var(--art-fg); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 11; opacity: 0.75; }
.is-locked .px-art-svg { opacity: 0.55; filter: saturate(0.6); }
.px-art-warmup  { --art-bg: #fff3d4; --art-fg: #b7791f; }
.px-art-tune    { --art-bg: #dff6f7; --art-fg: #0a7580; }
.px-art-steady  { --art-bg: #ece8ff; --art-fg: #5b4bc4; }
.px-art-range   { --art-bg: #ffe6e1; --art-fg: #c2412f; }
.px-art-melody  { --art-bg: #e2f5e8; --art-fg: #23824a; }
.px-art-harmony { --art-bg: #e3edff; --art-fg: #2f5fc4; }
.px-art-ear     { --art-bg: #fdebdc; --art-fg: #b45a1c; }
.px-art-quiet   { --art-bg: #e6f2ef; --art-fg: #3b7a6e; }
.px-art-rhythm  { --art-bg: #fbe6f0; --art-fg: #b23a72; }
html[data-theme="dark"] .px-art { border-bottom-color: transparent; }
html[data-theme="dark"] .px-art-warmup  { --art-bg: #2b2616; --art-fg: #f5c35b; }
html[data-theme="dark"] .px-art-tune    { --art-bg: #0f2a33; --art-fg: #39e6ee; }
html[data-theme="dark"] .px-art-steady  { --art-bg: #1f1b3d; --art-fg: #a99cff; }
html[data-theme="dark"] .px-art-range   { --art-bg: #321a1d; --art-fg: #ff8a78; }
html[data-theme="dark"] .px-art-melody  { --art-bg: #13291e; --art-fg: #5fd38c; }
html[data-theme="dark"] .px-art-harmony { --art-bg: #15213f; --art-fg: #7fa6ff; }
html[data-theme="dark"] .px-art-ear     { --art-bg: #2e1f14; --art-fg: #ffa76a; }
html[data-theme="dark"] .px-art-quiet   { --art-bg: #13282a; --art-fg: #8fd3c4; }
html[data-theme="dark"] .px-art-rhythm  { --art-bg: #2c1424; --art-fg: #ff8fc0; }

/* Looks on trial for the card pictures (14 Nov 2026); .px-art--soft is the first version above. */
.px-art--bold { border-bottom: 2.5px solid #111640 !important; }
.px-art--bold .pa-bar, .px-art--bold .pa-odd { stroke: #111640; stroke-width: 3; }
.px-art--bold .pa-bar { fill: #fff; }
.px-art--bold .pa-ghost { stroke: #111640; stroke-width: 3; fill: rgba(255, 255, 255, 0.55); }
.px-art--bold .pa-line { stroke: #111640; stroke-width: 8; }
.px-art--bold .pa-air { stroke: #111640; opacity: 1; stroke-width: 6; }
.px-art--bold.px-art-warmup  { --art-bg: #ffe37a; }
.px-art--bold.px-art-tune    { --art-bg: #8fe3ea; }
.px-art--bold.px-art-steady  { --art-bg: #c9bcff; }
.px-art--bold.px-art-range   { --art-bg: #ffb3a6; }
.px-art--bold.px-art-melody  { --art-bg: #a9e8b9; }
.px-art--bold.px-art-harmony { --art-bg: #a9c6ff; }
.px-art--bold.px-art-ear     { --art-bg: #ffc89a; }
.px-art--bold.px-art-quiet   { --art-bg: #b9e3d8; }
.px-art--bold.px-art-rhythm  { --art-bg: #ffb8d8; }

.px-art--studio { background: radial-gradient(120% 140% at 85% 0%, #1d2a5e 0%, #0c1230 60%) !important; border-bottom-color: transparent !important; }
.px-art--studio .pa-staff { stroke: #fff; opacity: 0.07; }
.px-art--studio .pa-trace { fill: none; stroke: var(--art-neon); stroke-width: 2; opacity: 0.55; stroke-linejoin: round; filter: drop-shadow(0 0 4px var(--art-neon)); }
.px-art--studio .pa-bar { fill: var(--art-neon); filter: drop-shadow(0 0 6px var(--art-neon)); }
.px-art--studio .pa-odd { fill: #ff7a66; filter: drop-shadow(0 0 6px #ff7a66); }
.px-art--studio .pa-ghost { stroke: var(--art-neon); fill: none; stroke-width: 2; }
.px-art--studio .pa-line, .px-art--studio .pa-air { stroke: var(--art-neon); filter: drop-shadow(0 0 5px var(--art-neon)); opacity: 1; }
.px-art--studio.px-art-warmup  { --art-neon: #f5c35b; }
.px-art--studio.px-art-tune    { --art-neon: #39e6ee; }
.px-art--studio.px-art-steady  { --art-neon: #a99cff; }
.px-art--studio.px-art-range   { --art-neon: #ff8a78; }
.px-art--studio.px-art-melody  { --art-neon: #5fd38c; }
.px-art--studio.px-art-harmony { --art-neon: #7fa6ff; }
.px-art--studio.px-art-ear     { --art-neon: #ffa76a; }
.px-art--studio.px-art-quiet   { --art-neon: #8fd3c4; }
.px-art--studio.px-art-rhythm  { --art-neon: #ff8fc0; }

.px-art--pop { border-bottom-color: transparent !important; }
.px-art--pop .pa-bar { fill: #fff; }
.px-art--pop .pa-odd { fill: #ffe066; }
.px-art--pop .pa-ghost { stroke: #fff; stroke-width: 3; fill: none; }
.px-art--pop .pa-line, .px-art--pop .pa-air { stroke: #fff; opacity: 1; }
.px-art--pop.px-art-warmup  { background: linear-gradient(135deg, #ffb547, #ff7a59) !important; }
.px-art--pop.px-art-tune    { background: linear-gradient(135deg, #12c2d0, #1a7fd6) !important; }
.px-art--pop.px-art-steady  { background: linear-gradient(135deg, #8b6cff, #5b3fd6) !important; }
.px-art--pop.px-art-range   { background: linear-gradient(135deg, #ff7a8a, #e0433f) !important; }
.px-art--pop.px-art-melody  { background: linear-gradient(135deg, #3ccf7f, #129a8a) !important; }
.px-art--pop.px-art-harmony { background: linear-gradient(135deg, #5b8cff, #3f4fd6) !important; }
.px-art--pop.px-art-ear     { background: linear-gradient(135deg, #ff9a5a, #e05a8a) !important; }
.px-art--pop.px-art-quiet   { background: linear-gradient(135deg, #6fcfb8, #3b8fa8) !important; }
.px-art--pop.px-art-rhythm  { background: linear-gradient(135deg, #ff7fb6, #a24ad8) !important; }

/* ---------- Practice exercise screens (14 Nov 2026) ---------- */
/* Practice: the step's own kicker ("Warm up · 2 of 5") says where you are, so the bar needs no label. */
.session-shell.is-practice .ob-seg-label { display: none !important; }
.session-shell.is-practice .ob-stages { gap: 4px; }
/* The finish screen: the other levels as small links under the one main button. */
.finish-alt { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin: 16px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (min-width: 760px) { .finish-alt { justify-content: flex-start; } }
.finish-alt .btn-link { font-size: 0.95rem; }
/* The ear quiz inside an exercise: a rule for the voice check's ".ear" summary (theme.css) made it a narrow,
   left-aligned grid here. Centred again, with answer buttons that fill the width. */
.ex-body .ear { display: block; max-width: none; margin: 0; text-align: center; }
.ex-body .ear-btns { width: 100%; }
@media (min-width: 760px) { .ex-body .ear-btns { max-width: 560px; margin: 0 auto; } .ex-body .ear-btn { min-height: 92px; } }
/* A one-step exercise: the side panel's list would repeat its title, so it shows only the title. */
.session-shell.is-practice .side-steps:has(> li:only-child) { display: none; }
/* Practice library on phones: the two shortcuts sit side by side as small tiles, so the exercises show sooner. */
@media (max-width: 559px) {
  .px-heroes { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
  .px-heroes .px-hero { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .px-heroes .px-hero::after { display: none; }
  .px-heroes .px-hero-text b { font-size: 1rem; line-height: 1.25; }
  .px-heroes .px-hero-text small { display: none; }
  .px-heroes .due-icon { width: 34px; height: 34px; }
}

/* Feedback pass (owner, 14 Nov 2026: "make sure each feedback is clear"): the notes under the big number that say
   how to read it, and a ring for a note that was too quiet to hear (not a miss, not a hit). */
.tc-thread .tc-statnote { margin: -2px 0 8px; font-size: 15px; line-height: 20px; }
.tc-dots i.q { background: transparent; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc-bubble-ink) 30%, transparent); }
/* Phones: "Play it again" joins Stop · Start over · Skip on singing steps, and four controls ran off both edges.
   It takes its own full-width line above the other three. */
@media (max-width: 759px) {
  .task-actions:has(.run-btns:not([hidden])):has(> [data-act="replay"]:not([hidden])) { flex-wrap: wrap; row-gap: 8px; }
  .task-actions:has(.run-btns:not([hidden])) > [data-act="replay"]:not([hidden]) { flex: 1 0 100%; order: -1; min-height: 44px; }
}

/* A drill run over the chat (js/drill-sheet.js, 16 Nov 2026): full screen above the tabs and below sheets (60), the chat kept still
   underneath until it closes. */
.drill-layer { position: fixed; inset: 0; z-index: 55; overflow-y: auto; overscroll-behavior: contain; background: var(--mint, #f1fbfd); }
body.has-drill { overflow: hidden; }
html.look-night .drill-layer { background: #09132b; }

/* Home: the quiet practice link under today's session (home.js quietLink, 18 Nov 2026). A quiet text row, not a card. */
.home-quiet { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 10px 4px; color: var(--teal-text); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.home-quiet span { flex: 1; }
.home-quiet .ic { flex: none; width: 20px; height: 20px; }
html[data-theme="dark"] .home-quiet { color: #8fe3ef; }
html.look-night .home-quiet { margin: 8px 2px 0; color: #8fe3ef; }
/* Today's session and the quiet link as one card (owner, 21 Nov 2026): the session on top, the quiet link its footer. */
.home-today { margin-top: 14px; padding: 0; overflow: hidden; }
.home-today > .home-session { margin: 0; border-radius: 0; }
.home-quiet.home-quiet--in { margin: 0; padding: 12px 18px 13px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.home-quiet--in:hover { background: rgba(0, 0, 0, 0.03); }
html[data-theme="dark"] .home-quiet--in { border-top-color: rgba(255, 255, 255, 0.09); }
html[data-theme="dark"] .home-quiet--in:hover { background: rgba(255, 255, 255, 0.04); }
html.look-night .home-quiet.home-quiet--in { margin: 0; color: #8fe3ef; }

/* "How did you find Singbud?" on the first daily session's finish screen (session.js foundCard). */
.found-card { margin-top: 18px; }
.found-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.found-chip { min-height: 38px; padding: 7px 14px; border: 1.5px solid var(--line, rgba(0, 0, 0, 0.12)); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 0.9rem var(--font-body, inherit); cursor: pointer; }
.found-chip:hover { border-color: var(--teal); }
.found-thanks { display: flex; align-items: center; gap: 8px; margin: 0; }
.found-thanks .ic { width: 18px; height: 18px; color: var(--teal-text); }
html[data-theme="dark"] .found-chip { background: rgba(255, 255, 255, 0.06); color: #eef2ff; border-color: rgba(255, 255, 255, 0.16); }

/* Mic explainer before the system prompt (mic-ask.js, 19 Nov 2026) */
.sheet-mic .sheet-title, .sheet-mic .sheet-body { text-align: center; }
.sheet-mic .mic-ask-next { margin-top: 6px; font-size: 0.9em; opacity: 0.75; }
.sheet-mic .sheet-actions.sheet-actions { justify-content: center; }

/* What to listen on (phones-guide.js, 19 Nov 2026): three setups rated on hearing only you and timing */
.sheet-phones .hg-lede { margin: 0 0 12px; color: var(--ink-soft); }
.hg-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hg-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; box-shadow: 0 0 0 1.5px var(--line); }
.hg-row.is-mine { box-shadow: 0 0 0 2.5px var(--teal, #17b6c2); }
.hg-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(23, 182, 194, 0.14); color: var(--teal, #17b6c2); }
.hg-ic .ic { width: 20px; height: 20px; }
.hg-main { min-width: 0; flex: 1; }
.hg-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; }
.hg-yours { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--teal, #17b6c2); color: #fff; }
.hg-meters { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 4px; }
.hg-meter { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.hg-dots { display: inline-flex; gap: 3px; }
.hg-dots i { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.hg-dots i.on { background: var(--teal, #17b6c2); }
.hg-note { margin: 2px 0 0; font-size: 0.86rem; line-height: 1.4; color: var(--ink-soft); }
.hg-extra { color: var(--ink); font-weight: 600; }
.hg-nocheck { margin-top: 12px; }
.hg-open { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; }
.ot-chips li.ot-chip-tap { padding: 0; }
.ot-chip-tap > button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ot-chip-tap > button:focus-visible { outline: 2px solid var(--teal, #17b6c2); outline-offset: 2px; }
html.look-night .hg-row, html[data-theme="dark"] .hg-row { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14); }
html.look-night .hg-row.is-mine, html[data-theme="dark"] .hg-row.is-mine { box-shadow: 0 0 0 2.5px #3fe0ea; }
html.look-night .hg-dots i, html[data-theme="dark"] .hg-dots i { background: rgba(255, 255, 255, 0.16); }
html.look-night .hg-dots i.on, html[data-theme="dark"] .hg-dots i.on { background: #3fe0ea; }
html.look-night .hg-yours, html[data-theme="dark"] .hg-yours { background: #3fe0ea; color: #0b1430; }
html.look-night .hg-ic, html[data-theme="dark"] .hg-ic { background: rgba(63, 224, 234, 0.14); color: #3fe0ea; }
html.look-night .hg-extra, html[data-theme="dark"] .hg-extra { color: #fff; }
.sheet-phones .sheet-actions.sheet-actions { justify-content: center; }

/* "Wear headphones" banner (phones-tip.js, 19 Nov 2026): song pages and the jam setup, off headphones only */
.hp-tip { display: flex; align-items: center; gap: 4px; margin: 10px 0 4px; padding: 4px 4px 4px 6px; border-radius: 18px; overflow: hidden;
  background: var(--teal-wash, #e3f6f7); color: var(--ink); box-shadow: 0 0 0 1.5px rgba(23, 182, 194, 0.35); text-align: left; animation: hp-in 0.32s cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes hp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hp-tip { animation: none; } }
.hp-tip-main { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 10px; cursor: pointer; font-size: 0.95rem; line-height: 1.4; border-radius: 14px; }
.hp-tip-main .ic { flex: none; width: 24px; height: 24px; color: var(--teal-text, #0b7f88); }
.hp-tip-main b { font-weight: 800; }
.hp-tip-main:focus-visible, .hp-tip-x:focus-visible { outline: 2px solid var(--teal, #17b6c2); outline-offset: -2px; }
.hp-tip-x { all: unset; box-sizing: border-box; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; cursor: pointer; color: var(--ink-soft); }
.hp-tip-x .ic { width: 20px; height: 20px; }
.hp-tip-x:hover { background: rgba(0, 0, 0, 0.05); }
.jx-shell .hp-tip { margin: 14px 0 4px; }
@media (min-width: 1000px) { .ot-page.is-yt > .hp-tip { order: 3; margin: 0; } }
html.look-night .hp-tip, html[data-theme="dark"] .hp-tip { background: linear-gradient(135deg, rgba(150, 110, 255, 0.55), rgba(63, 224, 234, 0.28)); color: #fff; box-shadow: 0 6px 20px rgba(10, 8, 40, 0.35); }
html.look-night .hp-tip-main .ic, html[data-theme="dark"] .hp-tip-main .ic, html.look-night .hp-tip-x, html[data-theme="dark"] .hp-tip-x { color: #fff; }
html.look-night .hp-tip-x:hover, html[data-theme="dark"] .hp-tip-x:hover { background: rgba(255, 255, 255, 0.12); }

/* The song against your notes on a keyboard (songcoach.js rangeKeys, 19 Nov 2026) */
.sc-rangekeys { margin: 8px auto 0; max-width: 320px; width: 100%; }
.sc-rangekeys svg { display: block; width: 100%; height: auto; }
.rk-w { fill: #fff; stroke: rgba(17, 22, 64, 0.28); stroke-width: 1; }
.rk-w.is-mine { fill: #bfeef1; }
.rk-b { fill: #1b2350; }
.rk-b.is-mine { fill: #0f8f99; }
.rk-in { fill: var(--teal, #17b6c2); }
.rk-out { fill: #f4594b; }
.sc-rangekeys figcaption { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.sc-rangekeys figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.rk-sw { display: inline-block; width: 18px; height: 8px; border-radius: 4px; }
.rk-sw-song { background: linear-gradient(90deg, var(--teal, #17b6c2) 50%, #f4594b 50%); }
.rk-sw-mine { background: #bfeef1; box-shadow: 0 0 0 1px rgba(17, 22, 64, 0.28); height: 10px; border-radius: 2px; }
html.look-night .rk-w, html[data-theme="dark"] .rk-w { fill: #e9edff; stroke: rgba(0, 0, 0, 0.35); }
html.look-night .rk-w.is-mine, html[data-theme="dark"] .rk-w.is-mine { fill: #7fe9f0; }
html.look-night .rk-b, html[data-theme="dark"] .rk-b { fill: #0b1430; }
html.look-night .rk-in, html[data-theme="dark"] .rk-in { fill: #3fe0ea; }
html.look-night .rk-sw-mine, html[data-theme="dark"] .rk-sw-mine { background: #7fe9f0; }
html.look-night .rk-sw-song, html[data-theme="dark"] .rk-sw-song { background: linear-gradient(90deg, #3fe0ea 50%, #f4594b 50%); }
@media (min-width: 1000px) { .ot-page.is-yt .sc-rangekeys { margin-left: 0; } .ot-page.is-yt .sc-rangekeys figcaption { justify-content: flex-start; } }

/* Phones: Sing it above the tab bar without scrolling (owner, 19 Nov 2026; their Galaxy is 360×694).
   The title, fit line and keyboard come first, then the headphones banner, then Sing it; the video and key
   switches and the length chip move under the button. Laptops keep the two-column page above. */
@media (max-width: 759px) {
  .ot-page.is-yt { gap: 8px; }
  .ot-page.is-yt > * { order: 10; }
  .ot-page.is-yt > .ot-page-head { order: 1; }
  .ot-page.is-yt > .hp-tip { order: 2; margin: 0; }
  .ot-page.is-yt > .ot-actions { order: 3; margin-top: 0; }
  .sc-shell .ot-page.is-yt .ot-actions .btn-primary { min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
  .sc-shell.is-songpage .ot-page.is-yt { padding-top: 0; }
  .ot-page.is-yt .ot-page-head .ob-title { line-height: 1.1; }
  .ot-page.is-yt > .ot-vswitch { order: 4; margin-top: 6px; }
  .ot-page.is-yt > .ot-keypick { order: 5; }
  .ot-page.is-yt > .ot-chips { order: 6; margin: 0; }
  /* The line under Sing it says what the button already does: phones skip it, and "Pick a different song" comes
     after the switches, so Karaoke / With the singer shows without scrolling (owner on an iPhone, 21 Nov 2026). */
  .ot-page.is-yt .ot-actions > .ot-hint { display: none; }
  .ot-page.is-yt > .ot-other { order: 7; align-self: center; }
  .ot-page.is-yt .sc-rangekeys { max-width: 290px; margin-top: 6px; }
  .ot-page.is-yt .sc-rangekeys figcaption { margin-top: 3px; font-size: 0.78rem; }
  .ot-page.is-yt .sc-fitline { margin-top: 4px; }
  .hp-tip { border-radius: 16px; }
  .hp-tip-main { gap: 10px; padding: 7px 4px 7px 8px; font-size: 0.86rem; line-height: 1.35; }
  .hp-tip-main .ic { width: 20px; height: 20px; }
  .hp-tip-x { width: 38px; height: 38px; }
}
/* Phones up to 820px of usable height (360×640 up to an iPhone 17 Pro, whose app gets about 402×781 between the
   status bar and the home bar): a slightly smaller video cover, and the keyboard without its legend, so Karaoke /
   With the singer shows without scrolling even with the headphones banner (owner on an iPhone, 21 Nov 2026). */
@media (max-width: 759px) and (max-height: 820px) {
  .sc-shell.is-songpage.has-yt .sc-ytdock { width: 88%; margin-left: auto; margin-right: auto; }
  .sc-shell.is-songpage.has-yt .sc-yt { min-height: 0; }
  .ot-page.is-yt .sc-rangekeys figcaption { display: none; }
  .ot-page.is-yt { gap: 6px; }
}

/* The take's "You've sung 1:15 · Best 55" (song-take.js, any-take.js; owner, 22 Nov 2026): on phones and tablets it
   rides just above Finish take inside the pinned block, so the button never covers it or squeezes it onto the
   crowd. The wide video layout keeps it beside the words (css/stage.css), so the copy there shows instead. */
.ot-run > .ot-live.is-flow { display: none; }
.ot-actions > .ot-live.is-pin { order: -1; align-self: center; gap: 0; margin: 0 0 2px; padding: 5px 14px; border-radius: 999px; font-size: 0.86rem; line-height: 1.3; }
.ot-actions > .ot-live.is-pin > span + span::before { content: '·'; margin: 0 9px; opacity: 0.6; }
.ot-actions > .ot-live.is-pin b { font-size: 0.98rem; }
.ot-actions > .ot-live .ot-lock { margin-left: 4px; }
.sc-shell.is-stage .ot-actions > .ot-live.is-pin, html.look-night .ot-actions > .ot-live.is-pin { background: rgba(7, 8, 30, 0.62); color: rgba(230, 234, 255, 0.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (min-width: 1000px) {
  .sc-shell.is-singing.has-yt .ot-run > .ot-live.is-flow { display: flex; }
  .sc-shell.is-singing.has-yt .ot-actions > .ot-live.is-pin { display: none; }
}

/* Loud music on the phone's own speaker during a take (js/route.js, phone apps only): one quiet line above Finish. */
.route-loud { display: flex; align-items: flex-start; gap: 8px; margin: 6px auto 8px; max-width: 34em; padding: 8px 12px;
  border-radius: 14px; background: rgba(255, 196, 77, 0.14); color: #ffe3a3; font-size: 0.92rem; line-height: 1.35; text-align: left; }
.route-loud[hidden] { display: none; }
.ot-actions > .route-loud { order: -2; margin: 0 auto 6px; }
.route-loud svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
/* "Got headphones?" turns into "Perfect!" when they go in (js/phones-ask.js). */
.sheet-phones.is-perfect .sheet-title { color: var(--ok, #2fd5a4); }

/* "Your takes" on a song's page (26 Nov 2026): one row under the buttons, and the list it opens. */
.ot-takeslink { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; margin: 4px auto 0; padding: 12px 14px; box-sizing: border-box;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 14px; background: color-mix(in srgb, currentColor 6%, transparent);
  color: inherit; font: inherit; font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; }
.ot-takeslink > span { flex: 1; }
.ot-takeslink .ic { width: 20px; height: 20px; flex: none; }
.ot-takeslink:focus-visible { outline: 3px solid var(--tc-me, #2a76ff); outline-offset: 2px; }
.ot-takelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ot-takelist li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, currentColor 6%, transparent); }
.ot-tl-score { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.ot-tl-score.is-best { border-color: #f2b01e; color: #f2b01e; }
.ot-tl-when { display: grid; gap: 3px; min-width: 0; }
.ot-tl-when b { font-size: 15px; }
.ot-tl-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tc-me, #2a76ff); color: #fff; cursor: pointer; }
.ot-tl-play .ic { width: 18px; height: 18px; }
.ot-tl-play.is-on { background: #e0475b; }
.ot-tl-see { justify-self: start; font-weight: 600; font-size: 13.5px; white-space: nowrap; opacity: 0.85; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* The mixer while a speaker take's voice is being taken out of the song (take-voice.js): one line in its place. */
.tc-mixer-wait { display: none; flex: 1; text-align: center; font-weight: 600; opacity: 0.85; }
.tc-mixer.is-waiting .tc-mixer-wait { display: block; }
.tc-mixer.is-waiting input, .tc-mixer.is-waiting .tc-mixer-end { display: none; }
.tc-mixer.is-waiting { bottom: calc(var(--tab-h, 64px) + var(--safe-b, 0px) + 14px); }

/* A part's card leads with one plain line on what happened (26 Nov 2026), in the slip colour of the old labels. */
.tc-thread .tc-bhead { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-weight: 700; font-size: 15.5px; color: #e0475b; }
html[data-theme="dark"] .tc-thread .tc-bhead, html.look-night .tc-thread .tc-bhead { color: #ffb4a8; }
.tc-thread .tc-bhead .ic { width: 16px; height: 16px; flex: none; }

/* The mixer, easier to notice (owner, 26 Nov 2026): a lighter panel with a cyan rim and glow, a title, a bigger slider
   in the app's colours. While the first-time demo runs, the rim pulses. */
.tc-mixer { flex-wrap: wrap; row-gap: 6px; padding: 10px 14px 12px; border: 1.5px solid rgba(159, 231, 239, 0.75);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(159, 231, 239, 0.12); }
html[data-theme="dark"] .tc-mixer, html.look-night .tc-mixer { background: linear-gradient(135deg, #2a4aa8 0%, #1f3a8c 100%); }
.tc-mixer-title { flex: 0 0 100%; text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em; opacity: 0.95; }
.tc-mixer input[type="range"] { -webkit-appearance: none; appearance: none; height: 30px; background: transparent; }
.tc-mixer input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #6fb0ff 0%, #9fe7ef 50%, #f5c044 100%); }
.tc-mixer input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 3px solid #2a76ff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.tc-mixer input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #6fb0ff 0%, #9fe7ef 50%, #f5c044 100%); }
.tc-mixer input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #2a76ff; }
.tc-mixer.is-waiting .tc-mixer-title { display: none; }
.tc-mixer.is-demo { animation: tc-mix-pulse 1.1s ease-in-out infinite; }
@keyframes tc-mix-pulse { 50% { box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(159, 231, 239, 0.3); } }
@media (prefers-reduced-motion: reduce) { .tc-mixer.is-demo { animation: none; } }

/* The demo's finger (26 Nov 2026): comes in, presses the thumb (a little smaller, a soft ring), drags it, lifts away. */
.tc-mixer { position: fixed; }
.tc-mixer-finger { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  animation: tc-finger-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; transition: opacity 0.3s ease; }
.tc-mixer-finger svg { display: block; transform-origin: 40% 10%; transition: transform 0.18s ease; }
.tc-mixer-finger.is-down svg { transform: scale(0.9); }
.tc-mixer-finger.is-down::before { content: ''; position: absolute; left: 10px; top: -6px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(159, 231, 239, 0.45); animation: tc-finger-ring 0.9s ease-out infinite; }
.tc-mixer-finger.is-out { opacity: 0; }
@keyframes tc-finger-in { from { opacity: 0; margin-top: 18px; } to { opacity: 1; margin-top: 0; } }
@keyframes tc-finger-ring { from { transform: scale(0.6); opacity: 0.8; } to { transform: scale(1.8); opacity: 0; } }
/* "Your whole take" (26 Nov 2026): one line, so its label goes where the wave would be. */
.tc-whole .tc-voice-wave { display: none; }
.tc-whole .tc-voice-who { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The mixer's × (26 Nov 2026): closes the line, the mixer and the corner video. */
.tc-mixer-x { position: absolute; top: -12px; right: -12px; z-index: 3; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border-radius: 50%; border: 0; background: #fff; color: #14213f; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45); cursor: pointer; }
.tc-mixer-x .ic { width: 16px; height: 16px; }
.tc-mixer-x:focus-visible { outline: 3px solid #9fe7ef; outline-offset: 2px; }

/* The big mixer, a whole-screen player like Spotify's (26 Nov 2026): a "More" pill on the small mixer; the screen rises
   over everything, the corner video sits in its slot at the top (placed there each frame by take-chat.js), then voice
   and song, the sound, Space and pitch polish, and the controls at the bottom. */
.tc-mixer-more { position: absolute; top: -13px; right: 26px; z-index: 3; display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 10px 0 12px;
  border-radius: 999px; border: 0; background: #9fe7ef; color: #0d2a4a; font: inherit; font-size: 13px; font-weight: 800; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45); cursor: pointer; }
.tc-mixer-more .ic { width: 14px; height: 14px; }
.tc-mixer.is-hidden { display: none; }
.sc-shell.is-peek.is-mixbig .sc-ytdock { z-index: 70; animation: none; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.7); }
.sc-shell.is-mixbig .sc-ytdock .sc-yt { min-height: 0; }
.sc-shell.is-mixbig .sc-peek-close, .sc-shell.is-mixbig .sc-nudge { display: none; }
.tc-mixbig { position: fixed; z-index: 69; inset: 0 0 calc(var(--tab-h, 64px) + var(--safe-b, 0px)) 0; display: flex; flex-direction: column; box-sizing: border-box;
  padding: calc(var(--safe-t, 0px) + 10px) 20px 12px;
  background: linear-gradient(180deg, #24418f 0%, #142a66 55%, #0c1d4c 100%); color: #fff;
  transform: translateY(100%); transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1); overflow-y: auto; }
.tc-mixbig.is-in { transform: none; }
.tc-mixbig-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; flex: none; }
.tc-mixbig-head b { font-size: 16px; }
.tc-mixbig-close, .tc-mixbig-x { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; }
.tc-mixbig-close .ic, .tc-mixbig-x .ic { width: 18px; height: 18px; }
.tc-mixbig-video { flex: none; width: 100%; max-width: 440px; margin: 12px auto 0; aspect-ratio: 16 / 9; border-radius: 16px; background: rgba(0, 0, 0, 0.35); }
.tc-mixbig-what { flex: none; display: grid; gap: 2px; margin: 12px 0 2px; }
.tc-mixbig-what b { font-size: 18px; }
.tc-mixbig-what small { font-size: 13.5px; color: #c9d2ff; }
.tc-mixbig-body { flex: 1 1 auto; }
.tc-mixbig-label { margin: 12px 0 6px; font-size: 13.5px; font-weight: 700; color: #9fe7ef; }
.tc-mixbig-row { display: flex; align-items: center; gap: 10px; }
.tc-mixbig-row input[type="range"] { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 30px; background: transparent; }
.tc-mixbig-row input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #6fb0ff 0%, #9fe7ef 50%, #f5c044 100%); }
.tc-mixbig-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid #2a76ff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.tc-mixbig-row input[data-big="space"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, #9fe7ef 100%); }
.tc-mixbig-small { flex: none; font-size: 12.5px; font-weight: 700; opacity: 0.85; }
.tc-mixbig .tc-mixer-end { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; font-size: 12px; font-weight: 700; flex: none; }
.tc-mixbig .tc-mixer-end .ic { width: 16px; height: 16px; }
.tc-mixbig-looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tc-mixbig-looks button { min-height: 38px; padding: 4px 6px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06);
  color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tc-mixbig-looks button[aria-checked="true"] { background: #f5c044; border-color: #f5c044; color: #2a1a02; }
/* Effects (30 Nov 2026): a small crown on each while locked; the unlock line under them during a preview. */
.tc-mixbig-fx button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.tc-mixbig-fx button .ic { width: 13px; height: 13px; flex: none; color: #f5c044; }
.tc-mixbig-fx button[aria-checked="true"] .ic { color: #2a1a02; }
.tc-mixbig-fxlock { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #ffe7a8; }
.tc-mixbig-taste { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #b9c3f5; }
.tc-mixbig-switch > span .ic { width: 14px; height: 14px; margin-right: 5px; color: #f5c044; vertical-align: -2px; }
.tc-mixbig-fxlock a { color: #f5c044; font-weight: 800; }
.tc-mixbig-switch { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-weight: 700; font-size: 15px; cursor: pointer; }
.tc-mixbig-switch input { position: absolute; opacity: 0; pointer-events: none; }
.tc-mixbig-switch i { position: relative; width: 46px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); transition: background 160ms; }
.tc-mixbig-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 160ms; }
.tc-mixbig-switch input:checked + i { background: #2fbf8f; }
.tc-mixbig-switch input:checked + i::after { transform: translateX(18px); }
.tc-mixbig-switch input:focus-visible + i { outline: 3px solid #9fe7ef; outline-offset: 2px; }
.tc-mixbig-note { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: #b9c3f5; }
/* The controls, at the bottom. */
.tc-mixbig-ctl { flex: none; margin-top: 12px; }
.tc-mixbig-bar { width: 100%; -webkit-appearance: none; appearance: none; height: 24px; margin: 0; background: transparent; }
.tc-mixbig-bar::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); }
.tc-mixbig-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; }
.tc-mixbig-times { display: flex; justify-content: space-between; font-size: 12px; color: #c9d2ff; font-variant-numeric: tabular-nums; }
.tc-mixbig-btns { display: flex; align-items: center; justify-content: center; gap: 36px; margin-top: 6px; }
.tc-mixbig-btns button { display: grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; padding: 6px; }
.tc-mixbig-btns .tc-mixbig-play { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #0c1d4c; }
.tc-mixbig-play .ic { width: 28px; height: 28px; }
@media (prefers-reduced-motion: reduce) { .tc-mixbig { transition: none; } }
/* Room for the More pill and the × above the title. */
.tc-mixer { padding-top: 20px; }
.tc-mixer.is-waiting { padding-top: 10px; }
.tc-mixer.is-waiting .tc-mixer-more { display: none; }
/* The player always shows its controls: the settings in the middle scroll if the screen is short, the rest stays. */
.tc-mixbig { overflow: hidden; }
.tc-mixbig-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.tc-mixbig-video { max-width: min(440px, calc(26vh * 16 / 9)); margin-top: 8px; }
.tc-mixbig-what { margin: 8px 0 0; }
.tc-mixbig-what b { font-size: 17px; }
.tc-mixbig-label { margin: 10px 0 4px; }
.tc-mixbig-ctl { margin-top: 8px; }
.tc-mixbig-btns { margin-top: 2px; }
.tc-mixbig-btns .tc-mixbig-play { width: 58px; height: 58px; }
/* The player covers the whole screen, tab bar included, as music apps' players do (1 Dec 2026): room for its settings. */
body.sb-player-open .tabs { display: none; }
.tc-mixbig { bottom: 0; padding-bottom: calc(var(--safe-b, 0px) + 12px); }
@media (max-height: 760px) { .tc-mixbig-video { max-width: min(440px, calc(21vh * 16 / 9)); } }
/* The finer settings (Space, Pitch polish) behind one quiet row; the scroll's edge fades while there's more. */
.tc-mixbig-more { margin-top: 10px; }
.tc-mixbig-more > summary { display: flex; align-items: center; gap: 6px; min-height: 40px; list-style: none; cursor: pointer;
  font-size: 14px; font-weight: 700; color: #9fe7ef; -webkit-tap-highlight-color: transparent; }
.tc-mixbig-more > summary::-webkit-details-marker { display: none; }
.tc-mixbig-more > summary .ic { width: 16px; height: 16px; transition: transform 160ms; }
.tc-mixbig-more[open] > summary .ic { transform: rotate(180deg); }
.tc-mixbig-more > summary:focus-visible { outline: 3px solid #9fe7ef; outline-offset: 2px; border-radius: 8px; }
.tc-mixbig-more > .tc-mixbig-space .tc-mixbig-label:first-child { margin-top: 4px; }
.tc-mixbig-body.has-more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); }
@media (prefers-reduced-motion: reduce) { .tc-mixbig-more > summary .ic { transition: none; } }

/* The take's header, one row (26 Nov 2026): the song's cover, its name, "Your take · Today, 02:40". */
.tc-top.tc-toprow { display: flex; align-items: center; gap: 12px; margin: 2px 0 10px; }
.tc-cover { flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: rgba(255, 255, 255, 0.08); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.6); }
.tc-toptext { display: grid; gap: 3px; min-width: 0; }
.tc-toprow .tc-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-when { margin: 0; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
html[data-theme="dark"] .tc-when, html.look-night .tc-when { color: #b9c3f5; }

/* The free minute's end (26 Nov 2026): the song paused, one card over the singing screen. */
.ot-limit { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(4, 10, 30, 0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: ot-limit-in 220ms ease-out both; }
@keyframes ot-limit-in { from { opacity: 0; } }
.ot-limit-card { width: 100%; max-width: 380px; box-sizing: border-box; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 24px 20px 18px; border-radius: 24px;
  border: 1.5px solid transparent; color: #fff;
  background: linear-gradient(160deg, #24418f 0%, #142a66 100%) padding-box, linear-gradient(120deg, #f7d978 0%, #c99a3a 55%, #f5c044 100%) border-box;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8); }
.ot-limit-crown { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c4 0%, #ffd95a 45%, #e39a2b 100%); color: #4a2a05; }
.ot-limit-crown .ic { width: 28px; height: 28px; }
.ot-limit-crown .ic .ic-fill { fill: #4a2a05; }
.ot-limit-card h2 { margin: 4px 0 0; font-size: 1.3rem; line-height: 1.25; }
.ot-limit-card p { margin: 0; font-size: 0.98rem; line-height: 1.45; color: #d6dcff; }
.ot-limit-card .btn { width: 100%; justify-content: center; }
.ot-limit-card .btn-primary { margin-top: 6px; }
.ot-limit-price { margin-top: -4px; font-size: 0.82rem; font-weight: 600; color: #f3dfa0; }
.ot-limit-card .btn-link { color: #b9c3f5; font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) { .ot-limit { animation: none; } }

/* The key, changed while singing (song-take.js, 26 Nov 2026): "Let It Be · Key: Original ▾" under the video, its
   card, and Bud's nudge when the top or bottom of the song is out of the voice. */
.ot-now-head { display: flex; justify-content: center; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; row-gap: 6px; }
.ot-now-head .ot-now-label { min-width: 0; max-width: 60%; }
.ot-keypill { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: var(--ink-soft, #5b6280); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
@media (min-width: 1000px) { .sc-shell.is-singing.has-yt .ot-run .ot-now-head { justify-content: flex-start; } }
html.look-night .ot-keypill, .sc-shell.is-stage .ot-keypill { color: #c9d2ff; border-color: rgba(201, 210, 255, 0.45); }
.ot-keypill i { font-style: normal; font-size: 0.8em; opacity: 0.8; }
html .ot-keypill.is-nudge, html.look-night .ot-keypill.is-nudge { color: #06213a; background: #39e6ee; border-color: #39e6ee; animation: ot-key-pulse 1.4s ease-in-out 4; }
@keyframes ot-key-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(57, 230, 238, 0.6); } 50% { box-shadow: 0 0 0 9px rgba(57, 230, 238, 0); } }
.ot-ksheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: rgba(4, 10, 30, 0.6); animation: ot-limit-in 180ms ease-out both; }
.ot-ksheet-card { width: 100%; max-width: 380px; box-sizing: border-box; display: grid; gap: 8px; padding: 20px 18px 12px; border-radius: 24px; background: #142451; color: #fff; text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.ot-ksheet-card h2 { margin: 0; font-size: 1.2rem; }
.ot-ksheet-card p { margin: 0 0 6px; font-size: 0.92rem; line-height: 1.4; color: #c9d2ff; }
.ot-ksheet-list { display: grid; gap: 8px; }
.ot-ksheet-k { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid rgba(201, 210, 255, 0.28); background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.ot-ksheet-k.is-now { border-color: #39e6ee; background: rgba(57, 230, 238, 0.12); }
.ot-ksheet-k small { font-size: 0.78rem; font-weight: 700; color: #39e6ee; }
/* A song the singer brought: Bud's pick for their voice carries a small tag ("Fits you"). */
.ot-ksheet-k em { font-style: normal; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: rgba(62, 224, 143, 0.16); color: #3ee08f; vertical-align: 1px; }
.ot-ksheet-card .btn-link { color: #b9c3f5; font-size: 0.92rem; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .ot-keypill.is-nudge, .ot-ksheet { animation: none; } }

/* A song the singer brought: its key on its page, under the singer switch (26 Nov 2026). */
.ot-ownkey { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 700; }
.ot-ownkey[hidden] { display: none; }

/* Left the app mid-take (1 Dec 2026): the card's title takes focus for screen readers; no ring on a phone. */
.ot-interrupted h2:focus:not(:focus-visible) { outline: none; }
.ot-interrupted h2:focus { outline: none; }

/* Past the free minute, singing on: a compact unlock card where Bud's line was (1 Dec 2026). It fits the line's own
   space, above the pinned Finish block. */
.ot-keepoffer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box;
  margin: 0 auto; padding: 14px 16px; max-width: 420px; overflow: hidden; border-radius: 18px; text-align: center;
  background: rgba(255, 255, 255, 0.06); border: 1.5px solid rgba(245, 192, 68, 0.55); }
.ot-keepoffer-t { display: inline-flex; align-items: center; gap: 7px; margin: 0; font: 800 1.05rem var(--font-head); }
.ot-keepoffer-t .ic { width: 18px; height: 18px; flex: none; color: #f5c044; }
.ot-keepoffer-t .ic .ic-fill { fill: currentColor; }
.ot-keepoffer-b { margin: 0; max-width: 34ch; font-size: 0.88rem; line-height: 1.35; opacity: 0.9; }
.ot-keepoffer .btn { margin-top: 4px; min-height: 42px; padding: 8px 22px; font-size: 0.95rem; }
/* The free minute's card: "See what Bud heard" outlined, so Unlock clearly leads (1 Dec 2026). */
/* (Not .btn-secondary: the Night look paints those white with !important.) */
html .ot-limit .ot-limit-card .btn.ot-limit-quiet, html .ot-limit .ot-limit-card .btn.ot-limit-quiet:hover {
  background: transparent; background-image: none; color: #fff; border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
html .ot-limit .ot-limit-card .btn.ot-limit-quiet:active { background: rgba(255, 255, 255, 0.08); }
/* The card's title takes focus for screen readers: no ring on a phone. */
.ot-limit-card h2:focus { outline: none; }
