:is(.backend-studio,.design-shell) .audio-generation{min-width:0;max-width:100%;overflow-wrap:anywhere}
:is(.backend-studio,.design-shell) .audio-generation .real-lyrics{white-space:pre-wrap;overflow-wrap:anywhere;max-height:28rem;overflow:auto}
:is(.backend-studio,.design-shell) .ag-variant{min-width:0;max-width:100%;padding-block:1rem}
:is(.backend-studio,.design-shell) .ag-reference{display:block;font:inherit;overflow-wrap:anywhere;direction:ltr;unicode-bidi:isolate}
.design-shell .lg-audio-action{margin:0 0 18px}.design-shell .ag-compact{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;padding:0;background:none;border:0}.design-shell .ag-compact>p{flex-basis:100%;margin:4px 0;font-size:13px}.design-shell .ag-compact .btn,.design-shell .lg-next-bottom .btn{min-height:40px;padding:10px 18px;font-size:14px}.design-shell #lg-edit-text{background:#ffb579;color:#262033;border-color:#ffc596}.design-shell .lg-next-bottom{display:flex;justify-content:flex-end;margin-top:20px}.design-shell .real-text-panel .real-lyrics{font-size:16px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.design-shell .real-text-panel .lg-revision{margin-top:18px}.design-shell .real-text-panel .lg-revision textarea{font-size:16px}.design-shell .ag-variant{border:1px solid var(--line);border-radius:18px;padding:16px;margin-block:12px;overflow:hidden}
@media(max-width:600px){.design-shell .ag-compact .btn,.design-shell .lg-next-bottom .btn{font-size:12px;min-height:40px;padding:9px 12px}.design-shell .real-text-panel .real-lyrics{font-size:16px;line-height:1.5}}
:is(.backend-studio,.design-shell) .ar-form .btn[aria-pressed=true]{background:var(--selected);color:var(--ink);border-color:var(--selected-border);box-shadow:inset 0 0 0 1px var(--selected-border)}

/* D10.03: the same text actions for direct entry and resumed drafts. */
.design-shell .real-text-panel .real-lyrics{max-height:400px;overflow:auto;padding-inline-end:12px;scrollbar-gutter:stable;line-height:1.55}
.design-shell .lg-audio-action .ag-status:empty{display:none}
.design-shell .lg-audio-action .ag-compact{column-gap:10px;row-gap:8px;align-items:center;justify-content:flex-end}
.design-shell .lg-audio-action .ag-compact>.btn{flex:none;margin:0;white-space:normal}
.design-shell .lg-next-bottom{gap:10px;margin-top:20px}
@media(max-width:600px){.design-shell .real-text-panel .real-lyrics{max-height:330px}.design-shell .lg-audio-action .ag-compact>.btn{flex:none;min-height:40px;max-width:65%;font-size:12px;padding:9px 12px}.design-shell .lg-next-bottom>.btn{flex:none;min-width:96px}}

.design-shell .real-text-panel #ag-create,.design-shell .real-text-panel #lg-edit-text{width:auto;min-width:0;height:40px;min-height:40px;padding:9px 14px;font-size:14px;line-height:20px;flex:0 0 auto}
@media(max-width:600px){.design-shell .real-text-panel #ag-create,.design-shell .real-text-panel #lg-edit-text{font-size:12px;padding:9px 12px}}

/* D15.2: only song-wizard navigation and the text-review viewport. */
.design-shell .song-flow-actions{margin:8px 0 16px;gap:10px}
.design-shell .song-flow-actions .btn,.design-shell .song-step-actions #song-step-back,.design-shell .preset-flow-actions #preset-step-back,.design-shell .song-flow-back{min-height:40px;padding:9px 14px;font-size:14px;line-height:20px}
.design-shell .real-text-panel .real-lyrics{max-height:min(480px,65dvh)}
@media(max-width:600px){.design-shell .real-text-panel .real-lyrics{max-height:min(400px,60dvh)}.design-shell .song-flow-actions{margin-top:4px}.design-shell .song-flow-actions .btn,.design-shell .song-step-actions #song-step-back,.design-shell .preset-flow-actions #preset-step-back{font-size:12px;padding:9px 12px}}
