:root { color-scheme: dark; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #edf4fb; background: #081321; font-synthesis: none; -webkit-tap-highlight-color: transparent; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; min-height: 100vh; background: radial-gradient(ellipse at 18% -12%, #173e52 0, transparent 34%), radial-gradient(ellipse at 100% 0%, #142d48 0, transparent 38%), #081321; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #3ad8c5; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.sr-only { position: absolute; height: 1px; width: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page { width: min(1100px, calc(100% - 36px)); margin: 0 auto; padding-bottom: 56px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; border-bottom: 1px solid #ffffff1b; }
.brand { display: flex; align-items: center; gap: 11px; letter-spacing: .12em; }
.brand strong { display: block; font-size: 17px; letter-spacing: .16em; font-weight: 800; }
.brand small { display: block; font-size: 9px; color: #8da2b6; letter-spacing: .2em; padding-top: 3px; }
.brand-icon { width: 37px; height: 37px; display: grid; place-items: center; font-size: 29px; color: #2dd8c4; border: 1px solid #2dd8c45f; border-radius: 12px; }
.network-pill { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #26574e; background: #12332988; border-radius: 100px; color: #8cead6; font-size: 12px; font-weight: 600; padding: 9px 12px; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #38dfb5; box-shadow: 0 0 8px #38dfb5; }
.heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 38px 0 28px; }
.eyebrow, .section-kicker { font-weight: 750; text-transform: uppercase; color: #46d6c6; letter-spacing: .14em; font-size: 10px; }
h1 { margin: 7px 0 10px; letter-spacing: -.045em; font-size: clamp(27px, 4vw, 43px); line-height: 1.12; }
h2 { font-size: 23px; letter-spacing: -.035em; margin: 5px 0 0; }
.muted, .helper, .footer-note { color: #8fa4ba; line-height: 1.6; }
.muted { font-size: 14px; margin: 0; }
.helper { font-size: 13px; margin: 10px 0 18px; }
.panel { border: 1px solid #234052; border-radius: 22px; background: linear-gradient(145deg, #142a3aef, #0c1e2eef); box-shadow: 0 16px 46px #00000022; padding: 24px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-symbol { display: grid; place-items: center; border-radius: 13px; color: #62d9c7; background: #244f54; font-size: 24px; width: 45px; height: 45px; }
.connection-panel { margin-bottom: 18px; }
.connection-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 12px; font-weight: 700; }
.form-field input { width: 100%; background: #091a29; color: #edf6fb; border: 1px solid #315163; border-radius: 11px; padding: 13px 14px; min-height: 45px; }
.form-field input::placeholder { color: #607e90; }
.form-field small { color: #829caf; font-size: 10px; min-height: 15px; }
.primary-btn { display: flex; justify-content: space-between; gap: 12px; background: #43d7c2; color: #071c28; border: 0; border-radius: 11px; padding: 13px 16px; font-size: 13px; font-weight: 800; min-height: 45px; margin-bottom: 23px; white-space: nowrap; }
.primary-btn:hover { background: #73ead9; }
.connection-status { margin-top: 19px; padding: 12px 14px; border-radius: 10px; border: 1px solid #3d7065; background: #123a36a5; color: #a3ecdb; font-size: 12px; line-height: 1.5; }
.connection-status.has-error { border-color: #72414d; background: #421f2b80; color: #ffb5bf; }
.controls-fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.controls-fieldset:disabled { color: inherit; }
.control-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.direction-pad { display: grid; grid-template-columns: repeat(3, 71px); grid-template-rows: repeat(3, 71px); justify-content: center; margin: 18px auto 28px; gap: 8px; }
.pad-btn, .pad-center { border: 1px solid #36556a; background: #22394d; color: #ecf9ff; border-radius: 19px; font-size: 31px; display: grid; place-items: center; user-select: none; touch-action: none; transition: background .12s, transform .12s, border-color .12s; }
.pad-btn:hover, .pad-btn.pressed { background: #226a72; border-color: #52dec9; transform: scale(.98); }
.pad-center { grid-column: 2; grid-row: 2; color: #4ee0ca; background: #163e47; border-radius: 50%; font-size: 39px; }
.pad-center:hover { background: #255960; }
.pad-btn.up { grid-column: 2; grid-row: 1; }
.pad-btn.down { grid-column: 2; grid-row: 3; }
.pad-btn.left { grid-column: 1; grid-row: 2; }
.pad-btn.right { grid-column: 3; grid-row: 2; }
.slider-heading { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 650; margin-top: 4px; }
.slider-heading output { color: #55e2cd; }
input[type=range] { display: block; width: 100%; accent-color: #3ad6c2; cursor: pointer; margin: 17px 0 4px; min-height: 20px; }
.scale { display: flex; justify-content: space-between; color: #7892a6; font-size: 11px; }
.stop-btn { background: #412a35; color: #ffb8bf; border: 1px solid #78414c; border-radius: 11px; font-size: 12px; font-weight: 700; padding: 13px 18px; width: 100%; margin-top: 26px; }
.stop-btn:hover { background: #64333f; }
.zoom-value { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 26px 0 20px; }
.zoom-value strong { font-size: 59px; letter-spacing: -.075em; font-variant-numeric: tabular-nums; font-weight: 750; }
.zoom-value span { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: #8298ab; }
.zoom-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; gap: 8px; }
.step-btn { border: 1px solid #35586a; background: #204154; color: #dffcf8; border-radius: 12px; width: 50px; height: 44px; font-size: 26px; line-height: 1; }
.step-btn:hover { background: #2b6573; }
.text-btn { border: 1px solid #2b495c; background: #182c3b; color: #bed2de; border-radius: 10px; padding: 10px 11px; font-size: 12px; }
.text-btn:hover { background: #234254; }
.info-note { display: flex; align-items: start; gap: 9px; margin-top: 28px; border-radius: 10px; background: #ffffff08; padding: 12px; color: #91a9b8; font-size: 11px; line-height: 1.5; }
.info-note p { margin: 0; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.preset-btn { min-height: 116px; display: flex; flex-direction: column; text-align: left; align-items: flex-start; justify-content: space-between; gap: 8px; background: #192f41; border: 1px solid #365063; border-radius: 15px; color: #e7f5fd; padding: 15px; }
.preset-btn:hover { background: #23495a; border-color: #43cdba; }
.preset-number { color: #40d3bf; font-size: 12px; font-weight: 800; }
.preset-btn strong { font-size: 13px; }
.preset-btn small { font-size: 10px; color: #8aaabc; }
.status-panel { display: flex; align-items: center; gap: 14px; padding: 20px; }
.status-icon { background: #173d48; color: #3adfc7; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 27px; }
.status-panel strong { font-size: 14px; }
.status-panel strong.danger { color: #ff9caa; }
.status-panel p { color: #8eaab8; margin: 5px 0 0; line-height: 1.5; font-size: 11px; }
.footer-note { text-align: center; font-size: 11px; margin: 24px auto 0; max-width: 650px; }
@media (max-width: 850px) { .connection-form { grid-template-columns: 1fr 1fr; } .primary-btn { grid-column: 1 / -1; margin: 0; } }
@media (max-width: 780px) { .page { width: min(600px, calc(100% - 24px)); } .control-grid { grid-template-columns: 1fr; gap: 12px; } .topbar { padding: 17px 0; } .heading-row { margin: 30px 0 20px; } .panel { padding: 22px; } .connection-form { grid-template-columns: 1fr; } .primary-btn { grid-column: auto; } .zoom-value { margin: 18px 0; } }
@media (max-width: 400px) { .heading-row h1 { font-size: 29px; } .network-pill { font-size: 10px; padding: 8px 9px; } .panel { padding: 18px; } .direction-pad { grid-template-columns: repeat(3, 65px); grid-template-rows: repeat(3, 65px); } .preset-btn { padding: 11px; } .preset-btn strong { font-size: 11px; } }
