
  @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&family=Courier+Prime:wght@400;700&display=swap');

  :root {
    --navy: #1a2744;
    --gold: #c9a84c;
    --green-dark: #2d5a27;
    --green-mid: #4a7c42;
    --green-light: #a8d5a2;
    --asphalt: #3a3a3a;
    --concrete: #c8c0b0;
    --rv-blue: #2b6cb0;
    --rv-blue-light: #bee3f8;
    --bath-orange: #c05621;
    --bath-light: #fbd38d;
    --office-purple: #553c9a;
    --office-light: #d6bcfa;
    --locker-teal: #234e52;
    --locker-light: #b2f5ea;
    --white: #fafaf7;
    --text: #1a1a1a;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: #0f1923;
    font-family: 'DM Sans', sans-serif;
    color: var(--white);
    min-height: 100vh;
  }

  header {
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-left h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--gold);
    line-height: 1;
  }

  .header-left p {
    font-size: 0.78rem;
    color: #aab4c8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 3px;
  }

  .header-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }

  .stat {
    text-align: center;
  }

  .stat .num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--gold);
    line-height: 1;
  }

  .stat .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aab4c8;
  }

  .main-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: calc(100vh - 80px);
  }

  .canvas-wrap {
    order: 1;
    width: 100%;
    overflow: auto;
    padding: 24px 20px 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  svg {
    width: 1200px;
    max-width: none;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.6));
  }

  .sidebar {
    order: 2;
    width: 100%;
    min-width: 0;
    background: #131e2e;
    border-right: none;
    border-top: 1px solid #2a3a52;
    padding: 20px 24px;
    overflow-y: visible;
  }

  .sidebar h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid #2a3a52;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s;
  }

  .legend-item:hover { background: #1e2e44; }

  .legend-swatch {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.15);
  }

  .legend-item span {
    font-size: 0.75rem;
    color: #ccd6e8;
    line-height: 1.3;
  }

  .legend-count {
    margin-left: auto;
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
  }

  .sidebar-section {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #2a3a52;
  }

  .info-box {
    background: #1a2744;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-left: 3px solid var(--gold);
  }

  .info-box .ib-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 3px;
  }

  .info-box .ib-val {
    font-family: 'Courier Prime', monospace;
    font-size: 0.82rem;
    color: var(--white);
  }

  .tooltip {
    position: fixed;
    background: #1a2744;
    border: 1.5px solid var(--gold);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.78rem;
    color: var(--white);
    pointer-events: none;
    z-index: 999;
    max-width: 220px;
    display: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  }

  .tooltip .tt-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 4px;
  }

  .tooltip .tt-body {
    color: #ccd6e8;
    line-height: 1.5;
  }

  .note-strip {
    background: #1a2744;
    border-top: 2px solid var(--gold);
    padding: 12px 32px;
    font-size: 0.72rem;
    color: #aab4c8;
    letter-spacing: 0.5px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
  }

  .note-strip strong { color: var(--gold); }

  @media (max-width: 768px) {
    header {
      padding: 14px 16px;
    }

    .header-left h1 {
      font-size: 1.5rem;
    }

    .header-stats {
      gap: 14px;
    }

    .canvas-wrap {
      padding: 14px 10px 24px;
      justify-content: flex-start;
    }

    svg {
      width: 1100px;
    }

    .sidebar {
      padding: 18px 14px;
    }
  }
