#episode-status-button{position:fixed;z-index:40;display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;margin:0;border:1px solid #e4c9c4;border-radius:18px;background:rgba(255,253,249,.96);color:#e85258;box-shadow:0 4px 20px #29130d26;backdrop-filter:blur(12px);cursor:pointer;box-sizing:border-box}
#episode-status-button:focus-visible{outline:3px solid #e85258;outline-offset:2px}
.studio-session-check #episode-status-button,.studio-entry-loading #episode-status-button{visibility:hidden}
#episode-status-button[aria-expanded=true]{background:#ffebe7}
#episode-status-button svg{width:32px;height:32px}
.ers-ring-track,.ers-ring{stroke-width:1.7;transform:rotate(-90deg);transform-origin:16px 16px}
.ers-ring-track{stroke:#e8d4ce}.ers-ring{stroke:#e85258;stroke-dasharray:0 100;stroke-linecap:round}
.ers-badge{position:absolute;right:-2px;top:-4px;background:#e85258;color:white;border:2px solid #fffaf5;border-radius:20px;min-width:17px;height:17px;padding:0 3px;box-sizing:content-box;font:600 10px/17px Poppins,sans-serif}.ers-badge[hidden]{display:none}
#episode-status-panel{position:fixed;z-index:65;width:430px;max-width:calc(100vw - 24px);display:flex;flex-direction:column;box-sizing:border-box;background:#fffdf9;color:#302724;border:1px solid #e5cbc4;border-radius:20px;box-shadow:0 12px 48px #35201630;font:500 13px/1.5 Poppins,system-ui,sans-serif;overflow:hidden}
#episode-status-panel[hidden]{display:none}
#episode-status-panel *{box-sizing:border-box}
#episode-status-panel header{display:flex;align-items:center;gap:6px;padding:16px 14px 12px;border-bottom:1px solid #efdfd8;background:#fff8f2;flex:none}
#episode-status-panel header>div{flex:1;min-width:0}
#episode-status-panel h2{font:700 18px/1.4 Poppins,sans-serif;margin:0}
#ers-updated{font-size:10px;color:#77655d;margin:4px 0 0;min-height:15px}
#episode-status-panel button{min-width:44px;min-height:44px;border:1px solid #e7ccc6;border-radius:12px;background:#fffdf9;color:#e85258;font:500 25px/1 Poppins,sans-serif;cursor:pointer;padding:0}
#episode-status-panel button:disabled{opacity:.5;cursor:wait}
#episode-status-panel button:focus-visible,#episode-status-panel summary:focus-visible{outline:2px solid #e85258;outline-offset:-3px}
.ers-content{overflow:auto;overscroll-behavior:contain;padding:14px;min-height:0;scrollbar-width:thin}
.ers-overview{margin-bottom:14px}.ers-overview strong{font-weight:600}.ers-overview p{margin:6px 0;color:#705e54;font-size:12px}.ers-overview progress{width:100%;height:8px;border:0;border-radius:10px;overflow:hidden;accent-color:#e85258;background:#efdfd8}.ers-overview progress::-webkit-progress-bar{background:#efdfd8}.ers-overview progress::-webkit-progress-value{background:#e85258;border-radius:10px}
.ers-sequence{margin:8px 0;border:1px solid #eadbd3;border-radius:13px;overflow:hidden}.ers-sequence summary{display:flex;align-items:center;gap:8px;padding:12px;cursor:pointer;list-style:none}.ers-sequence summary::-webkit-details-marker{display:none}.ers-sequence summary:before{content:'›';font-size:20px;color:#e85258;flex:none}.ers-sequence[open] summary:before{transform:rotate(90deg)}
.ers-seq-name{flex:1;min-width:0}.ers-seq-name strong{display:block;font-size:13px}.ers-seq-name small{display:block;font-size:10px;color:#78665d;overflow-wrap:anywhere}
.ers-state{font:600 10px/1.4 Poppins,sans-serif;padding:4px 7px;border-radius:8px;background:#eee9e3;color:#6b625a;flex:none;text-align:center;max-width:94px}.ers-rendering,.ers-preparing,.ers-assembling{background:#fff0d4;color:#876000}.ers-completed{background:#e6f2e9;color:#286543}.ers-failed,.ers-needs_attention{background:#fde7e5;color:#e85258}.ers-queued{background:#e9eefb;color:#475c91}
.ers-shot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 10px;padding:9px 12px 9px 28px;border-top:1px solid #f1e6df;font-size:12px}.ers-shot small{flex-basis:100%;font-size:10px;color:#826257}.ers-reason,.ers-empty{font-size:11px;color:#826257;padding:0 12px;margin:0 0 12px}
@media(max-width:1000px){#episode-status-panel{width:auto;border-radius:17px}#episode-status-button{border-radius:15px;box-shadow:0 2px 10px #29130d16}.studio-timeline-view>.api-activity{right:calc(max(12px,env(safe-area-inset-right)) + 220px)}}
@media(max-width:360px){#studio-jump-latest{max-width:130px;white-space:normal;font-size:11px;padding:6px 8px}}

#episode-status-panel header button svg{display:block;width:20px;height:20px;margin:auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:1000px){#studio-jump-latest{left:calc(max(20px,env(safe-area-inset-left)) + var(--episode-status-size,50px) + 10px)!important;max-width:calc(100vw - var(--episode-status-size,50px) - 156px);white-space:normal}}

.ers-skipped{background:#eee8df;color:#5f5448}.ers-sequence-actions{display:flex;gap:8px;padding:8px 12px}.ers-sequence-actions button{min-height:44px;padding:8px 12px;border:1px solid #d3b8b3;border-radius:10px;background:#fffaf5;color:#e85258;font:inherit;font-weight:600;cursor:pointer}.ers-complete-note{color:#176044}.sequence-inclusion-feedback{display:block;font-size:12px;line-height:1.4;padding:4px 8px}.sequence-skipped-label{font-size:12px;color:#776455}.sequence-inclusion-toggle{min-height:44px}
