html.theme-light{color-scheme:light;--bg:#eef2f7;--bg-soft:#f6f8fb;--panel:#ffffff;--panel-strong:#f8fafc;--border:rgba(15, 23, 42, 0.14);--border-soft:rgba(15, 23, 42, 0.10);--text:#0f172a;--muted:#475569;--muted-2:#64748b;--accent:#047857;--accent-2:#2563eb;--danger:#b91c1c;--warning:#b45309;--shadow:0 14px 34px rgba(15, 23, 42, 0.08);}html.theme-light,
html.theme-light body,
html.theme-light .client-page,
html.theme-light .viewer-page{background:radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.09), transparent 32%),
        radial-gradient(circle at 92% 4%, rgba(37, 99, 235, 0.08), transparent 30%),
        linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%)!important;color:var(--text)!important;}html.theme-light .topbar,
html.theme-light .viewer-topbar{background:rgba(255, 255, 255, 0.92)!important;border-bottom:1px solid rgba(15, 23, 42, 0.11)!important;box-shadow:0 10px 28px rgba(15, 23, 42, 0.08)!important;}html.theme-light .brand-mark{background:linear-gradient(135deg, #10b981, #2563eb)!important;box-shadow:0 10px 24px rgba(16, 185, 129, 0.20)!important;}html.theme-light .brand-title strong,
html.theme-light h1,
html.theme-light h2,
html.theme-light h3,
html.theme-light strong,
html.theme-light .client-main strong,
html.theme-light .stream-summary strong,
html.theme-light .clean-summary strong,
html.theme-light .settings-summary strong{color:#0f172a!important;}html.theme-light .brand-title span,
html.theme-light p,
html.theme-light .muted,
html.theme-light .stat-note,
html.theme-light .admin-preview-note,
html.theme-light .client-main span,
html.theme-light .summary-expiry,
html.theme-light .clean-summary span,
html.theme-light .clean-summary p,
html.theme-light .stream-summary span,
html.theme-light .settings-summary span,
html.theme-light .note-item span,
html.theme-light .workspace-card span:last-child,
html.theme-light .empty-table,
html.theme-light .empty-box,
html.theme-light .empty-state,
html.theme-light .viewer-empty,
html.theme-light .stream-empty,
html.theme-light .signed-in-box span,
html.theme-light .signed-in-box small,
html.theme-light .superadmin-row small{color:#64748b!important;opacity:1!important;}html.theme-light label,
html.theme-light .stat-label,
html.theme-light .data-box span,
html.theme-light .copy-box label,
html.theme-light th,
html.theme-light .viewer-meta-label{color:#64748b!important;opacity:1!important;}html.theme-light .kicker,
html.theme-light .streams-overview-summary .kicker,
html.theme-light .client-page .streams-overview-summary .kicker,
html.theme-light details > summary::before,
html.theme-light .manage-details > .manage-details-summary::before{color:#047857!important;text-shadow:none!important;}html.theme-light .kicker::before,
html.theme-light .streams-overview-summary .kicker::before,
html.theme-light .client-page .streams-overview-summary .kicker::before{background:#10b981!important;box-shadow:0 0 0 3px rgba(16, 185, 129, 0.13)!important;}html.theme-light .card,
html.theme-light .section-card,
html.theme-light .data-card,
html.theme-light .stat-card,
html.theme-light .workspace-card,
html.theme-light .stream-panel,
html.theme-light .viewer-settings-card,
html.theme-light .stream-card,
html.theme-light .client-panel,
html.theme-light .auth-card,
html.theme-light .auth-side,
html.theme-light .tool-box,
html.theme-light .extras-section,
html.theme-light .note-item,
html.theme-light .data-box,
html.theme-light .signed-in-box,
html.theme-light .superadmin-row{background:#ffffff!important;background-image:none!important;border-color:rgba(15, 23, 42, 0.12)!important;box-shadow:0 12px 30px rgba(15, 23, 42, 0.07)!important;}html.theme-light .card,
html.theme-light .data-card,
html.theme-light .stream-panel,
html.theme-light .client-panel,
html.theme-light .workspace-card{box-shadow:0 10px 26px rgba(15, 23, 42, 0.06)!important;}html.theme-light .client-details,
html.theme-light .details-body,
html.theme-light .stream-details,
html.theme-light .settings-body{border-top-color:rgba(15, 23, 42, 0.10)!important;}html.theme-light .copy-box,
html.theme-light .empty-box,
html.theme-light .empty-state,
html.theme-light .hint-box,
html.theme-light .table-wrap,
html.theme-light .manage-add-details,
html.theme-light .manage-viewer-card .viewer-record-row,
html.theme-light .manage-stream-card .stream-record-row,
html.theme-light .restream-target-card{background:#f8fafc!important;background-image:none!important;border-color:rgba(15, 23, 42, 0.13)!important;box-shadow:none!important;}html.theme-light .manage-add-summary,
html.theme-light .client-summary,
html.theme-light .stream-summary,
html.theme-light .clean-summary,
html.theme-light .settings-summary{color:#0f172a!important;}html.theme-light .manage-add-summary span{color:#64748b!important;}html.theme-light table{color:#0f172a!important;background:#ffffff!important;}html.theme-light th{background:#f1f5f9!important;border-bottom-color:rgba(15, 23, 42, 0.12)!important;}html.theme-light td{border-color:rgba(15, 23, 42, 0.09)!important;}html.theme-light tr:hover td{background:rgba(248, 250, 252, 0.72)!important;}html.theme-light input,
html.theme-light select,
html.theme-light textarea,
html.theme-light .manage-input,
html.theme-light .client-page select.manage-input,
html.theme-light .restream-form select,
html.theme-light .restream-form input[type="text"],
html.theme-light .restream-form input[type="password"]{color:#0f172a!important;background:#ffffff!important;border-color:rgba(15, 23, 42, 0.20)!important;box-shadow:none!important;color-scheme:light!important;}html.theme-light input:focus,
html.theme-light select:focus,
html.theme-light textarea:focus,
html.theme-light .manage-input:focus,
html.theme-light .client-page select.manage-input:focus{border-color:rgba(4, 120, 87, 0.58)!important;box-shadow:0 0 0 3px rgba(16, 185, 129, 0.16)!important;outline:none!important;}html.theme-light input::placeholder,
html.theme-light textarea::placeholder{color:#94a3b8!important;}html.theme-light .client-page select.manage-input{background-color:#ffffff!important;background-image:linear-gradient(45deg, transparent 50%, #475569 50%),
        linear-gradient(135deg, #475569 50%, transparent 50%)!important;background-position:calc(100% - 18px) 50%,
        calc(100% - 12px) 50%!important;background-size:6px 6px, 6px 6px!important;background-repeat:no-repeat!important;}html.theme-light select option,
html.theme-light .client-page select.manage-input option,
html.theme-light .restream-form select option{background:#ffffff!important;color:#0f172a!important;}html.theme-light select option:checked,
html.theme-light .client-page select.manage-input option:checked{background:#dbeafe!important;color:#0f172a!important;}html.theme-light code,
html.theme-light .copy-code{background:#eef2f7!important;color:#0f172a!important;border-color:rgba(15, 23, 42, 0.15)!important;}html.theme-light .copy-code:hover{background:#e2e8f0!important;border-color:rgba(4, 120, 87, 0.35)!important;}html.theme-light .btn,
html.theme-light button.btn,
html.theme-light a.btn{background:#ffffff!important;background-image:none!important;border-color:rgba(15, 23, 42, 0.16)!important;color:#0f172a!important;box-shadow:0 1px 2px rgba(15, 23, 42, 0.05)!important;}html.theme-light .btn:hover,
html.theme-light button.btn:hover,
html.theme-light a.btn:hover{background:#f1f5f9!important;border-color:rgba(15, 23, 42, 0.24)!important;}html.theme-light .btn-primary,
html.theme-light button.btn-primary,
html.theme-light a.btn-primary{background:#2563eb!important;border-color:#2563eb!important;color:#ffffff!important;box-shadow:0 8px 18px rgba(37, 99, 235, 0.16)!important;}html.theme-light .btn-primary:hover,
html.theme-light button.btn-primary:hover,
html.theme-light a.btn-primary:hover{background:#1d4ed8!important;border-color:#1d4ed8!important;color:#ffffff!important;}html.theme-light .btn-save,
html.theme-light button.btn-save,
html.theme-light a.btn-save{background:#ecfdf5!important;border-color:rgba(16, 185, 129, 0.42)!important;color:#047857!important;box-shadow:none!important;}html.theme-light .btn-save:hover,
html.theme-light button.btn-save:hover,
html.theme-light a.btn-save:hover{background:#d1fae5!important;border-color:rgba(4, 120, 87, 0.48)!important;color:#065f46!important;}html.theme-light .btn-danger,
html.theme-light button.btn-danger,
html.theme-light a.btn-danger{background:#fee2e2!important;border-color:rgba(239, 68, 68, 0.32)!important;color:#991b1b!important;box-shadow:none!important;}html.theme-light .btn-danger:hover,
html.theme-light button.btn-danger:hover,
html.theme-light a.btn-danger:hover{background:#fecaca!important;border-color:rgba(185, 28, 28, 0.40)!important;color:#7f1d1d!important;}html.theme-light .btn-preview,
html.theme-light button.btn-preview,
html.theme-light a.btn-preview{background:#fffbeb!important;border-color:rgba(217, 119, 6, 0.34)!important;color:#92400e!important;}html.theme-light .btn-preview:hover,
html.theme-light button.btn-preview:hover,
html.theme-light a.btn-preview:hover{background:#fef3c7!important;border-color:rgba(180, 83, 9, 0.42)!important;color:#78350f!important;}html.theme-light .pill,
html.theme-light .badge,
html.theme-light .restream-enabled-state{background:#f1f5f9!important;border-color:rgba(15, 23, 42, 0.14)!important;color:#475569!important;}html.theme-light .pill.live,
html.theme-light .badge-ok,
html.theme-light .public-link-on,
html.theme-light .stream-onair,
html.theme-light .restream-status-online{background:#dcfce7!important;border-color:rgba(22, 163, 74, 0.30)!important;color:#047857!important;}html.theme-light .badge-blue,
html.theme-light .public-link-active,
html.theme-light .restream-status-starting{background:#dbeafe!important;border-color:rgba(37, 99, 235, 0.28)!important;color:#1d4ed8!important;}html.theme-light .badge-purple{background:#ede9fe!important;border-color:rgba(124, 58, 237, 0.26)!important;color:#6d28d9!important;}html.theme-light .badge-danger,
html.theme-light .stream-onair-danger,
html.theme-light .restream-status-error{background:#fee2e2!important;border-color:rgba(239, 68, 68, 0.30)!important;color:#991b1b!important;}html.theme-light .stream-offline,
html.theme-light .public-link-off,
html.theme-light .restream-status-offline,
html.theme-light .restream-status-blocked{background:#f1f5f9!important;border-color:rgba(15, 23, 42, 0.14)!important;color:#475569!important;}html.theme-light .restream-status-warning,
html.theme-light .restream-status-waiting{background:#fef3c7!important;border-color:rgba(217, 119, 6, 0.32)!important;color:#92400e!important;}html.theme-light .alert-ok{color:#047857!important;background:#ecfdf5!important;border-color:rgba(16, 185, 129, 0.32)!important;}html.theme-light .alert-error{color:#991b1b!important;background:#fef2f2!important;border-color:rgba(239, 68, 68, 0.30)!important;}html.theme-light .danger-zone{background:#fff7f7!important;border-color:rgba(239, 68, 68, 0.18)!important;}html.theme-light .restream-route-radio{border-color:rgba(4, 120, 87, 0.55)!important;background:#ffffff!important;}html.theme-light .restream-route-radio:checked{border-color:rgba(4, 120, 87, 0.90)!important;background:radial-gradient(circle at center, #047857 0 38%, transparent 42%),
        #ffffff!important;}html.theme-light .restream-route-radio:focus,
html.theme-light .client-page input[type="checkbox"][name="restream_enabled"]:focus{outline:2px solid rgba(16, 185, 129, 0.35)!important;outline-offset:2px!important;}html.theme-light .restream-matrix-apply{background:#ecfdf5!important;border-color:rgba(16, 185, 129, 0.42)!important;color:#047857!important;box-shadow:none!important;}html.theme-light .restream-matrix-apply:hover{background:#d1fae5!important;border-color:rgba(4, 120, 87, 0.48)!important;color:#065f46!important;}html.theme-light .client-page input[type="checkbox"][name="restream_enabled"],
html.theme-light .client-page .stream-panel .restream-enable-line-client input[type="checkbox"]{accent-color:#047857!important;}html.theme-light .client-page .restream-target-setup-card .manage-table tbody tr:not(:last-child) td::after{background:linear-gradient(
        90deg,
        transparent,
        rgba(15, 23, 42, 0.12),
        rgba(16, 185, 129, 0.22),
        rgba(15, 23, 42, 0.08),
        transparent
    )!important;opacity:1!important;}html.theme-light .client-page .nav-flash,
html.theme-light .client-page .flash-toast-ok{color:#047857!important;background:rgba(236, 253, 245, 0.98)!important;border-color:rgba(16, 185, 129, 0.34)!important;box-shadow:0 12px 28px rgba(15, 23, 42, 0.12)!important;}html.theme-light .client-page .nav-flash-error,
html.theme-light .client-page .flash-toast-error{color:#991b1b!important;background:rgba(254, 242, 242, 0.98)!important;border-color:rgba(239, 68, 68, 0.34)!important;box-shadow:0 12px 28px rgba(15, 23, 42, 0.12)!important;}html.theme-light .player-frame,
html.theme-light .admin-stream-preview,
html.theme-light .admin-stream-preview-video{background:#000000!important;}html.theme-light .admin-stream-preview{border-color:rgba(15, 23, 42, 0.18)!important;}html.theme-light .auth-side{background:radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.13), transparent 35%),
        radial-gradient(circle at 90% 20%, rgba(37, 99, 235, 0.12), transparent 38%),
        #ffffff!important;}html.theme-light .auth-side::before{border-color:rgba(15, 23, 42, 0.08)!important;}html.theme-light .auth-side::after{background:radial-gradient(circle, rgba(16, 185, 129, 0.14), transparent 65%)!important;}@media (max-width: 760px){html.theme-light .topbar{background:rgba(255, 255, 255, 0.96)!important;}}


/* Edge live status badges — r22 step 5E */
html.theme-light .badge-warning,
html.theme-light .edge-status-stale {
    background: #fef3c7 !important;
    border-color: rgba(217, 119, 6, 0.28) !important;
    color: #92400e !important;
}
html.theme-light .badge-muted,
html.theme-light .edge-status-disabled,
html.theme-light .edge-status-unknown {
    background: #f3f4f6 !important;
    border-color: rgba(107, 114, 128, 0.22) !important;
    color: #4b5563 !important;
}
html.theme-light .edge-status-online {
    background: #d1fae5 !important;
    border-color: rgba(5, 150, 105, 0.24) !important;
    color: #047857 !important;
}
html.theme-light .edge-status-offline,
html.theme-light .edge-status-error {
    background: #fee2e2 !important;
    border-color: rgba(220, 38, 38, 0.24) !important;
    color: #b91c1c !important;
}
