* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: dark; --bg: #0b1520; --panel: #142330; --line: #2b4150; --text: #eff7f3; --muted: #9cadb7; --mint: #91e1bb; --teal: #50c99d; --gold: #ecc38b; }
html { height: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, canvas:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.eyebrow { color: var(--mint); font-size: 11px; font-weight: 760; letter-spacing: .22em; }
.brand-mark { width: 49px; height: 49px; flex-shrink: 0; display: inline-grid; place-items: center; color: #0b2729; background: linear-gradient(145deg,#b4edc8,#58cdab); border: 1px solid rgba(238,255,247,.5); border-radius: 16px; box-shadow: 0 8px 30px rgba(87,204,162,.16); }
.brand-mark.small { width: 32px; height: 32px; border-radius: 10px; }
.brand-glyph { font-size: 27px; font-weight: 800; line-height: 1; transform: translateY(-1px); }
.brand-mark.small .brand-glyph { font-size: 18px; }
/* Login */
.auth-page { position: relative; isolation: isolate; min-height: 100dvh; padding: 40px 20px 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.auth-page::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 50% 50% at 48% 42%, #214f48 0%, #112b2f 44%, #0b1520 100%); }
.auth-decoration { position: absolute; width: min(920px,110vw); aspect-ratio: 1; left: 50%; top: 48%; transform: translate(-50%,-50%); border: 1px solid rgba(177,241,213,.075); border-radius: 50%; z-index: -1; box-shadow: 0 0 0 100px rgba(169,242,211,.026), 0 0 0 200px rgba(169,242,211,.017), 0 0 0 300px rgba(169,242,211,.012); pointer-events: none; }
.auth-card { width: 100%; max-width: 468px; padding: 44px 46px 36px; background: linear-gradient(148deg,rgba(32,59,62,.96),rgba(17,33,45,.98) 58%); border: 1px solid rgba(183,235,213,.19); border-radius: 25px; box-shadow: 0 35px 110px rgba(1,11,17,.48), inset 0 1px rgba(255,255,255,.06); }
.auth-card .brand-mark { margin-bottom: 30px; }
.auth-card h1 { margin: 15px 0 14px; font-size: clamp(29px, 5vw, 37px); font-weight: 650; line-height: 1.14; letter-spacing: -.045em; }
.auth-card h1 em { font-style: normal; color: var(--mint); }
.auth-description { color: #b1c3c7; line-height: 1.58; font-size: 14px; margin: 0 0 32px; }
.auth-card label { display: block; font-size: 13px; font-weight: 640; margin-bottom: 9px; }
.password-field { position: relative; }
.password-field input { width: 100%; height: 51px; color: #f7fbf8; background: #0e202b; border: 1px solid #3b595d; border-radius: 10px; padding: 0 48px 0 15px; font-size: 15px; outline: none; transition: border-color .15s,box-shadow .15s; }
.password-field input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(144,226,189,.12); }
.password-field input::placeholder { color: #799098; }
.password-field button { position: absolute; right: 8px; top: 7px; width: 37px; height: 37px; border: 0; background: transparent; color: #8fa9a9; font-size: 20px; }
.password-field button:hover { color: var(--mint); }
.form-error { color: #ffd1c0; background: #583330; padding: 10px 12px; border-radius: 8px; font-size: 12px; line-height: 1.4; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 16px; padding: 0 17px; height: 51px; border: 1px solid #abe4bb; border-radius: 10px; font-size: 14px; font-weight: 760; background: #a2e8ba; color: #092526; transition: transform .15s, background .15s; }
.primary-button:not(:disabled):hover { transform: translateY(-2px); background: #c2f3d0; }
.primary-button span { font-size: 22px; font-weight: 500; }
.auth-footer { margin-top: 30px; padding-top: 19px; border-top: 1px solid rgba(196,234,222,.13); display: flex; align-items: center; gap: 8px; font-size: 11px; color: #a7bfc0; }
.secure-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.auth-footnote { color: #8dabac; font-size: 11px; letter-spacing: .05em; margin-top: 25px; }
/* App */
.app { min-height: 100dvh; background: radial-gradient(ellipse 68% 380px at 50% 0%, #173737 0%, transparent 100%), #0d1924; }
.topbar { min-height: 75px; padding: 0 max(26px, calc((100vw - 1480px)/2)); display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid #29414a; background: rgba(10,24,33,.62); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 740; font-size: 17px; letter-spacing: -.03em; }
.brand-divider { width: 1px; height: 18px; background: #49605e; margin-left: 7px; }
.brand-caption { color: #b6cac9; font-size: 12px; font-weight: 520; letter-spacing: 0; }
.top-actions { display: flex; align-items: center; gap: 17px; }
.pill { display: flex; align-items: center; gap: 8px; color: #d8ecdf; background: #1d3a36; border: 1px solid #386659; border-radius: 99px; padding: 8px 12px; white-space: nowrap; font-size: 11px; font-weight: 680; }
.pill-dot, .live-indicator { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #81e1ad; box-shadow: 0 0 0 3px rgba(129,225,173,.12); }
.pill.waiting { color: #f0d5a6; background: #383629; border-color: #61523d; }
.pill.waiting .pill-dot { background: #edc887; box-shadow: 0 0 0 3px rgba(237,200,135,.13); }
.pill.offline { color: #ffd3be; background: #462d2e; border-color: #72474b; }
.pill.offline .pill-dot { background: #ff9b82; box-shadow: none; }
.ghost-button { background: transparent; border: 0; color: #b6ccc8; font-size: 12px; padding: 10px 0; }
.ghost-button:hover { color: white; }
.dashboard { max-width: 1518px; padding: 39px 26px 30px; margin: 0 auto; }
.heading { display: flex; align-items: end; justify-content: space-between; padding: 0 0 28px; }
.heading h1 { font-size: clamp(28px,3.1vw,41px); font-weight: 650; letter-spacing: -.045em; margin: 9px 0 5px; }
.heading-accent { color: var(--mint); }
.heading p { margin: 0; color: #aabfc2; font-size: 13px; }
.heading-art { font-size: 11px; color: #809999; letter-spacing: .21em; padding-bottom: 4px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 20px; align-items: start; }
.screen-card, .control-panel { background: linear-gradient(135deg, #192d36, #142630 64%, #172d35); border: 1px solid #304b54; border-radius: 16px; box-shadow: 0 12px 46px rgba(0,0,0,.12); overflow: hidden; }
.card-top { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; }
.card-title { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.card-title strong { font-size: 13px; }
.card-title .small-meta { font-size: 11px; color: #a7babd; border-left: 1px solid #466065; padding-left: 12px; }
.screen-tools select { color: #dce9e4; background: #213943; border: 1px solid #47636a; padding: 8px 30px 8px 10px; border-radius: 7px; font-size: 11px; max-width: 180px; }
.screen-scroll { position: relative; height: min(60vh, 660px); min-height: 380px; overflow: auto; scrollbar-color: #4d7172 #132631; background: #0b131c; border-block: 1px solid #35505a; overscroll-behavior: contain; }
.screen-scroll::after { content: ""; position: sticky; bottom: 0; display: block; width: 100%; height: 1px; pointer-events: none; }
.screen-content { position: relative; min-height: 100%; min-width: 100%; }
#screenCanvas { display: block; position: absolute; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; image-rendering: auto; }
.remote-cursor { position: absolute; z-index: 1; pointer-events: none; width: 26px; height: 33px; background: #f8fff7; clip-path: polygon(0 0, 1px 29px, 7px 23px, 12px 32px, 17px 30px, 12px 21px, 25px 20px); filter: drop-shadow(2px 2px 2px #07151c) drop-shadow(-1px -1px 1px #07151c); transform: translate(-2px,-2px); }
.empty-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 25px; pointer-events: none; background: radial-gradient(ellipse 46% 60% at 50% 48%, #132c34 0%, #0b141c 100%); }
.empty-overlay button { pointer-events: auto; }
.empty-icon { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid #41625f; border-radius: 20px; color: #a2e8ba; font-size: 40px; margin-bottom: 18px; transform: rotate(-5deg); }
.empty-overlay h2 { font-size: 18px; margin: 0 0 9px; font-weight: 640; }
.empty-overlay p { max-width: 370px; color: #a8bec0; line-height: 1.6; font-size: 13px; margin: 0; }
.secondary-button { background: #b0ebc4; border: 0; border-radius: 8px; color: #102a29; padding: 10px 14px; font-size: 12px; font-weight: 700; margin-top: 18px; }
.secondary-button:hover { background: #d0f6d9; }
.screen-footer { min-height: 53px; padding: 8px 14px 8px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a8c0bb; font-size: 11px; }
.zoom-controls { display: flex; align-items: center; gap: 9px; flex: none; }
.zoom-controls button { color: #ebf8f0; background: #254047; border: 1px solid #46626a; width: 28px; height: 28px; border-radius: 7px; font-size: 19px; line-height: 1; }
.zoom-controls button:hover { background: #35605b; }
.zoom-controls span { min-width: 34px; text-align: center; font-size: 10px; }
.control-panel { padding: 25px 22px 12px; }
.panel-index { font-size: 10px; font-weight: 760; letter-spacing: .18em; color: var(--mint); }
.panel-head h2 { margin: 9px 0 5px; font-size: 23px; letter-spacing: -.035em; }
.panel-head p { margin: 0; color: #a9bdc0; font-size: 12px; line-height: 1.55; }
.control-section { border-top: 1px solid #3a5259; padding-top: 21px; margin-top: 24px; }
.control-section.last { padding-bottom: 16px; }
.control-section h3 { margin: 0 0 14px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 680; }
.control-section h3 span { color: #8da9aa; font-size: 10px; letter-spacing: .08em; }
.mouse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.control-button { min-width: 0; height: 74px; border: 1px solid #405b64; border-radius: 9px; color: #e3f0e9; background: #213943; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 11px; text-align: left; font-size: 11px; font-weight: 590; transition: background .15s, border-color .15s; }
.control-button:hover, .control-button.active { background: #30564f; border-color: #7accab; }
.control-button.featured { background: #335d54; border-color: #659983; }
.control-icon { font-size: 21px; line-height: 1; color: #b1e8c4; }
.scroll-row { display: flex; justify-content: space-between; align-items: center; color: #bdceca; font-size: 11px; margin-top: 10px; }
.scroll-row div { display: flex; gap: 7px; }
.scroll-row button { width: 38px; height: 30px; border: 1px solid #46626a; border-radius: 7px; color: #e9f3eb; background: #243d47; }
.scroll-row button:hover, .key-grid button:hover, .shortcut-grid button:hover { border-color: #83cfac; background: #305751; }
.input-label { display: block; color: #d6e5dc; font-size: 11px; margin-bottom: 8px; }
#textInput { width: 100%; min-height: 51px; resize: vertical; background: #10262e; border: 1px solid #496369; border-radius: 8px; outline: none; color: #edf6ef; padding: 12px; font-size: 13px; line-height: 1.35; }
#textInput:focus { border-color: #8fdaad; box-shadow: 0 0 0 3px rgba(143,218,173,.11); }
#textInput::placeholder { color: #87a4a8; }
.field-help { color: #9eb4b6; font-size: 10px; line-height: 1.55; margin: 7px 0 13px; }
.key-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.key-grid button, .shortcut-grid button { min-width: 0; color: #dcece2; background: #243e46; border: 1px solid #455f66; padding: 9px 3px; border-radius: 7px; font-size: 11px; white-space: nowrap; }
.key-grid button:nth-child(6) { grid-column: span 3; }
.shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.shortcut-grid button { padding: 11px 5px; }
.shortcut-grid + .field-help { margin-top: 11px; }
.prank-input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #496369; border-radius: 8px; background: #10262e; color: #edf6ef; font-size: 12px; }
.prank-input:focus { border-color: #8fdaad; outline: none; box-shadow: 0 0 0 3px rgba(143,218,173,.11); }
.prank-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.prank-buttons button { min-width: 0; padding: 11px 6px; border: 1px solid #54726c; border-radius: 7px; background: #2a4b48; color: #e4f5e9; font-size: 11px; line-height: 1.2; }
.prank-buttons button:not(:disabled):hover { background: #3e7365; border-color: #a1e4c2; }
.prank-buttons + .field-help { margin-top: 10px; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; color: #8fa6a7; font-size: 11px; margin-top: 22px; }
@media (max-width: 1060px) { .layout { grid-template-columns: 1fr; } .control-panel { display: grid; grid-template-columns: repeat(3,1fr); column-gap: 23px; } .panel-head { grid-column: 1/-1; } .control-section { margin-top: 20px; } }
@media (max-width: 710px) {
  .topbar { min-height: 61px; padding: 0 15px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-caption, .brand-divider { display: none; }
  .top-actions { gap: 10px; }
  .ghost-button { font-size: 11px; }
  .pill { padding: 7px 9px; font-size: 10px; }
  .dashboard { padding: 23px 12px 28px; }
  .heading { padding: 0 3px 19px; }
  .heading h1 { margin-top: 7px; }
  .heading p { font-size: 11px; line-height: 1.45; }
  .heading-art { display: none; }
  .layout { gap: 15px; }
  .card-top { min-height: 55px; padding: 0 12px; }
  .card-title { gap: 8px; }
  .card-title strong { font-size: 11px; }
  .card-title .small-meta { font-size: 10px; padding-left: 8px; }
  .screen-tools select { max-width: 98px; padding: 7px 6px; font-size: 10px; }
  .screen-scroll { height: min(53dvh, 480px); min-height: 290px; }
  .screen-footer { min-height: 50px; padding: 6px 10px; font-size: 10px; }
  .screen-footer > span { max-width: 72%; line-height: 1.35; }
  .control-panel { display: block; padding: 20px 16px 7px; }
  .panel-head h2 { font-size: 21px; }
  .control-section { margin-top: 19px; padding-top: 18px; }
  .control-button { height: 64px; }
  .page-footer { flex-direction: column; gap: 5px; margin-left: 3px; }
}
@media (max-width: 420px) { .auth-card { padding: 32px 24px 29px; } .auth-card .brand-mark { margin-bottom: 25px; } .card-title .small-meta { display: none; } .screen-footer > span { max-width: 67%; } }
