/* Stream Control Studio — visual system, local CSS and inline vector icons. */
:root{--sc-surface-top:#1b2029;--sc-surface-bottom:#14171e;--sc-outline:#343b47;--sc-highlight:rgba(255,137,39,.075);--sc-shadow:0 6px 22px #0002;--sc-text:#f4f6fa;--sc-focus:#ff9a46;--sc-control:#222731;--sc-soft-orange:#ffad69;--sc-input:#12161e;--sc-success:#67dfa6;--sc-success-bg:#142a24;--sc-success-line:#315e4c}
html[data-theme="light"]{--sc-surface-top:#fff;--sc-surface-bottom:#f8f9fc;--sc-outline:#dce2ea;--sc-highlight:rgba(208,92,16,.06);--sc-shadow:0 5px 18px #29384c0a;--sc-text:#202c3c;--sc-focus:#b84d00;--sc-control:#f3f5f8;--sc-soft-orange:#b74a00;--sc-input:#fff;--sc-success:#187449;--sc-success-bg:#edf8f1;--sc-success-line:#b8decb}
.sc-icon{width:18px;height:18px;flex:none;vertical-align:middle;display:inline-block}
.sidebar .nav,#opsOpen,#refresh,#opsRefresh,#opsClose{display:inline-flex;align-items:center;gap:9px;justify-content:center}
.sidebar .nav{display:flex;width:100%;justify-content:flex-start;gap:12px;padding-inline:13px;min-height:43px}
.sidebar .nav.active{background:linear-gradient(100deg,#f5822027,#f582200b)!important;border-color:#f582204a!important;box-shadow:inset 2px 0 0 var(--sc-orange)}
.sidebar .nav .sc-icon{width:19px;height:19px}
.sidebar .nav #transferCount{margin-left:auto}
.sidebar .logo{letter-spacing:-.035em}
.topline h1{font-weight:780;letter-spacing:-.045em}
.topline .toolbar{gap:9px;align-items:center;flex-wrap:wrap}
.stats>div,.panel,.monitor-panel,.stream-card,.channel-block,.library-item,.preset-card,.catalog-rail,.catalog-block,.bulkbar,.monitor-kpis>div,.gpu-monitor{background:linear-gradient(155deg,var(--sc-surface-top),var(--sc-surface-bottom));border-color:var(--sc-outline);box-shadow:var(--sc-shadow)}
.stats>div{position:relative;min-width:0;padding:19px 20px;overflow:hidden}
.stats>div:first-child{background:radial-gradient(ellipse at 0 0,var(--sc-highlight),transparent 85%),linear-gradient(155deg,var(--sc-surface-top),var(--sc-surface-bottom))}
.stats small{display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.065em;line-height:1.4}
.stats small .sc-icon{width:19px;height:19px;color:var(--sc-muted)}
.stats>div:first-child .sc-icon{color:var(--sc-orange)}
.stats strong,.monitor-kpis strong{font-variant-numeric:tabular-nums;letter-spacing:-.035em}
.monitor-chart,.gpu-details{border-color:var(--sc-outline);box-shadow:inset 0 1px 0 #ffffff03}
.stream-card,.library-item,.preset-card{border-radius:13px}
.channel-block summary{border-bottom:1px solid transparent}.channel-block[open] summary{border-bottom-color:var(--sc-outline)}
button:not(.nav){border-radius:9px;transition:background-color .15s,border-color .15s,box-shadow .15s,filter .15s}
button:not(:disabled):hover{filter:brightness(1.055)}
button.purple,.orange-btn,.main-control.start,#uploadBtn,#driveLinkBtn,#applyBulk{background:linear-gradient(180deg,#ff9a45,#f17b22)!important;color:#201306!important;border-color:#ff9f50!important;box-shadow:0 2px 8px #f5822018,inset 0 1px 0 #ffffff24}
.ghost,.icon-btn,.secondary-action{border-color:var(--sc-outline)!important;background:var(--sc-control)!important;color:var(--sc-text)!important}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--sc-focus)!important;outline-offset:3px}
.modal,.login-card{border-radius:17px!important;box-shadow:0 18px 65px #0005!important;border-color:var(--sc-outline)!important}
html:not([data-theme="light"]) .modal,html:not([data-theme="light"]) .login-card{background:radial-gradient(ellipse at 90% 0,var(--sc-highlight),transparent 43%),linear-gradient(145deg,#1a1e27,#14171e)!important}
.modal::backdrop{background:rgba(5,8,14,.72)}
html[data-theme="light"] .modal::backdrop{background:rgba(25,35,52,.48)}
.login-card{padding:32px!important}.login-card h2{letter-spacing:-.03em}.login-card .logo{margin-bottom:22px}
#opsDialog{padding:0!important;border-color:color-mix(in srgb,var(--sc-orange) 34%,var(--sc-outline))!important;max-height:90dvh!important;scrollbar-width:thin;scrollbar-color:var(--sc-outline) transparent}
#opsDialog .ops-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:14px;padding:20px 24px;margin:0;border-bottom:1px solid var(--sc-outline);background:radial-gradient(ellipse at 0 0,var(--sc-highlight),transparent 70%),var(--sc-surface-bottom);box-shadow:0 5px 14px #0001}
.ops-brand-icon{width:44px;height:44px;display:grid;place-items:center;color:var(--sc-orange);background:var(--sc-highlight);border:1px solid color-mix(in srgb,var(--sc-orange) 28%,var(--sc-outline));border-radius:12px;flex:none}
.ops-brand-icon .sc-icon{width:25px;height:25px}
.ops-header-text{flex:1;min-width:0}.ops-header-text h2{font-size:21px;letter-spacing:-.035em;margin:0 0 6px}.ops-header-text #opsVersion{font-size:12px;line-height:1.45;margin:0;overflow-wrap:anywhere}
.ops-header-actions{display:flex;align-items:center;gap:8px;flex:none}
#opsDialog #opsRefresh{padding:9px 13px;min-height:38px;margin:0;white-space:nowrap;font-size:12px;font-weight:650}
#opsDialog #opsClose{width:38px;height:38px;padding:0;margin:0;min-height:38px}
#opsRefresh:disabled .sc-icon{animation:sc-refresh 1.1s linear infinite}@keyframes sc-refresh{to{transform:rotate(360deg)}}
#opsStatus{margin:12px 24px 0;line-height:1.5;overflow-wrap:anywhere}#opsStatus:empty{display:none}
#opsDialog .ops-section{margin:16px 24px;padding:18px;border:1px solid var(--sc-outline);border-radius:14px;background:linear-gradient(155deg,var(--sc-surface-top),var(--sc-surface-bottom));gap:12px}
#opsDialog .ops-section:last-child{margin-bottom:24px}
#opsDialog .ops-section h3{display:flex;align-items:center;gap:10px;font-size:16px;letter-spacing:-.012em}
#opsDialog .ops-section h3 .sc-icon{width:21px;height:21px;color:var(--sc-orange)}
#opsDialog .ops-section.ops-send h3 .sc-icon{color:#48a9e7}
#opsDialog .ops-send{background:radial-gradient(ellipse at 100% 0,rgba(40,155,230,.07),transparent 58%),linear-gradient(155deg,var(--sc-surface-top),var(--sc-surface-bottom))}
#opsDialog .ops-section p{margin:0;line-height:1.55}
#opsLinked{display:flex;align-items:center;gap:8px;width:fit-content;border-radius:8px;border:1px solid var(--sc-outline);padding:6px 10px;font-size:12px;font-weight:650;background:var(--sc-control)}
#opsLinked:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
#opsLinked[data-linked="true"]{color:var(--sc-success)!important;background:var(--sc-success-bg);border-color:var(--sc-success-line)}
#opsDialog .ops-guide{border-color:var(--sc-outline);background:var(--sc-input)}
#opsDialog .ops-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
#opsDialog .ops-events label{margin:0;line-height:1.45}
#opsDialog .ops-actions{gap:8px}#opsDialog .ops-actions button{margin:0;min-height:37px;font-size:12px;padding:9px 12px}
#opsDialog .ops-table th{background:var(--sc-surface-top)}#opsDialog .ops-table th,#opsDialog .ops-table td{border-color:var(--sc-outline)}
#opsDialog .ops-table tbody tr:nth-child(even){background:var(--sc-highlight)}
#opsDialog .history-clear{color:#f3a7a7!important}html[data-theme="light"] #opsDialog .history-clear{color:#a62636!important}
@media(max-width:760px){.stats>div{padding:15px}.stats small{font-size:10px}.sidebar .nav{gap:7px;padding-inline:8px}.sidebar .nav .sc-icon{width:15px;height:15px}}
@media(max-width:580px){#opsDialog .ops-header{padding:14px;gap:9px;flex-wrap:wrap}.ops-brand-icon{width:35px;height:35px}.ops-brand-icon .sc-icon{width:21px;height:21px}.ops-header-text h2{font-size:17px}.ops-header-text #opsVersion{font-size:11px}.ops-header-actions{margin-left:auto}#opsDialog #opsRefresh{padding:8px}#opsDialog #opsRefresh span{font-size:11px}#opsDialog .ops-section{margin:12px;padding:13px}#opsDialog .ops-events{grid-template-columns:1fr}#opsStatus{margin:10px 12px 0}.stats small .sc-icon{width:15px;height:15px}}
@media(prefers-reduced-motion:reduce){button{transition:none!important}#opsRefresh:disabled .sc-icon{animation:none}}
/* Plain navigation labels are not counter badges. */
.sidebar .nav span:not(#transferCount){background:none!important;color:inherit!important;padding:0!important;border-radius:0!important;font:inherit!important;margin:0!important}
#opsDialog .ops-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:end}
#opsDialog .ops-section label{margin:0;line-height:1.45}
#opsDialog .ops-section input:not([type=checkbox]){margin-top:6px;margin-bottom:0;min-height:40px}
#opsDialog .ops-section .checklabel{min-height:22px}
#opsDialog .ops-actions button:not(.ghost),#opsBackup{background:var(--sc-control);color:var(--sc-text);border:1px solid var(--sc-outline)}
#opsDialog #opsSave,#opsDialog #opsReport,#opsDialog #opsBackup{background:linear-gradient(180deg,#ff9a45,#f17b22);border-color:#e88130;color:#201306;font-weight:700}
#opsDialog #opsUnlink{color:var(--sc-soft-orange)}
@media(max-width:580px){#opsDialog .ops-fields{grid-template-columns:1fr}}

/* 0.15.6 — Concept C. Deliberately visible optical depth, local vector ribbons, compact admin. */
:root{--sc-wave-orange:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 190'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop stop-color='%23fa7319' stop-opacity='0'/%3E%3Cstop offset='.55' stop-color='%23f77d26' stop-opacity='.18'/%3E%3Cstop offset='1' stop-color='%23ffb05c' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='b'%3E%3Cstop stop-color='%23f77b20' stop-opacity='0'/%3E%3Cstop offset='.72' stop-color='%23ff993f'/%3E%3Cstop offset='1' stop-color='%23ffcf93' stop-opacity='.15'/%3E%3C/linearGradient%3E%3Cfilter id='g'%3E%3CfeGaussianBlur stdDeviation='9'/%3E%3C/filter%3E%3ClinearGradient id='m'%3E%3Cstop stop-color='white' stop-opacity='0'/%3E%3Cstop offset='.18' stop-color='white'/%3E%3Cstop offset='.92' stop-color='white'/%3E%3Cstop offset='1' stop-color='white' stop-opacity='.1'/%3E%3C/linearGradient%3E%3Cmask id='f'%3E%3Crect width='700' height='190' fill='url(%23m)'/%3E%3C/mask%3E%3C/defs%3E%3Cg mask='url(%23f)'%3E%3Cpath d='M0 180 C260 200 325 143 430 55 S610 -38 700 -60 L700 190 Z' fill='url(%23a)'/%3E%3Cpath d='M0 180 C260 200 325 143 430 55 S610 -38 700 -60' fill='none' stroke='%23ff812b' stroke-width='12' opacity='.55' filter='url(%23g)'/%3E%3Cpath d='M0 180 C260 200 325 143 430 55 S610 -38 700 -60' fill='none' stroke='url(%23b)' stroke-width='1.6'/%3E%3C/g%3E%3C/svg%3E");--sc-plane:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 130'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%239de2ff'/%3E%3Cstop offset='1' stop-color='%231c6ba7'/%3E%3C/linearGradient%3E%3ClinearGradient id='l'%3E%3Cstop stop-color='%23125eaa' stop-opacity='0'/%3E%3Cstop offset='.6' stop-color='%2346baff'/%3E%3Cstop offset='1' stop-color='%23125eaa' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='g'%3E%3CfeGaussianBlur stdDeviation='7'/%3E%3C/filter%3E%3ClinearGradient id='m'%3E%3Cstop stop-color='white' stop-opacity='0'/%3E%3Cstop offset='.22' stop-color='white'/%3E%3Cstop offset='.87' stop-color='white'/%3E%3Cstop offset='1' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cmask id='f'%3E%3Crect width='300' height='130' fill='url(%23m)'/%3E%3C/mask%3E%3C/defs%3E%3Cg mask='url(%23f)'%3E%3Cpath d='M0 125Q76 145 155 62T300 0' fill='none' stroke='%232b9fff' stroke-width='15' opacity='.6' filter='url(%23g)'/%3E%3Cpath d='M0 125Q76 145 155 62T300 0' fill='none' stroke='url(%23l)' stroke-width='1.8'/%3E%3C/g%3E%3Cpath d='M176 53l87-34c5-2 8 1 7 6l-17 75c-1 5-5 6-9 3l-25-19-15 14 2-27 50-40-58 34-22-6c-5-2-5-4 0-6Z' fill='url(%23p)' stroke='%237fc8f4' stroke-opacity='.65'/%3E%3C/svg%3E")}
html:not([data-theme=light]){--sc-surface-top:#1b202c;--sc-surface-bottom:#10131b;--sc-outline:#343c4b;--sc-control:#202632;--sc-highlight:rgba(255,137,39,.13)}
html:not([data-theme=light]) .app-layout{background:var(--sc-wave-orange) right top/680px 175px no-repeat,radial-gradient(ellipse at 80% 0,#1a1922 0,transparent 36%),#0d1016}
html:not([data-theme=light]) .sidebar{background:var(--sc-wave-orange) left bottom/290px 105px no-repeat,linear-gradient(160deg,#151822,#0c0f15 75%);border-right:1px solid #282e3a}
.sidebar .logo{font-size:19px;font-weight:800;letter-spacing:-.045em}.sidebar .logo b{font-size:32px;text-shadow:0 0 15px #ff8e4344}.sidebar .logo small{font-size:10px;letter-spacing:.27em}
.sidebar .nav{min-height:46px;font-size:14px;font-weight:650;border:1px solid transparent;border-radius:11px}.sidebar .nav.active{border-color:#bd681e!important;box-shadow:0 0 16px #f780252d,inset 0 0 18px #f780251c!important;background:linear-gradient(110deg,#75401678,#372415ab)!important;color:#ffd09e!important}.sidebar .nav:hover:not(.active){background:var(--sc-control)}
.topline h1{font-size:33px}.topline .sub{font-size:13px}.stats{gap:15px;margin-bottom:24px}.stats>div{min-height:106px;padding:17px 18px;border-radius:14px;box-shadow:inset 0 1px 0 #ffffff08,0 7px 19px #0002}.stats small{letter-spacing:.055em}.stats small .sc-icon{box-sizing:content-box;padding:8px;border-radius:9px;background:#899db713;width:20px;height:20px}.stats strong{font-size:32px;margin-top:6px;padding-left:2px}.stats #diskFree{font-size:clamp(16px,1.55vw,27px)}
html:not([data-theme=light]) .stats>div:first-child{border-color:#7e451d;background:var(--sc-wave-orange) right bottom/100% 100% no-repeat,linear-gradient(135deg,#31221d,#16151c 70%);box-shadow:inset 0 1px 0 #ffb67b20,0 5px 18px #e96c1616}
.monitor-panel,.panel,.stream-card,.channel-block,.library-item,.preset-card{border-radius:16px}.monitor-kpis>div{border-radius:12px;background:linear-gradient(145deg,var(--sc-surface-top),var(--sc-surface-bottom));box-shadow:inset 0 1px 0 #ffffff06}.monitor-kpis strong{font-size:27px}.monitor-chart{border-radius:14px}
html:not([data-theme=light]) #opsDialog{border:1px solid #d3823b!important;box-shadow:0 0 23px #ff852735,inset 0 0 21px #ff852717,0 28px 90px #000a!important;background:linear-gradient(150deg,#181e29,#10131b 65%)!important}
#opsDialog::backdrop{background:rgba(4,6,10,.35)!important}html[data-theme=light] #opsDialog::backdrop{background:rgba(28,39,55,.32)!important}
#opsDialog .ops-header{padding:25px 28px 24px;gap:16px;min-height:104px;box-shadow:none;border-bottom:1px solid var(--sc-outline);background:var(--sc-surface-bottom)}
html:not([data-theme=light]) #opsDialog .ops-header{background:var(--sc-wave-orange) right top/440px 135px no-repeat,linear-gradient(130deg,#201b20,#151923 50%,#10131b)}
#opsDialog .ops-brand-icon{width:56px;height:56px;border-radius:14px;background:linear-gradient(145deg,#f580202d,#f580200b);box-shadow:inset 0 1px 0 #ffb77822,0 0 18px #f5802014}.ops-brand-icon .sc-icon{width:32px;height:32px}
.ops-header-text h2{font-size:26px;line-height:1.15;letter-spacing:-.035em}.ops-header-text #opsVersion{font-size:12px;margin-top:8px}.ops-header-actions{gap:9px}
html:not([data-theme=light]) #opsDialog #opsRefresh{border:1px solid #ffad5d!important;background:linear-gradient(180deg,#914a18,#512b15)!important;box-shadow:0 0 13px #ff8b3460,inset 0 1px 3px #ffbd7955;color:#fff4e8!important;font-size:13px;min-height:42px;padding:10px 14px}#opsDialog #opsClose{width:42px;height:42px}
#opsDialog .ops-section{margin:12px 24px;padding:0;border-radius:13px;overflow:hidden;display:block;box-shadow:inset 0 1px 0 #ffffff06}#opsDialog .ops-section.ops-send{margin-top:20px;padding:0}
.ops-telegram-hero{padding:20px 22px;min-height:145px;display:grid;align-content:center;gap:8px;background:radial-gradient(ellipse at 100% 0,#188ddd1a,transparent 70%)}
html:not([data-theme=light]) .ops-telegram-hero{background:var(--sc-plane) right 10px center/245px 115px no-repeat,radial-gradient(ellipse at 90% 40%,#124a753d,transparent 68%),linear-gradient(125deg,#1b2534,#121925)}
#opsDialog .ops-telegram-hero h3{font-size:21px;gap:12px}#opsDialog .ops-telegram-hero h3 .sc-icon{box-sizing:content-box;width:24px;height:24px;padding:10px;border-radius:11px;color:#e0f3ff;background:linear-gradient(155deg,#259dd8,#145382);box-shadow:inset 0 1px 0 #bde8ff44,0 5px 12px #1266a42b}#opsDialog .ops-telegram-description{font-size:13px;max-width:calc(100% - 165px);margin:0 0 2px 56px;line-height:1.45}#opsLinked{margin-left:56px!important;padding:7px 12px;border-radius:8px}#opsLinked[data-linked=true]{background:linear-gradient(135deg,#12452f,#143128);border-color:#337857;color:#8af2ba!important}html[data-theme=light] #opsLinked[data-linked=true]{background:#edf8f1;border-color:#b8decb;color:#187449!important}
.ops-config>summary,.ops-disclosure>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 19px;font-weight:700}.ops-config>summary::-webkit-details-marker,.ops-disclosure>summary::-webkit-details-marker{display:none}.ops-config>summary:after,.ops-disclosure>summary:after{content:'';width:8px;height:8px;border-right:2px solid var(--sc-muted);border-bottom:2px solid var(--sc-muted);transform:rotate(45deg);margin-right:4px;flex:none}.ops-config[open]>summary:after,.ops-disclosure[open]>summary:after{transform:rotate(225deg)}.ops-config>summary:hover,.ops-disclosure>summary:hover{background:var(--sc-highlight)}.ops-config>summary{border-top:1px solid var(--sc-outline)}.ops-config[open]{padding:0 20px 18px;display:grid;gap:12px}.ops-config[open]>summary{margin:0 -20px 0}.ops-disclosure-body{display:grid;gap:13px;padding:2px 19px 18px}.ops-disclosure[open]>summary{border-bottom:1px solid var(--sc-outline);margin-bottom:13px}#opsDialog .ops-disclosure h3{font-size:15px;gap:12px}#opsDialog .ops-disclosure h3 .sc-icon{box-sizing:content-box;width:20px;height:20px;padding:7px;border-radius:8px;background:var(--sc-highlight)}
#opsDialog .ops-section:last-child{margin-bottom:24px}#opsStatus:not(:empty){padding:9px 12px;background:var(--sc-control);border-radius:8px}
html[data-theme=light] #opsDialog .ops-header{background:linear-gradient(120deg,#fff7ef,#fff 65%)}html[data-theme=light] .sidebar .nav.active{background:#fff0de!important;color:#8e410c!important;box-shadow:none!important;border-color:#e4aa78!important}html[data-theme=light] .ops-telegram-hero{background:linear-gradient(110deg,#f0f8ff,#fff)}
@media(max-width:760px){.topline h1{font-size:27px}.stats strong{font-size:26px}.stats small .sc-icon{padding:5px;width:16px;height:16px}.ops-header-text h2{font-size:21px}}
@media(max-width:580px){#opsDialog .ops-header{min-height:0;padding:14px;gap:10px;flex-wrap:wrap}#opsDialog .ops-brand-icon{width:39px;height:39px}.ops-brand-icon .sc-icon{width:24px;height:24px}.ops-header-text h2{font-size:18px}.ops-header-actions{margin-left:auto}#opsDialog #opsRefresh{min-height:36px}#opsDialog #opsClose{width:36px;height:36px}#opsDialog .ops-section{margin:11px 12px}#opsDialog .ops-section.ops-send{margin-top:13px}.ops-telegram-hero{padding:15px;min-height:120px}html:not([data-theme=light]) .ops-telegram-hero{background:radial-gradient(ellipse at 90% 30%,#124a753d,transparent 75%),#171f2b}#opsDialog .ops-telegram-hero h3{font-size:17px;gap:8px}#opsDialog .ops-telegram-hero h3 .sc-icon{padding:7px;width:19px;height:19px}#opsDialog .ops-telegram-description{margin-left:0;max-width:none}#opsLinked{margin-left:0!important}.ops-disclosure>summary,.ops-config>summary{padding:13px}.ops-disclosure-body{padding:0 13px 13px}}

#opsDialog .ops-section.ops-send .ops-telegram-hero h3 .sc-icon{color:#f2faff}#opsDialog .ops-section .ops-telegram-description{margin-left:56px} @media(max-width:580px){#opsDialog .ops-section .ops-telegram-description{margin-left:0}}

/* Backup and restore, local feedback and a real downloadable fallback anchor. */
#opsDialog .ops-backup-card{display:grid;gap:10px;padding:15px;border:1px solid var(--sc-outline);border-radius:11px;background:var(--sc-input)}
#opsDialog .ops-backup-card h4{margin:0;font-size:15px;letter-spacing:-.01em}
#opsDialog .ops-backup-card label{margin:0}#opsDialog .ops-backup-card button{justify-self:start;margin:0;min-height:38px}
#opsDialog .ops-backup-status{font-size:13px;overflow-wrap:anywhere}#opsDialog .ops-backup-status:empty{display:none}
#opsDialog .ops-backup-status[data-state=error]{color:#f3a7a7}html[data-theme=light] #opsDialog .ops-backup-status[data-state=error]{color:#a62636}
#opsDialog .ops-backup-status[data-state=ok]{color:var(--sc-success)}#opsDialog #opsBackupLink:not([hidden]){justify-self:start;display:inline-flex}
#opsDialog .ops-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
#opsDialog .ops-file-picker{width:fit-content;border:1px solid var(--sc-outline);background:var(--sc-control);color:var(--sc-text);padding:9px 13px;border-radius:8px;cursor:pointer;font-weight:650}
#opsRestoreFile:focus-visible+.ops-file-picker{outline:2px solid var(--sc-focus);outline-offset:3px}

/* Local transfer controls, intentionally separate from stream actions. */
.local-upload-actions{display:flex;justify-content:flex-end;margin-top:8px}
.local-upload-actions .local-upload-cancel{padding:5px 12px;font-size:12px;min-height:28px}

/* Administration remains a dialog visually, without the native modal top layer. */
#opsBackdrop{position:fixed;inset:0;background:rgba(5,8,14,.72);z-index:1000}
#opsBackdrop[hidden]{display:none!important}
html[data-theme="light"] #opsBackdrop{background:rgba(25,35,52,.48)}
#opsDialog[open]{position:fixed;inset:0;margin:auto;height:fit-content;z-index:1001}

/* v0.16.2: live elapsed session timer, same style in both themes. */
.emission-clock strong{font-variant-numeric:tabular-nums;font-weight:700;color:inherit;white-space:nowrap}
.emission-clock[hidden]{display:none!important}
