.calculator-shell{
  --bg:#F4EFE6; --panel:#EDE5D7; --ink:#14233D; --muted:#6E675A; --hair:rgba(20,35,61,.18);
  --red:var(--brand-red); --navy:#14233D; --line-a:#8A94A6; --line-b:var(--brand-red); --onnavy:#F4EFE6;
  --good:#2F6B4F;
  --serif:'Noto Serif SC','Songti SC','SimSun',serif;
  --sans:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
}.calculator-shell *{box-sizing:border-box}.calculator-shell{background:var(--bg);color:var(--ink);font-family:var(--sans);line-height:1.7;padding-inline:20px;padding-block:32px 48px}.calculator-shell .wrap{max-width:1120px;margin:0 auto;display:grid;gap:36px}.calculator-shell .eyebrow{font-size:13px;letter-spacing:.18em;color:var(--red);display:flex;align-items:center;gap:12px}.calculator-shell .eyebrow i{display:inline-block;width:28px;height:2px;background:var(--red)}.calculator-shell h1{font-family:var(--serif);font-weight:900;font-size:clamp(30px,4.6vw,52px);line-height:1.25;margin:14px 0 12px;text-wrap:balance}.calculator-shell .lede{color:var(--muted);max-width:40em;margin:0;font-size:16px}.calculator-shell .grid{display:grid;grid-template-columns:340px 1fr;gap:32px;align-items:start}
@media (max-width:880px){.calculator-shell .grid{grid-template-columns:1fr}}.calculator-shell .inputs{background:var(--panel);border:1px solid var(--hair);padding:24px;display:grid;gap:16px;position:sticky;top:16px}
@media (max-width:880px){.calculator-shell .inputs{position:static}}.calculator-shell .inputs h2,.calculator-shell .results h2{font-family:var(--serif);font-size:20px;margin:0}.calculator-shell label{display:grid;gap:6px;font-size:14px;color:var(--ink)}.calculator-shell label small{color:var(--muted);font-size:12px;line-height:1.5}.calculator-shell input[type=number],.calculator-shell select{font:inherit;font-size:16px;padding:9px 10px;border:1px solid var(--hair);background:var(--bg);color:var(--ink);width:100%;font-variant-numeric:tabular-nums}.calculator-shell input:focus-visible,.calculator-shell select:focus-visible,.calculator-shell button:focus-visible,.calculator-shell a:focus-visible{outline:2px solid var(--red);outline-offset:2px}.calculator-shell .check{display:flex;gap:10px;align-items:center;grid-template-columns:none}.calculator-shell .row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.calculator-shell .reset{font:inherit;font-size:13px;background:none;border:none;color:var(--muted);text-decoration:underline;cursor:pointer;justify-self:start;padding:0}.calculator-shell .results{display:grid;gap:28px;min-width:0}.calculator-shell .headline{background:var(--navy);color:var(--onnavy);padding:26px 26px 22px}.calculator-shell .headline p{margin:0}.calculator-shell .headline .big{font-family:var(--serif);font-weight:900;font-size:clamp(32px,5vw,50px);line-height:1.15;color:#fff;font-variant-numeric:tabular-nums}.calculator-shell .headline .big em{font-style:normal;color:var(--brand-red)}.calculator-shell .headline .sub{color:#C9D0DC;font-size:14px;margin-top:8px}.calculator-shell .tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:2px solid var(--ink)}
@media (max-width:560px){.calculator-shell .tiles{grid-template-columns:1fr}}.calculator-shell .tile{padding:16px 16px 14px 0;border-bottom:1px solid var(--hair)}.calculator-shell .tile+.tile{padding-left:16px;border-left:1px solid var(--hair)}
@media (max-width:560px){.calculator-shell .tile+.tile{padding-left:0;border-left:none}}.calculator-shell .tile .k{font-size:13px;color:var(--muted)}.calculator-shell .tile .v{font-family:var(--serif);font-size:26px;font-weight:600;font-variant-numeric:tabular-nums}.calculator-shell .tile .v.good{color:var(--good)}.calculator-shell .chartbox{min-width:0}.calculator-shell .chartbox svg{width:100%;height:auto;display:block}.calculator-shell .legend{display:flex;flex-wrap:wrap;gap:18px;font-size:13px;color:var(--muted);margin-top:6px}.calculator-shell .legend span{display:inline-flex;align-items:center;gap:8px}.calculator-shell .legend b{display:inline-block;width:22px;height:3px}.calculator-shell details{border-top:1px solid var(--hair);padding-top:10px}.calculator-shell summary{cursor:pointer;font-weight:500}.calculator-shell .tablewrap{overflow-x:auto;margin-top:10px}.calculator-shell table{border-collapse:collapse;width:100%;font-size:13px;font-variant-numeric:tabular-nums;min-width:640px}.calculator-shell th,.calculator-shell td{padding:6px 8px;border-bottom:1px solid var(--hair);text-align:right;white-space:nowrap}.calculator-shell th:first-child,.calculator-shell td:first-child{text-align:left}.calculator-shell th{color:var(--muted);font-weight:500}.calculator-shell .risk{border:1px solid var(--hair);border-left:3px solid var(--red);padding:16px 18px;background:var(--panel)}.calculator-shell .risk h3,.calculator-shell .assume h3{font-family:var(--serif);font-size:17px;margin:0 0 6px}.calculator-shell .risk ul,.calculator-shell .assume ul{margin:0;padding-left:20px;color:var(--muted);font-size:14px}.calculator-shell .assume{font-size:14px}.calculator-shell .cta{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:center;border-top:2px solid var(--ink);padding-top:20px}.calculator-shell .cta p{margin:0;max-width:34em}.calculator-shell .btn{display:inline-block;background:var(--red);color:#fff;text-decoration:none;padding:12px 24px;font-size:15px;letter-spacing:.06em}.calculator-shell .fine{font-size:12px;color:var(--muted);margin:0}.calculator-shell .warn{color:var(--red);font-size:13px}

.calculator-shell{padding:0;background:var(--paper);color-scheme:light}.calculator-shell .wrap{max-width:1240px;padding:64px 48px;gap:36px}.calculator-shell .grid>*{min-width:0}.calculator-shell .headline .big{font-size:clamp(29px,3vw,42px);line-height:1.5}.calculator-shell .headline .big em{color:var(--brand-red)}.calculator-shell .headline .sub{color:var(--paper2)}.calculator-shell .inputs{align-self:start}.calculator-shell .tablewrap{max-width:100%}.calculator-shell .back-tools{font-size:14px;padding-top:20px}.calculator-shell .booking-status{font-size:13px}.calculator-shell .btn{font-family:var(--sans)}@media(max-width:760px){.calculator-shell .wrap{padding:40px 24px;gap:28px}.calculator-shell .inputs{padding:20px}.calculator-shell h1{font-size:32px;line-height:1.55}.calculator-shell .headline{padding:24px}.calculator-shell .headline .big{font-size:29px}.calculator-shell .chartbox svg{overflow:visible}.calculator-shell .chartbox svg text{font-size:21px!important}.calculator-shell .cta .btn{padding:14px 20px}}

.tools-opening{padding:72px 0 64px}.tools-opening h1{font-size:clamp(36px,4.5vw,60px);line-height:1.5;margin:20px 0 28px}.tools-intro{font-size:18px;line-height:2;max-width:880px}.tools-featured{padding:56px 0}.tools-featured h2,.tools-group h2{font-size:32px;line-height:1.6;margin-bottom:20px}.featured-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px}.featured-card{display:block;padding:28px 0;border-top:1px solid var(--hair-dark)}.featured-card h3{font-size:29px;line-height:1.6;margin-bottom:20px}.featured-card p{font-size:16px;line-height:1.9;color:var(--cream-tx)}.featured-card span{display:block;margin-top:24px;color:var(--paper)}.tools-group{padding:56px 0 0}.tools-group+.tools-group{padding-top:64px}.tools-group>p{font-size:16px;line-height:1.9;margin-bottom:28px}.tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.tool-card{display:flex;flex-direction:column;padding:28px;border:1px solid var(--hair);min-width:0}.tool-card h3{font-size:23px;line-height:1.65;margin-bottom:16px}.tool-card p{font-size:15px;line-height:1.9}.tool-card small{display:block;font-size:12px;color:var(--muted);margin-top:24px}.tool-card[href]:hover,.featured-card:hover{border-color:var(--red)}.tools-fine{font-size:12px;color:var(--muted);line-height:1.9;margin:48px 0 72px}.tools-final .lede{max-width:760px;margin:24px auto 40px}.tools-final h2{font-size:40px}@media(max-width:760px){.tools-opening{padding:40px 0}.tools-intro{font-size:16px}.tools-featured{padding:40px 0}.featured-grid,.tools-grid{grid-template-columns:1fr;gap:24px}.tools-featured h2,.tools-group h2{font-size:28px}.featured-card h3{font-size:26px}.tools-group{padding-top:40px}.tools-group+.tools-group{padding-top:40px}.tool-card{padding:24px}.tools-final h2{font-size:32px}.tools-final .btn{padding:14px 20px}}
.calculator-shell .inputs .sec{padding:10px 0 0}
.calculator-shell .headline .big em,.calculator-shell .headline .kicker{color:var(--onnavy)}

/* Requested mobile calculator layout; supplied calculation code is unchanged. */
.calculator-shell .input-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.calculator-shell .results-jump{display:none}.calculator-shell .headline{scroll-margin-top:100px}.tools-index .card-action{display:inline-block;color:var(--brand-red);font-size:15px;font-weight:500;margin-top:20px;padding:8px 0}.featured-card .card-action{color:var(--brand-red)}
@media(max-width:759px){.calculator-shell .results-jump{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 18px;background:var(--brand-red);color:#fff;border:0;font:inherit;font-size:15px;cursor:pointer}.calculator-shell .reset{min-height:48px}.calculator-shell .input-actions{justify-content:space-between;gap:12px}.calculator-shell .wrap{padding-top:27px;padding-bottom:27px;gap:20px}.calculator-shell .headline{scroll-margin-top:100px}.calculator-shell #keep{min-width:0;width:100%;table-layout:fixed}.calculator-shell #keep th,.calculator-shell #keep td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;padding:8px 4px}.calculator-shell #keep th:first-child,.calculator-shell #keep td:first-child{width:65%;text-align:left}.calculator-shell #keep th:last-child,.calculator-shell #keep td:last-child{width:35%;white-space:nowrap;text-align:right}.calculator-shell[data-calculator="08-passive-income-sbd"] .chartbox svg text:last-of-type{display:none}.tools-index .featured-grid,.tools-index .tools-grid{gap:16px}.tools-index .featured-card{padding:18px 0}.tools-index .tool-card{padding:20px}.tools-index .card-action{margin-top:12px}.tools-index .tools-fine{margin-top:32px;margin-bottom:48px}}
@media(max-width:759px){.calculator-shell .chartbox svg text[x="50"][y="270"],.calculator-shell .chartbox svg text[x="42"][y="270"],.calculator-shell .chartbox svg text[x="50"][y="230"]{transform:translateX(-20px)}.calculator-shell[data-calculator="04-rrsp-ccb"] .chartbox svg text[y="259"]{display:none}}
@media(max-width:759px){.calculator-shell[data-calculator="03-tfsa-vs-taxable"] .chartbox svg text[x="50"][y="270"]{transform:translateX(-26px)}}

.calculator-shell .results[hidden]{display:none!important}.tax-coverage-note{display:block;line-height:1.6;margin-top:8px}.tax-model-note{max-width:1144px;margin:0 auto;padding:0 24px 32px}
