/* SUB Control UI – Desktop Layout */ /* Isolated pointer lighting: no layout or input interception. */ .controls-workspace { position:relative; isolation:isolate; } .workspace-light { position:absolute; inset:0; z-index:-1; pointer-events:none; border-radius:inherit; opacity:0; background:radial-gradient(600px circle at var(--light-x) var(--light-y),rgba(255,255,255,.35),transparent 75%); transition:opacity .35s ease-out; } .workspace-light.lit { opacity:1; } .light-surface { position:relative; } .cursor-light { position:absolute; inset:0; z-index:3; pointer-events:none; border-radius:inherit; } .cursor-light::before,.cursor-light::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity .35s ease-out; } .cursor-light.pill-light::before { background:radial-gradient(240px circle at var(--light-x) var(--light-y),rgba(110,190,235,.08),transparent 80%); } .cursor-light::after { padding:1px; background:linear-gradient(var(--light-angle,315deg),transparent 30%,rgba(255,255,255,.13) 65%,rgba(255,255,255,.50) 100%); -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask-composite:exclude; } .cursor-light.lit::before,.cursor-light.near::after { opacity:1; } .joystick > .cursor-light { inset:7%; border-radius:50%; } #engage > .cursor-light::after { display:none; } @media (prefers-reduced-motion:reduce) { .workspace-light,.cursor-light::before,.cursor-light::after { transition:none; } } :root { color-scheme: dark; --bg: #0c1012; --rail: #151a1d; --panel: #f3f4f1; --card: #ffffff; --ink: #16191b; --muted: #727a7c; --line: #dfe2dd; --acid: #c9f277; --cyan: #72d8e8; --amber: #f2c675; --red: #f0958b; --shadow: 0 10px 30px rgba(0, 0, 0, 0.05); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 300; } * { box-sizing: border-box; } html { height: 100%; margin: 0; overflow: hidden; background: var(--bg); } body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); font-size: 13px; color: var(--ink); -webkit-font-smoothing: antialiased; } button, select, input { font: inherit; } /* ── App Shell (Root Desktop Split Grid) ── */ .app-shell { width: 100vw; height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden; background: var(--panel); border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05); } body.maximized .app-shell { border-radius: 0; } /* ══════════════════════════════════════════════════════════════════ SIDEBAR DECK: Connection, 3D Model, Battery, Deck Controls, Status ══════════════════════════════════════════════════════════════════ */ .sidebar-deck { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 10px; background: radial-gradient(ellipse 110% 45% at 50% 28%, rgba(30, 144, 255, 0.12) 0%, rgba(0, 200, 255, 0.04) 45%, transparent 75%), linear-gradient(175deg, #1b2328 0%, #12171a 50%, #0c1012 100%); border-right: 1px solid rgba(255, 255, 255, 0.08); color: #f1f4f2; overflow-y: auto; overflow-x: hidden; } /* ── Connection Controls in Deck ── */ .deck-connection { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); } .port-row { display: flex; align-items: center; gap: 4px; } .port-row select { flex: 1; min-width: 0; height: 28px; padding: 0 8px; font-size: 10.5px; font-weight: 500; cursor: pointer; background: #20272b; color: #f1f4f2; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; outline: none; text-overflow: ellipsis; } .port-row select option { background: #171b19; color: #f1f4f2; } .button, .icon-button { height: 28px; border: 1px solid transparent; border-radius: 999px; padding: 0 12px; color: #f1f4f2; background: #20272b; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 400; transition: transform 0.15s, background 0.15s, border-color 0.15s; } .button:hover, .icon-button:hover { transform: none; border-color: rgba(255, 255, 255, 0.18); background: #293237; } .icon-button { width: 28px; padding: 0; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, 0.1); } .icon-button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; } .icon-button .dots-icon { fill: currentColor; stroke: none; } .connect-button { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 29px; padding: 0 14px; background: #253036; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; color: #ffffff; font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); user-select: none; } .connect-button:hover { background: #313e46; border-color: rgba(255, 255, 255, 0.25); } .connect-button:active { transform: scale(0.97); } .connect-button .btn-spinner { display: none; width: 11px; height: 11px; border: 2px solid rgba(114, 216, 232, 0.25); border-top-color: #72d8e8; border-radius: 50%; animation: connect-spin 0.65s linear infinite; flex-shrink: 0; } .connect-button .btn-label { display: inline-block; white-space: nowrap; } @keyframes connect-spin { to { transform: rotate(360deg); } } @keyframes connect-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.65; transform: scale(0.98); } } body[data-app-state="connecting"] .connect-button, .connect-button.is-connecting { background: rgba(18, 36, 42, 0.95) !important; border-color: rgba(114, 216, 232, 0.6) !important; color: #72d8e8 !important; box-shadow: 0 0 12px rgba(114, 216, 232, 0.25) !important; cursor: progress !important; pointer-events: auto !important; opacity: 1 !important; } body[data-app-state="connecting"] .connect-button .btn-spinner, .connect-button.is-connecting .btn-spinner { display: inline-block !important; } body[data-app-state="connecting"] .connect-button .btn-label, .connect-button.is-connecting .btn-label { animation: connect-pulse 1.3s ease-in-out infinite; } body[data-app-state="connected_disarmed"] .connect-button, body[data-app-state="armed"] .connect-button, body[data-app-state="link_degraded"] .connect-button, .connect-button.is-connected { background: rgba(50, 18, 18, 0.85) !important; border-color: rgba(255, 107, 107, 0.4) !important; color: #ffb4b4 !important; } body[data-app-state="connected_disarmed"] .connect-button:hover, body[data-app-state="armed"] .connect-button:hover, body[data-app-state="link_degraded"] .connect-button:hover, .connect-button.is-connected:hover { background: rgba(70, 22, 22, 0.95) !important; border-color: rgba(255, 107, 107, 0.75) !important; color: #ffffff !important; } /* ── 3D Model Stage in Deck ── */ .deck-card { display: flex; flex-direction: column; } .sidebar-deck button, .sidebar-deck select, .sidebar-deck input, .sidebar-deck a, .sidebar-deck canvas { -webkit-app-region: no-drag; } .telemetry-zone { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 10px; } .telemetry-zone .model-card { flex: 1; min-height: 0; } .eyebrow { font-size: 8.5px; font-weight: 400; color: #727c80; letter-spacing: 0.03em; } .rov-stage { position: relative; height: min(24vh, 160px); min-height: 120px; display: grid; place-items: center; border-radius: 10px; transition: background 0.2s ease, border-color 0.2s ease; } .rov-stage::before { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 180, 255, 0.2) 0%, rgba(0, 120, 220, 0.06) 50%, transparent 75%); filter: blur(14px); pointer-events: none; z-index: 1; } .water-ring { position: absolute; border: 1px solid rgba(0, 200, 255, 0.2); border-radius: 50%; transform: scaleY(0.55); } .water-ring.r1 { width: 140px; height: 140px; } .water-ring.r2 { width: 95px; height: 95px; border-color: rgba(114, 216, 232, 0.28); } .rov-stage #model-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; cursor: grab; touch-action: none; } .model-status { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); padding: 2px 7px; background: rgba(18, 24, 27, 0.85); border: 1px solid rgba(79, 195, 247, 0.25); border-radius: 5px; font-size: 8px; letter-spacing: 0.04em; color: #8edcf8; z-index: 5; pointer-events: none; white-space: nowrap; backdrop-filter: blur(6px); transition: opacity 0.4s ease; } .model-status.error { border-color: rgba(255, 82, 82, 0.5); color: #ff8a80; background: rgba(40, 15, 15, 0.9); } .model-status.fade-out { opacity: 0; } .model-tools { display: none !important; } .vehicle-name { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; } .vehicle-name small, .battery-card small { font-size: 8px; color: #687276; font-weight: 400; } .vehicle-name strong { font-size: 13.5px; font-weight: 400; letter-spacing: -0.01em; } .vehicle-name span { font-size: 9px; color: #727c80; } /* ── Battery Card ── */ .battery-card { display: grid; grid-template-columns: 1fr auto; width: 100%; padding: 6px 0 8px; text-align: left; color: inherit; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: transparent; cursor: pointer; } .battery-card::after { display: none !important; } .battery-card:hover { transform: none !important; box-shadow: none !important; } .battery-card > span { display: flex; flex-direction: column; gap: 1px; } .battery-card strong { font-size: 14.5px; font-weight: 400; } .battery-card i { align-self: end; color: #859094; font-size: 9.5px; font-style: normal; } .battery-card b { grid-column: 1 / -1; height: 3px; margin-top: 5px; background: #31383c; border-radius: 999px; overflow: hidden; } .battery-card em { display: block; width: 0; height: 100%; background: var(--acid); border-radius: inherit; transition: width 0.35s; } /* ── Output Limit & Motor Setup ── */ .controls-deck { display: flex; flex-direction: column; gap: 8px; padding: 2px 0; } .output-limit { display: flex; flex-direction: column; gap: 3px; font-size: 9px; color: #8a9497; font-weight: 300; width: 100%; } .output-limit span { display: flex; justify-content: space-between; white-space: nowrap; } .output-limit b { font-weight: 500; color: #f1f4f2; } .range-pill { display: grid; grid-template-columns: 20px 1fr 20px; align-items: center; width: 100%; height: 22px; border-radius: 999px; background: #20272b; border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; } .range-pill button { width: 20px; height: 22px; border: 0; background: transparent; color: #8a9497; cursor: pointer; display: grid; place-items: center; padding: 0; } .range-pill button:hover { color: #f1f4f2; } .range-pill button::after { display: none !important; } .range-pill input[type="range"] { width: 100%; height: 4px; margin: 0; padding: 0; border: 0; background: #394247; border-radius: 999px; outline: none; cursor: pointer; -webkit-appearance: none; } .range-pill input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: #c9f277; cursor: pointer; } .config-btn { width: 100%; height: 26px; font-size: 10px; background: #20272b; color: #d1d8d6; border: 1px solid rgba(255, 255, 255, 0.08); } .config-btn:hover { background: #2b353b; color: #ffffff; } /* ── Status Bar in Deck ── */ .deck-status-bar { margin-top: auto; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.08); } .status-line { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #8a9497; } .status-line .status-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; background: var(--muted); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); transition: background 0.25s ease, box-shadow 0.25s ease; } body[data-app-state="disconnected"] .status-line .status-dot, body[data-app-state="connecting"] .status-line .status-dot { background: var(--muted); } body[data-app-state="connected_disarmed"] .status-line .status-dot { background: var(--cyan); box-shadow: none; } body[data-app-state="armed"] .status-line .status-dot { background: var(--acid); box-shadow: none; } body[data-app-state="link_degraded"] .status-line .status-dot { background: var(--red); box-shadow: none; } .status-line p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .logs-link { all: unset; cursor: pointer; color: #9aa29f; font-size: 9px; letter-spacing: 0.02em; margin-left: auto; } .logs-link:hover { color: #f1f4f2; } .activity-actions { display:flex; align-items:center; gap:12px; } /* ══════════════════════════════════════════════════════════════════ PRIMARY CONTROL ZONE (Workspace) Engage/Disarm banner directly above Joysticks + Controls Grid ══════════════════════════════════════════════════════════════════ */ .controls-workspace { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 10px 16px 14px; background: linear-gradient(155deg, #f7f8f6, #ebefec); min-width: 0; position: relative; } /* ── Active MAVLink link test ── */ .link-quality { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 3px 0; color: #eef2f0; width: 100%; border: 0; text-align: left; font: inherit; background: transparent; cursor: pointer; border-radius: 9px; transition: background-color .18s ease; } .link-quality:hover,.link-quality:focus-visible { background:rgba(255,255,255,.055); outline:none; } .link-quality-dot { width: 7px; height: 7px; border-radius: 50%; background: #667074; } .link-quality span:not(.link-quality-dot) { display:flex; flex-direction:column; gap:1px; min-width:0; } .link-quality small { color:#8d979a; font-size:10px; font-weight:400; } .link-quality strong { font-size:14px; font-weight:500; line-height:1.15; } .link-quality i { grid-column: 2; min-width: 0; color: #aab2b4; font-size: 11px; line-height: 1.3; font-style: normal; white-space: normal; overflow-wrap: anywhere; } .link-quality i span { display:block; } .link-quality[data-grade="excellent"] .link-quality-dot { background:#bce96c; box-shadow:0 0 8px rgba(188,233,108,.35); } .link-quality[data-grade="good"] .link-quality-dot { background:#85c7e8; } .link-quality[data-grade="fair"] .link-quality-dot { background:#e7bf69; } .link-quality[data-grade="poor"] .link-quality-dot { background:#f07f78; box-shadow:0 0 8px rgba(240,127,120,.3); } .link-quality[data-grade="testing"] .link-quality-dot { background:#aab3b6; } .quality-modal { width:min(520px,calc(100vw - 32px)); } .heavy-test-panel { margin-top:18px; padding-top:14px; border-top:1px solid rgba(128,145,145,.2); } .heavy-quality-status { font-size:14px; font-weight:500; } .heavy-quality-results { display:grid; gap:6px; margin-top:12px; } .heavy-result-row { display:flex; justify-content:space-between; gap:12px; align-items:baseline; padding:7px 10px; border-radius:10px; background:rgba(120,140,140,.08); font-size:12px; } .heavy-result-row strong { flex:none; } .heavy-result-row span { text-align:right; color:var(--muted); } .primary-control-zone { display: grid; grid-template-rows: auto minmax(0, 1fr); flex: 1; min-height: 0; } /* ── Minimal Window Bar ── */ .workspace-topbar { display: flex; align-items: center; justify-content: space-between; height: 24px; min-height: 24px; margin-bottom: 6px; user-select: none; } .workspace-drag-area { flex: 1; height: 100%; } .window-actions { display: flex; align-items: center; gap: 4px; -webkit-app-region: no-drag; } .window-actions button { width: 22px; height: 22px; border-radius: 4px; border: 0; background: transparent; color: #7a8588; cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: none; transition: color 0.2s ease, opacity 0.2s ease; } .window-actions button::after { display: none !important; } .window-actions button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; } .window-actions button:hover { background: transparent; color: #1a1e1d; } .window-actions button:active { opacity: 0.65; } .window-actions .window-close:hover { background: transparent; color: #e04438; } /* ── Engage / Disarm Slot Above Joysticks ── */ .engage-header-zone { display: grid; grid-template-columns: 1fr auto; align-items: center; justify-content: space-between; min-height: 76px; margin-bottom: 10px; } .zone-label { font-size: 9px; color: #727a7c; text-transform: uppercase; letter-spacing: .08em; } @property --engage-progress { syntax: ""; inherits: true; initial-value: 0%; } .engage-button { --engage-progress: 0%; min-width: 166px; height: 44px; padding: 0 24px; border-radius: 10px; position: relative; overflow: hidden; user-select: none; touch-action: none; background: #343a39; border: 1px solid #242927; color: #f7f8f6; transition: --engage-progress .28s ease-out, background-color .24s ease, border-color .24s ease, color .2s ease, transform .16s ease; } .engage-button::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--engage-progress); background: rgba(139, 218, 83, .18); pointer-events: none; } .engage-button.charging { transition: background-color .24s ease, border-color .24s ease, color .2s ease; } .engage-face { position:relative; display:grid; place-items:center; width:7.5em; height:1em; min-width:0; text-align:center; font-size:clamp(52px,11cqw,90px); } .engage-face > span { grid-area:1/1; justify-self:center; align-self:start; font-size:11px; font-weight:650; letter-spacing:.12em; white-space:nowrap; } .engage-label { position:relative; color: transparent; background: linear-gradient(105deg,#f4f6f3 20%,#ffffff 43%,#9da6a2 50%,#ffffff 57%,#f4f6f3 80%); background-size: 250% 100%; background-clip: text; -webkit-background-clip: text; text-align:center; transition:transform 180ms cubic-bezier(.77,0,.175,1); } #engage .engage-label.is-appending { transform:translateX(var(--engage-append-shift,0px)); } .arm:not(:disabled):not(.charging):not(.canceling):not(.state-transition) .engage-label { animation: engage-shimmer 4.8s linear infinite; } .engage-suffix { display:inline-block; opacity:0; clip-path:inset(0 100% 0 0); transform:translateX(-.08em); transition:clip-path 180ms cubic-bezier(.77,0,.175,1),opacity 120ms ease-out,transform 180ms cubic-bezier(.77,0,.175,1); } .state-transition .engage-suffix,.engage-suffix.is-visible { opacity:1; clip-path:inset(0); transform:translateX(0); } .engage-progress-label { color: #a9ed72; clip-path: inset(0 calc(100% - var(--engage-progress)) 0 0); transition: opacity .18s ease; } @keyframes engage-shimmer { 0%,35%{background-position:160% 0} 80%,100%{background-position:-90% 0} } .engage-button:hover { transform:none; } .engage-button.pending { background:#405346; border-color:#516e56; } .engage-button.pending .engage-label { color:#f4f6f3; background:none; } .engage-button.pending .engage-progress-label { opacity:0; } .control-status { grid-column:1/-1; min-height:28px; margin:6px 0 0; font-size:12px; line-height:1.4; color:#64716a; transition:color .18s ease; } .control-status.is-error { color:#a23931; } .controls-grid { transition:opacity .18s ease; } .heave-track[data-commanded="true"] .heave-center { background:#3d5145; } .heave-track .heave-center, .heave-fill { transition:background-color .12s linear; } body[data-telemetry-stale="true"] #battery-fill { opacity:.35; } #battery-fill { transition:width .25s linear, opacity .18s ease; } .subtle { background: #e2e6e1; color: #28302c; border: 1px solid rgba(0, 0, 0, 0.08); } .subtle:hover { background: #d7dcd5; } .arm { background: #343a39; color: #f7f8f6; border-color: #242927; cursor: pointer; } .arm.charged { --engage-progress: 100%; background: #4e7140; border-color: #78ad5a; } .danger { --engage-progress: 0%; background: #ad3f38; color: #ffffff; border: 1px solid #8e302b; } .danger .engage-label { color:#fff; background:none; } .danger .engage-progress-label { opacity:0; } .danger:hover { background: #bd4740; border-color: #8e302b; } /* ── Main Controls Grid ── */ .controls-grid { --joy-size: min(46vh, 320px); --joy-circle-d: calc(var(--joy-size) * 0.90); display: grid; grid-template-columns: minmax(300px, 1fr) 175px; gap: 12px; flex: 1; min-height: 0; } .control-card { display: flex; flex-direction: column; padding: 12px 14px 10px; border: 1px solid #e1e4e0; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); min-height: 0; } .control-card header { display: flex; justify-content: space-between; align-items: flex-start; } .control-card header div { display: flex; flex-direction: column; gap: 1px; } .control-card small { font-size: 8.5px; color: #828a88; font-weight: 400; } .control-card header strong { font-size: 13px; font-weight: 400; } .key-hint { padding: 2px 5px; border-radius: 5px; background: #f0f2ef; color: #7e8583; font-size: 8px; font-weight: 400; } .joystick-pad, .heave-pad { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; padding: 6px; } .joystick { --size: var(--joy-size); position: relative; width: var(--size); height: var(--size); min-width: 220px; min-height: 220px; margin: auto; border: 0; background: transparent; user-select: none; touch-action: none; } .joystick:before, .joystick:after { display: none !important; } .axis, .axis-label, .axis-copy, .stick, .stick-shadow { display: none !important; } .vertical-control { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; min-height: var(--joy-size); gap: 3px; font-size: 8.5px; font-weight: 400; color: #828a87; } .heave-track { position: relative; width: 48px; height: var(--joy-circle-d); border-radius: 18px; background: #eaeee8; border: 1px solid #d6dbd4; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05); touch-action: none; } .heave-track::before { display: none !important; } .heave-center { position: absolute; left: 7px; right: 7px; top: 50%; height: 3px; border-radius: 2px; background: #75807b; } .heave-fill { position: absolute; left: 18px; right: 18px; top: 50%; height: 0; background: #87958e; border-radius: 3px; } .heave-knob { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 34px; border-radius: 14px; background: linear-gradient(145deg, #687271, #3c4443); border: 1px solid #d7dedc; box-shadow: 0 3px 10px rgba(20, 30, 25, 0.18), inset 0 1px rgba(255, 255, 255, 0.55); cursor: grab; touch-action: none; transition: scale 0.12s, filter 0.12s; will-change: top; } .heave-knob::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: #8e9694; border-radius: 1px; transform: translate(-50%, -50%); } .heave-knob:active, .heave-knob.pressed { filter: brightness(.83); } .control-card footer { display: flex; align-items: center; height: 14px; margin-top: auto; color: #7e8583; font-size: 9px; font-weight: 300; line-height: 1; } .control-card footer b { font-weight: 400; color: #28302c; } .steer-card footer { justify-content: space-between; width: 100%; padding: 0 2px; } .steer-readout-left, .steer-readout-right { display: inline-flex; align-items: center; gap: 3px; } /* ══════════════════════════════════════════════════════════════════ MODALS ══════════════════════════════════════════════════════════════════ */ .modal { width: min(540px, calc(100vw - 40px)); padding: 22px 24px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 24px; background: rgba(247, 248, 245, 0.96); color: #1a1e1f; box-shadow: 0 30px 80px -12px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 24px -6px rgba(0, 0, 0, 0.16); backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%); } .modal::backdrop { background: rgba(10, 16, 18, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } .modal-close { position: absolute; right: 14px; top: 14px; width: 24px; height: 24px; border: 0; background: transparent; font-size: 16px; cursor: pointer; } .form-grid { display: grid; gap: 12px; margin-top: 12px; } .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid.three { grid-template-columns: 1fr 1fr 1fr; } .form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 10px; } .number-pill { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; height: 30px; border-radius: 999px; background: #eaede8; overflow: hidden; } .number-pill button { width: 24px; height: 30px; border: 0; background: transparent; cursor: pointer; } .number-pill input { border: 0; text-align: center; background: transparent; } .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; } .note { font-size: 9.5px; color: #7a8280; margin-top: 8px; } .motor-modal { width: min(860px, calc(100vw - 40px)); } .battery-live { margin:14px 0 20px; padding:14px; border-radius:16px; background:#f0f3ef; } .battery-live-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; } .battery-live-grid > div { min-width:0; padding:10px 11px; border-radius:12px; background:#fff; } .battery-live-grid span,.battery-live-grid small { display:block; color:#727b77; font-size:11px; } .battery-live-grid strong { display:block; margin-top:7px; color:#303936; font-size:18px; font-weight:500; font-variant-numeric:tabular-nums; } .battery-live-grid small { margin-top:4px; } .battery-live .note { margin:10px 0 0; line-height:1.5; font-size:12px; } /* ── Toast ── */ .toast { position: fixed; bottom: 16px; right: 16px; padding: 8px 14px; background: #171b19; color: #fff; border-radius: 8px; font-size: 11px; opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; z-index: 100; } .toast.show { opacity: 1; transform: translateY(0); } .toast.error { background: #7a2822; } /* ══════════════════════════════════════════════════════════════════ APP-STATE CONDITIONAL GATING ══════════════════════════════════════════════════════════════════ */ body:not([data-controls-enabled="true"]) .controls-grid { opacity: 0.45; pointer-events: none; user-select: none; } button:disabled { opacity: 0.38 !important; pointer-events: none !important; cursor: not-allowed !important; } button:disabled::after { display: none !important; } body[data-app-state="disconnected"] button[data-open="motors-modal"], body[data-app-state="connecting"] button[data-open="motors-modal"], body[data-app-state="link_degraded"] button[data-open="motors-modal"] { opacity: 0.38; pointer-events: none; cursor: not-allowed; } .console-modal { width: min(1040px, calc(100vw - 64px)); max-width: 1040px; } .console-split { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; min-width:0; } .console-split section { min-width:0; } .console-split header { display:flex; align-items:center; gap:7px; margin:0 2px 7px; } .console-split header i { width:7px; height:7px; border-radius:50%; flex:0 0 auto; } .console-split header .rx-dot { background:#79c8eb; } .console-split header .tx-dot { background:#bce96c; } .console-split header span { color:#303836; font-size:12px; font-weight:600; } .console-split header small { margin-left:auto; color:#7d8683; font-size:10px; } .console-split pre { height: min(55vh, 480px); margin: 0; padding: 14px; overflow: auto; border: 1px solid #d9ddda; border-radius: 12px; background: #171b1d; color: #dce4e1; font: 11px/1.45 Consolas, "SFMono-Regular", monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; } @media (max-width: 760px) { .console-split { grid-template-columns:1fr; } .console-split pre { height:220px; } } /* A pending or unknown armed state must stay legible, even without a link. */ #engage.danger:disabled, #engage.pending:disabled { opacity:1 !important; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation:none !important; transition:none !important; } } @media (max-width: 950px) { .app-shell { grid-template-columns: 210px minmax(0, 1fr); } .controls-grid { grid-template-columns: minmax(230px, 1fr) 150px; } .controls-workspace { padding: 8px 12px; } } /* Compact control surface: interactive content is never a native drag region. */ .app-shell { grid-template-columns:260px minmax(0,1fr); } .sidebar-deck { position:relative; padding:20px; gap:18px; background:linear-gradient(160deg,#333,#242424); } .sidebar-drag-surface { position:absolute; inset:0; cursor:grab; } .sidebar-deck > :not(.sidebar-drag-surface) { position:relative; pointer-events:none; } .sidebar-deck :is(button,select,input,a,.rov-stage,.activity-history) { pointer-events:auto; } .deck-connection { gap:12px; padding-bottom:16px; } .port-row select { height:36px; font-size:12px; border-radius:999px; background:#3a3a3a; } .icon-button { width:34px; height:34px; background:#3a3a3a; } body #connect, body #connect:hover, body #connect.is-connected, body #connect.is-connecting { width:100%; min-width:0; height:62px; padding:0 14px; align-self:stretch; background:#fff !important; color:#303030 !important; border:0 !important; border-radius:999px; box-shadow:none !important; font-size:30px; font-weight:300; letter-spacing:-.025em; } body #connect .btn-label { animation:none; } .telemetry-zone { gap:20px; } .rov-stage { flex:1; height:auto; min-height:0; width:100%; touch-action:none; border-radius:31px; overflow:hidden; background:transparent; } .model-card { justify-content:flex-start; } .rov-stage::before { display:none; } .model-tools button { font-size:12px; padding:7px 11px; } .battery-card small { font-size:12px; } .battery-card strong { font-size:23px; } .battery-card i { font-size:12px; } .activity-heading { display:flex; align-items:center; justify-content:space-between; font-size:14px; font-weight:650; color:#eee; margin:8px 0 0; } .activity-heading .logs-link { font-size:14px; font-weight:650; color:#eee; } .activity-history { list-style:none; padding:0; margin:0; display:grid; gap:4px; } .activity-history li { font-size:12px; font-weight:300; line-height:1.25; color:#999; overflow-wrap:anywhere; } .activity-history #status-text { color:#fff; font-size:12px; font-weight:300; } .activity-history li[hidden] { display:none; } .controls-workspace { padding:8px 20px 16px; background:#ededed; } .primary-control-zone { grid-template-rows:120px minmax(0,1fr) 52px; } .engage-header-zone { display:block; position:relative; height:120px; min-height:0; margin:0; padding:0; } body #engage { width:calc(100% + 40px); margin-left:-20px; height:104px; padding:0 20px; border:0; border-radius:0; background:transparent; box-shadow:none; } body #engage:hover, body #engage.pending, body #engage.danger { background:transparent; border:0; } #engage::before, #engage::after { display:none; } body #engage { align-items:flex-end; padding-bottom:12px; } .engage-face > span { font-family:inherit; font-size:clamp(52px,11cqw,90px); font-weight:200; letter-spacing:.015em; line-height:1; padding-bottom:.22em; margin-bottom:-.22em; } #engage { --engage-green:#4cce73; --engage-glow:drop-shadow(0 0 2px rgba(76,206,115,.3)); } #engage .engage-label { color:#777; background:none; animation:none; } .engage-sheen-label { color:#fff; pointer-events:none; opacity:0; mask-image:linear-gradient(105deg,transparent 40%,#000 49%,#000 51%,transparent 60%); mask-size:300% 100%; mask-repeat:no-repeat; -webkit-mask-image:linear-gradient(105deg,transparent 40%,#000 49%,#000 51%,transparent 60%); -webkit-mask-size:300% 100%; -webkit-mask-repeat:no-repeat; } #engage:is(.arm,.danger):not(:disabled):not(.charging):not(.canceling):not(.state-transition) .engage-sheen-label { opacity:1; animation:engage-sweep 2.2s linear infinite; } @keyframes engage-sweep { from {mask-position:100% 0;-webkit-mask-position:100% 0} to {mask-position:0% 0;-webkit-mask-position:0% 0} } .engage-progress-label { color:var(--engage-green); clip-path:none; filter:var(--engage-glow); mask-image:linear-gradient(to right,#000 calc(var(--engage-progress) - 8%),transparent var(--engage-progress)); -webkit-mask-image:linear-gradient(to right,#000 calc(var(--engage-progress) - 8%),transparent var(--engage-progress)); } #engage.charged .engage-progress-label { mask-image:none; -webkit-mask-image:none; } #engage.pending .engage-label { color:var(--engage-green); filter:var(--engage-glow); background:none; } #engage.danger .engage-label { color:#777; } #engage:focus-visible { outline:2px solid #8d9991; outline-offset:-6px; } .control-status { position:absolute; z-index:2; top:100%; left:0; right:0; margin:0; min-height:0; text-align:center; font-size:12px; max-height:48px; overflow:auto; background:transparent; } .control-status[hidden] { display:none; } @media (prefers-reduced-motion: reduce) { .engage-sheen-label { display:none; } #engage .engage-label.is-appending { transition:none; transform:none; } .engage-suffix { transition:opacity var(--ui-duration,180ms) ease-out; } .state-transition .engage-suffix { clip-path:inset(0); transform:none; } } .controls-grid { --joy-size:min(54vh,calc(100vw - 480px),460px); --joy-circle-d:calc(var(--joy-size) * .86); grid-template-columns:var(--joy-size) 112px; gap:24px; justify-content:center; align-content:center; } .control-card { border:0; border-radius:0; box-shadow:none; background:transparent; padding:0; } .control-card header { align-items:center; min-height:20px; } .control-card small, .key-hint { font-size:12px; } .key-hint { background:transparent; } .control-card footer { height:22px; font-size:13px; margin:0; } .vertical-card footer { justify-content:center; text-align:center; } .vertical-card footer b { display:inline-block; width:4ch; text-align:right; font-variant-numeric:tabular-nums; } .joystick-pad,.heave-pad { padding:0; flex:none; } .vertical-control { font-size:11px; gap:4px; } .heave-track { width:58px; border-radius:999px; background:#eaeaea; border-color:#d6d6d6; } .heave-knob { width:76px; height:40px; border-radius:999px; background:linear-gradient(145deg,#737373,#454545); } .heave-fill { left:22px; right:22px; background:#999; } .control-toolbar { display:flex; justify-content:center; align-items:center; gap:16px; padding-top:12px; } .control-toolbar .output-limit { width:auto; flex-direction:row; align-items:center; font-size:13px; gap:12px; color:#777; } .control-toolbar .output-limit > span { flex:0 0 128px; width:128px; gap:8px; align-items:baseline; justify-content:space-between; } .control-toolbar .output-limit b { display:inline-block; flex:0 0 4ch; width:4ch; text-align:right; color:#333; font-variant-numeric:tabular-nums; } .control-toolbar .range-pill { width:175px; grid-template-columns:28px 1fr 28px; height:40px; background:#e7e7e7; border:0; } .control-toolbar .range-pill button { width:28px; height:40px; padding:0; display:grid; place-items:center; color:#666; line-height:1; } .control-toolbar .range-pill button svg { width:24px; height:24px; display:block; } .control-toolbar .range-pill input[type="range"] { background:#c4c4c4; height:20px; background-clip:content-box; padding:8px 0; } .control-toolbar .range-pill input[type="range"]::-webkit-slider-thumb { width:18px; height:18px; background:#858585; } .control-toolbar .config-btn { width:auto; height:40px; padding:0 18px; font-size:13px; background:#e7e7e7; color:#444; border:0; border-radius:999px; } .workspace-topbar { height:40px; min-height:40px; } .window-actions { gap:5px; } .window-actions button { width:42px; height:38px; border-radius:999px; } .window-actions button svg { width:20px; height:20px; } body:not([data-controls-enabled="true"]) .controls-grid { opacity:.65; } @media (max-height:610px) { .primary-control-zone { grid-template-rows:100px minmax(0,1fr) 52px; } .engage-header-zone { height:100px; } body #engage { height:84px; } .controls-grid { --joy-size:min(49vh,calc(100vw - 480px),420px); } .sidebar-deck { gap:12px; padding-top:14px; padding-bottom:14px; } .telemetry-zone { gap:12px; } .activity-history { gap:4px; } } /* Settings windows: readable fields, predictable spacing, one action hierarchy. */ .modal { color-scheme: light; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px; overflow: auto; overscroll-behavior: contain; border: 1px solid #dedfdf; border-radius: 20px; background: #f6f6f6; box-shadow: 0 24px 80px rgba(0,0,0,.24); backdrop-filter: none; } .modal[open] { animation: dialog-in .16s ease-out; } .modal.closing { animation: dialog-out .12s ease-in forwards; } .modal::backdrop { background: rgba(15,19,22,.4); backdrop-filter: blur(3px); } .modal > small { display:block; color:#73787b; font-size:12px; font-weight:400; margin:0 42px 6px 0; } .modal h2 { margin:0 40px 18px 0; font-size:28px; letter-spacing:-.025em; font-weight:400; } .modal h3 { margin:0 0 10px; font-size:14px; font-weight:500; color:#454b4e; } .modal .note { font-size:13px; line-height:1.5; margin:8px 0 0; color:#676e71; } .modal-close { top:16px; right:16px; width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:#e9ebec; color:#555c60; font-size:25px; line-height:1; } .modal-close:hover { background:#dfe3e5; } .settings-section { margin-top:22px; } .settings-section + .settings-section { border-top:1px solid #e0e3e4; padding-top:20px; } .modal .form-grid { gap:16px; margin-top:10px; } .modal .form-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); } .modal label { min-width:0; font-size:13px; line-height:1.35; font-weight:400; color:#50585c; } .modal label > span { display:block; margin-bottom:7px; } .modal input,.modal select { width:100%; min-width:0; height:42px; padding:0 13px; border:1px solid #d7dcde; border-radius:999px; background:#fff; color:#272c2f; font-size:14px; font-weight:400; } .modal select { padding-right:28px; } .modal :is(button,input,select,summary,pre):focus-visible { outline:2px solid #6598b5; outline-offset:3px; } .modal .number-pill { height:42px; grid-template-columns:36px minmax(0,1fr) 36px; background:#fff; border:1px solid #d7dcde; } .modal .number-pill button { width:36px; height:40px; font-size:24px; color:#5b666b; } .modal .number-pill input { border:0; padding:0; height:40px; appearance:textfield; -moz-appearance:textfield; } .modal .number-pill input::-webkit-inner-spin-button { appearance:none; } .modal .number-pill:focus-within { border-color:#6598b5; } .custom-port-label { display:block; margin-top:16px; } .custom-port-row { display:flex; gap:8px; } .custom-port-row input { flex:1; } .modal .button { min-height:42px; height:auto; padding:10px 18px; font-size:14px; font-weight:400; border-radius:999px; white-space:normal; } .modal .button.subtle { background:#e9ebec; border:0; color:#424b50; } .modal .modal-primary { background:#333e44; color:#fff; border:0; } .modal .modal-primary:hover { background:#455660; } .modal .modal-actions { margin-top:24px; gap:10px; align-items:center; } .modal .form-feedback { margin:16px 0 0; padding:10px 12px; border-radius:12px; font-size:13px; line-height:1.5; color:#9b392e; background:#f5e6e3; } .modal [hidden] { display:none !important; } .modal [data-busy="true"] { cursor:progress; } .motor-modal { width:min(860px,calc(100vw - 32px)); } @media (max-width:650px) { .battery-live-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } } .motor-other { margin-top:16px; } .motor-other summary { cursor:pointer; padding:12px 0; color:#697278; font-size:13px; } .quality-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:18px; } .quality-summary div { border-radius:14px; background:#e9ebec; padding:14px 12px; min-width:0; } .quality-summary span { display:block; font-size:12px; color:#697278; margin-bottom:8px; } .quality-summary strong { font-size:20px; font-weight:400; font-variant-numeric:tabular-nums; } .modal .heavy-quality-status { padding:12px; background:#e9ebec; border-radius:12px; font-size:14px; margin-top:14px; } .modal .heavy-result-row { font-size:13px; padding:10px 12px; font-variant-numeric:tabular-nums; } .console-modal { width:min(1020px,calc(100vw - 32px)); } .console-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; } .console-toolbar .note { margin:0; } .modal .console-split header small { font-size:12px; } .modal .console-split pre { height:clamp(180px,48vh,430px); padding:14px; font-size:12px; line-height:1.55; border-radius:12px; } @keyframes dialog-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } } @keyframes dialog-out { to { opacity:0; transform:translateY(5px); } } @media (max-width:520px) { .modal { padding:22px 18px; } .modal .form-grid.two { grid-template-columns:1fr; } .quality-summary { gap:6px; } .quality-summary div { padding:12px 8px; } .quality-summary strong { font-size:17px; } } @media (prefers-reduced-motion:reduce) { .modal[open],.modal.closing { animation:none; } } /* Input selection stays separate from vehicle arming and command ownership. */ #engage:focus,#engage:focus-visible { outline:none!important; box-shadow:none!important; } .controls-workspace { container-type:inline-size; } .input-mode-controls { display:flex; align-items:center; gap:6px; flex-shrink:0; -webkit-app-region:no-drag; } .input-mode-switch { display:flex; padding:3px; gap:2px; background:#dedede; border-radius:999px; } .input-mode-switch button,.controller-settings { border:0; border-radius:999px; background:transparent; color:#686868; padding:7px 11px; font-size:12px; cursor:pointer; } .input-mode-switch button[aria-pressed="true"] { background:#fafafa; color:#252525; box-shadow:0 1px 3px #0000000c; } .controller-settings { background:#dedede; } .controller-status { margin:0; height:24px; flex-shrink:0; font-size:12px; line-height:20px; color:#6d7478; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } body[data-input-mode="joystick"] .key-hint { visibility:hidden; } body[data-input-mode="joystick"] :is(#joystick-canvas,#heave) { pointer-events:none; cursor:default; } .controls-grid { --joy-size:min(52vh,calc(100cqw - 136px),460px); } .control-toolbar { flex-wrap:wrap; gap:8px 14px; } .primary-control-zone { grid-template-rows:120px minmax(0,1fr) auto; } .control-toolbar { min-height:52px; } .engage-face > span { font-size:clamp(52px,11cqw,90px); } .controller-mapping-head,.controller-mapping-row { display:grid; grid-template-columns:1fr 1.25fr 50px; gap:14px; align-items:center; } .controller-mapping-head { color:#777; font-size:12px; margin-bottom:8px; } .controller-mapping-row { margin:8px 0; } .modal .controller-mapping-row input[type="checkbox"] { width:22px; height:22px; min-height:0; margin:auto; padding:0; accent-color:#527f9b; } .controller-mapping-row label { display:flex; align-items:center; } #controller-axes { min-height:22px; margin:12px 0; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; color:#65737d; font-size:12px; } #controller-form > label { margin-top:18px; } .visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; } /* Read-only local console, not a modal: driving stays available while it is open. */ .app-shell.console-open { grid-template-columns:260px minmax(0,1fr) 340px; } .console-dock[hidden] { display:none!important; } .console-dock { display:flex; flex-direction:column; min-width:0; min-height:0; padding:18px 16px; background:#f5f5f5; border-left:1px solid #d8dcde; color:#29343b; color-scheme:light; } .console-dock-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; } .console-dock-header small { font-size:11px; color:#81888d; } .console-dock-header h2 { font-size:22px; font-weight:400; margin:4px 0 0; letter-spacing:-.02em; } .console-close { width:38px; height:38px; flex-shrink:0; border:0; border-radius:999px; background:#e7e8e9; color:#48525a; font-size:25px; cursor:pointer; } .console-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; } .console-toolbar label { flex:1; min-width:0; } .console-toolbar select,.console-toolbar button { height:34px; border:0; border-radius:999px; background:#e7e9ea; color:#42525e; font-size:12px; padding:0 12px; } .console-toolbar select { width:100%; } .console-toolbar button { cursor:pointer; } .console-state { min-height:28px; margin:10px 0 8px; font-size:11px; color:#7e868b; line-height:1.4; } .console-streams { display:grid; grid-template-rows:1fr 1fr; gap:14px; min-height:0; flex:1; } .console-side { display:flex; flex-direction:column; min-height:0; } .console-side > header { display:flex; align-items:center; gap:6px; padding:0 4px 8px; font-size:12px; font-weight:500; color:#435966; } .console-side > header small { margin-left:auto; font-size:11px; font-weight:300; color:#899198; } .console-side > header i { width:6px; height:6px; border-radius:50%; background:#5888a3; } .console-side > header .tx-dot { background:#659287; } .console-output { min-height:0; flex:1; overflow:auto; overscroll-behavior:contain; padding:0 8px; border:1px solid #e0e3e5; border-radius:12px; background:#fafbfc; color:#343d43; font:12px/1.5 "Helvetica Neue",Helvetica,Arial,sans-serif; } .console-row { border-bottom:1px solid #e9edef; } .console-row:last-child { border-bottom:0; } .console-row summary { display:flex; gap:8px; cursor:pointer; padding:10px 0; list-style:none; } .console-row summary::-webkit-details-marker { display:none; } .console-row time { flex-shrink:0; color:#929ba1; font:10px/1.8 ui-monospace,Consolas,monospace; font-variant-numeric:tabular-nums; } .console-message { min-width:0; display:block; overflow-wrap:anywhere; } .console-message strong { display:block; font-size:11px; font-weight:500; color:#517c97; letter-spacing:.025em; } .console-row[data-tone="command"] strong { color:#467a69; } .console-row[data-tone="warning"] strong { color:#aa664b; } .console-fields { display:flex; flex-wrap:wrap; gap:2px 8px; font-size:11px; } .console-fields i { color:#929a9f; font-style:normal; } .console-fields b { font-weight:400; color:#45535d; } .console-row pre { margin:0 0 10px; padding:10px; border-radius:8px; background:#eef1f3; color:#52616c; font:11px/1.5 ui-monospace,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; } .console-empty { color:#959da3; font-size:12px; line-height:1.6; margin:14px 0; } @media (max-height:610px) { .primary-control-zone { grid-template-rows:100px minmax(0,1fr) auto; } .controls-grid { --joy-size:min(46vh,calc(100cqw - 136px),420px); } } @media (max-width:1000px) { .app-shell.console-open { grid-template-columns:260px minmax(0,1fr); } .console-dock { position:absolute; top:0; right:0; bottom:0; width:min(340px,calc(100vw - 32px)); z-index:12; box-shadow:-8px 0 24px #00000012; border-radius:12px 0 0 12px; } } /* Three shared sizes: compact 32px, standard 40px, primary 62px. */ :root { --pill-sm:32px; --pill-md:40px; --pill-lg:62px; --pill-radius:999px; --battery-charge:#63cb85; --battery-low:#e98a7b; } .port-row select,.icon-button { height:var(--pill-sm); } .icon-button { width:var(--pill-sm); } body #connect { height:var(--pill-lg); border-radius:var(--pill-radius); } .input-mode-switch { height:var(--pill-md); padding:4px; } .input-mode-switch button { height:var(--pill-sm); padding:0 12px; } .controller-settings { height:var(--pill-md); padding:0 14px; } .input-mode-switch button:disabled { opacity:.65!important; } .input-mode-switch button[aria-pressed="true"]:disabled { opacity:1!important; } .control-toolbar .range-pill,.control-toolbar .config-btn { height:var(--pill-md); border-radius:var(--pill-radius); } .control-toolbar .range-pill button { height:var(--pill-md); } .window-actions button { width:var(--pill-md); height:var(--pill-md); } .console-toolbar select,.console-toolbar button { height:var(--pill-sm); border-radius:var(--pill-radius); } .modal input,.modal select,.modal .number-pill { height:var(--pill-md); border-radius:var(--pill-radius); } .modal .number-pill input,.modal .number-pill button { height:calc(var(--pill-md) - 2px); } .modal .button { min-height:var(--pill-md); padding:8px 18px; border-radius:var(--pill-radius); } .modal .controller-mapping-row input[type="checkbox"] { height:22px; border-radius:4px; } /* Fixed SVG geometry avoids font baselines shifting the close icon. */ .modal-close,.modal-close:hover,.console-close,.console-close:hover,.window-actions .window-close,.window-actions .window-close:hover { display:grid; place-items:center; width:var(--pill-md); height:var(--pill-md); padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; } .modal-close svg,.console-close svg { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; } .modal-close:hover,.console-close:hover { color:#222; } .heave-knob { height:var(--pill-md); background:linear-gradient(145deg,#737373,#454545); } /* Activity has a heading, compact event history, then explicit actions. */ .telemetry-zone { gap:16px; } .deck-status-bar { flex-shrink:0; margin-top:0; padding-top:12px; } .activity-heading { display:block; margin:0 0 8px; color:#eee; font-size:14px; font-weight:650; } .activity-history { gap:4px; margin:0 0 10px; } .activity-actions { display:flex; gap:8px; } .activity-actions .logs-link { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; height:var(--pill-sm); min-width:76px; padding:0 14px; margin:0; border:0; border-radius:var(--pill-radius); background:#414141; color:#eee; font-size:12px; font-weight:400; letter-spacing:0; line-height:1; cursor:pointer; } .activity-actions .logs-link:hover { background:#4b4b4b; } .activity-actions .logs-link:focus-visible { outline:2px solid #a5c0d0; outline-offset:2px; } .activity-actions .logs-link[aria-expanded="true"] { background:#555; } /* Battery is the final deck item: text floats above the charge fill. */ .battery-card { position:relative; display:block; flex-shrink:0; width:100%; height:var(--pill-lg); min-height:var(--pill-lg); margin:0; padding:0; overflow:hidden; border:0; border-radius:var(--pill-radius); background:#314b3a; color:#f2f5f2; isolation:isolate; } .battery-meter { position:absolute; inset:0; z-index:0; overflow:hidden; border-radius:inherit; pointer-events:none; } .battery-meter #battery-fill { display:block; height:100%; width:0; border-radius:inherit; background:var(--battery-charge); opacity:.55; transition:width .35s ease,background .2s ease,opacity .18s ease-out; } .battery-card .battery-copy { position:absolute; inset:0; z-index:1; display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:8px; padding:0 18px; pointer-events:none; } .battery-summary { display:flex; flex-direction:column; gap:3px; flex-shrink:0; } .battery-card small { color:#d7e8dc; font-size:12px; line-height:1; font-variant-numeric:tabular-nums; } .battery-card strong { font-size:26px; font-weight:400; line-height:1.15; font-variant-numeric:tabular-nums; } .battery-card i { align-self:auto; color:#d9e0da; text-align:right; font-size:12px; line-height:1.35; font-style:normal; } .battery-card[data-low="true"] { background:#4a3734; } .battery-card[data-stale="true"] #battery-fill { opacity:.25; } .battery-card:focus-visible { outline:2px solid #a5c0d0; outline-offset:2px; } /* The same slender, rounded scrollbar is used by every scrollable panel. */ *::-webkit-scrollbar { width:8px; height:8px; } *::-webkit-scrollbar-track,*::-webkit-scrollbar-corner { background:transparent; } *::-webkit-scrollbar-thumb { min-height:28px; border:2px solid transparent; border-radius:var(--pill-radius); background:#aeb6ba; background-clip:padding-box; } *::-webkit-scrollbar-thumb:hover { background:#87959e; background-clip:padding-box; } *::-webkit-scrollbar-button { display:none; width:0; height:0; } .sidebar-deck::-webkit-scrollbar-thumb { background:#666; background-clip:padding-box; } .modal { scrollbar-gutter:stable; } @supports not selector(::-webkit-scrollbar) { * { scrollbar-width:thin; scrollbar-color:#aeb6ba transparent; } } @media (max-height:610px) { .telemetry-zone { gap:12px; } } /* Shared panel geometry and quiet, presentational motion. Never ease command data. */ :root { --panel-inset:20px; --ui-gap:12px; --ui-duration:180ms; --ui-ease:cubic-bezier(.2,0,.2,1); } .sidebar-deck,.controls-workspace,.console-dock { padding:var(--panel-inset); } .sidebar-deck,.telemetry-zone,.deck-connection,.port-row,.activity-actions,.input-mode-controls,.console-toolbar,.console-streams { gap:var(--ui-gap); } .deck-connection { padding-bottom:var(--ui-gap); } .workspace-topbar,.console-dock-header { min-height:var(--pill-md); height:var(--pill-md); margin-bottom:var(--ui-gap); } .port-row select,.port-row .icon-button { height:var(--pill-md); } .port-row .icon-button { width:var(--pill-md); } .activity-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } .activity-actions .logs-link { min-width:0; width:100%; } .console-dock-header h2 { margin:0; } .console-toolbar { margin-bottom:var(--ui-gap); } .console-state { min-height:0; margin:0 0 var(--ui-gap); font-size:12px; } .console-side > header { padding-left:0; padding-right:0; } .console-side > header i { background:#b4bdc2; transition:background-color var(--ui-duration) ease-out,box-shadow var(--ui-duration) ease-out; } .console-side > header .rx-dot.lit { background:#4fa4cf; box-shadow:0 0 5px #4fa4cf66; } .console-side > header .tx-dot.lit { background:#56ae8a; box-shadow:0 0 5px #56ae8a66; } :is(button,select,input,.input-mode-switch,.console-row summary,.heave-knob,.heave-fill,.control-status,.battery-card)::before, :is(button,select,input,.input-mode-switch,.console-row summary,.heave-knob,.heave-fill,.control-status,.battery-card)::after, :is(button,select,input,.input-mode-switch,.console-row summary,.heave-knob,.heave-fill,.control-status,.battery-card) { transition-property:background-color,border-color,color,opacity,box-shadow,filter; transition-duration:var(--ui-duration); transition-timing-function:var(--ui-ease); } /* Keep pointer positions immediate; the existing conditioning owns motor easing. */ .modal[open],.console-dock:not([hidden]),.form-feedback:not([hidden]),.console-state:not([hidden]),.console-row pre { animation:ui-fade-in var(--ui-duration) var(--ui-ease); } .modal.closing,.console-dock.closing { animation:ui-fade-out var(--ui-duration) ease-out forwards; pointer-events:none; } @keyframes ui-fade-in { from { opacity:0; } to { opacity:1; } } @keyframes ui-fade-out { from { opacity:1; } to { opacity:0; } } .controller-status { transition:opacity var(--ui-duration) ease-out; } .controller-status[data-quiet="true"] { opacity:0; pointer-events:none; } /* Motor scaling and control-plane fit: keep interaction areas inside their rows. */ .primary-control-zone { grid-template-rows:clamp(76px,14vh,108px) minmax(0,1fr) auto; } .engage-header-zone { height:auto; min-height:0; align-self:stretch; } body #engage { height:100%; min-height:0; } .controls-grid { --joy-size:min(40vh,calc(100cqw - 168px),380px); min-height:0; align-content:center; } .joystick { min-width:0; min-height:0; max-width:100%; max-height:100%; } .joystick-pad,.heave-pad { min-width:0; min-height:0; flex:1 1 auto; overflow:hidden; } .control-card { min-width:0; min-height:0; overflow:hidden; } .control-toolbar { flex-wrap:nowrap; min-height:48px; padding:5px 0 0; gap:clamp(8px,1.5vw,18px); } .control-toolbar .output-limit { min-width:0; } .control-toolbar .output-limit > span { flex:0 1 120px; width:120px; } .control-toolbar .range-pill { width:clamp(112px,20cqw,190px); flex:0 1 190px; } body[data-motor-scaling="independent"] .control-toolbar .output-limit { opacity:.42; } body[data-motor-scaling="independent"] .control-toolbar .range-pill { background:#dedfdf; } .control-toolbar .range-pill :disabled { cursor:not-allowed; } @media (max-height:610px) { .primary-control-zone { grid-template-rows:clamp(64px,12vh,82px) minmax(0,1fr) auto; } .controls-grid { --joy-size:min(34vh,calc(100cqw - 168px),300px); } } .motor-modal { width:min(720px,calc(100vw - 36px)); max-height:calc(100dvh - 28px); padding:clamp(18px,3vw,28px); overflow:auto; } .motor-modal > h2 { margin:0 0 2px; } .motor-scale-heading { display:flex; align-items:center; justify-content:space-between; padding:12px 0 7px; border-bottom:1px solid #e7eae7; color:#56635b; font-size:12px; } .switch-control { display:flex; align-items:center; gap:9px; cursor:pointer; color:#34423a; font-size:12px; } .switch-control input { position:absolute; opacity:0; width:1px; height:1px; } .switch-track { position:relative; display:block; width:34px; height:20px; border-radius:999px; background:#d8ddda; transition:background-color 160ms ease-out; } .switch-track::after { content:""; position:absolute; width:14px; height:14px; left:3px; top:3px; border-radius:50%; background:#fff; box-shadow:0 1px 2px #0002; transition:transform 160ms ease-out; } .switch-control input:checked + .switch-track { background:#4d8767; } .switch-control input:checked + .switch-track::after { transform:translateX(14px); } .switch-control input:focus-visible + .switch-track { outline:2px solid #6598b5; outline-offset:3px; } .motor-list { display:grid; } .motor-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,1.5fr) 42px 76px; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #e7eae7; } .motor-name { min-width:0; height:34px; padding:0 8px; border:1px solid transparent; border-radius:6px; background:transparent; font-size:13px; } .motor-name:hover,.motor-name:focus { border-color:#d8dfda; background:#fff; } .motor-row .motor-scale { width:100%; min-width:0; height:22px; padding:0; border:0; background:transparent; accent-color:#4d8767; } .motor-scale-value { color:#344b3c; font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; text-align:right; } .motor-reverse { min-height:30px; padding:5px 9px; font-size:11px; } .motor-reverse:disabled { opacity:.42; cursor:not-allowed; } .motor-channel { grid-column:1/-1; margin-top:-8px; color:#87918a; font-size:10px; } .motor-mapping { margin-top:8px; } .motor-mapping summary { padding:9px 0; color:#657168; font-size:12px; cursor:pointer; } .motor-map-row { display:grid; grid-template-columns:65px minmax(0,1fr) 72px; align-items:center; gap:9px; padding:6px 0; border-bottom:1px solid #edf0ed; } .motor-map-port { color:#4b5a50; font:11px ui-monospace,Consolas,monospace; } .motor-map-row select { height:32px; font-size:12px; } .motor-map-direction { color:#77827b; font-size:11px; text-align:right; } body[data-motor-scaling="independent"] .control-toolbar .output-limit { opacity:.42; } body[data-motor-scaling="independent"] .control-toolbar .range-pill { background:#dedfdf; } .control-toolbar .range-pill :disabled { cursor:not-allowed; } .controls-grid { align-content:start; } .joystick-pad,.heave-pad { padding-top:0; } .joystick { transform:translateY(-7px); } @media (max-width:640px) { .motor-row { grid-template-columns:minmax(0,1fr) minmax(75px,1.3fr) 38px 70px; gap:7px; } .motor-map-row { grid-template-columns:54px minmax(0,1fr) 64px; gap:6px; } } @media (max-width:520px) { .motor-modal { padding:18px 14px; } .motor-row { grid-template-columns:minmax(0,1fr) minmax(64px,1fr) 36px 66px; gap:5px; } .motor-name { font-size:12px; } .motor-reverse { padding:5px 6px; } } @media (prefers-reduced-motion:reduce) { .switch-track,.switch-track::after { transition:none; } }