/* Only the existing whole-script episode editor; no mutation or submission styling. */
.append-episode-editor{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
.append-episode-editor>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;min-width:0}
.append-episode-editor>header .toolbar{flex-wrap:wrap}
.append-episode-editor>label:not(.check){display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0;width:100%}
.append-episode-editor>label>input:not([type=checkbox]),.append-episode-editor>label>textarea{box-sizing:border-box;width:100%;min-width:0}
.append-episode-editor>label>textarea{height:clamp(288px,45vh,480px);min-height:288px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;resize:vertical}
.append-episode-editor>.check{display:flex;align-items:center;gap:8px;margin:0}
body:has(.append-episode-editor-expanded){overflow:hidden}
.append-episode-editor.append-episode-editor-expanded{position:fixed;inset:16px;z-index:3000;margin:0!important;padding:20px;box-sizing:border-box;background:#101d30!important;box-shadow:0 0 0 100vmax #050b16cc!important;grid-template-rows:auto auto minmax(160px,1fr) auto;overflow:auto}
.append-episode-editor-expanded>header{position:sticky;top:0;background:#101d30;z-index:1}
.append-episode-editor-expanded>label:has(textarea){min-height:0;grid-template-rows:auto minmax(0,1fr)}
.append-episode-editor-expanded>label>textarea{height:100%!important;min-height:120px;resize:none}
@media(max-width:600px){.append-episode-editor>header{align-items:flex-start}.append-episode-editor>label>textarea{height:320px}.append-episode-editor.append-episode-editor-expanded{inset:8px;padding:12px;gap:10px}.append-episode-editor-expanded>header .toolbar{gap:6px}}

.append-episode-editor-expanded>header h3{margin:0!important}
.append-episode-editor-expanded>header .toolbar{margin:0!important}
