*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#f8fafc;--surface:#fff;--border:#e2e8f0;--text:#0f172a;--text-muted:#64748b;--radius:12px;--shadow:0 1px 3px #0000000f, 0 1px 2px #0000000a}html{-webkit-font-smoothing:antialiased;font-size:16px}body{background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,sans-serif;line-height:1.6}.app{max-width:860px;margin:0 auto;padding:2.5rem 1.25rem 4rem}header{text-align:center;margin-bottom:2.5rem}header h1{letter-spacing:-.02em;font-size:1.85rem;font-weight:700;line-height:1.2}.manifesto{color:var(--text);text-align:justify;-webkit-hyphens:auto;hyphens:auto;opacity:.85;width:100%;max-width:620px;margin-top:1.1rem;margin-left:auto;margin-right:auto;font-size:.92rem;line-height:1.65}main{flex-direction:column;gap:1.5rem;display:flex}.page-loading,.chart-loading{color:var(--text-muted);justify-content:center;align-items:center;font-size:.9rem;display:flex}.page-loading{min-height:40vh}.chart-loading{min-height:420px}.simulator-tabs{grid-template-columns:1fr 1fr;gap:.75rem;display:grid}.simulator-tab{border:1.5px solid var(--border);border-radius:var(--radius);background:var(--surface);cursor:pointer;text-align:left;box-shadow:var(--shadow);flex-direction:column;align-items:flex-start;gap:.2rem;padding:.85rem 1rem;font-family:inherit;transition:all .15s;display:flex}.simulator-tab:hover{border-color:#6366f1}.simulator-tab.active{color:#fff;background:#6366f1;border-color:#6366f1}.simulator-tab-label{letter-spacing:.04em;text-transform:uppercase;font-size:.95rem;font-weight:700}.simulator-tab-desc{opacity:.85;font-size:.78rem}.simulator-tab:not(.active) .simulator-tab-desc{color:var(--text-muted)}.complement-intro{color:var(--text);opacity:.9;font-size:.92rem;line-height:1.6}.epargne-input label{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:.5rem;font-size:.82rem;font-weight:500;display:block}.epargne-cap-notice{color:#b45309;font-weight:500}.complement-summary{grid-template-columns:repeat(3,1fr);gap:1rem;display:grid}@media (width<=720px){.complement-summary{grid-template-columns:1fr}}.complement-summary-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);border-left-width:3px;flex-direction:column;gap:.25rem;padding:1.1rem 1.25rem;display:flex}.complement-summary-card.highlight{background:#f0fdf4;border-color:#86efac #86efac #86efac #22c55e}.complement-summary-label{text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);font-size:.75rem;font-weight:500;line-height:1.4}.complement-summary-value{letter-spacing:-.02em;font-size:1.5rem;font-weight:700}.complement-summary-unit{color:var(--text-muted);font-size:.78rem}.complement-chart-intro{color:var(--text-muted);margin-bottom:1rem;font-size:.88rem;line-height:1.55}.complement-chart-note{color:var(--text-muted);margin-top:.75rem;font-size:.78rem;line-height:1.5}.complement-retirement-grid{flex-direction:column;gap:.65rem;margin-top:.5rem;display:flex}.complement-retirement-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:baseline;gap:1rem;padding:.65rem 0;display:flex}.complement-retirement-row:last-child{border-bottom:none}.complement-retirement-extra{background:#f0f9ff;border-bottom:none;border-radius:6px;margin:0 -.5rem;padding:.65rem .5rem}.complement-retirement-total{border-top:2px solid var(--border);border-bottom:none;margin-top:.25rem;padding-top:.85rem;font-weight:600}.complement-retirement-label{color:var(--text-muted);font-size:.85rem}.complement-retirement-value{white-space:nowrap;font-size:1.05rem;font-weight:700}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.25rem 1.5rem}.card-label{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:.75rem;font-size:.82rem;font-weight:500;display:block}.controls{grid-template-columns:auto 1fr;gap:1.25rem;display:grid}@media (width<=640px){.controls{grid-template-columns:1fr}}.contribution-input label{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:.5rem;font-size:.82rem;font-weight:500;display:block}.input-row{align-items:center;gap:.5rem;display:flex}.input-row input{border:1px solid var(--border);width:100%;color:var(--text);background:var(--bg);border-radius:8px;outline:none;padding:.45rem .75rem;font-family:inherit;font-size:1.6rem;font-weight:600;transition:border-color .15s}.input-row input:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f126}.input-row .suffix{white-space:nowrap;color:var(--text-muted);font-size:.95rem;font-weight:500}.employment-row{flex-wrap:wrap;gap:.4rem;margin-bottom:.6rem;display:flex}.employment-btn{border:1.5px solid var(--border);background:var(--surface);color:var(--text-muted);cursor:pointer;white-space:nowrap;border-radius:6px;padding:.3rem .6rem;font-family:inherit;font-size:.72rem;font-weight:500;transition:all .15s}.employment-btn:hover{color:#6366f1;border-color:#6366f1}.employment-btn.active{color:#fff;background:#6366f1;border-color:#6366f1}.preset-row{gap:.5rem;margin-top:.5rem;display:flex}.preset-btn{border:1.5px solid var(--border);background:var(--surface);color:var(--text-muted);cursor:pointer;border-radius:6px;padding:.3rem .7rem;font-family:inherit;font-size:.78rem;font-weight:600;transition:all .15s}.preset-btn:hover{color:#6366f1;border-color:#6366f1}.preset-btn.active{color:#fff;background:#6366f1;border-color:#6366f1}.hint{color:var(--text-muted);margin-top:.5rem;font-size:.8rem}.dropdown-wrapper{position:relative}.dropdown-trigger{border:1.5px solid var(--border);background:var(--bg);cursor:pointer;border-radius:8px;justify-content:space-between;align-items:center;width:100%;padding:.6rem .9rem;font-family:inherit;font-size:.92rem;transition:border-color .15s,box-shadow .15s;display:flex}.dropdown-trigger:hover{border-color:#94a3b8}.dropdown-trigger-left{align-items:center;gap:.5rem;display:flex}.dropdown-trigger-name{color:var(--text);font-weight:600}.dropdown-trigger-return{color:var(--text-muted);align-items:center;gap:.3rem;font-size:.78rem;display:inline-flex}.dropdown-chevron{color:var(--text-muted);font-size:.7rem;transition:transform .2s}.dropdown-chevron.open{transform:rotate(180deg)}.dropdown-menu{background:var(--surface);border:1px solid var(--border);z-index:50;border-radius:10px;flex-direction:column;gap:2px;padding:.35rem;display:flex;position:absolute;top:calc(100% + 4px);left:0;right:0;box-shadow:0 8px 24px #0000001a}.dropdown-item{cursor:pointer;text-align:left;background:0 0;border:none;border-radius:7px;align-items:center;gap:.5rem;width:100%;padding:.55rem .75rem;font-family:inherit;font-size:.88rem;transition:background .12s;display:flex}.dropdown-item:hover{background:var(--bg)}.dropdown-item.active{background:var(--bg);font-weight:500}.dropdown-item-name{color:var(--text);flex:1}.dropdown-item-return{color:var(--text-muted);align-items:center;gap:.3rem;font-size:.76rem;display:inline-flex}.asset-chip-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.info-hint{color:var(--text-muted);cursor:help;outline:none;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative}.info-hint-icon{opacity:.65;width:14px;height:14px;transition:opacity .15s,color .15s}.info-hint:hover .info-hint-icon,.info-hint:focus-visible .info-hint-icon{opacity:1;color:#6366f1}.info-hint-tooltip{z-index:60;background:var(--text);color:#fff;text-align:left;pointer-events:none;opacity:0;visibility:hidden;border-radius:6px;width:max-content;max-width:220px;padding:.45rem .6rem;font-size:.72rem;font-weight:500;line-height:1.4;transition:opacity .15s,transform .15s,visibility .15s;position:absolute;bottom:calc(100% + 6px);right:0;transform:translateY(4px)}.info-hint:hover .info-hint-tooltip,.info-hint:focus-visible .info-hint-tooltip{opacity:1;visibility:visible;transform:translateY(0)}.portfolio-detail{border-top:1px solid var(--border);flex-wrap:wrap;gap:.35rem 1rem;margin-top:.85rem;padding-top:.75rem;display:flex}.portfolio-holding{align-items:center;gap:.35rem;font-size:.78rem;display:flex}.holding-weight{min-width:2.2rem;color:var(--text);font-weight:600}.holding-name{color:var(--text)}.holding-ticker{color:var(--text-muted);font-size:.7rem}.tax-selector{margin-top:-.5rem}.tax-selector-label{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);align-items:center;gap:.35rem;margin-bottom:.6rem;font-size:.82rem;font-weight:500;display:inline-flex}.tax-selector-row{flex-wrap:wrap;gap:.6rem;display:flex}.tax-selector-btn{border:1.5px solid var(--border);background:var(--surface);cursor:pointer;text-align:left;border-radius:8px;flex-direction:column;align-items:flex-start;gap:.15rem;padding:.65rem .9rem;font-family:inherit;transition:all .15s;display:flex}.tax-selector-btn:hover{border-color:#6366f1}.tax-selector-btn.active{color:#fff;background:#6366f1;border-color:#6366f1}.tax-selector-btn-label{font-size:.88rem;font-weight:600}.tax-selector-btn-detail{opacity:.85;font-size:.76rem}.tax-selector-btn:not(.active) .tax-selector-btn-detail{color:var(--text-muted)}.info-retraite-callout{background:#eff6ff;border-color:#bfdbfe}.info-retraite-callout p{color:var(--text);font-size:.9rem;line-height:1.6}.info-retraite-callout a{color:#2563eb;text-underline-offset:2px;font-weight:600;text-decoration:underline}.info-retraite-callout a:hover{color:#1d4ed8}.gender-row{margin-bottom:1rem}.gender-row-label{text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);margin-bottom:.45rem;font-size:.78rem;font-weight:500;display:block}.gender-row-buttons{flex-wrap:wrap;gap:.5rem;display:flex}.gender-btn{border:1.5px solid var(--border);background:var(--surface);color:var(--text-muted);cursor:pointer;border-radius:6px;padding:.35rem .75rem;font-family:inherit;font-size:.82rem;font-weight:500;transition:all .15s}.gender-btn:hover{color:#6366f1;border-color:#6366f1}.gender-btn.active{color:#fff;background:#6366f1;border-color:#6366f1}.savings-projection h2{margin-bottom:.5rem;font-size:1.05rem;font-weight:600}.savings-projection-intro{color:var(--text-muted);margin-bottom:1rem;font-size:.88rem;line-height:1.55}.savings-projection label{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:.5rem;font-size:.82rem;font-weight:500;display:block}.savings-projection-stats{grid-template-columns:1fr 1fr;gap:1rem;margin-top:1.25rem;display:grid}@media (width<=540px){.savings-projection-stats{grid-template-columns:1fr}}.savings-projection-stat{background:var(--bg);border-radius:8px;flex-direction:column;gap:.25rem;padding:1rem;display:flex}.savings-projection-stat-label{text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);font-size:.75rem;font-weight:500}.savings-projection-stat-value{letter-spacing:-.01em;font-size:1.35rem;font-weight:700}.summary-row{grid-template-columns:repeat(4,1fr);gap:1rem;display:grid}@media (width<=640px){.summary-row{grid-template-columns:repeat(2,1fr)}}.summary-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);border-top:3px solid var(--border);padding:1rem 1.15rem}.summary-card.highlight{border-top-color:#f59e0b}.summary-label{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:.25rem;font-size:.75rem;font-weight:500;display:block}.summary-value{letter-spacing:-.01em;font-size:1.2rem;font-weight:700}.chart-container h2{margin-bottom:.75rem;font-size:1rem;font-weight:600}.chart-tooltip{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:8px;padding:.65rem .85rem;font-size:.82rem;line-height:1.5}.chart-tooltip-title{margin-bottom:.25rem;font-weight:600}.chart-tooltip-diff{border-top:1px solid var(--border);color:#f59e0b;margin-top:.35rem;padding-top:.35rem}.legend-label{font-size:.82rem}.retirement-comparison h2{margin-bottom:.25rem;font-size:1rem;font-weight:600}.age-slider-row{margin-bottom:1rem}.age-slider-row label{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:.4rem;font-size:.75rem;font-weight:500;display:block}.age-slider-control{align-items:center;gap:.5rem;display:flex}.age-slider-bound{color:var(--text-muted);text-align:center;min-width:1.8rem;font-size:.72rem}.age-slider-control input[type=range]{appearance:none;background:var(--border);cursor:pointer;border-radius:3px;outline:none;flex:1;height:6px}.age-slider-control input[type=range]::-webkit-slider-thumb{appearance:none;cursor:grab;background:#6366f1;border:2px solid #fff;border-radius:50%;width:18px;height:18px;box-shadow:0 1px 4px #0003}.age-slider-control input[type=range]::-moz-range-thumb{cursor:grab;background:#6366f1;border:2px solid #fff;border-radius:50%;width:18px;height:18px;box-shadow:0 1px 4px #0003}.age-slider-value{color:var(--text);text-align:right;min-width:4.5rem;font-size:1.05rem;font-weight:700}.retirement-assumptions{color:var(--text-muted);margin-bottom:1rem;font-size:.78rem}.retirement-rule{font-style:italic}.retirement-grid{grid-template-columns:1fr auto 1fr;align-items:start;gap:1.25rem;display:grid}@media (width<=640px){.retirement-grid{grid-template-columns:1fr;gap:1rem}.retirement-divider{display:none}}.retirement-divider{background:var(--border);align-self:stretch;width:1px}.retirement-col{flex-direction:column;gap:.75rem;display:flex}.retirement-col-title{text-transform:uppercase;letter-spacing:.03em;font-size:.82rem;font-weight:600}.retirement-stat{flex-direction:column;gap:.15rem;display:flex}.retirement-stat-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em;font-size:.75rem;font-weight:500}.retirement-stat-value{letter-spacing:-.01em;font-size:1.35rem;font-weight:700}.inheritance-zero{color:var(--text-muted);opacity:.6;text-decoration:line-through}.inheritance-positive{color:#16a34a}.retirement-footnote{border-top:1px solid var(--border);color:var(--text-muted);margin-top:1rem;padding-top:.75rem;font-size:.78rem;line-height:1.5}.modal-overlay{z-index:1000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0f172a73;justify-content:center;align-items:center;padding:1.25rem;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:420px;padding:1.5rem;box-shadow:0 8px 32px #0000001f}.modal-text{color:var(--text);font-size:.92rem;line-height:1.6}.modal-text a{color:#6366f1;text-underline-offset:2px;font-weight:500;text-decoration:underline}.modal-text a:hover{color:#4f46e5}.modal-btn{color:#fff;cursor:pointer;background:#6366f1;border:none;border-radius:8px;width:100%;margin-top:1.25rem;padding:.65rem 1rem;font-family:inherit;font-size:.9rem;font-weight:600;transition:background .15s;display:block}.modal-btn:hover{background:#4f46e5}.legal-page{max-width:720px}.legal-header{text-align:left;margin-bottom:2rem}.legal-back{color:#6366f1;margin-bottom:1.25rem;font-size:.85rem;font-weight:500;text-decoration:none;display:inline-block}.legal-back:hover{color:#4f46e5;text-underline-offset:2px;text-decoration:underline}.legal-header h1{letter-spacing:-.02em;text-transform:none;font-size:1.65rem;font-weight:700;line-height:1.25}.legal-version{color:var(--text-muted);margin-top:.35rem;font-size:.85rem}.legal-preamble{color:#92400e;background:#fef3c7;border:1px solid #fcd34d;border-radius:8px;margin-top:1rem;padding:.85rem 1rem;font-size:.88rem;line-height:1.55}.legal-content{flex-direction:column;gap:1.75rem;display:flex}.legal-section h2{letter-spacing:-.01em;margin-bottom:.75rem;font-size:1.05rem;font-weight:700}.legal-subsection{margin-top:1rem}.legal-subsection h3{color:var(--text);margin-bottom:.6rem;font-size:.95rem;font-weight:600}.legal-section p,.legal-subsection p{color:var(--text);margin-bottom:.65rem;font-size:.9rem;line-height:1.65}.legal-section ul,.legal-subsection ul{color:var(--text);margin:.35rem 0 .65rem 1.25rem;font-size:.9rem;line-height:1.65}.legal-section li+li,.legal-subsection li+li{margin-top:.35rem}.legal-warning{color:#92400e;background:#fef3c7;border-left:3px solid #f59e0b;border-radius:0 8px 8px 0;padding:.75rem 1rem;font-weight:600}.legal-emphasis{font-weight:600}.legal-footer{border-top:1px solid var(--border);text-align:center;margin-top:2.5rem;padding-top:1.25rem}.legal-footer p{color:var(--text-muted);font-size:.78rem}footer{text-align:center}footer p{color:var(--text-muted);max-width:600px;margin:0 auto;font-size:.78rem}input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{appearance:textfield}
