:root {
  color-scheme: dark;
  --base: #09121c;
  --card: #101d2a;
  --line: #2a3c4e;
  --text: #f1f6fb;
  --muted: #aebfd0;
  --accent: #79d7ff;
  --hover: #a6e6ff;
  --green: #92e1b8;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--base); color: var(--text); font-size: 1rem; }
button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.frame { max-width: 1280px; width: calc(100% - 88px); margin-inline: auto; }
.top { border-bottom: 1px solid #263748; background: #0d1824; }
.top-inner { min-height: 70px; display: flex; align-items: center; gap: 44px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 770; letter-spacing: -.045em; font-size: 1.55rem; white-space: nowrap; }
.brand img { height: auto; }
.brand-xr { color: #becbd5; }
nav { display: flex; align-self: stretch; gap: 27px; }
nav a { display: grid; place-items: center; text-decoration: none; color: var(--muted); white-space: nowrap; font-size: .94rem; }
nav a:hover, nav .nav-current { color: var(--text); }
.nav-current { box-shadow: inset 0 -2px var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; background: #192a3a; border: 1px solid #34495d; border-radius: 999px; color: #d2deea; font-size: .875rem; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #94a7b8; }
.top .pill { margin-left: auto; }
.pill.online i { background: var(--green); }
.pill.streaming i { background: #ffa3b1; box-shadow: 0 0 10px #ffa3b177; }
h1, h2, h3, p { margin: 0; }
.card { border: 1px solid var(--line); background: var(--card); border-radius: 18px; min-width: 0; }
.launch { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 252px; margin: 28px 0 17px; background: linear-gradient(112deg, #102539 7%, #0f253c 54%, #0c1a2a); border-color: #345572; }
.launch-inner { position: relative; padding: 30px clamp(22px, 3.4vw, 45px); width: min(100%, 620px); }
.launch h1 { font-size: clamp(2rem, 4.05vw, 3.55rem); line-height: 1.07; letter-spacing: -.057em; font-weight: 750; }
.launch p { color: #c2d3e2; margin-top: 10px; line-height: 1.5; }
.launch #obs-message { font-size: .875rem; color: #adbed0; max-width: 465px; }
.launch-link { display: inline-block; margin-top: 9px; color: var(--accent); font-size: .875rem; text-underline-offset: 3px; }
.launch .obs-actions { margin-top: 22px; gap: 10px; }
.launch .obs-actions .button { min-width: 121px; }
.launch-art { position: absolute; z-index: -1; right: 0; top: 50%; width: min(52%, 590px); height: auto; transform: translateY(-50%); pointer-events: none; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(315px, 1fr); gap: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; min-height: 60px; gap: 10px; padding: 14px 20px; }
h2 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.018em; }
.pill.compact { padding: 4px 9px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.monitor-card { display: flex; flex-direction: column; }
.monitor { position: relative; isolation: isolate; overflow: hidden; min-height: 265px; flex: 1; aspect-ratio: 16/9; border-block: 1px solid #2b4056; background: #0b1520; }
.idle { position: absolute; inset: 0; text-align: center; display: grid; align-content: center; justify-items: center; gap: 24px; padding: 38px 25px; background: radial-gradient(ellipse at 50% 40%, #1e476088, transparent 68%), linear-gradient(130deg, #101f2e, #0b1520); }
.idle::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, #80c9ff14 0 1px, transparent 1px 37px), repeating-linear-gradient(0deg, #80c9ff14 0 1px, transparent 1px 37px); mask-image: radial-gradient(ellipse at center, #000 30%, #0003 95%); }
.viewfinder { position: absolute; inset: 19px; opacity: .75; pointer-events: none; }
.viewfinder span { position: absolute; width: 18px; height: 18px; border: 1px solid #87cfff8c; }
.viewfinder span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.viewfinder span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.viewfinder span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.viewfinder span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.reticle { width: 68px; height: 49px; border: 1.5px solid #79c5f0; border-radius: 12px; display: grid; place-items: center; position: relative; box-shadow: 0 0 34px #6acfff25, inset 0 0 21px #6acfff24; }
.reticle::after { content: ''; width: 23px; height: 8px; position: absolute; bottom: -9px; border: 1px solid #79c5f0; border-top: 0; border-radius: 0 0 4px 4px; }
.reticle span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 15px #7fd1ff66; }
.idle-copy { display: grid; gap: 7px; }
.idle-copy strong { font-size: 1.125rem; }
.idle-copy span { color: #b2c5d8; font-size: .9375rem; }
#preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #090a0e; }
.monitor.vertical #preview { inset: 0 auto; left: 50%; width: auto; max-width: 100%; aspect-ratio: 9/16; transform: translateX(-50%); object-fit: cover; }
.monitor.vertical .viewfinder { width: min(35%, 190px); margin: auto; }
.monitor-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 13px 20px; }
.monitor-foot p, .guide p, footer { color: var(--muted); line-height: 1.5; }
.monitor-foot p { font-size: .9375rem; }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; padding: 8px 14px; border: 1px solid transparent; border-radius: 9px; font-size: .9375rem; font-weight: 650; line-height: 1.25; cursor: pointer; text-decoration: none; color: var(--text); white-space: nowrap; }
.button.primary { background: var(--accent); color: #092133; }
.button.primary:hover:not(:disabled) { background: var(--hover); }
.button.secondary { background: #1b3042; border-color: #3a5369; }
.button.secondary:hover:not(:disabled) { background: #28475f; border-color: #5e89a7; }
.button:disabled { color: #b3c1ce; background: #203242; border-color: #364b5c; cursor: default; }
#live:disabled + #connect { background: var(--accent); color: #092133; border-color: var(--accent); }
#live:disabled + #connect:hover { background: var(--hover); }
.button.bare { background: transparent; color: var(--accent); }
.button.bare:hover { background: #21394f; }
.fields { display: grid; gap: 16px; padding: 0 20px 18px; }
.fields fieldset { border: 0; padding: 0; min-width: 0; margin: 0; }
.fields legend { padding: 0; margin-bottom: 7px; }
.field { display: grid; gap: 7px; }
.fields legend, .field { font-size: .9375rem; font-weight: 600; color: #e4eef8; }
.field input { width: 100%; min-width: 0; padding: 9px 11px; height: 44px; border-radius: 8px; border: 1px solid #364b5f; background: #0c1723; color: var(--text); }
.field input::placeholder { color: #a4b5c6; opacity: 1; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice { position: relative; min-width: 0; }
.choice input { opacity: 0; position: absolute; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span { display: flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px; padding: 5px 8px; color: #cbd8e5; background: #172737; border: 1px solid #364b5f; border-radius: 8px; font-size: .9rem; font-weight: 650; }
.choice input:hover + span { border-color: #7aaccb; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice input:checked + span { border-color: #79c7f0; color: #f2f9ff; background: #1e4059; }
.platform-icon { display: block; flex: none; width: 32px; height: 32px; object-fit: contain; border-radius: 4px; }
.ratio { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.ratio.wide { width: 15px; height: 10px; }
.ratio.tall { width: 9px; height: 14px; }
.detail-actions, .obs-actions, .dialog-actions, .preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-actions { justify-content: space-between; }
.saved { color: var(--green); font-size: .875rem; text-align: right; }
.setup { margin-top: 39px; scroll-margin-top: 20px; }
.setup > h2 { font-size: 1.5rem; margin-bottom: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide { padding: 19px; display: flex; flex-direction: column; gap: 10px; }
.guide h3 { font-size: 1rem; }
.guide a { margin-top: auto; align-self: flex-start; color: var(--accent); text-underline-offset: 4px; font-size: .9375rem; }
.headset-guide { margin-top: 16px; scroll-margin-top: 20px; }
footer { margin: 24px 0 34px; font-size: .9375rem; }
dialog { width: min(470px, calc(100% - 34px)); padding: 24px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 15px; }
dialog::backdrop { background: #050a10bd; }
dialog p { color: var(--muted); margin: 10px 0 14px; line-height: 1.5; }
dialog .field { margin-bottom: 12px; }
.dialog-note { font-size: .875rem; }
.dialog-actions { justify-content: flex-end; margin-top: 18px; }
@media (max-width: 960px) {
  .frame { width: calc(100% - 48px); }
  .launch-art { opacity: .65; right: -18px; }
  .launch-inner { width: min(100%, 470px); }
}
@media (max-width: 740px) {
  .frame { width: calc(100% - 28px); }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .top-inner { gap: 22px; }
  nav { gap: 14px; }
  .launch { margin-top: 18px; min-height: 0; }
  .launch-art { right: -10%; width: 67%; opacity: .26; }
  .launch-inner { padding-block: 24px; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
  .top-inner { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding-top: 9px; }
  .top .pill { grid-column: 2; grid-row: 1; }
  .brand { font-size: 1.22rem; gap: 4px; }
  .brand img { width: 40px; }
  .top nav { grid-column: 1 / -1; grid-row: 2; min-height: 40px; gap: 23px; }
  nav a { font-size: .875rem; }
  .monitor-foot { align-items: stretch; flex-direction: column; }
  .preview-actions { justify-content: space-between; }
  .monitor { min-height: 235px; }
}
