/* 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; } /* ══════════════════════════════════════════════════════════════════ 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; } .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; min-width: 74px; } .engage-face > span { grid-area: 1/1; font-size: 11px; font-weight: 650; letter-spacing: .12em; } .engage-label { 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; } .arm:not(:disabled):not(.charging):not(.canceling):not(.state-transition) .engage-label { animation: engage-shimmer 4.8s linear infinite; } .engage-progress-label { color: #a9ed72; clip-path: inset(0 calc(100% - var(--engage-progress)) 0 0); transition: opacity .18s ease; } .state-transition .engage-face { animation: state-label .24s ease-out; } @keyframes state-label { from {opacity:.35} to {opacity:1} } @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(600px, calc(100vw - 40px)); } .motor-head, .motor-row { display: grid; grid-template-columns: 70px 1fr 80px 75px; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #e0e4df; font-size: 10.5px; } .motor-head { font-weight: 500; color: #727a7c; border-bottom: 1.5px solid #c8cec6; } /* ── 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; } /* 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(64px,7.3vw,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; } } .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; } }