* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #101318; color: #edf0f4; }
body { margin: 0; min-height: 100vh; }
.panel { width: min(28rem, calc(100% - 2rem)); margin: 12vh auto 0; padding: 2rem; border: 1px solid #2b3440; border-radius: 1rem; background: #171d25; box-shadow: 0 1.5rem 4rem #0005; }
.eyebrow { margin: 0 0 .5rem; color: #91a2b7; font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
h1 { margin: 0; font-size: 1.6rem; }
.panel > p:not(.eyebrow) { color: #b8c1cc; line-height: 1.5; }
label { display: block; margin: 1.25rem 0 .45rem; font-size: .9rem; }
input { width: 100%; min-height: 2.8rem; padding: .7rem .8rem; border: 1px solid #3a4553; border-radius: .55rem; background: #10151b; color: #f5f7fa; font: inherit; }
button { min-height: 2.7rem; padding: .65rem 1rem; border: 0; border-radius: .55rem; background: #367cf6; color: white; font: inherit; font-weight: 650; cursor: pointer; }
.panel button { width: 100%; margin-top: 1rem; }
button:focus-visible, input:focus-visible { outline: 3px solid #94b8ff; outline-offset: 2px; }
.notice { padding: .7rem .8rem; border: 1px solid #884a4a; border-radius: .5rem; color: #ffcccc !important; }
.browser-shell { display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid #2b3440; background: #171d25; }
.topbar h1 { font-size: 1.15rem; }
.secondary { border: 1px solid #3a4553; background: transparent; }
.workspace { width: min(90rem, calc(100% - 2rem)); margin: 1.5rem auto; }
.browser-panel { overflow: hidden; border: 1px solid #303a47; border-radius: .8rem; background: #0b0e12; }
.browser-toolbar { display: flex; align-items: center; gap: .6rem; min-height: 2.8rem; padding: 0 .9rem; border-bottom: 1px solid #303a47; color: #aeb8c4; font-size: .85rem; }
.state-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #e0a94d; }
.remote-browser { display: grid; min-height: min(70vh, 50rem); place-items: center; padding: 2rem; }
.empty-state { max-width: 34rem; text-align: center; }
.empty-state h2 { font-size: 1.15rem; }
.empty-state p, .privacy-note { color: #9eabb9; line-height: 1.55; }
.privacy-note { margin: .9rem .2rem; font-size: .85rem; }
@media (max-width: 600px) { .topbar { padding: .8rem 1rem; } .workspace { width: calc(100% - 1rem); margin: .5rem auto; } .remote-browser { min-height: 55vh; padding: 1rem; } }
.browser-controls { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .7rem; border-bottom: 1px solid #303a47; background: #151b22; }
.browser-controls form { display: flex; flex: 1; min-width: 12rem; gap: .5rem; }
.browser-controls input { min-width: 0; min-height: 2.6rem; }
.browser-controls button { flex: 0 0 auto; min-height: 2.6rem; }
.remote-browser { position: relative; padding: 0; aspect-ratio: 16 / 9; min-height: 20rem; max-height: 70vh; overflow: hidden; background: #000; }
.empty-state { grid-area: 1 / 1; padding: 2rem; }
#remote-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; touch-action: none; outline: none; }
#remote-video[hidden] { display: none; }
.state-dot[data-state="online"] { background: #43c98b; }
.state-dot[data-state="error"] { background: #e45d5d; }
.state-dot[data-state="busy"] { background: #e0a94d; }
.notice[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
