:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #f4f5f7;
  background: #0b0e14;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 0%, #202a3d 0, #0b0e14 42%); }
.container { width: calc(100% - 40px); margin-inline: auto; }
.site-header { border-bottom: 1px solid #29303d; background: rgb(11 14 20 / 80%); }
.site-header .container { min-height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: #fff; font-size: 18px; font-weight: 750; text-decoration: none; }
.environment, .device-type { color: #98a2b3; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.hero { padding: 64px 0 32px; }
.hero h1 { margin: 6px 0 12px; font-size: clamp(32px, 5vw, 52px); }
.hero p { color: #aeb7c5; max-width: 680px; line-height: 1.65; }
.eyebrow { color: #72e0a2 !important; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.device-card { position: relative; padding: 24px; border: 1px solid #2b3443; border-radius: 16px; background: rgb(22 27 37 / 88%); box-shadow: 0 18px 50px rgb(0 0 0 / 20%); }
.device-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-top-actions { display: flex; align-items: center; gap: 7px; }
.drag-handle, .drag-handle:not(:disabled) { width: auto; margin: 0; padding: 5px 7px; color: #98a2b3; background: transparent; cursor: grab; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.drag-handle:active { cursor: grabbing; }
.card-menu { position: relative; }
.menu-trigger, .menu-trigger:not(:disabled) { width: 32px; height: 32px; margin: 0; padding: 0; color: #aeb7c5; background: transparent; font-size: 22px; line-height: 1; }
.menu-trigger:hover { background: #29313d; }
.menu-popover[hidden] { display: none; }
.menu-popover { position: absolute; z-index: 30; top: calc(100% + 5px); right: 0; min-width: 150px; overflow: hidden; padding: 5px; border: 1px solid #3a4556; border-radius: 9px; background: #171d27; box-shadow: 0 14px 35px rgb(0 0 0 / 45%); }
.menu-popover button, .menu-popover button:not(:disabled) { width: 100%; margin: 0; padding: 9px 11px; color: #dbe3ef; background: transparent; text-align: left; font-size: 13px; }
.menu-popover button:hover { background: #29313d; }
.menu-popover button.danger { color: #ff9e96; }
.device-card h2 { margin: 24px 0 8px; }
.device-card code { color: #9eabc0; }
.status { padding: 5px 9px; border-radius: 99px; font-size: 12px; }
.status--offline { color: #ffb4ab; background: #3c1f22; }
button { width: 100%; margin-top: 28px; padding: 11px; border: 0; border-radius: 9px; color: #798395; background: #262d38; }
button:not(:disabled) { color: #07120c; background: #72e0a2; cursor: pointer; font-weight: 700; }
button.secondary:not(:disabled) { color: #dbe3ef; background: #323b49; }
.status--online { color: #8bf0b5; background: #123524; }
.controls { margin-top: 24px; padding-top: 20px; border-top: 1px solid #303948; }
.controls label { display: flex; justify-content: space-between; color: #bdc7d6; }
.controls input { width: 100%; margin-top: 14px; accent-color: #72e0a2; }
.controls button { margin-top: 10px; }
.message { min-height: 20px; margin: 14px 0 0; color: #aeb7c5; font-size: 13px; line-height: 1.5; }
.device-card > .message:empty { display: none; }
.footer { padding: 52px 0 28px; color: #697386; font-size: 13px; }
.panel { padding: 26px; border: 1px solid #2b3443; border-radius: 16px; background: rgb(22 27 37 / 88%); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 6px 0 0; }
.devices-heading { margin: 52px 0 18px; }
.devices-heading > span { color: #98a2b3; }
.device-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.device-form label { display: grid; gap: 8px; color: #aeb7c5; font-size: 13px; }
.device-form input, .device-form select { width: 100%; padding: 11px 12px; border: 1px solid #3a4556; border-radius: 9px; color: #f4f5f7; background: #111722; }
.form-actions { display: flex; gap: 10px; align-items: end; }
.form-actions button { margin-top: 0; }
.device-form > .message { grid-column: 1 / -1; }
.model { color: #98a2b3; margin: -2px 0 12px; }
.card-actions { display: flex; gap: 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #303948; }
.link-button, .link-button:not(:disabled) { width: auto; margin: 0; padding: 3px 0; color: #aeb7c5; background: transparent; font-weight: 600; }
.link-button.danger, .link-button.danger:not(:disabled) { color: #ff9e96; }
.empty-state { grid-column: 1 / -1; padding: 30px; border: 1px dashed #3a4556; border-radius: 14px; color: #98a2b3; text-align: center; }
@media (max-width: 760px) { .device-form { grid-template-columns: 1fr; } .form-actions { align-items: initial; } }
.compact-hero { padding-bottom: 44px; }
.device-section { margin-bottom: 54px; }
.projector-section { padding-top: 40px; border-top: 1px solid #29303d; }
.operations-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.dashboard-cards { display: flex; flex-wrap: wrap; align-items: stretch; margin-top: 34px; margin-bottom: 54px; }
.management-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.modal-dialog.management-dialog { width: min(1380px, 100%); }
.management-summary-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding: 16px; border: 1px solid #2b3443; border-radius: 8px; background: #111722; }
.management-summary-card div { display: grid; gap: 4px; }
.management-summary-card span { color: #98a2b3; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.management-summary-card strong { color: #f4f5f7; font-size: 24px; line-height: 1; }
.management-summary-card p { grid-column: 1 / -1; margin: 4px 0 0; color: #c7d0dd; font-size: 13px; line-height: 1.5; }
.management-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.management-actions button, .management-actions button:not(:disabled) { width: auto; margin: 0; padding: 9px 12px; }
.device-report-dialog { width: min(1120px, 100%); }
.device-report-page { display: grid; gap: 18px; }
.device-report-page__header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.device-report-page__header h1 { margin: 4px 0 0; font-size: 28px; }
.device-report-controls { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.35fr) auto; gap: 20px; align-items: end; margin-top: 4px; }
.device-report-controls label { display: grid; gap: 7px; color: #aeb7c5; font-size: 13px; }
.device-report-controls select { width: 100%; padding: 11px 12px; border: 1px solid #3a4556; border-radius: 8px; color: #f4f5f7; background: #111722; }
.device-report-controls button, .device-report-controls button:not(:disabled) { width: auto; margin: 0; padding: 11px 14px; }
.cinema-time-range { display: grid; gap: 6px; min-width: 0; color: #aeb7c5; font-size: 13px; }
.cinema-time-range__title { line-height: 1; }
.cinema-time-range__values { display: flex; justify-content: space-between; gap: 10px; color: #f4f5f7; font-size: 12px; }
.cinema-time-range__values strong { font-weight: 700; }
.cinema-time-slider { --start: 0%; --end: 100%; position: relative; height: 28px; margin: 0 8px; }
.cinema-time-slider__track { position: absolute; top: 13px; right: 0; left: 0; height: 4px; border-radius: 2px; background: #344154; }
.cinema-time-slider__track::after { position: absolute; top: 0; right: calc(100% - var(--end)); bottom: 0; left: var(--start); border-radius: inherit; background: #72e0a2; content: ''; }
.cinema-time-slider__ticks { position: absolute; inset: 0; pointer-events: none; }
.cinema-time-slider__ticks i { position: absolute; top: 11px; left: calc(var(--tick) * 100% / 27); width: 8px; height: 8px; border: 2px solid #111722; border-radius: 50%; background: #667085; transform: translateX(-50%); }
.cinema-time-slider input[type='range'] { position: absolute; inset: 0; width: 100%; height: 28px; margin: 0; padding: 0; border: 0; outline: none; background: transparent; pointer-events: none; appearance: none; }
.cinema-time-slider input[type='range']::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.cinema-time-slider input[type='range']::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7px; border: 3px solid #111722; border-radius: 50%; background: #72e0a2; box-shadow: 0 0 0 1px #72e0a2; cursor: grab; pointer-events: auto; appearance: none; }
.cinema-time-slider input[type='range']::-moz-range-track { height: 4px; background: transparent; }
.cinema-time-slider input[type='range']::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #111722; border-radius: 50%; background: #72e0a2; box-shadow: 0 0 0 1px #72e0a2; cursor: grab; pointer-events: auto; }
.cinema-time-slider input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #111722, 0 0 0 5px #69a7ff; }
.cinema-time-range__limits { display: flex; justify-content: space-between; color: #7f8a9b; font-size: 10px; }
.device-report-chart { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.telemetry-chart { padding: 14px; border: 1px solid #2b3443; border-radius: 8px; background: #111722; }
.telemetry-chart--wide { min-height: 430px; }
.telemetry-chart h2, .telemetry-chart h3 { margin: 0 0 10px; font-size: 15px; }
.telemetry-chart__canvas { position: relative; height: 320px; min-height: 0; }
.telemetry-chart__canvas canvas, .telemetry-chart canvas { width: 100% !important; height: 100% !important; display: block; }
.telemetry-chart__empty { display: grid; place-items: center; min-height: 160px; margin: 0; color: #98a2b3; }
.telemetry-chart .axis { stroke: #344154; stroke-width: 1; }
.telemetry-chart .grid { stroke: #253143; stroke-width: 1; }
.telemetry-chart .line { fill: none; stroke: #72e0a2; stroke-width: 2; }
.telemetry-chart .label { fill: #98a2b3; font-size: 11px; }
.telemetry-chart .latest { margin: 8px 0 0; color: #c7d0dd; font-size: 13px; }
.telemetry-latest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.telemetry-latest-grid div { display: grid; gap: 3px; padding: 8px; border-radius: 8px; background: #17202d; }
.telemetry-latest-grid strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dbe3ef; font-size: 12px; }
.telemetry-latest-grid span { color: #98a2b3; font-size: 12px; }
.management-panel__section { padding: 18px; border: 1px solid #2b3443; border-radius: 8px; background: rgb(16 21 29 / 78%); }
.inline-admin-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; }
.inline-admin-form input, .inline-admin-form select { min-width: 0; padding: 10px 11px; border: 1px solid #3a4556; border-radius: 8px; color: #f4f5f7; background: #111722; }
.inline-admin-form button, .inline-admin-form button:not(:disabled) { width: auto; margin: 0; padding: 10px 12px; }
.admin-list { display: grid; gap: 7px; margin-top: 12px; }
.admin-list__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px; border-radius: 8px; background: #111722; }
.admin-list__row strong, .admin-list__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-list__row span { color: #98a2b3; font-size: 12px; }
.admin-list__row button, .admin-list__row button:not(:disabled) { width: auto; margin: 0; padding: 7px 9px; }
.dashboard-cards > .dashboard-item { flex: 0 0 calc(50% - 9px); min-width: 0; }
.dashboard-item.is-dragging { opacity: .38; outline: 2px dashed #72e0a2; }
.resize-handle { position: absolute; z-index: 12; top: 70px; right: -6px; bottom: 20px; width: 12px; margin: 0; padding: 0; border-radius: 8px; background: transparent !important; cursor: ew-resize; touch-action: none; }
.resize-handle::before { position: absolute; top: 50%; left: 4px; width: 3px; height: 52px; border-radius: 99px; background: #485467; content: ''; transform: translateY(-50%); transition: background .15s; }
.resize-handle:hover::before, .device-card.is-resizing .resize-handle::before { background: #72e0a2; }
.device-card.is-resizing { z-index: 20; user-select: none; }
.device-card.is-resizing::after { position: absolute; z-index: 30; top: 42px; right: 10px; padding: 5px 8px; border-radius: 7px; color: #07120c; background: #72e0a2; content: attr(data-resize-label); font-size: 11px; font-weight: 800; }
.operations-card { min-height: 500px; display: flex; flex-direction: column; }
.operations-card h2 { margin-bottom: 5px; }
.device-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.device-title-row h2 { margin-top: 22px; }
.title-volume { min-width: 92px; display: grid; justify-items: end; padding-top: 15px; }
.title-volume span { color: #98a2b3; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.title-volume output { color: #ff514a; font-size: 48px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgb(255 81 74 / 20%); }
.slot-label { color: #98a2b3; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.endpoint { margin: 0; color: #7f8ba0; font-family: ui-monospace, monospace; font-size: 13px; }
.live-value { display: flex; align-items: end; justify-content: space-between; margin-top: 30px; }
.live-value span { color: #98a2b3; }
.live-value strong { font-size: 35px; font-variant-numeric: tabular-nums; }
.jsd-display { margin-top: 24px; padding: 14px; border-radius: 10px; background: #070a0f; }
.input-mode { min-height: 22px; color: #5084ff; font-size: 16px; text-align: center; }
.channel-meters { height: 148px; display: grid; grid-template-columns: repeat(10, 1fr); align-items: end; gap: 4px; margin-top: 10px; }
.meter { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 4px; min-width: 0; text-align: center; }
.meter-track { position: relative; overflow: hidden; border-radius: 2px 2px 0 0; background: #151b23; }
.meter-fill { position: absolute; right: 0; bottom: 0; left: 0; height: 0; background: linear-gradient(to top, #20be51 0 72%, #e2ce30 72% 90%, #ed4b47 90%); transition: height 120ms linear; }
.meter span { color: #d9e0e9; font-size: 10px; }
.fader { width: 100%; margin: 18px 0; accent-color: #72e0a2; }
.volume-actions { display: grid; grid-template-columns: minmax(76px, 1fr) 64px minmax(76px, 1fr); gap: 8px; }
.volume-actions button { min-height: 48px; margin: 0; font-size: 22px; }
.volume-actions button:not(:disabled) { color: #dbe3ef; background: #303846; }
.volume-actions button:not(:disabled):hover { background: #3a4556; }
.volume-actions .mute-button { min-height: 34px; align-self: center; padding: 6px 8px; font-size: 11px; }
.volume-actions .mute-button:not(:disabled) { color: #ffd2a3; background: rgb(190 108 43 / 38%); }
.volume-actions .mute-button:not(:disabled):hover { background: rgb(205 119 48 / 52%); }
.volume-actions .is-muted:not(:disabled) { color: #fff3e4; background: #b76025; }
.card-footer { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 22px; }
.status--pending { color: #ffd38b; background: #3c311c; }
.projector-visual { margin-top: 28px; color: #596579; font-size: 52px; line-height: 1; }
.show-status { position: relative; display: grid; gap: 9px; margin-top: 24px; padding: 16px; border-radius: 12px; background: #070a0f; }
.show-loading { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; border-radius: 12px; color: #ffd38b; background: rgb(7 10 15 / 88%); font-size: 15px; font-weight: 800; text-align: center; animation: show-loading-blink 1s ease-in-out infinite; }
.show-loading[hidden] { display: none; }
@keyframes show-loading-blink { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.show-title { overflow: hidden; color: #f4f5f7; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.clip-title { overflow: hidden; color: #7f8ba0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.timeline { position: relative; height: 8px; overflow: hidden; border-radius: 99px; background: #202733; }
.timeline i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #5084ff, #72e0a2); transition: width 500ms linear; }
.clip-segments { position: absolute; inset: 0; display: flex; }
.clip-segments button, .clip-segments button:not(:disabled) { flex: 0 0 auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-left: 1px solid rgb(7 10 15 / 80%); border-radius: 0; background: transparent; cursor: pointer; }
.clip-segments button:first-child { border-left: 0; }
.clip-segments button:hover { background: rgb(255 255 255 / 28%); }
.clip-segment--feature { background: rgb(80 132 255 / 18%) !important; }
.clip-segment--trailer, .clip-segment--teaser { background: rgb(114 224 162 / 18%) !important; }
.clip-segment--policy, .clip-segment--short { background: rgb(255 211 139 / 20%) !important; }
.clip-popover { position: relative; z-index: 8; display: grid; gap: 5px; padding: 10px; border: 1px solid #3a4556; border-radius: 8px; color: #98a2b3; background: #151b23; font-size: 11px; }
.clip-popover[hidden] { display: none; }
.clip-popover strong { overflow-wrap: anywhere; color: #f4f5f7; }
.clip-popover button { width: auto; justify-self: start; margin: 4px 0 0; padding: 7px 9px; font-size: 11px; }
.timeline-times, .show-details { display: flex; justify-content: space-between; gap: 10px; color: #98a2b3; font-size: 12px; font-variant-numeric: tabular-nums; }
.show-details { margin-top: 5px; padding-top: 10px; border-top: 1px solid #202733; }
.show-details strong { color: #dbe3ef; }
.icmp-player-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.icmp-player-actions button { margin: 0; }
.icmp-player-actions button:nth-child(2):not(:disabled) { color: #dbe3ef; background: #3a4556; }
.icmp-player-actions button:nth-child(3):not(:disabled) { color: #ffd5d2; background: #7d302f; }
.pause-icon { display: inline-block; width: 11px; height: 12px; margin-right: 2px; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65% 100%); vertical-align: -1px; }
.stop-icon { display: inline-block; width: 12px; height: 12px; margin-right: 2px; border-radius: 1px; background: currentColor; vertical-align: -1px; }
.projector-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.projector-status-grid > span { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; color: #98a2b3; background: #111722; font-size: 12px; }
.projector-status-grid strong { overflow: hidden; color: #dbe3ef; text-overflow: ellipsis; white-space: nowrap; }
.projector-inline-control, .projector-inline-control:not(:disabled) { display: flex; justify-content: space-between; gap: 8px; width: 100%; margin: 0; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; color: #98a2b3; background: #111722; font-size: 12px; font-weight: 400; }
.projector-inline-control:not(:disabled) { border-color: #3a4556; cursor: pointer; }
.projector-inline-control:not(:disabled):hover { background: #202936; }
.projector-inline-control:not(:disabled) strong { color: #72e0a2; }
.lamp-label, .dowser-label { display: inline-flex; align-items: center; gap: 7px; }
.dowser-icon { position: relative; display: inline-block; width: 23px; height: 16px; overflow: hidden; border: 1.5px solid currentColor; border-radius: 3px; color: #98a2b3; }
.dowser-icon::before, .dowser-icon::after { content: ''; position: absolute; top: 2px; bottom: 2px; width: 4px; border-radius: 1px; background: currentColor; opacity: .72; transition: width 160ms ease; }
.dowser-icon::before { left: 2px; }
.dowser-icon::after { right: 2px; }
.dowser-control.is-open .dowser-icon, .dowser-control.is-open .dowser-state { color: #72e0a2; }
.dowser-control.is-closed .dowser-icon, .dowser-control.is-closed .dowser-state { color: #f8b66a; }
.dowser-control.is-closed .dowser-icon::before, .dowser-control.is-closed .dowser-icon::after { width: calc(50% - 2.5px); }
.lamp-icon { width: 27px; height: 20px; overflow: visible; color: #667085; transform: scaleX(-1); transition: color 200ms ease, filter 200ms ease; }
.lamp-icon path { vector-effect: non-scaling-stroke; }
.lamp-rays, .lamp-base { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lamp-glass { fill: #303846; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; transition: fill 200ms ease; }
.lamp-control.is-on .lamp-icon { color: #72e0a2; filter: drop-shadow(0 0 3px rgb(114 224 162 / 90%)) drop-shadow(0 0 7px rgb(114 224 162 / 55%)); }
.lamp-control.is-on .lamp-glass { fill: #72e0a2; }
.lamp-control.is-pending .lamp-icon { animation: lamp-pending 800ms ease-in-out infinite alternate; }
@keyframes lamp-pending { to { opacity: .35; } }
.projector-macro-control { position: relative; }
.projector-macro-control > button, .projector-macro-control > button:not(:disabled) { display: flex; justify-content: space-between; gap: 8px; width: 100%; margin: 0; padding: 8px 10px; border: 1px solid #3a4556; border-radius: 8px; color: #98a2b3; background: #111722; font-size: 12px; font-weight: 400; }
.projector-macro-control > button:not(:disabled):hover { background: #202936; }
.projector-macro-control > button strong { color: #72e0a2; }
.projector-macro-control select { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; width: min(280px, 70vw); padding: 9px; border: 1px solid #485467; border-radius: 8px; color: #f4f5f7; background: #111722; box-shadow: 0 12px 30px rgb(0 0 0 / 45%); }
.storage-status { display: grid; gap: 6px; margin-top: 10px; color: #98a2b3; font-size: 11px; }
.storage-status > div:first-child { display: flex; justify-content: space-between; }
.storage-track { height: 5px; overflow: hidden; border-radius: 99px; background: #202733; }
.storage-track i { display: block; width: 0; height: 100%; background: #5084ff; transition: width 500ms linear; }
.ingest-panel { margin-top: 14px; border: 1px solid #303948; border-radius: 10px; background: #0d121a; }
.ingest-panel summary { padding: 11px 12px; color: #dbe3ef; cursor: pointer; font-size: 13px; font-weight: 700; }
.ingest-panel[open] summary { border-bottom: 1px solid #303948; }
.ingest-source { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; }
.ingest-source input, .ingest-catalog-tools input { min-width: 0; padding: 9px 10px; border: 1px solid #3a4556; border-radius: 8px; color: #f4f5f7; background: #111722; }
.ingest-source button, .ingest-source button:not(:disabled), .ingest-catalog > button, .ingest-catalog > button:not(:disabled), .ingest-current > button, .ingest-current > button:not(:disabled) { width: auto; margin: 0; padding: 9px 11px; }
.ingest-scan-status, .ingest-current { display: grid; gap: 8px; margin: 0 12px 12px; padding: 11px; border-radius: 8px; color: #98a2b3; background: #151b23; font-size: 12px; }
.ingest-scan-status[hidden], .ingest-catalog[hidden], .ingest-current[hidden], .ingest-queue[hidden] { display: none; }
.ingest-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #29313d; }
.ingest-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #5084ff, #72e0a2); transition: width 400ms linear; }
.ingest-catalog { display: grid; gap: 9px; padding: 0 12px 12px; }
.ingest-catalog-tools { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.ingest-selection-count { color: #98a2b3; font-size: 11px; }
.ingest-cpl-list { max-height: 280px; overflow: auto; border: 1px solid #29313d; border-radius: 8px; }
.ingest-cpl-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; padding: 9px; border-bottom: 1px solid #252d39; cursor: pointer; }
.ingest-cpl-item:last-child { border-bottom: 0; }
.ingest-cpl-item:hover { background: #18202b; }
.ingest-cpl-item input { margin-top: 3px; accent-color: #72e0a2; }
.ingest-cpl-item strong, .ingest-current-title { overflow-wrap: anywhere; color: #dbe3ef; font-size: 11px; }
.ingest-cpl-item small { display: block; margin-top: 3px; color: #7f8ba0; font-size: 10px; }
.ingest-cpl-item.is-present { opacity: .55; cursor: default; }
.ingest-current-head, .ingest-current-meta { display: flex; justify-content: space-between; gap: 8px; }
.ingest-current-meta { flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.ingest-percent { color: #72e0a2; font-weight: 800; }
.ingest-current > button.danger:not(:disabled) { color: #ffd5d2; background: #7d302f; justify-self: start; }
.ingest-queue { display: grid; gap: 7px; margin: 0 12px 12px; padding: 11px; border-radius: 8px; background: #111722; font-size: 11px; }
.ingest-job-list { display: grid; gap: 6px; }
.ingest-job-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; color: #98a2b3; }
.ingest-job-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icmp-show-control { position: relative; }
.icmp-show-control button, .icmp-show-control button:not(:disabled) { width: auto; margin: 0; padding: 7px 10px; color: #dbe3ef; background: #29313d; font-size: 11px; }
.icmp-show-control select { position: absolute; z-index: 25; top: calc(100% + 6px); right: 0; width: min(340px, 70vw); padding: 9px; border: 1px solid #485467; border-radius: 8px; color: #f4f5f7; background: #111722; box-shadow: 0 12px 30px rgb(0 0 0 / 45%); }
.gdc-card .device-card__top, .projector-card[data-type="barco"] .device-card__top { flex-wrap: wrap; }
.gdc-card__info, .icmp-card__info { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.gdc-card .gdc-card__info h2, .projector-card .icmp-card__info h2 { margin: 0; font-size: 16px; }
.gdc-card__info .model, .gdc-card__info .endpoint, .icmp-card__info .model, .icmp-card__info .endpoint { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.gdc-card .card-top-actions, .projector-card[data-type="barco"] .card-top-actions { margin-left: auto; }
.gdc-grid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.server-projector-grid { align-items: stretch; }
.gdc-vnc-screen { position: relative; overflow: hidden; min-height: 300px; margin-top: 18px; border: 1px solid #303948; border-radius: 10px; background: #05070a; }
.gdc-vnc-screen canvas { max-width: 100%; }
.gdc-vnc-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; color: #697386; text-align: center; }
.gdc-vnc-placeholder strong { color: #aeb7c5; }
.gdc-actions { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }
.gdc-actions button { margin-top: 12px; }
.empty-slot { min-height: 360px; margin: 0; border: 1px dashed #3a4556; border-radius: 16px; color: #98a2b3 !important; background: rgb(16 21 29 / 45%) !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.empty-slot span { width: 46px; height: 46px; border: 1px solid #485467; border-radius: 50%; display: grid; place-items: center; font-size: 25px; }
.empty-slot strong { color: #dbe3ef; font-size: 16px; }
.empty-slot small { font-weight: 400; }
.device-modal[hidden] { display: none; }
.device-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; background: rgb(0 0 0 / 72%) !important; backdrop-filter: blur(4px); }
.modal-dialog { position: relative; z-index: 1; width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 28px 90px rgb(0 0 0 / 60%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-header h2 { margin: 6px 0 0; }
.modal-close, .modal-close:not(:disabled) { width: 42px; min-width: 42px; height: 42px; margin: 0; padding: 0; color: #dbe3ef; background: #29313d; font-size: 28px; line-height: 1; }
.modal-open { overflow: hidden; }
@media (max-width: 900px) { .operations-grid, .management-panel, .device-report-chart { grid-template-columns: 1fr; } .operations-card, .empty-slot { min-height: 320px; } .dashboard-cards > .dashboard-item { flex-basis: 100% !important; } .resize-handle { display: none; } }
@media (max-width: 680px) { .device-report-page__header, .device-report-controls { grid-template-columns: 1fr; align-items: stretch; } .device-report-page__header { display: grid; } .device-report-controls button, .device-report-controls button:not(:disabled) { width: 100%; } }
@media (max-width: 520px) { .container { width: calc(100% - 24px); } .device-modal { padding: 10px; } .modal-dialog { max-height: calc(100vh - 20px); padding: 18px; } .telemetry-chart__canvas { height: 260px; } }

.public-nav { display: flex; align-items: center; gap: 18px; }
.public-nav a { color: #aeb7c5; text-decoration: none; font-size: 14px; font-weight: 700; }
.public-nav a:hover { color: #f4f5f7; }
.public-nav__button { padding: 9px 12px; border-radius: 8px; color: #07120c !important; background: #72e0a2; }
.dashboard-signout, .dashboard-signout:not(:disabled) { width: auto; height: 36px; margin: 0 0 0 8px; padding: 0 12px; border: 1px solid #3a4556; border-radius: 8px; color: #dbe3ef; background: #202733; font-size: 13px; font-weight: 800; }
.dashboard-signout:not(:disabled):hover { border-color: #ff9e96; color: #ffd5d2; background: #3c1f22; }
.language-switch { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid #303948; border-radius: 999px; background: #111722; font-size: 20px !important; line-height: 1; }
.language-switch:hover { border-color: #72e0a2; background: #18202b; }
.flag-icon { position: relative; display: inline-block; width: 24px; height: 16px; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / 20%); }
.flag-icon--vn { background: #da251d; }
.flag-icon--vn::before { position: absolute; top: 50%; left: 50%; color: #ff0; content: '★'; font-size: 10px; line-height: 1; transform: translate(-50%, -52%); }
.flag-icon--us { background: repeating-linear-gradient(to bottom, #b22234 0 1.23px, #fff 1.23px 2.46px); }
.flag-icon--us::before { position: absolute; top: 0; left: 0; width: 10px; height: 8.6px; background: #3c3b6e; content: ''; }
.flag-icon--us::after { position: absolute; top: 1px; left: 1.2px; width: 7.2px; height: 6px; background-image: radial-gradient(circle, #fff 0 0.45px, transparent 0.55px); background-size: 2.4px 2px; content: ''; }
.public-hero { min-height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); align-items: center; gap: 36px; padding: 54px 0; }
.public-hero__copy h1 { max-width: 760px; margin: 10px 0 16px; font-size: clamp(42px, 6vw, 78px); line-height: .98; letter-spacing: 0; }
.public-hero__copy p:not(.eyebrow) { max-width: 650px; color: #aeb7c5; font-size: 18px; line-height: 1.7; }
.public-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-link, .secondary-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; text-decoration: none; font-weight: 800; }
.primary-link { color: #07120c; background: #72e0a2; }
.secondary-link { color: #dbe3ef; background: #29313d; }
.public-hero__panel { display: grid; gap: 12px; padding: 18px; border: 1px solid #303948; border-radius: 8px; background: linear-gradient(180deg, rgb(22 27 37 / 94%), rgb(11 14 20 / 94%)); box-shadow: 0 28px 80px rgb(0 0 0 / 32%); }
.ops-preview__top, .ops-preview__screen { padding: 14px; border: 1px solid #303948; border-radius: 8px; background: #0f141d; }
.ops-preview__top { display: flex; justify-content: space-between; color: #98a2b3; }
.ops-preview__top strong { color: #72e0a2; }
.ops-preview__screen { display: grid; gap: 4px; position: relative; overflow: hidden; }
.ops-preview__screen::before { position: absolute; inset: 0 auto 0 0; width: 4px; content: ''; }
.ops-preview__screen span { color: #7f8ba0; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.ops-preview__screen strong { font-size: 20px; }
.ops-preview__screen small { color: #98a2b3; font-size: 13px; }
.ops-preview__screen.is-online::before { background: #72e0a2; }
.ops-preview__screen.is-warning::before { background: #ffd38b; }
.ops-preview__screen.is-offline::before { background: #ff9e96; }
.public-section { padding: 70px 0; border-top: 1px solid #29303d; }
.public-section__heading { max-width: 780px; display: block; }
.public-section h2 { margin: 8px 0 16px; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; }
.public-section p { color: #aeb7c5; line-height: 1.65; }
.feature-grid, .pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.feature-grid article, .pricing-grid article, .signup-form { padding: 20px; border: 1px solid #303948; border-radius: 8px; background: rgb(16 21 29 / 78%); }
.feature-grid span { color: #72e0a2; font-size: 13px; font-weight: 900; }
.feature-grid h3, .pricing-grid h3 { margin: 12px 0 8px; }
.feature-grid p, .pricing-grid p { margin-bottom: 0; font-size: 14px; }
.public-band { display: grid; grid-template-columns: .82fr 1.18fr; gap: 28px; align-items: start; }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.pricing-grid article strong { color: #72e0a2; }
.pricing-grid article.is-featured { border-color: #72e0a2; background: rgb(18 53 36 / 45%); }
.signup-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: start; padding-bottom: 86px; }
.signup-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.signup-form label { display: grid; gap: 8px; color: #aeb7c5; font-size: 14px; font-weight: 700; }
.signup-form input, .signup-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #3a4556; border-radius: 8px; color: #f4f5f7; background: #111722; font-size: 16px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 46px; }
.password-toggle, .password-toggle:not(:disabled) { position: absolute; top: 50%; right: 6px; width: 34px; height: 34px; margin: 0; padding: 0; border-radius: 8px; color: #aeb7c5; background: transparent; font-size: 16px; transform: translateY(-50%); }
.password-toggle:hover, .password-toggle.is-visible { color: #07120c; background: #72e0a2; }
.signup-form button { grid-column: 1 / -1; margin-top: 4px; }
.signup-form .message { grid-column: 1 / -1; }
.password-rules { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: -4px; }
.password-rules span { padding: 5px 8px; border: 1px solid #3a4556; border-radius: 999px; color: #98a2b3; background: #111722; font-size: 12px; }
.password-rules span.is-valid { border-color: #72e0a2; color: #8bf0b5; background: #123524; }
.auth-panel, .superadmin-shell { display: grid; grid-template-columns: .7fr 1fr; gap: 24px; align-items: start; padding: 54px 0; }
.auth-panel h1, .superadmin-shell h1 { margin: 8px 0 10px; font-size: 42px; line-height: 1; }
.auth-panel p { color: #aeb7c5; line-height: 1.6; }
.auth-form { align-self: start; }
.superadmin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.superadmin-form label { display: grid; gap: 8px; color: #aeb7c5; font-size: 14px; font-weight: 700; }
.superadmin-form [hidden] { display: none; }
.superadmin-form p[data-email-oauth] { grid-column: 1 / -1; margin: 0; overflow-wrap: anywhere; }
.superadmin-form input, .superadmin-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #3a4556; border-radius: 8px; color: #f4f5f7; background: #111722; font-size: 15px; }
.superadmin-form .checkbox-label { grid-template-columns: auto 1fr; align-items: center; }
.superadmin-form .checkbox-label input { width: auto; min-height: 0; accent-color: #72e0a2; }
.superadmin-form .form-actions, .superadmin-form .message { grid-column: 1 / -1; }
@media (max-width: 980px) {
  .public-hero, .public-band, .signup-section, .auth-panel, .superadmin-shell { grid-template-columns: 1fr; }
  .public-hero { min-height: 0; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .site-header .container { align-items: flex-start; padding: 14px 0; flex-direction: column; gap: 14px; }
  .public-nav { flex-wrap: wrap; gap: 10px 14px; }
  .public-hero__copy h1 { font-size: 40px; }
  .feature-grid, .pricing-grid, .signup-form, .superadmin-form { grid-template-columns: 1fr; }
}
.gateway-panel { margin-block: 16px; padding: 16px; }
.gateway-panel summary { cursor: pointer; font-weight: 700; }
.gateway-launch { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-block: 12px; }
.gdc-credentials[hidden], .gdc-credentials [hidden] { display: none; }
.gateway-panel textarea { width: 100%; font: inherit; }
.gateway-panel #gateway-pairing label { display: grid; gap: 4px; margin-block: 8px; }
.gateway-panel #gateway-pairing input { max-width: 32rem; }
.gateway-panel #gateway-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.gateway-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.gateway-row small, .gateway-status { color: #aeb7c5; }
.gateway-status--online { color: #72e0a2; font-weight: 700; }
.gateway-row .gateway-remove { width: auto; min-height: 32px; padding: 4px 12px; }
