:root {
    color-scheme: dark;
    --sg-bg: #090a0c;
    --sg-bg-elevated: #0f1115;
    --sg-glass: rgba(255, 255, 255, .07);
    --sg-glass-strong: rgba(255, 255, 255, .11);
    --sg-glass-muted: rgba(255, 255, 255, .035);
    --sg-border: rgba(255, 255, 255, .13);
    --sg-border-soft: rgba(255, 255, 255, .075);
    --sg-text: #f5f7fa;
    --sg-muted: #a6adb8;
    --sg-subtle: #737b88;
    --sg-online: #d8f8df;
    --sg-success: #d8f8df;
    --sg-warning: #fff2c2;
    --sg-danger: #ffd8d8;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--sg-bg); }
body { margin: 0; background: var(--sg-bg); color: var(--sg-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; letter-spacing: 0; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid rgba(255, 255, 255, .75); outline-offset: 2px; }
h1:focus { outline: none; }

.login-shell { min-height: 100vh; padding: 24px; display: grid; place-items: center; background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, .055), transparent 42%), var(--sg-bg); }
.login-panel { width: min(400px, 100%); padding: 34px; border: 1px solid var(--sg-border); border-radius: 8px; background: rgba(17, 19, 23, .82); box-shadow: 0 26px 80px rgba(0, 0, 0, .42); backdrop-filter: blur(22px); }
.login-brand { width: 42px; height: 42px; margin-bottom: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--sg-text); color: var(--sg-bg); font-size: 18px; font-weight: 800; text-decoration: none; }
.login-heading { margin-bottom: 26px; }
.login-heading h1 { font-size: 25px; }
.login-heading > p:last-child { margin: 8px 0 0; color: var(--sg-muted); font-size: 12px; }
.login-error { margin-bottom: 18px; padding: 10px 12px; border: 1px solid rgba(255, 216, 216, .22); border-radius: 6px; background: rgba(255, 216, 216, .06); color: var(--sg-danger); font-size: 11px; line-height: 17px; }
.login-form { display: grid; gap: 17px; }
.login-form label > span { display: block; margin-bottom: 7px; color: var(--sg-muted); font-size: 10px; font-weight: 650; }
.login-form input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--sg-border-soft); border-radius: 7px; outline: 0; background: var(--sg-glass-muted); color: var(--sg-text); }
.login-form input:focus { border-color: rgba(255, 255, 255, .3); background: var(--sg-glass); }
.login-submit { width: 100%; height: 42px; margin-top: 5px; }

.app-shell { min-height: 100vh; padding-left: 84px; padding-top: 66px; }
.nav-rail { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 84px; padding: 14px 10px; display: flex; flex-direction: column; border-right: 1px solid var(--sg-border-soft); background: rgba(9, 10, 12, .92); backdrop-filter: blur(22px); }
.brand-mark { width: 38px; height: 38px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; background: var(--sg-text); color: var(--sg-bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); font-size: 17px; font-weight: 800; text-decoration: none; }
.nav-rail nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { width: 100%; min-height: 52px; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 8px; background: transparent; color: var(--sg-subtle); cursor: pointer; transition: background 120ms ease, color 120ms ease; }
.nav-rail a.nav-item { text-decoration: none; }
.nav-item span { max-width: 66px; overflow: hidden; font-size: 10px; line-height: 12px; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover { background: var(--sg-glass); color: var(--sg-text); }
.nav-item.is-active { background: var(--sg-glass-strong); color: var(--sg-text); box-shadow: inset 0 0 0 1px var(--sg-border-soft); }
.nav-item.is-pending { color: #555c67; }
.nav-item.is-pending:hover { color: var(--sg-muted); }
.nav-settings { margin-top: auto; }

.topbar { position: fixed; z-index: 15; top: 0; right: 0; left: 84px; height: 66px; padding: 0 20px; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(260px, 480px) minmax(420px, 1fr); align-items: center; gap: 20px; border-bottom: 1px solid var(--sg-border-soft); background: rgba(9, 10, 12, .86); backdrop-filter: blur(24px); }
.tenant { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tenant-name { font-size: 14px; font-weight: 650; }
.environment { padding: 3px 7px; border: 1px solid var(--sg-border); border-radius: 4px; color: var(--sg-muted); font-size: 10px; }
.global-search { height: 38px; padding: 0 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--sg-border-soft); border-radius: 8px; background: var(--sg-glass-muted); color: var(--sg-subtle); transition: border-color 120ms ease, background 120ms ease; }
.global-search:focus-within { border-color: rgba(255, 255, 255, .24); background: var(--sg-glass); }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--sg-text); font-size: 12px; }
.global-search input::placeholder { color: var(--sg-subtle); }
kbd { padding: 2px 5px; border: 1px solid var(--sg-border); border-radius: 4px; background: rgba(255, 255, 255, .04); color: var(--sg-subtle); font-family: inherit; font-size: 10px; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.fleet-state { height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 4px; color: var(--sg-muted); font-size: 11px; white-space: nowrap; }
.fleet-state strong { color: var(--sg-text); }
.pulse-dot, .status-indicator, .button-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--sg-online); box-shadow: 0 0 0 3px rgba(216, 248, 223, .08); }
.icon-button { position: relative; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--sg-muted); cursor: pointer; }
.icon-button:hover { border-color: var(--sg-border-soft); background: var(--sg-glass); color: var(--sg-text); }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--sg-text); }
.emergency-button, .primary-button, .secondary-button, .icon-text-button { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; cursor: pointer; }
.emergency-button { border: 1px solid rgba(255, 216, 216, .25); background: rgba(255, 216, 216, .07); color: var(--sg-danger); }
.emergency-button:hover { background: rgba(255, 216, 216, .12); }
.avatar { width: 34px; height: 34px; padding: 0; border: 1px solid var(--sg-border); border-radius: 50%; background: var(--sg-glass-strong); color: var(--sg-text); font-size: 10px; font-weight: 700; cursor: pointer; }
.page-slot { min-width: 0; }

.workspace { min-width: 0; display: grid; grid-template-columns: minmax(680px, 1fr) 340px; }
.content-column { min-width: 0; padding: 28px 30px 52px; }
.inspector { position: sticky; top: 66px; height: calc(100vh - 66px); padding: 24px 20px; overflow-y: auto; border-left: 1px solid var(--sg-border-soft); background: rgba(255, 255, 255, .022); }
.page-heading, .section-heading, .inspector-heading, .level-heading, .now-playing-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-heading { min-height: 54px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 4px; color: var(--sg-subtle); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .02em; }
h1 { margin: 0; font-size: 27px; line-height: 34px; font-weight: 650; letter-spacing: 0; }
h2 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 650; letter-spacing: 0; }
.heading-actions { display: flex; gap: 8px; }
.secondary-button { border: 1px solid var(--sg-border-soft); background: var(--sg-glass-muted); color: var(--sg-muted); }
.secondary-button:hover { background: var(--sg-glass); color: var(--sg-text); }
.primary-button { border: 1px solid var(--sg-text); background: var(--sg-text); color: #0b0c0e; font-weight: 650; }
.primary-button:hover { background: #dfe3e8; }
.button-dot { width: 6px; height: 6px; }

.metric-band { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 32px; border-top: 1px solid var(--sg-border-soft); border-bottom: 1px solid var(--sg-border-soft); }
.metric-band article { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--sg-border-soft); }
.metric-band article:first-child { padding-left: 0; }
.metric-band article:last-child { border-right: 0; }
.metric-label { display: block; margin-bottom: 9px; color: var(--sg-muted); font-size: 11px; }
.metric-band strong { display: block; margin-bottom: 3px; font-size: 24px; line-height: 28px; font-weight: 620; }
.metric-band small { display: block; overflow: hidden; color: var(--sg-subtle); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.metric-time { font-variant-numeric: tabular-nums; }
.operations-section, .schedule-section { margin-bottom: 34px; }
.section-heading { margin-bottom: 13px; }
.section-heading > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.section-count { color: var(--sg-subtle); font-size: 11px; }
.segmented { height: 30px; padding: 2px; display: flex; border: 1px solid var(--sg-border-soft); border-radius: 6px; background: var(--sg-glass-muted); }
.segmented button { padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--sg-subtle); font-size: 10px; cursor: pointer; }
.segmented button:hover { color: var(--sg-text); }
.segmented button.is-selected { background: var(--sg-glass-strong); color: var(--sg-text); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.segmented button span { margin-left: 3px; color: var(--sg-warning); }

.location-table { overflow: hidden; border: 1px solid var(--sg-border-soft); border-radius: 12px; background: var(--sg-glass-muted); backdrop-filter: blur(18px); }
.table-header, .location-row { width: 100%; display: grid; grid-template-columns: minmax(170px, 1.3fr) minmax(110px, .8fr) minmax(140px, 1fr) minmax(210px, 1.25fr) minmax(105px, .75fr) 64px; align-items: center; gap: 12px; }
.table-header { min-height: 38px; padding: 0 14px; border-bottom: 1px solid var(--sg-border-soft); color: var(--sg-subtle); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .02em; }
.location-row { position: relative; min-height: 65px; padding: 8px 14px; border-bottom: 1px solid var(--sg-border-soft); background: transparent; text-align: left; cursor: pointer; transition: background 120ms ease; }
.location-row:last-child { border-bottom: 0; }
.location-row:hover, .location-row.is-selected { background: rgba(255, 255, 255, .05); }
.location-row.is-selected::before { content: ""; position: absolute; inset: 12px auto 12px 0; width: 2px; border-radius: 2px; background: var(--sg-text); }
.table-empty-state, .section-empty-state, .network-empty-state { display: flex; align-items: center; gap: 10px; color: var(--sg-subtle); }
.table-empty-state { min-height: 88px; padding: 18px; justify-content: center; }
.section-empty-state { min-height: 92px; padding: 18px; justify-content: center; border: 1px solid var(--sg-border-soft); border-radius: 8px; background: var(--sg-glass-muted); }
.table-empty-state strong, .table-empty-state small, .section-empty-state strong, .section-empty-state small, .network-empty-state strong, .network-empty-state small { display: block; }
.table-empty-state strong, .section-empty-state strong, .network-empty-state strong { color: var(--sg-muted); font-size: 10px; }
.table-empty-state small, .section-empty-state small, .network-empty-state small { margin-top: 3px; font-size: 8px; }
.location-row > span { min-width: 0; }
.location-row strong, .location-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-row strong { font-size: 11px; font-weight: 600; }
.location-row small { margin-top: 4px; color: var(--sg-subtle); font-size: 9px; }
.location-cell { display: flex; align-items: center; gap: 10px; }
.status-indicator { width: 11px; height: 11px; flex: 0 0 auto; border: 2px solid rgba(255, 255, 255, .16); background: #8a9099; box-shadow: 0 0 0 3px rgba(138, 144, 153, .1); }
.status-indicator.online { border-color: #b8f4cd; background: #43d17d; box-shadow: 0 0 0 3px rgba(67, 209, 125, .12), 0 0 9px rgba(67, 209, 125, .26); animation: pulse 2.4s infinite; }
.status-indicator.offline { border-color: #ffc0c0; background: #ff6269; box-shadow: 0 0 0 3px rgba(255, 98, 105, .12); }
.status-indicator.pending { border-color: #c3c7ce; background: #747b86; box-shadow: 0 0 0 3px rgba(116, 123, 134, .1); }
.mode-badge { max-width: 115px; padding: 4px 7px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--sg-border-soft); border-radius: 5px; background: rgba(255, 255, 255, .035); color: var(--sg-muted); font-size: 9px; white-space: nowrap; }
.live-badge { border-color: rgba(255, 255, 255, .18); color: var(--sg-text); }
.warning-badge { border-color: rgba(255, 242, 194, .15); color: var(--sg-warning); }
.volume-control { display: grid; grid-template-columns: 26px minmax(82px, 1fr) 34px 26px; align-items: center; gap: 7px; }
.volume-control input { width: 100%; min-width: 82px; accent-color: #e7e9ed; cursor: pointer; }
.volume-control output { color: var(--sg-muted); font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.volume-step { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 5px; background: rgba(255, 255, 255, .035); color: var(--sg-muted); cursor: pointer; }
.volume-step:hover { background: var(--sg-glass); color: var(--sg-text); }
.row-chevron { color: var(--sg-subtle); }
.row-action { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--sg-subtle); cursor: pointer; }
.row-action:hover { border-color: var(--sg-border-soft); background: var(--sg-glass); color: var(--sg-text); }
.location-actions { display: flex; justify-content: flex-end; gap: 2px; }
.icon-text-button { min-height: 30px; border: 1px solid var(--sg-border-soft); background: var(--sg-glass-muted); color: var(--sg-muted); font-size: 10px; }
.icon-text-button:hover { background: var(--sg-glass); color: var(--sg-text); }

.timeline-shell { padding: 14px; overflow: hidden; border: 1px solid var(--sg-border-soft); border-radius: 12px; background: var(--sg-glass-muted); }
.timeline-hours { height: 25px; margin-left: 112px; display: grid; grid-template-columns: repeat(6, 1fr); color: var(--sg-subtle); font-size: 8px; }
.timeline-hours span:last-child { text-align: right; }
.timeline-row { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: center; }
.timeline-label strong, .timeline-label small { display: block; }
.timeline-label strong { font-size: 10px; }
.timeline-label small { margin-top: 4px; color: var(--sg-subtle); font-size: 9px; }
.timeline-track { position: relative; height: 54px; border-right: 1px solid var(--sg-border-soft); border-left: 1px solid var(--sg-border-soft); background: repeating-linear-gradient(90deg, transparent 0, transparent calc(20% - 1px), var(--sg-border-soft) 20%); }
.timeline-block { position: absolute; z-index: 1; top: 5px; bottom: 5px; left: calc(var(--start) * 1%); width: calc(var(--span) * 1% - 3px); min-width: 42px; padding: 6px 8px; display: flex; align-items: center; gap: 7px; overflow: hidden; border: 1px solid var(--sg-border); border-radius: 5px; background: rgba(255, 255, 255, .08); }
.timeline-block.live { background: rgba(255, 255, 255, .17); }
.timeline-block strong, .timeline-block small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-block strong { font-size: 9px; }
.timeline-block small { margin-top: 2px; color: var(--sg-muted); font-size: 8px; }
.now-line { position: absolute; z-index: 3; top: -5px; bottom: -5px; left: 59%; width: 1px; background: #fff; box-shadow: 0 0 7px rgba(255, 255, 255, .45); }
.now-line::before { content: ""; position: absolute; top: -2px; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }

.inspector-heading { margin-bottom: 14px; }
.live-kicker { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; color: var(--sg-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .02em; }
.live-kicker i { width: 5px; height: 5px; border-radius: 50%; background: var(--sg-subtle); }
.live-kicker.is-active i { background: var(--sg-online); }
.broadcast-state { margin-bottom: 20px; padding: 17px 12px; text-align: center; border-top: 1px solid var(--sg-border-soft); border-bottom: 1px solid var(--sg-border-soft); }
.broadcast-visual { height: 72px; display: grid; place-items: center; }
.signal-rings { position: relative; width: 62px; height: 62px; display: grid; place-items: center; }
.signal-rings span { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; }
.signal-rings span:nth-child(2) { inset: 9px; }
.signal-rings span:nth-child(3) { inset: 18px; background: rgba(255, 255, 255, .08); }
.signal-rings svg { position: relative; z-index: 2; }
.broadcast-state.is-live .signal-rings span { animation: ring 1.6s infinite ease-out; }
.broadcast-state.is-live .signal-rings span:nth-child(2) { animation-delay: .2s; }
.broadcast-state.is-live .signal-rings span:nth-child(3) { animation: none; background: var(--sg-text); }
.broadcast-state.is-live .signal-rings svg { color: var(--sg-bg); }
.broadcast-state p { margin: 8px 0 3px; color: var(--sg-subtle); font-size: 9px; text-transform: uppercase; letter-spacing: .02em; }
.broadcast-state strong { display: block; font-size: 14px; }
.broadcast-state > span { display: block; margin-top: 4px; color: var(--sg-subtle); font-size: 9px; }
.field-group { margin-bottom: 14px; }
.field-group > label, .level-heading label, .emergency-modal > label { display: block; margin-bottom: 7px; color: var(--sg-muted); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .02em; }
.select-button { width: 100%; min-height: 50px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--sg-border-soft); border-radius: 8px; background: var(--sg-glass-muted); text-align: left; cursor: pointer; }
.select-button:hover { border-color: var(--sg-border); background: var(--sg-glass); }
.select-button > span { min-width: 0; display: flex; align-items: center; gap: 9px; }
.select-button > span > svg { flex: 0 0 auto; color: var(--sg-muted); }
.select-button > svg { flex: 0 0 auto; color: var(--sg-subtle); transform: rotate(90deg); }
.select-button strong, .select-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-button strong { font-size: 10px; }
.select-button small { margin-top: 3px; color: var(--sg-subtle); font-size: 8px; }
.level-section { margin: 19px 0; }
.level-heading span { color: var(--sg-muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.level-meter { height: 26px; display: grid; grid-template-columns: repeat(18, 1fr); gap: 3px; align-items: end; }
.level-meter i { height: 5px; border-radius: 1px; background: rgba(255, 255, 255, .1); }
.level-meter.is-active i:nth-child(-n+11) { background: rgba(255, 255, 255, .72); animation: meter 900ms ease-in-out infinite alternate; }
.level-meter.is-active i:nth-child(2n) { animation-delay: 160ms; }
.level-meter.is-active i:nth-child(n+10):nth-child(-n+13) { background: var(--sg-warning); }
.meter-labels { margin-top: 4px; display: flex; justify-content: space-between; color: var(--sg-subtle); font-size: 7px; }
.broadcast-options { margin-bottom: 17px; border-top: 1px solid var(--sg-border-soft); }
.switch-row { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--sg-border-soft); cursor: pointer; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: 10px; }
.switch-row small { margin-top: 3px; color: var(--sg-subtle); font-size: 8px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row > i { position: relative; width: 30px; height: 17px; flex: 0 0 auto; border: 1px solid var(--sg-border); border-radius: 10px; background: rgba(255, 255, 255, .04); }
.switch-row > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--sg-subtle); transition: transform 120ms ease, background 120ms ease; }
.switch-row input:checked + i { background: rgba(255, 255, 255, .16); }
.switch-row input:checked + i::after { transform: translateX(13px); background: #fff; }
.broadcast-button { width: 100%; height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--sg-text); border-radius: 8px; background: var(--sg-text); color: var(--sg-bg); font-size: 11px; font-weight: 700; cursor: pointer; }
.broadcast-button:hover { background: #dfe3e8; }
.broadcast-button.is-live { border-color: rgba(255, 216, 216, .32); background: rgba(255, 216, 216, .09); color: var(--sg-danger); }
.broadcast-button:disabled { opacity: .6; cursor: wait; }
.now-playing { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--sg-border-soft); }
.now-playing-head { margin-bottom: 11px; color: var(--sg-muted); font-size: 9px; text-transform: uppercase; }
.now-playing-head button { padding: 0; border: 0; background: transparent; color: var(--sg-subtle); font-size: 8px; cursor: pointer; }
.network-empty-state { min-height: 48px; }
.media-preview { display: grid; grid-template-columns: 40px 1fr 30px; align-items: center; gap: 10px; }
.album-art { position: relative; width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--sg-border); border-radius: 5px; background: #17191e; }
.album-art span { position: relative; z-index: 1; font-size: 9px; font-weight: 750; }
.album-art i { position: absolute; width: 22px; height: 22px; border: 1px solid rgba(255, 255, 255, .16); transform: rotate(45deg); }
.media-preview > div:nth-child(2) { min-width: 0; }
.media-preview strong, .media-preview span, .media-preview small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-preview strong { font-size: 10px; }
.media-preview span { margin-top: 3px; color: var(--sg-muted); font-size: 8px; }
.media-preview small { margin-top: 4px; color: var(--sg-subtle); font-size: 8px; }
.media-preview small svg { margin-right: 3px; vertical-align: -1px; }
.play-control { width: 29px; height: 29px; padding: 0; display: grid; place-items: center; border: 1px solid var(--sg-border); border-radius: 50%; background: var(--sg-glass-muted); cursor: pointer; }
.media-progress { height: 2px; margin-top: 10px; background: rgba(255, 255, 255, .08); }
.media-progress i { display: block; width: 57%; height: 100%; background: rgba(255, 255, 255, .64); }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(0, 0, 0, .72); backdrop-filter: blur(12px); }
.emergency-modal { position: relative; width: min(430px, 100%); padding: 28px; border: 1px solid var(--sg-border); border-radius: 12px; background: rgba(20, 21, 25, .96); box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.management-modal { position: relative; width: min(500px, 100%); max-height: calc(100vh - 40px); padding: 28px; overflow-y: auto; border: 1px solid var(--sg-border); border-radius: 8px; background: rgba(20, 21, 25, .98); box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.management-modal h2 { margin-bottom: 8px; font-size: 20px; }
.management-modal > p:not(.eyebrow) { margin: 0 0 22px; color: var(--sg-muted); font-size: 12px; line-height: 19px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--sg-muted); cursor: pointer; }
.modal-close:hover { background: var(--sg-glass); color: var(--sg-text); }
.modal-icon { width: 42px; height: 42px; margin-bottom: 18px; display: grid; place-items: center; border: 1px solid rgba(255, 216, 216, .22); border-radius: 8px; background: rgba(255, 216, 216, .06); color: var(--sg-danger); }
.modal-icon.neutral { border-color: var(--sg-border); background: var(--sg-glass-muted); color: var(--sg-text); }
.emergency-modal h2 { margin-bottom: 8px; font-size: 20px; }
.emergency-modal > p:not(.eyebrow) { margin: 0 0 22px; color: var(--sg-muted); font-size: 12px; line-height: 19px; }
.emergency-modal > label { margin-top: 20px; }
.modal-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 8px; }
.modal-field { min-width: 0; margin-top: 14px; display: grid; gap: 7px; }
.modal-field > span { color: var(--sg-muted); font-size: 11px; font-weight: 600; line-height: 15px; }
.modal-field input, .modal-field select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--sg-border-soft); border-radius: 6px; outline: 0; background: var(--sg-glass-muted); color: var(--sg-text); font-size: 11px; }
.modal-field input:focus, .modal-field select:focus { border-color: rgba(255, 255, 255, .28); background: var(--sg-glass); }
.modal-field input::placeholder { color: var(--sg-subtle); }
.management-form { display: grid; gap: 14px; }
.management-form label { display: grid; gap: 7px; color: var(--sg-muted); font-size: 11px; font-weight: 600; }
.management-form input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--sg-border-soft); border-radius: 6px; outline: none; background: var(--sg-glass-muted); color: var(--sg-text); font-size: 11px; text-transform: none; }
.management-form input:focus { border-color: var(--sg-border); background: var(--sg-glass); }
.management-form select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--sg-border-soft); border-radius: 6px; outline: none; background: var(--sg-glass-muted); color: var(--sg-text); font-size: 11px; }
.emergency-modal > label { font-size: 11px; text-transform: none; }
.management-modal.compact { width: min(450px, 100%); }
.form-hint { margin-top: -7px; color: var(--sg-subtle); font-size: 9px; line-height: 15px; }
.password-input-row { display: grid; grid-template-columns: 1fr 40px; gap: 7px; }
.password-input-row button { display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 6px; background: var(--sg-glass-muted); color: var(--sg-muted); cursor: pointer; }
.user-management-page { min-height: calc(100vh - var(--sg-topbar-height)); padding: 32px 36px 60px; }
.user-policy-note { display: inline-flex; align-items: center; gap: 6px; color: var(--sg-subtle); font-size: 9px; }
.users-table { overflow-x: auto; border-top: 1px solid var(--sg-border-soft); }
.users-table-header, .user-row { display: grid; grid-template-columns: minmax(240px,1.5fr) minmax(150px,.8fr) minmax(120px,.65fr) minmax(120px,.7fr) 90px; align-items: center; gap: 14px; }
.users-table-header, .user-row { min-width: 780px; }
.users-table-header { min-height: 38px; color: var(--sg-subtle); font-size: 9px; text-transform: uppercase; }
.user-row { min-height: 68px; border-top: 1px solid var(--sg-border-soft); }
.user-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.user-identity > i { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 7px; background: var(--sg-glass); color: var(--sg-muted); font-size: 9px; font-style: normal; font-weight: 750; }
.user-row strong, .user-row small { display: block; }
.user-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-row small { margin-top: 3px; overflow: hidden; color: var(--sg-subtle); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.user-row select { width: 100%; height: 34px; padding: 0 9px; border: 1px solid var(--sg-border-soft); border-radius: 6px; background: var(--sg-glass-muted); color: var(--sg-text); font-size: 10px; }
.account-status { display: inline-flex; align-items: center; gap: 7px; color: var(--sg-muted); font-size: 9px; }
.account-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--sg-subtle); }
.account-status.is-active i { background: var(--sg-online); box-shadow: 0 0 0 3px rgba(216,248,223,.06); }
.account-status.is-disabled { color: var(--sg-danger); }
.account-status.is-disabled i { background: var(--sg-danger); }
.user-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-action.danger { color: var(--sg-danger); }
.temporary-credentials { display: grid; gap: 7px; padding: 14px; border: 1px solid var(--sg-border-soft); border-radius: 7px; background: var(--sg-glass-muted); }
.temporary-credentials span { color: var(--sg-subtle); font-size: 9px; text-transform: uppercase; }
.temporary-credentials code { margin-bottom: 7px; overflow-wrap: anywhere; color: var(--sg-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; user-select: all; }
.library-page { min-height: calc(100vh - var(--sg-topbar-height)); padding: 32px 36px 60px; }
.operations-page { min-height: calc(100vh - var(--sg-topbar-height)); padding: 32px 36px 60px; }
.operations-section { min-width: 0; }
.desktop-downloads-page { max-width: 1120px; }
.version-badge { padding: 5px 9px; border: 1px solid var(--sg-border-soft); border-radius: 5px; color: var(--sg-muted); font-size: 10px; }
.download-list { border-top: 1px solid var(--sg-border-soft); }
.download-list article { min-height: 112px; padding: 18px 2px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--sg-border-soft); }
.download-list strong, .download-list small { display: block; }
.download-list strong { font-size: 14px; }
.download-list small { margin-top: 5px; color: var(--sg-muted); font-size: 10px; }
.download-list p { margin: 9px 0 0; color: var(--sg-subtle); font-size: 10px; line-height: 16px; }
.download-list a { min-width: 146px; text-decoration: none; }
.download-notes { margin-top: 32px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--sg-border-soft); }
.download-notes p { max-width: 720px; margin: 6px 0 0; color: var(--sg-muted); font-size: 11px; line-height: 18px; }
.download-notes code { color: var(--sg-text); }
.download-notes a { flex: 0 0 auto; text-decoration: none; }
.operation-list, .schedule-list { border-top: 1px solid var(--sg-border-soft); }
.operation-list > article { min-height: 78px; padding: 12px 2px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--sg-border-soft); }
.operation-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 7px; color: var(--sg-muted); }
.operation-list strong, .operation-list small, .operation-list p { display: block; }
.operation-list strong { font-size: 11px; }
.operation-list small { margin-top: 4px; color: var(--sg-muted); font-size: 9px; }
.operation-list p { margin: 5px 0 0; overflow: hidden; color: var(--sg-subtle); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.operation-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.secondary-button.compact { min-height: 30px; padding: 0 9px; font-size: 9px; }
.check-list { max-height: 270px; margin: 14px 0; overflow-y: auto; border-top: 1px solid var(--sg-border-soft); }
.check-list label { min-height: 52px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--sg-border-soft); cursor: pointer; }
.check-list strong, .check-list small { display: block; }
.check-list strong { font-size: 10px; }.check-list small { margin-top: 3px; color: var(--sg-subtle); font-size: 8px; }
.apply-target-list { max-height: 310px; margin-top: 16px; overflow-y: auto; border-top: 1px solid var(--sg-border-soft); }
.apply-target-list label { min-height: 54px; padding: 0 4px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--sg-border-soft); cursor: pointer; }
.apply-target-list label.is-all { margin-bottom: 8px; border: 1px solid var(--sg-border); border-radius: 6px; background: var(--sg-glass-muted); }
.apply-target-list input { width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--sg-text); }
.apply-target-list strong, .apply-target-list small { display: block; }
.apply-target-list strong { font-size: 11px; }
.apply-target-list small { margin-top: 3px; color: var(--sg-subtle); font-size: 9px; }
.campaign-modal { width: min(880px, 100%); max-height: min(92vh, 900px); overflow-y: auto; }
.campaign-basics { margin-top: 16px; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr); gap: 12px; }
.campaign-basics .modal-field { margin-top: 0; }
.campaign-editor-tabs { width: 100%; height: 42px; margin-top: 20px; }
.campaign-editor-tabs button { min-width: 0; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; }
.campaign-editor-tabs button span { min-width: 20px; margin-left: 0; color: var(--sg-subtle); font-size: 9px; }
.campaign-editor-tabs button.is-selected span { color: var(--sg-muted); }
.campaign-pane { min-height: 310px; padding-top: 20px; }
.campaign-pane-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.campaign-pane-heading h3 { margin: 0; font-size: 15px; line-height: 21px; font-weight: 650; }
.campaign-pane-heading p { margin: 4px 0 0; color: var(--sg-subtle); font-size: 10px; line-height: 16px; }
.campaign-pane-heading > span { flex: 0 0 auto; color: var(--sg-muted); font-size: 10px; line-height: 21px; }
.campaign-pane-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.campaign-pane-tools > span { color: var(--sg-muted); font-size: 10px; }
.campaign-source-status { min-height: 54px; margin-top: 16px; padding: 10px 12px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--sg-border-soft); border-radius: 6px; background: rgba(255,255,255,.018); }
.campaign-source-status > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 5px; color: var(--sg-subtle); }
.campaign-source-status strong, .campaign-source-status small { display: block; }.campaign-source-status strong { font-size: 10px; }.campaign-source-status small { margin-top: 3px; color: var(--sg-subtle); font-size: 9px; line-height: 14px; }
.campaign-source-status em { color: var(--sg-muted); font-size: 9px; font-style: normal; }.campaign-source-status.is-active > span, .campaign-source-status.is-active em { color: var(--sg-success); }
.campaign-audio-default { min-height: 66px; margin-top: 10px; padding: 10px 12px; display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: center; gap: 16px; border: 1px solid var(--sg-border-soft); border-radius: 6px; background: var(--sg-glass-muted); }
.campaign-audio-default strong, .campaign-audio-default small { display: block; }.campaign-audio-default strong { font-size: 10px; }.campaign-audio-default small { margin-top: 4px; color: var(--sg-subtle); font-size: 9px; line-height: 14px; }
.audio-mode-segmented { height: 34px; padding: 3px; display: inline-flex; align-items: stretch; gap: 2px; border: 1px solid var(--sg-border-soft); border-radius: 6px; background: rgba(0,0,0,.16); }
.audio-mode-segmented button { min-width: 92px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 4px; background: transparent; color: var(--sg-muted); font-size: 9px; cursor: pointer; }
.audio-mode-segmented button:hover { color: var(--sg-text); }.audio-mode-segmented button.is-selected { background: var(--sg-text); color: var(--sg-bg); }
.audio-mode-segmented.compact { height: 30px; }.audio-mode-segmented.compact button { min-width: 72px; padding-inline: 7px; }
.campaign-add { margin: 16px 0 8px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.campaign-add.music-block-add { margin-top: 0; padding-bottom: 8px; border-bottom: 1px solid var(--sg-border-soft); }
.campaign-add.music-block-add .secondary-button { min-width: 190px; }
.campaign-add select, .campaign-item-options select { min-height: 36px; padding: 0 9px; border: 1px solid var(--sg-border-soft); border-radius: 6px; background: var(--sg-glass-muted); color: var(--sg-text); font-size: 11px; }
.campaign-items { border-top: 1px solid var(--sg-border-soft); }
.campaign-items > article { min-height: 82px; padding: 11px 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--sg-border-soft); }
.drag-index { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 5px; color: var(--sg-subtle); font-size: 9px; }
.campaign-item-main strong, .campaign-item-main small { display: block; }.campaign-item-main strong { font-size: 11px; }.campaign-item-main small { margin-top: 3px; color: var(--sg-subtle); font-size: 9px; }
.campaign-item-options { margin-top: 9px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; color: var(--sg-muted); font-size: 10px; }
.campaign-item-options label { display: inline-flex; align-items: center; gap: 6px; }.campaign-item-options input[type=number] { width: 62px; height: 32px; padding: 0 7px; border: 1px solid var(--sg-border-soft); border-radius: 5px; background: var(--sg-glass-muted); color: var(--sg-text); }
.campaign-item-options select { min-height: 32px; }
.item-audio-choice { display: inline-flex; align-items: center; gap: 7px; }
.campaign-sequence-summary { min-height: 42px; padding: 10px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--sg-muted); font-size: 9px; }
.campaign-sequence-summary span { display: inline-flex; align-items: center; gap: 5px; }
.campaign-empty { min-height: 112px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 9px; border-top: 1px solid var(--sg-border-soft); border-bottom: 1px solid var(--sg-border-soft); color: var(--sg-subtle); font-size: 10px; }
.preview-backdrop { z-index: 120; }
.loop-preview-modal { width: min(980px, 100%); padding: 24px; overflow: hidden; background: rgba(14, 15, 18, .98); }
.loop-preview-heading { padding-right: 42px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.loop-preview-heading h2 { margin-bottom: 0; }
.loop-preview-heading > span { min-height: 27px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--sg-border-soft); border-radius: 999px; background: var(--sg-glass-muted); color: var(--sg-muted); font-size: 8px; white-space: nowrap; }
.loop-preview-heading > span i { width: 5px; height: 5px; border-radius: 50%; background: var(--sg-online); box-shadow: 0 0 0 3px rgba(216, 248, 223, .08); }
.display-preview-frame { width: min(780px, 88%, calc((100vh - 340px) * 1.777)); margin: 22px auto 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px 14px 9px 9px; background: #090a0c; box-shadow: 0 26px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07); }
.display-preview-topbar { height: 31px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, #202227, #15161a); color: #747b85; font-size: 7px; letter-spacing: .02em; }
.display-preview-brand { display: inline-flex; align-items: center; gap: 6px; color: #9aa1aa; font-weight: 650; }
.display-preview-brand i { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; background: #eef1f4; color: #0b0c0e; font-size: 6px; font-style: normal; font-weight: 850; }
.display-preview-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background-color: #050607; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 42px 42px; }
.display-preview-stage > img, .display-preview-stage > video { width: 100%; height: 100%; display: block; background: #050607; }
.display-preview-stage > audio { position: absolute; width: 1px; height: 1px; opacity: 0; }
.display-preview-overlay { position: absolute; z-index: 3; top: 10px; right: 10px; display: flex; gap: 5px; }
.display-preview-overlay > span { min-height: 23px; padding: 0 7px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 5px; background: rgba(7, 8, 10, .7); color: rgba(255, 255, 255, .72); backdrop-filter: blur(12px); font-size: 7px; }
.display-audio-visual { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .07), transparent 26%), linear-gradient(145deg, #101217, #050607 70%); }
.display-audio-visual > span { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .055); color: rgba(255, 255, 255, .72); box-shadow: 0 18px 44px rgba(0,0,0,.28); }
.display-audio-visual strong { margin-top: 15px; font-size: 14px; }
.display-audio-visual small { margin-top: 4px; color: var(--sg-subtle); font-size: 8px; }
.display-audio-wave { height: 24px; margin-top: 20px; display: flex; align-items: center; gap: 5px; }
.display-audio-wave i { width: 2px; height: 7px; background: rgba(255,255,255,.6); animation: preview-wave 1.1s ease-in-out infinite; }
.display-audio-wave i:nth-child(3n) { animation-delay: -.25s; }.display-audio-wave i:nth-child(2n) { animation-delay: -.55s; }
.display-preview-chin { height: 24px; display: grid; place-items: center; border-top: 1px solid rgba(255, 255, 255, .07); background: linear-gradient(#15161a, #0e0f12); }
.display-preview-chin span { width: 25px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.loop-preview-controls { min-height: 72px; margin-top: 14px; padding: 12px 3px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--sg-border-soft); }
.loop-preview-now { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; }
.loop-preview-now > span { grid-row: 1 / 3; min-width: 48px; min-height: 34px; padding: 0 8px; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 6px; background: var(--sg-glass-muted); color: var(--sg-muted); font-size: 8px; }
.loop-preview-now strong, .loop-preview-now small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.loop-preview-now strong { font-size: 10px; }.loop-preview-now small { color: var(--sg-subtle); font-size: 8px; }
.loop-preview-transport { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.loop-preview-transport button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 7px; background: var(--sg-glass-muted); color: var(--sg-muted); cursor: pointer; }
.loop-preview-transport button:first-child svg { transform: rotate(-90deg); }.loop-preview-transport button:nth-child(3) svg { transform: rotate(-90deg); }
.loop-preview-transport button:hover, .loop-preview-transport button.is-active { border-color: var(--sg-border); background: var(--sg-glass); color: var(--sg-text); }
.loop-preview-transport button:disabled { opacity: .35; cursor: not-allowed; }
.loop-preview-transport button.is-primary { border-color: var(--sg-text); background: var(--sg-text); color: var(--sg-bg); }
.loop-preview-sequence { max-height: 94px; padding-top: 12px; display: flex; gap: 7px; overflow-x: auto; }
.loop-preview-sequence button { min-width: 132px; max-width: 170px; height: 48px; padding: 0 9px; display: grid; grid-template-columns: 20px 16px minmax(0, 1fr); align-items: center; gap: 6px; border: 1px solid var(--sg-border-soft); border-radius: 7px; background: var(--sg-glass-muted); color: var(--sg-subtle); cursor: pointer; }
.loop-preview-sequence button > span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 4px; background: rgba(255,255,255,.045); font-size: 7px; }
.loop-preview-sequence button strong { overflow: hidden; color: var(--sg-muted); font-size: 8px; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.loop-preview-sequence button.is-current { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: var(--sg-text); box-shadow: inset 0 -2px 0 rgba(255,255,255,.62); }.loop-preview-sequence button.is-current strong { color: var(--sg-text); }
.live-source-band { min-height: 58px; margin-top: 16px; padding: 0 12px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-top: 1px solid var(--sg-border-soft); border-bottom: 1px solid var(--sg-border-soft); }
.live-source-band > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 6px; color: var(--sg-muted); }
.live-source-band strong, .live-source-band small { display: block; }.live-source-band strong { font-size: 11px; }.live-source-band small { margin-top: 3px; color: var(--sg-subtle); font-size: 9px; }.live-source-band > svg { color: var(--sg-muted); }
.live-source-band.is-active > svg { color: var(--sg-success); }
.live-presentation-grid { margin-top: 14px; }
.flow-mode-field { margin: 12px 0; }
.live-open-capture { width: 100%; justify-content: center; margin-top: 18px; }
.compact-field { max-width: 210px; }
.field-suffix { display: grid; grid-template-columns: 92px auto; align-items: center; gap: 8px; }.field-suffix small { color: var(--sg-subtle); font-size: 10px; }
.program-flow { min-height: 58px; margin-top: 16px; display: grid; grid-template-columns: minmax(120px, 1fr) 36px minmax(180px, 1.35fr) 36px minmax(120px, 1fr); align-items: center; gap: 5px; }
.program-flow span { height: 38px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--sg-border-soft); border-radius: 6px; color: var(--sg-muted); font-size: 10px; }
.program-flow span.is-live { border-color: var(--sg-border); background: var(--sg-glass); color: var(--sg-text); }
.program-flow i { height: 1px; background: var(--sg-border); }
.flow-editor { margin-top: 12px; padding: 4px 0 16px; border-top: 1px solid var(--sg-border-soft); border-bottom: 1px solid var(--sg-border-soft); }
.campaign-schedule-mode { min-height: 50px; margin: 12px 0; padding: 9px 11px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--sg-border-soft); border-radius: 6px; background: var(--sg-glass-muted); }
.campaign-schedule-mode > svg { color: var(--sg-muted); }.campaign-schedule-mode strong, .campaign-schedule-mode small { display: block; }.campaign-schedule-mode strong { font-size: 10px; }.campaign-schedule-mode small { margin-top: 3px; color: var(--sg-subtle); font-size: 9px; }
.compact-days { margin: 14px 0 10px; }
.flow-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compact-switch { min-width: 200px; min-height: 42px; border: 0; }
.flow-blocks { margin-top: 14px; border-top: 1px solid var(--sg-border-soft); }
.flow-blocks > article { min-height: 66px; display: grid; grid-template-columns: 102px 150px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--sg-border-soft); }
.flow-blocks > article.is-disabled { opacity: .5; }
.flow-blocks time { font-size: 11px; font-weight: 650; }.flow-blocks time span { margin: 0 5px; color: var(--sg-subtle); }
.flow-blocks strong, .flow-blocks small { display: block; }.flow-blocks strong { font-size: 10px; }.flow-blocks small { margin-top: 3px; color: var(--sg-subtle); font-size: 9px; }
.publish-summary { min-height: 42px; margin: 12px 0 4px; padding: 0 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; border: 1px solid var(--sg-border-soft); border-radius: 6px; background: var(--sg-glass-muted); color: var(--sg-muted); font-size: 9px; }
.publish-summary span { display: inline-flex; align-items: center; gap: 5px; }.publish-summary strong { color: var(--sg-text); }.publish-summary i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.publish-summary .is-ready { color: var(--sg-success); }.publish-summary .is-warning { color: var(--sg-warning); }
.stack-actions { display: flex; flex-direction: column; gap: 3px; }.stack-actions button { width: 26px; height: 24px; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 4px; background: transparent; color: var(--sg-muted); cursor: pointer; }.stack-actions button:disabled { opacity: .25; }
.schedule-modal { width: min(600px, 100%); }
.schedule-list > article { min-height: 86px; padding: 12px 2px; display: grid; grid-template-columns: 90px 150px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--sg-border-soft); }
.schedule-list > article.is-disabled { opacity: .48; }.schedule-list time { font-size: 12px; font-weight: 700; }.schedule-list time span { margin: 0 5px; color: var(--sg-subtle); }.schedule-list strong, .schedule-list small { display: block; }.schedule-list strong { font-size: 10px; }.schedule-list small, .schedule-list p { margin: 4px 0 0; color: var(--sg-subtle); font-size: 8px; }
.mode-chip { min-height: 28px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--sg-border-soft); border-radius: 5px; color: var(--sg-muted); font-size: 8px; }.mode-chip.is-live { color: var(--sg-danger); }
.day-selector { margin: 14px 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }.day-selector input { position: absolute; opacity: 0; }.day-selector span { height: 34px; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 6px; color: var(--sg-subtle); font-size: 9px; cursor: pointer; }.day-selector input:checked + span { border-color: var(--sg-muted); background: var(--sg-text); color: var(--sg-bg); }
.switch-field { min-height: 52px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--sg-border-soft); border-bottom: 1px solid var(--sg-border-soft); }.switch-field strong, .switch-field small { display: block; }.switch-field strong { font-size: 10px; }.switch-field small { margin-top: 3px; color: var(--sg-subtle); font-size: 8px; }
.device-table { overflow-x: auto; border-top: 1px solid var(--sg-border-soft); }.device-table-head, .device-table > article { min-width: 860px; display: grid; grid-template-columns: minmax(180px,1.2fr) minmax(150px,1fr) minmax(150px,.9fr) 100px minmax(140px,.9fr) 44px; align-items: center; gap: 12px; }.device-table-head { min-height: 38px; color: var(--sg-subtle); font-size: 8px; text-transform: uppercase; }.device-table > article { position: relative; min-height: 70px; border-top: 1px solid var(--sg-border-soft); }.device-table > article > span:first-child { display: flex; align-items: center; gap: 9px; }.device-table strong, .device-table small { display: block; }.device-table strong { font-size: 10px; }.device-table small { margin-top: 3px; color: var(--sg-subtle); font-size: 8px; }.inline-volume { display: flex; align-items: center; gap: 7px; }.inline-volume input { width: 100px; }.device-error { position: absolute; right: 45px; bottom: 3px; margin: 0; color: var(--sg-danger); font-size: 7px; }
.live-status { min-height: 132px; margin-bottom: 20px; padding: 24px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 18px; border: 1px solid var(--sg-border-soft); border-radius: 8px; background: var(--sg-glass-muted); }.live-status h2 { margin: 3px 0 6px; font-size: 20px; }.live-status p:last-child { margin: 0; color: var(--sg-muted); font-size: 10px; }.live-pulse { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,216,216,.18); border-radius: 50%; }.live-pulse i { width: 9px; height: 9px; border-radius: 50%; background: var(--sg-danger); animation: pulse 1.4s infinite; }.operations-split { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.75fr); gap: 30px; }.section-copy { max-width: 620px; margin: 0 0 18px; color: var(--sg-subtle); font-size: 10px; line-height: 17px; }.control-step { min-height: 64px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; border-top: 1px solid var(--sg-border-soft); }.control-step > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 50%; color: var(--sg-subtle); font-size: 8px; }.control-step strong, .control-step small { display: block; }.control-step strong { font-size: 9px; }.control-step small { margin-top: 3px; color: var(--sg-subtle); font-size: 8px; line-height: 13px; }
.library-section { min-width: 0; }
.library-toolbar { min-height: 48px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--sg-border-soft); }
.library-search { width: min(260px, 40vw); height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--sg-border-soft); border-radius: 7px; background: var(--sg-glass-muted); color: var(--sg-subtle); }
.library-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--sg-text); font-size: 10px; }
.library-loading { min-height: 300px; }
.library-empty { min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--sg-border-soft); border-radius: 8px; background: var(--sg-glass-muted); text-align: center; }
.library-empty > span { width: 48px; height: 48px; margin-bottom: 14px; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 8px; color: var(--sg-muted); }
.library-empty strong { font-size: 13px; }
.library-empty p { max-width: 360px; margin: 7px 0 18px; color: var(--sg-subtle); font-size: 10px; line-height: 17px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.asset-card { min-width: 0; overflow: hidden; border: 1px solid var(--sg-border-soft); border-radius: 8px; background: var(--sg-glass-muted); }
.asset-preview { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--sg-border-soft); background: #111318; color: var(--sg-muted); text-decoration: none; }
.asset-preview img, .asset-preview video { width: 100%; height: 100%; display: block; object-fit: cover; }
.asset-preview video { background: #111318; }
.asset-kind { position: absolute; right: 8px; bottom: 8px; min-height: 25px; padding: 0 7px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--sg-border); border-radius: 5px; background: rgba(9, 10, 12, .86); color: var(--sg-muted); font-size: 8px; }
.audio-preview { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--sg-border); border-radius: 50%; background: var(--sg-glass); color: var(--sg-muted); }
.asset-details { min-height: 58px; padding: 11px 10px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.asset-details > div:first-child { min-width: 0; }
.asset-details strong, .asset-details small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-details strong { font-size: 10px; }
.asset-details small { margin-top: 4px; color: var(--sg-subtle); font-size: 8px; }
.asset-actions { display: flex; gap: 2px; }
.asset-actions a { text-decoration: none; }
.row-action.is-confirming { border-color: rgba(255, 216, 216, .2); background: rgba(255, 216, 216, .08); }
.asset-meta { min-height: 31px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--sg-border-soft); color: var(--sg-subtle); font-size: 8px; }
.asset-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-meta time { flex: 0 0 auto; }
.upload-modal { width: min(540px, 100%); }
.upload-picker { position: relative; min-height: 150px; padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed var(--sg-border); border-radius: 8px; background: var(--sg-glass-muted); text-align: center; cursor: pointer; }
.upload-picker:hover, .upload-picker.has-files { border-color: rgba(255, 255, 255, .28); background: var(--sg-glass); }
.upload-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-picker > span { width: 38px; height: 38px; margin-bottom: 10px; display: grid; place-items: center; border: 1px solid var(--sg-border-soft); border-radius: 7px; color: var(--sg-muted); }
.upload-picker strong { font-size: 11px; }
.upload-picker small { margin-top: 6px; color: var(--sg-subtle); font-size: 8px; line-height: 14px; }
.selected-files { max-height: 152px; margin-top: 12px; overflow-y: auto; border-top: 1px solid var(--sg-border-soft); }
.selected-files > div { min-height: 46px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--sg-border-soft); color: var(--sg-muted); }
.selected-files span { min-width: 0; }
.selected-files strong, .selected-files small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-files strong { color: var(--sg-text); font-size: 9px; }
.selected-files small { margin-top: 3px; color: var(--sg-subtle); font-size: 8px; }
.upload-progress { margin-top: 14px; }
.upload-progress > span { height: 3px; display: block; overflow: hidden; background: var(--sg-border-soft); }
.upload-progress i { height: 100%; display: block; background: var(--sg-text); transition: width 180ms ease; }
.upload-progress small { margin-top: 7px; display: block; color: var(--sg-subtle); font-size: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.installation-key-panel { margin: 20px 0; padding: 16px; border: 1px solid var(--sg-border); border-radius: 8px; background: rgba(255, 255, 255, .04); }
.installation-key-panel > span, .installation-key-panel small { display: block; color: var(--sg-subtle); font-size: 9px; }
.installation-key-panel code { margin: 10px 0; display: block; color: var(--sg-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; line-height: 28px; letter-spacing: 0; user-select: all; }
.security-note, .credential-status { display: flex; align-items: center; gap: 10px; color: var(--sg-muted); font-size: 10px; line-height: 16px; }
.credential-status { min-height: 54px; padding: 10px 0; border-top: 1px solid var(--sg-border-soft); border-bottom: 1px solid var(--sg-border-soft); }
.credential-status strong, .credential-status small { display: block; }
.credential-status strong { color: var(--sg-text); font-size: 11px; }
.credential-status small { margin-top: 3px; color: var(--sg-subtle); font-size: 9px; }
.inline-error { padding: 10px 12px; border: 1px solid rgba(255, 216, 216, .2); border-radius: 6px; background: rgba(255, 216, 216, .06); color: var(--sg-danger); font-size: 10px; }
.access-actions { margin-top: 22px; display: flex; gap: 8px; }
.danger-button { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255, 216, 216, .22); border-radius: 8px; background: rgba(255, 216, 216, .06); color: var(--sg-danger); cursor: pointer; }
.danger-button.is-confirming { background: var(--sg-danger); color: var(--sg-bg); }
.danger-button:disabled { opacity: .55; cursor: wait; }
.destructive-note { margin-top: 12px !important; color: var(--sg-subtle) !important; font-size: 9px !important; line-height: 15px !important; }
.toast { position: fixed; z-index: 110; right: 24px; bottom: 24px; min-width: 240px; padding: 11px 14px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--sg-border); border-radius: 8px; background: rgba(25, 27, 31, .94); box-shadow: 0 16px 50px rgba(0, 0, 0, .4); }
.toast span { width: 6px; height: 6px; border-radius: 50%; background: var(--sg-online); }
.toast p { margin: 0; color: var(--sg-muted); font-size: 10px; }
.loading-state, .error-state { min-height: calc(100vh - 130px); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--sg-muted); text-align: center; }
.loading-state span { width: 26px; height: 26px; border: 2px solid var(--sg-border); border-top-color: var(--sg-text); border-radius: 50%; animation: spin 800ms linear infinite; }
.loading-state p, .error-state p { margin: 12px 0; font-size: 11px; }

#blazor-error-ui { position: fixed; z-index: 1000; right: 20px; bottom: 20px; display: none; padding: 12px 38px 12px 14px; border: 1px solid rgba(255, 216, 216, .3); border-radius: 8px; background: #1a1517; color: var(--sg-danger); box-shadow: 0 14px 50px rgba(0, 0, 0, .45); font-size: 11px; }
#blazor-error-ui a { margin-left: 8px; color: var(--sg-text); }
#blazor-error-ui .dismiss { position: absolute; top: 8px; right: 12px; cursor: pointer; }
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--sg-online); }
.invalid { outline: 1px solid var(--sg-danger); }
.validation-message { color: var(--sg-danger); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ring { 0% { transform: scale(.65); opacity: .5; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes meter { from { height: 6px; } to { height: 18px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes preview-wave { 0%, 100% { height: 5px; opacity: .35; } 50% { height: 22px; opacity: .9; } }

@media (max-width: 1180px) {
    .topbar { grid-template-columns: 160px minmax(220px, 1fr) auto; }
    .fleet-state { display: none; }
    .workspace { grid-template-columns: minmax(600px, 1fr) 315px; }
    .content-column { padding: 24px 22px 48px; }
    .table-header, .location-row { grid-template-columns: minmax(155px, 1.25fr) minmax(110px, .85fr) minmax(140px, 1.05fr) minmax(105px, .75fr) 64px; }
    .table-header > span:nth-child(5), .location-row > span:nth-child(5) { display: none; }
}

@media (max-width: 930px) {
    .app-shell { padding-left: 68px; }
    .nav-rail { width: 68px; padding-inline: 7px; }
    .nav-item span { display: none; }
    .nav-item { min-height: 48px; }
    .topbar { left: 68px; grid-template-columns: auto minmax(180px, 1fr) auto; padding-inline: 14px; }
    .environment, .topbar-actions .icon-button, .emergency-button span { display: none; }
    .emergency-button { width: 36px; padding: 0; }
    .workspace { grid-template-columns: 1fr; }
    .inspector { position: relative; top: auto; height: auto; padding: 24px; border-top: 1px solid var(--sg-border-soft); border-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
    .inspector-heading, .broadcast-state, .broadcast-button, .now-playing { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .app-shell { padding: 58px 0 62px; }
    .nav-rail { inset: auto 0 0; width: auto; height: 62px; padding: 6px 7px calc(6px + env(safe-area-inset-bottom)); flex-direction: row; border-top: 1px solid var(--sg-border-soft); border-right: 0; }
    .brand-mark, .nav-settings { display: none; }
    .nav-rail nav { width: 100%; flex-direction: row; justify-content: space-around; gap: 0; }
    .nav-item { width: 20%; min-height: 48px; }
    .nav-item:nth-child(n+6) { display: none; }
    .nav-item span { display: block; max-width: 54px; font-size: 8px; }
    .topbar { left: 0; grid-template-columns: 1fr auto; height: 58px; padding: 0 12px; }
    .global-search { display: none; }
    .topbar-actions { gap: 5px; }
    .content-column { padding: 20px 14px 36px; }
    .page-heading { align-items: flex-end; margin-bottom: 18px; }
    .heading-actions .secondary-button { display: none; }
    .heading-actions .primary-button { width: 36px; padding: 0; font-size: 0; }
    .metric-band { grid-template-columns: repeat(2, 1fr); }
    .metric-band article { padding: 14px; }
    .metric-band article:first-child { padding-left: 14px; }
    .metric-band article:nth-child(2) { border-right: 0; }
    .metric-band article:nth-child(-n+2) { border-bottom: 1px solid var(--sg-border-soft); }
    .metric-band strong { font-size: 21px; }
    .section-heading { align-items: flex-start; }
    .segmented button { padding-inline: 7px; }
    .table-header { display: none; }
    .location-table { border-radius: 8px; }
    .location-row { grid-template-columns: 1fr auto; gap: 8px; min-height: 82px; padding: 12px; }
    .location-row > span:nth-child(2), .location-row > span:nth-child(3), .location-row > span:nth-child(5) { display: none; }
    .location-row > span:nth-child(4) { align-self: end; grid-column: 1 / 2; margin-left: 16px; }
    .location-row > span:nth-child(6) { grid-column: 2; grid-row: 1 / 3; }
    .volume-control { width: min(72vw, 280px); grid-template-columns: 28px minmax(100px, 1fr) 38px 28px; }
    .volume-control input { width: 100%; }
    .timeline-hours { margin-left: 0; }
    .timeline-row { grid-template-columns: 1fr; }
    .timeline-label { display: none; }
    .timeline-block { padding-inline: 5px; }
    .timeline-block svg, .timeline-block small { display: none; }
    .inspector { display: block; padding: 22px 14px 36px; }
    .management-modal { padding: 24px 20px; }
    .user-management-page { padding: 20px 14px 36px; }
    .library-page { padding: 20px 14px 36px; }
    .operations-page { padding: 20px 14px 36px; }
    .download-list article { grid-template-columns: 38px minmax(0, 1fr); }
    .download-list article > a { grid-column: 1 / -1; width: 100%; }
    .download-notes { align-items: stretch; flex-direction: column; }
    .download-notes a { width: 100%; }
    .operation-list > article { grid-template-columns: 34px minmax(0, 1fr); }.operation-list .operation-actions { grid-column: 2; justify-content: flex-start; }
    .schedule-list > article { grid-template-columns: 78px 1fr; }.schedule-list .mode-chip { justify-self: start; }.schedule-list > article > div:nth-of-type(1) { grid-column: 1 / -1; }.schedule-list .operation-actions { grid-column: 2; justify-content: flex-start; }
    .operations-split { grid-template-columns: 1fr; }.live-status { grid-template-columns: 42px 1fr; }.live-status > button, .live-status > a { grid-column: 1 / -1; }
    .library-toolbar { align-items: stretch; flex-direction: column; padding-bottom: 14px; }
    .library-search { width: 100%; }
    .asset-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .form-grid { grid-template-columns: 1fr; }
    .campaign-basics { grid-template-columns: 1fr; }
    .campaign-editor-tabs button { padding-inline: 5px; font-size: 9px; }
    .campaign-editor-tabs button svg { display: none; }
    .campaign-pane-heading { flex-direction: column; }.campaign-pane-tools { width: 100%; justify-content: space-between; }
    .campaign-audio-default { grid-template-columns: 1fr; }.audio-mode-segmented { width: 100%; }.audio-mode-segmented button { min-width: 0; flex: 1; }
    .campaign-add, .campaign-add.music-block-add { grid-template-columns: 1fr; }.campaign-add .secondary-button, .campaign-add.music-block-add .secondary-button { width: 100%; }
    .item-audio-choice { width: 100%; align-items: flex-start; flex-direction: column; }.item-audio-choice .audio-mode-segmented { width: 100%; }
    .loop-preview-modal { padding: 22px 14px; }.loop-preview-heading > span { display: none; }.display-preview-frame { width: 100%; margin-top: 18px; }.display-preview-topbar { height: 26px; }.display-preview-chin { height: 18px; }
    .loop-preview-controls { align-items: stretch; flex-direction: column; }.loop-preview-transport { justify-content: center; }.loop-preview-sequence button { min-width: 118px; }
    .program-flow { grid-template-columns: 1fr; gap: 5px; }
    .program-flow i { width: 1px; height: 12px; justify-self: center; }
    .flow-editor-actions { align-items: stretch; flex-direction: column; }
    .flow-editor-actions .secondary-button { width: 100%; }
    .flow-blocks > article { grid-template-columns: 90px minmax(0, 1fr); padding: 9px 0; }
    .flow-blocks > article > div:first-of-type { grid-column: 1 / -1; }
    .flow-blocks .operation-actions { grid-column: 2; justify-content: flex-start; }
    .access-actions { flex-direction: column; }
    .installation-key-panel code { font-size: 18px; }
    .toast { right: 14px; bottom: 76px; left: 14px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
