    * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    html, body {
      margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: #dbeefe;
      user-select: none;
    }
    #canvas-container {
      position: fixed; inset: 0; width: 100vw; height: 100vh; overflow: hidden; z-index: 1;
    }
    #canvas-container canvas { display: block; width: 100%; height: 100%; outline: none; }

    /* Glassmorphic UI styling */
    .glass-panel {
      background: rgba(15, 23, 42, 0.82);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(148, 163, 184, 0.22);
      box-shadow: 0 12px 32px -6px rgba(2, 6, 23, 0.45);
      color: #f8fafc;
      transition: background 0.3s ease, border-color 0.3s ease;
    }

    .custom-scroll::-webkit-scrollbar { width: 5px; }
    .custom-scroll::-webkit-scrollbar-track { background: transparent; }
    .custom-scroll::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.35); border-radius: 9999px; }

    /* Floating 3D HTML Labels */
    #labels-layer {
      position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 10;
    }
    .room-label {
      position: absolute; transform: translate(-50%, -50%);
      padding: 4px 9px; border-radius: 9999px;
      font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
      background: rgba(15, 23, 42, 0.84); color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.22);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
      backdrop-filter: blur(6px);
      transition: opacity 0.2s ease;
      display: flex; align-items: center; gap: 5px;
    }
    .room-label .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
    .dim-label {
      position: absolute; transform: translate(-50%, -50%);
      padding: 3px 9px; border-radius: 8px;
      font-size: 10.5px; font-weight: 700; white-space: nowrap;
      background: rgba(245, 158, 11, 0.95); color: #0f172a;
      border: 1.5px solid #ffffff;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
      transition: opacity 0.2s ease;
    }

    /* Toggle Switch */
    .toggle-track {
      width: 36px; height: 20px; border-radius: 9999px;
      background: #334155; position: relative;
      transition: background-color 0.2s ease; flex-shrink: 0;
    }
    .toggle-track.active { background: #0d9488; }
    .toggle-track.active-cyan { background: #06b6d4; }
    .toggle-track.active-amber { background: #f59e0b; }
    .toggle-track.active-purple { background: #a855f7; }
    .toggle-track.active-teal { background: #0d9488; }
    .toggle-thumb {
      width: 14px; height: 14px; border-radius: 50%; background: #ffffff;
      position: absolute; top: 3px; left: 3px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
      transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .toggle-track.active .toggle-thumb,
    .toggle-track.active-cyan .toggle-thumb,
    .toggle-track.active-amber .toggle-thumb,
    .toggle-track.active-purple .toggle-thumb,
    .toggle-track.active-teal .toggle-thumb {
      transform: translateX(16px);
    }

    /* Sub-chip buttons */
    .chip-btn {
      font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 8px;
      border: 1px solid rgba(148, 163, 184, 0.25);
      background: rgba(30, 41, 59, 0.7); color: #cbd5e1;
      transition: all 0.18s ease; display: flex; align-items: center; gap: 5px;
    }
    .chip-btn.active {
      background: rgba(255, 255, 255, 0.14); color: #ffffff;
      border-color: rgba(255, 255, 255, 0.45);
    }

    .btn-cam {
      background: rgba(30, 41, 59, 0.75); color: #e2e8f0;
      border: 1px solid rgba(148, 163, 184, 0.22);
      transition: all 0.18s ease;
    }
    .btn-cam:hover {
      background: rgba(51, 65, 85, 0.92); border-color: rgba(45, 212, 191, 0.55);
    }
    .btn-cam.active-cam {
      background: #0d9488; color: #ffffff; border-color: #14b8a6;
    }

    /* Blueprint Tab styling */
    .bp-tab {
      padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 700;
      color: #475569; background: #e2e8f0; transition: all 0.18s ease;
    }
    .bp-tab.active {
      color: #ffffff; background: #0f172a; box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
    }
    @media print {
      body { background: #ffffff !important; overflow: visible !important; }
      #canvas-container, #labels-layer, header, aside, #panel-toggle-btn, #load-overlay { display: none !important; }
      #blueprint-modal:not(.hidden), #cost-modal:not(.hidden) { position: static !important; display: flex !important; background: #ffffff !important; padding: 0 !important; }
      #blueprint-modal > div, #cost-modal > div { max-height: none !important; box-shadow: none !important; }
    }
