* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      user-select: none;
    }
    body, html {
      width: 100%;
      height: 100%;
      overflow: hidden;
      background-color: #0a0f18;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      color: #e2e8f0;
    }
    #app-container {
      position: relative;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
    }
    #canvas-container {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
    }

    /* Top Header Bar */
    .top-bar {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 50px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(15, 23, 42, 0.96);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(51, 65, 85, 0.8);
      padding: 0 16px;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
      z-index: 30;
    }
    .brand-title {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .telemetry-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 10px;
      font-weight: 700;
      color: #38bdf8;
      background: rgba(14, 165, 233, 0.15);
      border: 1px solid rgba(56, 189, 248, 0.35);
      border-radius: 9999px;
      padding: 2px 8px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
    .badge-icon-spin {
      display: inline-block;
      font-size: 11px;
      animation: pulse-ring 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }
    @keyframes pulse-ring {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.6; transform: scale(1.15); }
    }
    .header-title {
      font-size: 14px;
      font-weight: 700;
      color: #f8fafc;
      letter-spacing: 0.5px;
      margin: 0;
    }
    .inventory-stat-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: rgba(30, 41, 59, 0.85);
      border: 1px solid rgba(71, 85, 105, 0.6);
      border-radius: 9999px;
      padding: 3px 10px;
      font-size: 11px;
      color: #94a3b8;
    }
    .stat-label {
      color: #94a3b8;
      font-weight: 500;
    }
    .stat-value.highlight {
      color: #38bdf8;
      font-weight: 700;
      font-family: monospace;
    }
    .stat-sub {
      color: #64748b;
      font-size: 10px;
    }
    .brand-badge {
      font-size: 11px;
      background: rgba(14, 165, 233, 0.2);
      color: #38bdf8;
      border: 1px solid rgba(14, 165, 233, 0.4);
      padding: 2px 8px;
      border-radius: 9999px;
      font-weight: 600;
    }

    /* Center Header Tools */
    .header-center-tools {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* Mode Switcher Pill */
    .mode-switcher {
      display: flex;
      align-items: center;
      background: rgba(15, 23, 42, 0.95);
      border: 1px solid rgba(71, 85, 105, 0.6);
      border-radius: 9999px;
      padding: 3px;
      gap: 2px;
    }
    .mode-btn {
      background: transparent;
      color: #94a3b8;
      border: none;
      border-radius: 9999px;
      padding: 5px 14px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
    }
    .mode-btn:hover {
      color: #f8fafc;
    }
    .mode-btn.active {
      background: #0284c7;
      color: #ffffff;
      box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
    }

    /* Gizmo Switcher Pill */
    .gizmo-switcher {
      display: none;
      align-items: center;
      background: rgba(30, 41, 59, 0.85);
      border: 1px solid rgba(71, 85, 105, 0.6);
      border-radius: 8px;
      padding: 2px;
      gap: 2px;
    }
    .gizmo-btn {
      background: transparent;
      color: #cbd5e1;
      border: none;
      border-radius: 6px;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: all 0.15s ease;
      white-space: nowrap;
    }
    .gizmo-btn:hover {
      background: rgba(51, 65, 85, 0.8);
      color: #ffffff;
    }
    .gizmo-btn.active {
      background: #0284c7;
      color: #ffffff;
    }
    .gizmo-btn.toggle-subtle {
      border: 1px solid rgba(71, 85, 105, 0.4);
      background: rgba(15, 23, 42, 0.6);
    }
    .scene-quick-group {
      display: none;
      align-items: center;
      background: rgba(30, 41, 59, 0.85);
      border: 1px solid rgba(71, 85, 105, 0.6);
      border-radius: 8px;
      padding: 2px;
      gap: 2px;
    }

    /* Top Right Actions */
    .top-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .hud-stat-item {
      font-size: 12px;
      color: #94a3b8;
    }
    .hud-stat-item strong {
      color: #38bdf8;
      font-weight: 700;
      margin-left: 3px;
    }

    /* Button base */
    .btn {
      background: rgba(30, 41, 59, 0.85);
      color: #cbd5e1;
      border: 1px solid rgba(71, 85, 105, 0.6);
      border-radius: 8px;
      padding: 6px 12px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
      white-space: nowrap;
    }
    .btn:hover {
      background: rgba(51, 65, 85, 0.9);
      color: #ffffff;
      border-color: #38bdf8;
    }
    .btn.active {
      background: rgba(14, 165, 233, 0.25);
      color: #38bdf8;
      border-color: #0284c7;
    }
    .btn-primary {
      background: #0284c7;
      color: #ffffff;
      border-color: #0369a1;
    }
    .btn-primary:hover {
      background: #0369a1;
      border-color: #38bdf8;
    }
    .btn-success {
      background: rgba(16, 185, 129, 0.2);
      color: #6ee7b7;
      border-color: rgba(16, 185, 129, 0.4);
    }
    .btn-success:hover {
      background: rgba(16, 185, 129, 0.35);
      color: #ffffff;
    }
    .btn-danger {
      background: rgba(239, 68, 68, 0.2);
      color: #fca5a5;
      border-color: rgba(239, 68, 68, 0.4);
    }
    .btn-danger:hover {
      background: rgba(239, 68, 68, 0.4);
      color: #ffffff;
    }

    /* Floating Viewport Quick Action HUD (Centered Top) */
    .viewport-quick-tools {
      position: absolute;
      top: 60px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 4px;
      background: rgba(15, 23, 42, 0.92);
      backdrop-filter: blur(14px);
      border: 1px solid rgba(51, 65, 85, 0.8);
      padding: 4px 10px;
      border-radius: 9999px;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
      z-index: 20;
    }
    .quick-btn {
      background: transparent;
      color: #94a3b8;
      border: none;
      border-radius: 9999px;
      padding: 5px 10px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: all 0.15s ease;
      white-space: nowrap;
    }
    .quick-btn:hover {
      background: rgba(51, 65, 85, 0.8);
      color: #f8fafc;
    }
    .quick-btn.active {
      background: rgba(14, 165, 233, 0.25);
      color: #38bdf8;
    }

    /* Floating Bottom Controls (Minimalist fallback) */
    .controls-bar {
      display: none;
    }
    .separator {
      width: 1px;
      height: 18px;
      background: rgba(71, 85, 105, 0.6);
      margin: 0 4px;
    }

    /* Left Sidebar (Tabs for Elements, Cables, Pins, Settings) */
    .sidebar {
      position: absolute;
      top: 60px;
      left: 16px;
      bottom: 16px;
      width: 320px;
      background: rgba(15, 23, 42, 0.95);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(51, 65, 85, 0.8);
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
      z-index: 20;
      overflow: hidden;
      transition: transform 0.25s ease;
    }
    .sidebar.collapsed {
      transform: translateX(-350px);
    }
    .sidebar-tabs {
      display: flex;
      border-bottom: 1px solid rgba(51, 65, 85, 0.8);
      background: rgba(15, 23, 42, 0.6);
    }
    .sidebar-tab-btn {
      flex: 1;
      padding: 10px 4px;
      background: transparent;
      border: none;
      color: #94a3b8;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      border-bottom: 2px solid transparent;
      transition: all 0.2s;
      text-align: center;
    }
    .sidebar-tab-btn.active {
      color: #38bdf8;
      border-bottom-color: #0284c7;
      background: rgba(14, 165, 233, 0.08);
    }
    .sidebar-tab-content {
      display: none;
      flex: 1;
      overflow-y: auto;
      padding: 10px;
    }
    .sidebar-tab-content.active {
      display: block;
    }

    .list-item {
      padding: 8px 10px;
      background: rgba(30, 41, 59, 0.5);
      border: 1px solid rgba(51, 65, 85, 0.4);
      border-radius: 8px;
      margin-bottom: 6px;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .list-item:hover {
      background: rgba(14, 165, 233, 0.15);
      border-color: #0284c7;
    }
    .list-item.selected {
      background: rgba(14, 165, 233, 0.25);
      border-color: #38bdf8;
    }
    .item-title {
      font-size: 12px;
      font-weight: 600;
      color: #f1f5f9;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .item-badge {
      font-size: 10px;
      color: #38bdf8;
      font-family: monospace;
    }
    .item-sub {
      font-size: 10px;
      color: #94a3b8;
      margin-top: 3px;
      font-family: monospace;
    }

    /* Right Inspector & Editor Panel (Matches PlacedInspectorPanel) */
    #editor-inspector-panel {
      display: none;
      position: absolute;
      top: 60px;
      right: 16px;
      bottom: 16px;
      width: 340px;
      background: rgba(15, 23, 42, 0.95);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(56, 189, 248, 0.4);
      border-radius: 12px;
      padding: 14px;
      box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
      z-index: 25;
      overflow-y: auto;
    }
    .panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(51, 65, 85, 0.8);
    }
    .panel-title {
      font-size: 13px;
      font-weight: 700;
      color: #f8fafc;
    }
    .control-row {
      margin-bottom: 10px;
    }
    .control-label {
      font-size: 11px;
      color: #94a3b8;
      margin-bottom: 4px;
      display: flex;
      justify-content: space-between;
    }
    .coord-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 6px;
    }
    .coord-input-box {
      background: rgba(30, 41, 59, 0.7);
      border: 1px solid rgba(71, 85, 105, 0.6);
      border-radius: 6px;
      padding: 4px;
      text-align: center;
    }
    .coord-input-box label {
      display: block;
      font-size: 9px;
      color: #38bdf8;
      font-weight: 700;
    }
    .coord-input-box input {
      width: 100%;
      background: transparent;
      border: none;
      color: #f8fafc;
      font-size: 12px;
      font-weight: 600;
      text-align: center;
      outline: none;
      font-family: monospace;
    }
    .step-btn-group {
      display: flex;
      gap: 4px;
      margin-top: 4px;
    }
    .step-btn {
      flex: 1;
      background: rgba(51, 65, 85, 0.5);
      border: 1px solid rgba(71, 85, 105, 0.4);
      color: #cbd5e1;
      font-size: 10px;
      padding: 3px 0;
      border-radius: 4px;
      cursor: pointer;
    }
    .step-btn:hover {
      background: rgba(14, 165, 233, 0.3);
      color: #ffffff;
    }

    /* Color picker & presets */
    .color-preset-btn {
      height: 22px;
      border-radius: 4px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      cursor: pointer;
      transition: transform 0.15s, border-color 0.15s;
    }
    .color-preset-btn:hover {
      transform: scale(1.15);
      border-color: #ffffff;
    }

    /* Pin list inside inspector */
    .pins-inspector-container {
      margin-top: 10px;
      border-top: 1px solid rgba(51, 65, 85, 0.8);
      padding-top: 10px;
    }
    .pin-row-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 5px 8px;
      background: rgba(30, 41, 59, 0.6);
      border: 1px solid rgba(71, 85, 105, 0.4);
      border-radius: 6px;
      margin-bottom: 4px;
      font-size: 11px;
    }
    .pin-type-tag {
      font-size: 9px;
      padding: 1px 5px;
      border-radius: 4px;
      font-weight: 700;
      text-transform: uppercase;
      margin-right: 5px;
    }

    /* Form elements */
    .form-select, .form-input {
      width: 100%;
      background: rgba(30, 41, 59, 0.8);
      border: 1px solid rgba(71, 85, 105, 0.8);
      color: #f8fafc;
      padding: 6px 8px;
      border-radius: 6px;
      font-size: 12px;
      outline: none;
      margin-bottom: 8px;
    }
    .checkbox-row {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: #cbd5e1;
      margin-bottom: 8px;
      cursor: pointer;
    }
    .checkbox-row input {
      accent-color: #0284c7;
      width: 15px;
      height: 15px;
    }

    /* 3D Pin Hover Tooltip */
    #pin-hover-tooltip {
      position: absolute;
      display: none;
      background: rgba(15, 23, 42, 0.95);
      backdrop-filter: blur(10px);
      border: 1px solid #38bdf8;
      border-radius: 8px;
      padding: 6px 10px;
      font-size: 11px;
      color: #f8fafc;
      pointer-events: none;
      z-index: 50;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
      white-space: nowrap;
      transform: translate(-50%, -120%);
    }

    /* Quick Tools Recording State */
    .quick-btn.recording {
      background: rgba(239, 68, 68, 0.3) !important;
      color: #ef4444 !important;
      border: 1px solid #ef4444 !important;
      animation: pulse-ring 1.5s infinite;
    }
    #video-recording-indicator {
      display: none;
      position: absolute;
      top: 60px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(239, 68, 68, 0.95);
      color: #fff;
      padding: 6px 16px;
      border-radius: 9999px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.5px;
      box-shadow: 0 0 25px rgba(239, 68, 68, 0.8);
      z-index: 50;
      align-items: center;
      gap: 8px;
      backdrop-filter: blur(8px);
    }
    #video-recording-indicator.active {
      display: flex;
    }
    #pin-placement-banner {
      display: none;
      position: absolute;
      top: 60px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(14, 165, 233, 0.95);
      color: #fff;
      padding: 8px 18px;
      border-radius: 9999px;
      font-size: 12px;
      font-weight: 600;
      box-shadow: 0 10px 25px rgba(14, 165, 233, 0.6);
      z-index: 50;
      align-items: center;
      gap: 10px;
    }
    #pin-placement-banner.active {
      display: flex;
    }
    #failsafe-hud-overlay {
      display: none;
      position: absolute;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(15, 23, 42, 0.95);
      backdrop-filter: blur(16px);
      border: 2px solid #ef4444;
      box-shadow: 0 0 30px rgba(239, 68, 68, 0.4), 0 20px 40px rgba(0, 0, 0, 0.8);
      border-radius: 14px;
      padding: 12px 18px;
      width: 480px;
      max-width: 90vw;
      z-index: 45;
      color: #f8fafc;
    }
    #failsafe-hud-overlay.active {
      display: block;
    }

    /* Modals (Catalog, Cable Connect, Pin Editor, Model Replace, Save Project) */
    #catalog-modal, #modal-cable-connect, #modal-pin-editor, #modal-model-replace, #modal-save-project {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(8px);
      z-index: 100;
      align-items: center;
      justify-content: center;
    }
    .modal-card {
      background: #0f172a;
      border: 1px solid #0284c7;
      border-radius: 14px;
      width: 580px;
      max-width: 92vw;
      max-height: 85vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
      overflow: hidden;
    }
    .model-tab-btn {
      flex: 1;
      padding: 8px 10px;
      font-size: 11px;
      font-weight: 600;
      color: #94a3b8;
      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .model-tab-btn:hover {
      color: #f8fafc;
    }
    .model-tab-btn.active {
      color: #38bdf8;
      border-bottom-color: #38bdf8;
      background: rgba(56, 189, 248, 0.08);
    }
    .model-dropzone {
      border: 2px dashed rgba(56, 189, 248, 0.4);
      border-radius: 10px;
      padding: 22px 16px;
      text-align: center;
      cursor: pointer;
      background: rgba(15, 23, 42, 0.5);
      transition: all 0.2s ease;
    }
    .model-dropzone:hover, .model-dropzone.drag-over {
      border-color: #38bdf8;
      background: rgba(56, 189, 248, 0.1);
      box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    }
    .preset-model-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      max-height: 280px;
      overflow-y: auto;
      padding-right: 4px;
    }
    .preset-model-card {
      background: rgba(30, 41, 59, 0.6);
      border: 1px solid rgba(71, 85, 105, 0.5);
      border-radius: 8px;
      padding: 8px 10px;
      cursor: pointer;
      transition: all 0.15s ease;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .preset-model-card:hover {
      border-color: #38bdf8;
      background: rgba(14, 165, 233, 0.15);
      transform: translateY(-1px);
    }
    .preset-model-card.active {
      border-color: #10b981;
      background: rgba(16, 185, 129, 0.2);
    }
    .modal-header {
      padding: 14px 18px;
      border-bottom: 1px solid rgba(51, 65, 85, 0.8);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .modal-header h3 {
      font-size: 14px;
      font-weight: 700;
      color: #f8fafc;
    }
    .modal-body {
      padding: 16px;
      overflow-y: auto;
      flex: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .catalog-item {
      background: rgba(30, 41, 59, 0.6);
      border: 1px solid rgba(71, 85, 105, 0.6);
      border-radius: 8px;
      padding: 10px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .catalog-item:hover {
      background: rgba(14, 165, 233, 0.15);
      border-color: #38bdf8;
      transform: translateY(-2px);
    }
    .catalog-item-title {
      font-size: 12px;
      font-weight: 700;
      color: #f8fafc;
    }
    .catalog-item-desc {
      font-size: 10px;
      color: #94a3b8;
      margin-top: 4px;
    }

    /* Loading Status Overlay */
    #viewer-status {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(15, 23, 42, 0.94);
      border: 1px solid rgba(56, 189, 248, 0.5);
      border-radius: 16px;
      padding: 16px 28px;
      font-size: 14px;
      font-weight: 600;
      color: #38bdf8;
      box-shadow: 0 20px 40px rgba(0,0,0,0.6);
      z-index: 100;
      text-align: center;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    /* Bottom Left Floating Harness & Mass HUD (User requested bottom-left corner) */
    #standalone-harness-mass-hud {
      position: absolute;
      bottom: 16px;
      left: 16px;
      right: auto;
      z-index: 22;
      max-width: 350px;
      width: 350px;
      transition: all 0.25s ease;
      font-family: inherit;
    }
    body:not(.sidebar-collapsed) #standalone-harness-mass-hud {
      left: 348px;
    }
    @media (max-width: 768px) {
      #standalone-harness-mass-hud {
        max-width: calc(100vw - 32px);
        left: 16px !important;
        right: auto !important;
      }
    }
    .hud-minimized-pill {
      display: none;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      border-radius: 12px;
      background: rgba(2, 6, 23, 0.9);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(6, 182, 212, 0.4);
      color: #fff;
      box-shadow: 0 10px 25px rgba(0,0,0,0.6);
      cursor: pointer;
      font-size: 11px;
    }
    .hud-minimized-pill:hover {
      border-color: #38bdf8;
      background: rgba(15, 23, 42, 0.95);
    }
    .hud-pill-divider {
      color: #475569;
    }
    .hud-pill-sub {
      font-size: 10px;
      color: #94a3b8;
      font-family: monospace;
    }
    .hud-expand-btn {
      background: transparent;
      border: none;
      color: #94a3b8;
      cursor: pointer;
      font-size: 10px;
      padding: 0 4px;
    }
    .hud-expanded-card {
      display: block;
      border-radius: 12px;
      background: rgba(2, 6, 23, 0.92);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(6, 182, 212, 0.4);
      box-shadow: 0 15px 35px rgba(0,0,0,0.65), 0 0 15px rgba(6, 182, 212, 0.12);
      overflow: hidden;
      color: #f1f5f9;
    }
    .hud-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.95));
      border-bottom: 1px solid rgba(51, 65, 85, 0.6);
    }
    .hud-header-title {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .hud-header-icon {
      font-size: 14px;
    }
    .hud-header-text {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #38bdf8;
    }
    .hud-header-sub {
      font-size: 9px;
      color: #94a3b8;
      font-family: monospace;
    }
    .hud-header-actions {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .hud-action-btn {
      background: transparent;
      border: none;
      color: #94a3b8;
      cursor: pointer;
      font-size: 11px;
      padding: 2px 6px;
      border-radius: 4px;
    }
    .hud-action-btn:hover {
      background: rgba(51, 65, 85, 0.5);
      color: #38bdf8;
    }
    .hud-body {
      padding: 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .hud-auw-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 10px;
      background: rgba(15, 23, 42, 0.8);
      border: 1px solid rgba(51, 65, 85, 0.6);
      border-radius: 8px;
    }
    .hud-stat-caption {
      font-size: 9px;
      font-weight: 700;
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .hud-auw-val {
      display: flex;
      align-items: baseline;
      gap: 4px;
      font-family: monospace;
      font-size: 16px;
      font-weight: 700;
      color: #38bdf8;
    }
    .hud-unit {
      font-size: 11px;
      color: #06b6d4;
    }
    .hud-stat-count {
      font-size: 9px;
      color: #94a3b8;
    }
    .hud-stat-cables {
      font-size: 9px;
      color: #38bdf8;
      font-family: monospace;
    }
    .hud-grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .hud-grid-cell {
      padding: 6px 8px;
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid rgba(51, 65, 85, 0.5);
      border-radius: 6px;
    }
    .hud-cell-label {
      font-size: 9px;
      margin-bottom: 2px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .hud-cell-val {
      font-family: monospace;
      font-size: 13px;
      font-weight: 700;
      color: #f1f5f9;
    }
    .hud-cell-sub {
      font-size: 8.5px;
      font-family: monospace;
      margin-top: 1px;
    }
    .text-cyan { color: #38bdf8; }
    .text-amber { color: #f59e0b; }
    .hud-bar-container {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .hud-bar-track {
      display: flex;
      height: 6px;
      border-radius: 9999px;
      overflow: hidden;
      background: #020617;
      border: 1px solid rgba(51, 65, 85, 0.8);
    }
    .hud-bar-fill-comp {
      background: #06b6d4;
      transition: width 0.3s ease;
    }
    .hud-bar-fill-harness {
      background: #f59e0b;
      transition: width 0.3s ease;
    }
    .hud-bar-labels {
      display: flex;
      justify-content: space-between;
      font-size: 8.5px;
      font-family: monospace;
      color: #94a3b8;
      padding: 0 2px;
    }
    .hud-cg-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 5px 8px;
      background: rgba(15, 23, 42, 0.4);
      border: 1px solid rgba(51, 65, 85, 0.4);
      border-radius: 6px;
      font-size: 9.5px;
    }
    .hud-cg-left {
      display: flex;
      align-items: center;
      gap: 4px;
      color: #cbd5e1;
    }
    .hud-cg-val {
      font-family: monospace;
      font-weight: 700;
      color: #e2e8f0;
      font-size: 9.5px;
    }