
    .calc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin: 32px 0; }
    @media (min-width: 900px) { .calc-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
    .calc-card { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
    .calc-row { margin-bottom: 22px; }
    .calc-row label { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; color: var(--text); }
    .calc-row output { font-weight: 700; color: var(--brand-text, #047857); font-size: 1.05rem; }
    .calc-row input[type="range"] { width: 100%; accent-color: var(--brand, #047857); }
    .calc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .calc-pills button { background: var(--bg-alt, var(--ground)); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: 0.8rem; font-weight: 600; cursor: pointer; color: var(--text); }
    .calc-pills button.on, .calc-pills button:hover { background: var(--ink, var(--ink)); color: #fff; border-color: var(--ink, var(--ink)); }
    
    .result-box { background: var(--bg-alt, #faf7f2); border: 2px solid var(--brand, #047857); border-radius: 12px; padding: 28px; position: sticky; top: 20px; }
    .target-highlight { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
    .target-highlight .target-num { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 900; font-family: var(--font-display, inherit); color: var(--brand-text, #047857); line-height: 1; }
    .target-highlight .target-sub { font-size: 0.9rem; color: var(--mute, var(--ink-3)); margin-top: 6px; font-weight: 500; }
    
    .breakdown-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.92rem; border-bottom: 1px dashed var(--border); }
    .breakdown-row.total { font-weight: 700; border-bottom: 2px solid var(--ink); font-size: 1rem; margin-top: 6px; }
    .breakdown-row .neg { color: #dc2626; }
    .breakdown-row .pos { color: var(--brand-text, #047857); }
    
    .breakdown-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin: 16px 0 8px; }
    .bar-takehome { background: var(--brand, #047857); }
    .bar-platform { background: #f59e0b; }
    .bar-tax { background: #ef4444; }
    .bar-transfer { background: #6366f1; }
    
    .bar-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.75rem; font-weight: 600; margin-bottom: 16px; }
    .legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }

    .action-row { display: flex; gap: 10px; margin-top: 20px; }
    .action-row a, .action-row button { flex: 1; text-align: center; }
  
    /* hourly-rate-calculator.html — inline-style replacements */
    .bar-init-w { width: 1%; }
    .bar-init-w.w62 { width: 62%; }
    .bar-init-w.w33 { width: 33%; }
    .bar-init-w.w15 { width: 15%; }
    .ld-brand { background: var(--brand); }
    .ld-amber { background: #f59e0b; }
    .ld-red { background: #ef4444; }
    .ld-indigo { background: #6366f1; }
    .hrc-wage { color: var(--brand-text); }
    .fine-mt16 { margin-top: 16px; }
    .hrc-prose { max-width: 760px; margin-top: 40px; }

/* Let the calculator use the shared shell without intrinsic form widths
   pushing the page sideways on a narrow screen. */
.calc-grid > * { min-width: 0; }
.calc-row label { flex-wrap: wrap; gap: 4px 12px; }
.breakdown-row { gap: 12px; flex-wrap: wrap; }
.action-row { flex-wrap: wrap; }
.action-row > * { min-width: 0; white-space: normal; }
@media (max-width: 480px) {
  .calc-card, .result-box { padding: 20px; }
  .action-row { flex-direction: column; }
}
