.funnel-form fieldset{border:0;padding:0;margin:0 0 1rem;min-width:0}.funnel-form fieldset+fieldset{border-top:1px solid var(--line);padding-top:1rem}.funnel-form legend{font-size:1.13rem;font-weight:700;margin-bottom:1rem;color:var(--green)}.funnel-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.funnel-field{display:flex;flex-direction:column;gap:.35rem;min-width:0}.funnel-full{grid-column:1/-1}.funnel-field small,.funnel-metric small{font-size:.82rem;line-height:1.4;color:var(--muted)}.funnel-form input,.funnel-form select{min-height:44px}.funnel-result{margin:2rem 0}.funnel-bars{padding:0!important;list-style:none;display:grid;gap:7px;margin:1.5rem 0 2rem}.funnel-bars li{width:var(--bar);min-width:min(100%,230px);display:flex;justify-content:space-between;gap:1rem;padding:.8rem 1rem!important;margin:0 auto!important;background:var(--green);color:white;border-radius:5px}.funnel-bars li:nth-child(2){background:#32654d}.funnel-bars li:nth-child(3){background:#407459}.funnel-bars li:nth-child(4){background:#527d60}.funnel-bars strong{font-variant-numeric:tabular-nums}.funnel-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.funnel-metric{padding:1rem;border:1px solid var(--line);border-radius:8px;background:#fff;min-width:0}.funnel-metric dt{font-size:.88rem;font-weight:600}.funnel-metric dd{font-size:clamp(1.15rem,2.2vw,1.6rem);font-weight:700;margin:.3rem 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;color:var(--green)}.funnel-timing{background:#edf1e7;padding:1.2rem;margin-top:1.5rem;border-left:3px solid var(--green)}.funnel-timing h2{font-size:1.3rem;margin:0 0 1rem}.funnel-timing p:last-child{margin:0}#timing-warning{font-weight:650}#funnel-error{color:#a52620}@media(max-width:560px){.funnel-fields,.funnel-metrics{grid-template-columns:1fr}.funnel-bars li{min-width:0;width:100%}.funnel-form{padding:1rem}}
.funnel-projection{margin:2rem 0;padding-top:1rem;border-top:1px solid var(--line)}.funnel-projection h3{margin-top:2rem}.projection-note{font-size:.9rem;color:var(--muted)}.projection-gantt{padding:1rem;background:#fff;border:1px solid var(--line);border-radius:8px}.gantt-row{display:grid;grid-template-columns:minmax(105px,150px) 1fr;gap:.75rem;align-items:center;margin:.7rem 0}.gantt-label{font-size:.88rem;font-weight:600}.gantt-track{position:relative;height:24px;background:#edf1e7;border-radius:4px;overflow:hidden}.gantt-bar{position:absolute;top:0;height:100%;border-radius:3px}.gantt-acquire,.legend-cost,.projection-bar.cost{background:#a66b24}.gantt-close{background:#496c98}.gantt-revenue,.legend-revenue,.projection-bar.revenue{background:#224e3a}.gantt-ticks{display:flex;justify-content:space-between;margin-left:min(160px,40%);font-size:.75rem;color:var(--muted)}.projection-legend{display:flex;flex-wrap:wrap;gap:.8rem;font-size:.8rem;margin:.5rem 0}.projection-legend span{display:inline-flex;gap:.4rem;align-items:center}.projection-legend i{width:12px;height:12px;border-radius:2px;display:inline-block}.projection-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:8px;padding:.75rem;background:white;margin:1rem 0}.projection-scroll:focus-visible{outline:2px solid var(--green)}.projection-chart{display:grid;gap:3px;min-height:190px}.projection-column{display:flex;flex-direction:column;align-items:center;font-size:11px;color:var(--muted)}.projection-bars{height:160px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:2px;border-bottom:1px solid var(--line)}.projection-bar{width:42%;max-width:22px;border-radius:2px 2px 0 0}.projection-column span{margin-top:4px}.projection-scroll table{min-width:790px;font-variant-numeric:tabular-nums}.projection-scroll table th:not(:first-child),.projection-scroll table td{text-align:right;white-space:nowrap}.projection-scroll svg{display:block;max-width:none}.projection-scroll.editorial-table{padding:0}@media(max-width:560px){.gantt-row{grid-template-columns:105px 1fr;gap:.5rem}.gantt-label{font-size:.75rem}.projection-scroll{padding:.5rem}}

/* Simulator-specific rules outrank the editorial table defaults. */
.funnel-actions{display:grid;gap:.65rem}
.funnel-form .calculation-status{font-size:.9rem;color:var(--green);min-height:2.8em;line-height:1.4}
.funnel-form :is(input,select,button):focus-visible{outline:3px solid var(--green);outline-offset:3px}
.funnel-result :is(h2,h3),#projection-title{scroll-margin-top:1.5rem}
#results-title:focus,#projection-title:focus,#funnel-error:focus{outline:2px solid var(--green);outline-offset:6px}
.result-nav{display:flex;flex-wrap:wrap;gap:.65rem 1.5rem;margin:1rem 0 2rem;font-size:.95rem}
.result-nav a{padding:.5rem 0;text-underline-offset:.2em}
.prose .funnel-result h3{margin-top:2rem}
.funnel-metrics{margin:1rem 0 2rem}
.funnel-metric{display:flex;flex-direction:column;gap:.25rem}
.funnel-metric dt{line-height:1.4}
.funnel-metric dd{font-size:1.5rem;line-height:1.3;margin:.25rem 0}
.funnel-metric small{display:block}
.funnel-timing{border-left:0;border:1px solid var(--line);border-radius:8px}
.prose .funnel-timing h2{font-size:1.3rem;margin:0 0 1rem}
.prose .projection-scroll{min-width:0;overscroll-behavior-x:contain}
.prose .projection-scroll:focus-visible{outline:3px solid var(--green);outline-offset:4px}
.prose #projection-table{width:100%;min-width:1040px;table-layout:auto;font-size:.875rem;line-height:1.45}
.prose #projection-table :is(th,td){padding:.85rem 1rem;overflow-wrap:normal;word-break:normal;white-space:nowrap;text-align:right;vertical-align:middle;font-variant-numeric:tabular-nums}
.prose #projection-table thead th{white-space:normal;min-width:8rem;vertical-align:bottom}
.prose #projection-table :is(th,td):first-child{min-width:4rem;white-space:nowrap;text-align:center;position:sticky;left:0}
.prose #projection-table thead th:first-child{background:var(--green);z-index:1}
.prose #projection-table tbody th{background:#fff}
.prose #projection-table tbody tr:nth-child(even) th{background:#f1f5ed}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:560px){.funnel-actions .button{width:100%;justify-content:center;text-align:center}.funnel-metric dd{font-size:1.35rem}.result-nav{gap:.4rem 1rem}.prose #projection-table :is(th,td){padding:.75rem}.gantt-row{grid-template-columns:1fr;gap:.25rem}.gantt-ticks{margin-left:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.funnel-result *{animation:none!important;transition:none!important}}
/* Give the working area the width needed by projections and financial data. */
.simulator-layout{grid-template-columns:minmax(0,1fr);gap:2rem}
.simulator-layout .funnel-form{max-width:900px}
.simulator-layout .prose>p,.simulator-layout .answer,.funnel-projection>p{max-width:75ch}
.simulator-layout .sidebar{position:static;display:flex;flex-wrap:wrap;gap:.5rem 2rem;align-items:baseline}
.simulator-layout .sidebar h2{width:100%;margin:0}
.simulator-layout .sidebar a{margin:.25rem 0}
@media(min-width:1100px){.funnel-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
.funnel-form .portfolio-toggle{display:flex;align-items:center;gap:.65rem;min-height:44px;cursor:pointer}
.funnel-form .portfolio-toggle input{width:1.2rem;height:1.2rem;min-height:0;accent-color:var(--green)}
#portfolio-fields{margin:1rem 0 0;padding:1rem;border:1px solid var(--line);border-radius:8px}
#portfolio-results{margin-block:2rem;padding:1rem;background:#edf1e7}
#portfolio-results h3{margin:0 0 .75rem}
#portfolio-results summary{cursor:pointer;text-decoration:underline;text-underline-offset:.2em}
.prose #portfolio-results .portfolio-table{min-width:640px;font-variant-numeric:tabular-nums}
.prose #portfolio-results .portfolio-table :is(td,th){text-align:right;overflow-wrap:normal;padding:.75rem}
.prose #portfolio-results .portfolio-table :is(td,tbody th,th:first-child){white-space:nowrap}
#growth-action{font-weight:600;margin-bottom:1rem}
#portfolio-results details{margin-top:1rem}
#sales-answer{margin:1rem 0;padding:1rem 1.25rem}
.route-picker{margin:0 0 1.5rem;padding:0;border:0;min-width:0}
.route-picker legend{padding:0;margin:0 0 1rem;font-size:1.5rem;font-weight:700}
.route-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.route-options label{display:flex;gap:1rem;align-items:flex-start;padding:1.3rem;border:2px solid var(--line);border-radius:8px;background:white;cursor:pointer}
.route-options label:hover{border-color:var(--green)}
.route-options label:has(:checked){border-color:var(--green);background:#edf1e7}
.route-options label:has(:focus-visible){outline:3px solid var(--green);outline-offset:3px}
.route-options input{accent-color:var(--green);width:1.2rem;height:1.2rem;flex:none;margin:.25rem 0 0}
.route-options strong,.route-options small{display:block}
.route-options strong{font-size:1.15rem;line-height:1.35;color:var(--green)}
.route-options small{margin-top:.5rem;font-size:.95rem;line-height:1.5;color:var(--muted)}
@media(max-width:700px){.route-options{grid-template-columns:1fr;gap:.65rem}.route-options label{padding:1rem}}
.report-actions{padding:1.25rem;border:1px solid var(--line);border-radius:8px;background:white;margin:1.5rem 0}
.report-signature{display:flex;align-items:center;gap:.6rem;font-size:1rem}
.prose .report-actions h3{margin:.75rem 0}
.report-buttons{display:flex;flex-wrap:wrap;gap:.55rem}
.report-buttons :is(a,button){border:1px solid var(--green);border-radius:5px;background:white;color:var(--green);padding:.65rem .85rem;font:600 .94rem/1.4 Arial,sans-serif;cursor:pointer}
.report-buttons :is(a,button):hover{background:#edf1e7}
.report-buttons :is(a,button):focus-visible{outline:3px solid var(--green);outline-offset:3px}
.prose .report-actions p{margin:.65rem 0 0}
.report-actions textarea{display:block;width:100%}
.print-simulation{display:none}
@media print{
 @page simulation{size:A4;margin:16mm 14mm;@bottom-left{content:'Rui Martins.  ·  rui-martins.com';font:8pt Arial;color:#48534d}@bottom-right{content:'Página ' counter(page) ' de ' counter(pages);font:8pt Arial;color:#48534d}}
 body.report-ready{background:white;color:#17201f}
 body.report-ready>:not(.print-simulation){display:none!important}
 body.report-ready>.print-simulation{page:simulation;display:block;font:10pt/1.4 Arial,sans-serif}
 .print-simulation h1{font-size:20pt;line-height:1.1;margin:.5em 0}
 .print-simulation .report-signature{font-size:17pt}
 .print-simulation>a{color:#224e3a;font-size:9pt;overflow-wrap:anywhere}
 .print-simulation table{width:100%;border-collapse:collapse;margin:5mm 0;font-size:8pt}
 .print-simulation caption{font-size:12pt;font-weight:bold;text-align:left;color:#224e3a;margin-bottom:2mm;break-after:avoid}
 .print-simulation thead{display:table-header-group}
 .print-simulation tr{break-inside:avoid}
 .print-simulation :is(th,td){text-align:right;border-bottom:1px solid #bac9c5;padding:1.4mm 1mm}
 .print-simulation :is(th,td):first-child{text-align:left}
 .print-simulation td{white-space:normal;overflow-wrap:break-word}
 .print-simulation th{color:#224e3a}
}
.report-personalize{margin:1rem 0}
.report-personalize summary{cursor:pointer}
.report-personalize .funnel-fields{margin:.7rem 0}
.report-personalize input{display:block;width:100%;padding:.55rem;border:1px solid var(--line);border-radius:4px;font:inherit}
