.er-desk {
    --er-deep: #064e3b;
    --er-emerald: #10b981;
    --er-gold: #d97706;
    --er-surface: #fff;
    --er-border: #e2e8f0;
    --er-bg-mute: #f8fafc;

    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    background: var(--er-surface);
    border: 1px solid var(--er-border);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(6, 78, 59, 0.1);
    display: flex;
    flex-direction: column;
  }

  .theme-dark .er-desk {
    --er-surface: #0f172a;
    --er-border: #1e293b;
    --er-bg-mute: #1e293b;
    --er-deep: #34d399;
  }

  .er-header {
    padding: 2rem 3rem;
    background: var(--er-bg-mute);
    border-bottom: 1px solid var(--er-border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .er-pill {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .er-pill-right {
    text-align: right;
  }

  .er-pill-row {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 4px;
  }

  .er-pill-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.5;
    letter-spacing: 0.05em;
    color: var(--er-deep);
  }

  .er-pill-input {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--er-deep);
    padding: 0;
    width: 100%;
    outline: none;
  }

  .er-pill-input-narrow {
    width: 100px;
    text-align: right;
  }

  .er-currency {
    font-weight: 900;
    color: var(--er-deep);
    opacity: 0.5;
  }

  .er-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 450px;
  }

  .er-sidebar {
    padding: 2.5rem;
    border-right: 1px solid var(--er-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .er-nav-btn {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    border-radius: 16px;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .er-nav-btn:hover {
    background: var(--er-bg-mute);
  }

  .er-nav-btn.er-active {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--er-emerald);
  }

  .er-btn-title {
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--er-deep);
  }

  .er-btn-desc {
    font-size: 0.75rem;
    opacity: 0.6;
    line-height: 1.3;
    color: var(--er-deep);
  }

  .er-main {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .er-result-hero {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
  }

  .er-metric-group {
    display: flex;
    flex-direction: column;
  }

  .er-metric-group-right {
    text-align: right;
  }

  .er-metric-large {
    font-size: 5rem;
    font-weight: 950;
    line-height: 1;
    color: var(--er-deep);
    letter-spacing: -3px;
  }

  .er-metric-large span {
    font-size: 1.25rem;
    letter-spacing: 0;
    opacity: 0.3;
  }

  .er-slider-unit {
    margin: 2.5rem 0;
  }

  .er-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--er-border);
    border-radius: 10px;
    outline: none;
  }

  .er-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--er-deep);
    border: 4px solid var(--er-surface);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .er-node-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
  }

  .er-node-year {
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0.3;
    color: var(--er-deep);
  }

  .er-stats-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--er-border);
  }

  .er-stat-box {
    display: flex;
    flex-direction: column;
  }

  .er-stat-box-right {
    text-align: right;
  }

  .er-stat-val {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--er-deep);
  }

  .er-stat-accent {
    color: var(--er-gold);
  }

  .er-advice-bar {
    padding: 1.25rem 3rem;
    background: var(--er-deep);
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
  }

  .er-advice-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  @media (max-width: 900px) {
    .er-body {
      grid-template-columns: 1fr;
    }

    .er-header {
      grid-template-columns: 1fr;
      padding: 2rem;
    }

    .er-sidebar {
      border-right: none;
      border-bottom: 1px solid var(--er-border);
      flex-direction: row;
      overflow-x: auto;
    }

    .er-nav-btn {
      min-width: 200px;
    }
  }