.kmv-workspace {
  /* Mirrors the animation desk tokens (--anim-page-max / --anim-desk-h) so the two lines read as
     one product. 2026-07-28: both lines went full-bleed, so this is 100% rather than a ceiling —
     the gutter below (34px a side) is what keeps it flush with .anim-cw-main's padding-inline. */
  --kmv-page-max: 100%;
  /* viewport − step bar (64) − this element's padding-top (24) − the bare shell's padding
     (24 top + 28 bottom). 2026-07-28: the old 224 assumed a 72px bottom pad here plus 40 on the
     shell — 112px of dead band under the card, which is exactly what Jeff's red boxes on steps 1
     and 3 were. Bottom pad is now 0 here / 28 on the shell, and the height it frees goes to the
     card. Same arithmetic style as --anim-desk-h. */
  /* 2026-08-02 (Andy): the chrome above the content was 112px — .rk-bare-main's 24 + this 24 + a
     64px top bar — while the storybook style step starts its content at ~50px (bare-main padding 0,
     page padding 14, one-line stepper). Everything above the fold was header. Now: 6 + 6 + 46 ≈ 58,
     and the ~54px that frees goes straight into the desk height below. */
  --kmv-desk-h: max(460px, calc(100vh - 96px));
  position: relative;
  width: min(var(--kmv-page-max), calc(100vw - 68px));
  margin: 0 auto;
  padding: 6px 0 0;
  color: var(--rk-ink);
}

/* (the wide-screen bump that used to live here is gone — the workspace is full-bleed at every
   width now, matching .anim-cw-main.) */

/* The bare shell's own padding is what actually sets this page's edges, so it — not the width rule
   above — is what has to match .anim-cw-main's 34px. Without this, walking MV step 3 → animation
   step 4 shifts the page edge by 6px. The bottom drops 40 → 28 for the same reason the workspace
   pad went to 0: it was dead band, not breathing room. Narrow screens keep the shell's own values
   (and the old --kmv-desk-h arithmetic, whose chrome is different there). */
@media (min-width: 681px) {
  .rk-bare-main:has(> .kmv-workspace) { padding-block-start: 6px; padding-inline: 34px; padding-bottom: 28px; }
}
@media (max-width: 680px) {
  .kmv-workspace { --kmv-desk-h: max(460px, calc(100vh - 180px)); }
}

.kmv-workspace-top {
  min-height: 46px;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
  border-bottom: 1px solid var(--rk-line);
}

.kmv-home-link {
  justify-self: start;
  min-height: 40px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding-block: 3px;
  padding-inline: 0 5px;
  color: var(--rk-ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
  transition: color 150ms ease-out;
}
.kmv-home-link-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: var(--rk-radius-sm); transition: background 150ms ease-out, color 150ms ease-out; }
.kmv-home-link-icon svg { width: 20px; height: 20px; }
.kmv-home-link:hover { color: var(--rk-ink); }
.kmv-home-link:hover .kmv-home-link-icon { color: var(--rk-emerald); background: var(--rk-paper-2); }
.kmv-home-link:focus-visible { outline: var(--rk-focus-ring); outline-offset: 2px; border-radius: var(--rk-radius-sm); }

.kmv-stepper { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--rk-muted); font-size: 14px; }
.kmv-stepper span, .kmv-stepper button { white-space: nowrap; }
.kmv-stepper button { padding: 0; border: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
.kmv-stepper .is-active { padding: 9px 16px; border-radius: 999px; color: #0f6d54; background: #e7f5ef; font-weight: 800; }
.kmv-stepper .is-done { color: #278268; font-weight: 760; }
.kmv-stepper .is-locked { color: #b8b3ab; }
.kmv-stepper i { color: #d9d5ce; font-style: normal; }
.kmv-sandbox-badge { justify-self: end; padding: 7px 11px; border-radius: 999px; background: #fff4cf; color: #785a00; font-size: 12px; font-weight: 800; }

.kmv-music-grid { display: grid; grid-template-columns: minmax(360px, .88fr) minmax(560px, 1.22fr); gap: 28px; padding: 52px 20px 0; align-items: start; }
/* The columns own the leftover height and scroll internally, so the footer action never leaves the
   fold on a short screen (Andy 2026-08-02). align-items:stretch is what lets each column be exactly
   as tall as the row rather than as tall as its own content. */
.kmv-lyrics-paper, .kmv-take, .kmv-no-takes, .kmv-lock-note { border: 1px solid var(--rk-line); box-shadow: 0 12px 34px rgba(59, 48, 35, .06); }
.kmv-lyrics-paper { background: rgba(255,255,255,.7); border-radius: 22px; padding: 26px; }
.kmv-lyrics-head { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; }
.kmv-music-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #16785d; background: #e6f4ef; font-size: 22px; }
.kmv-title-field input { width: 100%; border: 0; background: transparent; color: var(--rk-ink); font-family: inherit; font-weight: 800; font-size: 25px; line-height: 1.2; outline: none; }
.kmv-title-field input:not([readonly]) { border-bottom: 1px solid #9bcbbd; }
.kmv-quiet-button { padding: 10px 14px; border: 1px solid var(--rk-line); border-radius: 999px; background: var(--rk-surface); color: var(--rk-ink); font-weight: 750; cursor: pointer; }
/* 标题旁的四枚元信息胶囊（年龄/语言/期望时长/曲风）已按 Andy 2026-08-06 移除，相关规则一并删除。
   `.kmv-est-band`（歌词卡头部的「预计成曲」）不在其中，它自己的样式在下方 kmv-lyrics-reader-head 一节。 */
.kmv-duration-alert { margin: 8px 0 0; padding: 9px 11px; border: 1px solid #e6bd74; border-radius: 10px; background: #fff8e8; color: #725019; font-size: 12px; line-height: 1.45; }
.kmv-duration-alert.is-severe { border-color: #e69a91; background: #fff0ee; color: #7d3028; }
.kmv-lyric-section { padding: 17px 0; border-bottom: 1px solid var(--rk-line); }
.kmv-lyric-section h2 { margin: 0 0 8px; font-size: 14px; }
.kmv-lyric-section textarea, .kmv-prompt textarea { width: 100%; box-sizing: border-box; resize: vertical; border: 0; outline: none; background: transparent; color: var(--rk-ink); font-family: inherit; font-size: 15px; line-height: 1.55; }
.kmv-lyric-section textarea[readonly], .kmv-prompt textarea[readonly] { resize: none; }
.kmv-lyrics-paper.is-editing .kmv-lyric-section textarea, .kmv-lyrics-paper.is-editing .kmv-prompt textarea { padding: 10px 12px; border: 1px solid #c8ddd6; border-radius: 12px; background: #fff; }
.kmv-prompt { margin-top: 18px; border: 1px solid var(--rk-line); border-radius: 14px; background: rgba(255,255,255,.55); }
.kmv-prompt summary { display: flex; gap: 8px; padding: 13px 15px; cursor: pointer; font-weight: 760; }
.kmv-prompt textarea { padding: 0 15px 14px; }
.kmv-stale-note { margin: 14px 0 0; padding: 11px 13px; border-radius: 12px; background: #fff5dc; color: #71530c; font-size: 12px; line-height: 1.45; }

.kmv-takes-panel > header p { margin: 0 0 7px; color: #178064; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.kmv-takes-panel > header h1 { margin: 0; font-size: 27px; }
.kmv-takes-panel > header span { display: block; margin-top: 7px; color: var(--rk-muted); }
.kmv-takes-list { display: grid; gap: 14px; margin-top: 28px; }
.kmv-take { position: relative; border-radius: 20px; background: rgba(255,255,255,.7); padding: 17px; transition: border-color .16s, box-shadow .16s, transform .16s, background-color .16s; }
.kmv-take.is-selected { border-color: #16815f; box-shadow: 0 12px 34px rgba(22,129,95,.12); transform: translateY(-1px); }
.kmv-take-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kmv-take-label { border: 0; border-radius: 9px; padding: 7px 12px; background: #f0eee9; color: var(--rk-ink); font-weight: 850; cursor: pointer; }
.kmv-take.is-selected .kmv-take-label { color: #fff; background: #25876b; }
.kmv-selected-pill, .kmv-generated-pill { padding: 7px 10px; border: 1px solid var(--rk-line); border-radius: 999px; font-size: 12px; font-weight: 760; }
.kmv-selected-pill { color: #16785d; }
.kmv-generated-pill { color: var(--rk-muted); }
/* 未选中卡的选择入口，与选中卡的「已选择 ✓」徽章共用顶行同一格：卡片被裁切时顶行是唯一
   还在视野里的那一端，选择入口住在这里才不会掉到滚动线以下（见 takeCard 注释）。 */
.kmv-take-pick { flex: none; padding: 7px 12px; border: 1px solid var(--rk-emerald); border-radius: 999px; color: var(--rk-emerald); background: rgba(255,255,255,.9); font: 760 12px/1 var(--rk-font-body); white-space: nowrap; cursor: pointer; transition: color .16s, background-color .16s; }
.kmv-take-pick:hover { color: #fff; background: var(--rk-emerald); }
.kmv-take-pick:focus-visible { outline: var(--rk-focus-ring); outline-offset: 2px; }
/* 卡片底行：左成本行、右下载。下载不参与「能不能走下去」，所以允许下沉（见 takeDownloadButton 注释）。
   没有成本行时用占位 span 撑住 space-between，下载仍靠右。
   成本行原本自带 margin-top，现在由本行统一承担 —— 留在子项上会在 align-items:center 下把文字
   顶得与下载按钮不齐。选择器写三级是为了压过后面 .kmv-music-page .kmv-take-cost 的同级规则。 */
.kmv-take-footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 6px; }
.kmv-take .kmv-take-footer .kmv-take-cost { min-width: 0; margin: 0; }
/* 下载：卡片右下角那颗图标按钮。 */
.kmv-take-download { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; color: var(--rk-muted); background: transparent; cursor: pointer; transition: color .16s, background-color .16s; }
.kmv-take-download svg { width: 17px; height: 17px; stroke-width: 1.8; }
.kmv-take-download:hover:not(:disabled) { color: var(--rk-emerald); background: var(--rk-emerald-soft); }
.kmv-take-download:focus-visible { outline: var(--rk-focus-ring); outline-offset: 2px; }
.kmv-take-download:disabled { cursor: progress; }
.kmv-take-download-spinner { width: 15px; height: 15px; display: block; border: 2px solid color-mix(in srgb, var(--rk-emerald) 28%, transparent); border-top-color: var(--rk-emerald); border-radius: 50%; animation: kmv-take-download-spin .7s linear infinite; }
@keyframes kmv-take-download-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .kmv-take-download-spinner { animation-duration: 2.4s; } }
.kmv-take-main { display: grid; grid-template-columns: 148px 1fr; gap: 20px; align-items: center; }
.kmv-take-cover { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 15px; overflow: hidden; color: white; font-size: 40px; }
.kmv-take-cover::before, .kmv-take-cover::after, .kmv-take-cover i { content: ''; position: absolute; border-radius: 50%; }
.kmv-take-cover::before { width: 120px; height: 120px; left: -30px; top: -35px; background: rgba(255,255,255,.24); }
.kmv-take-cover::after { width: 150px; height: 150px; right: -70px; bottom: -95px; background: rgba(255,255,255,.2); }
.kmv-take-cover.is-sunrise { background: linear-gradient(145deg, #f6c86a, #e9786a 54%, #5a95be); }
.kmv-take-cover.is-night { background: linear-gradient(145deg, #1d315d, #6d5fa5 55%, #ec9d65); }
.kmv-take-cover b { position: relative; z-index: 1; text-shadow: 0 3px 18px rgba(0,0,0,.2); }
.kmv-take-title-row { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.kmv-take-title-row h3 { margin: 0 0 5px; font-size: 21px; }
.kmv-take-title-row p { margin: 0; color: var(--rk-muted); font-size: 13px; }
.kmv-take audio { width: 100%; height: 42px; margin: 17px 0 10px; accent-color: #16815f; }
.kmv-take-cost { margin: 6px 0 0; color: var(--rk-muted); font-size: 12px; }
/* 空态里只剩「生成歌曲」按钮 —— 音符图标与两行说明已按 Andy 2026-08-06 移除（面板标题
   「选择你最喜欢的版本」与其副标题已经把这件事说清楚了，占位块是同一句话的第二遍）。 */
.kmv-no-takes { min-height: 270px; display: grid; place-content: center; justify-items: center; text-align: center; border-radius: 20px; border-style: dashed; background: rgba(255,255,255,.45); }
.kmv-take-actions { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; margin-top: 20px; }
.kmv-primary, .kmv-secondary { min-height: 56px; border-radius: 15px; font-family: inherit; font-weight: 800; font-size: 15px; line-height: 1; cursor: pointer; }
.kmv-primary { border: 0; color: #fff; background: #288a6d; }
.kmv-secondary { border: 1px solid var(--rk-line); color: var(--rk-ink); background: rgba(255,255,255,.72); }
.kmv-primary:disabled, .kmv-secondary:disabled { cursor: not-allowed; opacity: .48; }
.kmv-lock-note { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 15px 18px; border-radius: 16px; background: #fffaf0; }
.kmv-lock-note > span { font-size: 24px; }
.kmv-lock-note strong { font-size: 13px; }
.kmv-lock-note p { margin: 3px 0 0; color: var(--rk-muted); font-size: 12px; }
.kmv-sync-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; margin-top: 16px; padding: 16px 18px; border: 1px solid #bcd9cf; border-radius: 16px; background: #eef8f4; }
.kmv-sync-card.is-ready { border-color: #9bcfbd; background: #e8f7f1; }
.kmv-sync-card.is-warning { border-color: #e8c878; background: #fff8e7; }
.kmv-sync-card.is-failed { border-color: #efb6aa; background: #fff2ef; }
.kmv-sync-card.is-working { grid-template-columns: auto minmax(0,1fr); }
.kmv-sync-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #14775b; background: rgba(255,255,255,.82); font-size: 17px; font-weight: 900; }
.kmv-sync-card.is-warning .kmv-sync-icon { color: #89630c; }
.kmv-sync-card.is-failed .kmv-sync-icon { color: #a63f31; }
.kmv-sync-copy strong { font-size: 14px; }
.kmv-sync-copy p { margin: 4px 0 0; color: var(--rk-muted); font-size: 12px; line-height: 1.45; }
.kmv-sync-actions { display: flex; gap: 8px; }
.kmv-primary.is-compact, .kmv-secondary.is-compact { min-height: 40px; padding: 0 14px; border-radius: 12px; white-space: nowrap; font-size: 13px; }
.kmv-sync-spinner { width: 22px; height: 22px; border: 3px solid rgba(22,129,95,.22); border-top-color: #16815f; border-radius: 50%; animation: kmv-spin .8s linear infinite; }
.kmv-generating { display: flex; gap: 12px; align-items: center; margin-top: 22px; padding: 14px 16px; border-radius: 15px; background: #eaf6f2; }
.kmv-generating > span { width: 22px; height: 22px; border: 3px solid rgba(22,129,95,.22); border-top-color: #16815f; border-radius: 50%; animation: kmv-spin .8s linear infinite; }
.kmv-generating strong { font-size: 13px; }
.kmv-generating p { margin: 2px 0 0; color: var(--rk-muted); font-size: 12px; }
/* 下边距曾是 -26px，为的是让提示条贴紧下面的页面卡。但页面卡自己只有 14px 上边距，-26 把这 14 抵掉
   之后还要多提 12px —— 页面卡是 position:relative，正好盖在提示条上，文字底部被削掉一截
   （2026-08-06 报障：「正在把每句歌词匹配到歌曲…」只看得见上半行）。负边距一旦超过下方元素的
   自然间距，多出来的部分就直接吃进自己身上，且随文案变长而恶化。改由页面卡自己的 14px 留白隔开。 */
.kmv-banner { position: relative; z-index: 1; margin: 18px 20px 0; padding: 11px 14px; border-radius: 12px; background: #eaf6f2; color: #145f4b; }
.kmv-banner.is-error { background: #fff0ed; color: #8c3428; }
.kmv-banner button { margin-inline-start: 8px; border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }
.kmv-loading { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--rk-muted); }
.kmv-modal-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(31, 35, 33, .58); }
.kmv-timing-modal { width: min(880px, 100%); max-height: calc(100vh - 48px); overflow: auto; box-sizing: border-box; padding: 26px; border: 1px solid var(--rk-line); border-radius: 22px; color: var(--rk-ink); background: #fbfaf7; box-shadow: 0 30px 90px rgba(20, 28, 25, .24); }
.kmv-timing-modal > header { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.kmv-timing-modal > header p { margin: 0 0 6px; color: #178064; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.kmv-timing-modal > header h2 { margin: 0; font-size: 27px; }
.kmv-timing-modal > header span { display: block; margin-top: 7px; color: var(--rk-muted); font-size: 13px; }
.kmv-modal-close { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--rk-line); border-radius: 50%; color: var(--rk-ink); background: white; font-size: 22px; cursor: pointer; }
.kmv-timing-modal > audio { width: 100%; height: 42px; margin: 22px 0 14px; accent-color: #16815f; }
.kmv-section-map { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; }
.kmv-section-map button { padding: 9px 14px; border: 1px solid var(--rk-line); border-radius: 999px; color: var(--rk-muted); background: white; white-space: nowrap; cursor: pointer; }
.kmv-section-map button.is-active { border-color: #16815f; color: #126b52; background: #e7f5ef; font-weight: 800; }
.kmv-timing-lines { display: grid; gap: 9px; }
.kmv-timing-line { overflow: hidden; border: 1px solid var(--rk-line); border-radius: 14px; background: white; }
.kmv-timing-line.is-selected { border-color: #5fae95; box-shadow: 0 0 0 2px rgba(22,129,95,.09); }
.kmv-timing-line-main { width: 100%; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px 12px; align-items: center; padding: 13px 14px; border: 0; color: var(--rk-ink); background: transparent; text-align: left; cursor: pointer; }
.kmv-timing-line-number { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #16785d; background: #e8f5f0; font-size: 12px; font-weight: 850; }
.kmv-timing-line-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 720; }
.kmv-timing-range { color: var(--rk-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.kmv-timing-bar { position: relative; height: 7px; grid-column: 2 / -1; overflow: hidden; border-radius: 999px; background: #ece9e2; }
.kmv-timing-bar i { position: absolute; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, #2b8e71, #6bbca2); }
.kmv-timing-controls { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 0 14px 13px 56px; }
.kmv-timing-controls button { min-height: 36px; border: 1px solid var(--rk-line); border-radius: 10px; color: var(--rk-ink); background: #faf9f6; cursor: pointer; }
.kmv-timing-controls button:last-child { color: var(--rk-muted); }
.kmv-timing-modal > footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rk-line); }
.kmv-timing-modal > footer > span { color: var(--rk-muted); font-size: 12px; }
.kmv-timing-modal > footer > div { display: flex; gap: 9px; }

/* Fill the desk instead of hugging content: the CTA lands at the bottom of the screen rather than
   floating halfway up with a third of the viewport empty beneath it. */
.kmv-story-page, .kmv-style-page { min-height: var(--kmv-desk-h); display: flex; flex-direction: column; padding: 38px 20px 0; }
/* 故事是唯一会长过一屏的一步（歌曲条 + 摘要 + 三幕 + 微调框），底部这颗「采用这个故事」原本整颗
   落在视口外，要先滚动才知道它存在。钉在视口底：内容照常滚，主按钮永远看得见 —— 与动画线 4-7 步
   常驻的 .anim-cta-bar 同一口径。渐变底避免正文从半透明按钮条下透出来。（Jeff 2026-07-28） */
.kmv-story-page > .kmv-story-cta {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
  padding-top: 28px;
  padding-bottom: 18px;
  background: linear-gradient(180deg, transparent, var(--rk-paper) 34%);
}
/* NOT margin-top:auto — on this step the rail is the last content and pushing the CTA to the bottom
   just opened a dead band between them, plus a second one underneath. */
.kmv-style-page > .kmv-style-cta { margin-top: 22px; }
.kmv-style-page { min-height: 0; padding-bottom: 8px; }

/* Single-row shelf (sxy 2026-09-05, rolled out from the picture book). The shared block in
   components.css owns the geometry; this page only tells it how much of the viewport is NOT the
   step. With the trims below: bare-main 6 + workspace 6 + top bar 46 + shell bottom 8 = 66 around
   the step, plus the sticky CTA block (button 50 + note ~18 + gap 6 + pads 8/6 ≈ 88) under the
   shelf → 154. The block's own 245px already covers a 58px top bar and a 24px floating-CTA lane,
   neither of which exists here, so extra = 154 − 82 = 72.
   The step is min-height rather than height: on a viewport too short for the 240px hero floor
   (≈ under 660px) the page grows and scrolls a little instead of clipping the shelf. */
@media (min-width: 1021px) {
  .rk-bare-main:has(> .kmv-workspace > .kmv-style-page.sb-style-shelf-row) { padding-bottom: 8px; }

  .kmv-workspace > .kmv-style-page.sb-style-shelf-row ~ .kmv-style-cta { padding: 8px 20px 6px; }

  .kmv-style-page.sb-style-shelf-row {
    --kmv-shelf-chrome: 154px;
    --sb-style-cta-lane: 0px;
    --sb-style-extra-h: 72px;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .kmv-style-page.sb-style-shelf-row > .sb-style-workbench {
    height: auto;
    min-height: calc(100dvh - var(--rk-opsbar-h, 0px) - var(--kmv-shelf-chrome));
  }
}


/* 画风页的引导 CTA（2026-08-11 Andy：「放到下方中心，始终显示在上方」）。
   它从右侧属性栏搬到这里，成为 .kmv-workspace 的直接子元素 —— 所以是**页面级**的常驻条，
   而不是画风卡片内部的一个按钮：用户往下翻几十个画风缩略图时，这一页唯一的出口不该跟着滚走。
   居中（不是资产页那种靠右）：这一步只有一个动作，居中就是「往这儿走」。
   渐变底与 .kmv-story-cta 同款，避免缩略图从半透明条下透出来。 */
.kmv-workspace > .kmv-style-cta {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, transparent, var(--rk-paper) 38%);
  text-align: center;
}

/* 按钮沿用既有的 .sb-style-use —— 它自带 inline-flex + gap + `svg { 18px }`。
   2026-08-11 我一度换成 .anim-cta-main，那个类没有约束图标尺寸也不是 flex 容器，于是
   「已选中」状态下的勾号 SVG 撑满整个按钮，999px 圆角把它变成一个巨大的绿色圆饼，
   文案被挤到圆外（Andy 当场截图）。教训：换按钮类之前先看它管不管里面的图标。 */
.kmv-workspace > .kmv-style-cta .sb-style-use { min-width: 300px; justify-content: center; }

.kmv-style-cta-note {
  max-width: 560px;
  margin: 0;
  color: var(--rk-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* 闸②拦住时的那颗 CTA（2026-08-22）。刻意**不置灰**、也不换成中性色 —— 它仍然是这一页
   唯一的前进方向，点下去会升起订阅浮层。照动画概念板的规矩（anim.js「按钮不置灰：灰按钮
   不给出路」），只把绿色换成付费那套暖金，让「这一步要订阅」在按下之前就读得出来。
   用调色板里现成的 --rk-warn（#c98b2d），不新造 token：订阅墙的皇冠底色本来就是同一族暖金
   （components.css .sb-vt-upsell-crown 的 #c9823a），而 --rk-warn 已经是全站「要留意」的那一档。
   hover 用 color-mix 压暗，避免为一个状态再塞一个硬编码色值。 */
.sb-style-use.is-gated {
  background: var(--rk-warn);
}

.sb-style-use.is-gated:hover:not(:disabled) {
  background: color-mix(in srgb, var(--rk-warn) 88%, black);
}

.kmv-style-cta-crown {
  font-size: 15px;
  line-height: 1;
}

.kmv-character-style-confirm h3 {
  margin: 0 0 12px;
  padding-inline-end: 34px;
  color: var(--rk-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.kmv-character-style-confirm p {
  margin: 0;
  color: var(--rk-muted);
  font-size: 14px;
  line-height: 1.65;
}

.kmv-character-style-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 520px) {
  .kmv-character-style-actions { flex-direction: column-reverse; }
  .kmv-character-style-actions .rk-btn { width: 100%; }
}

@media (max-width: 620px) {
  .kmv-workspace > .kmv-style-cta .sb-style-use { width: 100%; min-width: 0; }
}
/* 歌曲条跟着页宽走，但标题块不跟着膨胀（.42fr 在 2400px 页宽下会撑到近千像素）——多出来的宽度
   全给播放器，进度条越长越好拖。 */
.kmv-story-song { width: 100%; display: grid; grid-template-columns: auto minmax(180px, 420px) minmax(0, 1fr); gap: 15px; align-items: center; margin: 0 auto 32px; padding: 12px 16px; box-sizing: border-box; border: 1px solid var(--rk-line); border-radius: 17px; background: rgba(255,255,255,.7); box-shadow: 0 10px 28px rgba(59,48,35,.05); }
.kmv-story-song-art { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg,#5b8dab,#e1a45f); font-size: 22px; }
.kmv-story-song div { min-width: 0; }
.kmv-story-song small, .kmv-story-song strong, .kmv-story-song div > span { display: block; }
.kmv-story-song small { color: #16805f; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.kmv-story-song strong { overflow: hidden; margin-top: 3px; text-overflow: ellipsis; white-space: nowrap; }
.kmv-story-song div > span { color: var(--rk-muted); font-size: 11px; }
.kmv-story-song .kmv-audio-player { margin-top: 0; }  /* it sits in a centred row here, not stacked under a card */
.kmv-story-head, .kmv-style-head { margin: 0 auto 26px; text-align: center; }
.kmv-story-head h1, .kmv-style-head h1 { margin: 0; font: 820 31px/1.18 Georgia, serif; }
.kmv-story-head span, .kmv-style-head span { display: block; margin-top: 7px; color: var(--rk-muted); }
/* A story is a reading document, so the CARD is the reading width and the whole block is centred —
   earlier this page was the full 1560 with clamp() side padding, which left ~300px dead bands
   inside the card and looked broken. 1040 keeps ~40-char Chinese lines with ordinary padding.
   The refine block deliberately stays inside this card (see the note below). */
/* 2026-07-28 Jeff 拍板「外框满宽，正文守行长」：纸面本身铺满页宽（跟其余步骤同边），
   但正文列仍锁在可读宽度内居中 —— 靠内边距把多出来的宽度吃掉，不用给每个子元素单独设上限。
   ~~原：.kmv-story-page { width: min(1040px, 100%) }（整页锁 1040，在 2560 屏上只占正中一条）~~ */
.kmv-story-page { width: 100%; margin: 0 auto; --kmv-read-w: 1040px; }
.kmv-story-page .kmv-story-paper,
.kmv-story-page > .kmv-story-cta {
  padding-inline: max(56px, calc((100% - var(--kmv-read-w)) / 2));
}
.kmv-story-paper, .kmv-style-story-summary { border: 1px solid var(--rk-line); background: rgba(255,255,255,.7); box-shadow: 0 14px 36px rgba(59,48,35,.06); }
.kmv-story-paper { padding: 32px 40px; border-radius: 5px 5px 20px 20px; background-image: repeating-linear-gradient(0deg, transparent 0 30px, rgba(72,99,88,.045) 31px); }
.kmv-story-paper > header { display: flex; justify-content: space-between; align-items: center; color: #16785d; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.kmv-story-paper > header strong { padding: 5px 8px; border-radius: 999px; background: #e8f5f0; }
.kmv-story-paper > h2 { margin: 20px 0 8px; font: 820 28px/1.2 Georgia, serif; }
.kmv-story-logline { margin: 0 0 26px; color: var(--rk-muted); font: italic 15px/1.6 Georgia, serif; }
.kmv-story-acts { display: grid; gap: 22px; }
.kmv-story-acts section { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.kmv-story-acts section > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #16785d; background: #e8f5f0; font-size: 11px; font-weight: 850; }
.kmv-story-acts h3 { margin: 2px 0 6px; font-size: 14px; }
.kmv-story-acts p { margin: 0; font: 15px/1.65 Georgia, serif; }
.kmv-story-paper > footer { display: flex; gap: 8px; align-items: center; margin-top: 28px; padding-top: 17px; border-top: 1px solid var(--rk-line); color: var(--rk-muted); font-size: 11px; }
/* Refine section — lives INSIDE the story card (below the acts), like storybook prosePanel → refineBar
   (content + chat in one card, not a separate right column). */
.kmv-story-refine { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rk-line); }
.kmv-story-refine-head { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.kmv-story-refine-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.kmv-story-refine-head strong { display: block; font-size: 16px; }
.kmv-story-refine-head span { display: block; margin-top: 2px; color: var(--rk-muted); font-size: 12.5px; line-height: 1.45; }
.kmv-story-refine form { display: grid; gap: 10px; }
.kmv-story-refine textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; resize: vertical; border: 1px solid #cfd9d4; border-radius: 13px; color: var(--rk-ink); background: #fff; font-family: inherit; font-size: 14px; line-height: 1.5; outline: none; }
.kmv-story-refine textarea:focus { border-color: #5ba88f; box-shadow: 0 0 0 3px rgba(22,129,95,.1); }
.kmv-story-refine .kmv-primary.is-compact { justify-self: start; }
.kmv-story-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.kmv-story-chips button { padding: 8px 11px; border: 1px solid var(--rk-line); border-radius: 999px; color: #356f5f; background: #f7faf8; font-size: 11px; cursor: pointer; }
.kmv-story-cta, .kmv-style-cta { display: flex; justify-content: flex-end; margin-top: 24px; }
.kmv-story-cta .kmv-primary, .kmv-style-cta .kmv-primary { min-width: 300px; padding: 0 22px; }
.kmv-stage-loading,
.kmv-story-empty { min-height: 58vh; display: grid; place-content: center; justify-items: center; text-align: center; }
.kmv-stage-loading { gap: 12px; }
.kmv-stage-loading .rk-app-loading-cat,
.kmv-story-empty img { width: 105px; height: 105px; }
.kmv-stage-loading .rk-app-loading-text { margin: 0; font-size: 16px; }
.kmv-story-empty h1 { margin: 12px 0 4px; }
.kmv-story-empty p { max-width: 480px; margin: 0 0 18px; color: var(--rk-muted); }

.kmv-style-page { width: min(var(--kmv-page-max), 100%); margin: 0 auto; box-sizing: border-box; }
.kmv-style-story-summary { display: grid; grid-template-columns: auto minmax(0,1fr) minmax(240px,.5fr); gap: 15px; align-items: center; padding: 16px 20px; border-radius: 17px; }
.kmv-style-story-summary > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #16785d; background: #e8f5f0; font-size: 20px; }
.kmv-style-story-summary small, .kmv-style-story-summary strong { display: block; }
.kmv-style-story-summary small { color: #16805f; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.kmv-style-story-summary strong { margin-top: 3px; }
.kmv-style-story-summary div p { margin: 3px 0 0; overflow: hidden; color: var(--rk-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.kmv-style-story-summary > p { display: flex; gap: 9px; align-items: center; margin: 0; color: var(--rk-muted); font-size: 12px; line-height: 1.4; }
.kmv-style-story-summary > p img { width: 50px; }
/* Focus stage — big preview of the selected look + a square thumbnail rail, mirroring the storybook
   style step (story.js styleStepPanel) and the aligned Animation style page. */
/* The big preview IS this step — it grows with the page (was a fixed 1.5fr of a 1120 page, i.e.
   permanently small on a wide screen); the copy column is capped so the image takes the surplus. */
/* auto + justify-content:center — the preview is height-driven now, so a 1fr column would leave a
   couple of hundred pixels of dead air between the picture and its own caption. */
.kmv-style-focus { display: grid; grid-template-columns: auto clamp(240px, 22%, 380px); justify-content: center; gap: 32px; align-items: center; margin-top: 26px; }
/* The style previews are 16:9 (1200x675). The box used to declare aspect-ratio 4/3 AND a hard
   max-height: the height won, so the frame rendered ~2.75:1 and object-fit:cover sliced the top and
   bottom off every preview. Size it by HEIGHT instead — width follows 16:9, so the frame matches
   the source exactly and nothing is cropped, and it grows to eat the dead space under the page.
   The constant is this step's fixed chrome (header + story summary + rail + CTA + margins) PLUS the
   140px the workspace itself reserves — derived, not guessed: this page has no min-height (it was
   removed on purpose, a min-height just moves the dead band inside the card), so the preview is the
   only thing that can absorb slack. 507 measured chrome + 140 = 647; at 715 the page ended 68px
   short of the fold and left a visible band under the CTA (Jeff 2026-07-28). Re-measure this if the
   header/summary/rail heights change. */
.kmv-style-stage img, .kmv-style-stage .kmv-style-blank {
  display: block;
  width: calc(max(300px, 100vh - 647px) * 16 / 9);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--rk-line);
  background: #e9e7e0;
}
.kmv-style-stage .kmv-style-blank { background: linear-gradient(145deg,#e9c897,#8eb7a5); }
.kmv-style-info h2 { margin: 0 0 10px; font: 820 26px/1.2 Georgia, serif; }
.kmv-style-info p { margin: 0; color: var(--rk-muted); font-size: 13.5px; line-height: 1.6; }
.kmv-style-rail { display: flex; gap: 12px; margin-top: 22px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.kmv-style-thumb { position: relative; flex: 0 0 108px; width: 108px; height: 108px; padding: 0; overflow: hidden; border: 2px solid var(--rk-line); border-radius: 15px; background: #e9e7e0; cursor: pointer; transition: transform .16s, border-color .16s; }
.kmv-style-thumb:hover { transform: translateY(-3px); }
.kmv-style-thumb.is-selected { border-color: #16815f; }
.kmv-style-thumb img, .kmv-style-thumb .kmv-style-blank { display: block; width: 100%; height: 100%; object-fit: cover; }
.kmv-style-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #218164; box-shadow: 0 2px 8px rgba(0,0,0,.18); font-size: 12px; }
.kmv-style-cta { align-items: center; gap: 20px; }
@media (max-width: 860px) { .kmv-style-focus { grid-template-columns: 1fr; } }
.kmv-style-cta > p { max-width: 560px; margin: 0; color: var(--rk-muted); font-size: 12px; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes kmv-spin { to { transform: rotate(360deg); } }

/* Kids Song Home — the stage is a light product object, not a second design system. */
.send-button.is-kids-song { width: auto; min-width: 156px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; gap: 8px; border-radius: 14px; }
.send-button.is-kids-song svg { flex: none; width: 20px; height: 20px; }
.send-button.is-kids-song span { display: inline; white-space: nowrap; font-size: 13px; font-weight: 850; line-height: 1; }
.kids-mv-home-dims { grid-template-columns: minmax(0, 1fr); gap: 9px; margin-block-start: 2px; }
.kmv-input-relations { width: min(830px, 100%); margin-block-start: 4px; padding: 14px; border: 1px solid var(--rk-line); border-radius: var(--rk-radius); background: var(--rk-surface); box-shadow: var(--rk-shadow-card); }
.kmv-input-relations[hidden] { display: none; }
.kmv-input-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-block-end: 12px; }
.kmv-input-head > div { display: grid; gap: 2px; min-width: 0; }
.kmv-input-head strong { color: var(--rk-ink); font-size: 15px; }
.kmv-input-head span, .kmv-input-head p, .kmv-input-card-copy span { color: var(--rk-ink-soft); font-size: 12px; line-height: 1.45; }
.kmv-input-head p { max-width: 320px; margin: 0; text-align: end; }
.kmv-input-list { display: grid; gap: 8px; }
.kmv-input-card { display: grid; grid-template-columns: 42px minmax(120px, 1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid var(--rk-line); border-radius: var(--rk-radius-sm); background: var(--rk-paper); }
.kmv-input-card > img { inline-size: 42px; block-size: 42px; border-radius: 10px; object-fit: cover; background: var(--rk-paper-2); }
.kmv-input-card-copy { display: grid; gap: 2px; min-width: 0; }
.kmv-input-card-copy strong { overflow: hidden; color: var(--rk-ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.kmv-relation-options { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--rk-line); border-radius: 999px; background: var(--rk-paper-2); }
.kmv-relation-options button { min-block-size: 34px; padding-inline: 11px; border: 0; border-radius: 999px; background: transparent; color: var(--rk-ink-soft); font: 800 12px/1 var(--rk-font-body); white-space: nowrap; }
.kmv-relation-options button:hover { color: var(--rk-ink); }
.kmv-relation-options button:focus-visible { outline: var(--rk-focus-ring); outline-offset: 1px; }
.kmv-relation-options button.is-active { background: var(--rk-surface); color: var(--rk-emerald-hover); box-shadow: var(--rk-shadow-card); }
.kmv-relation-options button:disabled { cursor: wait; opacity: .48; }
.kmv-consent { grid-column: 2 / -1; display: inline-flex; align-items: flex-start; gap: 8px; color: var(--rk-ink-soft); font-size: 12px; line-height: 1.45; }
.kmv-consent input { inline-size: 18px; block-size: 18px; flex: none; margin: 0; accent-color: var(--rk-emerald); }
.kmv-consent input:focus-visible { outline: var(--rk-focus-ring); outline-offset: 2px; }

/* Each dimension (age / length / language) is its own full-width row: label left, chips wrap
   right — the same arrangement as the storybook composer. Chips hug their content (no stretch),
   so the language row's 8 common + "more" flow and wrap cleanly. */
.kids-mv-home-dims .kmv-entry-mode { grid-column: 1 / -1; }
.kids-mv-home-dims .sb-dim-chips { flex-wrap: wrap; row-gap: 8px; }
.kids-mv-home-dims .sb-chip { flex: 0 0 auto; }
.kids-mv-home-dims .kmv-music-style-row { grid-column: 1 / -1; align-items: flex-start; }
.kids-mv-home-dims .kmv-music-style-row .sb-dim-label { flex: 0 0 auto; inline-size: auto; min-inline-size: 4em; padding-block-start: 8px; white-space: nowrap; }
.kids-mv-home-dims .kmv-music-style-row .sb-dim-chips { min-width: 0; }
.kids-mv-home-workspace { width: min(1160px, calc(100vw - 210px)); margin: 8px auto 0; transform: translateX(-22px); }
.kids-mv-library-title { margin: 0 0 -2px 62px; font-size: 32px; line-height: 1.2; letter-spacing: -.035em; }
/* ── Premiere-stage hero (2026-07-21 redesign): one strict 16:9 screen is the whole show.
   Slim wood beam + two spotlights above, slender curtain strips OUTSIDE the screen edges,
   a wood apron strip below carrying all metadata (no side info panel), sitting mascot at
   the left floor line. All three lifecycle states render inside the same screen. ── */
.kids-mv-stage { position: relative; width: min(1010px, 100%); margin: 8px auto 0; padding: 0 86px; box-sizing: border-box; }
.kids-mv-stage-frame { position: relative; }
.kids-mv-stage-beam { position: relative; z-index: 40; height: 16px; margin: 0 -30px 10px; border-radius: 8px; background: linear-gradient(180deg, #ecd3a4 0%, #d6ae7a 58%, #c2945f 100%); box-shadow: 0 6px 12px rgba(82,54,29,.18), inset 0 1px 0 rgba(255,255,255,.42); }
.kids-mv-stage-spot { position: absolute; top: 11px; width: 52px; height: auto; pointer-events: none; filter: drop-shadow(0 5px 7px rgba(60,44,24,.22)); }
.kids-mv-stage-spot.is-left { left: 9%; }
.kids-mv-stage-spot.is-right { right: 9%; }
.kids-mv-stage-curtain { position: absolute; z-index: 30; top: 16px; width: 86px; height: calc(100% - 78px); object-fit: contain; object-position: top center; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(31,52,42,.22)); }
.kids-mv-stage-curtain.is-left { left: -46px; }
.kids-mv-stage-curtain.is-right { right: -46px; }
.kids-mv-stage-screen { position: relative; z-index: 20; box-sizing: border-box; aspect-ratio: 16 / 9; overflow: hidden; padding: 9px; border-radius: 16px 16px 0 0; background: linear-gradient(180deg, #e2c191 0%, #cfa672 100%); box-shadow: 0 18px 34px rgba(67,49,30,.18), 0 2px 6px rgba(67,49,30,.12); }
/* Warm spotlight pools falling on the top screen corners (asset-free). */
.kids-mv-stage-screen::after { content: ''; position: absolute; inset: 9px; z-index: 10; pointer-events: none; border-radius: 9px; background: radial-gradient(38% 30% at 12% 0%, rgba(255,232,178,.17) 0%, rgba(255,232,178,0) 70%), radial-gradient(38% 30% at 88% 0%, rgba(255,232,178,.17) 0%, rgba(255,232,178,0) 70%); }
.kids-mv-stage-screen video { display: block; width: 100%; height: 100%; border-radius: 9px; background: #191d1c; object-fit: cover; }
.kids-mv-screen-audio, .kids-mv-screen-progress { position: relative; width: 100%; height: 100%; border-radius: 9px; overflow: hidden; background: #191d1c; }
.kids-mv-screen-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kids-mv-screen-audio audio { display: none; }
/* Audio state: one clean centered round play button over the film-set scene
   (the artwork's center is intentionally calm to host it). */
.kids-mv-screen-play { position: absolute; left: 50%; top: 47%; z-index: 20; display: grid; width: 86px; height: 86px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: #1d8a67; background: rgba(255,253,248,.94); box-shadow: 0 12px 24px rgba(20,25,22,.28); transform: translate(-50%,-50%); cursor: pointer; transition: transform .18s ease-out; }
.kids-mv-screen-play span { display: grid; place-items: center; }
.kids-mv-screen-play svg { width: 36px; height: 36px; }
.kids-mv-screen-play:hover { transform: translate(-50%,-50%) scale(1.05); }
.kids-mv-screen-play[aria-pressed="true"] { color: white; background: rgba(32,164,122,.92); }
.kids-mv-screen-audio-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 26px 14px 10px; background: linear-gradient(180deg, rgba(16,18,16,0) 0%, rgba(16,18,16,.72) 60%); }
.kids-mv-screen-audio-bar .kids-mv-audio-progress { flex: 1 1 auto; }
.kids-mv-screen-audio-bar .kids-mv-audio-time { color: rgba(255,255,255,.92); }
.kids-mv-screen-audio-bar .kids-mv-audio-mute { color: white; }
.kids-mv-screen-audio-bar .kids-mv-audio-volume { width: 84px; }
.kids-mv-screen-progress .kids-mv-screen-cover { filter: brightness(.8) saturate(.9); }
.kids-mv-screen-progress-label { position: absolute; left: 50%; bottom: 18px; z-index: 20; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; color: #f4efe6; background: rgba(24,26,24,.62); font-size: 13.5px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); }
/* The apron is the same width as the screen and sits flush against its bottom edge —
   screen + apron read as ONE piece of furniture (matches the S1 mockup, Andy 2026-07-21). */
.kids-mv-stage-apron { position: relative; z-index: 35; display: flex; align-items: center; gap: 14px; box-sizing: border-box; min-height: 58px; margin: 0; padding: 10px 18px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #ecd2a4 0%, #d6b080 100%); box-shadow: 0 14px 24px rgba(67,49,30,.16), inset 0 1px 0 rgba(255,255,255,.35); }
.kids-mv-apron-copy { display: flex; flex: 1 1 auto; align-items: baseline; gap: 12px; min-width: 0; }
.kids-mv-apron-copy strong { overflow: hidden; color: #3a2d1c; font-size: 17px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
/* Mascot: the tv-peek pose hooks its paws over the top beam (same gesture family as the
   animation home's cat-on-TV) — head above the beam, paw line resting on the wood. */
.kids-mv-stage-mascot { position: absolute; z-index: 45; top: -71px; right: 158px; width: 88px; height: auto; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(61,45,31,.18)); }
/* The tutorial button rides the apron as its last flex item, so it lands at the right-hand end of the
   strip under the sample — NOT floating over the poster the way the animation television carries it.
   The stage's screen is framed by curtains and a mascot leans over its top beam; an absolutely
   positioned button in that rectangle would sit on the film. The base rule is `position: absolute`,
   so the variant has to hand it back to the flow. Ghost styling stays: it is an offer, and the
   apron's own primary CTA (present on the project stage) must keep out-ranking it.
   Andy 2026-08-21: 「MV 的 show case 这里展示 MV 的教程按钮」. */
.rk-sc-tutorial.is-on-kmv-apron { position: static; flex: none; border-color: rgba(58,45,28,.18); background: rgba(255,255,255,.72); color: #6a563c; }
.rk-sc-tutorial.is-on-kmv-apron:hover,
.rk-sc-tutorial.is-on-kmv-apron:focus-visible { border-color: #2aa27d; background: #fff; color: #1c8a66; }
.kids-mv-media-badges { display: flex; flex: none; align-items: center; gap: 9px; }
.kids-mv-media-badge { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; box-sizing: border-box; padding: 6px 11px; border: 1px solid rgba(17,141,106,.18); border-radius: 999px; color: #25876b; background: #e9f5ef; font-size: 12px; font-weight: 800; white-space: nowrap; }
.kids-mv-media-badge svg { width: 14px; height: 14px; }
.kids-mv-media-badge.is-solid { border-color: #2aa27d; color: white; background: #2aa27d; }
.kids-mv-media-badge.is-building { border-color: #efb46c; color: #c9781f; background: #fff4e3; }
/* A dead compose run, not a slow one — it must not read as another shade of "in production". */
.kids-mv-media-badge.is-failed { border-color: #e2a3a3; color: #b3453f; background: #fdeeed; }
.kids-mv-media-primary { display: inline-flex; flex: none; min-height: 42px; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; padding: 0 18px; border-radius: 11px; color: white; background: #20a47a; box-shadow: 0 8px 18px rgba(32,164,122,.17); font-size: 15px; font-weight: 850; text-decoration: none; }
.kids-mv-media-primary:hover { background: #178c68; transform: translateY(-1px); }
.kids-mv-media-primary:focus-visible, .kids-mv-screen-play:focus-visible, .kids-mv-audio-mute:focus-visible { outline: 3px solid rgba(32,164,122,.25); outline-offset: 3px; }
.kids-mv-audio-progress, .kids-mv-audio-volume { height: 16px; margin: 0; accent-color: #20a47a; cursor: pointer; }
.kids-mv-audio-time { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.kids-mv-audio-mute { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.kids-mv-audio-mute svg { width: 20px; height: 20px; }
.kids-mv-library-state { display: grid; min-height: 300px; place-content: center; justify-items: center; margin-top: 26px; border: 1px solid var(--rk-line); border-radius: 24px; color: var(--rk-muted); background: rgba(255,255,255,.45); text-align: center; }
.kids-mv-library-state img { width: 120px; margin-bottom: 10px; }
.kids-mv-library-state h2 { margin: 4px 0 8px; color: var(--rk-ink); font-size: 25px; }
.kids-mv-library-state p { margin: 0; }
.kids-mv-stage-spinner { width: 26px; height: 26px; border: 3px solid rgba(32,164,122,.18); border-top-color: #20a47a; border-radius: 50%; animation: kmv-spin .8s linear infinite; }
.kids-mv-projects-head { margin: 24px 0 4px 62px; }
.kids-mv-projects-head h2 { margin: 0; font-size: 20px; }
.kids-mv-projects-rail { position: relative; margin-top: 4px; padding: 0 62px 25px; overflow: visible; }
.kids-mv-projects-grid { position: relative; z-index: 20; display: grid; grid-auto-columns: 248px; grid-auto-flow: column; gap: 22px; padding: 8px 8px 18px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity; }
.kids-mv-projects-grid::-webkit-scrollbar { width: 0; height: 0; display: none; }
/* Recent = flat 16:9 video thumbnail cards (matches the real MV output ratio). */
.kids-mv-recent-card, .kids-mv-new-card { min-width: 0; padding: 0; border: 0; border-radius: 13px; color: var(--rk-ink); background: transparent; text-align: left; cursor: pointer; scroll-snap-align: start; }
.kids-mv-recent-card:focus-visible, .kids-mv-new-card:focus-visible { outline: 3px solid rgba(32,164,122,.28); outline-offset: 4px; }
.kids-mv-recent-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(111,91,61,.18); border-radius: 12px; background: #eee5d4; box-shadow: 0 10px 18px rgba(74,50,29,.13); transition: transform .22s ease, box-shadow .22s ease; }
.kids-mv-recent-art > img:not(.kids-mv-recent-artwork) { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Same music-player cover treatment at card scale (square track art never stretches). */
.kids-mv-recent-art > img.is-backdrop { position: absolute; inset: 0; filter: blur(14px) brightness(.85); transform: scale(1.15); }
.kids-mv-recent-artwork { position: absolute; left: 50%; top: 50%; z-index: 5; height: 74%; aspect-ratio: 1 / 1; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.42); border-radius: 8px; object-fit: cover; box-shadow: 0 6px 14px rgba(10,12,10,.3); }
.kids-mv-recent-state, .kids-mv-recent-duration, .kids-mv-recent-play { z-index: 10; }
.kids-mv-recent-duration { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 7px; color: white; background: rgba(17,20,18,.72); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* Status tag pinned to the top-right corner of the thumbnail (title alone lives below the art). */
.kids-mv-recent-state { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; max-width: calc(100% - 16px); padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); color: #4a4438; background: rgba(252,250,244,.92); font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 3px 8px rgba(31,27,23,.18); }
.kids-mv-recent-state.is-video { color: #0d6e51; background: rgba(233,245,239,.94); border-color: rgba(32,164,122,.35); }
.kids-mv-recent-state.is-audio { color: #a05f12; background: rgba(255,244,227,.94); border-color: rgba(239,180,108,.5); }
.kids-mv-recent-state.is-clips { color: #a05f12; background: rgba(255,244,227,.94); border-color: rgba(239,180,108,.5); }
/* Wins over every media-state variant above: the compose died, whatever else is playable. */
.kids-mv-recent-state.is-failed { color: #b3453f; background: rgba(253,238,237,.95); border-color: rgba(226,163,163,.6); }
.kids-mv-recent-play { position: absolute; left: 50%; top: 50%; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: white; background: rgba(22,30,26,.62); box-shadow: 0 5px 12px rgba(20,25,22,.18); opacity: 0; transform: translate(-50%,-50%); transition: opacity .18s ease; }
.kids-mv-recent-play svg { width: 20px; height: 20px; }
.kids-mv-recent-copy { display: block; min-width: 0; padding: 8px 4px 0; }
.kids-mv-recent-copy strong { display: block; min-width: 0; overflow: hidden; font-size: 15px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.kids-mv-recent-card:hover .kids-mv-recent-art, .kids-mv-recent-card.is-active .kids-mv-recent-art { transform: translateY(-4px); box-shadow: 0 15px 24px rgba(74,50,29,.2); }
.kids-mv-recent-card:hover .kids-mv-recent-play { opacity: 1; }
.kids-mv-recent-card.is-active .kids-mv-recent-copy strong { color: #168664; }
.kids-mv-new-card { display: grid; }
.kids-mv-new-art { display: grid; aspect-ratio: 16 / 9; place-items: center; border: 2px dashed rgba(111,91,61,.32); border-radius: 12px; color: #1b8a69; background: rgba(255,255,255,.4); transition: border-color .18s ease, background .18s ease; }
.kids-mv-new-art svg { width: 34px; height: 34px; }
.kids-mv-new-card:hover .kids-mv-new-art { border-color: rgba(32,164,122,.5); background: rgba(233,245,239,.6); }
.kids-mv-new-card strong { overflow: hidden; padding: 8px 4px 0; color: #247b62; font-size: 15px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.kids-mv-projects-next, .kids-mv-projects-prev { position: absolute; z-index: 40; top: 62px; display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(104,88,66,.16); border-radius: 50%; color: #302f2b; background: #fffefa; box-shadow: 0 9px 18px rgba(78,57,35,.15); cursor: pointer; }
.kids-mv-projects-next { right: -23px; }
.kids-mv-projects-prev { left: -23px; }
.kids-mv-projects-next:hover, .kids-mv-projects-prev:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(78,57,35,.19); }
.kids-mv-projects-next:focus-visible, .kids-mv-projects-prev:focus-visible { outline: 3px solid rgba(32,164,122,.25); outline-offset: 3px; }
.kids-mv-projects-next svg, .kids-mv-projects-prev svg { width: 22px; height: 22px; }
.kids-mv-projects-next svg { transform: rotate(180deg); }

/* (song-language picker removed 2026-07-21 — lyrics language is auto-detected from the idea text) */
@media (max-width: 1180px) {
  .kids-mv-home-workspace { width: min(815px, calc(100vw - 190px)); transform: none; }
  .kids-mv-library-title { margin-inline-start: 0; }
  .kids-mv-stage { padding: 0 64px; }
  .kids-mv-stage-mascot { display: none; }
  .kids-mv-projects-head { margin-inline-start: 0; }
  .kids-mv-projects-rail { padding-inline: 0; }
}

@media (max-width: 860px) {
  .kids-mv-home-workspace { width: min(680px, calc(100vw - 28px)); margin-top: 12px; }
  .kids-mv-library-title { margin-inline-start: 8px; font-size: 27px; }
  .kids-mv-stage { padding: 0; }
  .kids-mv-stage-curtain, .kids-mv-stage-spot { display: none; }
  .kids-mv-stage-beam { margin: 0 0 8px; }
  .kids-mv-stage-apron { flex-wrap: wrap; margin: 0; border-radius: 0 0 12px 12px; }
  .kids-mv-projects-head { margin: 14px 8px 4px; }
  .kids-mv-projects-rail { margin-inline: -6px; }
  .kids-mv-projects-next, .kids-mv-projects-prev { display: none; }
}

@media (max-width: 520px) {
  .send-button.is-kids-song { min-width: 48px; padding: 0 12px; }
  .send-button.is-kids-song span { display: none; }
  .kmv-input-relations { padding: 12px; }
  .kmv-input-head { display: grid; gap: 6px; }
  .kmv-input-head p { max-width: none; text-align: start; }
  .kmv-input-card { grid-template-columns: 42px minmax(0, 1fr); }
  .kmv-relation-options { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); inline-size: 100%; }
  .kmv-relation-options button { min-inline-size: 0; padding-inline: 6px; }
  .kmv-consent { grid-column: 1 / -1; }
  .kids-mv-home-workspace { width: 100%; }
  .kids-mv-library-title { margin-inline: 12px; font-size: 24px; }
  .kids-mv-stage-screen { padding: 6px; border-radius: 12px 12px 0 0; }
  .kids-mv-stage-screen::after { inset: 6px; }
  .kids-mv-screen-play { width: 62px; height: 62px; }
  .kids-mv-screen-play svg { width: 26px; height: 26px; }
  .kids-mv-audio-volume { display: none; }
  .kids-mv-stage-apron { gap: 10px; min-height: 0; padding: 8px 12px; }
  .kids-mv-media-badges { flex-wrap: wrap; }
  .kids-mv-projects-head { margin-inline: 14px; }
  .kids-mv-projects-rail { margin-inline: 0; }
  .kids-mv-projects-grid { grid-auto-columns: 205px; gap: 14px; padding-inline: 14px; }
}

@media (max-width: 1080px) {
  .kmv-workspace { width: min(920px, 100%); }
  .kmv-workspace-top { grid-template-columns: 120px 1fr 120px; }
  .kmv-stepper span:not(.is-active) { display: none; }
  .kmv-stepper i { display: none; }
  .kmv-music-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .kmv-workspace { width: 100%; padding-top: 10px; }
  .kmv-workspace-top { grid-template-columns: 1fr auto; padding: 0 14px 10px; }
  .kmv-stepper { display: none; }
  .kmv-music-grid { padding: 24px 12px 0; gap: 20px; }
  .kmv-story-page, .kmv-style-page { padding: 24px 12px 0; }
  .kmv-story-song { grid-template-columns: auto minmax(0,1fr); }
  .kmv-story-song audio { grid-column: 1 / -1; }
  .kmv-story-paper { padding: 20px; }
  .kmv-story-cta .kmv-primary, .kmv-style-cta .kmv-primary { width: 100%; min-width: 0; }
  .kmv-style-story-summary { grid-template-columns: auto minmax(0,1fr); }
  .kmv-style-story-summary > p { grid-column: 1 / -1; }
  .kmv-style-cta { display: grid; }
  .kmv-lyrics-paper { padding: 18px; border-radius: 16px; }
  .kmv-lyrics-head { grid-template-columns: 38px 1fr; }
  .kmv-quiet-button { grid-column: 1 / -1; }
  .kmv-take { padding: 14px; }
  .kmv-take-main { grid-template-columns: 92px 1fr; gap: 12px; }
  .kmv-take-title-row { display: block; }
  .kmv-generated-pill { display: inline-block; margin-top: 8px; }
  .kmv-take-actions { grid-template-columns: 1fr; }
  .kmv-sync-card { grid-template-columns: auto minmax(0,1fr); }
  .kmv-sync-card > button, .kmv-sync-actions { grid-column: 1 / -1; }
  .kmv-sync-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .kmv-modal-backdrop { padding: 8px; }
  .kmv-timing-modal { max-height: calc(100vh - 16px); padding: 18px; border-radius: 16px; }
  .kmv-timing-line-main { grid-template-columns: 28px minmax(0,1fr); }
  .kmv-timing-range { grid-column: 2; }
  .kmv-timing-bar { grid-column: 2; }
  .kmv-timing-controls { grid-template-columns: 1fr 1fr; padding-inline-start: 52px; }
  .kmv-timing-modal > footer { display: block; }
  .kmv-timing-modal > footer > div { margin-top: 10px; }
  .kmv-sandbox-badge { grid-column: 2; grid-row: 1; }
}

/* Entry mode tabs (always visible before Kids MV submission) — compact single-line cards;
   the per-mode explanation lives behind an (i) hover/focus tooltip instead of card body text. */
.kmv-entry-mode {
  display: flex; align-items: center; gap: 16px; width: 100%; padding-block: 2px 10px;
  border-block-end: 1px solid var(--rk-line);
}
.kmv-entry-mode-title { flex: none; color: var(--rk-ink); font-size: 15px; font-weight: 800; }
.kmv-mode-summary { display: flex; align-items: center; gap: 10px 14px; min-width: 0; }
.kmv-mode-summary-value { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--rk-ink); }
.kmv-mode-summary-value .kmv-mode-icon { background: var(--rk-emerald-soft); color: var(--rk-emerald); }
.kmv-mode-summary-value strong { font-size: 14.5px; font-weight: 800; white-space: nowrap; }
.kmv-mode-summary small { color: var(--rk-ink-soft); font-size: 12.5px; line-height: 1.45; }
.kmv-mode-options { display: flex; gap: 10px; min-width: 0; }
.kmv-mode-option {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 12px; text-align: start; cursor: pointer;
  border: 1.5px solid var(--rk-line); border-radius: 999px;
  background: var(--rk-surface); color: var(--rk-ink); font: inherit;
  transition: border-color .16s ease-out, box-shadow .16s ease-out, background-color .16s ease-out;
}
.kmv-mode-option:hover { border-color: var(--rk-card-hover-border); box-shadow: var(--rk-shadow-card); }
.kmv-mode-option:focus-visible { outline: 3px solid var(--rk-focus-ring); outline-offset: 2px; border-color: var(--rk-emerald); }
.kmv-mode-option.is-active { border-color: var(--rk-emerald); background: var(--rk-emerald-soft); box-shadow: 0 0 0 1px var(--rk-emerald); }
.kmv-mode-icon {
  display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none;
  border-radius: 50%; background: var(--rk-paper-2); color: var(--rk-ink-soft);
}
.kmv-mode-icon svg { width: 16px; height: 16px; stroke-width: 1.7; }
.kmv-mode-option.is-active .kmv-mode-icon { background: var(--rk-surface); color: var(--rk-emerald); }
.kmv-mode-option strong { font-size: 14.5px; font-weight: 800; white-space: nowrap; }
/* (i) tooltip: shown on hover of the icon or keyboard focus; sits above, never clipped by the row. */
.kmv-mode-info { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; color: var(--rk-muted); }
.kmv-mode-info svg { width: 15px; height: 15px; stroke-width: 1.6; }
.kmv-mode-info:hover, .kmv-mode-info:focus { color: var(--rk-emerald); outline: none; }
.kmv-mode-tip {
  position: absolute; bottom: calc(100% + 9px); left: 50%; z-index: 60;
  width: max-content; max-width: 250px; padding: 9px 12px; transform: translateX(-50%);
  border: 1px solid var(--rk-line); border-radius: 10px;
  color: var(--rk-ink); background: var(--rk-surface); box-shadow: var(--rk-shadow-panel);
  font-size: 12.5px; font-weight: 500; line-height: 1.5; white-space: normal; text-align: start;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .14s ease-out;
}
.kmv-mode-info:hover .kmv-mode-tip, .kmv-mode-info:focus .kmv-mode-tip { opacity: 1; visibility: visible; }
/* Age + Length share one row: two label+chips pairs in a single flex line. */
.kmv-dim-duo { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.kmv-dim-duo .sb-dim-label.is-second { margin-inline-start: 14px; }

@media (max-width: 640px) {
  .kmv-entry-mode { flex-wrap: wrap; gap: 10px; }
  .kmv-mode-summary { align-items: flex-start; flex-direction: column; gap: 7px; }
  .kmv-mode-options { flex-wrap: wrap; }
  .kmv-dim-duo .sb-dim-label.is-second { margin-inline-start: 0; }
}

/* Singing pipeline: mode badge in the workspace header + the performance-plan step */
.kmv-mode-slot { justify-self: end; display: inline-flex; gap: 8px; align-items: center; }
.kmv-sing-badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: #e7f5ef; color: #0f6d54; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.kmv-plan-page { max-width: 860px; margin: 0 auto; padding-top: 22px; }
.kmv-plan-head { text-align: center; margin-bottom: 22px; }
.kmv-plan-head p { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #16815f; font-weight: 800; }
.kmv-plan-head h1 { margin: 0 0 8px; font-size: 26px; color: var(--rk-ink); }
.kmv-plan-head span { color: var(--rk-muted); font-size: 14px; }
.kmv-plan-placeholder { display: grid; place-items: center; gap: 12px; padding: 40px 20px; color: var(--rk-muted); }
.kmv-plan-placeholder img { width: 120px; height: auto; }
.kmv-plan-shots { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.kmv-plan-shot {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--rk-line); border-radius: 14px; background: var(--rk-surface);
  border-left: 4px solid var(--rk-line);
}
.kmv-plan-shot.is-sing { border-left-color: #0f6d54; }
.kmv-plan-shot.is-act { border-left-color: #c98a1a; }
.kmv-plan-shot.is-narrative { border-left-color: #6b7280; }
.kmv-plan-shot-no { font-weight: 800; color: var(--rk-muted); }
.kmv-plan-shot-type { font-weight: 720; color: var(--rk-ink); }
.kmv-plan-shot-time { color: var(--rk-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.kmv-plan-cta { display: flex; justify-content: center; margin-top: 8px; }

/* Audition (试听): the line currently sounding during correction-modal playback */
.kmv-timing-line.is-playing { background: #e7f5ef; box-shadow: inset 3px 0 0 #0f6d54; }
.kmv-timing-line.is-playing .kmv-timing-bar i { background: #0f6d54; }

/* P4: performance-plan timeline strip + per-shot type toggles */
.kmv-plan-legend { display: flex; gap: 16px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.kmv-plan-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--rk-muted); font-weight: 700; }
.kmv-plan-legend-item i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.kmv-plan-legend-item.is-sing i { background: #0f6d54; }
.kmv-plan-legend-item.is-act i { background: #e6b25a; }
.kmv-plan-legend-item.is-narrative i { background: #cbd0d6; }
.kmv-plan-legend-divider { width: 1px; min-height: 18px; background: var(--rk-line); }
.kmv-plan-sync-count { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: var(--rk-paper-2); color: var(--rk-ink-soft); font-size: 12px; font-weight: 750; }
.kmv-plan-sync-count.is-audio_driven { background: var(--rk-emerald-soft); color: var(--rk-emerald); }
.kmv-plan-timeline { display: flex; height: 22px; border-radius: 8px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--rk-line); }
.kmv-plan-seg { position: relative; min-width: 2px; }
.kmv-plan-seg.is-sing { background: #0f6d54; }
.kmv-plan-seg.is-act { background: #e6b25a; }
.kmv-plan-seg.is-narrative { background: #cbd0d6; }
.kmv-plan-seg b { position: absolute; top: 0; bottom: 0; background: rgba(255, 255, 255, .5); }
.kmv-plan-shot-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kmv-plan-shot-lines { color: var(--rk-muted); font-size: 12px; }
.kmv-plan-shot-types { display: inline-flex; gap: 4px; }
.kmv-plan-shot-types button { padding: 5px 10px; border: 1px solid var(--rk-line); border-radius: 999px; background: var(--rk-surface); color: var(--rk-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.kmv-plan-shot-types button.is-active { background: #0f6d54; border-color: #0f6d54; color: #fff; }
.kmv-plan-shot-types button:focus-visible, .kmv-plan-sync-options button:focus-visible { outline: 3px solid var(--rk-focus-ring); outline-offset: 2px; }
.kmv-plan-shot-types button:disabled { opacity: .5; cursor: default; }
.kmv-plan-sync { grid-column: 2 / -1; display: grid; grid-template-columns: minmax(140px, auto) minmax(0, 1fr); gap: 8px 14px; align-items: center; padding-block-start: 10px; border-block-start: 1px solid var(--rk-line); }
.kmv-plan-sync-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kmv-plan-sync-head strong { color: var(--rk-ink-soft); font-size: 12px; }
.kmv-plan-sync-head span { padding: 3px 8px; border-radius: 999px; background: var(--rk-emerald-soft); color: var(--rk-emerald); font-size: 11px; font-weight: 800; white-space: nowrap; }
.kmv-plan-sync-options { display: inline-flex; justify-content: flex-end; gap: 6px; }
.kmv-plan-sync-options button { padding: 6px 10px; border: 1px solid var(--rk-line); border-radius: 999px; background: var(--rk-surface); color: var(--rk-ink-soft); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.kmv-plan-sync-options button.is-active { border-color: var(--rk-emerald); background: var(--rk-emerald-soft); color: var(--rk-emerald); }
.kmv-plan-sync-options button:disabled { opacity: .5; cursor: default; }
.kmv-plan-sync-note { grid-column: 1 / -1; margin: 0; color: var(--rk-ink-soft); font-size: 12px; line-height: 1.5; }
.kmv-plan-sync-note.is-warning { padding: 8px 10px; border-radius: var(--rk-radius-sm); background: color-mix(in srgb, var(--rk-warn) 8%, var(--rk-surface)); color: var(--rk-ink); }
.kmv-plan-recomputing { align-self: center; color: var(--rk-muted); font-size: 13px; margin-inline-end: 12px; }
@media (max-width: 640px) {
  .kmv-plan-shot { grid-template-columns: 28px 1fr; }
  .kmv-plan-shot-types { grid-column: 1 / -1; margin-top: 8px; }
  .kmv-plan-sync { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .kmv-plan-sync-options { justify-content: stretch; }
  .kmv-plan-sync-options button { flex: 1; }
  .kmv-plan-sync-note { grid-column: 1; }
  .kmv-plan-legend-divider { display: none; }
}

/* Kids MV music room — balanced, low-density composition */
.kmv-music-page {
  position: relative;
  overflow: hidden;
  /* Fills the desk instead of sizing to content: the hero and the footer keep their natural
     height and the three-column grid below takes whatever is left.
     2026-08-02 (Andy, 1366×768-class screens): min-height alone let the columns push the page to
     875px on a 730px viewport, so the single footer action sat below the fold and the creator had
     to scroll the whole page to move on. The desk height is now a real ceiling and the columns
     scroll inside it — same contract as the global-asset canvas. */
  height: calc(var(--kmv-desk-h) - 14px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 14px 20px 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--rk-line) 82%, transparent);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 4%, rgba(129, 195, 170, .13), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(250,247,240,.88));
  box-shadow: 0 18px 54px rgba(65, 52, 37, .07);
}
.kmv-music-hero, .kmv-music-page > .kmv-music-grid, .kmv-music-page > .kmv-sync-card { position: relative; z-index: 1; }
.kmv-music-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 0 4px 12px; border-bottom: 1px solid var(--rk-line); }
.kmv-song-heading { min-width: 0; }
.kmv-song-kicker { display: block; margin-bottom: 4px; color: var(--rk-emerald); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.kmv-title-line { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; min-width: 0; }
.kmv-music-page .kmv-title-field { min-width: 220px; max-width: 520px; flex: 1 1 300px; display: block; }
.kmv-music-page .kmv-title-field input { width: 100%; box-sizing: border-box; min-height: 40px; padding: 0; font: 850 clamp(27px, 2.6vw, 38px)/1.08 Georgia, 'Noto Serif SC', serif; text-overflow: ellipsis; }
.kmv-music-page .kmv-title-field input:not([readonly]) { padding-bottom: 5px; border-bottom: 2px solid #8fc4b3; }
.kmv-song-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; padding-top: 1px; }
.kmv-song-tools .kmv-quiet-button { min-height: 40px; display: inline-flex; gap: 7px; align-items: center; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.76); font-size: 12px; white-space: nowrap; }
.kmv-song-tools .kmv-quiet-button.is-primary { border-color: var(--rk-emerald); color: #fff; background: var(--rk-emerald); }
.kmv-song-tools .kmv-quiet-button:focus-visible, .kmv-info-button:focus-visible, .kmv-lyrics-nav-list button:focus-visible, .kmv-audio-player button:focus-visible, .kmv-audio-player input:focus-visible { outline: var(--rk-focus-ring); outline-offset: 2px; }

/* Was height: clamp(430px, calc(100vh - 340px), 560px) — the 560px ceiling is what kept this page
   short and top-anchored on a tall screen. It now grows with the desk instead. */
/* 2026-08-02 (Andy, short screens): a 430px floor plus flex-basis:auto let the three columns push
   the footer out of the card on a 730px viewport — the single "next" action was clipped away by the
   card's own overflow:hidden and the creator had no way forward. The row now takes exactly the
   leftover height (flex-basis 0) and each column scrolls inside it, like the global-asset canvas. */
.kmv-music-page .kmv-music-grid { flex: 1 1 0; min-height: 0; height: 0; display: grid; grid-template-columns: minmax(132px, .35fr) minmax(360px, 1.12fr) minmax(340px, .98fr); gap: 16px; align-items: stretch; padding: 12px 0 0; }
.kmv-music-page .kmv-music-grid > * { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.kmv-lyrics-nav, .kmv-music-page .kmv-lyrics-paper, .kmv-music-page .kmv-takes-panel { min-width: 0; min-height: 0; border: 1px solid var(--rk-line); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 0 10px 28px rgba(59,48,35,.045); }
.kmv-lyrics-nav { padding: 14px 10px; overflow-y: auto; }
.kmv-lyrics-nav-title { display: flex; gap: 8px; align-items: center; padding: 4px 8px 12px; color: var(--rk-ink); }
.kmv-lyrics-nav-title > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--rk-emerald); background: var(--rk-emerald-soft); }
.kmv-lyrics-nav-title svg { width: 16px; height: 16px; stroke-width: 1.8; }
.kmv-lyrics-nav-title strong { font-size: 14px; }
.kmv-lyrics-nav-list { display: grid; gap: 5px; }
.kmv-lyrics-nav-list button { width: 100%; min-height: 38px; display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 0 10px; border: 0; border-radius: 10px; color: var(--rk-ink-soft); background: transparent; font: 750 13px/1 var(--rk-font-body); text-align: start; cursor: pointer; }
.kmv-lyrics-nav-list button:hover { background: var(--rk-paper-2); color: var(--rk-ink); }
.kmv-lyrics-nav-list button.is-active { color: var(--rk-emerald); background: var(--rk-emerald-soft); }
.kmv-lyrics-nav-list small { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; color: inherit; background: rgba(255,255,255,.72); font-size: 10px; }

.kmv-music-page .kmv-lyrics-paper { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; padding: 0; border-radius: 18px; }
.kmv-lyrics-reader-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 18px 13px; border-bottom: 1px solid var(--rk-line); }
.kmv-lyrics-reader-head > div { display: grid; gap: 2px; }
.kmv-lyrics-reader-head strong { font-size: 15px; }
.kmv-lyrics-reader-head > div span { color: var(--rk-muted); font-size: 11px; }
.kmv-music-page .kmv-est-band { align-self: center; }
.kmv-music-page .kmv-lyric-sections { min-height: 0; overflow: auto; padding: 8px 24px 24px; scrollbar-width: thin; scrollbar-color: #b8d5cb transparent; scroll-behavior: smooth; }
.kmv-music-page .kmv-lyric-sections:focus { outline: none; }
.kmv-music-page .kmv-lyric-section { padding: 18px 0 20px; border-bottom: 1px dashed color-mix(in srgb, var(--rk-line) 78%, transparent); scroll-margin-top: 10px; }
.kmv-music-page .kmv-lyric-section:last-child { border-bottom: 0; }
.kmv-music-page .kmv-lyric-section h2 { margin: 0 0 9px; color: var(--rk-emerald); font: 850 12px/1 var(--rk-font-body); letter-spacing: .04em; }
.kmv-music-page .kmv-lyric-section textarea { display: block; width: 100%; min-height: 0; padding: 0; border: 0; color: var(--rk-ink); background: transparent; font: 500 17px/1.72 Georgia, 'Noto Serif SC', serif; resize: none; overflow: hidden; }
.kmv-music-page .kmv-lyric-section textarea:not([readonly]) { padding: 11px 12px; border: 1px solid #b8d9ce; border-radius: 12px; background: rgba(255,255,255,.78); font-family: var(--rk-font-body); overflow: auto; }
.kmv-music-page .kmv-stale-note { margin: 0; padding: 10px 16px; border-top: 1px solid #edd9a6; background: #fff8e7; }

/* --- design 06: hero badge + meta icons --- */
.kmv-music-hero .kmv-song-hero-main { display: flex; gap: 13px; align-items: flex-start; min-width: 0; }
.kmv-song-hero-badge { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(150deg, #34b78f, #16815f); box-shadow: 0 10px 24px rgba(22,129,95,.22); }
.kmv-song-hero-badge svg { width: 25px; height: 25px; }

/* --- design 06: section chips (left column) --- */
.kmv-lyrics-nav-list .kmv-lyric-chip { width: 100%; min-height: 52px; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid transparent; border-radius: 13px; background: transparent; cursor: pointer; text-align: start; }
.kmv-lyric-chip:hover { background: var(--rk-paper-2); }
.kmv-lyric-chip.is-active { border-color: color-mix(in srgb, var(--rk-emerald) 40%, transparent); background: var(--rk-emerald-soft); }
.kmv-lyric-chip-icon { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--rk-emerald); background: rgba(255,255,255,.85); }
.kmv-lyric-chip-icon svg { width: 15px; height: 15px; }
.kmv-lyric-chip.is-active .kmv-lyric-chip-icon { color: #fff; background: var(--rk-emerald); }
.kmv-lyric-chip-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.kmv-lyric-chip-text strong { color: var(--rk-ink); font: 800 13px/1.15 var(--rk-font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kmv-lyric-chip-text small { color: var(--rk-muted); font-size: 11px; }
.kmv-lyric-chip-check { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: transparent; background: color-mix(in srgb, var(--rk-line) 55%, transparent); }
.kmv-lyric-chip-check svg { width: 11px; height: 11px; stroke-width: 3; }
.kmv-lyric-chip.is-active .kmv-lyric-chip-check { color: #fff; background: var(--rk-emerald); }

/* --- design 06: current / up-next viewer (middle column) --- */
.kmv-music-page .kmv-lyric-viewer { min-height: 0; overflow: auto; padding: 22px 26px 26px; text-align: center; scrollbar-width: thin; scrollbar-color: #b8d5cb transparent; }
.kmv-music-page .kmv-lyric-viewer:focus { outline: none; }
.kmv-lyric-block.is-next { opacity: .6; }
.kmv-lyric-tag { display: inline-flex; gap: 9px; align-items: center; margin-bottom: 13px; color: var(--rk-emerald); font: 800 13px/1 var(--rk-font-body); }
.kmv-lyric-tag em { padding: 4px 11px; border-radius: 999px; color: #fff; background: var(--rk-emerald); font-style: normal; font-size: 11px; letter-spacing: .02em; }
.kmv-lyric-tag.is-next { color: var(--rk-muted); }
.kmv-lyric-tag.is-next em { background: color-mix(in srgb, var(--rk-muted) 60%, transparent); }
.kmv-lyric-block-lines p { margin: 0 0 7px; color: var(--rk-ink); font: 600 18px/1.7 Georgia, 'Noto Serif SC', serif; }
.kmv-lyric-block.is-next .kmv-lyric-block-lines p { font-weight: 500; font-size: 16px; }
.kmv-lyric-seam { margin: 22px 0; color: color-mix(in srgb, var(--rk-emerald) 55%, transparent); text-align: center; font-size: 15px; letter-spacing: .3em; }
.kmv-lyric-viewer-empty { margin: 0; color: var(--rk-muted); }

/* --- design 06: recommended badge (right column) --- */
.kmv-take-topline-lead { display: inline-flex; gap: 8px; align-items: center; }
.kmv-recommend-pill { display: inline-flex; gap: 3px; align-items: center; padding: 4px 9px; border-radius: 999px; color: #a8710a; background: #fdf1cf; font: 800 10px/1 var(--rk-font-body); white-space: nowrap; }

.kmv-music-page .kmv-takes-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; padding: 15px 15px 82px; }
.kmv-music-page .kmv-takes-panel > header { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin: 0; }
.kmv-music-page .kmv-takes-panel > header h2 { margin: 0; font-size: 18px; }
.kmv-music-page .kmv-takes-panel > header span { display: block; margin-top: 4px; color: var(--rk-muted); font-size: 12px; }
.kmv-info-button { position: relative; width: 30px; height: 30px; flex: none; border: 1px solid var(--rk-line); border-radius: 50%; color: var(--rk-muted); background: var(--rk-surface); font: 800 14px/1 Georgia, serif; cursor: help; }
.kmv-info-button::after { content: attr(data-tooltip); position: absolute; z-index: 5; inset-inline-end: 0; top: 37px; width: 250px; padding: 10px 12px; border: 1px solid var(--rk-line); border-radius: 11px; color: var(--rk-ink); background: #fffdf9; box-shadow: var(--rk-shadow-card); font: 500 12px/1.45 var(--rk-font-body); text-align: start; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .15s, transform .15s; }
.kmv-info-button:hover::after, .kmv-info-button:focus-visible::after { opacity: 1; transform: translateY(0); }
.kmv-music-page .kmv-generating { margin-top: 10px; padding: 10px 12px; }
/* grid-row 必须显式指定：面板是 `auto auto minmax(0,1fr)` 三行，但第二格（生成状态条）
   在不生成时根本不渲染元素，于是这个列表自动落到第 2 行（auto，高度=内容），而占满剩余空间的
   1fr 那行空着白占。实测面板 489px、列表只拿到 183px，第二张版本卡连同它的「选择这个版本」
   按钮被挤到滚动线以下——滚动条又是 thin 的，于是就成了「无法切换版本」（Andy 2026-08-06 报障）。 */
.kmv-music-page .kmv-takes-list { grid-row: 3; min-height: 0; overflow: auto; align-content: start; gap: 10px; margin-top: 12px; padding: 1px 3px 3px 1px; scrollbar-width: thin; scrollbar-color: #b8d5cb transparent; }
.kmv-music-page .kmv-take { padding: 14px; border-radius: 15px; box-shadow: none; }
.kmv-music-page .kmv-take.is-selected { transform: none; box-shadow: 0 0 0 2px rgba(22,129,95,.12); }
.kmv-music-page .kmv-take-topline { margin-bottom: 10px; }
.kmv-music-page .kmv-take-label { display: inline-flex; gap: 8px; align-items: center; padding: 0; color: var(--rk-ink); background: transparent; }
.kmv-music-page .kmv-take-label > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: var(--rk-emerald); background: var(--rk-emerald-soft); font-size: 11px; }
.kmv-music-page .kmv-take.is-selected .kmv-take-label { color: var(--rk-emerald); background: transparent; }
.kmv-music-page .kmv-selected-pill, .kmv-music-page .kmv-generated-pill, .kmv-music-page .kmv-take-pick { padding: 5px 9px; font-size: 10px; }
.kmv-music-page .kmv-take-title-row h3 { margin-bottom: 3px; font-size: 15px; }
.kmv-music-page .kmv-take-title-row p { font-size: 11px; }
.kmv-audio-player { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 12px; }
.kmv-audio-player audio { display: none; }
.kmv-audio-toggle, .kmv-audio-volume { display: grid; place-items: center; border: 0; cursor: pointer; }

/* The speaker is a level READOUT; the slider beside it sets the volume and a double-click on the
   pair mutes (a single click would fight the drag). */
.kmv-audio-volume-group { display: flex; gap: 6px; align-items: center; align-self: center; }
/* display MUST be restated here: the speaker used to be a <button>, and as a <span> it gets caught
   by `.kmv-story-song div > span { display: block }` — which killed the centring and left the glyph
   sitting 2.5px above the volume bar on the story step only. */
.kmv-audio-volume-group .kmv-audio-volume { width: 22px; height: 22px; display: grid; place-items: center; }
.kmv-audio-volume-group .kmv-audio-volume svg { width: 17px; height: 17px; }
.kmv-audio-volume-group .kmv-audio-volume { cursor: default; }
.kmv-audio-volume-group input {
  width: 58px; height: 4px; margin: 0; appearance: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--rk-ink-soft) var(--kmv-audio-level, 100%), #d9ddd9 var(--kmv-audio-level, 100%));
}
.kmv-audio-volume-group input::-webkit-slider-thumb { width: 11px; height: 11px; appearance: none; border: 2px solid #fff; border-radius: 50%; background: var(--rk-ink-soft); box-shadow: 0 1px 4px rgba(23, 76, 59, .24); }
.kmv-audio-volume-group input::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--rk-ink-soft); box-shadow: 0 1px 4px rgba(23, 76, 59, .24); }
.kmv-audio-toggle { width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--rk-emerald); }
.kmv-audio-volume { width: 32px; height: 32px; color: var(--rk-ink-soft); background: transparent; }
.kmv-audio-toggle svg { width: 18px; height: 18px; }
.kmv-audio-volume svg { width: 19px; height: 19px; stroke-width: 1.7; }
.kmv-audio-timeline { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; }
/* grid-column 1, NOT 1/-1: the wave must be exactly as long as the scrub bar underneath it, or the
   two read as unrelated decorations. The time label keeps its own column beside them. */
.kmv-audio-wave { position: relative; grid-column: 1; grid-row: 1; height: 19px; overflow: hidden; }
/* Explicit placement, or the scrub bar auto-flows into row 1 beside the wave instead of under it. */
.kmv-audio-timeline > input[data-audio-seek] { grid-column: 1; grid-row: 2; }
.kmv-audio-timeline > span { grid-column: 2; grid-row: 2; }
/* Real peaks, drawn from the track itself (lib/waveform.js) — this used to be a decorative webp
   that looked the same for every song. A canvas is a replaced element: without an EXPLICIT size it
   falls back to its intrinsic 300x150 and the wave renders clipped and narrow (final-cut pitfall
   #31), so width/height are set here rather than left to auto. The drawer paints in currentColor. */
.kmv-audio-wave-canvas { width: 100%; height: 19px; display: block; }
/* Two layers of the same wave: grey underneath, green clipped to the played portion on top — so the
   wave fills in as the song plays instead of sitting at one flat colour. */
.kmv-audio-wave-canvas.is-base { color: var(--rk-ink-muted); opacity: .45; }
.kmv-audio-wave-canvas.is-played {
  position: absolute;
  inset: 0;
  color: var(--rk-emerald);
  clip-path: inset(0 calc(100% - var(--kmv-audio-progress, 0%)) 0 0);
}
.kmv-audio-timeline input { width: 100%; height: 4px; margin: 0; appearance: none; border-radius: 999px; background: linear-gradient(90deg, var(--rk-emerald) var(--kmv-audio-progress, 0%), #d9ddd9 var(--kmv-audio-progress, 0%)); cursor: pointer; }
.kmv-audio-timeline input::-webkit-slider-thumb { width: 12px; height: 12px; appearance: none; border: 2px solid #fff; border-radius: 50%; background: var(--rk-emerald); box-shadow: 0 1px 5px rgba(23, 76, 59, .26); }
.kmv-audio-timeline input::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--rk-emerald); box-shadow: 0 1px 5px rgba(23, 76, 59, .26); }
.kmv-audio-timeline > span { color: var(--rk-muted); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kmv-music-page .kmv-take-cost, .kmv-music-page .kmv-duration-alert { margin: 8px 0 0; font-size: 10px; }
/* 音乐页是三栏紧凑档，版本列表本身可滚动。下载按钮从顶行搬到底行后，底行高度由 14px 的成本行
   涨到 32px 的按钮，每张卡多了约 13px —— 两张卡就吃掉 26px，把「选择版本」往滚动线外推。
   那颗按钮够不着是死路（Rule #366），所以这里按紧凑档缩回来，把余量还给顶行。
   量法：把 .kmv-takes-list 压到 231px（1366×620 实测可视高），两张卡的选择入口都要留在线内。 */
.kmv-music-page .kmv-take-footer { margin-top: 4px; }
.kmv-music-page .kmv-take-download { width: 24px; height: 24px; border-radius: 8px; }
.kmv-music-page .kmv-take-download svg { width: 14px; height: 14px; }
/* 整张卡就是选择入口（见 bindWorkspace 的 data-select-card），所以它得看起来能点。 */
.kmv-music-page .kmv-take:not(.is-selected) { cursor: pointer; }
.kmv-music-page .kmv-take:not(.is-selected):hover { background: rgba(255,255,255,.92); box-shadow: 0 0 0 1px color-mix(in srgb, var(--rk-emerald) 34%, transparent); }
/* 确定值而非 100%：这块的父级 .kmv-takes-list 实际落在面板网格的 auto 行上（generationStatus
   不渲染时行数对不上，minmax(0,1fr) 那行是空的），高度由内容决定，于是百分比无参照被忽略。
   以前空态有图标加两行说明撑着，看不出来；2026-08-06 只留下一个按钮后，虚线框会塌成一条 45px
   的细边——像出了故障，而不像「这里等着放两个版本」。 */
.kmv-music-page .kmv-no-takes { min-height: 200px; border-radius: 14px; box-shadow: none; }
.kmv-regenerate-row { display: flex; justify-content: center; padding: 4px 0 2px; }
.kmv-music-page .kmv-no-takes .kmv-primary, .kmv-regenerate-row .kmv-primary {
  min-width: 136px; min-height: 44px; padding: 0 18px; border-radius: 12px;
  font-size: 13px; white-space: nowrap; box-shadow: 0 8px 18px rgba(22,129,95,.16);
}
/* The last failed try's outcome (lastAttemptNotice), one quiet line above the button that starts the next
   try. The regenerate row stacks so the line sits over the button instead of beside it. */
.kmv-regenerate-row { flex-direction: column; align-items: center; }
.kmv-last-try { max-width: 320px; margin: 0 0 10px; color: var(--rk-ink-muted); font-size: 12px; line-height: 1.5; text-align: center; }

/* Keep navigation as one compact bottom-right action; generation and regeneration stay in the
   takes panel, using the same visual dimensions as this button. */
.kmv-music-footer { position: absolute; z-index: 3; inset-inline-end: 18px; bottom: 18px; display: flex; justify-content: flex-end; gap: 10px; align-items: center; padding: 0; pointer-events: none; }
/* 「敬请期待」标签，配 lab.css 的 .lab-soon-tag 同一副长相：故事及下游步骤未开放期间，
   它和置灰的「创建故事」并排站，说明按钮为什么点不动（见 musicFooterButton）。 */
.kmv-soon-tag { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--rk-paper-2); color: var(--rk-ink-muted); font: 900 .72rem/1.5 var(--rk-font-body); letter-spacing: .08em; text-transform: uppercase; }
/* 宽度必须跟着文案走，不能钉死：这颗按钮的文案在选中版本后会被 JS 换成更长的一句
   （kmv.useTake「Use Take A & continue」，见 kids-mv-music.js updateSelectedTrackUi），
   而 25 个语种里德语/荷兰语只会更长。原先 max-width 卡死 136px + nowrap ⇒ 长文案直接被截掉。
   min-width 保留（短文案时不至于缩成一小颗），上限只防溢出视口。 */
.kmv-music-footer .kmv-primary { min-width: 136px; max-width: calc(100vw - 72px); padding-inline: 18px; line-height: 1; white-space: nowrap; pointer-events: auto; box-shadow: 0 8px 18px rgba(22,129,95,.16); }
/* 右下角悬浮只在它下面**没有内容**时成立。对齐卡一出现，页面底部那条就归对齐卡所有，而它自己
   右侧也有一个按钮 —— 绝对定位的页脚正好压在上面，两个按钮叠成一坨点不着（2026-08-06 报障）。
   有对齐卡时页脚退回常规流，排在卡片下方，仍然右对齐。 */
.kmv-sync-card + .kmv-music-footer { position: static; margin-top: 12px; pointer-events: auto; }
/* 页脚退回常规流之后，版本栏底部那 82px 是给悬浮页脚留的位，此时没人用了；「再生成两个版本」是列表
   最后一项，被这段空白挤到滚动线以下、只露半截（2026-09-23 audit E3）。演唱页同构，一起生效。 */
.kmv-music-page:has(.kmv-sync-card) .kmv-takes-panel { padding-bottom: 15px; }
/* 宽屏两条（2026-09-23 audit B15）：
   · 右下角任务浮标（收起态）与页脚主按钮重叠约 14px。浮标是后到的，给主按钮让位就得让按钮动
     ——违反「主操作不移动」。改为页面本身常驻少 32px：按钮底边恒在浮标上方，出没都不动。
   · 错误横幅原在正常流里、排在页面卡前面，而页面卡是定高的 ⇒ 横幅一出现整页下推，主按钮被挤出屏幕。
     改为浮在页头下方、不占排版，且只占标题那一侧（左 45%）：整宽会压住右上角「音乐提示词 / 编辑歌词」
     那排按钮的上半截（实测）。1180 以下页头会换行、页面不定高，保持原样。 */
@media (min-width: 681px) {
  .kmv-music-page { height: calc(var(--kmv-desk-h) - 46px); }
}
@media (min-width: 1181px) {
  .kmv-workspace > .kmv-banner.is-error { position: absolute; z-index: 6; inset-inline-start: 20px; max-width: 45%; top: 52px; margin: 0; box-shadow: 0 10px 24px rgba(31, 27, 20, .14); }
}
.kmv-cta-arrow { display: inline-block; }
[dir="rtl"] .kmv-cta-arrow { transform: scaleX(-1); }
.kmv-music-footer-note { min-width: 0; display: flex; gap: 11px; align-items: center; color: var(--rk-ink-soft); }
.kmv-music-footer-note > span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--rk-emerald); background: var(--rk-emerald-soft); }
.kmv-music-footer-note svg { width: 18px; height: 18px; stroke-width: 1.8; }
.kmv-music-footer-note strong { display: block; color: var(--rk-ink); font-size: 12px; }
.kmv-music-footer-note p { overflow: hidden; margin: 3px 0 0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.kmv-music-footer .kmv-take-actions { display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px; margin: 0; }
.kmv-music-footer .kmv-primary, .kmv-music-footer .kmv-secondary { min-height: 44px; border-radius: 12px; font-size: 13px; }
.kmv-music-page > .kmv-sync-card { margin-top: 14px; }

.kmv-music-dialog-backdrop { background: rgba(35, 34, 31, .46); }
.kmv-music-dialog { width: min(590px, 100%); box-sizing: border-box; padding: 24px; border: 1px solid var(--rk-line); border-radius: 22px; background: #fffdf9; box-shadow: 0 32px 90px rgba(35, 34, 31, .25); }
.kmv-music-dialog:focus { outline: none; }
.kmv-music-dialog > header { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.kmv-music-dialog > header > div { display: flex; gap: 13px; align-items: start; }
.kmv-music-dialog > header > div > span { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; color: var(--rk-emerald); background: var(--rk-emerald-soft); font-size: 20px; }
.kmv-music-dialog > header h2 { margin: 1px 0 6px; font-size: 24px; }
.kmv-music-dialog > header p { max-width: 430px; margin: 0; color: var(--rk-muted); font-size: 13px; line-height: 1.55; }
.kmv-prompt-editor { display: block; margin-top: 20px; }
.kmv-prompt-editor textarea { width: 100%; min-height: 190px; box-sizing: border-box; padding: 15px 16px; border: 1px solid #bcd9cf; border-radius: 14px; color: var(--rk-ink); background: #fff; font: 500 14px/1.65 var(--rk-font-body); resize: vertical; }
.kmv-prompt-editor textarea:focus { outline: var(--rk-focus-ring); outline-offset: 2px; }
.kmv-music-dialog > footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.kmv-music-dialog > footer .kmv-primary, .kmv-music-dialog > footer .kmv-secondary { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 13px; }
.kmv-music-dialog.is-warning > header > div > .kmv-warning-icon { color: #9a650c; background: #fff1c9; }
.kmv-warning-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.kmv-dialog-note { display: flex; gap: 10px; align-items: start; margin-top: 20px; padding: 13px 14px; border: 1px solid #ead7a4; border-radius: 13px; background: #fff8e7; }
.kmv-dialog-note > span { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #8a620e; background: #ffe8aa; font: 800 12px/1 Georgia, serif; }
.kmv-dialog-note p { margin: 1px 0 0; color: #6f551c; font-size: 12px; line-height: 1.5; }

@media (max-width: 1180px) {
  .kmv-music-page .kmv-music-grid { height: auto; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); }
  .kmv-lyrics-nav { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; overflow-x: auto; padding: 9px 11px; }
  .kmv-lyrics-nav-title { flex: none; padding: 0 8px 0 0; }
  .kmv-lyrics-nav-list { display: flex; gap: 5px; }
  .kmv-lyrics-nav-list button { width: auto; min-width: 102px; }
  .kmv-music-page .kmv-lyrics-paper, .kmv-music-page .kmv-takes-panel { height: auto; min-height: 0; }
}

@media (max-width: 820px) {
  .kmv-music-page { height: auto; min-height: var(--kmv-desk-h); overflow: visible; margin-inline: 0; padding: 18px; border-radius: 20px; }
  .kmv-music-hero { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .kmv-song-tools { justify-content: flex-start; }
  .kmv-music-page .kmv-music-grid { grid-template-columns: 1fr; }
  .kmv-lyrics-nav { grid-column: 1; }
  .kmv-music-page .kmv-lyrics-paper, .kmv-music-page .kmv-takes-panel { height: 470px; }
  .kmv-music-page .kmv-takes-panel { padding-bottom: 15px; }
  /* 窄屏本来就是常规流 + 吸底，两个按钮不会重叠；这里把带对齐卡的情况也拉回 sticky，
     否则上面那条更高优先级的规则会把它压成 static，手机上就要滚到底才够得着「创建故事」。 */
  .kmv-music-footer, .kmv-sync-card + .kmv-music-footer { position: sticky; inset-inline-end: auto; bottom: 0; margin-top: 12px; padding-top: 10px; background: linear-gradient(180deg, transparent, var(--rk-paper) 28%); pointer-events: auto; }
  .kmv-music-footer .kmv-primary { width: 100%; min-width: 0; max-width: none; }
  /* 手机上「敬请期待」另起一行落在按钮上方：标签是 flex: none，同一行里挤不动它，宽度全从
     按钮身上扣 —— 荷兰语「Binnenkort beschikbaar」208px，375px 屏上把按钮压到 95px、
     文案被裁。换行后无论哪种译法，按钮都还是整条宽。 */
  .kmv-music-footer { flex-wrap: wrap; row-gap: 8px; }
  .kmv-music-footer-note p { white-space: normal; }
}

@media (max-width: 560px) {
  .kmv-music-page { padding: 14px; }
  .kmv-music-page .kmv-title-field input { min-height: 40px; font-size: 29px; }
  .kmv-song-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .kmv-song-tools .kmv-quiet-button { justify-content: center; padding-inline: 10px; }
  .kmv-music-page .kmv-lyrics-paper, .kmv-music-page .kmv-takes-panel { height: 430px; }
  .kmv-music-footer .kmv-take-actions { grid-template-columns: 1fr; }
  .kmv-home-link > span:last-child { display: none; }
}

/* 「故事走向提示」——故事页撤掉之后，剧情走向的唯一控制点搬到了创意区（2026-08-10 方案 C）。
   放在英雄区与三栏工作区之间的一条窄带里：它是可选的、平时收起，展开也不该抢走乐谱那一屏。
   `flex: 0 0 auto` 是关键 —— 下面那个 `.kmv-music-grid` 用的是 `flex: 1 1 0; height: 0`，
   这里若参与伸缩会把三栏挤扁（同一张卡上 2026-08-02 已经因为高度分配吃过一次亏）。 */
/* 卡面刻意与 `.kmv-takes-panel` / 歌词纸逐字段同款（半透明白 + 同一条描边），
   这个房间是"纸"主题、暗色模式下也保持浅色，跟着邻居走才不会显得是外来物。
   输入框沿用 `.kmv-prompt-editor textarea` 的口径（`var(--rk-ink)` + 同款字体栈）。 */
.kmv-music-page .kmv-story-hint {
  flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 10px; padding: 10px 14px;
  border: 1px solid var(--rk-line, rgba(15, 23, 42, .1));
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}
.kmv-music-page .kmv-story-hint p { margin: 0; font-size: 12px; color: var(--rk-ink-soft, rgba(15, 23, 42, .62)); }
.kmv-music-page .kmv-story-hint textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 46px;
  padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--rk-line, rgba(15, 23, 42, .12));
  background: #fff; color: var(--rk-ink);
  font: 500 13px/1.5 var(--rk-font-body);
}
.kmv-music-page .kmv-story-hint textarea:focus-visible { outline: var(--rk-focus-ring); outline-offset: 2px; }

/* ── Lyrics intake (2026-10-16, docs/prd-kmv-assets-lyrics-intake.md §2.2) ─────────────────────────────────────────
   Home: the two-way card when the text looks like lyrics. Two stacked option cards, each one tap = the decision; the
   content never changes while it is open, so the card's height is fixed by its copy. The landing page's failure card
   reuses the shared error screen (.rk-errorscreen) and needs nothing here. New class names only: frozen pages load
   this stylesheet too. */
.rk-modal.is-kmv-intake-choice .rk-modal-panel { inline-size: min(540px, 100%); }
.kmv-intake-card { display: grid; gap: 16px; }
.rk-modal.is-kmv-settings-review .rk-modal-panel { inline-size: min(540px, 100%); max-block-size: calc(100dvh - 40px); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.rk-modal.is-kmv-settings-review .rk-modal-body { display: flex; flex-direction: column; min-block-size: 0; overflow: hidden; padding: 0; }
.kmv-settings-review { display: flex; flex-direction: column; min-block-size: 0; max-block-size: calc(100dvh - 40px); }
.kmv-settings-header { padding-block: 24px 20px; padding-inline: 24px 60px; }
.kmv-settings-header h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.4; }
.kmv-settings-scroll { overflow-y: auto; min-block-size: 0; padding: 0 24px 22px; display: grid; gap: 22px; }
.kmv-settings-field { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.kmv-settings-field legend { padding: 0; font-size: 16px; font-weight: 700; }
.kmv-settings-status { margin: 8px 0 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; color: var(--rk-ink-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.kmv-settings-status q { color: var(--rk-ink); background: var(--rk-paper-2); border-radius: 5px; padding: 2px 7px; }
.kmv-settings-options { display: flex; flex-wrap: wrap; gap: 8px; }
.kmv-settings-option { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0; min-block-size: 44px; min-inline-size: 84px; padding-block: 8px; padding-inline: 16px; cursor: pointer; line-height: 1.4; text-align: center; max-inline-size: 100%; overflow-wrap: anywhere; }
.kmv-settings-option input { position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.kmv-settings-option:has(input:focus-visible) { outline: 2px solid var(--rk-emerald); outline-offset: 3px; }
.kmv-settings-check { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; inline-size: 10px; block-size: 10px; visibility: hidden; pointer-events: none; }
.kmv-settings-option.is-active .kmv-settings-check { visibility: visible; }
.kmv-settings-more { margin-block-start: 12px; }
.kmv-settings-more summary { cursor: pointer; color: var(--rk-ink-muted); font-size: 14px; padding-block: 6px; }
.kmv-settings-more[open] summary { margin-block-end: 8px; }
.kmv-settings-footer { flex: none; display: grid; gap: 12px; padding: 16px 24px 20px; border-block-start: 1px solid var(--rk-line); background: var(--rk-surface); }
.kmv-settings-next-note, .kmv-settings-required { margin: 0; color: var(--rk-ink-muted); font-size: 14px; line-height: 1.5; }
.kmv-settings-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.kmv-settings-actions button { block-size: auto; min-block-size: 44px; padding-block: 10px; line-height: 1.4; white-space: normal; }
@media (max-width: 480px) {
  .kmv-settings-header { padding-inline-start: 20px; }
  .kmv-settings-scroll { padding-inline: 20px; }
  .kmv-settings-footer { padding-inline: 20px; }
  .kmv-settings-actions { flex-direction: column; }
}
.kmv-settings-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 8px; font-size: 12px; }
.kmv-settings-summary > div { display: flex; gap: 5px; }
.kmv-settings-summary dd { margin: 0; }
.kmv-intake-title {
  margin: 0;
  padding-inline-end: 40px; /* clear of the modal's close button */
  color: var(--rk-ink);
  font-family: var(--rk-font-display);
  font-size: 1.3rem;
  line-height: 1.3;
}
.kmv-intake-body { margin: -6px 0 0; color: var(--rk-ink-soft); font-size: 1rem; line-height: 1.55; }
.kmv-intake-options { display: grid; gap: 10px; }
.kmv-intake-option {
  display: grid;
  gap: 4px;
  min-block-size: 76px;
  padding: 14px 18px;
  border: 1px solid var(--rk-line);
  border-radius: var(--rk-radius-lg);
  background: var(--rk-surface);
  color: var(--rk-ink);
  text-align: start;
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease-out, background 160ms ease-out;
}
.kmv-intake-option:hover:not(:disabled) { border-color: var(--rk-emerald); background: var(--rk-emerald-soft); }
.kmv-intake-option:disabled { opacity: .55; cursor: not-allowed; }
.kmv-intake-option:focus-visible {
  border-color: var(--rk-emerald);
  outline: 3px solid var(--rk-focus-ring);
  outline-offset: 2px;
}
.kmv-intake-option-title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.kmv-intake-option-note { color: var(--rk-ink-soft); font-size: 1rem; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) {
  .kmv-intake-option { transition: none; }
}
