.card {
      background: var(--card);
      border: 1px solid rgba(229, 231, 235, 0.9);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 24px;
    }

.card h2 {
      margin: 0 0 18px;
      font-size: 20px;
    }

.field {
      margin-bottom: 18px;
    }

.field label,
    .section-label {
      display: block;
      margin-bottom: 7px;
      font-weight: 700;
      font-size: 14px;
    }

.input-wrap {
      position: relative;
    }

.suffix {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      font-size: 14px;
      pointer-events: none;
    }

.help {
      margin-top: 6px;
      color: var(--muted);
      font-size: 12px;
    }

.hero-result {
      padding: 22px;
      border-radius: 16px;
      background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #0f766e);
      color: white;
      margin-bottom: 18px;
    }

.hero-result .label {
      font-size: 14px;
      opacity: .86;
    }

.hero-result .value {
      margin: 4px 0 2px;
      font-size: clamp(32px, 5vw, 52px);
      line-height: 1.15;
      font-weight: 800;
      letter-spacing: -0.04em;
    }

.hero-result .ratio {
      font-size: 14px;
      opacity: .9;
    }

.warning {
      display: none;
      margin: 0 0 16px;
      padding: 12px 14px;
      border-radius: 12px;
      background: var(--danger-soft);
      color: var(--danger);
      font-weight: 700;
      font-size: 14px;
    }

.tabs {
      display: flex;
      gap: 8px;
      margin: 22px 0;
      padding: 6px;
      background: rgba(255,255,255,.78);
      border: 1px solid var(--line);
      border-radius: 14px;
      width: fit-content;
      box-shadow: 0 8px 20px rgba(15,23,42,.05);
    }

.tab-btn {
      border: 0;
      border-radius: 10px;
      padding: 10px 16px;
      background: transparent;
      color: var(--muted);
      font-weight: 800;
      cursor: pointer;
    }

.tab-btn.active {
      background: var(--primary);
      color: #fff;
    }

.page-panel { display: none; }

.page-panel.active { display: block; }

.metric-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin: 16px 0;
    }

.metric {
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #f8fafc;
    }

.metric .metric-label {
      color: var(--muted);
      font-size: 13px;
    }

.metric .metric-value {
      margin-top: 3px;
      font-size: 24px;
      font-weight: 800;
      line-height: 1.25;
    }
