/* Only production integration differences: no prototype toolbar, native dialogs, real controls. */
#sidebar{top:0;left:0;right:auto}.workspace{padding-top:0}body{min-width:320px}.skip{position:fixed;left:12px;top:-100px;z-index:200}.skip:focus{top:12px;background:var(--card);padding:12px;border-radius:12px}
[hidden]{display:none!important}#content:focus{outline:none}#status:empty,.design-home #home-status:empty{display:none}
.design-dialog{border:1px solid var(--line);color:var(--text);background:var(--card);padding:36px;position:fixed;inset:0;max-height:calc(100dvh - 48px);overflow:auto;margin:auto}.design-dialog::backdrop{background:#171b3d66;backdrop-filter:blur(6px)}.design-dialog .logo{margin-bottom:24px}.design-dialog .yandex-id-button{margin-top:16px}.design-dialog .close{position:absolute;right:15px;top:15px}
.preset-chips a{font-size:12px;padding:10px 7px;min-height:42px;text-align:center}.hero-input>.dictation{margin:0}.hero-input>.dictation .dictation-message:empty{display:none}.hero-input>.dictation .mic{position:absolute;right:14px;bottom:16px}.hero-input>.dictation:has(.dictation-result:not([hidden])){padding-top:14px}.hero-input>.dictation .actions{margin-top:10px}.hero-input>.dictation .actions:has(.mic:not([hidden])){margin:0}
.topactions .account-menu{position:relative}.topactions .account-menu>summary{list-style:none;cursor:pointer;display:grid;place-items:center}.topactions .account-menu>summary::-webkit-details-marker{display:none}.topactions .top-actions{position:absolute;right:0;top:50px;z-index:30;width:260px;background:var(--card);border:1px solid var(--line);padding:14px;border-radius:18px;box-shadow:var(--shadow);display:grid;gap:8px}.topactions .top-actions .btn{width:100%}
.design-shell .btn{border-radius:13px;padding:14px 22px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:750;font-size:13px;border:1px solid var(--line);line-height:1.4;background:var(--card);color:var(--text)}.design-shell .btn.primary{background:#4654d9;color:#fff}.design-shell .btn.text{background:transparent;color:var(--blue);border-color:transparent}.design-shell .panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:28px}.design-shell .note{border:1px solid var(--line);background:var(--soft);padding:18px;border-radius:16px}.design-shell .status{font-size:13px;color:var(--muted)}.design-shell fieldset{border:0;padding:0;margin:0 0 22px;min-width:0}.design-shell legend{font-weight:750;margin-bottom:14px}.design-shell .field{display:grid;gap:9px}.design-shell .field input,.design-shell .field select,.design-shell .field textarea{width:100%;min-width:0}.design-shell .actions{margin-top:16px}.design-shell .topactions .actions{margin-top:0}.design-shell .sf-field-error{color:#d24763;font-size:13px}.design-shell [aria-invalid=true]{border-color:#d24763}.design-shell .form-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px}.design-shell .form-main,.design-shell .form-aside{min-width:0}.design-shell .form-aside{align-self:start}.design-shell .song-stepper{display:flex;gap:10px}.design-shell .song-stepper button{background:var(--card);color:var(--muted);border:1px solid var(--line);border-radius:12px;padding:12px 16px}.design-shell .song-stepper button.active{color:var(--blue);background:var(--soft)}
.miniplayer .mp-now{display:contents}.miniplayer .mp-now>img{width:46px;height:46px;border-radius:12px;object-fit:cover}.miniplayer>.status,.miniplayer>.mp-feedback{grid-column:1/-1;margin:0}.mp-feedback:not(:has([data-player-retry]:not([hidden]))){display:none}.miniplayer .mp-feedback>button:not([data-player-retry]){display:none}.mp-expanded{display:contents}.mp-expanded>.mp-now{display:contents}.mp-expanded>.status{margin:0}.mp-expanded .player-heading strong{font-size:24px;line-height:1.25;letter-spacing:-.5px;display:block}.mp-expanded .player-heading small{display:block;font-size:12px}.mp-expanded>.seek-wrap{width:100%}.mp-dialog .mp-clock{display:flex;justify-content:space-between;margin-top:6px;font-size:11px;color:var(--muted)}.mp-dialog .lyric{white-space:pre-wrap}.miniplayer .mp-clock{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:4px}.inlineplayer{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--card)}.inlineplayer .mp-now{display:flex;align-items:center;gap:10px;width:100%}.inlineplayer .mp-now img{width:48px;height:48px;border-radius:12px}.inlineplayer .track{min-width:0}.inlineplayer .track strong,.inlineplayer .track small{display:block}.inlineplayer>.seek-wrap{width:100%;order:2}.inlineplayer>.volume{display:none}.inlineplayer>.status,.inlineplayer>.mp-feedback{width:100%}.postcard-public-image{width:100%;height:130px;object-fit:cover;border-radius:16px}.grid2>.card>h2{margin-top:26px}
@media(max-width:800px){#sidebar{top:0}.workspace{padding-top:0}.design-dialog{max-height:calc(100dvh - 24px);max-width:calc(100vw - 24px);padding:28px 22px}.preset-chips a{font-size:10px;padding:9px 3px}.design-shell .form-layout{grid-template-columns:minmax(0,1fr)}.design-shell .form-aside{display:none}.miniplayer .mp-now>img{width:36px;height:36px}.mp-expanded .player-heading strong{font-size:20px}.mp-dialog.fullplayer{padding:26px 22px 18px}}
/* Adapt semantic production form controls to the approved wizard primitives. */
.design-shell .song-stepper button.step{border:0;border-radius:0;padding:0;background:transparent;font-size:12px;display:flex;align-items:center;gap:8px;color:var(--muted)}.design-shell .song-stepper button.step.active{color:var(--blue);background:transparent}.design-shell .song-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.design-shell .song-choice{position:relative}.design-shell .song-choice input{position:absolute;opacity:0;width:1px;height:1px}.design-shell .song-choice:focus-within{outline:2px solid var(--blue);outline-offset:3px}.design-shell .real-song-form .language-grid .choice{min-height:48px}.design-shell .song-step-actions{border-top:1px solid var(--line);padding-top:24px;display:flex;justify-content:space-between}.design-shell .summary-list>div{padding:12px 0;border-bottom:1px solid var(--line)}.design-shell .summary-list dt{font-size:12px;color:var(--muted)}.design-shell .summary-list dd{margin:6px 0;white-space:pre-wrap}.design-shell .sound-choice-field>.field-title{margin:16px 0 8px}.design-shell .real-song-form .form-main>.actions:last-child{justify-content:flex-end}.design-shell .real-song-form .notice{margin:18px 0}
.design-shell .real-song-row .cover-image,.design-shell .real-song-row>.song-cover{width:56px;height:56px;border-radius:12px;object-fit:cover}.design-shell .real-song-row .songinfo h3{margin:0;font-size:14px}.design-shell .real-song-row .title-btn{font-weight:750;color:var(--text)}.song-actions{position:relative;border:0;padding:0}.song-actions>summary{list-style:none;display:grid;place-items:center}.song-actions>summary::-webkit-details-marker{display:none}.song-actions-menu{position:absolute;right:0;top:48px;min-width:180px;z-index:10;padding:12px;border:1px solid var(--line);background:var(--card);border-radius:16px;box-shadow:var(--shadow);display:grid;gap:8px}.library-unfinished .pill{margin-left:10px}.library-unfinished .draft-card .pill{margin-left:0}.library-unfinished{margin-bottom:28px}.real-delete-dialog::backdrop{background:#171b3d66;backdrop-filter:blur(6px)}.real-song-row{overflow:visible}
.real-song-row>.real-cover{width:56px;height:56px;flex-shrink:0}.real-song-row>.real-cover img{width:56px;height:56px;border-radius:12px;object-fit:cover}
#song-step-next{margin-left:auto}.design-shell .song-stepper{margin-top:22px}.design-shell #draft-refresh[hidden]{display:none}
.children-tile>img{width:100%;border-radius:18px;display:block;margin-bottom:16px}.children-tile>.choice{display:block;position:relative}.children-tile>.choice>input{position:absolute;width:1px;height:1px;opacity:0}.children-tile>.choice:focus-within{outline:2px solid var(--blue);outline-offset:3px}.children-tile details .card{padding:16px;margin-top:10px}.children-tile details button{margin-top:12px}.real-child-form .formactions{display:flex;justify-content:space-between}
.postcard-flow-main{min-width:0;display:grid;gap:24px}.postcard-flow-main>.card{min-width:0}.postcard-flow-aside .postcard-symbol{color:var(--blue);margin-bottom:16px}.postcard-flow-aside>bdi{display:block;font-weight:750;margin:16px 0}.postcard-flow-aside .inlineplayer{margin-top:20px}.postcard-choice{position:relative}.postcard-choice input{position:absolute;opacity:0;width:1px;height:1px}.postcard-choice:focus-within{outline:2px solid var(--blue);outline-offset:3px}.postcard-choice:has(input:disabled){opacity:.55;cursor:not-allowed}.clip-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}.real-video-form .field{margin-bottom:22px}.postcard-source-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.postcard-source-actions .field{flex:1;min-width:180px}.postcard-stepper{list-style:none;display:flex;gap:20px;padding:0;margin:24px 0 32px;flex-wrap:wrap}.postcard-stepper li{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.postcard-stepper li>span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:var(--soft)}.postcard-stepper li[aria-current=step]{color:var(--blue)}.postcard-stepper li[aria-current=step]>span{background:var(--blue);color:white}.postcard-stepper li[data-complete=true]>span{background:var(--soft);color:var(--blue)}
@media(max-width:800px){.clip-field-pair{grid-template-columns:1fr}.postcard-stepper{gap:10px}.postcard-stepper li{font-size:10px}.postcard-stepper li>span{width:23px;height:23px}}
.design-shell{--surface:var(--card);--raised:var(--card);--ink:var(--text);--accent:var(--blue);--tint:var(--soft);--selected:var(--soft);--selected-border:var(--blue);--nav:244px}.video-select-choices{margin-bottom:24px}.video-select-choices .choice{text-align:start}.balance-details{margin:18px 0 28px}.balance-details>summary{cursor:pointer;color:var(--muted);font-size:13px}.balance-rights-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.rights-facts{display:grid;grid-template-columns:1fr auto;gap:12px;font-size:13px}.rights-facts dd{margin:0}.profile-heading,.profile-summary{display:flex;align-items:center;justify-content:space-between;gap:20px}.profile-summary{justify-content:flex-start;margin:24px 0}.profile-summary h2,.profile-summary p{margin:0}.profile-statistics{margin-bottom:24px}.profile-statistics .stat{padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--card);display:flex;flex-direction:column;gap:12px}.profile-statistics .stat strong{font-size:30px}.profile-shortcuts{display:flex;flex-wrap:wrap;gap:12px}.profile-security .link-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}.profile-security .link-row small{display:block;margin-top:8px}.profile-editor{border:1px solid var(--line);border-radius:24px;padding:32px;background:var(--card);color:var(--text);width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}.profile-editor::backdrop{background:#171b3d66;backdrop-filter:blur(6px)}.profile-editor .field{margin:20px 0}.profile-symbol{display:grid;place-items:center}.design-shell .generation-screen{display:flex;align-items:center;flex-direction:column;text-align:center;padding:40px 24px;margin:24px 0;border:1px solid var(--line);border-radius:24px;background:var(--card);gap:16px}.design-shell .generation-screen>p{max-width:460px}.design-shell .generation-screen .actions{justify-content:center}.design-shell.has-generation-dock #content{padding-bottom:180px}.text-stepper{list-style:none;padding:0;flex-wrap:wrap}.text-stepper li{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.text-stepper li.active{color:var(--blue)}.real-text-panel .real-lyrics{font-family:inherit;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.help-faq details{padding:20px 0;border-bottom:1px solid var(--line)}.help-faq summary{font-weight:750;cursor:pointer}.help-sidebar{display:grid;gap:24px}.help-contact-address{overflow-wrap:anywhere}
@media(max-width:1150px){.design-shell{--nav:205px}}@media(max-width:800px){.design-shell{--nav:0px}.profile-heading{align-items:flex-start;flex-direction:column}.balance-summary{flex-wrap:wrap}}
.design-shell .btn>svg,.design-shell .avatar>svg,.design-shell .iconbtn>svg,.design-shell .postcard-symbol>svg{width:21px;height:21px;flex-shrink:0}.profile-summary>div{min-width:0;overflow-wrap:anywhere}.profile-summary .avatar{flex-shrink:0}.design-shell .iconbtn{display:inline-grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--card)}
@media(max-width:800px){.profile-heading>div{flex:initial}.profile-heading h1{font-size:30px}.profile-summary h2{font-size:22px}}
.design-shell .preset-choice{position:relative;display:flex;align-items:center;gap:12px}.design-shell .preset-choice input{position:absolute;opacity:0;width:1px;height:1px}.design-shell .preset-choice:focus-within{outline:3px solid #8290ff;outline-offset:3px}.design-shell .preset-choice .symbol{display:grid;place-items:center;width:32px;height:32px;flex:none}.design-shell .preset-choice svg{width:24px;height:24px}.design-shell .preset-choice h3{margin:0;font-size:14px}.design-shell .real-preset-form .formactions{gap:12px;flex-wrap:wrap}

/* Owner library follows the approved unfinished / ready section order. */
.library-ready-heading{flex-wrap:wrap;gap:16px}.library-ready-heading .tabs{margin:0;flex-wrap:wrap}.library-search{display:flex;align-items:flex-end;gap:10px;margin-bottom:24px;flex-wrap:wrap}.library-search .field{flex:1 1 240px;margin:0}.library-search .btn{flex:none}.real-library-list>.actions{justify-content:space-between;align-items:center}.library-unfinished:empty{display:none}

/* Approved profile cards: real preferences inline; discard confirmation remains modal. */
.profile-preferences .profile-summary{margin:0 0 24px;padding:0}.profile-preferences .field{margin:20px 0}.profile-grid{margin:24px 0}.profile-preferences .profile-editor-photo{margin:20px 0}.profile-preferences .profile-editor-photo>.avatar{display:none}.start-language{margin-bottom:24px}

.profile-grid>.card>h2{margin-top:0}.start-language .choice{text-align:start}

/* D8B: one aligned review action and visible music action after lyrics. */
.real-song-form .song-step-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.real-song-form .song-step-actions>button{margin:0;min-height:48px}
.lg-revision{border:1px solid var(--line);border-radius:16px;padding:18px;margin-top:22px}
.lg-revision>summary{font-weight:700;color:var(--blue);cursor:pointer}
.lg-audio-action{margin-top:20px}.lg-audio-action>.audio-generation{padding:22px}
.lg-audio-action #ag-create{min-height:52px;min-width:220px}
@media(max-width:800px){.lg-audio-action #ag-create{width:100%;min-width:0}.real-song-form .song-step-actions>button{flex:1}.lg-audio-action h1{font-size:24px}}

/* D8B2: requested compact instrument groups; server automatic mode is preserved. */
.real-song-form .instrument-group{margin:10px 0;border:1px solid var(--line);border-radius:16px;padding:12px 16px}
.real-song-form .instrument-group>summary{cursor:pointer;font-weight:600}
.real-song-form .instrument-group .choices{margin-top:14px}
.real-song-form .instrument-review .btn{margin:10px 8px 0 0}

#draft-save,#draft-reset{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:1px solid var(--line);border-radius:14px}#draft-reset{margin-inline-start:8px}

/* D8C: template choices follow Mini while retaining WEB sizing. */
.children-tiles .children-tile{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;align-items:start;padding:18px;overflow:hidden}
.children-tiles .children-tile>img{width:112px;height:112px;object-fit:contain;border-radius:18px;background:transparent;grid-row:1}
.children-tiles .children-tile>.choice{display:flex;flex-wrap:wrap;min-width:0;padding:0;border:0;background:transparent;align-content:start}
.children-tiles .children-tile>.choice strong{flex:1}.children-tiles .children-tile>.choice small{flex-basis:100%;line-height:1.5}
.children-tiles .children-tile>details,.children-tiles .child-card-next{grid-column:1/-1}
.children-tiles .children-tile>details{padding:12px;border:1px solid var(--line);border-radius:14px}
.children-tiles .children-tile summary{cursor:pointer;font-weight:600}
.child-gender [data-gender=boy].selected{background:rgba(71,133,232,.2);border-color:#6098ec}
.child-gender [data-gender=girl].selected{background:rgba(221,106,159,.2);border-color:#da80b0}
.form-language-picker{position:relative;border:1px solid var(--line);border-radius:16px;min-width:0}
.form-language-picker>summary{padding:16px;cursor:pointer;font-size:16px;list-style:none}
.form-language-picker>summary:after{content:'⌄';float:right}
.form-language-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;max-height:320px;overflow-y:auto}
.form-language-options>.choice{font-size:16px;text-align:start;min-width:0;padding:12px}
@media(max-width:600px){.children-tiles .children-tile{grid-template-columns:92px minmax(0,1fr);padding:14px;gap:12px}.children-tiles .children-tile>img{width:92px;height:92px}.form-language-options{grid-template-columns:1fr}}

/* D8D: approved source/photo/scenario presentation, existing actions preserved. */
.video-variant-row{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;margin:12px 0;padding:16px;border:1px solid var(--line);border-radius:18px}
.video-variant-row .songinfo{min-width:0}.video-variant-row h3{font-size:17px;margin:0 0 6px}
.video-source-select.btn.primary{background:#28835f;color:#fff;min-height:48px;min-width:120px;border-color:#28835f}
.video-photo-upload{border:1px dashed var(--line);border-radius:20px;padding:20px}
.video-photo-preview{position:relative;width:max-content;max-width:100%}.video-photo-preview img{display:block;width:160px;height:160px;object-fit:contain;border-radius:16px}.video-photo-preview img[hidden]{display:none}
.video-photo-preview .photo-remove{position:absolute;top:6px;right:6px;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border-radius:50%;font-size:24px;background:var(--panel);color:var(--text)}
#video-concept{border:1px solid var(--accent);background:var(--raised);border-radius:18px;padding:20px;line-height:1.65;min-height:160px}
.ce-scenario,.video-scene-correction{background:rgba(255,177,126,.13);border:1px solid rgba(255,177,126,.35);border-radius:18px;padding:18px;margin:16px 0}
.video-download-warning{border:1px solid rgba(255,177,126,.5);background:rgba(255,177,126,.12);padding:18px;border-radius:16px;font-weight:600}
.video-download-warning:before{content:'!';display:inline-grid;place-items:center;width:22px;height:22px;margin-inline-end:10px;border:1px solid currentColor;border-radius:50%}
@media(max-width:500px){.video-variant-row{grid-template-columns:42px minmax(0,1fr);padding:12px}.video-variant-row .video-source-select{grid-column:1/-1;width:100%}.video-variant-row h3{font-size:16px}}

/* D8E: preview and correction side by side on desktop, stacked on mobile. */
@media(min-width:1000px){.design-shell .clip-execution.ce-review{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px 24px;align-items:start}.design-shell .clip-execution.ce-review>h2,.design-shell .clip-execution.ce-review>.status,.design-shell .clip-execution.ce-review>.note,.design-shell .clip-execution.ce-review>.actions{grid-column:1/-1}.design-shell .clip-execution.ce-review>.ce-previews{grid-column:1;min-width:0}.design-shell .clip-execution.ce-review>.pc-review-form{grid-column:2;min-width:0}.design-shell .clip-execution.ce-review .pc-preview[data-selected=true] img{max-height:440px}.design-shell .clip-execution.ce-review .pc-review-form .ce-scenario{margin-top:0}}

.ce-review .pc-review-form>.video-scene-correction:first-child{margin-top:0}.ce-review #ce-repeat{background:rgba(255,177,126,.16);border-color:rgba(255,177,126,.35)}
.design-shell .children-tiles .children-tile>.choice.selected{box-shadow:none;outline:none;border:0;background:transparent}.design-shell .children-tiles .children-tile.selected{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}.design-shell .children-tiles .children-tile:has(.choice:focus-visible){outline:2px solid var(--blue);outline-offset:4px}

.auth-modal .auth-remember-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.auth-modal .auth-remember-row .check{margin:0;min-width:0}.auth-modal .auth-remember-row .ghost{padding:8px 0;font-size:13px;line-height:1.3;text-align:right}.history-navigation{margin-bottom:16px;gap:12px;flex-wrap:wrap}
