#freelance .fxh-extra489{min-width:0;margin:14px 0;padding:16px;border:1px solid #dbe3ee;border-radius:14px;background:#f8fafc;color:#334155;box-sizing:border-box}
#freelance .fxh-extra489 h3{font-size:15px;font-weight:800;margin:0 0 10px;line-height:1.5}
#freelance .fxh-extra489 p{font-size:12px;line-height:1.7;margin:8px 0;overflow-wrap:anywhere}
#freelance .fxh-extra489 input,#freelance .fxh-extra489 select{width:100%;min-width:0;max-width:100%;font-size:16px;padding:10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;box-sizing:border-box}
#freelance [hidden]{display:none!important}
#freelance [aria-invalid="true"]{border:2px solid #dc2626!important}
#freelance #fxhErrors489,#freelance #fxhCompareError489{color:#b91c1c;font-size:13px;line-height:1.6}
#freelance #fxhErrors489:empty,#freelance #fxhCompareError489:empty{display:none}
#freelance .fxh-assumption-row489{display:flex;justify-content:space-between;gap:16px;padding:6px 0;border-bottom:1px solid #e2e8f0;font-size:12px}
#freelance .fxh-assumption-row489 dt,#freelance .fxh-assumption-row489 dd{margin:0;min-width:0;overflow-wrap:anywhere}
#freelance .fxh-assumption-row489 dd{font-weight:700;text-align:end}
#freelance .fxh-compare-table489{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;line-height:1.6}
#freelance .fxh-compare-table489 caption{font-size:14px;font-weight:800;text-align:start;padding:10px 0}
#freelance .fxh-compare-table489 th,#freelance .fxh-compare-table489 td{padding:10px 6px;border-bottom:1px solid #dbe3ee;text-align:start;vertical-align:top;overflow-wrap:anywhere}
#freelance .fxh-compare-table489 thead th{background:#eef2ff;color:#4338ca}
#freelance .fxh-compare-table489 td{font-weight:700}
#freelance #fxhChart .fxh-bar-row{grid-template-columns:minmax(0,1fr) minmax(30px,1fr) minmax(0,1fr)!important}
#freelance #fxhChart .fxh-bar-row span,#freelance #fxhChart .fxh-bar-row strong,#freelance .fxh-snapshot-grid-v447 span,#freelance .fxh-snapshot-grid-v447 b,#freelance .fxh-basic-income-grid-v462 b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;min-width:0!important}
#freelance #fxhResult #fxhMetrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#freelance #fxhMetrics .fxh-metric{min-width:0!important}
#freelance input:focus-visible,#freelance select:focus-visible,#freelance button:focus-visible{outline:3px solid #6366f1;outline-offset:3px}
.dark #freelance .fxh-extra489{background:#111827;color:#e2e8f0;border-color:#334155}
.dark #freelance .fxh-extra489 input,.dark #freelance .fxh-extra489 select{background:#0f172a;color:#f8fafc;border-color:#475569}
.dark #freelance .fxh-compare-table489 thead th{background:#1e1b4b;color:#c7d2fe}
.dark #freelance #fxhErrors489,.dark #freelance #fxhCompareError489{color:#fca5a5}
@media(max-width:480px){#freelance .fxh-extra489{padding:12px}#freelance .fxh-compare-table489{font-size:11px}#freelance .fxh-compare-table489 th,#freelance .fxh-compare-table489 td{padding:8px 4px}#freelance #fxhResult #fxhMetrics{grid-template-columns:minmax(0,1fr)!important}}
#freelance .fxh-extra490 summary{cursor:pointer;font-weight:800;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
#freelance .fxh-extra490[open] summary{margin-bottom:14px}
#freelance .fxh-checkbox490{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.6;margin:10px 0}
#freelance .fxh-extra490 input[type="checkbox"]{width:18px;height:18px;flex:0 0 18px;padding:0;accent-color:#4f46e5}
#freelance .fxh-extra490 .fxh-field{margin:8px 0}
#freelance .fxh-extra490 .fxh-field span{font-size:12px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
#freelance .fxh-extra490 .fxh-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
#freelance .fxh-extra490 .fxh-metric{min-width:0;padding:12px;border-radius:10px;background:#eef2ff}
#freelance .fxh-extra490 .fxh-metric span{display:block;font-size:12px;line-height:1.6}
#freelance .fxh-extra490 .fxh-metric strong{display:block;font-size:16px;line-height:1.5;margin-top:5px;white-space:normal;overflow-wrap:anywhere}
#freelance .fxh-error490{color:#b91c1c;font-size:13px;line-height:1.6}
#freelance .fxh-error490:empty{display:none}
#freelance input[readonly]{background:#eef2ff!important;color:#334155!important}
.dark #freelance .fxh-extra490 .fxh-metric,.dark #freelance input[readonly]{background:#1e1b4b!important;color:#e0e7ff!important}
.dark #freelance .fxh-error490{color:#fca5a5}
@media(max-width:480px){#freelance .fxh-extra490 .fxh-metrics{grid-template-columns:minmax(0,1fr)}#freelance #fxhSensitivityResult490 .fxh-compare-table489{font-size:10px}}

/* V491: optional planning inputs become available after opting in. */
#freelance .fxh-extra490 input:disabled{background:#eef0f3!important;color:#6b7280!important;border-color:#d1d5db!important;cursor:not-allowed;opacity:1}
#freelance .fxh-extra490 .fxh-field:has(input:disabled)>span{color:#6b7280}
html[data-theme="dark"] #freelance .fxh-extra490 input:disabled,.dark #freelance .fxh-extra490 input:disabled{background:#27313f!important;color:#a6afbd!important;border-color:#475569!important}
