:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  color: #fbf5ff;
  background: #130f20;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 80% 0, #332048, transparent 55%); }
header, main { width: min(960px, calc(100% - 40px)); margin-inline: auto; }
header { padding-block: 25px; border-bottom: 1px solid #3d2d50; }
.brand { font-size: 1.4rem; font-weight: 850; color: #f491dd; text-decoration: none; }
.brand span { color: #80e8e8; }
main { padding-block: 36px 64px; }
h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); line-height: 1.1; margin: 0 0 12px; }
h2 { font-size: 1.25rem; margin: 0 0 16px; }
h3 { overflow-wrap: anywhere; margin: 0 0 16px; }
p, li { color: #dfd4eb; }
.layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; gap: 20px; margin-top: 26px; }
.panel { min-width: 0; border: 1px solid #4b385e; border-radius: 18px; background: #221932; padding: clamp(16px, 4vw, 27px); }
.guide ol { padding-inline-start: 1.4em; }
.guide li { margin-bottom: 12px; }
.guide li::marker { color: #8eede8; font-weight: 700; }
.guide p:last-child { margin-bottom: 0; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 620; }
input, select, button { font: inherit; min-height: 44px; border-radius: 10px; }
input, select { width: 100%; color: inherit; background: #120d1e; border: 1px solid #78648e; padding: 9px 12px; }
button { padding: 10px 14px; border: 1px solid transparent; color: #fff; background: #8e2584; font-weight: 720; cursor: pointer; }
button:disabled { opacity: .58; cursor: default; }
.secondary { background: #2f2242; border-color: #806a98; }
a { color: #91eee9; }
:focus-visible { outline: 2px solid #93eee9; outline-offset: 3px; }
.register { display: inline-block; margin-top: 16px; }
.studio-heading, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.studio-heading { justify-content: space-between; margin-bottom: 18px; }
.studio-heading h2 { margin: 0; }
.state { color: #91eee9; margin-top: 0; }
.end, .refresh, #endpoint-field, #stream-key-field { margin-top: 16px; }
#feedback { margin-block: 20px 0; padding: 10px 14px; color: #ffdfa7; border-left: 3px solid #ffca6a; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 700px) { .layout { grid-template-columns: 1fr; } }
