.studio{min-height:70vh;padding-block:44px 55px}.studio-head{border-bottom:2px solid #465449;padding-bottom:18px}.studio-head h1,.studio-gate h1{font:600 36px/1.3 var(--serif);letter-spacing:-2px;margin:12px 0 4px}.studio-head p,.studio-gate p{color:var(--muted);margin:0}.studio-layout{display:grid;grid-template-columns:minmax(190px,.33fr) minmax(0,1fr);gap:36px;margin-top:26px}.studio-aside-head,.edit-head,.edit-body-label,.edit-foot,.edit-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.studio-aside-head{padding:0 0 14px;border-bottom:1px solid var(--rule)}.studio-aside-head h2,.edit-head h2{font:600 22px/1.35 var(--serif);margin:0}.studio-aside-head button,.edit-body-label button{border:1px solid var(--rule);border-radius:3px;padding:4px 8px;font-size:12px}.studio-row{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;border-bottom:1px solid var(--rule);padding:11px 7px;gap:7px}.studio-row span{display:flex;flex-direction:column;gap:3px;min-width:0}.studio-row small,.studio-row em{font:normal 11px/1.3 inherit;color:var(--muted);font-size:11px}.studio-row strong{font-size:14px;overflow-wrap:anywhere}.studio-row em{white-space:nowrap}.studio-row[aria-current=true]{background:var(--soft);color:var(--forest);box-shadow:inset 2px 0 0 var(--forest)}.studio-editor{min-width:0}.edit-head{margin:0 0 10px}.edit-head h2{font-size:28px;margin-top:4px}.edit-hint,.edit-foot,.studio-wait{font-size:13px;color:var(--muted)}.edit-label{font-size:14px;font-weight:650;display:block;margin:14px 0 5px}.studio input[type=text],.studio textarea{width:100%;border:1px solid var(--rule);border-radius:4px;background:var(--paper);color:var(--ink);padding:12px;font-family:inherit;font-size:16px}.studio textarea{resize:vertical;min-height:360px;height:49vh;font:17px/1.8 var(--serif);white-space:pre-wrap}.studio :is(input,textarea):focus-visible{outline:2px solid #628773;outline-offset:2px}.edit-foot{margin:4px 0 15px;align-items:flex-start;font-size:11px}.edit-foot span:last-child{white-space:nowrap}.edit-actions{justify-content:flex-start;flex-wrap:wrap}.edit-actions a{font-size:13px}.studio-gate{padding:55px 0}.studio-gate p{margin-bottom:20px}.studio-gate .outline{margin:5px}.studio-wait{padding:30px 0}#edit-msg{min-height:1.4em;font-size:13px;color:var(--forest)}#edit-msg.failed{color:#8c4230}#edit-recover button{font-size:12px;padding:6px 9px;margin-right:6px}
@media(max-width:700px){.studio{padding-block:24px 40px}.studio-layout{grid-template-columns:1fr;gap:20px;margin-top:18px}.studio-head h1,.studio-gate h1{font-size:28px}#studio-chapters{max-height:190px;overflow:auto}.studio-row{padding:8px}.studio-row span{flex-direction:row;align-items:center;gap:8px}.studio-aside-head{padding-bottom:8px}.studio textarea{height:42vh;min-height:260px}.edit-hint{font-size:12px}}
@media(max-width:440px){.mast nav:has(#studio-link:not([hidden]))>a[href="#episodes"]{display:none}}
.studio-folders,.edit-manage{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.studio-folders{margin-top:8px;border-bottom:1px solid var(--rule)}
.studio-folders button,.edit-manage button{padding:9px 2px;font-size:13px}
.studio-folders button[aria-pressed=true]{color:var(--forest);font-weight:700;border-bottom:2px solid currentColor}
.edit-manage{margin-top:16px;border-top:1px solid var(--rule)}
.edit-manage button{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.studio-folders{gap:12px}
.studio-bulk{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 0;border-bottom:1px solid var(--rule)}
.studio-bulk label,.studio-item label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;min-height:32px}
.studio input[type=checkbox]{width:17px;height:17px;accent-color:var(--forest);cursor:pointer}
.studio-bulk label{font-size:13px}.studio-bulk span,#bulk-msg{font-size:12px;color:var(--muted)}
#bulk-actions{display:flex;gap:6px;flex-wrap:wrap;width:100%}
#bulk-actions button{border:1px solid var(--rule);border-radius:4px;padding:5px 8px;font-size:13px}
#bulk-actions button[data-action=purge]{color:var(--danger,#ac4139)}
#bulk-actions button:disabled{opacity:.5;cursor:default}
.studio-item{display:flex;align-items:stretch;border-bottom:1px solid var(--rule)}
.studio-item label{padding:0 7px}.studio-item .studio-row{border:0;min-width:0}
#bulk-targets{margin:14px 0;padding-left:22px;overflow:auto;max-height:30vh;font-size:14px}
#bulk-dialog .purge{background:#9e362e;color:#fff}
