/* Layout: một cột kiểu app điện thoại (tối đa 460px), thanh tab cố định dưới; trên desktop là khung app ở giữa trang */
:root{
  --bg:#EEF1F5; --surface:#FFFFFF; --surface-2:#F6F8FB; --ink:#13213A; --muted:#5B6779; --line:#DCE2EA;
  --navy:#1B3358; --on-navy:#FFFFFF; --navy-soft:#E4EAF4; --accent:#B97817; --accent-soft:#F7EBD6;
  --pos:#1D7348; --pos-soft:#DFF1E7; --neg:#B0392D; --neg-soft:#F8E1DE;
  --c1:#2a78d6; --c2:#eb6834; --c3:#1baf7a; --c4:#eda100; --c5:#e87ba4; --c6:#6250d6;
  --font:"Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r:14px;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#0B111C; --surface:#141D2D; --surface-2:#1A2538; --ink:#E6EBF3; --muted:#98A4B7; --line:#263249;
  --navy:#9DB8E8; --on-navy:#0B111C; --navy-soft:#1F2D46; --accent:#E3A951; --accent-soft:#3A2D18;
  --pos:#55C68F; --pos-soft:#15301F; --neg:#F08174; --neg-soft:#3A1C19; --c1:#3987e5; --c2:#d95926; --c3:#199e70; --c4:#c98500; --c5:#d55181; --c6:#9085e9; color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#0B111C; --surface:#141D2D; --surface-2:#1A2538; --ink:#E6EBF3; --muted:#98A4B7; --line:#263249;
  --navy:#9DB8E8; --on-navy:#0B111C; --navy-soft:#1F2D46; --accent:#E3A951; --accent-soft:#3A2D18;
  --pos:#55C68F; --pos-soft:#15301F; --neg:#F08174; --neg-soft:#3A1C19; --c1:#3987e5; --c2:#d95926; --c3:#199e70; --c4:#c98500; --c5:#d55181; --c6:#9085e9; color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{background:var(--bg); color:var(--ink); font-family:var(--font); font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased}
button,input,select{font:inherit; color:inherit}
.num{font-variant-numeric:tabular-nums}
.shell{max-width:460px; margin:0 auto; min-height:100%; background:var(--surface); display:flex; flex-direction:column; position:relative}
@media (min-width:560px){ body{padding-block:24px} .shell{min-height:calc(100% - 48px); border:1px solid var(--line); border-radius:28px; overflow:hidden; box-shadow:0 20px 60px -30px rgba(10,20,40,.35)} }
header.top{padding:18px 16px 10px; border-bottom:1px solid var(--line); background:var(--surface); position:sticky; top:env(safe-area-inset-top,0px); z-index:5}
.brand{display:flex; align-items:baseline; justify-content:space-between; gap:8px}
.brand h1{font-size:19px; margin:0; letter-spacing:-.01em; font-weight:700; color:var(--navy)}
.brand small{color:var(--muted); font-size:12px}
.proto{margin-top:6px; font-size:12px; color:var(--accent); background:var(--accent-soft); padding:3px 8px; border-radius:6px; display:inline-block}
.profile-pick{margin-top:10px; display:flex; gap:8px; align-items:center}
.profile-pick select{flex:1; min-width:0; padding:9px 10px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2)}
main{flex:1; padding:14px 16px 96px; display:flex; flex-direction:column; gap:14px}
.seg{display:grid; grid-template-columns:repeat(5,1fr); background:var(--surface-2); border:1px solid var(--line); border-radius:12px; padding:3px; gap:3px}
.seg button{border:0; background:transparent; padding:8px 4px; border-radius:9px; font-size:13px; font-weight:500; color:var(--muted); cursor:pointer}
.seg button[aria-selected="true"]{background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.12)}
details.group{border:1px solid var(--line); border-radius:var(--r); background:var(--surface)}
details.group>summary{list-style:none; cursor:pointer; padding:13px 14px; display:flex; justify-content:space-between; align-items:center; font-weight:600}
details.group>summary::-webkit-details-marker{display:none}
details.group>summary .sum{font-weight:400; color:var(--muted); font-size:13px}
details.group>summary::after{content:"›"; transform:rotate(90deg); color:var(--muted); margin-left:8px; transition:transform .15s}
details.group:not([open])>summary::after{transform:none}
.fields{padding:2px 14px 14px; display:grid; gap:12px}
.row2{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.field label{display:block; font-size:13px; color:var(--muted); margin-bottom:4px}
.inp{display:flex; align-items:center; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); padding:0 10px}
.inp:focus-within{border-color:var(--navy); box-shadow:0 0 0 3px var(--navy-soft)}
.inp input,.inp select{flex:1; min-width:0; border:0; background:transparent; padding:10px 0; outline:none; font-variant-numeric:tabular-nums; font-size:16px}
.inp .unit{color:var(--muted); font-size:13px; white-space:nowrap; padding-left:6px}
.inp .unit-sel{flex:0 0 auto; width:auto; border:0; border-left:1px solid var(--line); background:transparent; padding:8px 4px 8px 8px; margin-left:6px; font-size:13px; font-weight:600; color:var(--navy); cursor:pointer; flex:0 0 auto}
.unit-sel:focus-visible{outline:2px solid var(--navy); outline-offset:1px; border-radius:6px}
.who{display:flex; align-items:center; gap:7px; margin-top:8px; font-size:12px; color:var(--muted); min-width:0}
.who img{width:20px; height:20px; border-radius:50%; flex:0 0 auto}
.who .dot{width:8px; height:8px; border-radius:50%; background:var(--muted); flex:0 0 auto}
.who.cloud .dot{background:var(--pos)} .who.warn .dot{background:var(--accent)}
.who b{color:var(--ink); font-weight:600}
.gate{position:fixed; inset:0; z-index:50; background:var(--bg); display:grid; place-items:center; padding:24px 16px; overflow:auto}
body.locked .shell{visibility:hidden}
.gate-card{width:100%; max-width:420px; background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:28px 24px; display:grid; gap:14px; box-shadow:0 24px 60px -36px rgba(10,20,40,.45)}
.gate-kicker{margin:0; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); font-weight:600}
.gate h2{margin:0; font-size:28px; letter-spacing:-.02em; color:var(--navy)}
.gate-lead{margin:0; color:var(--muted); font-size:15px}
.gate-points{margin:0; padding-left:18px; display:grid; gap:4px; font-size:14px}
.gbtn{display:flex; align-items:center; justify-content:center; gap:12px; width:100%; padding:12px 16px; border-radius:12px; border:1px solid var(--line); background:var(--surface); color:var(--ink); font-weight:600; font-size:15px; cursor:pointer; margin-top:4px}
.gbtn:hover{background:var(--surface-2)} .gbtn:focus-visible{outline:2px solid var(--navy); outline-offset:2px}
.gate-wait{margin:0; text-align:center; color:var(--muted); font-size:14px}
.gate-msg{margin:0; color:var(--neg); background:var(--neg-soft); border-radius:10px; padding:8px 10px; font-size:13px}
.gate-preview{border:1px dashed var(--line); border-radius:12px; padding:10px 12px; display:grid; gap:8px; font-size:13px; color:var(--muted)}
.gate-preview p{margin:0}
.gate-fine{margin:0; font-size:12px; color:var(--muted)} .gate-fine a{color:var(--navy)}
.who-name{display:flex; flex-direction:column; min-width:0; line-height:1.3}
.who-name b,.who-mail{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.who-mail{font-size:11px}
.who .btn{margin-left:auto}
.save-note{margin:6px 0 0; font-size:12px; color:var(--accent)}
.g-btn-box{min-height:44px; display:flex; justify-content:center}
.g-or{display:flex; align-items:center; gap:10px; color:var(--muted); font-size:12px; margin:4px 0}
.g-or::before,.g-or::after{content:""; flex:1; height:1px; background:var(--line)}
.g-tabs{display:grid; grid-template-columns:1fr 1fr; background:var(--surface-2); border:1px solid var(--line); border-radius:11px; padding:3px; gap:3px}
.g-tabs button{border:0; background:transparent; padding:8px; border-radius:8px; font-weight:500; color:var(--muted); cursor:pointer}
.g-tabs button[aria-selected="true"]{background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.12)}
.g-form{display:grid; gap:4px; margin-top:10px}
.g-form label{font-size:13px; color:var(--muted); margin-top:6px}
.g-form input{padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); font-size:16px}
.g-form input:focus{outline:2px solid var(--navy); outline-offset:0}
.g-form .btn{margin-top:10px}
#gForms{display:grid; gap:10px}
.avatar-i{width:22px; height:22px; border-radius:50%; background:var(--navy); color:var(--on-navy); display:grid; place-items:center; font-size:11px; font-weight:700; flex:0 0 auto}
#saveState[data-s="pending"]{color:var(--accent)} #saveState[data-s="saved"]{color:var(--pos)}
.hint{font-size:12px; color:var(--muted); margin-top:3px}
.field.err .inp{border-color:var(--neg)} .field.err .hint{color:var(--neg)}
.toggle{display:grid; grid-template-columns:1fr 1fr; gap:6px}
.toggle button{border:1px solid var(--line); background:var(--surface-2); border-radius:10px; padding:9px 6px; font-size:13px; cursor:pointer}
.toggle button[aria-pressed="true"]{border-color:var(--navy); background:var(--navy-soft); font-weight:600}
.btn{border:0; border-radius:12px; padding:12px 14px; font-weight:600; cursor:pointer; background:var(--navy); color:var(--on-navy)}
.btn.ghost{background:transparent; color:var(--navy); border:1px solid var(--line)}
.btn.small{padding:8px 10px; font-size:13px; border-radius:10px}
.btn:focus-visible,.seg button:focus-visible,.toggle button:focus-visible,.tabbar button:focus-visible,summary:focus-visible{outline:2px solid var(--navy); outline-offset:2px}
.actions{display:flex; gap:8px; flex-wrap:wrap}
.actions .btn{flex:1}
/* Kết quả */
.kpis{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.kpi{padding:12px; border-radius:var(--r); background:var(--surface-2); border:1px solid var(--line); display:flex; flex-direction:column; gap:2px; min-width:0}
.kpi .k{font-size:12px; color:var(--muted)}
.kpi .v{font-size:21px; font-weight:700; letter-spacing:-.01em}
.kpi .s{font-size:12px; color:var(--muted)}
.kpi.wide{grid-column:1/-1}
.kpi.neg .v{color:var(--neg)} .kpi.pos .v{color:var(--pos)}
.pay-step{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.pay-step .arrow{color:var(--accent); font-weight:700}
.pill{display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; padding:3px 9px; border-radius:999px}
.pill.neg{background:var(--neg-soft); color:var(--neg)} .pill.pos{background:var(--pos-soft); color:var(--pos)} .pill.warn{background:var(--accent-soft); color:var(--accent)}
.card{border:1px solid var(--line); border-radius:var(--r); padding:14px; background:var(--surface)}
.card h3{margin:0 0 4px; font-size:15px}
.card p{margin:0; color:var(--muted); font-size:13px}
.chart{width:100%; height:auto; display:block; margin-top:8px}
.legend{display:flex; gap:14px; flex-wrap:wrap; font-size:12px; color:var(--muted); margin-top:6px}
.legend i{display:inline-block; width:12px; height:3px; border-radius:2px; vertical-align:middle; margin-right:5px}
.metrics{display:grid; gap:0}
.metric{display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); font-size:14px}
.metric:last-child{border-bottom:0}
.metric span:first-child{color:var(--muted)}
.metric b{font-weight:600; text-align:right}
.metric button.info{border:0; background:none; color:var(--navy); cursor:pointer; padding:0 0 0 4px; font-size:13px}
.explain{font-size:12px; color:var(--muted); background:var(--surface-2); border-radius:8px; padding:8px 10px; margin-top:-4px; margin-bottom:6px}
.disclaimer{font-size:12px; color:var(--muted); border-top:1px dashed var(--line); padding-top:10px}
/* Kịch bản */
.slider label{display:flex; justify-content:space-between; font-size:13px; color:var(--muted)}
.slider label b{color:var(--ink)}
input[type=range]{width:100%; accent-color:var(--navy)}
.cmp{width:100%; border-collapse:collapse; font-size:13px}
.cmp th,.cmp td{padding:8px 6px; border-bottom:1px solid var(--line); text-align:right; font-variant-numeric:tabular-nums}
.cmp th:first-child,.cmp td:first-child{text-align:left; color:var(--muted); font-weight:400}
.cmp thead th{font-size:12px; color:var(--muted); font-weight:600}
.cmp td.worse{color:var(--neg); font-weight:600} .cmp td.better{color:var(--pos); font-weight:600}
.scroll{overflow-x:auto; -webkit-overflow-scrolling:touch}
.sched{width:100%; border-collapse:collapse; font-size:12.5px; min-width:420px}
.sched th,.sched td{padding:7px 6px; text-align:right; border-bottom:1px solid var(--line); font-variant-numeric:tabular-nums; white-space:nowrap}
.sched th{position:sticky; top:0; background:var(--surface); color:var(--muted); font-weight:600}
.sched th:first-child,.sched td:first-child{text-align:left}
.sched tr.change td{background:var(--accent-soft)}
.sched tr.prepay td{background:var(--navy-soft)}
/* Danh sách hồ sơ */
.plist{display:grid; gap:10px}
.pitem{border:1px solid var(--line); border-radius:var(--r); padding:12px 14px; display:grid; gap:6px}
.pitem.active{border-color:var(--navy); box-shadow:0 0 0 2px var(--navy-soft)}
.pitem .t{display:flex; justify-content:space-between; gap:8px; align-items:baseline}
.pitem .t b{font-size:15px}
.tag{font-size:11px; color:var(--accent); background:var(--accent-soft); padding:1px 7px; border-radius:6px; white-space:nowrap}
.pitem .m{font-size:13px; color:var(--muted)}
.confirm{display:flex; gap:8px; align-items:center; font-size:13px; color:var(--neg); flex-wrap:wrap}
.ab{display:grid; grid-template-columns:1fr 1fr; gap:8px}
.ab select{width:100%; padding:9px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2)}
.note{font-size:13px; color:var(--muted)}
.prose h3{margin:0 0 6px; font-size:15px}
.prose p,.prose li{font-size:14px; color:var(--ink)}
.prose ul{padding-left:18px; margin:6px 0}
.prose dt{font-weight:600; margin-top:8px; font-size:14px}
.prose dd{margin:2px 0 0; font-size:13px; color:var(--muted)}
.tabbar{position:sticky; bottom:0; display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); background:var(--surface); padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px)); z-index:5}
.tabbar button{border:0; background:none; display:flex; flex-direction:column; align-items:center; gap:2px; font-size:11px; color:var(--muted); padding:6px 2px; cursor:pointer; border-radius:10px}
.tabbar button svg{width:22px; height:22px}
.tabbar button[aria-selected="true"]{color:var(--navy); font-weight:600}
.empty{padding:20px; text-align:center; color:var(--muted); font-size:14px; border:1px dashed var(--line); border-radius:var(--r)}
/* Bố cục theo màn hình */
.analyze{display:flex; flex-direction:column; gap:14px}
.pane-left{display:grid; gap:12px; grid-template-columns:minmax(0,1fr); min-width:0}
.row2>*{min-width:0}
.pane-right{display:contents}
.analyze .seg{order:-1}
.sub{display:grid; gap:12px; grid-template-columns:minmax(0,1fr)}
.charts{display:grid; gap:12px}
#view-profiles,#view-compare,#view-more{display:grid; gap:14px; align-content:start}
.desk-only{display:none!important}
.pane-title{display:flex; justify-content:space-between; align-items:baseline; gap:8px}
.pane-title h2{margin:0; font-size:16px}
.pane-title span{font-size:12px; color:var(--muted)}
@media (min-width:960px){
  .desk-only{display:flex!important}
  .mob-only{display:none!important}
  body{padding-block:0}
  .shell{max-width:none; min-height:100%; border:0; border-radius:0; box-shadow:none; background:var(--bg)}
  header.top{order:0; position:static; display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:14px max(28px, calc((100% - 1280px)/2))}
  header.top .proto{margin-top:0}
  header.top .who{margin-top:0}
  .profile-pick{margin-top:0; margin-left:auto; flex:1 1 260px; max-width:420px}
  .tabbar{order:1; position:sticky; top:env(safe-area-inset-top,0px); bottom:auto; display:flex; gap:4px; padding:6px max(24px, calc((100% - 1280px)/2 - 4px)); border-top:0; border-bottom:1px solid var(--line)}
  .tabbar button{flex-direction:row; gap:8px; font-size:14px; padding:9px 14px}
  .tabbar button svg{width:18px; height:18px}
  .tabbar button[aria-selected="true"]{background:var(--navy-soft)}
  main{order:2; padding:24px max(28px, calc((100% - 1280px)/2)) 48px}
  .analyze{display:grid; grid-template-columns:minmax(340px,400px) minmax(0,1fr); gap:24px; align-items:start}
  .pane-left{position:sticky; top:72px; max-height:calc(100vh - 92px); overflow:auto; padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:18px}
  .pane-right{display:flex; flex-direction:column; gap:14px; min-width:0}
  .analyze .seg{order:0; grid-template-columns:repeat(4,1fr); max-width:520px}
  .sub .card,.sub .kpi{background:var(--surface)}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpi.wide{grid-column:auto}
  .kpi .v{font-size:23px}
  .plist{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
  .pitem{background:var(--surface)}
  #view-compare{max-width:860px}
  #view-compare .card,#view-more .card{background:var(--surface)}
  #view-more{grid-template-columns:1fr 1fr; max-width:1000px}
  #view-more>.disclaimer,#view-more>#resetAll,#view-more>#resetConfirm{grid-column:1/-1}
  #view-more>#resetAll{justify-self:start}
}
@media (min-width:960px) and (max-width:1179px){ header.top .proto{display:none} }
@media (min-width:1180px){
  .charts{grid-template-columns:1fr 1fr}
  #sub-scenario{grid-template-columns:minmax(300px,380px) minmax(0,1fr); align-items:start}
}
.sublabel{margin:4px 0 -4px; font-size:12px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.05em}
.card-h{display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:8px}
.mini-toggle{display:inline-flex; background:var(--surface-2); border:1px solid var(--line); border-radius:9px; padding:2px; flex:0 0 auto}
.mini-toggle button{border:0; background:transparent; padding:5px 10px; border-radius:7px; font-size:12px; color:var(--muted); cursor:pointer}
.mini-toggle button[aria-pressed="true"]{background:var(--surface); color:var(--ink); font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,.12)}
.split{display:grid; gap:16px; align-items:center}
.ledger{display:grid}
.lg-row{display:flex; justify-content:space-between; gap:12px; padding:7px 0; font-size:14px; border-bottom:1px solid var(--line)}
.lg-row b{font-weight:500; white-space:nowrap} .lg-row b i{font-style:normal; color:var(--muted); margin-right:6px; display:inline-block; width:10px; text-align:center}
.lg-row.minor span{color:var(--muted); padding-left:10px}
.lg-row.sub{color:var(--navy)} .lg-row.sub b{font-weight:600}
.lg-row.total{border-bottom:0; border-top:2px solid var(--ink); margin-top:2px; padding-top:9px; font-weight:700} .lg-row.total b{font-weight:700; font-size:16px}
.lg-row.total.neg b{color:var(--neg)} .lg-row.total.pos b{color:var(--pos)}
.cap{font-size:12px; color:var(--muted); margin:6px 0 0}
.chart-box{position:relative; width:100%; min-width:0}
.chart-box svg{display:block; overflow:visible}
.chart-box .grid{stroke:var(--line); stroke-width:1} .chart-box .grid.zero{stroke:var(--muted); stroke-opacity:.6}
.chart-box .ax{font-size:11px; fill:var(--muted); font-variant-numeric:tabular-nums}
.chart-box .ln{stroke-width:2.25; stroke-linejoin:round; stroke-linecap:round} .chart-box .ln.dash{stroke-dasharray:4 4}
.chart-box .area{fill-opacity:.12}
.chart-box .dot{stroke:var(--surface); stroke-width:2}
.chart-box .mk{stroke:var(--accent); stroke-width:1} .chart-box .mk-t{font-size:11px; fill:var(--accent); font-weight:600}
.chart-box .xh{stroke:var(--muted); stroke-width:1}
.chart-box .callout{font-size:11.5px; font-weight:600; fill:var(--ink)}
.chart-box .wv{font-size:11.5px; font-weight:600; fill:var(--ink); font-variant-numeric:tabular-nums}
.chart-box .conn{stroke:var(--muted); stroke-dasharray:2 3; stroke-width:1}
.chart-box .seg-arc{stroke:var(--surface); stroke-width:2}
.chart-box .d-v{font-size:15px; font-weight:700; fill:var(--ink)} .chart-box .d-l{font-size:11px; fill:var(--muted)}
.tip{position:absolute; z-index:3; pointer-events:none; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:8px 10px; box-shadow:0 8px 24px -10px rgba(10,20,40,.35); font-size:12px; display:grid; gap:3px; min-width:150px}
.tip b{font-size:12px} .tip span{display:flex; align-items:center; gap:6px; color:var(--muted)} .tip i{width:8px; height:8px; border-radius:2px; flex:0 0 auto} .tip em{font-style:normal; margin-left:auto; color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums}
.donut{display:flex; align-items:center; gap:18px; flex-wrap:wrap}
.donut svg{flex:0 0 auto}
.d-legend{list-style:none; margin:0; padding:0; display:grid; gap:7px; flex:1 1 180px; min-width:0; font-size:13px}
.d-legend li{display:grid; grid-template-columns:10px 1fr auto auto; gap:8px; align-items:center}
.d-legend i{width:10px; height:10px; border-radius:3px} .d-legend span{color:var(--muted); min-width:0} .d-legend em{font-style:normal; color:var(--muted); width:36px; text-align:right}
.crit{list-style:none; margin:8px 0 0; padding:0; display:grid; gap:8px}
.crit li{display:grid; grid-template-columns:22px 1fr auto; gap:8px; align-items:start; font-size:14px; padding:8px 10px; border-radius:10px; background:var(--surface-2)}
.crit li small{display:block; color:var(--muted); font-size:12px}
.crit .ic{width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:700}
.crit li.ok .ic{background:var(--pos-soft); color:var(--pos)} .crit li.no .ic{background:var(--neg-soft); color:var(--neg)}
.crit li b{font-size:12px} .crit li.ok b{color:var(--pos)} .crit li.no b{color:var(--neg)}
.crit-sum{margin:8px 0 0!important; font-size:13px}
.offer{margin-top:12px; padding:12px; border-radius:12px; border:1px dashed var(--line)}
.offer h4{margin:0 0 4px; font-size:14px} .offer p{margin:0; font-size:13px; color:var(--ink)}
.assume{display:flex; flex-wrap:wrap; gap:8px; align-items:center}
.assume span{display:flex; flex-direction:column; padding:8px 12px; border-radius:10px; background:var(--surface-2); border:1px solid var(--line); font-size:14px}
.assume small{font-size:11px; color:var(--muted)}
.kpis.exit{grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:10px}
input[type=range]#exitYear{margin-top:6px}
.sched.proj{min-width:640px} .sched.proj td:first-child{color:var(--muted)}
@media (min-width:640px){ .split{grid-template-columns:minmax(0,1fr) minmax(0,1fr)} .kpis.exit{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (prefers-reduced-motion: reduce){ *{transition:none!important} }
