:root{
  color-scheme:light;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Display","Inter","Segoe UI",sans-serif;
  --bg:#eef3fb;--bg-accent:#dce8ff;
  --surface:rgba(255,255,255,.74);--surface-solid:#fff;--surface-soft:rgba(247,249,253,.86);--surface-raised:rgba(255,255,255,.92);
  --text:#131b2b;--muted:#68758a;--subtle:#8b96a8;
  --line:rgba(94,112,142,.18);--line-strong:rgba(78,99,134,.28);
  --accent:#3977f6;--accent-strong:#245fdd;--accent-soft:rgba(57,119,246,.12);
  --brand:#e8404a;--brand-soft:rgba(232,64,74,.11);--success:#20a66a;--warning:#d38b19;--danger:#df4c52;
  --shadow-1:0 1px 2px rgba(25,39,67,.05),0 10px 30px rgba(35,57,92,.08);
  --shadow-2:0 24px 70px rgba(25,45,80,.16);
  --blur:20px;--radius-xs:8px;--radius-sm:12px;--radius-md:18px;--radius-lg:26px;
  --space-1:6px;--space-2:10px;--space-3:14px;--space-4:20px;--space-5:28px;--space-6:38px;
  --ease:cubic-bezier(.2,.7,.2,1)
}
:root[data-theme="dark"]{
  color-scheme:dark;--bg:#0b0e14;--bg-accent:#18243c;
  --surface:rgba(22,27,37,.76);--surface-solid:#171c26;--surface-soft:rgba(27,33,45,.84);--surface-raised:rgba(29,35,47,.94);
  --text:#f4f6fb;--muted:#a0aabc;--subtle:#798397;
  --line:rgba(180,196,224,.12);--line-strong:rgba(180,196,224,.22);
  --accent:#6d9eff;--accent-strong:#4d82ee;--accent-soft:rgba(109,158,255,.14);
  --brand:#ff6972;--brand-soft:rgba(255,105,114,.13);--success:#42c98a;--warning:#e6a746;--danger:#ff6c72;
  --shadow-1:0 1px 2px #0004,0 16px 40px #0005;--shadow-2:0 28px 80px #0009
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{margin:0;height:100vh;overflow:hidden;color:var(--text);font:14px/1.45 var(--font);background:radial-gradient(900px 520px at 8% -8%,var(--bg-accent),transparent 64%),radial-gradient(760px 420px at 100% 0,var(--brand-soft),transparent 70%),var(--bg);transition:background .25s var(--ease),color .2s var(--ease)}
button,input,textarea,select{font:inherit}
button{border:1px solid transparent;border-radius:var(--radius-sm);padding:10px 14px;color:var(--text);background:var(--surface-soft);font-weight:680;cursor:pointer;transition:transform .15s var(--ease),background .15s,border-color .15s,box-shadow .15s}
button:hover:not(:disabled){transform:translateY(-1px);border-color:var(--line-strong)}
button:active:not(:disabled){transform:none}button:disabled{opacity:.43;cursor:not-allowed}
button.primary{color:#fff;background:linear-gradient(180deg,#4b86ff,var(--accent-strong));border-color:transparent;box-shadow:0 8px 20px rgba(48,105,226,.24)}
button.ai{color:#fff;background:linear-gradient(135deg,#8b6ef3,#477ff0);border:0;box-shadow:0 8px 20px rgba(97,87,222,.2)}
button.preview-agent-button{color:#fff;background:linear-gradient(135deg,#8b5cf6,#6d4fe2);border-color:transparent;box-shadow:0 8px 20px rgba(112,75,220,.22)}
button.danger{color:var(--danger);background:color-mix(in srgb,var(--danger) 10%,var(--surface-soft));border-color:color-mix(in srgb,var(--danger) 24%,var(--line))}
button.ghost{color:var(--muted);background:transparent;border-color:var(--line)}
input,textarea,select{width:100%;padding:11px 12px;color:var(--text);background:var(--surface-solid);border:1px solid var(--line-strong);border-radius:var(--radius-sm);outline:0;transition:border-color .15s,box-shadow .15s,background .2s}
input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
textarea{resize:vertical;line-height:1.5}
.app{height:100vh;display:grid;grid-template-columns:288px minmax(0,1fr)}
.sidebar{padding:18px;overflow:auto;background:color-mix(in srgb,var(--surface) 90%,transparent);border-right:1px solid var(--line);backdrop-filter:blur(var(--blur)) saturate(1.25);-webkit-backdrop-filter:blur(var(--blur)) saturate(1.25)}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:20px;font-size:15px;font-weight:850;letter-spacing:-.01em}
.brand .logo{width:46px;height:46px;border-radius:15px;background:linear-gradient(145deg,rgba(255,215,68,.28),rgba(39,45,57,.14));box-shadow:var(--shadow-1)}
.brand .logo img{display:block;width:100%;height:100%;padding:3px;object-fit:contain;border-radius:inherit;background:linear-gradient(145deg,rgba(255,255,255,.4),transparent)}
.side-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.side-actions button{padding:9px 10px}
.note{margin:12px 0 16px;padding:11px 12px;color:var(--muted);font-size:11px;line-height:1.5;background:var(--surface-soft);border:1px solid var(--line);border-radius:var(--radius-sm)}
.project-list{display:grid;gap:10px}.project-item{position:relative;padding:11px;background:var(--surface-soft);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:none;transition:transform .15s var(--ease),border-color .15s,background .15s}
.project-item:hover{transform:translateY(-1px);border-color:var(--line-strong)}.project-item.active{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.project-item.status-progress,.project-item.status-done,.project-item.status-blocked{background:var(--surface-soft);border-color:var(--line)}
.project-item.status-progress::after,.project-item.status-done::after,.project-item.status-blocked::after{content:"";position:absolute;top:12px;right:12px;width:7px;height:7px;border-radius:50%;background:var(--warning);box-shadow:0 0 0 4px color-mix(in srgb,var(--warning) 13%,transparent)}
.project-item.status-done::after{background:var(--success);box-shadow:0 0 0 4px color-mix(in srgb,var(--success) 13%,transparent)}.project-item.status-blocked::after{background:var(--danger);box-shadow:0 0 0 4px color-mix(in srgb,var(--danger) 13%,transparent)}
.project-item::before{display:none}.project-title{padding:0;font-weight:800}.project-thumb-small{margin:8px 0;aspect-ratio:16/8.5;border:1px solid var(--line);border-radius:11px;background:linear-gradient(135deg,var(--accent-soft),var(--brand-soft))}
.project-meta{color:var(--muted);font-size:11px}.sidebar-progress{height:5px;border:0;background:var(--line)}.sidebar-progress div{background:linear-gradient(90deg,var(--accent),#8e7cff)}
.main{min-width:0;display:flex;flex-direction:column;overflow:hidden}
.top{position:sticky;top:0;z-index:8;display:grid;grid-template-columns:minmax(220px,1fr) 190px 150px auto;gap:10px;align-items:center;padding:14px 20px;background:color-mix(in srgb,var(--surface) 88%,transparent);border-bottom:1px solid var(--line);backdrop-filter:blur(var(--blur)) saturate(1.3);-webkit-backdrop-filter:blur(var(--blur)) saturate(1.3)}
.top input,.top select{margin:0}.top-actions{display:flex;gap:8px;align-items:center}.top-actions button{white-space:nowrap}.top-actions .theme-toggle{width:42px;padding:10px 0}
.content{flex:1;overflow:auto;padding:22px clamp(16px,3vw,36px) 80px}.content>section{width:min(1160px,100%);margin:0 auto}
.panel{padding:var(--space-4);margin-bottom:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-1);backdrop-filter:blur(var(--blur)) saturate(1.12);-webkit-backdrop-filter:blur(var(--blur)) saturate(1.12)}
.panel-head,.project-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.big-title{font-size:28px;letter-spacing:-.04em}.small{color:var(--muted)}.label{margin-bottom:7px;color:var(--subtle);font-size:10px;font-weight:760;letter-spacing:.11em;text-transform:uppercase}
.status-pill{padding:7px 11px;border-radius:999px;font-size:11px}.status-pill.todo{background:var(--surface-soft);color:var(--muted)}.status-pill.progress{background:color-mix(in srgb,var(--warning) 13%,var(--surface-soft));color:var(--warning)}.status-pill.blocked{background:color-mix(in srgb,var(--danger) 12%,var(--surface-soft));color:var(--danger)}.status-pill.done{background:color-mix(in srgb,var(--success) 12%,var(--surface-soft));color:var(--success)}
.progress-wrap{height:10px;background:var(--line);border:0}.progress-fill{background:linear-gradient(90deg,var(--accent),#8e7cff)}.progress-text{font-size:24px;letter-spacing:-.04em}
.project-hero{grid-template-columns:minmax(0,1fr) 360px;gap:18px}.project-description{min-height:180px}.image-box{background:linear-gradient(135deg,var(--accent-soft),var(--brand-soft));border-color:var(--line);border-style:solid}.image-actions{gap:8px}
.session-panel{background:linear-gradient(135deg,var(--accent-soft),var(--brand-soft));border-color:var(--line)}
.stage-card{padding:14px;margin-bottom:10px;background:var(--surface-soft);border:1px solid var(--line);border-radius:var(--radius-md);transition:border-color .15s,background .15s}.stage-card:hover{border-color:var(--line-strong)}.stage-card.stage-complete{background:color-mix(in srgb,var(--success) 7%,var(--surface-soft));border-color:color-mix(in srgb,var(--success) 25%,var(--line))}
.stage-top{grid-template-columns:auto auto minmax(150px,1fr) 145px auto}.stage-icon{background:var(--surface-solid);border:1px solid var(--line);border-radius:11px}.collapse-btn{background:var(--surface-solid);border-color:var(--line)}.stage-name{color:var(--text);background:transparent;border-color:transparent;font-weight:800}.stage-name:focus{background:var(--surface-solid)}
.stage-body{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.task{border-color:var(--line)}.task-text{color:var(--text);background:transparent}.empty{border-color:var(--line);background:color-mix(in srgb,var(--surface-soft) 60%,transparent)}
.script-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:11px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:linear-gradient(135deg,var(--accent-soft),transparent)}
.script-tools .small{max-width:660px}.script-tools button{white-space:nowrap}
.location-task{display:grid;grid-template-columns:28px minmax(180px,.7fr) minmax(260px,1.3fr) auto auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.location-task:last-child,.character-task:last-child{border-bottom:0}.location-fragment{min-width:0;padding:9px 11px;color:var(--muted);background:var(--surface-solid);border:1px solid var(--line);border-radius:var(--radius-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.location-fragment.unlinked{font-style:italic;color:var(--subtle)}
.character-task{display:grid;grid-template-columns:28px minmax(180px,1fr) minmax(260px,1.15fr) auto;gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.voice-select{display:grid;grid-template-columns:112px minmax(0,1fr);gap:8px;align-items:center}.voice-description{min-width:0;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stage-hint{margin-bottom:10px;padding:10px 12px;color:var(--muted);background:var(--surface-solid);border:1px solid var(--line);border-radius:var(--radius-sm)}
.selection-preview{max-height:180px;overflow:auto;white-space:pre-wrap;padding:12px;color:var(--text);background:var(--surface-soft);border:1px solid var(--line);border-radius:var(--radius-sm)}
.alt-script,.history-card,.session-card,.summary-box,.session-report{color:var(--text);background:var(--surface-soft);border-color:var(--line);border-radius:var(--radius-sm)}
.modal-back{background:rgba(8,13,23,.38);backdrop-filter:blur(7px)}.modal{color:var(--text);background:var(--surface-raised);border-color:var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-2)}
.editing-summary{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:linear-gradient(135deg,var(--brand-soft),var(--accent-soft))}.editing-summary::before{content:"✂";display:grid;place-items:center;width:40px;height:40px;border-radius:13px;color:#fff;background:linear-gradient(145deg,#ff6871,var(--brand));box-shadow:0 7px 17px rgba(205,48,59,.2)}
.sync-ok{color:var(--success)}.sync-error{color:var(--danger)}
@media(max-width:1050px){.app{grid-template-columns:240px minmax(0,1fr)}.top{grid-template-columns:1fr 160px auto}.top #projectChannel{display:none}.project-hero{grid-template-columns:1fr}.top-actions .agent-label{display:none}}
@media(max-width:760px){body{height:auto;overflow:auto}.app{display:block;height:auto}.sidebar{border:0;border-bottom:1px solid var(--line);max-height:42vh}.main{overflow:visible}.top{position:sticky;grid-template-columns:1fr auto;padding:10px 12px}.top #projectChannel,.top #projectStatus{display:none}.content{overflow:visible;padding:14px 12px 60px}.stage-top{grid-template-columns:auto auto minmax(0,1fr)}.stage-top>select,.stage-top>.danger{grid-column:3}.project-hero{grid-template-columns:1fr}.task{grid-template-columns:28px minmax(0,1fr)}.task select,.task button{grid-column:2}.location-task,.character-task{grid-template-columns:28px minmax(0,1fr)}.location-task>:not(:first-child),.character-task>:not(:first-child){grid-column:2}.voice-select{grid-template-columns:1fr}.script-tools{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.wide{grid-column:1}}
@media(max-width:480px){.top-actions .agent-label{display:none}.top-actions button{padding-inline:10px}.side-actions{grid-template-columns:1fr}.project-header{align-items:flex-start}.big-title{font-size:23px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.story-analysis-review{display:grid;gap:16px}.analysis-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-height:62vh;overflow:auto}.analysis-columns section{display:grid;align-content:start;gap:10px}.analysis-review-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.analysis-review-row>div{display:grid;gap:8px}.analysis-review-row textarea{min-height:86px}.character-review-row{grid-template-columns:30px minmax(0,1fr) 150px auto}@media(max-width:900px){.analysis-columns{grid-template-columns:1fr}.character-review-row{grid-template-columns:30px minmax(0,1fr) auto}.character-review-row>select{grid-column:2}}

/* Preview Agent */
.preview-page{height:100vh;overflow:auto}.preview-agent-shell{width:min(1280px,calc(100% - 32px));margin:0 auto;padding:18px 0 60px}.preview-agent-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;padding:12px 14px;background:color-mix(in srgb,var(--surface) 90%,transparent);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-1);backdrop-filter:blur(var(--blur))}.preview-agent-brand{display:flex;align-items:center;gap:11px}.preview-agent-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;color:#fff;font-size:21px;background:linear-gradient(145deg,#9b73ff,#5e42d6);box-shadow:0 9px 24px rgba(101,65,210,.28)}.preview-agent-hero{position:relative;min-height:290px;display:flex;align-items:flex-end;overflow:hidden;margin-bottom:18px;padding:28px;border:1px solid var(--line);border-radius:var(--radius-lg);background:linear-gradient(120deg,rgba(20,25,40,.78),rgba(68,49,132,.5)),linear-gradient(135deg,var(--accent-soft),var(--brand-soft));box-shadow:var(--shadow-2)}.preview-agent-hero.has-cover{background-position:center;background-size:cover}.preview-agent-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 18%,rgba(8,11,19,.86));pointer-events:none}.preview-agent-hero-content{position:relative;z-index:1;max-width:760px;color:#fff}.preview-agent-hero h1{margin:5px 0 7px;font-size:clamp(30px,4vw,52px);line-height:1;letter-spacing:-.045em}.preview-agent-hero p{margin:0;color:rgba(255,255,255,.74)}.preview-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.preview-step{min-height:190px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-1);backdrop-filter:blur(var(--blur))}.preview-step-number{display:grid;place-items:center;width:34px;height:34px;margin-bottom:22px;border-radius:11px;color:#fff;font-weight:850;background:linear-gradient(145deg,#9b73ff,#5e42d6)}.preview-step h2{margin:0 0 7px;font-size:18px}.preview-step p{margin:0 0 18px;color:var(--muted)}.preview-context{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);gap:14px;margin-top:14px}.preview-story{max-height:220px;overflow:auto;white-space:pre-wrap}.preview-empty{color:var(--muted)}@media(max-width:820px){.preview-workflow,.preview-context{grid-template-columns:1fr}.preview-agent-shell{width:min(100% - 20px,1280px)}.preview-agent-top{position:static}.preview-agent-hero{min-height:240px;padding:20px}}
.style-uploader{margin-top:14px}.style-uploader-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.style-dropzone{display:grid;place-items:center;min-height:150px;padding:22px;text-align:center;color:var(--muted);border:1.5px dashed var(--line-strong);border-radius:var(--radius-md);background:linear-gradient(135deg,var(--accent-soft),rgba(139,92,246,.08));cursor:pointer;transition:border-color .15s,background .15s,transform .15s}.style-dropzone:hover,.style-dropzone.dragging{color:var(--text);border-color:#8b5cf6;background:rgba(139,92,246,.13);transform:translateY(-1px)}.style-dropzone strong{display:block;margin-bottom:4px;color:var(--text);font-size:16px}.style-reference-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;margin-top:14px}.style-reference{position:relative;overflow:hidden;aspect-ratio:16/9;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-soft)}.style-reference img{display:block;width:100%;height:100%;object-fit:cover}.style-reference-footer{position:absolute;inset:auto 0 0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:24px 8px 8px;color:#fff;background:linear-gradient(transparent,rgba(7,9,15,.88))}.style-reference-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.style-reference-delete{flex:0 0 auto;width:28px;height:28px;padding:0;color:#fff;background:rgba(12,15,23,.58);border-color:rgba(255,255,255,.2)}.upload-status{min-height:20px;margin-top:9px;color:var(--muted);font-size:12px}.upload-status.error{color:var(--danger)}
.style-channel-editor{display:grid;grid-template-columns:minmax(180px,280px) auto;gap:8px;margin-bottom:12px}.style-channel-editor input{margin:0}@media(max-width:600px){.style-uploader-head{align-items:flex-start;flex-direction:column}.style-channel-editor{grid-template-columns:1fr}}
.style-analysis-settings{display:grid;grid-template-columns:minmax(190px,1.2fr) minmax(130px,.7fr) minmax(220px,1fr) minmax(190px,.8fr);gap:10px;margin:0 0 14px;padding:12px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface-soft)}.style-analysis-settings label,.style-price{display:grid;align-content:start;gap:6px}.style-analysis-settings label>span,.style-price>span{color:var(--muted);font-size:11px;font-weight:700}.style-analysis-settings select{min-height:42px}.style-count-control{display:grid;grid-template-columns:minmax(110px,1fr) 42px;gap:9px;align-items:center;min-height:42px}.style-count-control input{height:6px;padding:0;accent-color:#7c5ce2}.style-count-control output{display:grid;place-items:center;height:36px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface-solid);font-weight:800}.style-price{padding:9px 11px;border:1px solid color-mix(in srgb,#8b5cf6 28%,var(--line));border-radius:12px;background:linear-gradient(135deg,rgba(139,92,246,.12),var(--surface-solid))}.style-price strong{font-size:18px;letter-spacing:-.02em}.style-price small{color:var(--muted);font-size:10px}@media(max-width:960px){.style-analysis-settings{grid-template-columns:1fr 1fr}}@media(max-width:600px){.style-analysis-settings{grid-template-columns:1fr}}
.preview-analysis-summary{font-size:16px;line-height:1.65}.preview-analysis-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.preview-analysis-columns>div{padding:14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-soft)}.preview-analysis-columns h3{margin:0 0 8px}.preview-analysis-columns ul{margin:0;padding-left:20px}.preview-analysis-columns li+li{margin-top:6px}.preview-analysis-prompt{margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-soft)}.preview-analysis-prompt summary{cursor:pointer;font-weight:760}.preview-analysis-prompt div{margin-top:12px;white-space:pre-wrap;color:var(--muted)}@media(max-width:700px){.preview-analysis-columns{grid-template-columns:1fr}}
.preview-source-upload{display:grid;grid-template-columns:minmax(180px,260px) auto;gap:9px;align-items:center}.preview-source-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;margin-top:12px}.preview-source-card{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.preview-source-card img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.preview-source-card>div{display:grid;padding:9px 11px}.preview-source-card span{color:var(--muted);font-size:11px}.preview-source-card>button{position:absolute;top:7px;right:7px;width:30px;height:30px;padding:0;color:#fff;background:#101521aa;border-color:#ffffff33}.preview-concept-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.preview-concept-grid.single{grid-template-columns:minmax(0,1fr)}.preview-concept-card{position:relative;display:grid;gap:7px;padding:16px;text-align:left;background:var(--surface-soft);border:1px solid var(--line);border-radius:16px}.preview-concept-card.selected{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.15);background:linear-gradient(135deg,rgba(139,92,246,.13),var(--surface-soft))}.preview-concept-card b{font-size:16px}.preview-concept-card p{margin:0}.preview-concept-card small{color:var(--muted)}.concept-check{position:absolute;top:10px;right:12px;color:#8b5cf6;opacity:0}.preview-concept-card.selected .concept-check{opacity:1}.preview-generate-bar{display:grid;grid-template-columns:minmax(180px,240px) 1fr auto;gap:14px;align-items:end;margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}.preview-generate-bar label{display:grid;gap:5px;color:var(--muted);font-size:11px}.preview-result-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px}.preview-result-card{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}.preview-result-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.preview-result-card>div{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:11px}.preview-result-card span{color:var(--muted);font-size:11px}.preview-result-card a{grid-column:2;grid-row:1/3;align-self:center;color:var(--accent)}@media(max-width:720px){.preview-source-upload,.preview-generate-bar,.preview-concept-grid{grid-template-columns:1fr}.preview-result-grid{grid-template-columns:1fr}}
/* Preview Agent: single-frame workflow */

.style-preset-list{display:flex;gap:14px;overflow-x:auto;padding:8px 3px 16px;scrollbar-width:thin}
.style-preset-card{position:relative;flex:0 0 132px;min-height:132px;padding:10px;border:2px solid transparent;border-radius:18px;background:var(--surface-2,#f2f5fb);color:var(--text,#172033);display:grid;grid-template-rows:76px auto auto;gap:4px;text-align:left;transition:.18s ease;overflow:hidden}
.style-preset-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(36,61,112,.14)}
.style-preset-card.selected{border-color:#5b6cff;box-shadow:0 0 0 4px rgba(91,108,255,.12)}
.style-preset-card img,.style-preset-card i{width:100%;height:76px;object-fit:cover;border-radius:11px;background:linear-gradient(135deg,#dfe6ff,#efe5ff)}
.style-preset-card i,.style-preset-card.add strong{display:grid;place-items:center;font-style:normal;font-size:34px}
.style-preset-card b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.style-preset-card small{color:var(--muted,#6f7890)}
.style-preset-card.add{border-style:dashed;grid-template-rows:76px auto;background:transparent}
.style-preset-remove{position:absolute;right:7px;top:7px;width:26px;height:26px;border-radius:999px;background:rgba(20,25,38,.78);color:#fff;display:grid;place-items:center;font-size:18px}
.style-builder{margin:2px 0 18px;padding:18px;border:1px solid var(--line,#d8deea);border-radius:18px;background:color-mix(in srgb,var(--surface,#fff) 88%,#7c62ff 12%)}
.style-builder-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.style-builder-head>div{display:grid;gap:3px}
.style-source-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.style-source-tabs button.selected{border-color:#7058f5;background:#7058f5;color:#fff}
.manual-style-source{display:flex;align-items:center;gap:12px;padding:10px 0}
.style-workspace-toolbar>div{display:flex;gap:8px}
.style-reference.excluded{opacity:.42;filter:grayscale(.65)}.style-reference-footer input[type="checkbox"]{width:18px;height:18px;flex:0 0 18px;accent-color:#5b6cff}
.style-uploader>.style-analysis-settings,#styleDropzone,.style-uploader>.folder-import-row,#localReferenceLibrary{display:none!important}
.preview-context{display:none!important}
.style-preview-details{margin-top:12px;border:1px solid var(--line,#d8deea);border-radius:17px;background:var(--surface-soft,#f6f8fc);overflow:hidden}.style-preview-details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer;user-select:none}.style-preview-details>summary::-webkit-details-marker{display:none}.style-preview-details>summary span{display:grid;gap:3px}.style-preview-details>summary small{color:var(--muted,#6f7890);font-weight:400}.style-preview-details>summary i{font-style:normal;font-size:22px;transition:.18s transform}.style-preview-details[open]>summary i{transform:rotate(180deg)}.style-preview-details-body{padding:0 18px 18px;border-top:1px solid var(--line,#d8deea)}
html[data-theme="dark"] .style-preset-card{background:#20283a;color:#f6f8ff}html[data-theme="dark"] .style-builder{background:#181f2e}
@media(max-width:720px){.style-preset-card{flex-basis:108px;min-height:116px;grid-template-rows:62px auto auto}.style-preset-card img,.style-preset-card i{height:62px}.style-builder .youtube-import-row{grid-template-columns:1fr}.style-analysis-settings{grid-template-columns:1fr}}

.style-builder-modal{width:min(760px,calc(100vw - 32px));max-height:min(720px,calc(100vh - 32px));padding:24px;border:1px solid var(--line,#d8deea);border-radius:24px;background:var(--surface,#fff);color:var(--text,#172033);box-shadow:0 30px 90px rgba(15,24,48,.3)}
.style-builder-modal::backdrop{background:rgba(14,20,34,.48);backdrop-filter:blur(8px)}
.style-builder-modal .style-builder-head h2{margin:2px 0 0}.style-builder-modal .style-builder-head>button{width:42px;height:42px;font-size:22px}
.style-method-choice{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}
.style-method-card{min-height:190px;padding:20px;border:1px solid var(--line,#d8deea);border-radius:20px;background:var(--surface-2,#f4f6fb);color:inherit;display:flex;flex-direction:column;align-items:flex-start;gap:9px;text-align:left;transition:.18s ease}
.style-method-card:hover{transform:translateY(-3px);border-color:#6e61f4;box-shadow:0 15px 35px rgba(74,68,180,.16)}
.style-method-card i,.style-method-icon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,#5874ff,#8d4ff3);color:#fff;font-size:27px;font-style:normal;box-shadow:0 10px 24px rgba(93,85,229,.28)}
.style-method-card b{font-size:16px}.style-method-card small{line-height:1.45;color:var(--muted,#6f7890)}
.style-method-screen{position:relative;margin-top:18px;padding:26px;border:1px solid var(--line,#d8deea);border-radius:20px;background:var(--surface-2,#f4f6fb);text-align:center}.style-method-screen .style-method-back{position:absolute;left:14px;top:14px}.style-method-screen .style-method-icon{margin:18px auto 12px}.style-method-screen h3{margin:0 0 7px;font-size:22px}.style-method-screen p{margin:0 auto 18px;max-width:480px}
.style-method-form{display:grid;gap:10px;max-width:560px;margin:20px auto 0}.style-method-form input{width:100%}
html[data-theme="dark"] .style-builder-modal{background:#141a28;color:#f6f8ff}html[data-theme="dark"] .style-method-card,html[data-theme="dark"] .style-method-screen{background:#20283a}
@media(max-width:720px){.style-method-choice{grid-template-columns:1fr}.style-method-card{min-height:120px}.style-builder-modal{padding:16px}.style-method-screen{padding:64px 16px 22px}}
.preview-main-inputs{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,.65fr);gap:14px;margin-top:14px}
.preview-input-slot{position:relative;min-height:190px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:22px;border:1px dashed color-mix(in srgb,var(--accent) 42%,var(--line));border-radius:var(--radius-lg);background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 8%,var(--panel)),color-mix(in srgb,var(--panel) 92%,transparent));color:var(--text);cursor:pointer;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.preview-input-slot:hover{transform:translateY(-1px);border-color:var(--accent);box-shadow:var(--shadow-sm)}
.preview-input-slot.optional{border-color:var(--line);background:color-mix(in srgb,var(--panel) 88%,transparent)}
.preview-input-slot b,.preview-input-slot small,.preview-input-icon{position:relative;z-index:2}
.preview-input-slot small{color:var(--muted)}
.preview-input-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:color-mix(in srgb,var(--accent) 14%,var(--panel));color:var(--accent);font-size:20px}
.preview-input-slot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.preview-input-slot:has(img:not([hidden]))::after{content:"Заменить";position:absolute;right:12px;bottom:12px;z-index:3;padding:7px 11px;border-radius:999px;background:rgba(13,19,32,.72);color:white;font-size:12px;backdrop-filter:blur(12px)}
.preview-input-slot:has(img:not([hidden])) b,.preview-input-slot:has(img:not([hidden])) small,.preview-input-slot:has(img:not([hidden])) .preview-input-icon{opacity:0}
.preview-frame-actions{display:flex;align-items:center;gap:12px;margin-top:14px}
.preview-frame-actions .upload-status{flex:1}.workspace-view-switch{display:flex;gap:6px;padding:4px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.workspace-view-switch .selected{color:#fff;background:linear-gradient(135deg,#3478ff,#7657eb)}.style-workspace-toolbar,.standalone-prompt-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.composition-text-row{display:grid;grid-template-columns:48px 1fr;gap:8px}.composition-text-row input[type=color]{width:48px;height:42px;padding:4px}.composition-text-layer{display:grid;place-items:center;max-width:none;padding:8px;font-weight:900;line-height:.95;text-align:center;text-shadow:0 4px 12px #000a;user-select:none;cursor:grab;white-space:nowrap}.composition-stage.dragging{outline:4px solid #3478ff;outline-offset:4px}
.editor-canvas-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.editor-canvas-tools{display:flex;gap:5px;padding:5px;border:1px solid var(--line);border-radius:14px;background:var(--surface-solid);box-shadow:0 8px 24px rgba(26,36,60,.1)}.editor-canvas-tools button{display:grid;place-items:center;width:38px;height:36px;padding:0;font-size:16px;font-weight:900}.editor-canvas-tools button.selected{color:#fff;border-color:transparent;background:linear-gradient(135deg,#3478ff,#7657eb)}.preview-editor-stage[data-tool=lasso],.preview-editor-stage[data-tool=rectangle]{cursor:crosshair}.preview-editor-stage[data-tool=move] .editor-layer-transform{cursor:move}
.editor-layer-settings{padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}.editor-layer-settings summary{cursor:pointer;font-weight:850}.editor-layer-settings[open]{display:grid;gap:12px}.editor-layer-settings[open] summary{margin-bottom:4px}.editor-library-modal{width:min(1080px,calc(100vw - 32px));max-height:88vh;padding:0;border:1px solid var(--line);border-radius:24px;color:var(--text);background:var(--surface-solid);box-shadow:0 30px 90px rgba(15,23,42,.35)}.editor-library-modal::backdrop{background:rgba(15,23,42,.58);backdrop-filter:blur(9px)}.editor-library-shell{display:grid;grid-template-rows:auto auto minmax(180px,1fr) auto;max-height:88vh}.editor-library-shell>header,.editor-library-shell>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--line)}.editor-library-shell>footer{border-top:1px solid var(--line);border-bottom:0}.editor-library-shell h2,.editor-library-shell p{margin:3px 0}.asset-library-toolbar{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(150px,220px);gap:10px;padding:12px 20px;border-bottom:1px solid var(--line);background:var(--surface-soft)}.asset-library-tabs{display:flex;gap:6px}.asset-library-tabs button.selected{color:#fff;border-color:transparent;background:linear-gradient(135deg,#3478ff,#7657eb)}.editor-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;overflow:auto;padding:20px}.asset-library-item{display:grid;gap:9px;padding:10px;border:1px solid var(--line);border-radius:15px;background:var(--surface-soft)}.asset-library-preview{position:relative;display:block;overflow:hidden;width:100%;height:130px;padding:0;border-radius:11px;background:repeating-conic-gradient(#e9edf5 0 25%,#fff 0 50%) 50%/18px 18px}.asset-library-preview img{width:100%;height:100%;object-fit:contain}.asset-library-preview span{position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:30px;height:30px;color:#fff;border-radius:50%;background:#3478ff;box-shadow:0 5px 16px #3478ff66}.asset-library-item>div:nth-child(2){display:grid;gap:3px}.asset-library-item small{color:var(--muted)}.asset-library-actions{display:grid;grid-template-columns:1fr auto auto;gap:5px}.asset-library-actions button{min-width:34px;padding:7px}
@media(max-width:760px){.asset-library-toolbar{grid-template-columns:1fr}.asset-library-tabs{display:grid;grid-template-columns:repeat(3,1fr)}}
.editor-object-workflow{gap:11px!important}.editor-object-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.editor-object-extra{padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.editor-object-extra summary{cursor:pointer;color:var(--muted);font-size:12px;font-weight:800}.editor-object-extra[open]{display:grid;gap:10px}.canvas-variant-nav{position:absolute;z-index:30;left:50%;top:-52px;display:flex;align-items:center;gap:4px;padding:5px;border:1px solid rgba(255,255,255,.7);border-radius:999px;background:rgba(20,25,38,.86);box-shadow:0 8px 24px rgba(0,0,0,.3);transform:translateX(-50%) rotate(calc(-1 * var(--layer-rotation,0deg)));backdrop-filter:blur(10px)}.canvas-variant-nav button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;color:#fff;background:rgba(255,255,255,.14);font-size:20px;cursor:pointer}.canvas-variant-nav button:hover{background:#3478ff}.canvas-variant-nav button.add{background:#7657eb}.canvas-variant-nav span{min-width:36px;color:#fff;font-size:11px;font-weight:850;text-align:center}
.editor-base-layer{grid-template-columns:42px 1fr auto!important}.editor-base-layer span{display:grid;gap:1px}.editor-base-layer span b{font-size:12px}.editor-base-layer span small{color:var(--muted);font-size:10px}.editor-base-layer>strong{opacity:.55;font-size:13px}
.preview-frame-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:var(--radius-lg);background:color-mix(in srgb,var(--panel) 84%,transparent)}
.preview-frame-editor label{display:grid;gap:7px;color:var(--muted);font-size:12px;font-weight:700}
.preview-frame-editor .wide{grid-column:1/-1}
.preview-frame-editor input,.preview-frame-editor textarea{width:100%;box-sizing:border-box}
.preview-extra-sources{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.preview-extra-sources summary{cursor:pointer;color:var(--muted);font-weight:700}
.preview-choice-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.preview-choice-chip{padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--panel) 90%,transparent);color:var(--muted);font-size:11px;font-weight:700;cursor:pointer}
.preview-choice-chip:hover,.preview-choice-chip.selected{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--panel));color:var(--accent)}
.preview-result-card .open-original{width:max-content;margin-top:5px}
.preview-element-editor{display:grid;gap:16px;margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:var(--radius-lg);background:color-mix(in srgb,var(--panel) 84%,transparent)}
.preview-element-editor>section{display:grid;gap:10px}
.preview-element-editor>label{display:grid;gap:7px;color:var(--muted);font-size:12px;font-weight:700}
.preview-element-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.preview-element-head>div{display:grid;gap:3px}.preview-element-head small{color:var(--muted)}
.preview-element-list{display:grid;gap:9px}
.preview-element-row{display:grid;grid-template-columns:minmax(130px,.65fr) minmax(180px,1fr) minmax(240px,1.4fr) 34px;gap:8px;align-items:stretch;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}
.preview-element-row input,.preview-element-row textarea,.preview-element-editor>label textarea{width:100%;box-sizing:border-box;resize:vertical}
.element-instruction{border-color:color-mix(in srgb,var(--accent) 40%,var(--line));background:color-mix(in srgb,var(--accent) 5%,var(--panel))}
.element-remove{width:34px;min-width:34px;padding:0;border-color:color-mix(in srgb,#ef4444 35%,var(--line));color:#ef4444;background:transparent}
.preview-concept-card.editable{cursor:default}
.preview-concept-card.editable input,.preview-concept-card.editable textarea{width:100%;box-sizing:border-box;resize:vertical}
.concept-edit-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.concept-basis{padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.05em;color:#2563eb;background:rgba(37,99,235,.1)}
.concept-basis.story{color:#8b5cf6;background:rgba(139,92,246,.12)}
.concept-prompt{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.45}
.ai-profile-hidden{display:none!important}.preview-phase{display:flex;align-items:center;gap:12px;margin:28px 2px 10px}.preview-phase>span{display:grid;place-items:center;width:36px;height:36px;border-radius:13px;color:#fff;font-weight:900;background:linear-gradient(145deg,#9b73ff,#5e42d6);box-shadow:0 8px 22px rgba(103,71,214,.25)}.preview-phase>div{display:grid;gap:2px}.preview-phase b{font-size:18px}.preview-phase small{color:var(--muted)}.folder-import-row,.style-analysis-action{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px}.style-analysis-action{padding-top:16px;border-top:1px solid var(--line)}
.preview-hotspot-editor{display:grid;gap:14px;margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--surface-soft)}.hotspot-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.hotspot-toolbar>div{display:flex;gap:8px}.hotspot-toolbar>div:first-child{display:grid;gap:2px}.hotspot-toolbar small{color:var(--muted)}.frame-hotspot-stage{position:relative;display:grid;place-items:center;overflow:hidden;min-height:320px;max-height:72vh;border-radius:18px;background:repeating-conic-gradient(var(--surface-solid) 0 25%,var(--surface-soft) 0 50%) 50%/24px 24px}.frame-hotspot-stage>img{display:block;width:100%;height:auto;max-height:72vh;object-fit:contain}.frame-hotspot-stage>#frameHotspotLayer{position:absolute;inset:0}.frame-hotspot{position:absolute;display:flex;align-items:center;gap:7px;max-width:180px;padding:5px 10px 5px 5px;transform:translate(-50%,-50%);border:1px solid #fff9;border-radius:999px;color:#fff;background:#2563eb;box-shadow:0 8px 22px #0006;cursor:pointer}.frame-hotspot span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;color:#182033;font-size:11px;font-weight:900}.frame-hotspot b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.frame-hotspot.object{background:#f59e0b}.frame-hotspot.background{background:#10a57f}.hotspot-legend{display:flex;gap:10px}.hotspot-legend span{padding:5px 9px;border-radius:999px;color:#fff;font-size:11px;font-weight:800}.hotspot-legend .character{background:#2563eb}.hotspot-legend .object{background:#f59e0b}.hotspot-legend .background{background:#10a57f}.hotspot-dialog{width:min(560px,calc(100% - 24px));padding:0;border:1px solid var(--line);border-radius:22px;color:var(--text);background:var(--surface-solid);box-shadow:var(--shadow-3)}.hotspot-dialog::backdrop{background:#11182799;backdrop-filter:blur(10px)}.hotspot-dialog form{display:grid;gap:14px;padding:20px}.hotspot-dialog header,.hotspot-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.hotspot-dialog h2{margin:2px 0 0}.hotspot-dialog label{display:grid;gap:6px;color:var(--muted);font-size:12px}.concept-prompt-details{padding:9px 11px;border:1px solid var(--line);border-radius:12px}.concept-prompt-details summary{cursor:pointer;color:var(--muted);font-size:12px;font-weight:750}.concept-prompt-details textarea{margin-top:9px}.preview-result-grid>.preview-result-card:first-child{position:relative;border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.14),0 18px 40px rgba(91,63,178,.18);animation:latestGlow 1.8s ease-out}.preview-result-grid>.preview-result-card:first-child::before{content:'НОВОЕ';position:absolute;z-index:2;top:10px;left:10px;padding:5px 9px;border-radius:999px;color:#fff;font-size:10px;font-weight:900;background:linear-gradient(135deg,#8b5cf6,#ec4899)}@keyframes latestGlow{0%{transform:translateY(-5px);filter:brightness(1.12)}100%{transform:none;filter:none}}@media(max-width:700px){.hotspot-toolbar{align-items:flex-start;flex-direction:column}.frame-hotspot-stage{min-height:220px}.frame-hotspot b{display:none}}
.preview-generate-bar{grid-template-columns:minmax(210px,1.25fr) repeat(2,minmax(150px,200px)) 1fr auto}
@media(max-width:900px){.preview-element-row{grid-template-columns:1fr}.element-remove{justify-self:end}.preview-generate-bar{grid-template-columns:1fr 1fr}.preview-generate-bar>button{grid-column:1/-1}}
.preview-overlay-panel{margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}
.preview-overlay-panel summary{cursor:pointer;font-weight:800}
.preview-overlay-controls{display:grid;grid-template-columns:minmax(180px,260px) minmax(150px,210px) minmax(180px,1fr) auto auto;gap:10px;align-items:end;margin-top:12px}
.preview-overlay-controls label{display:grid;gap:6px;color:var(--muted);font-size:11px}
.preview-overlay-pick{position:relative;overflow:hidden;min-height:88px;border:1px dashed var(--line);border-radius:13px;background:var(--panel);color:var(--muted)}
.preview-overlay-pick img{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);object-fit:contain}
.preview-overlay-pick:has(img:not([hidden])) span{opacity:0}
.preview-result-card>div{grid-template-columns:1fr auto auto}
.preview-result-card .open-final,.preview-result-card .open-source{align-self:center;white-space:nowrap}
@media(max-width:980px){.preview-overlay-controls{grid-template-columns:1fr 1fr}.preview-overlay-pick{grid-column:1/-1}.preview-result-card>div{grid-template-columns:1fr}.preview-result-card .open-final,.preview-result-card .open-source{width:100%}}
.preview-editor-modal{width:min(1480px,96vw);height:min(940px,94vh);max-width:none;max-height:none;padding:0;border:1px solid var(--line-strong);border-radius:22px;background:var(--surface-solid);color:var(--text);box-shadow:0 30px 90px rgba(15,23,42,.28)}
.preview-editor-modal::backdrop{background:rgba(15,23,42,.32);backdrop-filter:blur(5px)}
.preview-editor-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.preview-editor-shell>header,.preview-editor-shell>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line)}
.preview-editor-shell>header h2{margin:2px 0 0}.preview-editor-shell>footer{border-top:1px solid var(--line);border-bottom:0}
.preview-editor-body{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 330px}
.preview-editor-workspace{min-width:0;overflow:auto;display:grid;grid-template-columns:minmax(220px,300px) minmax(520px,1fr);gap:18px;align-items:start;padding:18px;background:var(--bg)}
.preview-crop-navigator,.preview-editor-workspace>div{display:grid;gap:8px}
.editor-navigator{position:relative;overflow:hidden;width:100%;line-height:0;border-radius:13px;background:#111827;box-shadow:var(--shadow-sm)}
.editor-navigator>img{display:block;width:100%;height:auto}
.editor-crop-zone{position:absolute;left:0;width:100%;height:84.375%;top:7.8125%;box-sizing:border-box;border:3px solid #3b82f6;background:rgba(59,130,246,.08);cursor:ns-resize;box-shadow:0 0 0 999px rgba(4,8,18,.58)}
.editor-crop-zone span{position:absolute;top:6px;left:7px;padding:5px 7px;border-radius:7px;background:#2563eb;color:#fff;font-size:10px;line-height:1}
.preview-editor-stage{position:relative;overflow:hidden;width:100%;aspect-ratio:16/9;border-radius:16px;background:#0b1020;box-shadow:0 18px 50px rgba(0,0,0,.28)}
.preview-editor-stage.dragging{outline:4px solid #3478ff;outline-offset:4px}.editor-drop-hint{position:absolute;z-index:130;inset:18px;display:none;place-items:center;padding:24px;color:#fff;font-size:18px;font-weight:900;text-align:center;border:2px dashed rgba(255,255,255,.78);border-radius:18px;background:rgba(24,39,78,.76);backdrop-filter:blur(8px);pointer-events:none}.preview-editor-stage.dragging .editor-drop-hint{display:grid}
.editor-viewport{position:absolute;inset:0;transform-origin:center;will-change:transform}.editor-viewport>img{position:absolute;left:0;width:100%;height:auto;max-width:none;user-select:none;pointer-events:none}
.editor-erase-box{position:absolute;z-index:9;box-sizing:border-box;border:2px solid #35a7ff;border-radius:10px;background:rgba(53,167,255,.12);box-shadow:0 0 0 1px rgba(255,255,255,.75),0 8px 24px rgba(0,75,160,.22);cursor:move;touch-action:none}
.editor-erase-box>span{position:absolute;left:6px;top:6px;padding:3px 6px;border-radius:6px;background:rgba(10,35,70,.82);color:#fff;font-size:10px;font-weight:800;pointer-events:none}
.editor-erase-box>button{position:absolute;right:-8px;bottom:-8px;width:18px;height:18px;padding:0;border:2px solid #fff;border-radius:50%;background:#35a7ff;box-shadow:0 2px 8px rgba(0,0,0,.3);cursor:nwse-resize;touch-action:none}
.editor-lasso{position:absolute;inset:0;z-index:10;width:100%;height:100%;cursor:crosshair;touch-action:none;pointer-events:all}
.editor-lasso[hidden],.editor-erase-box[hidden]{display:none!important}
.editor-lasso-hitarea{fill:rgba(0,0,0,.001);pointer-events:all}
.editor-lasso polygon{fill:rgba(53,167,255,.14);stroke:#35a7ff;stroke-width:3;vector-effect:non-scaling-stroke;stroke-linejoin:round;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3));pointer-events:none}.editor-lasso polyline{fill:none;stroke:#35a7ff;stroke-width:3;vector-effect:non-scaling-stroke;stroke-linejoin:round;pointer-events:none}.editor-lasso circle{fill:#fff;stroke:#168de2;stroke-width:3;vector-effect:non-scaling-stroke;cursor:move}.editor-lasso circle.start{fill:#35a7ff;stroke:#fff}
.editor-mask-modes{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.editor-mask-modes .selected{border-color:#35a7ff;background:rgba(53,167,255,.12);color:var(--accent-strong)}
#editorLayerStage{position:absolute;inset:0}
.editor-layer-object{position:absolute;height:auto;cursor:move;user-select:none;touch-action:none;transform-origin:center;filter:drop-shadow(0 7px 9px rgba(0,0,0,.22))}
.editor-layer-object.selected{outline:2px solid #3b82f6;outline-offset:4px}
.preview-editor-sidebar{min-height:0;overflow-x:hidden;overflow-y:auto;padding:16px;border-left:1px solid var(--line);background:var(--surface-solid)}
.preview-editor-sidebar section{display:grid;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.preview-editor-sidebar h3{margin:0}
.preview-editor-sidebar textarea{width:100%;box-sizing:border-box;resize:vertical}.editor-generate-row{display:grid;grid-template-columns:90px 1fr;gap:8px}
.editor-layer-head{display:flex;align-items:center;justify-content:space-between}.editor-layer-list{display:grid;gap:7px}
.editor-layer-head-tools{display:flex;align-items:center;gap:6px}.editor-layer-head-tools button{display:grid;place-items:center;width:32px;height:30px;padding:0;font-weight:900}.editor-lasso-tool svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.editor-zoom-tools{display:flex;align-items:center;gap:3px;padding:0 3px;border-left:1px solid var(--line)}.editor-zoom-tools button{width:30px!important}.editor-zoom-tools output{min-width:42px;color:var(--muted);font-size:10px;font-weight:800;text-align:center}.preview-editor-stage[data-tool=pan]{cursor:grab}.preview-editor-stage[data-tool=pan].is-panning{cursor:grabbing}
.editor-object-list{display:flex;flex-wrap:wrap;gap:7px}.editor-object-chip{display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid var(--line);border-radius:999px;background:var(--soft);font-size:11px}.editor-object-chip.selected{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 16%,transparent)}.layer-variant-controls{display:grid;grid-template-columns:42px 1fr 42px;gap:7px;align-items:center}.layer-variant-controls span{text-align:center;font-weight:800}.layer-variant-controls .preview-agent-button{grid-column:1/-1}
.editor-layer-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;min-width:0;box-sizing:border-box;overflow:hidden;padding:7px;text-align:left;border:1px solid var(--line);border-radius:11px;background:var(--surface-soft);color:var(--text)}
.editor-layer-list{display:flex!important;flex-direction:column-reverse;gap:8px}
.editor-layer-item.selected{border-color:#3b82f6;background:rgba(59,130,246,.1)}.editor-layer-item img{grid-row:1/span 2;width:42px;height:42px;object-fit:contain;border-radius:7px;background:repeating-conic-gradient(#ddd 0 25%,#fff 0 50%) 50%/12px 12px}.editor-layer-item>span:not(.editor-layer-variant-switch):not(.editor-layer-quick-actions){min-width:0;overflow-wrap:anywhere}.editor-layer-item>b{grid-column:3;grid-row:1;color:#3b82f6}
.preview-editor-sidebar section>label{display:grid;gap:5px;color:var(--muted);font-size:11px}.preview-editor-sidebar input[type="range"]{width:100%;accent-color:var(--accent)}.editor-layer-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.editor-layer-actions .danger{grid-column:1/-1}
:root[data-theme="dark"] .preview-editor-modal{background:var(--surface-solid);box-shadow:0 30px 90px #000a}:root[data-theme="dark"] .preview-editor-modal::backdrop{background:rgba(0,0,0,.64)}
.preview-result-card{position:relative}.preview-result-card .edit-preview{align-self:center;white-space:nowrap}.preview-result-card .preview-result-download{position:absolute;z-index:3;top:10px;right:10px;display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(255,255,255,.5);border-radius:12px;color:#fff;background:rgba(12,18,30,.7);box-shadow:0 7px 20px rgba(0,0,0,.22);backdrop-filter:blur(10px);font-size:22px;font-weight:800;text-decoration:none;transition:transform .15s,background .15s}.preview-result-card .preview-result-download:hover{transform:translateY(-2px);background:rgba(69,52,185,.9)}
.youtube-library{margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}.youtube-library summary{cursor:pointer;font-weight:800}.youtube-import-row{display:grid;grid-template-columns:minmax(240px,1fr) minmax(180px,.55fr) auto;gap:9px;margin-top:13px}.youtube-library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.youtube-library-toolbar label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.youtube-source-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:8px;margin-top:10px}.youtube-source-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-solid)}.youtube-source-card>div{display:grid;min-width:0}.youtube-source-card span{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.youtube-source-actions{display:flex!important;grid-auto-flow:column;gap:6px}.youtube-source-actions button{padding:7px 9px;font-size:11px}.style-reference-footer{position:absolute;display:grid;grid-template-columns:minmax(0,1fr) auto}.style-reference-footer small{grid-column:1;overflow:hidden;color:rgba(255,255,255,.72);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.style-reference-footer .style-reference-delete{grid-column:2;grid-row:1/3}.style-reference-delete{opacity:.9}.style-reference:hover .style-reference-delete{background:rgba(208,42,58,.88);opacity:1}@media(max-width:760px){.youtube-import-row{grid-template-columns:1fr}.youtube-library-toolbar{align-items:flex-start;flex-direction:column}}
.local-reference-library{margin-top:18px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}.local-reference-library summary{cursor:pointer;font-weight:800}.local-library-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.library-reference{opacity:.82}.style-reference-restore{grid-column:2;grid-row:1/3;width:30px;height:30px;padding:0;color:#fff;background:rgba(50,115,229,.82);border-color:rgba(255,255,255,.25)}
.editor-layer-transform{position:absolute;height:auto;cursor:move;user-select:none;touch-action:none;transform-origin:center}.editor-layer-transform.selected{outline:2px solid #3b82f6;outline-offset:5px}.editor-layer-object{position:static;display:block;width:100%;height:auto;pointer-events:none}.editor-transform-handle{position:absolute;z-index:5;display:grid;place-items:center;width:20px;height:20px;padding:0;border:2px solid #fff;border-radius:50%;background:#3b82f6;color:#fff;box-shadow:0 2px 7px rgba(0,0,0,.35);touch-action:none}.editor-transform-handle.resize{right:-15px;bottom:-15px;cursor:nwse-resize}.editor-transform-handle.rotate{left:50%;top:-38px;transform:translateX(-50%);cursor:grab;font-size:13px}.editor-transform-handle.rotate::after{content:"";position:absolute;top:18px;width:2px;height:17px;background:#3b82f6}.editor-transform-handle:hover{transform:scale(1.12)}.editor-transform-handle.rotate:hover{transform:translateX(-50%) scale(1.12)}
.editor-layer-transform.locked{cursor:not-allowed}.editor-layer-quick-actions{grid-column:2/4;grid-row:2;justify-self:end;display:flex;align-items:center;gap:4px}.editor-layer-quick-actions i{display:grid;place-items:center;width:27px;height:27px;border:1px solid var(--line);border-radius:8px;background:var(--surface-solid);font-style:normal;cursor:pointer}.editor-layer-quick-actions i:hover{border-color:var(--accent);background:var(--accent-soft)}.editor-base-layer span{display:grid;gap:2px}.editor-base-layer small{color:var(--muted);font-size:10px}.editor-text-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.editor-text-options input[type="color"]{width:100%;height:42px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}.editor-layer-item[draggable="true"]{cursor:grab}.editor-layer-item[draggable="true"]:active{cursor:grabbing}
.editor-layer-quick-actions i.danger{color:#d9364f}.editor-layer-quick-actions i.danger:hover{border-color:#e34c62;background:rgba(227,76,98,.12)}.editor-base-layer.is-hidden{opacity:.58}
.editor-canvas-busy{position:absolute;inset:0;z-index:180;display:grid;place-content:center;justify-items:center;gap:12px;color:#fff;background:rgba(15,23,42,.34);backdrop-filter:blur(2px);pointer-events:all}.editor-canvas-busy[hidden]{display:none}.editor-canvas-busy b{padding:8px 13px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(15,23,42,.72);box-shadow:0 8px 24px rgba(0,0,0,.22)}.editor-canvas-spinner{width:42px;height:42px;border:4px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:editor-canvas-spin .8s linear infinite;filter:drop-shadow(0 4px 10px rgba(0,0,0,.25))}@keyframes editor-canvas-spin{to{transform:rotate(360deg)}}
.editor-layer-variant-switch{grid-column:2;grid-row:2;justify-self:start;display:grid;grid-template-columns:25px auto 25px;align-items:center;gap:3px;margin:0;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--surface-solid)}.editor-layer-variant-switch i{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;color:var(--accent);font-size:19px;font-style:normal;font-weight:800;cursor:pointer}.editor-layer-variant-switch i:hover{background:var(--accent-soft)}.editor-layer-variant-switch em{min-width:30px;color:var(--muted);font-size:10px;font-style:normal;font-weight:800;text-align:center}.editor-layer-item:has(.editor-layer-variant-switch) .editor-layer-quick-actions{grid-column:3;grid-row:2}
@media(max-width:620px){.editor-text-options{grid-template-columns:1fr}}
@media(max-width:1050px){.preview-editor-body{grid-template-columns:1fr}.preview-editor-workspace{grid-template-columns:1fr}.preview-editor-sidebar{border-left:0;border-top:1px solid var(--line)}.preview-editor-modal{height:96vh}}
@media(max-width:760px){.preview-main-inputs,.preview-frame-editor{grid-template-columns:1fr}.preview-frame-editor .wide{grid-column:auto}.preview-input-slot{min-height:155px}}
.standalone-preview-panel{display:grid;gap:var(--space-4,16px)}
.standalone-preview-panel[hidden]{display:none!important}
.preview-context[hidden],.preview-context article[hidden]{display:none!important}
.standalone-preview-panel>label{display:grid;gap:8px;font-weight:700}
.standalone-preview-panel textarea{width:100%;resize:vertical}
.standalone-style-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto auto;gap:12px;align-items:end}
.standalone-style-row label{display:grid;gap:7px;font-weight:700}
.standalone-style-row select,.standalone-style-row input{width:100%}
.standalone-reference-row{display:grid;grid-template-columns:auto auto minmax(260px,1fr) auto;gap:12px;align-items:center}.standalone-reference-row input{width:100%}
@media(max-width:900px){.standalone-style-row{grid-template-columns:1fr}.standalone-style-row button{width:100%}}
@media(max-width:900px){.standalone-reference-row{grid-template-columns:1fr}.standalone-reference-row .small{display:none}}
.composition-modal{width:min(1500px,96vw);height:min(900px,94vh);padding:0;border:0;border-radius:24px;background:var(--surface,#f7f9fd);color:var(--text,#182033);box-shadow:0 30px 90px #10172a66}.composition-modal::backdrop{background:#11182799;backdrop-filter:blur(8px)}.composition-shell{height:100%;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden}.composition-shell>header,.composition-shell>footer{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;background:color-mix(in srgb,var(--surface,#fff) 90%,transparent);border-bottom:1px solid var(--line,#d9dfeb)}.composition-shell>footer{border-top:1px solid var(--line,#d9dfeb);border-bottom:0}.composition-body{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 340px}.composition-workspace{padding:22px;overflow:auto;background:var(--canvas,#e7ebf2)}.composition-stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:18px;background:linear-gradient(135deg,#dfe5ef,#f4f6fa);box-shadow:0 12px 35px #17203325;touch-action:none}.composition-stage>div{position:absolute;inset:0}.composition-safe-zone{z-index:1;display:grid;place-items:end start;padding:10px;color:#fff;font-size:11px;pointer-events:none;text-shadow:0 1px 4px #000}.composition-layer{position:absolute;max-width:none;user-select:none;cursor:grab;filter:drop-shadow(0 5px 12px #0003);transform-origin:center;touch-action:none}.composition-layer.selected{outline:3px solid #3478ff;outline-offset:3px}.composition-regions{pointer-events:none;z-index:20}.composition-region{position:absolute;border:2px dashed #ff3d71;background:#ff3d7122;color:#fff;padding:6px;font-size:12px;font-weight:800;text-shadow:0 1px 3px #000;overflow:hidden}.composition-region.draft{border-color:#40a9ff;background:#40a9ff22}.composition-sidebar{overflow:auto;padding:16px;display:grid;align-content:start;gap:12px;border-left:1px solid var(--line,#d9dfeb);background:var(--surface,#fff)}.composition-sidebar section{display:grid;gap:10px;padding:14px;border:1px solid var(--line,#d9dfeb);border-radius:16px;background:var(--surface-2,#f4f6fa)}.composition-sidebar h3{margin:0}.composition-list{display:grid;gap:7px}.composition-list>button{width:100%;text-align:left}.composition-region-row{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center;font-size:12px}.composition-region-row span{overflow-wrap:anywhere}.composition-sidebar input[type=range]{width:100%}
@media(max-width:900px){.composition-body{grid-template-columns:1fr}.composition-sidebar{border-left:0;border-top:1px solid var(--line,#d9dfeb)}.composition-modal{height:96vh}.composition-stage{min-width:680px}}
.composition-layer.locked{cursor:not-allowed;outline-style:dashed}.composition-layer-row{display:grid!important;grid-template-columns:minmax(0,1fr) 24px 24px;align-items:center;gap:5px;text-align:left}.composition-layer-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composition-layer-row i{display:grid;place-items:center;width:22px;height:22px;font-style:normal;border-radius:7px;background:var(--surface-soft)}
.composition-layer-transform{position:absolute;transform-origin:center;touch-action:none;cursor:grab}.composition-layer-transform.selected{outline:3px solid #3478ff;outline-offset:4px}.composition-layer-transform.locked{cursor:not-allowed;outline-style:dashed}.composition-layer-transform>.composition-layer{position:static;display:block;width:100%;max-width:none;transform:none!important;outline:0!important;filter:none;pointer-events:none}.composition-layer-transform>.composition-layer.composition-text-layer{min-height:44px}.composition-transform-handle{position:absolute;z-index:30;display:grid;place-items:center;width:22px;height:22px;padding:0;border:2px solid #fff;border-radius:50%;color:#fff;background:#3478ff;box-shadow:0 3px 10px #0006;touch-action:none}.composition-transform-handle.resize{right:-16px;bottom:-16px;cursor:nwse-resize}.composition-transform-handle.rotate{left:50%;top:-42px;transform:translateX(-50%);cursor:grab;font-size:14px}.composition-transform-handle.rotate::after{content:"";position:absolute;top:20px;width:2px;height:20px;background:#3478ff}.composition-transform-handle:hover{background:#7657eb;transform:scale(1.1)}.composition-transform-handle.rotate:hover{transform:translateX(-50%) scale(1.1)}
.preview-main-inputs.single{grid-template-columns:1fr}.workspace-header-tools{display:flex;align-items:center;gap:18px;margin-top:10px}.workspace-modal-tabs{width:max-content}.composition-quick-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.composition-quick-tools button{height:44px;padding:0;font-size:20px;font-weight:900}.composition-text-compact{display:grid;grid-template-columns:minmax(0,1fr) 44px auto;gap:7px}.composition-text-compact input[type=color]{width:44px;height:42px;padding:4px}.composition-assets-panel{gap:9px!important}.composition-assets-panel .composition-list{max-height:260px;overflow:auto}.composition-background-details{padding:8px 0 0;border-top:1px solid var(--line)}.composition-background-details summary{cursor:pointer;color:var(--muted);font-size:12px;font-weight:800}.composition-background-details textarea{width:100%;margin-top:9px;box-sizing:border-box}.composition-map-view{min-height:0;overflow:auto;padding:22px;background:var(--canvas,#e7ebf2);grid-template-columns:minmax(0,1fr) 340px}.composition-map-view .preview-hotspot-editor{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto 1fr auto;gap:12px;margin:0;padding:0;border:0;background:transparent}.composition-map-view .hotspot-toolbar{display:contents}.composition-map-view .hotspot-toolbar>div:first-child{grid-column:1;grid-row:1}.composition-map-view .hotspot-toolbar>div:last-child{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(3,48px);align-content:start;justify-content:start;gap:9px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface-solid);box-shadow:var(--shadow-sm)}.composition-map-view .hotspot-toolbar>div:last-child::before{content:"Добавить на карту";grid-column:1/-1;margin-bottom:2px;color:var(--text);font-size:13px;font-weight:850}.composition-map-view .map-add-icon{display:grid;place-items:center;width:48px;height:48px;padding:0}.composition-map-view .map-add-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.composition-map-view .frame-hotspot-stage{grid-column:1;grid-row:2;min-height:0;max-height:none;aspect-ratio:16/9}.composition-map-view .frame-hotspot-stage>img{width:100%;height:100%;max-height:none;object-fit:contain}.composition-map-view .hotspot-legend{grid-column:1;grid-row:3}.frame-hotspot,.frame-hotspot:hover,.frame-hotspot:active{transform:translate(-50%,-50%)!important;transition:box-shadow .15s,filter .15s!important}.frame-hotspot:hover{filter:brightness(1.08);box-shadow:0 10px 26px #0007}
#sourcePanel>.preview-main-inputs,#sourcePanel>.preview-frame-actions{display:none}.inline-composition-workspace{position:static;display:block;width:100%;height:auto;max-width:none;max-height:none;margin:18px 0 0;padding:0;border:1px solid var(--line);border-radius:20px;background:var(--surface-solid);box-shadow:none}.inline-composition-workspace::backdrop{display:none}.inline-composition-workspace [hidden]{display:none!important}.inline-composition-workspace .composition-shell{height:auto;min-height:720px;grid-template-rows:auto minmax(540px,1fr) auto}.inline-composition-workspace .composition-shell>header{border-radius:20px 20px 0 0}.inline-composition-workspace .composition-shell>footer{border-radius:0 0 20px 20px}.inline-composition-workspace #closeComposition{display:none}.inline-composition-workspace .composition-body{min-height:540px}.inline-composition-workspace .composition-workspace{display:flex;flex-direction:column;justify-content:center}.inline-composition-workspace .composition-stage{width:100%;max-height:none}.inline-composition-workspace .composition-map-view{min-height:540px}.inline-composition-workspace .composition-map-view .frame-hotspot-stage,.inline-composition-workspace .composition-map-view .frame-hotspot-stage>img{max-height:none}.composition-layer-row{grid-template-columns:minmax(0,1fr) 24px 24px 24px!important}.composition-layer-row.dragging{opacity:.42}.composition-layer-row.drag-over{border-color:var(--accent);box-shadow:inset 0 3px 0 var(--accent)}.composition-value-label{display:grid;grid-template-columns:minmax(0,1fr) 76px;align-items:center;gap:7px}.composition-value-label>input[type=number]{width:76px;padding:7px 8px;text-align:right}.composition-value-label>input[type=range]{grid-column:1/-1;width:100%}
