/* ── Sidebar ──────────────────────────────────────────────── */
  .sidebar { 
  display: flex; 
  flex-direction: column; 
  gap: 2rem; 
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  align-self: start;       /* needed in a grid/flex layout so it doesn't stretch to match .main's height */
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto; 
  }

  .sidebar-section {}
  .sidebar-section-title {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 10px;
  }

  /* Metrics grid */
  .metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border-lt);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1px;
  }
  .metric {
    background: var(--surface);
    padding: 10px 12px;
  }
  .metric-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    margin-bottom: 3px;
    letter-spacing: 0.04em;
  }
  .metric-value {
    font-family: var(--mono);
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
  }
  .metric-unit {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    margin-top: 2px;
  }
  
  /* ── Sidebar shell ──────────────────────────────────────── */
    .sidebar-form {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      position: sticky;
      top: 1rem;
    }
 
    .sidebar-form-header {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border-lt);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .sidebar-form-title {
      font-family: var(--mono);
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-3);
    }
    .sidebar-form-reset {
      font-family: var(--mono);
      font-size: 10px;
      color: var(--text-3);
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      transition: color 0.1s;
    }
    .sidebar-form-reset:hover { color: var(--text-2); }