.plan-heading, .plan-result-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plan-heading { margin: 12px 0 24px; }
.plan-heading h2 { font-size: 2rem; margin: 4px 0 8px; }
.plan-heading p { color: var(--muted); margin: 0; line-height: 1.5; }
.plan-heading .plan-eyebrow { color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.plan-workspace { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.plan-steps { display: grid; gap: 12px; }
.plan-step { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.plan-step > summary { cursor: pointer; padding: 18px; font-weight: 750; line-height: 1.4; }
.plan-step > summary span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eaf3ee; color: #235b49; margin-right: 6px; }
.plan-step-body { padding: 0 18px 18px; }
.plan-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 16px 0; }
.plan-field { display: flex; flex-direction: column; gap: 7px; font-size: .82rem; font-weight: 650; min-width: 0; }
.plan-field input, .plan-field select { width: 100%; min-width: 0; min-height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; color: var(--ink); font: inherit; }
.plan-field input:invalid { border-color: #b34d42; }
.plan-field small, .plan-hint, .plan-footnote { color: var(--muted); font-weight: 400; font-size: .77rem; line-height: 1.55; }
.plan-hint { margin: 12px 0; }
.plan-check { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 650; }
.plan-check input { width: 18px; height: 18px; flex: 0 0 auto; }
.plan-subdetails { margin-top: 16px; }
.plan-subdetails > summary { cursor: pointer; font-size: .83rem; font-weight: 700; padding: 8px 0; }
.plan-sale { padding: 13px 0; border-bottom: 1px solid var(--line); }
.plan-results { min-width: 0; padding: 20px; background: #f4f7f5; border: 1px solid #dce7df; border-radius: 16px; }
.plan-result-title { align-items: start; flex-wrap: wrap; }
.plan-result-title h3 { margin: 0; font-size: 1rem; }
.plan-result-title .badge { font-size: .7rem; }
.plan-loan-note { display: grid; gap: 4px; margin-top: 14px; padding: 10px 12px; border: 1px solid #ead7a2; border-radius: 10px; background: #fffaf0; color: #193f39; font-size: .86rem; }
.plan-loan-note span { color: #5c6964; font-weight: 700; }
.plan-kpis { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.plan-kpis-main { grid-template-columns: repeat(3, minmax(0,1fr)); }
.plan-kpis article { padding: 16px 12px; border-radius: 12px; background: #fff; min-width: 0; }
.plan-kpis strong { display: block; margin: 8px 0; font-size: clamp(1.05rem,2vw,1.45rem); color: #193f39; letter-spacing: -.03em; white-space: nowrap; }
.plan-kpis small, .plan-kpis span { display: block; font-size: .73rem; line-height: 1.4; }
.plan-buy-result { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px; border-radius: 12px; background: #e8f0ec; margin: 0 0 18px; }
.plan-buy-result div { display: grid; gap: 4px; }
.plan-buy-result small, .plan-buy-result span { color: #5c6964; font-size: .76rem; line-height: 1.4; }
.plan-buy-result strong { color: #193f39; font-size: .9rem; }
.text-button { grid-column: 2; padding: 0; border: 0; background: transparent; color: #426d58; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 700; text-align: right; }
.plan-cash h4 { margin: 18px 0 12px; }
.plan-cash > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: .8rem; border-bottom: 1px solid #dce4df; }
.plan-cash b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-cash > div:last-child { font-weight: 750; }
.plan-capacity { font-size: .82rem; line-height: 1.55; padding: 12px; border-radius: 8px; background: #e8f0ec; }
.plan-table-wrap { overflow-x: auto; }
.plan-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.plan-table th, .plan-table td { padding: 11px 6px; border-bottom: 1px solid #dce4df; text-align: right; font-variant-numeric: tabular-nums; }
.plan-table th:first-child { text-align: left; font-weight: 600; }
.plan-table th small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }
.plan-warnings { padding: 10px 12px; background: #fff1d9; border-radius: 8px; font-size: .8rem; margin-top: 16px; }
.plan-warnings p { margin: 6px 0; line-height: 1.5; }
.plan-save { margin-top: 20px; }
.plan-save-row { display: flex; align-items: end; gap: 12px; margin-top: 16px; }
.plan-save-row .plan-field { flex: 1; }
.plan-footnote { margin: 18px 0; }
.plan-step [hidden] { display: none !important; }
@media (max-width: 900px) { .plan-workspace { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .plan-heading { align-items: start; } .plan-heading h2 { font-size: 1.6rem; } .plan-fields, .plan-kpis-main { grid-template-columns: 1fr; } .plan-buy-result { grid-template-columns: 1fr; } .text-button { grid-column: auto; text-align: left; } .plan-save-row { align-items: stretch; flex-direction: column; } .plan-results { padding: 14px; } }

.plan-fields .plan-field:has(select) { grid-column: 1 / -1; }
@media (min-width: 561px) { .tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
