:root {
  --stvm-navy:#063b4c;
  --stvm-deep:#032a38;
  --stvm-blue:#7eb0cf;
  --stvm-cream:#f7e9ca;
  --stvm-paper:#fffaf0;
  --stvm-coral:#ff7358;
  --stvm-red:#b72f28;
  --stvm-green:#19745f;
  --stvm-text:#0a3340;
  --stvm-muted:#63757b;
  --stvm-line:rgba(3,42,56,.13);
  --stvm-shadow:0 18px 55px rgba(3,42,56,.11);
}

*{box-sizing:border-box}
html{min-height:100%;background:#edf3f2}
body{min-width:320px;min-height:100%;margin:0;color:var(--stvm-text);background:radial-gradient(circle at 8% 8%,rgba(126,176,207,.22),transparent 22rem),linear-gradient(180deg,#f9f4e8,#edf3f2 52%,#e5efee);font-family:Inter,Avenir Next,Avenir,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}

.stvm-app{width:min(1180px,100%);min-height:100vh;margin:0 auto;padding:max(16px,env(safe-area-inset-top)) clamp(16px,4vw,44px) max(24px,env(safe-area-inset-bottom))}
.stvm-header{height:76px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--stvm-line)}
.stvm-brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}
.stvm-brand img{width:92px;height:70px;object-fit:contain;filter:drop-shadow(0 1px 0 rgba(3,42,56,.36)) drop-shadow(0 4px 9px rgba(3,42,56,.12))}
.stvm-brand span{display:grid;gap:3px}
.stvm-brand strong{font-size:16px;letter-spacing:.08em}
.stvm-brand small{color:var(--stvm-muted);font-size:11px;font-weight:800;letter-spacing:.04em}
.stvm-header-actions{display:flex;align-items:center;gap:9px}
.stvm-icon-button,.stvm-install-button{height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--stvm-line);border-radius:999px;color:var(--stvm-deep);background:rgba(255,250,240,.74);box-shadow:0 6px 20px rgba(3,42,56,.06);font-size:12px;font-weight:900;text-decoration:none;cursor:pointer}
.stvm-icon-button{width:42px}
.stvm-icon-button span{color:var(--stvm-coral);font-size:17px}
.stvm-install-button{padding:0 17px}
.stvm-install-button span{font-size:18px;font-weight:500}

.stvm-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:32px;padding:48px 4px 36px}
.stvm-kicker,.stvm-intro>div>span,.stvm-panel>header>div>span{color:var(--stvm-coral);font-size:11px;font-weight:950;letter-spacing:.17em}
.stvm-intro>div>span{display:flex;align-items:center;gap:9px}
.stvm-intro>div>span i{width:8px;height:8px;border-radius:50%;background:var(--stvm-green);box-shadow:0 0 0 5px rgba(25,116,95,.1);animation:stvm-pulse 1.6s ease-in-out infinite}
.stvm-intro h1{margin:14px 0 12px;color:var(--stvm-deep);font-size:clamp(46px,8vw,78px);line-height:.85;letter-spacing:-.075em}
.stvm-intro p{max-width:580px;margin:0;color:#46646e;font-size:16px;font-weight:650;line-height:1.55}
.stvm-intro aside{min-width:210px;display:grid;gap:5px;padding:18px 20px;border:1px solid var(--stvm-line);border-radius:18px;background:rgba(255,250,240,.62)}
.stvm-intro aside span{color:var(--stvm-muted);font-size:10px;font-weight:950;letter-spacing:.14em}
.stvm-intro aside strong{overflow:hidden;font-size:16px;white-space:nowrap;text-overflow:ellipsis}
.stvm-intro aside a{margin-top:3px;color:var(--stvm-red);font-size:11px;font-weight:850;text-decoration:none}

.stvm-status{position:sticky;z-index:20;top:max(10px,env(safe-area-inset-top));margin:0 0 16px;padding:14px 17px;border:1px solid rgba(25,116,95,.18);border-radius:15px;color:#115c4d;background:#e2f4ed;box-shadow:0 12px 28px rgba(3,42,56,.1);font-size:13px;font-weight:850}
.stvm-status.is-error{border-color:rgba(183,47,40,.22);color:#8f2b27;background:#fff0ec}
.stvm-mode-tabs{display:flex;align-items:center;gap:8px;margin:0 0 18px;padding:6px;border:1px solid var(--stvm-line);border-radius:17px;background:rgba(255,250,240,.72);box-shadow:0 10px 30px rgba(3,42,56,.06)}
.stvm-mode-tabs button{min-height:46px;display:flex;align-items:center;justify-content:center;gap:8px;flex:1;padding:0 16px;border:0;border-radius:12px;color:#587078;background:transparent;font-size:12px;font-weight:950;cursor:pointer;transition:color .18s ease,background .18s ease,box-shadow .18s ease}
.stvm-mode-tabs button span{color:var(--stvm-coral);font-size:16px;font-weight:500}
.stvm-mode-tabs button.is-selected{color:var(--stvm-cream);background:var(--stvm-deep);box-shadow:0 9px 22px rgba(3,42,56,.2)}
.stvm-workspace{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(340px,.82fr);align-items:start;gap:20px}
.stvm-panel{overflow:hidden;border:1px solid rgba(3,42,56,.1);border-radius:26px;background:rgba(255,250,240,.9);box-shadow:var(--stvm-shadow);backdrop-filter:blur(18px)}
.stvm-panel>header{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--stvm-line)}
.stvm-panel>header h2{margin:5px 0 0;color:var(--stvm-deep);font-size:23px;letter-spacing:-.04em}
.stvm-compose form{display:grid;gap:18px;padding:24px}
.stvm-text-button,.stvm-refresh{border:0;color:var(--stvm-navy);background:transparent;font-size:12px;font-weight:900;cursor:pointer}
.stvm-refresh{width:40px;height:40px;border:1px solid var(--stvm-line);border-radius:50%;background:#fff;font-size:20px;transition:transform .2s ease}
.stvm-refresh:active{transform:rotate(90deg)}

.stvm-field{position:relative;display:grid;gap:8px;min-width:0}
.stvm-field>span,.stvm-schedule legend{color:#365963;font-size:12px;font-weight:900;letter-spacing:.025em}
.stvm-field input,.stvm-field textarea,.stvm-field select{width:100%;min-width:0;border:1px solid rgba(3,42,56,.14);border-radius:14px;outline:0;color:var(--stvm-deep);background:#fffdf7;box-shadow:inset 0 1px 0 rgba(255,255,255,.9);font-size:15px;font-weight:650;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.stvm-field input,.stvm-field select{height:49px;padding:0 14px}
.stvm-field textarea{display:block;min-height:92px;padding:13px 14px;line-height:1.42;resize:vertical}
.stvm-field textarea#stvmTitle{min-height:112px;font-size:22px;font-weight:850;letter-spacing:-.025em}
.stvm-field textarea#stvmEventTitle{min-height:92px;font-size:21px;font-weight:850;letter-spacing:-.025em}
.stvm-field input:focus,.stvm-field textarea:focus,.stvm-field select:focus{border-color:var(--stvm-blue);background:#fff;box-shadow:0 0 0 4px rgba(126,176,207,.16)}
.stvm-field>small{position:absolute;right:12px;bottom:10px;color:#819096;font-size:10px;font-weight:800}
.stvm-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.stvm-image-field{display:grid;gap:12px;padding:16px;border:1px solid rgba(3,42,56,.11);border-radius:17px;background:#f7f2e7}
.stvm-image-field .stvm-field>small{position:static;color:#718287;font-size:10px;font-weight:700;line-height:1.4}
.stvm-image-field input[type="file"]{height:auto;min-height:49px;padding:10px 12px;background:#fff}
.stvm-image-preview{width:100%;aspect-ratio:16/9;display:block;border-radius:13px;object-fit:cover;background:#dce7e7;box-shadow:inset 0 0 0 1px rgba(3,42,56,.1)}
.stvm-schedule{display:grid;gap:15px;margin:2px 0 0;padding:19px;border:1px solid var(--stvm-line);border-radius:18px;background:rgba(126,176,207,.08)}
.stvm-schedule legend{padding:0 7px}
.stvm-duration-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.stvm-duration-row button{height:39px;border:1px solid var(--stvm-line);border-radius:11px;color:#45616b;background:#fffdf7;font-size:11px;font-weight:900;cursor:pointer}
.stvm-duration-row button.is-selected{border-color:var(--stvm-navy);color:var(--stvm-cream);background:var(--stvm-navy)}
.stvm-toggle{display:flex;align-items:center;gap:11px;cursor:pointer}
.stvm-toggle input{position:absolute;opacity:0;pointer-events:none}
.stvm-toggle>i{position:relative;width:44px;height:25px;flex:0 0 auto;border-radius:99px;background:#c7d2d3;transition:background .2s ease}
.stvm-toggle>i::after{content:"";position:absolute;width:19px;height:19px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.18);transition:transform .2s ease}
.stvm-toggle input:checked+i{background:var(--stvm-coral)}
.stvm-toggle input:checked+i::after{transform:translateX(19px)}
.stvm-toggle>span{display:grid;gap:2px}
.stvm-toggle strong{font-size:12px}
.stvm-toggle small{color:var(--stvm-muted);font-size:10px;font-weight:700}

.stvm-preview-card{min-height:170px;display:flex;flex-direction:column;justify-content:flex-end;gap:9px;padding:22px;border-radius:19px;color:#fff;background:radial-gradient(circle at 86% 15%,rgba(255,255,255,.13),transparent 30%),linear-gradient(135deg,#761b1d,#c34036);box-shadow:0 15px 35px rgba(118,27,29,.18)}
.stvm-preview-card>span{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:950;letter-spacing:.16em}
.stvm-preview-card>span i{width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 0 5px rgba(255,255,255,.14)}
.stvm-preview-card>strong{display:-webkit-box;overflow:hidden;font-size:clamp(24px,4vw,35px);line-height:.92;letter-spacing:-.055em;text-transform:uppercase;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.stvm-preview-card>small{color:#ffd9d0;font-size:9px;font-weight:900;letter-spacing:.13em}
.stvm-preview-card.is-event{background:radial-gradient(circle at 85% 18%,rgba(126,176,207,.26),transparent 32%),linear-gradient(135deg,#032a38,#0b566b);box-shadow:0 15px 35px rgba(3,42,56,.19)}
.stvm-preview-card.is-event>small{color:var(--stvm-blue)}
.stvm-preview-card>span b{font:inherit}
.stvm-submit{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 20px;border:0;border-radius:16px;color:var(--stvm-cream);background:var(--stvm-deep);box-shadow:0 13px 28px rgba(3,42,56,.2);font-size:12px;font-weight:950;letter-spacing:.08em;cursor:pointer;transition:transform .18s ease,opacity .18s ease}
.stvm-submit:active{transform:scale(.985)}
.stvm-submit:disabled{opacity:.55;cursor:wait}
.stvm-submit i{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:var(--stvm-deep);background:var(--stvm-coral);font-size:19px;font-style:normal}

.stvm-alerts{position:sticky;top:max(14px,env(safe-area-inset-top))}
.stvm-live-state{display:flex;align-items:center;gap:12px;margin:20px 20px 8px;padding:15px;border-radius:15px;color:#365963;background:#eef4f3}
.stvm-live-state>i{width:11px;height:11px;flex:0 0 auto;border-radius:50%;background:#9badb0;box-shadow:0 0 0 5px rgba(155,173,176,.13)}
.stvm-live-state.is-live{color:#81211f;background:#fff0ec}
.stvm-live-state.is-live>i{background:var(--stvm-red);box-shadow:0 0 0 5px rgba(183,47,40,.12);animation:stvm-pulse 1.4s ease-in-out infinite}
.stvm-live-state>span{display:grid;gap:2px;min-width:0}
.stvm-live-state strong{font-size:12px}
.stvm-live-state small{overflow:hidden;color:var(--stvm-muted);font-size:10px;font-weight:750;white-space:nowrap;text-overflow:ellipsis}
.stvm-alert-list{display:grid;gap:10px;max-height:690px;overflow:auto;padding:12px 20px 22px;overscroll-behavior:contain}
.stvm-alert-card{display:grid;gap:11px;padding:16px;border:1px solid var(--stvm-line);border-radius:17px;background:#fffdf7}
.stvm-alert-card.is-active{border-color:rgba(183,47,40,.24);background:#fff8f5}
.stvm-event-card.is-scheduled{border-color:rgba(126,176,207,.38);background:#f4fbfc}
.stvm-alert-card>header{display:flex;align-items:center;justify-content:space-between;gap:9px}
.stvm-alert-status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:99px;color:#45616b;background:#eaf0ef;font-size:9px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.stvm-alert-status::before{content:"";width:6px;height:6px;border-radius:50%;background:#7e9499}
.stvm-alert-card.is-active .stvm-alert-status{color:#8c2724;background:#ffe4dd}
.stvm-alert-card.is-active .stvm-alert-status::before{background:var(--stvm-red)}
.stvm-alert-card.is-scheduled .stvm-alert-status{color:#315d6b;background:#dceef6}
.stvm-alert-card.is-scheduled .stvm-alert-status::before{background:#4c91ae}
.stvm-alert-card time{color:#7b898e;font-size:9px;font-weight:850}
.stvm-alert-card h3{margin:0;color:var(--stvm-deep);font-size:18px;line-height:1.05;letter-spacing:-.035em}
.stvm-alert-image{width:100%;aspect-ratio:16/9;border-radius:12px;object-fit:cover;background:#e8efec}
.stvm-alert-card p{display:-webkit-box;overflow:hidden;margin:0;color:#597078;font-size:11px;font-weight:650;line-height:1.38;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.stvm-alert-actions{display:flex;flex-wrap:wrap;gap:7px;padding-top:3px}
.stvm-alert-actions button{min-height:34px;padding:0 11px;border:1px solid var(--stvm-line);border-radius:9px;color:var(--stvm-navy);background:#fff;font-size:10px;font-weight:900;cursor:pointer}
.stvm-alert-actions button.is-end{border-color:transparent;color:#fff;background:var(--stvm-red)}
.stvm-empty{padding:34px 18px;color:#718287;text-align:center}
.stvm-empty strong{display:block;color:var(--stvm-deep);font-size:17px}
.stvm-empty p{margin:7px 0 0;font-size:11px;line-height:1.45}

.stvm-remote-workspace{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);align-items:start;gap:20px}
.stvm-remote-console>header,.stvm-remote-help>header{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--stvm-line)}
.stvm-remote-console>header h2,.stvm-remote-help>header h2{margin:5px 0 0;color:var(--stvm-deep);font-size:23px;letter-spacing:-.04em}
.stvm-device-state{display:flex;align-items:center;gap:13px;margin:20px;padding:17px;border-radius:17px;color:#526a72;background:#edf2f1}
.stvm-device-state>i{width:12px;height:12px;flex:0 0 auto;border-radius:50%;background:#98a7aa;box-shadow:0 0 0 6px rgba(152,167,170,.12)}
.stvm-device-state>span{display:grid;gap:3px;min-width:0}.stvm-device-state strong{font-size:14px}.stvm-device-state small{color:var(--stvm-muted);font-size:11px;font-weight:700;line-height:1.35}
.stvm-device-state.is-live{color:#0d5b49;background:#e2f3ec}.stvm-device-state.is-live>i{background:#20a572;box-shadow:0 0 0 6px rgba(32,165,114,.12);animation:stvm-pulse 1.7s infinite}
.stvm-control-section{margin:0 20px 20px;padding:20px;border:1px solid var(--stvm-line);border-radius:20px;background:#fffdf7}
.stvm-control-title{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:15px}.stvm-control-title span{color:var(--stvm-coral);font-size:10px;font-weight:950;letter-spacing:.15em}.stvm-control-title strong{font-size:13px;text-align:right}.stvm-control-title strong.is-live{color:var(--stvm-red)}
.stvm-channel-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.stvm-channel-grid button{min-height:82px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:12px;border:1px solid var(--stvm-line);border-radius:15px;color:var(--stvm-text);background:#f1f6f5;text-align:left;cursor:pointer}.stvm-channel-grid b{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:var(--stvm-cream);background:var(--stvm-deep);font-size:14px}.stvm-channel-grid span{font-size:12px;font-weight:900;line-height:1.1}
.stvm-command-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.stvm-command-grid button{min-height:62px;display:grid;place-items:center;gap:3px;border:1px solid var(--stvm-line);border-radius:13px;color:var(--stvm-deep);background:#fff;font-size:20px;cursor:pointer}.stvm-command-grid span{font-size:9px;font-weight:900;letter-spacing:.03em}.stvm-command-grid button:active,.stvm-channel-grid button:active,.stvm-radio-actions button:active,.stvm-pad-grid button:active{transform:scale(.975)}
.stvm-radio-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.stvm-radio-actions button{min-height:48px;border:1px solid var(--stvm-line);border-radius:13px;color:var(--stvm-deep);background:#f1f6f5;font-size:10px;font-weight:950;cursor:pointer}.stvm-radio-actions button.is-live{border-color:transparent;color:#fff;background:var(--stvm-red)}
.stvm-pad-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.stvm-pad-grid button{min-height:112px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:7px;padding:13px;border:1px dashed rgba(3,42,56,.2);border-radius:16px;color:#76878b;background:#f3f5f1;text-align:left;cursor:pointer}.stvm-pad-grid button.has-audio{border:1px solid rgba(255,115,88,.32);color:var(--stvm-deep);background:linear-gradient(150deg,#fff5e6,#ffe5dc)}.stvm-pad-grid button:disabled{cursor:not-allowed;opacity:.58}.stvm-pad-grid b{font-size:11px;letter-spacing:.12em}.stvm-pad-grid strong{font-size:13px;line-height:1.05}.stvm-pad-grid small{color:var(--stvm-coral);font-size:8px;font-weight:950;letter-spacing:.08em}
.stvm-pad-editor{margin-top:13px;border-top:1px solid var(--stvm-line);padding-top:13px}.stvm-pad-editor summary{cursor:pointer;color:var(--stvm-navy);font-size:11px;font-weight:950}.stvm-pad-editor form{display:grid;gap:12px;margin-top:15px}.stvm-pad-field{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:13px;border-radius:14px;background:#f4f1e9}.stvm-pad-field .stvm-field input{height:43px;font-size:12px}.stvm-pad-current{grid-column:1/-1;color:var(--stvm-muted);font-size:9px;font-weight:800}
.stvm-tv-content-form,.stvm-jingle-form{display:grid;gap:12px}
.stvm-targets{min-width:0;margin:16px 0 0;padding:16px;border:1px solid var(--stvm-line);border-radius:18px;background:#f7f3e9}.stvm-targets legend{padding:0 7px;color:var(--stvm-deep);font-size:12px;font-weight:950}.stvm-target-all{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:12px;border-radius:13px;background:#fff}.stvm-target-all input{width:20px;height:20px;accent-color:var(--stvm-coral)}.stvm-target-all span{display:grid;gap:2px}.stvm-target-all strong{font-size:12px}.stvm-target-all small{color:var(--stvm-muted);font-size:9px;font-weight:750}.stvm-target-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.stvm-target-grid label{min-width:0;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:7px;padding:9px;border:1px solid var(--stvm-line);border-radius:11px;background:#fff;cursor:pointer}.stvm-target-grid input{position:absolute;opacity:0;pointer-events:none}.stvm-target-grid b{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;color:var(--stvm-cream);background:var(--stvm-deep);font-size:10px}.stvm-target-grid span{overflow:hidden;color:var(--stvm-text);font-size:9px;font-weight:850;line-height:1.05;text-overflow:ellipsis}.stvm-target-grid label:has(input:checked){border-color:rgba(255,115,88,.5);background:#fff0e7;box-shadow:inset 0 0 0 1px rgba(255,115,88,.12)}.stvm-target-grid label:has(input:checked) b{background:var(--stvm-coral)}.stvm-target-grid label:has(input:disabled){opacity:.62;cursor:default}.stvm-targets>p{margin:10px 1px 0;color:#4f6e78;font-size:9px;font-weight:900}.stvm-targets.is-compact{margin:0}
.stvm-tv-content-state{min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:14px;background:#edf2f1}
.stvm-tv-content-state>span{display:flex;align-items:center;gap:9px;color:#526a72;font-size:11px}.stvm-tv-content-state>span i{width:8px;height:8px;border-radius:50%;background:#98a7aa}
.stvm-tv-content-state.is-live{background:#e2f3ec}.stvm-tv-content-state.is-live>span{color:#0d5b49}.stvm-tv-content-state.is-live>span i{background:#20a572;box-shadow:0 0 0 5px rgba(32,165,114,.12)}
.stvm-tv-content-state button{min-height:34px;padding:0 11px;border:1px solid var(--stvm-line);border-radius:10px;color:var(--stvm-deep);background:#fff;font-size:9px;font-weight:950;cursor:pointer}.stvm-tv-content-state button:disabled{opacity:.45;cursor:not-allowed}
.stvm-tv-program-fields{margin:0}.stvm-tv-program-fields p{margin:12px 0 0;color:#65777d;font-size:11px;line-height:1.55}
.stvm-tv-program-list{display:grid;gap:9px;margin-top:15px;padding-top:15px;border-top:1px solid var(--stvm-line)}
.stvm-tv-program-heading{display:flex;align-items:center;justify-content:space-between;color:#61747a;font-size:9px;font-weight:950;letter-spacing:.12em}.stvm-tv-program-heading strong{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;color:#fff;background:var(--stvm-deep);font-size:10px}
.stvm-tv-program-empty{padding:14px;border-radius:13px;color:#68797e;background:#f1f4ef;font-size:11px;line-height:1.5}
.stvm-tv-program-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px;border:1px solid var(--stvm-line);border-radius:14px;background:#f8f2e5}.stvm-tv-program-card>div{min-width:0;display:grid;gap:3px}.stvm-tv-program-card span{width:max-content;padding:3px 7px;border-radius:999px;color:#705b29;background:#f1d98c;font-size:8px;font-weight:950;letter-spacing:.09em}.stvm-tv-program-card span.is-live{color:#fff;background:#ec624e}.stvm-tv-program-card strong{overflow:hidden;color:var(--stvm-deep);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.stvm-tv-program-card small,.stvm-tv-program-card em{color:#65777d;font-size:9px;font-style:normal}.stvm-tv-program-delete{flex:0 0 auto;min-height:34px;padding:0 11px;border:1px solid #e3b5aa;border-radius:10px;color:#9a382a;background:#fff7f4;font-size:9px;font-weight:950;cursor:pointer}.stvm-tv-program-delete:disabled{opacity:.45}
.stvm-toggle.is-compact{margin:0;align-self:end;min-height:66px;padding:10px 12px;border-radius:13px;background:#f4f1e9}
.stvm-jingle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px}.stvm-jingle-card{min-width:0;display:grid;grid-template-columns:1fr auto;align-items:stretch;border:1px solid rgba(126,176,207,.34);border-radius:15px;overflow:hidden;background:#eef7fa}
.stvm-jingle-card>button:first-child{min-height:72px;display:grid;align-content:center;gap:4px;padding:12px;border:0;color:var(--stvm-deep);background:transparent;text-align:left;cursor:pointer}.stvm-jingle-card strong{overflow:hidden;font-size:12px;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.stvm-jingle-card small{color:#4f7684;font-size:8px;font-weight:950;letter-spacing:.08em}
.stvm-jingle-delete{width:36px;border:0;border-left:1px solid rgba(126,176,207,.28);color:#8b4b47;background:rgba(255,255,255,.55);font-size:17px;cursor:pointer}.stvm-jingle-empty{grid-column:1/-1;padding:18px;border:1px dashed var(--stvm-line);border-radius:14px;color:var(--stvm-muted);font-size:11px;text-align:center}
.stvm-jingle-form{grid-template-columns:1fr 1fr auto;align-items:end;padding-top:14px;border-top:1px solid var(--stvm-line)}.stvm-jingle-form .stvm-submit{min-width:155px}
.stvm-remote-help{position:sticky;top:max(14px,env(safe-area-inset-top))}.stvm-remote-help ol{display:grid;gap:0;margin:0;padding:8px 20px 22px;list-style:none}.stvm-remote-help li{display:grid;grid-template-columns:38px 1fr;gap:11px;padding:15px 0;border-bottom:1px solid var(--stvm-line)}.stvm-remote-help li:last-child{border-bottom:0}.stvm-remote-help li>b{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;color:var(--stvm-deep);background:var(--stvm-blue);font-size:12px}.stvm-remote-help li>span{display:grid;gap:3px}.stvm-remote-help strong{font-size:12px}.stvm-remote-help small{color:var(--stvm-muted);font-size:10px;font-weight:650;line-height:1.4}

.stvm-footer{display:flex;justify-content:space-between;gap:16px;padding:26px 4px 6px;color:#708186;font-size:9px;font-weight:900;letter-spacing:.1em}
.stvm-footer a{color:var(--stvm-navy);text-decoration:none}
.stvm-install-sheet{position:fixed;z-index:100;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:18px;background:rgba(3,42,56,.58);backdrop-filter:blur(8px)}
.stvm-install-sheet>div{position:relative;width:min(520px,100%);padding:28px;border-radius:25px;color:var(--stvm-text);background:var(--stvm-paper);box-shadow:0 26px 80px rgba(3,42,56,.35)}
.stvm-install-sheet>div>button:first-child{position:absolute;top:16px;right:16px;width:36px;height:36px;border:1px solid var(--stvm-line);border-radius:50%;background:#fff;font-size:22px;cursor:pointer}
.stvm-install-sheet>div>span{color:var(--stvm-coral);font-size:10px;font-weight:950;letter-spacing:.15em}
.stvm-install-sheet h2{margin:12px 0 10px;color:var(--stvm-deep);font-size:32px;line-height:.95;letter-spacing:-.055em}
.stvm-install-sheet p{margin:0 0 20px;color:#567078;font-size:13px;font-weight:650;line-height:1.5}

.stvm-auth-shell{min-height:calc(100vh - 76px);display:grid;place-items:center;padding:35px 0}
.stvm-auth-card{width:min(560px,100%);padding:clamp(25px,6vw,48px);border:1px solid var(--stvm-line);border-radius:28px;background:rgba(255,250,240,.92);box-shadow:var(--stvm-shadow)}
.stvm-auth-card h1{margin:14px 0 12px;color:var(--stvm-deep);font-size:clamp(38px,8vw,58px);line-height:.9;letter-spacing:-.07em}
.stvm-auth-card>p{margin:0 0 24px;color:#587179;font-size:14px;font-weight:650;line-height:1.5}
.stvm-auth-card form{display:grid;gap:13px}
.stvm-auth-card form p{display:grid;gap:6px;margin:0}
.stvm-auth-card label{color:#365963;font-size:12px;font-weight:900}
.stvm-auth-card .input{width:100%;height:52px;padding:0 14px;border:1px solid var(--stvm-line);border-radius:14px;background:#fff}
.stvm-auth-card .login-remember label{display:flex;align-items:center;gap:8px}
.stvm-auth-card .button-primary,.stvm-primary-link{min-height:52px;display:flex;align-items:center;justify-content:center;border:0;border-radius:14px;color:var(--stvm-cream);background:var(--stvm-deep);font-size:12px;font-weight:950;text-decoration:none;cursor:pointer}

@keyframes stvm-pulse{50%{opacity:.48;transform:scale(.78)}}

@media(max-width:820px){
  .stvm-app{padding-left:14px;padding-right:14px}
  .stvm-header{height:68px}
  .stvm-brand img{width:76px;height:58px}
  .stvm-brand small{display:none}
  .stvm-install-button{width:42px;padding:0;font-size:0}
  .stvm-install-button span{font-size:20px}
  .stvm-intro{grid-template-columns:1fr;padding:35px 2px 25px}
  .stvm-intro aside{display:none}
  .stvm-workspace{grid-template-columns:1fr}
  .stvm-remote-workspace{grid-template-columns:1fr}
  .stvm-alerts{position:static}
  .stvm-remote-help{position:static}
  .stvm-alert-list{max-height:none}
}

@media(max-width:520px){
  .stvm-intro h1{font-size:52px}
  .stvm-intro p{font-size:14px}
  .stvm-panel{border-radius:21px}
  .stvm-panel>header{min-height:73px;padding:18px}
  .stvm-compose form{padding:18px}
  .stvm-field-grid{grid-template-columns:1fr}
  .stvm-duration-row{grid-template-columns:repeat(2,1fr)}
  .stvm-mode-tabs{overflow-x:auto}.stvm-mode-tabs button{min-width:132px;padding:0 10px}
  .stvm-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stvm-channel-grid button{min-height:64px;padding:9px}.stvm-channel-grid b{width:34px;height:34px}.stvm-channel-grid span{font-size:10px}
  .stvm-command-grid{grid-template-columns:repeat(3,1fr)}
  .stvm-radio-actions{grid-template-columns:1fr}
  .stvm-pad-grid{grid-template-columns:repeat(2,1fr)}
  .stvm-pad-field{grid-template-columns:1fr}
  .stvm-jingle-grid{grid-template-columns:1fr 1fr}
  .stvm-jingle-form{grid-template-columns:1fr}
  .stvm-targets{padding:13px}.stvm-target-grid,.stvm-targets.is-compact .stvm-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stvm-schedule{padding:15px}
  .stvm-field textarea#stvmTitle{font-size:19px}
  .stvm-preview-card{min-height:155px}
  .stvm-footer{flex-direction:column;text-align:center}
}

@media(display-mode:standalone){.stvm-install-button{display:none}.stvm-app{padding-top:max(9px,env(safe-area-inset-top))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.stvm-intro>div>span i,.stvm-live-state.is-live>i{animation:none!important}}

/* Identity r1: preserve the control panel; change only the owned logo. */
.stvm-brand img{content:url('images/brand-tv-petrol.svg');width:112px;height:44px;object-fit:contain}
@media(max-width:520px){.stvm-brand img{width:100px;height:40px}}

/* Manual silent self-promotions. No auto-start and no audio controls. */
.stvm-lower-third-note{margin:0 0 16px;color:var(--stvm-muted);font-size:13px;line-height:1.5}
.stvm-lower-third-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.stvm-lower-third-buttons button{min-height:54px;padding:12px;border:1px solid var(--stvm-line);border-radius:12px;background:var(--stvm-deep);color:#F6E9CC;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.stvm-lower-third-buttons .is-stop{background:transparent;color:var(--stvm-deep)}
.stvm-lower-third-buttons button:disabled{opacity:.45;cursor:not-allowed}
