:root {
	color-scheme: dark;
	--background: #0d0e12;
	--panel: #171820;
	--panel-2: #20212b;
	--line: #30313e;
	--text: #f0f0f6;
	--muted: #9698a8;
	--accent: #ff2e93;
	--green: #23d17c;
	--red: #ff4d73;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
header { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand, .session, .actions, .title-row, .save-row { display: flex; align-items: center; gap: 12px; }
.brand span { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
main { max-width: 1240px; margin: 0 auto; padding: 22px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.login { max-width: 420px; margin: 9vh auto; }
h1 { margin: 0 0 8px; font-size: 24px; }
h2 { margin: 0 0 14px; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
p { color: var(--muted); }
label { display: block; color: var(--muted); font-size: 13px; margin: 12px 0 5px; }
input, select { width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); font: inherit; }
input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; margin: 0; }
button { border: 0; border-radius: 8px; padding: 10px 16px; color: white; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .45; cursor: wait; }
.primary { background: var(--accent); }
.secondary { background: transparent; border: 1px solid var(--line); }
.start { background: var(--green); color: #052216; }
.stop { background: var(--red); }
.segments { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.segments button { border-radius: 0; background: var(--panel-2); color: var(--muted); }
.segments button.active { background: var(--accent); color: white; }
.message { color: var(--muted); font-size: 12px; }
.message.error { color: var(--red); }
.overlay-preview { max-width: 360px; width: 100%; margin-top: 14px; background: black; border: 1px solid var(--line); border-radius: 8px; }
.badge { padding: 5px 11px; border-radius: 999px; background: #454652; font-size: 12px; font-weight: 800; }
.badge.healthy { background: var(--green); color: #052216; }
.badge.fallback { background: #ffc857; color: #2a2100; }
.badge.failed { background: var(--red); }
.title-row { justify-content: space-between; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 12px; }
dt { color: var(--muted); } dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
video { width: 100%; background: black; border-radius: 9px; aspect-ratio: 16/9; }
.hidden { display: none !important; }
@media (max-width: 900px) { .workspace { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } main { padding: 12px; } }
