.studio.simple-workflow .app-layout{grid-template-columns:218px minmax(0,1fr)}
.studio.simple-workflow main{max-width:1500px;width:100%;margin:auto}
.simple-actions{display:flex;gap:12px;align-items:center;margin:0 0 22px}
.studio .simple-actions button{min-width:130px;padding:13px 24px;font-size:14px;border-radius:10px}
.studio .simple-actions #review,.studio .simple-actions #export{background:var(--surface);border:1px solid var(--line);color:var(--text)}
.simple-status{margin-left:auto;font-size:12px;color:var(--muted)}
.workflow-fold{margin-top:14px;border-top:1px solid var(--line-soft);padding-top:4px}
.workflow-fold>summary{cursor:pointer;color:var(--sub);padding:14px 3px;font-size:12px;list-style:none}
.workflow-fold>summary::after{content:'＋';float:right;color:var(--muted)}
.workflow-fold[open]>summary::after{content:'−'}
.studio .editor-fold .inspector{position:static;height:410px;width:100%;display:flex;border:1px solid var(--line);border-radius:0 0 10px 10px}
.studio .editor-fold .toolbar{border:1px solid var(--line);border-radius:10px 10px 0 0}
.studio .advanced-fold .tool-menu{position:static;display:flex;flex-direction:row;flex-wrap:wrap;width:auto;box-shadow:none;padding:12px}
.studio .advanced-fold .resource-menu{margin:14px 0}
.studio .process-fold #notice{margin:14px 0}
.studio.simple-workflow .canvas-host{min-height:440px}
.studio.simple-workflow .canvas-heading{border-bottom:1px solid var(--line-soft)}
.studio.simple-workflow .live-status{font-size:11px;margin-bottom:12px}
.studio.simple-workflow .page-progress{margin-top:10px}
.studio #ming-pages label{display:flex;flex-direction:row;align-items:center;gap:8px;padding:10px}
.studio .download-receipt{margin:-9px 0 20px;padding:11px 14px;border:1px solid var(--accent);border-radius:9px;background:var(--accent-soft);color:var(--text);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.studio .download-receipt[hidden]{display:none}
.studio .download-receipt strong{display:block;font-size:14px;margin-bottom:5px}
.studio .download-filename{font-weight:600;overflow-wrap:anywhere}
.studio .download-receipt p{margin:5px 0 10px;color:var(--sub)}
.studio .download-save-link{display:inline-block;padding:8px 18px;border-radius:7px;background:var(--accent);color:var(--bg);font-weight:700;text-decoration:none}
.studio #export-dialog{width:min(760px,calc(100vw - 24px));max-width:760px}
.studio #export-dialog>p{margin:8px 0 18px;line-height:1.7}
.studio .export-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 10px;color:var(--sub);font-size:12px}
.studio .export-selection-bar label{display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap;cursor:pointer}
.studio #export-selection-count{text-align:right;color:var(--accent);font-variant-numeric:tabular-nums}
.studio #export-pages{display:grid;gap:9px;max-height:min(48vh,480px);overflow:auto;padding:1px 3px 1px 1px;margin-bottom:18px}
.studio #export-pages .export-page-choice{display:flex;align-items:center;gap:10px;border:1px solid var(--line-soft);background:var(--field);border-radius:10px;padding:7px 10px 7px 7px;transition:border-color .15s,background .15s}
.studio #export-pages .export-page-choice:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.studio #export-pages .export-page-choice label{display:flex;flex:1;min-width:0;align-items:center;gap:13px;padding:0;border:0;background:transparent;cursor:pointer;color:var(--text)}
.studio #export-pages .export-page-choice input{margin-left:6px;width:17px;height:17px}
.studio #export-pages .export-page-choice img{width:108px;height:65px;object-fit:contain;flex:none;background:#0b1118;border-radius:5px;border:1px solid var(--line-soft)}
.studio .export-page-details{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:12px}
.studio .export-page-details strong{color:var(--text);font-size:13px;font-weight:650}
.studio .export-page-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:340px}
.studio .export-page-details small{color:var(--muted);font-size:11px}
.studio #export-pages .export-page-choice button{flex:none;font-size:11px;padding:8px 10px}
.studio #export-preview-dialog{width:min(1500px,calc(100vw - 24px));max-width:1500px}
.studio .export-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.studio .export-preview-grid figure{margin:0;min-width:0}
.studio .export-preview-grid figure[hidden]{display:none}
.studio .export-preview-grid figcaption{font-size:12px;color:var(--sub);margin:0 0 8px}
.studio #export-preview-image,.studio #export-ppt-image{display:block;width:100%;max-height:58vh;object-fit:contain;background:#0b1118;border:1px solid var(--line-soft);border-radius:8px}
.studio .export-preview-grid:has(#export-ppt-figure[hidden]){grid-template-columns:1fr}
.studio #export-preview-note{margin:10px 0 0}
.studio #confirm-export:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:800px){.studio.simple-workflow .app-layout{grid-template-columns:170px minmax(0,1fr)}.studio .simple-actions button{min-width:0;flex:1;padding:12px}.simple-actions{flex-wrap:wrap}.simple-status{width:100%;margin:0}.studio.simple-workflow .canvas-host{min-height:280px}}
@media(max-width:640px){.studio.simple-workflow .app-layout{display:flex}.studio.simple-workflow .sidebar-bottom{display:block}.studio.simple-workflow .canvas-host{min-height:230px}.studio .simple-actions button{font-size:13px}.studio #export-dialog{padding:20px 16px}.studio #export-pages .export-page-choice{flex-wrap:wrap}.studio #export-pages .export-page-choice label{width:100%}.studio #export-pages .export-page-choice img{width:82px;height:54px}.studio #export-pages .export-page-choice button{margin-left:auto}.studio .export-page-name{max-width:180px}.studio .export-selection-bar{align-items:flex-start;flex-direction:column}.studio #export-selection-count{text-align:left}.studio .export-preview-grid{grid-template-columns:1fr}.studio #export-preview-image,.studio #export-ppt-image{max-height:38vh}}

#generation-progress{margin:0 0 16px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
#generation-progress[hidden]{display:none}
.generation-caption{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--text)}
.generation-caption span{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
#generation-progress progress{display:block;appearance:none;width:100%;height:7px;margin:12px 0 0;border:0;border-radius:8px;overflow:hidden;background:var(--line)}
#generation-progress progress::-webkit-progress-bar{background:var(--line);border-radius:8px}
#generation-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#5cbd9b,#9de5c6,#65cce7);border-radius:8px;transition:width .5s ease}
#generation-progress progress:indeterminate{background:linear-gradient(100deg,var(--line) 20%,#8edabf 50%,var(--line) 80%);background-size:200% 100%;animation:progress-wait 2.8s linear infinite}
#generation-progress p{font-size:11px;color:var(--muted);margin:8px 0 0;line-height:1.6}
#generation-progress p:empty{display:none}
#canvas-host{position:relative;isolation:isolate}
#canvas-host.generating-canvas::after{content:'';position:absolute;inset:0;z-index:5;pointer-events:none;background:linear-gradient(105deg,transparent 20%,rgba(88,227,179,.03) 36%,rgba(129,231,244,.20) 49%,rgba(161,240,214,.06) 59%,transparent 76%);background-size:240% 100%;animation:canvas-sweep 3.6s ease-in-out infinite}
@keyframes canvas-sweep{from{background-position:180% 0}to{background-position:-80% 0}}
@keyframes progress-wait{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){#canvas-host.generating-canvas::after{animation:none;background-position:50% 0;opacity:.3}#generation-progress progress:indeterminate{animation:none}#generation-progress progress::-webkit-progress-value{transition:none}}

body:not(.channel-owner) .ming-provider-choice,body:not(.channel-owner) #ming-current-provider,body:not(.channel-owner) #settings-button{display:none!important}
