:root{font:16px/1.45 Inter,"Helvetica Neue",Arial,sans-serif;color:#25251f;background:#f7f5ef;--rust:#a24224;--line:#dcd8ce;--muted:#62625b;--green:#535e46}*{box-sizing:border-box}body{margin:0}.wrap{max-width:1450px;margin:auto;padding-inline:clamp(16px,4vw,70px)}button,select,input{font:inherit}button{cursor:pointer;color:inherit;background:#fffefa;border:1px solid #c9c7bc;border-radius:8px;padding:.53rem .85rem;font-weight:650}button:hover{border-color:var(--rust);background:#faf1e9}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b75a36;outline-offset:2px}.mast{background:#fffefa;border-bottom:1px solid var(--line)}.mast-in,.head-actions,.brand,.section-top,.file-actions,.subtotal,footer{display:flex;align-items:center}.mast-in,.section-top,.subtotal,footer{justify-content:space-between;gap:12px}.mast-in{min-height:70px}.brand{gap:10px;font-weight:780;letter-spacing:-.05em;font-size:1.35rem}.mark{background:var(--rust);color:#fff3dc;display:grid;place-items:center;width:37px;height:37px;border-radius:50%;font:italic 700 18px Georgia,serif;letter-spacing:-.12em;padding-right:2px}.head-actions{gap:18px}#saved,.section-top>span,.caption,.controls p{color:var(--muted);font-size:.875rem}.hero{background:#272722 url("sala.webp") center 48%/cover no-repeat;color:#fff8e9;position:relative;overflow:hidden;border-radius:18px;margin:22px 0 25px;min-height:clamp(184px,16vw,245px);display:flex;align-items:center;padding:clamp(22px,3.8vw,56px)}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(18,18,14,.91),rgba(22,21,17,.45) 49%,transparent 80%)}.hero>div{position:relative}.hero p{margin:0 0 8px;color:#edc39b;font-weight:700;font-size:.95rem}.hero h1{font:500 clamp(42px,4.7vw,74px)/1.01 Georgia,"Times New Roman",serif;letter-spacing:-.06em;margin:0 0 12px}.hero span{color:#e5ded2}.layout{display:grid;grid-template-columns:minmax(255px,.86fr) minmax(0,2.4fr);gap:clamp(16px,2vw,32px);align-items:start}.controls,.card,.number{border:1px solid var(--line);border-radius:14px;background:#fffefa}.controls{padding:21px}.controls-title{margin-bottom:20px}h2,h3,p{margin:0}h2,.ledger-header strong{font-size:clamp(1.13rem,1.35vw,1.45rem)}h2{letter-spacing:-.04em}h3{font-size:1rem;font-weight:600}.field{display:block;font-size:.89rem;font-weight:600;margin:12px 0}.entry{display:flex;border:1px solid #c9c7bd;background:#fff;border-radius:7px;align-items:center;margin-top:5px;padding-right:10px}.entry:focus-within{outline:2px solid #ad512e}.entry input{width:100%;min-width:0;background:transparent;border:none;border-radius:7px;padding:8px 10px;color:#332f27;font-variant-numeric:tabular-nums}.entry input:focus{outline:none}.entry span{font-size:.84rem;color:var(--muted);white-space:nowrap}select{width:100%;padding:8px 7px;border-radius:7px;background:#fff;border:1px solid #c9c7bd;margin-top:5px;color:inherit}.check{display:flex;align-items:center;gap:8px;font-size:.9rem}.check input{accent-color:var(--rust)}#group-shortcuts,.file-actions{display:flex;gap:5px}#group-shortcuts button{flex:1;padding:.28rem .32rem;font-size:.85rem}button[aria-pressed=true]{background:#e8e9dc;border-color:#90977d;color:#38422c}.link{border:0;background:transparent;padding:0;color:var(--rust);text-decoration:underline;text-underline-offset:3px;font-size:.88rem}.link:hover{background:none}.controls details{border-top:1px solid var(--line);margin-top:15px;padding-top:12px}.controls details p{margin-block:8px}.controls summary{cursor:pointer;font-weight:650;font-size:.96rem}.file-actions button{font-size:.83rem}.results{min-width:0}.section-top{margin-bottom:14px;flex-wrap:wrap}.section-top>span{font-variant-numeric:tabular-nums}.numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.number{padding:clamp(13px,1.35vw,22px);display:flex;flex-direction:column;justify-content:space-between;min-height:145px}.number strong{font-size:clamp(1.45rem,2.6vw,2.85rem);letter-spacing:.01em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-weight:650;line-height:1.12;margin:14px 0 9px}.number p{font-size:.85rem;color:var(--muted)}.number.main-num{background:#934023;color:#fffdfa;border-color:#934023}.main-num p{color:#ffe7d9}.card{padding:clamp(16px,1.7vw,28px);margin-top:14px}.payback{background:#282b24;border-color:#282b24;color:#fffdf1}.payback .caption{color:#d1d6c6}.caption{margin-top:12px}.curve-bars{display:flex;align-items:stretch;gap:5px;height:80px;margin:14px 0 4px;position:relative}.curve-bars i{display:block;position:relative;flex:1}.curve-bars i:after{content:"";position:absolute;left:1px;right:1px;top:var(--top);height:var(--height);background:#bbc59b;border-radius:2px}.curve-bars i.neg:after{background:#d39269}.curve-bars:before{content:"";position:absolute;left:0;right:0;top:var(--zero);border-top:1px dashed #828579}.curve-labels{display:flex;justify-content:space-between;color:#d1d6c6;font-size:.8rem}#add{font-size:.85rem}.item{display:grid;grid-template-columns:minmax(80px,1fr) minmax(80px,.45fr) auto;gap:8px;align-items:center;margin-bottom:8px}.item input{min-width:0;width:100%;padding:7px 8px;background:#fff;border:1px solid #cecabf;border-radius:6px;color:inherit}.item button{font-weight:500;font-size:.82rem;padding:.53rem .6rem}.subtotal{padding-top:12px;margin-top:12px;border-top:1px solid var(--line)}.subtotal strong{color:var(--rust)}.lines>div,td,th{padding:8px 0;border-bottom:1px solid #e8e5dd}.lines>div{display:flex;justify-content:space-between;gap:12px}.lines b,td,.subtotal strong,#cost{font-variant-numeric:tabular-nums;letter-spacing:.01em}.lines b{white-space:nowrap}.lines>div:last-child,tr:last-child td{border-bottom:0}table{width:100%;border-collapse:collapse;text-align:right}th{font-size:.86rem;color:var(--muted)}th:first-child,td:first-child{text-align:left}.investments .section-top button{white-space:nowrap}footer{margin-top:32px!important;padding-block:22px;border-top:1px solid var(--line);font-size:.85rem;color:var(--muted)}body.presentation .controls,body.presentation .investments button,body.presentation #saved{display:none}body.presentation .layout{display:block}body.presentation .hero{min-height:140px}body.presentation .number strong{font-size:clamp(30px,4vw,64px)}body.presentation .number h3{font-size:1.15rem}
@media(max-width:860px){.layout{grid-template-columns:minmax(205px,.8fr) minmax(0,1.7fr)}.numbers{grid-template-columns:repeat(2,minmax(0,1fr))}.number.main-num{grid-column:span 2;min-height:100px}.number{min-height:115px}.controls{padding:14px}.head-actions{gap:8px}}@media(max-width:660px){.mast-in{min-height:58px}.brand{font-size:1.14rem}.head-actions button{font-size:.8rem}#saved{display:none}.hero{min-height:155px;margin-block:14px}.layout{display:flex;flex-direction:column}.controls,.results{width:100%}.controls details:not([open]){margin-top:9px;padding-top:9px}.numbers{gap:7px}.number strong{font-size:1.6rem}.number{min-height:100px}.hero:before{background:linear-gradient(90deg,#181914de,#17161035)}.section-top{gap:6px}.item{grid-template-columns:minmax(80px,1fr) 83px auto}.item button{padding-inline:6px}.card{padding:14px}.caption{font-size:.84rem}.head-actions button{padding-inline:10px}}

#tax-caption{color:var(--muted);font-size:.875rem;margin:-6px 0 12px}.entry:has(input:invalid),.item input:invalid{border-color:#a33423}#group-shortcuts button{white-space:nowrap}body.presentation #tax-caption{font-size:1.05rem}

body.presentation .item{grid-template-columns:minmax(0,1fr) minmax(100px,.4fr)}body.presentation .item input{border:0;background:transparent;font:inherit}body.presentation .item input[type=number]{text-align:right;appearance:textfield;font-variant-numeric:tabular-nums;letter-spacing:.01em}

.field-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.field-heading .help-button {
  position: relative;
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border-radius: 50%;
  font-size: .75rem;
  line-height: 1;
  color: #774028;
}
.help-button::after {
  content: "";
  position: absolute;
  inset: -.25rem;
  border-radius: inherit;
}
.check input[type="checkbox"] {
  flex: none;
  align-self: flex-start;
  width: .9rem;
  height: .9rem;
  margin: .2rem 0 0;
}
.help-note {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + .3rem);
  z-index: 3;
  padding: .65rem .8rem;
  border-radius: .5rem;
  background: #332f27;
  color: #fffefa;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.45;
  box-shadow: 0 3px 12px #332f2733;
}
.payback .help-note {
  inset-inline-end: auto;
  width: min(24rem, calc(100vw - 5rem));
  background: #fffefa;
  color: #25251f;
}
.recovery-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr));
  align-items: start;
  gap: 1.25rem 2rem;
  margin: 1.1rem 0;
}
#recover {
  display: block;
  font-size: clamp(1.7rem,3vw,2.7rem);
  line-height: 1.12;
  color: #e2edbc;
  font-variant-numeric: tabular-nums;
}
#recovery-context, .recovery-details p, .recovery-ledger small {
  margin-top: .45rem;
  font-size: .9rem;
  color: #d4d7c8;
}
.recovery-ledger { margin: 0; }
.recovery-ledger > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .15rem .65rem;
  padding-block: .4rem;
}
.recovery-ledger > div:first-child { padding-top: 0; }
.recovery-ledger dt { font-size: .92rem; }
.recovery-ledger dd { margin: 0 0 0 auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.recovery-ledger small { display: block; margin-top: .1rem; }
#gain-summary { border-top: 1px solid #676e5e; margin-top: .55rem; padding-top: .75rem; }
.recovery-details { margin-top: 1rem; border-top: 1px solid #515747; }
.recovery-details summary { padding-top: .75rem; cursor: pointer; font-size: .94rem; }
.recovery-details h3 { margin-top: 1rem; }

.deduction { align-items: flex-start; margin-block: .4rem .8rem; font-weight: 400; }
.deduction[hidden] { display: none; }
.profit-summary { margin-top: 14px; }
.ledger-card { --inset: clamp(14px, 1.7vw, 28px); padding: 0; overflow: hidden; }
.ledger-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  padding: 1rem var(--inset);
  background: #f0efe6;
  border-bottom: 1px solid var(--line);
}
.ledger-header strong {
  color: #37452e;
  line-height: 1.2;
}
.ledger-card .lines { padding-inline: var(--inset); }
.ledger-card .lines > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-block: .7rem;
}
.cost-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
}
.cost-label small { display: block; color: var(--muted); font-size: .82rem; margin-top: .12rem; }
.cost-amounts { display: grid; justify-items: end; gap: .12rem; text-align: right; }
.cost-amounts small { color: var(--muted); font-size: .82rem; }
.cost-amounts small span { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .cost-amounts small span { display: block; }
}
.tax-icon {
  display: block;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: #77786e;
}
.tax-icon circle { fill: #f5f4ee; stroke: currentColor; stroke-width: 1.25; }
.tax-icon path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tax-icon.included { color: #426042; }
.tax-icon.included circle { fill: #e7eee1; }
.tax-status { display: inline-flex; align-items: center; height: 1.45em; }
.ledger-footer {
  padding: .7rem var(--inset);
  background: #f8f7f1;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.cost-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.settlement-note { margin: 0; line-height: 1.55; }
.settlement-total {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .8rem;
  padding: .8rem var(--inset);
  border-block: 1px solid #d5dacb;
  background: #edf0e7;
  color: #35432d;
  font-variant-numeric: tabular-nums;
}
.settlement-total strong { font-size: clamp(1.13rem,1.35vw,1.45rem); }
.settlement-total .loss { color: #933d24; }
#settlement-hint { padding: .65rem var(--inset); color: var(--muted); font-size: .875rem; }
.settlement-details summary {
  padding: .8rem var(--inset);
  cursor: pointer;
  color: #494e40;
  font-size: .94rem;
  font-weight: 600;
}
.settlement-details summary:focus-visible { outline-offset: -3px; }
.settlement-details summary:hover { background: #f7f7f1; }
.tax-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,19rem),1fr));
  gap: 1.2rem 2rem;
  padding: .35rem var(--inset) 1rem;
}
.tax-breakdown section { min-width: 0; }
.tax-breakdown h3 { margin-bottom: .35rem; }
.tax-breakdown .lines { padding: 0; font-size: .875rem; }
.tax-breakdown .lines > div { padding-block: .4rem; }
.tax-breakdown p { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.cost-legend > span:not([hidden]) { display: inline-flex; align-items: center; gap: .45rem; }

.controls-title .gross-guide { margin: .45rem 0 0; line-height: 1.45; }
.gross-caption { margin: .2rem 0 0; color: var(--muted); font-size: .82rem; }
.expense {
  min-inline-size: 0;
  margin: 1.15rem 0 0;
  padding: 0;
  border: 0;
}
.expense + .expense { margin-top: 1.6rem; }
.expense legend {
  width: 100%;
  padding: .45rem .65rem;
  border-radius: .3rem;
  background: #eaece2;
  color: #38422f;
  font-size: 1rem;
  font-weight: 700;
}
.expense > div { padding-inline: .65rem; }
.expense .field { margin: .7rem 0; }
.section-accounting {
  margin-block: 1.15rem .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}
.section-accounting h3 { font-size: .95rem; }
.cost-settings {
  display: grid;
  gap: .35rem;
  margin-top: .6rem;
  font-size: .875rem;
  font-weight: 400;
}
.cost-settings .deduction { margin: 0 0 .3rem; }
.cost-settings .deduction label { cursor: pointer; }
.cost-settings select { min-width: 0; margin: 0; }
.cost-settings .vat-credit { color: #374c31; font-size: .82rem; }

/* The three views share the navigation edge of the course banner. */
.hero { margin-bottom: 0; border-radius: 18px 18px 0 0; }
.view-tabs {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  background: #fffefa;
  margin-bottom: clamp(20px,2.4vw,36px);
}
.view-tabs button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  padding: .92rem .4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #58594f;
  line-height: 1.25;
}
.view-tabs button + button { border-left: 1px solid var(--line); }
.view-tabs button:hover { background: #f5f2ea; }
.view-tabs button:focus-visible { outline-offset: -4px; }
.view-tabs button[aria-selected="true"] { background: #f5eae0; color: #853b22; }
.view-tabs button[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--rust); }
.view-tabs svg { width: 1.22rem; height: 1.22rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

#plan-context:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  margin-bottom: 1.1rem;
}
#view-heading { font: 500 clamp(1.7rem,2.7vw,2.65rem)/1.12 Georgia,serif; letter-spacing: -.032em; }
.plan-reference { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; font-size: .9rem; color: var(--muted); }
#plan-warning { padding: .75rem; background: #fff0dc; }
.plan-invalid :is(.results,.payback,.simulator,#startup-total) { display: none; }
.field > .link { margin-top: .4rem; }

.investment-workspace,.simulator {
  --panel-pad: clamp(1.05rem,2.3vw,2rem);
  display: grid;
  gap: clamp(.85rem,1.4vw,1.4rem);
  align-items: start;
}
.investment-workspace { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.simulator { grid-template-columns: minmax(0,.82fr) minmax(0,1.65fr); }
.investment-workspace .card { margin: 0; }
.investment-workspace .payback,.scenario-control {
  padding: var(--panel-pad);
  border-radius: 16px;
  background: linear-gradient(125deg,#394632,#272f27 78%);
  color: #fffcf2;
}
.payback .field-heading h2,.sim-setup label { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.investment-workspace .recovery-overview { display: block; margin: .85rem 0 0; }
#recover { font-size: clamp(2.15rem,3.8vw,3.6rem); font-weight: 600; letter-spacing: -.025em; color: #f1f3cf; }
#recovery-context { margin-top: .45rem; max-width: 46ch; }
.investment-workspace .recovery-ledger { margin-top: 1.35rem; padding-top: .8rem; border-top: 1px solid #626c5b; }
.recovery-ledger dt { flex: 1 1 9rem; }
.recovery-ledger dd { font-weight: 600; }
#gain-summary strong { color: #e7edcc; white-space: nowrap; }
.recovery-details summary { color: #e4e6d9; }
.investment-workspace .investments,#sim-comparison { padding: 0; overflow: hidden; border: 1px solid var(--line); background: #fffefa; border-radius: 16px; }
.investment-head { padding: var(--panel-pad) var(--panel-pad) .9rem; }
.investment-head h3 { font-size: 1.2rem; }
.investment-head p { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.investment-head p { margin: .3rem 0 0; }
.expense-editor { padding: 0 var(--panel-pad) 1.2rem; }
.expense-columns,.investments .item { display: grid; grid-template-columns: minmax(0,1fr) minmax(5rem,.44fr) 3.2rem; gap: .5rem; }
.mobile-unit { display: none; }
.expense-columns { color: var(--muted); font-size: .8rem; margin-bottom: .35rem; }
.expense-columns span:nth-child(2) { text-align: right; }
.investments .item input { min-height: 2.6rem; }
.investments .item input[type="number"] { text-align: right; }
.investments .item button { border: 0; background: transparent; color: #85422e; }
.investments .item button:hover { text-decoration: underline; }
#add { margin-top: .4rem; color: #793b24; background: #fbf3eb; border-color: #dac3b2; }
.investments .subtotal { margin: 0; background: #f2efe7; padding: 1rem var(--panel-pad); }
.investments .subtotal strong { color: #3c4633; font-size: 1.3rem; }
body.presentation .investments .expense-columns,body.presentation .investments .item { grid-template-columns: minmax(0,1fr) auto; }

.sim-stepper {
  display: grid;
  width: 100%;
  grid-template-columns: 2.85rem minmax(0,1fr) 2.85rem;
  align-items: center;
  gap: .5rem;
  margin: .9rem 0 1.3rem;
}
.sim-stepper input {
  width: 100%;
  min-width: 0;
  text-align: center;
  line-height: 1.22;
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(2.2rem,4vw,3.5rem);
  color: #fffcf2;
  background: #ffffff0c;
  border: 1px solid #72806b;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}
.sim-stepper input::-webkit-inner-spin-button { appearance: none; }
.sim-stepper button { width: 2.85rem; min-height: 2.85rem; padding: 0; background: #eef0de; border-color: #eef0de; color: #333e2d; font-size: 1.35rem; }
.sim-stepper button:hover { background: white; }
.sim-stepper button:disabled { opacity: .46; cursor: default; }
.scenario-change { border-top: 1px solid #69735f; padding-top: 1.1rem; }
#sim-change-label { font-size: .9rem; color: #dce1d2; }
#sim-message { display: block; line-height: 1.35; font-weight: 500; }
#sim-message.amount { margin-top: .3rem; font-size: clamp(1.7rem,2.8vw,2.75rem); line-height: 1.18; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#sim-message[data-direction="down"].amount { color: #ffceae; }
#sim-message[data-direction="up"].amount { color: #dbeeb1; }
.simulator:has(#sim-comparison[hidden]) { grid-template-columns: minmax(0,1fr); }
@media(min-width:851px) {
  .simulator:has(#sim-comparison[hidden]) .scenario-control { display: grid; grid-template-columns: minmax(14rem,1fr) 2fr; align-items: center; gap: 2rem; }
  .simulator:has(#sim-comparison[hidden]) .sim-stepper { margin-bottom: 0; }
  .simulator:has(#sim-comparison[hidden]) .scenario-change { border-top: 0; border-left: 1px solid #69735f; padding: 1rem 2rem; }
}

.comparison { table-layout: fixed; font-variant-numeric: tabular-nums; }
.comparison td,.comparison th { padding: .84rem clamp(.8rem,1.5vw,1.45rem); overflow-wrap: anywhere; vertical-align: middle; }
.comparison th:first-child { width: 40%; }
.comparison thead th { background: #f1efe7; vertical-align: bottom; color: #55594c; }
.comparison thead th:last-child { background: #e6eadc; color: #39472f; }
.comparison small { display: block; margin-top: .15rem; color: #333b2d; font-size: 1.15rem; font-weight: 650; }
.comparison tbody th { color: inherit; font-size: .91rem; font-weight: 500; }
.comparison td:last-child { background: #f6f7ef; color: #35432d; font-weight: 650; }
.comparison .profit-row > * { background: #e9eee1; color: #35432d; font-weight: 700; }
.comparison .profit-row td { font-size: clamp(1rem,1.45vw,1.3rem); }
.comparison .profit-row td:last-child { background: #dce5d2; }
.comparison tr:last-child th { border-bottom: 0; }
.comparison .tax-components { color: var(--muted); font-size: .79rem; font-weight: 400; }
.registration-threshold { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; padding: 1rem clamp(.8rem,1.5vw,1.45rem); background: #f2efe7; border-top: 1px solid var(--line); }
.registration-threshold div { flex: 1 1 16rem; }
.registration-threshold p { margin-top: .2rem; font-size: .85rem; color: var(--muted); }
.registration-threshold strong { color: #35432d; font-size: 1.15rem; }
@media(max-width:850px) {
  .investment-workspace,.simulator { grid-template-columns: minmax(0,1fr); }
  .scenario-control { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.4rem; align-items: center; }
  .sim-stepper { margin-bottom: 0; }
  .scenario-change { border: 0; border-left: 1px solid #69735f; padding: .4rem 0 .4rem 1.4rem; }
}
@media(max-width:600px) {
  .view-tabs button { flex-direction: column; gap: .3rem; min-width: 0; padding: .65rem .15rem; font-size: .85rem; }
  .view-tabs svg { width: 1.1rem; height: 1.1rem; }
  .view-tabs button span { min-height: 2.5em; display: grid; place-items: center; }
  #plan-context { align-items: start; }
  .scenario-control { display: block; }
  .scenario-change { border: 0; border-top: 1px solid #69735f; margin-top: 1rem; padding: .85rem 0 0; }
  .comparison th,.comparison td { font-size: .87rem; padding: .7rem .45rem; }
  .comparison tbody th,.comparison .profit-row td { font-size: .87rem; }
  .comparison th:first-child { width: 36%; padding-left: .7rem; }
  .comparison small { font-size: 1rem; }
}

@media(max-width:480px) {
  .investments .expense-columns { display: none; }
  .investments .item { grid-template-columns: minmax(0,1fr) auto auto; padding: .8rem 0; margin: 0; border-top: 1px solid var(--line); }
  .investments .item input:first-child { grid-column: 1 / -1; }
  .investments .item input[type="number"] { text-align: left; }
  .investments .item button { min-width: 2.8rem; }
  .investments .mobile-unit { display: inline; color: var(--muted); }
  body.presentation .investments .mobile-unit { display: none; }
  body.presentation .investments .item { grid-template-columns: minmax(0,1fr) auto; }
  body.presentation .investments .item input:first-child { grid-column: auto; }
}
