.piht-app,.piht-app *{box-sizing:border-box}
.piht-app{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#0f172a;width:100%;max-width:1320px;margin:0 auto;overflow-x:clip}
.piht-wrap{border:2px solid #7c2d12;border-radius:14px;padding:20px;background:linear-gradient(180deg,#fff 0%,#fffbeb 100%);box-shadow:0 10px 28px rgba(124,45,18,.12);width:100%;max-width:100%}
.piht-head{background:linear-gradient(135deg,#fff7ed 0%,#fef3c7 55%,#f8fafc 100%);border:1px solid #fdba74;border-radius:12px;padding:14px;margin:0 0 16px}
.piht-eyebrow{font-size:.72rem;font-weight:900;color:#c2410c;letter-spacing:.08em;text-transform:uppercase;margin:0 0 4px}
.piht-title{margin:0 0 8px;font-size:1.65rem;line-height:1.2;color:#7c2d12;font-weight:900}
.piht-sub{margin:0;color:#334155;font-size:.95rem;line-height:1.45}
.piht-banner{border-radius:10px;padding:12px 14px;margin:0 0 16px;font-size:.88rem;line-height:1.45}
.piht-banner--info{background:#eff6ff;border:1px solid #93c5fd;color:#1e3a8a}
.piht-hero{background:linear-gradient(135deg,#fff7ed 0%,#fef3c7 100%);border:1px solid #fdba74;color:#9a3412;padding:14px 16px;border-radius:12px;font-size:.95rem;font-weight:700;line-height:1.5;margin:0 0 16px}
.piht-guide{margin:0 0 20px;padding:16px;border:2px solid #e2e8f0;border-radius:14px;background:linear-gradient(180deg,#f8fafc 0%,#fff 100%)}
.piht-guide--intro{border-color:#cbd5e1}
.piht-results-explainer{padding:16px 18px;border-bottom:1px solid #e2e8f0;background:linear-gradient(180deg,#fffbeb 0%,#fff 100%)}
.piht-results-explainer .piht-age-split{margin-bottom:14px}
.piht-results-explainer .piht-flow{border-color:#fde68a;background:#fff}
.piht-guide-title{margin:0 0 8px;font-size:clamp(1.1rem,3vw,1.22rem);font-weight:900;color:#083141}
.piht-guide-lead{margin:0 0 14px;font-size:.9rem;line-height:1.5;color:#475569}
.piht-guide-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:0 0 18px}
.piht-guide-card{border-radius:12px;padding:14px;border:1px solid #e2e8f0;background:#fff}
.piht-guide-card--reform{border-color:#fdba74;background:linear-gradient(180deg,#fff7ed 0%,#fff 100%)}
.piht-guide-card--iht{border-color:#93c5fd;background:linear-gradient(180deg,#eff6ff 0%,#fff 100%)}
.piht-guide-card--pension{border-color:#c4b5fd;background:linear-gradient(180deg,#faf5ff 0%,#fff 100%)}
.piht-guide-card-num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;background:#083141;color:#fff;font-size:.78rem;font-weight:900;margin-bottom:8px}
.piht-guide-card--reform .piht-guide-card-num{background:#c2410c}
.piht-guide-card--iht .piht-guide-card-num{background:#1d4ed8}
.piht-guide-card--pension .piht-guide-card-num{background:#6d28d9}
.piht-guide-card-title{margin:0 0 6px;font-size:.92rem;font-weight:900;color:#083141}
.piht-guide-card-body{margin:0;font-size:.82rem;line-height:1.45;color:#475569}
.piht-age-split{margin:0 0 18px;padding:14px;border-radius:12px;border:1px solid #fde68a;background:#fffbeb}
.piht-age-split-title{margin:0 0 8px;font-size:clamp(1.02rem,2.8vw,1.12rem);font-weight:900;color:#7c2d12}
.piht-age-split-lead{margin:0 0 14px;font-size:.86rem;line-height:1.5;color:#475569}
.piht-age-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.piht-age-col{border-radius:12px;padding:14px;border:1px solid #e2e8f0;background:#fff;opacity:.88}
.piht-age-col--active{opacity:1;border-color:#7c2d12;box-shadow:0 0 0 2px rgba(124,45,18,.12)}
.piht-age-col-head{margin:0 0 10px}
.piht-age-col-badge{display:inline-block;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:#64748b;background:#f1f5f9;padding:3px 8px;border-radius:999px;margin-bottom:8px}
.piht-age-col--active .piht-age-col-badge{color:#c2410c;background:#ffedd5}
.piht-age-col-title{margin:0;font-size:.92rem;font-weight:900;color:#083141}
.piht-age-col-list{margin:0;padding-left:18px;font-size:.82rem;line-height:1.5;color:#334155}
.piht-age-col-list li{margin:0 0 8px}
.piht-age-col-note{margin:10px 0 0;font-size:.78rem;line-height:1.4;color:#64748b;font-style:italic}
.piht-age-tax-bars{margin-top:12px;padding-top:12px;border-top:1px dashed #e2e8f0}
.piht-age-tax-bars-title{margin:0 0 10px;font-size:.78rem;font-weight:800;color:#475569}
.piht-age-tax-row{display:grid;grid-template-columns:100px minmax(0,1fr) 72px;gap:8px;align-items:center;margin:0 0 8px;font-size:.8rem}
.piht-age-tax-track{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.piht-age-tax-fill{height:100%;border-radius:999px;min-width:4px}
.piht-age-tax-fill--lump{background:linear-gradient(90deg,#f87171,#dc2626)}
.piht-age-tax-fill--draw{background:linear-gradient(90deg,#34d399,#059669)}
.piht-age-scenario-note{margin:12px 0 0;padding:10px 12px;border-radius:10px;font-size:.84rem;font-weight:700;line-height:1.45}
.piht-age-scenario-note--green{background:#ecfdf5;border:1px solid #6ee7b7;color:#065f46}
.piht-age-scenario-note--amber{background:#fff7ed;border:1px solid #fdba74;color:#9a3412}
.piht-flow{margin:0;padding:14px;border-radius:12px;border:1px solid #e2e8f0;background:#fff}
.piht-flow-title{margin:0 0 12px;font-size:clamp(1.02rem,2.8vw,1.12rem);font-weight:900;color:#083141}
.piht-flow-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.piht-flow-step{display:flex;gap:10px;align-items:flex-start;padding:10px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0}
.piht-flow-step-num{flex-shrink:0;width:22px;height:22px;border-radius:999px;background:#083141;color:#fff;font-size:.72rem;font-weight:900;display:flex;align-items:center;justify-content:center}
.piht-flow-step-icon{font-size:1.1rem;line-height:1}
.piht-flow-step-body strong{display:block;font-size:.82rem;color:#083141;margin-bottom:4px}
.piht-flow-step-body p{margin:0;font-size:.76rem;line-height:1.4;color:#475569}
.piht-draw-compare{margin:12px 0 0;padding:14px;border-radius:12px;border:1px solid #c4b5fd;background:linear-gradient(180deg,#faf5ff 0%,#fff 100%)}
.piht-draw-compare-title{margin:0 0 6px;font-size:.92rem;font-weight:900;color:#6d28d9}
.piht-draw-compare-note{margin:0 0 12px;font-size:.78rem;line-height:1.45;color:#475569}
.piht-draw-compare-bars{display:flex;flex-direction:column;gap:10px}
.piht-draw-compare-row{display:grid;grid-template-columns:110px minmax(0,1fr) 80px;gap:8px;align-items:center;font-size:.82rem}
.piht-draw-compare-track{height:12px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.piht-draw-compare-fill{height:100%;border-radius:999px;min-width:8px}
.piht-draw-compare-fill--lump{background:linear-gradient(90deg,#f87171,#dc2626)}
.piht-draw-compare-fill--draw{background:linear-gradient(90deg,#34d399,#059669)}
.piht-draw-compare-saving{margin:10px 0 0;font-size:.8rem;font-weight:700;color:#047857;line-height:1.4}
.piht-faq{padding:18px 20px;border-bottom:1px solid #e2e8f0;background:#fff}
.piht-faq-title{margin:0}
.piht-faq-lead{margin:0 0 12px;font-size:.82rem;line-height:1.45;color:#475569}
.piht-faq-item{margin:0 0 8px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;overflow:hidden}
.piht-faq-q{padding:12px 14px;font-size:.88rem;font-weight:800;color:#083141;cursor:pointer;list-style:none}
.piht-faq-q::-webkit-details-marker{display:none}
.piht-faq-item[open]{background:#fff;border-color:#fdba74}
.piht-faq-item[open] .piht-faq-q{color:#7c2d12}
.piht-faq-a{margin:0;padding:0 14px 12px;font-size:.82rem;line-height:1.5;color:#475569}
.piht-hero--spouse{background:linear-gradient(135deg,#ecfdf5 0%,#eff6ff 100%);border-color:#6ee7b7;color:#065f46}
.piht-hero-badge{display:inline-block;margin:0 0 8px;padding:4px 12px;border-radius:999px;background:#059669;color:#fff;font-size:.72rem;font-weight:900;text-transform:uppercase}
.piht-hero-text{margin:0;font-size:.92rem;line-height:1.45}
.piht-section{margin:0 0 20px;border-radius:12px;padding:14px;border:1px solid #e2e8f0}
.piht-section--assets{background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);border-color:#cfe0ec}
.piht-section--scenario{background:linear-gradient(180deg,#fff7ed 0%,#fff 100%);border-color:#fed7aa}
.piht-section--family{background:linear-gradient(180deg,#f0fdf4 0%,#fff 100%);border-color:#bbf7d0}
.piht-section--beneficiary{background:linear-gradient(180deg,#faf5ff 0%,#fff 100%);border-color:#e9d5ff}
.piht-section-head{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid #d8e6ef;font-size:1.02rem;font-weight:900;color:#7c2d12;text-transform:uppercase;letter-spacing:.03em}
.piht-section-head .emoji{font-size:1.15em;line-height:1;flex-shrink:0}
.piht-section-help{margin:0 0 8px;font-size:.82rem;color:#475569;line-height:1.45}
.piht-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:12px 0}
.piht-grid--narrow{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.piht-field{display:flex;flex-direction:column;gap:5px;font-size:.88rem}
.piht-field span{font-weight:700;color:#334155}
.piht-field--check{justify-content:center}
.piht-hint{font-size:.78rem;color:#64748b;line-height:1.35}
.piht-input-wrap{position:relative}
.piht-prefix{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:.84rem;font-weight:800;color:#475569}
.piht-input{border:1px solid #cbd5e1;border-radius:10px;padding:9px 10px;background:#fff;width:100%;min-height:44px;font-size:16px}
.piht-input-wrap .piht-input{padding-left:24px}
.piht-input:focus{outline:none;border-color:#7c2d12;box-shadow:0 0 0 3px rgba(124,45,18,.12)}
.piht-check{display:flex;align-items:flex-start;gap:8px;cursor:pointer;font-weight:600;color:#334155}
.piht-check input{margin-top:3px}
.piht-results{margin:0 0 20px;border:2px solid #7c2d12;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 14px 40px rgba(124,45,18,.14)}
.piht-results-head{background:linear-gradient(135deg,#7c2d12 0%,#9a3412 52%,#c2410c 100%);color:#fff;padding:22px 20px 20px;text-align:center}
.piht-results-eyebrow{margin:0 0 8px;font-size:.74rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#fed7aa}
.piht-results-title{margin:0 0 10px;font-size:clamp(1.5rem,4vw,2rem);line-height:1.12;font-weight:900}
.piht-results-intro{margin:0 auto;max-width:680px;font-size:1rem;line-height:1.5;color:#ffedd5;font-weight:600}
.piht-impact-hero{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:0;border-bottom:2px solid #7c2d12;background:#fff}
.piht-impact-panel{padding:22px 18px;display:flex;flex-direction:column;gap:6px}
.piht-impact-panel--legacy{background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);border-right:1px solid #e2e8f0}
.piht-impact-panel--new{background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 100%);border-left:1px solid #fdba74}
.piht-impact-panel-tag{font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.piht-impact-panel--new .piht-impact-panel-tag{color:#c2410c}
.piht-impact-panel-value{font-size:clamp(1.55rem,5.5vw,2.2rem);line-height:1.08;font-weight:900;letter-spacing:-.03em;color:#083141}
.piht-impact-panel--new .piht-impact-panel-value{color:#c2410c}
.piht-impact-panel-unit{font-size:.88rem;font-weight:700;color:#334155}
.piht-impact-panel-note{font-size:.76rem;line-height:1.35;color:#64748b}
.piht-impact-bridge{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px 12px;min-width:100px;background:linear-gradient(180deg,#fef3c7 0%,#fff 100%);border-left:1px solid #fde68a;border-right:1px solid #fde68a}
.piht-impact-delta{font-size:clamp(1.2rem,4vw,1.5rem);font-weight:900;color:#b45309}
.piht-impact-bridge-text{margin:0;font-size:.74rem;line-height:1.4;font-weight:700;color:#78350f;text-align:center;max-width:120px}
.piht-scenario-band{padding:20px 20px 22px;border-bottom:3px solid #7c2d12;background:linear-gradient(180deg,#fff7ed 0%,#fffbeb 45%,#fff 100%)}
.piht-scenario-band__head{text-align:center;margin:0 0 16px}
.piht-scenario-band__eyebrow{display:inline-block;margin:0 0 6px;padding:4px 12px;border-radius:999px;background:#7c2d12;color:#ffedd5;font-size:.68rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.piht-scenario-band__title{margin:0;font-size:clamp(1.05rem,3vw,1.25rem);font-weight:900;color:#083141;letter-spacing:-.02em}
.piht-scenario-band__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"hero hero hero" "estate pension time";gap:14px}
.piht-scenario-card{display:flex;align-items:flex-start;gap:12px;padding:16px;border-radius:14px;border:2px solid #e2e8f0;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.06)}
.piht-scenario-card--hero{grid-area:hero;flex-direction:column;align-items:center;text-align:center;padding:20px 18px;border-color:#fdba74;background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 55%,#fff 100%);box-shadow:0 8px 24px rgba(194,65,12,.14)}
.piht-scenario-card--estate{grid-area:estate;border-color:#93c5fd;background:linear-gradient(180deg,#eff6ff 0%,#fff 100%)}
.piht-scenario-card--pension{grid-area:pension;border-color:#c4b5fd;background:linear-gradient(180deg,#faf5ff 0%,#fff 100%)}
.piht-scenario-card--time{grid-area:time;border-color:#fde68a;background:linear-gradient(180deg,#fffbeb 0%,#fff 100%)}
.piht-scenario-card--warn{border-color:#fdba74}
.piht-scenario-card--warn .piht-scenario-card__value{color:#c2410c}
.piht-scenario-card--good{border-color:#6ee7b7}
.piht-scenario-card--good .piht-scenario-card__value{color:#047857}
.piht-scenario-card__icon{font-size:1.5rem;line-height:1;flex-shrink:0}
.piht-scenario-card--hero .piht-scenario-card__icon{font-size:2rem}
.piht-scenario-card__body{min-width:0;flex:1}
.piht-scenario-card--hero .piht-scenario-card__body{width:100%}
.piht-scenario-card__label{font-size:.72rem;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.06em;line-height:1.3}
.piht-scenario-card--hero .piht-scenario-card__label{font-size:.78rem;color:#9a3412}
.piht-scenario-card__value{margin-top:6px;font-size:clamp(1.35rem,4vw,1.65rem);font-weight:900;color:#083141;line-height:1.1;letter-spacing:-.02em;word-break:break-word}
.piht-scenario-card--hero .piht-scenario-card__value{font-size:clamp(2rem,6.5vw,2.75rem);color:#c2410c;margin-top:8px}
.piht-scenario-card--pension .piht-scenario-card__value{color:#6d28d9}
.piht-scenario-card--estate .piht-scenario-card__value{color:#1d4ed8}
.piht-scenario-card__sub{margin-top:8px;font-size:.8rem;line-height:1.4;color:#475569;font-weight:600}
.piht-scenario-card--hero .piht-scenario-card__sub{font-size:.88rem;color:#78350f;max-width:420px;margin-left:auto;margin-right:auto}
.piht-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;padding:16px 18px;background:linear-gradient(180deg,#fffbeb 0%,#fff 100%);border-bottom:1px solid #fde68a}
.piht-kpi{border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#fff}
.piht-kpi-label{font-size:.72rem;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.05em}
.piht-kpi-value{font-size:1.25rem;font-weight:900;color:#083141;margin-top:4px}
.piht-kpi-sub{margin-top:4px;font-size:.76rem;color:#475569;line-height:1.35}
.piht-kpi--warn{border-color:#fdba74;background:linear-gradient(180deg,#fff7ed 0%,#fff 100%)}
.piht-kpi--warn .piht-kpi-value{color:#c2410c}
.piht-kpi--good{border-color:#6ee7b7;background:linear-gradient(180deg,#ecfdf5 0%,#fff 100%)}
.piht-kpi--good .piht-kpi-value{color:#047857}
.piht-kpi--pension{border-color:#c4b5fd;background:linear-gradient(180deg,#faf5ff 0%,#fff 100%)}
.piht-kpi--pension .piht-kpi-value{color:#6d28d9}
.piht-kpi--accent{border-color:#93c5fd}
.piht-kpi--muted .piht-kpi-value{color:#64748b}
.piht-block-title{margin:0;font-size:clamp(1.08rem,2.8vw,1.2rem);font-weight:900;color:#083141;line-height:1.25;letter-spacing:-.01em}
.piht-block-sub{margin:6px 0 0;font-size:.86rem;line-height:1.45;color:#475569}
.piht-estate-head{margin:0 0 16px;text-align:left}
.piht-estate-visual{padding:18px 20px;border-bottom:1px solid #e2e8f0;background:linear-gradient(180deg,#f8fafc 0%,#fff 100%)}
.piht-estate-title{margin:0}
.piht-estate-rows{display:flex;flex-direction:column;gap:10px;margin-bottom:4px}
.piht-estate-row{display:grid;grid-template-columns:minmax(130px,1.1fr) minmax(0,1.4fr) minmax(88px,auto);gap:10px 12px;align-items:center;padding:12px 14px;border-radius:12px;border:1px solid #e2e8f0;background:#fff}
.piht-estate-row--debt{border-color:#fecaca;background:linear-gradient(180deg,#fef2f2 0%,#fff 100%)}
.piht-estate-label{display:flex;align-items:center;gap:8px;min-width:0}
.piht-estate-dot{width:10px;height:10px;border-radius:999px;flex-shrink:0}
.piht-estate-dot--home{background:#2563eb}
.piht-estate-dot--cash{background:#059669}
.piht-estate-dot--other{background:#64748b}
.piht-estate-dot--pension{background:#7c3aed}
.piht-estate-dot--gift{background:#d97706}
.piht-estate-dot--debt{background:#dc2626}
.piht-estate-label-text{font-size:.86rem;font-weight:800;color:#334155;line-height:1.3}
.piht-estate-bar{display:flex;align-items:center;gap:10px;min-width:0}
.piht-estate-track{flex:1;height:14px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.piht-estate-fill{height:100%;border-radius:999px;min-width:6px}
.piht-estate-fill--home{background:linear-gradient(90deg,#60a5fa,#2563eb)}
.piht-estate-fill--cash{background:linear-gradient(90deg,#34d399,#059669)}
.piht-estate-fill--other{background:linear-gradient(90deg,#94a3b8,#64748b)}
.piht-estate-fill--pension{background:linear-gradient(90deg,#a78bfa,#7c3aed)}
.piht-estate-fill--gift{background:linear-gradient(90deg,#fbbf24,#d97706)}
.piht-estate-pct{flex-shrink:0;min-width:36px;font-size:.72rem;font-weight:900;color:#64748b;text-align:right}
.piht-estate-pct--debt{color:#b91c1c}
.piht-estate-amt{font-size:.92rem;font-weight:900;text-align:right;color:#083141;white-space:nowrap}
.piht-estate-amt--debt{color:#b91c1c}
.piht-estate-total{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding:16px 18px;border-radius:14px;border:2px solid #7c2d12;background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 100%)}
.piht-estate-total-label{display:flex;flex-direction:column;gap:4px}
.piht-estate-total-label strong{font-size:1rem;font-weight:900;color:#7c2d12}
.piht-estate-total-label span{font-size:.78rem;font-weight:600;color:#78350f}
.piht-estate-total-value{font-size:clamp(1.35rem,4vw,1.65rem);font-weight:900;color:#c2410c;letter-spacing:-.02em;white-space:nowrap}
.piht-allowance-panel{padding:18px 20px;border-bottom:1px solid #e2e8f0}
.piht-allowance-title{margin:0}
.piht-allowance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.piht-overlay-panel{padding:16px 18px;border-bottom:1px solid #e2e8f0;background:#fafafa}
.piht-overlay-title{margin:0 0 8px;font-size:.95rem;font-weight:900;color:#083141}
.piht-overlay-note{margin:0 0 12px;font-size:.78rem;line-height:1.45;color:#475569}
.piht-overlay-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.piht-table-wrap{padding:16px 18px}
.piht-table-head{margin:0 0 12px}
.piht-table-title{margin:0}
.piht-table-sub{margin:6px 0 0;font-size:.82rem;color:#64748b;line-height:1.4}
.piht-table-outer{margin-top:4px}
.piht-table-scroll-hint{display:none;margin:0 0 6px;font-size:.72rem;font-weight:700;color:#64748b;text-align:right}
.piht-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
.piht-table{width:100%;border-collapse:collapse;font-size:.84rem}
.piht-table--iht-compare{min-width:520px}
.piht-table--strategy{min-width:640px}
.piht-compare-section{padding:18px 20px;border-bottom:1px solid #e2e8f0;background:#fff}
.piht-compare-title{margin:0}
.piht-compare-note{margin-top:6px}
.piht-compare-diff{font-weight:800;color:#c2410c;white-space:nowrap}
.piht-row-total td{font-weight:900;background:#fffbeb}
.piht-kpi--purple{border-color:#c4b5fd;background:linear-gradient(180deg,#faf5ff 0%,#fff 100%)}
.piht-kpi--purple .piht-kpi-value{color:#6d28d9}
.piht-preset-row{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.piht-preset{border:1px solid #fdba74;background:#fff7ed;color:#9a3412;padding:12px 14px;border-radius:10px;font-weight:800;cursor:pointer;font-size:.88rem;min-height:44px;font-family:inherit}
.piht-preset--active{background:#7c2d12;border-color:#7c2d12;color:#fff}
.piht-tax-section{padding:18px 20px 20px;border-bottom:1px solid #e2e8f0;background:#fafafa}
.piht-tax-section-title{margin:0}
.piht-tax-section-intro{margin:0 0 14px;font-size:.82rem;line-height:1.45;color:#475569}
.piht-tax-layer{border-radius:12px;padding:14px;margin:0 0 12px;border:1px solid #e2e8f0;background:#fff}
.piht-tax-layer--iht{border-color:#fdba74;background:linear-gradient(180deg,#fff7ed 0%,#fff 100%)}
.piht-tax-layer--pension{border-color:#c4b5fd;background:linear-gradient(180deg,#faf5ff 0%,#fff 100%)}
.piht-tax-layer--free{border-color:#6ee7b7;background:linear-gradient(180deg,#ecfdf5 0%,#fff 100%)}
.piht-tax-layer-head{margin:0 0 12px}
.piht-tax-layer-badge{display:inline-block;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#c2410c;background:#ffedd5;padding:3px 8px;border-radius:999px;margin-bottom:8px}
.piht-tax-layer-badge--purple{color:#6d28d9;background:#ede9fe}
.piht-tax-layer-badge--muted{color:#047857;background:#d1fae5}
.piht-tax-layer-title{margin:0 0 6px;font-size:.92rem;font-weight:900;color:#083141}
.piht-tax-layer-who{margin:0;font-size:.8rem;line-height:1.45;color:#475569}
.piht-tax-layer-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:10px}
.piht-tax-layer-note{margin:0;font-size:.76rem;line-height:1.45;color:#64748b}
.piht-pension-path{margin:0 0 10px}
.piht-pension-path-tag{font-size:.72rem;font-weight:900;text-transform:uppercase;color:#6d28d9;margin-bottom:6px}
.piht-pension-path-desc{margin:0 0 10px;font-size:.82rem;line-height:1.45;color:#334155}
.piht-pension-path-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.piht-planning-total{margin-top:4px;padding:12px 14px;border-radius:10px;background:#fff;border:1px dashed #cbd5e1;text-align:center}
.piht-planning-total-label{margin:0 0 4px;font-size:.78rem;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.piht-planning-total-formula{margin:0;font-size:.92rem;font-weight:900;color:#334155}
.piht-planning-total-foot{margin:8px 0 0;font-size:.74rem;line-height:1.4;color:#64748b}
.piht-table th,.piht-table td{padding:9px 8px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top}
.piht-table th{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b;background:#f8fafc}
.piht-row--best{background:#fffbeb}
.piht-cell-sub{font-size:.74rem;color:#64748b;margin-top:4px;line-height:1.35}
.piht-cell-total{font-weight:900;color:#c2410c}
.piht-related{margin:0 0 16px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.piht-related-list{margin:8px 0 0;padding-left:20px;line-height:1.55;font-size:.9rem}
.piht-disclaimer{font-size:.82rem;line-height:1.5;color:#475569;margin:0 0 12px;padding:12px;background:#f1f5f9;border-radius:10px;border:1px solid #e2e8f0}
.piht-source{font-size:.78rem;color:#64748b;margin:0 0 16px}
.piht-source a{color:#7c2d12;font-weight:700}
.piht-export-dock{margin:20px 0;padding:28px 24px;border:2px solid #fdba74;border-radius:16px;background:linear-gradient(135deg,#fff7ed 0%,#fef3c7 42%,#fff 100%);box-shadow:0 12px 32px rgba(124,45,18,.1)}
.piht-export-dock__inner{max-width:520px;margin:0 auto;display:flex;flex-direction:column;align-items:center;text-align:center}
.piht-export-dock__badge{display:inline-block;margin:0 0 10px;padding:4px 12px;border-radius:999px;background:#7c2d12;color:#ffedd5;font-size:.68rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.piht-export-dock__title{margin:0 0 8px;font-size:1.35rem;line-height:1.2;font-weight:900;color:#7c2d12;letter-spacing:-.02em}
.piht-export-dock__desc{margin:0 0 14px;font-size:.92rem;color:#475569;line-height:1.5;max-width:440px}
.piht-export-dock__list{margin:0 0 18px;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;width:100%;max-width:440px;text-align:left}
.piht-export-dock__list li{position:relative;padding-left:18px;font-size:.82rem;line-height:1.4;color:#475569;font-weight:600}
.piht-export-dock__list li::before{content:"✓";position:absolute;left:0;top:0;color:#c2410c;font-weight:900}
.piht-export-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;min-width:240px;padding:14px 28px;border:none;border-radius:14px;font-size:1rem;font-weight:900;font-family:inherit;line-height:1.2;cursor:pointer;color:#fff;background:linear-gradient(180deg,#ea580c 0%,#c2410c 45%,#9a3412 100%);box-shadow:0 4px 0 #7c2d12,0 12px 24px rgba(154,52,18,.22);transition:filter .15s,transform .15s}
.piht-export-btn:hover{filter:brightness(1.04);transform:translateY(-1px)}
.piht-export-btn:active{transform:translateY(1px);box-shadow:0 2px 0 #7c2d12,0 8px 16px rgba(154,52,18,.18)}
.piht-export-btn__icon{font-size:1.15rem;line-height:1}
.piht-export-btn__text{letter-spacing:.01em}
.piht-export-dock__fine{margin:12px 0 0;font-size:.74rem;line-height:1.35;color:#64748b}
.piht-ml-overlay{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.piht-ml-box,.piht-ml-box *{box-sizing:border-box}
.piht-ml-box{background:#fff;border-radius:14px;max-width:400px;width:100%;box-shadow:0 20px 50px rgba(0,0,0,.28);overflow:hidden;border:1px solid #e2e8f0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.piht-ml-h{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px 16px;background:linear-gradient(135deg,#7c2d12,#9a3412);color:#fff}
.piht-ml-h-text{flex:1;min-width:0}
.piht-ml-h h3{margin:0;font-size:1.05rem;font-weight:900;line-height:1.25;color:#fff}
.piht-ml-sub{margin:4px 0 0;font-size:.76rem;line-height:1.35;color:#ffedd5}
.piht-ml-x{flex-shrink:0;border:none;background:rgba(255,255,255,.18);color:#fff;width:32px;height:32px;border-radius:8px;font-size:1.25rem;cursor:pointer;line-height:1;padding:0}
.piht-ml-b{padding:14px 16px 12px}
.piht-ml-field{margin:0 0 10px}
.piht-ml-field:last-of-type{margin-bottom:0}
.piht-ml-field label{display:block;margin:0 0 4px;font-size:.78rem;font-weight:700;color:#475569}
.piht-ml-field input,.piht-ml-b input[type="text"],.piht-ml-b input[type="email"]{display:block;width:100%;max-width:100%;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;font-size:.92rem;font-family:inherit;background:#fff;color:#0f172a;line-height:1.3;margin:0;min-height:0}
.piht-ml-field input:focus{outline:none;border-color:#9a3412;box-shadow:0 0 0 2px rgba(154,52,18,.15)}
.piht-ml-field input::placeholder{color:#94a3b8}
.piht-ml-snapshot-title{margin:0 0 6px;font-size:.72rem;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.piht-ml-snapshot-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 12px}
.piht-ml-snapshot-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:7px 8px;min-width:0}
.piht-ml-snapshot-key{font-size:.66rem;color:#64748b;font-weight:700;line-height:1.2}
.piht-ml-snapshot-val{font-size:.82rem;font-weight:900;color:#083141;margin-top:2px;line-height:1.25;word-break:break-word}
.piht-ml-trust{font-size:.74rem;color:#64748b;line-height:1.4;margin-top:10px;padding:9px 10px;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}
.piht-ml-err{color:#b91c1c;font-size:.8rem;display:none;margin:6px 0 0;font-weight:700}
.piht-ml-err.on{display:block}
.piht-ml-ok{color:#059669;font-weight:700;text-align:center;padding:10px;margin:0;font-size:.9rem;line-height:1.4}
.piht-ml-f{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #e2e8f0;background:#f8fafc}
.piht-ml-go{flex:1;border:none;background:#7c2d12;color:#fff;padding:10px 12px;border-radius:8px;font-weight:800;cursor:pointer;font-size:.88rem;font-family:inherit;line-height:1.2;min-width:0}
.piht-ml-go:disabled{opacity:.7;cursor:wait}
.piht-ml-ca{flex-shrink:0;background:#fff;border:1px solid #cbd5e1;padding:10px 12px;border-radius:8px;cursor:pointer;font-weight:700;font-size:.88rem;font-family:inherit;color:#334155;line-height:1.2}
.piht-input:focus-visible,.piht-preset:focus-visible,.piht-export-btn:focus-visible,.piht-ml-x:focus-visible,.piht-ml-go:focus-visible,.piht-ml-ca:focus-visible{outline:3px solid #c2410c;outline-offset:2px}
.piht-faq-q:focus-visible{outline:3px solid #c2410c;outline-offset:-2px;border-radius:8px}
@media (max-width:960px){
  .piht-wrap{padding:16px}
  .piht-impact-hero{grid-template-columns:1fr}
  .piht-impact-panel--legacy{border-right:none;border-bottom:1px solid #e2e8f0}
  .piht-impact-panel--new{border-left:none;border-top:1px solid #fdba74}
  .piht-impact-bridge{flex-direction:row;min-width:0;padding:14px 18px;border-top:1px solid #fde68a;border-bottom:2px solid #7c2d12}
  .piht-impact-bridge-text{max-width:none;text-align:left;flex:1}
  .piht-scenario-band__grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"hero hero" "estate pension" "time time"}
}
@media (max-width:768px){
  .piht-grid,.piht-grid--narrow{grid-template-columns:1fr}
  .piht-table-scroll-hint{display:block}
  .piht-ml-overlay{padding:12px;align-items:flex-end}
  .piht-ml-box{max-height:90vh;overflow-y:auto;border-radius:14px 14px 0 0;max-width:100%}
  .piht-ml-f{flex-direction:column}
  .piht-ml-go,.piht-ml-ca{width:100%}
}
@media (max-width:640px){
  .piht-wrap{padding:12px}
  .piht-impact-panel-value{font-size:clamp(1.45rem,7vw,1.85rem)}
  .piht-impact-panel{padding:18px 16px}
  .piht-results-head{padding:18px 14px 16px}
  .piht-results-intro{font-size:.92rem}
  .piht-title{font-size:1.35rem}
  .piht-kpi-grid{grid-template-columns:1fr}
  .piht-scenario-band{padding:16px 14px 18px}
  .piht-scenario-band__grid{grid-template-columns:1fr;grid-template-areas:"hero" "estate" "pension" "time";gap:10px}
  .piht-scenario-card{padding:14px}
  .piht-scenario-card--hero{padding:18px 14px}
  .piht-scenario-card--hero .piht-scenario-card__value{font-size:clamp(1.85rem,8vw,2.35rem)}
  .piht-scenario-card__value{font-size:clamp(1.25rem,5vw,1.5rem)}
  .piht-estate-row{grid-template-columns:1fr;gap:8px;padding:12px}
  .piht-estate-bar{order:3}
  .piht-estate-amt{text-align:left;font-size:1rem}
  .piht-estate-total{flex-direction:column;align-items:flex-start}
  .piht-estate-total-value{font-size:clamp(1.5rem,6vw,1.85rem)}
  .piht-age-columns{grid-template-columns:1fr}
  .piht-age-tax-row,.piht-draw-compare-row{grid-template-columns:1fr;gap:4px}
  .piht-flow-steps{grid-template-columns:1fr}
  .piht-guide-cards{grid-template-columns:1fr}
  .piht-export-dock{padding:22px 16px}
  .piht-export-dock__title{font-size:1.15rem}
  .piht-export-dock__list{grid-template-columns:1fr;max-width:280px}
  .piht-export-btn{min-width:0;width:100%;max-width:320px}
  .piht-ml-snapshot-grid{grid-template-columns:1fr}
}
