.composer-modal{width:min(1040px,calc(100% - 36px));background:#fff;max-height:min(92dvh,1100px)}
.composer-modal #dlgBody{padding:0}.composer-modal>header{position:sticky;top:0;z-index:3;background:white;padding:18px 26px}.studio-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,.9fr);align-items:start}.studio-main{min-width:0;padding:20px 26px}.studio-aside{position:sticky;top:70px;padding:20px 22px 24px;background:#f5f3f9;min-width:0;border-left:1px solid var(--line)}.cs-block{min-width:0;display:block;margin:0;padding:0 0 20px;border:0}.cs-block+.cs-block{border-top:1px solid var(--line);padding-top:18px}.cs-block legend,.cs-block h3,.cs-preview h3{font-size:17px;line-height:1.35;font-weight:720;letter-spacing:-.018em;margin:0 0 10px;padding:0}.cs-block legend{float:left;width:100%}.cs-block legend+*{clear:both}.format-options,.target-options,.cs-accounts,.asset-controls,.adapt-actions{display:flex;flex-wrap:wrap;gap:8px}.format-opt,.target-opt{display:inline-flex;align-items:center;gap:7px;border:1px solid #d8d4e1;background:white;border-radius:9px;padding:8px 10px;cursor:pointer;font-size:14px;font-weight:630;min-height:40px}.format-opt:focus-within,.target-opt:focus-within,.cs-file:focus-within{outline:3px solid #8567ce;outline-offset:2px}.format-opt:has(:checked),.target-opt:has(:checked){border-color:#665492;background:#f4f0fc;color:#39245f}.format-opt input{appearance:auto;min-height:0!important;width:14px!important;height:14px;accent-color:#615090;margin:0}.target-opt input{width:15px;height:15px;margin:0;accent-color:#615090}.target-opt:has(:disabled:not(:checked)){opacity:.6}.target-opt .chan{width:23px;height:23px;font-size:10px}.target-opt .chan svg{width:14px}.cs-accounts{margin-top:10px}.account-pick{flex:1 1 180px;font-size:13px;color:#57536a}.account-pick select{margin-top:3px;color:var(--ink);font-size:14px}.cs-note,.short-adapter{line-height:1.5;border-radius:9px;padding:10px 13px;color:#4b4264;background:#f3eff8;font-size:14px}.cs-note{margin:10px 0 0}.cs-file{position:relative;overflow:hidden;border:1px dashed #9a8fab;background:#faf9fd;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 10px;gap:3px;color:#423961;cursor:pointer;text-align:center}.cs-file input{position:absolute!important;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.cs-file span,.asset-line small{font-size:13px;color:#686378}.cs-file:hover{background:#f2eff8}.asset-line{display:flex;align-items:center;gap:10px;margin-top:8px;padding:7px 8px;background:#f7f7fa;border-radius:8px;min-width:0}.asset-line>div:not(.asset-controls){min-width:0;flex:1}.asset-line img,.asset-symbol{width:36px;height:36px;object-fit:cover;border-radius:5px;flex:none}.asset-symbol{display:grid;place-items:center;color:#6b6082;background:#e9e5ef}.asset-line strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.asset-controls{gap:3px;flex-wrap:nowrap}.asset-controls button,.preview-pager button{width:30px;height:32px;display:grid;place-items:center;border:1px solid var(--line);background:white;border-radius:6px;font-size:20px}.short-adapter{margin:14px 0;padding:15px}.short-adapter h4,.yt-prefs h4{margin:0;font-size:15px}.short-adapter p{margin:6px 0 12px}.adapt-actions{align-items:center}.cs-file.tiny{border:1px solid #d7d1e0;padding:8px 12px;min-height:37px;background:white}.asset-ok{color:#286744;font-weight:650}.cs-preview>select{margin-bottom:14px}.preview-post{background:white;border:1px solid #dcd7e5;border-radius:14px;overflow:hidden}.preview-brand,.preview-copy{padding:11px 13px;font-size:14px}.preview-brand{display:flex;align-items:center;gap:9px}.preview-stage{width:100%;aspect-ratio:9/13;max-height:330px;background:#232030;color:#d8d3e1;display:grid;place-items:center;overflow:hidden}.preview-stage.square{aspect-ratio:1}.preview-stage>span{text-align:center;font-size:14px;line-height:1.6}.preview-stage>span svg{width:25px;height:25px}.preview-stage img,.preview-stage video{width:100%;height:100%;min-height:0;object-fit:contain}.preview-copy p{white-space:pre-line;overflow-wrap:anywhere;max-height:130px;overflow:auto;margin:4px 0 0}.preview-pager{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:8px}.cs-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;padding:13px 24px;border-top:1px solid var(--line);background:white;position:sticky;bottom:0;z-index:2}.studio-main .fields{display:grid;gap:10px}.yt-prefs{margin-top:10px}.sr-only{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}.detail-assets{display:flex;gap:8px;overflow:auto;scroll-snap-type:x mandatory}.detail-assets figure{margin:0;flex:0 0 min(100%,350px);min-width:0;scroll-snap-align:center}.detail-assets img,.detail-assets video{width:100%;max-height:280px;object-fit:contain;background:#211b50;border-radius:8px}.detail-assets figcaption{font-size:13px;color:var(--muted)}.composer-modal [hidden]{display:none!important}.composer-modal [data-feedback]{margin:14px 22px 0}.cs-accounts:empty{display:none}.cs-preview .hint{display:block;margin-top:10px}
@media(max-width:760px){.composer-modal{width:calc(100% - 12px);max-height:95dvh}.studio-grid{grid-template-columns:1fr}.studio-aside{position:static;border-left:0;border-top:1px solid var(--line)}.studio-main,.studio-aside{padding:16px}.cs-preview{max-width:380px;margin:auto}.preview-stage{max-height:230px}.cs-actions{justify-content:flex-start;padding:10px;gap:6px}.cs-actions .btn{font-size:13px;min-height:38px}.composer-modal>header{padding:12px 16px}.target-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.target-opt{font-size:13px;gap:5px}.target-opt input{margin-left:auto}.cs-block .two{grid-template-columns:1fr}}
