:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #080d18; color: #f6f8ff; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 15% 0%, #213a6d66 0, transparent 34rem), radial-gradient(circle at 90% 92%, #107b6555 0, transparent 37rem), #080d18; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .34; background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.app-shell { width: min(96vw, 2200px); margin: 0 auto; padding: 28px 0 48px; }
.auth-shell { min-height: calc(100vh - 76px); display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); padding: 46px; text-align: center; border: 1px solid #a8c3f02b; border-radius: 26px; background: linear-gradient(145deg, #19243ddd, #101827e8); box-shadow: 0 30px 90px #00000066, inset 0 1px #ffffff12; backdrop-filter: blur(18px); }
.brand-orbit { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 27px; border: 1px solid #91b5ff88; border-radius: 20px; background: linear-gradient(135deg, #8ab3ff, #4b67e6); box-shadow: 0 12px 28px #4364d677; transform: rotate(-10deg); }
.brand-orbit span { width: 20px; height: 20px; border: 3px solid #ffffff; border-radius: 50%; box-shadow: 9px 0 0 -5px #ffffff, -9px 0 0 -5px #ffffff; }
.eyebrow { margin: 0 0 9px; color: #93b8ff; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.04; letter-spacing: -.055em; }
.subtitle { margin: 14px 0 0; color: #aebbd1; font-size: .98rem; line-height: 1.55; }
.login { display: grid; gap: 10px; margin-top: 31px; text-align: left; }
.login label { color: #d7e2f6; font-size: .83rem; font-weight: 700; }
.login input, button { border: 0; border-radius: 11px; font: inherit; }
.login input { width: 100%; padding: 14px; color: #f6f8ff; outline: 1px solid #4d6288; background: #090f1c; transition: outline-color .2s, box-shadow .2s; }
.login input:focus { outline: 2px solid #83aaff; box-shadow: 0 0 0 4px #608cf229; }
button { width: fit-content; padding: 11px 14px; color: #08111f; font-weight: 800; cursor: pointer; background: linear-gradient(135deg, #a0c2ff, #6f94ed); transition: transform .15s, filter .15s; }
button:hover { filter: brightness(1.08); transform: translateY(-1px); }
#login-button { width: 100%; display: flex; justify-content: center; gap: 10px; padding: 13px; margin-top: 5px; }
#login-button span { font-size: 1.2rem; line-height: .8; }
.auth-footnote, .status { color: #9eb0ca; font-size: .83rem; }
.auth-footnote { margin: 26px 0 0; }
.auth-footnote i, .status i, .connection-chip i { display: inline-block; width: .56rem; height: .56rem; margin-right: .4rem; border-radius: 50%; background: #55dfa0; box-shadow: 0 0 12px #55dfa077; }
.workspace-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 4px 0 22px; }
.connection-chip { display: flex; align-items: center; padding: 10px 12px; color: #c8d8f1; font-size: .82rem; white-space: nowrap; border: 1px solid #486386; border-radius: 999px; background: #101a2bd9; }
.connection-chip i { margin-bottom: 1px; }
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.screens.focus-mode { grid-template-columns: minmax(0, 1fr); max-width: 1800px; }
.hidden-monitor { display: none; }
.screens article { position: relative; overflow: hidden; border: 1px solid #3b506d; border-radius: 16px; background: #111a2a; box-shadow: 0 15px 38px #00000035; }
.screens header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: #182338; }
.screens label { color: #d2e0f9; font-size: .85rem; font-weight: 700; }
.screen-view { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #060a10; touch-action: none; }
.remote-stage { position: absolute; inset: 0; transform-origin: center; }
.screens img { display: block; width: 100%; height: 100%; object-fit: contain; outline: none; cursor: default; background: #060a10; touch-action: none; }
.remote-video { display: none; width: 100%; height: 100%; object-fit: contain; background: #060a10; }
.remote-video.active { display: block; }
.screens img.video-active { position: absolute; inset: 0; display: block; opacity: 0; }
.monitor-panel.control-active img { cursor: none; }
.remote-cursor { position: absolute; z-index: 2; width: 16px; height: 23px; pointer-events: none; transform: translate(-2px, -2px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 44'%3E%3Cpath d='M3 2v35l9-9 7 13 6-3-7-13h12z' fill='white' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 1px 1px #000); }
.screens img:focus { box-shadow: inset 0 0 0 3px #8bafff; }
.toolbar, .touch-controls { border: 1px solid #3c506c; border-radius: 15px; background: linear-gradient(140deg, #172237ed, #101827ed); box-shadow: 0 13px 36px #0000002b; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; }
.toolbar strong, .toolbar span, .touch-controls strong, .touch-controls span { display: block; }
.toolbar span, .touch-controls span { margin-top: 3px; color: #a8b6cb; font-size: .82rem; }
.toolbar-buttons { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.toolbar button, .expand, .touch-actions button { padding: 8px 10px; color: #e9f1ff; font-size: .81rem; background: #263752; }
.toolbar button.danger { background: #6b3442; color: #fff3f5; }
.expand { flex: 0 0 auto; border: 1px solid #5b7192; }
.touch-controls { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; margin-top: 14px; padding: 14px 15px; }
.sensitivity { align-self: center; color: #d2dff3; font-size: .84rem; white-space: nowrap; }
.sensitivity input { vertical-align: middle; accent-color: #84aafd; }
.touch-actions { display: flex; gap: 7px; }
.touchpad { grid-column: 1 / -1; min-height: 100px; display: grid; place-items: center; color: #b5c5dd; user-select: none; border: 1px dashed #6684ae; border-radius: 10px; background: #0a111e; touch-action: none; }
.status { margin: 24px 0 14px; }
button.secondary { color: #d9e6fb; border: 1px solid #526b8e; background: transparent; }
article:fullscreen { display: grid; place-items: center; border: 0; border-radius: 0; background: #05080e; }
article:fullscreen header { position: fixed; z-index: 4; top: 8px; right: 8px; left: 8px; border-radius: 9px; opacity: .2; transition: opacity .2s; background: #151f31; }
article:fullscreen header:hover { opacity: 1; }
article:fullscreen .screen-view { width: 100vw; height: 100vh; aspect-ratio: auto; }
@media (min-width: 851px) { .touch-controls { max-width: 720px; } }
@media (max-width: 850px) { .app-shell { width: min(94vw, 2200px); padding-top: 18px; } .auth-card { padding: 34px 24px; } .workspace-header, .toolbar { align-items: start; flex-direction: column; } .connection-chip { white-space: normal; } .screens { grid-template-columns: 1fr; } .toolbar-buttons { justify-content: start; } .touch-controls { grid-template-columns: 1fr; } .sensitivity { white-space: normal; } }
