.c-hero { padding-block: clamp(30px, 5vw, 60px) clamp(20px, 3vw, 34px); }
.c-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); max-width: 16ch; }
.c-hero p { max-width: 52ch; margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.12rem); }
.c-panel { margin-top: 0; }
.c-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr); gap: 20px; align-items: start; }
.c-mode { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.c-mode legend { margin-bottom: 8px; font-weight: 750; }
.c-choice { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid #d9d4ec; border-radius: 999px; background: #fbfaff; cursor: pointer; }
.c-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); }
/* Anula o estilo geral dos campos de texto (style.css) nestes botões de escolha. */
.c-choice input[type="radio"] { display: inline-block; flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--brand); }
.c-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-help { margin: -4px 0 14px; font-size: .86rem; }
.c-result-panel .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-breakdown { margin-top: 6px; }
.c-breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #ffffff2e; font-size: .9rem; }
.c-breakdown dt { color: #dfe1f7; }
.c-breakdown dd { color: #fff; white-space: nowrap; }
.c-breakdown .c-total { font-weight: 800; }
.c-warning { margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: #fff0df; color: #6d4019 !important; font-size: .9rem; }
.c-info h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.c-table { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.c-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.c-table th, .c-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.c-table th { background: #f6f4ff; }
.c-table tbody tr:last-child td { border-bottom: 0; }
.c-table tr.c-current td { background: var(--brand-tint); font-weight: 750; }
.c-rules { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: .93rem; }
.c-rules li + li { margin-top: 5px; }
.c-source { margin-top: 10px; font-size: .84rem; }
.c-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 20px; }
.c-cta h2 { font-size: 1.25rem; }
.c-cta p { margin-top: 6px; color: var(--muted); }
.c-cta .primary { flex: none; text-decoration: none; }

@media (max-width: 850px) {
  .c-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .c-fields { grid-template-columns: minmax(0, 1fr); }
  .c-cta { flex-direction: column; align-items: stretch; }
  .c-mode { flex-direction: column; }
  #c-submit { width: 100%; }
}
.manual-result .metric.c-loss { background: #fce7e0; color: #873527; border-color: #fce7e0; }
.manual-result .metric.c-loss span { color: #873527; }
.c-extras { margin: 0 0 14px; }
.c-extras .fields { margin-top: 12px; }
