/* Business-Plan (bme Planrechnung): Stile für PDF-Vorschau, PDF-Erstellung und Meldungen ausserhalb des Shadow DOM */
.bpx{
  --bg:#F3F5F3; --surface:#FFFFFF; --sunk:#E9EDEA; --ink:#15201C; --muted:#5B6964; --line:#D7DEDA;
  --accent:#1D5B48; --accent-ink:#FFFFFF; --accent-soft:#DCEBE4; --bar-once:#9CC4B2; --bar-rec:#1D5B48;
  --c1:#1D5B48; --c2:#5E7FA8; --c3:#C08A2E; --c4:#9CC4B2; --c5:#B85C4A;
  --neg:#B42318; --pos:#1E7A3C; --warn:#9A6400; --warn-soft:#FBEFD6; --focus:#2B7FFF;
  --f-display:"Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body:"Public Sans", "Segoe UI", system-ui, sans-serif;
  --r:6px;
}
@media (prefers-color-scheme: dark){.bpx{
  --bg:#0E1412; --surface:#151D1A; --sunk:#1B2521; --ink:#E4EBE8; --muted:#94A49E; --line:#2A3632;
  --accent:#6CC3A0; --accent-ink:#0E1412; --accent-soft:#1E3A30; --bar-once:#3D6B5B; --bar-rec:#6CC3A0;
  --c1:#6CC3A0; --c2:#8FAED6; --c3:#E0AE52; --c4:#3D6B5B; --c5:#E08A76;
  --neg:#FF8A7A; --pos:#6FD58E; --warn:#F2C063; --warn-soft:#3A2F17; --focus:#7FB2FF; color-scheme:dark}}
.bpx[data-theme="dark"]{
  --bg:#0E1412; --surface:#151D1A; --sunk:#1B2521; --ink:#E4EBE8; --muted:#94A49E; --line:#2A3632;
  --accent:#6CC3A0; --accent-ink:#0E1412; --accent-soft:#1E3A30; --bar-once:#3D6B5B; --bar-rec:#6CC3A0;
  --c1:#6CC3A0; --c2:#8FAED6; --c3:#E0AE52; --c4:#3D6B5B; --c5:#E08A76;
  --neg:#FF8A7A; --pos:#6FD58E; --warn:#F2C063; --warn-soft:#3A2F17; --focus:#7FB2FF; color-scheme:dark}
.bpx *{box-sizing:border-box}
.bpx{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:14px;line-height:1.45}
.bpx .wrap{max-width:1180px;margin:0 auto;padding-inline:20px;padding-block:0 64px}
.bpx header.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--bg);border-bottom:1px solid var(--line)}
.bpx .top-inner{max-width:1180px;margin:0 auto;padding:14px 20px 0;display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between}
.bpx .brand{display:flex;flex-direction:column;gap:2px;min-width:0}
.bpx .brand h1{font-family:var(--f-display);font-weight:700;font-size:20px;letter-spacing:-.01em;margin:0}
.bpx .brand .sub{color:var(--muted);font-size:12.5px}
.bpx .actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bpx .status{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:6px}
.bpx .dot{width:8px;height:8px;border-radius:50%;background:var(--muted)}
.bpx .status.dirty .dot{background:var(--warn)}
.bpx .status.saved .dot{background:var(--pos)}
.bpx button{font:inherit;font-weight:600;font-size:13px;border-radius:var(--r);border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:7px 12px;cursor:pointer}
.bpx button:hover{border-color:var(--muted)}
.bpx button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.bpx button.ghost{background:transparent}
.bpx button.small{padding:3px 8px;font-size:12px;font-weight:500}
.bpx button:disabled{opacity:.5;cursor:default}
.bpx :focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.bpx nav.tabs{max-width:1180px;margin:0 auto;padding:10px 20px 0;display:flex;gap:2px;overflow-x:auto;scrollbar-width:none}
.bpx nav.tabs a{padding:8px 12px 10px;color:var(--muted);text-decoration:none;font-weight:600;font-size:13.5px;border-bottom:2px solid transparent;white-space:nowrap}
.bpx nav.tabs a[aria-current="page"]{color:var(--ink);border-bottom-color:var(--accent)}
.bpx nav.tabs a:hover{color:var(--ink)}
.bpx .confirm{display:flex;gap:8px;align-items:center;font-size:12.5px;background:var(--warn-soft);padding:6px 10px;border-radius:var(--r)}
.bpx section.panel{display:flex;flex-direction:column;gap:28px;padding-top:24px}
.bpx h2{font-family:var(--f-display);font-size:17px;font-weight:600;margin:0;text-wrap:balance}
.bpx h3{font-family:var(--f-display);font-size:14.5px;font-weight:600;margin:0}
.bpx .sec{display:flex;flex-direction:column;gap:10px;min-width:0}
.bpx .sec-head{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:baseline;justify-content:space-between}
.bpx .note{color:var(--muted);font-size:12.5px;max-width:70ch}
.bpx .kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.bpx .kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.bpx .kpi .lab{font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600}
.bpx .kpi .val{font-family:var(--f-display);font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}
.bpx .kpi .cmp{font-size:12px;color:var(--muted)}
.bpx .yearpick{display:flex;gap:4px;flex-wrap:wrap}
.bpx .yearpick button{padding:4px 10px;font-weight:500}
.bpx .yearpick button[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--ink)}
.bpx .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.bpx .scroll{overflow-x:auto}
.bpx table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
.bpx th,.bpx td{padding:6px 10px;text-align:right;white-space:nowrap;border-bottom:1px solid var(--line)}
.bpx th:first-child,.bpx td:first-child{text-align:left;white-space:normal;min-width:220px}
.bpx thead th{font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600;background:var(--sunk)}
.bpx tbody tr:last-child td{border-bottom:none}
.bpx tr.sub td{color:var(--muted);font-size:13px}
.bpx tr.sub td:first-child{padding-left:24px}
.bpx tr.total td{font-weight:600;background:var(--sunk)}
.bpx tr.key td{font-weight:700;font-family:var(--f-display);font-size:14.5px;border-top:2px solid var(--ink)}
.bpx tr.head td{font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--accent);font-weight:700;padding-top:14px;border-bottom:none}
.bpx td.neg,.bpx span.neg{color:var(--neg)}
.bpx td.dpos{color:var(--pos)}
.bpx td.dneg{color:var(--neg)}
.bpx input.num,.bpx input.txt,.bpx select{font:inherit;font-variant-numeric:tabular-nums;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:4px;padding:4px 6px}
.bpx input.num{width:92px;text-align:right}
.bpx input.num.w-s{width:64px}
.bpx input.txt{width:100%;min-width:160px}
.bpx input.num:hover,.bpx input.txt:hover{border-color:var(--muted)}
.bpx input.num:focus,.bpx input.txt:focus{border-color:var(--accent);background:var(--surface);outline:none}
.bpx td.linked{color:var(--muted);font-style:italic}
.bpx .namecell{display:flex;gap:4px;align-items:center}
.bpx button.del{padding:2px 8px;font-size:15px;line-height:1;color:var(--muted)}
.bpx button.del:hover{color:var(--neg);border-color:var(--neg)}
.bpx .filters{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.bpx table.emp td,.bpx table.emp th{text-align:left}
.bpx table.emp td:nth-child(n+6):nth-child(-n+9),.bpx table.emp th:nth-child(n+6):nth-child(-n+9){text-align:right}
.bpx table.emp td:first-child{min-width:150px}
.bpx table.emp input.txt{min-width:120px}
.bpx table.emp input[type=date]{font:inherit;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:4px;padding:3px 6px}
.bpx td.skills{min-width:200px;white-space:normal}
.bpx details.ms{position:relative}
.bpx details.ms summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;gap:4px;padding:3px 6px;border:1px solid var(--line);border-radius:4px;background:var(--bg);min-height:28px;align-items:center}
.bpx details.ms summary::-webkit-details-marker{display:none}
.bpx details.ms[open] summary{border-color:var(--accent)}
.bpx .ms-pop{position:absolute;z-index:15;right:0;top:calc(100% + 4px);background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 8px 24px rgba(0,0,0,.14);padding:8px 10px;display:grid;grid-template-columns:repeat(2,minmax(130px,1fr));gap:4px 14px;max-height:280px;overflow:auto;width:max-content;max-width:min(360px,80vw)}
.bpx .ms-pop label{display:flex;gap:6px;align-items:center;white-space:nowrap;font-size:13px}
.bpx .ms-pop input{accent-color:var(--accent)}
.bpx .muted-s{color:var(--muted);font-size:12.5px}
.bpx .params.cat{grid-template-columns:auto 1fr}
.bpx .scen{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center}
.bpx .scen-lab{font-size:12px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.06em}
.bpx #scen-sel{max-width:220px;font-weight:600}
.bpx button.danger{background:var(--neg);border-color:var(--neg);color:var(--surface)}
.bpx button.warn{color:var(--neg);border-color:var(--neg);font-size:12px}
.bpx .empty{padding:22px 18px;color:var(--muted)}
.bpx .emp-wrap{overflow:auto;max-height:max(360px,calc(100vh - 230px))}
.bpx table.emp{border-collapse:separate;border-spacing:0}
.bpx table.emp thead th{position:sticky;top:0;z-index:4;box-shadow:inset 0 -1px 0 var(--line)}
.bpx table.emp td:first-child,.bpx table.emp th:first-child{position:sticky;left:0;z-index:3;background:var(--surface);box-shadow:inset -1px 0 0 var(--line)}
.bpx table.emp thead th:first-child{z-index:5;background:var(--sunk)}
.bpx table.emp tr.total td{position:sticky;bottom:0;z-index:2;box-shadow:inset 0 1px 0 var(--line)}
.bpx table.emp tr.total td:first-child{z-index:4;background:var(--sunk)}
.bpx .lic-chk{width:16px;height:16px;accent-color:var(--accent);flex:none}
.bpx .meters{padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.bpx .meter-row{display:grid;grid-template-columns:120px 1fr minmax(190px,auto);gap:12px;align-items:center}
.bpx .meter{height:12px;border-radius:99px;background:var(--sunk);overflow:hidden;display:block}
.bpx .meter-fill{display:block;height:100%;background:var(--accent);border-radius:99px;min-width:2px}
.bpx .meter-val{font-variant-numeric:tabular-nums;font-size:13px;color:var(--muted);text-align:right}
.bpx table.mk td:first-child{min-width:190px}
.bpx table.mk input.txt{min-width:220px}
@media (max-width:640px){.bpx .meter-row{grid-template-columns:1fr}
.bpx .meter-val{text-align:left}}
.bpx .brand-wrap{overflow:auto;max-height:max(360px,calc(100vh - 230px))}
.bpx table.brands{border-collapse:separate;border-spacing:0}
.bpx table.brands thead th{position:sticky;top:0;z-index:4;box-shadow:inset 0 -1px 0 var(--line)}
.bpx table.brands td:first-child,.bpx table.brands th:first-child{position:sticky;left:0;z-index:3;background:var(--surface);min-width:250px;box-shadow:inset -1px 0 0 var(--line)}
.bpx table.brands thead th:first-child{z-index:5;background:var(--sunk)}
.bpx table.brands tr.total td:first-child{background:var(--sunk)}
.bpx table.brands input.txt{min-width:140px}
.bpx table.brands td:nth-child(8) input.txt{min-width:240px}
.bpx .brand-name{display:flex;align-items:center;gap:8px}
.bpx .logo-wrap{display:flex;align-items:center;gap:2px}
.bpx .logo{width:68px;height:36px;flex:none;border:1px solid var(--line);border-radius:6px;background:var(--surface);display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}
.bpx .logo img{max-width:60px;max-height:28px;object-fit:contain}
@media (prefers-color-scheme: dark){.bpx .logo img{filter:invert(1)}}
.bpx[data-theme="dark"] .logo img{filter:invert(1)}
.bpx .logo.up{cursor:pointer}
.bpx .logo.up:hover{border-color:var(--accent)}
.bpx .logo.up:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.bpx .logo input{position:absolute;inset:0;opacity:0;cursor:pointer}
.bpx .mono{font:700 12px/1 var(--f-display);letter-spacing:.04em;color:var(--muted)}
.bpx select.st-0{color:var(--pos);font-weight:600}
.bpx select.st-1{color:var(--accent);font-weight:600}
.bpx select.st-2{color:var(--warn);font-weight:600}
.bpx select.st-4{color:var(--neg)}
.bpx .site{color:var(--accent);font-weight:600;text-decoration:none}
.bpx .site:hover{text-decoration:underline}
.bpx .map-card{margin:0;background:#0a0a0a;border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;justify-content:center}
.bpx .map-card img{width:100%;max-width:1000px;height:auto;display:block}
.bpx input.num.w-xs{width:44px}
.bpx table.offers td:first-child{min-width:220px}
.bpx table.offers input.txt{min-width:130px}
.bpx table.offers td:nth-child(3) input.txt{min-width:170px}
.bpx select.ph-0{color:var(--warn);font-weight:600}
.bpx select.ph-1{color:var(--accent);font-weight:600}
.bpx select.ph-3{color:var(--pos);font-weight:600}
.bpx select.ph-4{color:var(--neg)}
.bpx table.offers input[type=date]{font:inherit;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:4px;padding:3px 6px}
.bpx #of-summary .kpi .val{font-size:20px}
.bpx .pdf-overlay{position:fixed;inset:0;z-index:100;background:rgba(10,15,13,.62);display:flex;justify-content:center;align-items:flex-start;padding:calc(16px + env(safe-area-inset-top,0px)) 16px 16px;overflow:auto}
.bpx .pdf-dialog{background:var(--bg);border-radius:10px;width:min(1180px,100%);box-shadow:0 20px 60px rgba(0,0,0,.35);display:flex;flex-direction:column}
.bpx .pdf-bar{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);border-radius:10px 10px 0 0;z-index:2}
.bpx .pdf-pages{padding:18px;display:flex;flex-direction:column;gap:18px;align-items:center}
.bpx .pdfp-frame{width:100%;max-width:1123px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.18);border-radius:2px}
.bpx .pdfp-frame .pdfp{transform-origin:0 0}
.bpx .pdf-stage{position:fixed;left:-20000px;top:0}
.bpx .pdfp{width:1123px;height:794px;background:#FFFFFF;color:#15201C;font-family:var(--f-body);padding:44px 52px 62px;box-sizing:border-box;display:flex;flex-direction:column;gap:22px;position:relative}
.bpx .pp-head{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:2px solid #1D5B48;padding-bottom:12px}
.bpx .pp-title{font:700 26px/1.1 var(--f-display);color:#15201C}
.bpx .pp-sub{font-size:13px;color:#5B6964;margin-top:4px}
.bpx .pp-meta{font-size:12px;color:#5B6964;text-align:right;line-height:1.5}
.bpx .pp-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.bpx .pp-kpi{border:1px solid #D7DEDA;border-radius:6px;padding:12px 14px;display:flex;flex-direction:column;gap:3px}
.bpx .pp-lab{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:#5B6964;font-weight:600}
.bpx .pp-val{font:600 22px/1.15 var(--f-display);font-variant-numeric:tabular-nums;color:#15201C}
.bpx .pp-val.neg,.bpx .pp-table td.neg{color:#B42318}
.bpx .pp-cmp{font-size:11px;color:#5B6964}
.bpx .pp-chart{border:1px solid #D7DEDA;border-radius:6px;padding:12px 16px;flex:1;display:flex;flex-direction:column;min-height:0}
.bpx .pp-chart svg{width:100%;height:auto;max-height:400px}
.bpx .pp-h{font:600 14px var(--f-display);color:#15201C}
.bpx .pp-legend{display:flex;gap:16px;font-size:11.5px;color:#5B6964;margin:6px 0}
.bpx .pp-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.bpx .pp-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:12.5px}
.bpx .pp-table th{background:#E9EDEA;color:#5B6964;font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;text-align:right;padding:7px 10px}
.bpx .pp-table th:first-child,.bpx .pp-table td:first-child{text-align:left}
.bpx .pp-table td{padding:5px 10px;border-bottom:1px solid #D7DEDA;text-align:right;color:#15201C}
.bpx .pp-table tr.sub td{color:#5B6964;font-size:11.5px}
.bpx .pp-table tr.sub td:first-child{padding-left:22px}
.bpx .pp-table tr.tot td{font-weight:600;background:#F3F5F3}
.bpx .pp-table tr.key td{font-weight:700;border-top:2px solid #15201C;font-size:13.5px}
.bpx .pp-foot{position:absolute;left:52px;right:52px;bottom:22px;display:flex;justify-content:space-between;font-size:10.5px;color:#5B6964;border-top:1px solid #D7DEDA;padding-top:8px}
.bpx .pp-k4{grid-template-columns:repeat(4,1fr)}
.bpx .pp-two{display:grid;grid-template-columns:0.95fr 1.05fr;gap:18px;min-height:0;flex:1}
.bpx .pp-map{background:#0a0a0a;border-radius:6px;padding:12px;display:flex;flex-direction:column;gap:6px;align-self:start}
.bpx .pp-map .pp-h{color:#FFFFFF}
.bpx .pp-map img{width:100%;height:auto}
.bpx .pp-col{display:flex;flex-direction:column;gap:14px;min-width:0}
.bpx .pp-meters{display:flex;flex-direction:column;gap:8px}
.bpx .pp-mrow{display:grid;grid-template-columns:90px 1fr 50px;gap:10px;align-items:center;font-size:12px;color:#15201C}
.bpx .pp-meter{height:10px;background:#E9EDEA;border-radius:99px;overflow:hidden;display:block}
.bpx .pp-meter span{display:block;height:100%;background:#1D5B48;border-radius:99px;min-width:2px}
.bpx .pp-note{font-size:10.5px;color:#5B6964}
.bpx .pp-brands td,.bpx .pp-offers td{padding:2px 8px;font-size:11px;line-height:1.25}
.bpx .pp-brands th,.bpx .pp-small th{font-size:9.5px;padding:6px 8px}
.bpx .pp-small td{font-size:11px;padding:4px 6px}
.bpx .pp-small th{padding:6px 6px!important}
.bpx .pp-brands{table-layout:auto}
.bpx .pp-brands tr td{height:20px}
.bpx .pp-brand{display:flex;align-items:center;gap:8px}
.bpx .pp-logo{width:40px;height:16px;display:flex;align-items:center;justify-content:center;flex:none}
.bpx .pp-logo img{max-width:40px;max-height:16px;object-fit:contain}
.bpx .pp-mono{font:700 10px Arial,sans-serif;color:#5B6964}
.bpx .pp-wrap{white-space:normal;text-align:left!important;font-size:10px!important;color:#5B6964!important;width:250px}
.bpx .pp-charts{flex:none}
.bpx .pp-charts .pp-chart svg{max-height:290px}
.bpx .kz-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.bpx .dach-chk{padding:4px 12px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);font-size:13.5px}
.bpx .strat-box{padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.bpx textarea.ta{font:inherit;line-height:1.5;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:4px;padding:8px 10px;resize:vertical;width:100%;min-height:90px}
.bpx textarea.ta:focus{border-color:var(--accent);background:var(--surface);outline:none}
.bpx .swot{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.bpx .sw-s{border-top:3px solid var(--pos)}
.bpx .sw-w{border-top:3px solid var(--warn)}
.bpx .sw-o{border-top:3px solid var(--accent)}
.bpx .sw-t{border-top:3px solid var(--neg)}
.bpx .tows{display:grid;grid-template-columns:minmax(240px,.8fr) 1fr 1fr;gap:12px;align-items:stretch}
.bpx .tw-corner{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;border:1px dashed var(--line);border-radius:var(--r);padding:8px}
.bpx .tw-opt{border-top:3px solid var(--line);background:var(--surface)}
.bpx .tows .sw-s,.bpx .tows .sw-w{grid-column:1}
.bpx .sw-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:3px;line-height:1.45}
.bpx .sw-meta{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.bpx .sw-meta input.txt{min-width:260px}
.bpx .sw-meta input[type=date]{font:inherit;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:4px;padding:3px 6px}
.bpx .sw-old{padding:10px 14px;margin-bottom:10px;border-color:var(--warn);background:var(--warn-soft);display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.bpx .sw-h{margin:16px 0 8px}
.bpx .sw-hist tr.sw-cur td{background:var(--accent-soft,rgba(29,91,72,.08))}
.bpx .sw-plus{color:var(--pos);font-weight:600}
.bpx .sw-minus{color:var(--neg);font-weight:600}
@media (max-width:820px){.bpx .tows{grid-template-columns:1fr}.bpx .tw-corner{display:none}}
.bpx .pp-tows{display:grid;grid-template-columns:110px 1fr 1fr;grid-template-rows:auto 1fr 1fr;gap:10px;flex:1;min-height:0}
.bpx .pp-twh{border:1px solid #D7DEDA;border-radius:6px;padding:8px 10px;font-weight:700;font-size:12.5px;color:#15201C;display:flex;align-items:center}
.bpx table.goals td,.bpx table.goals th,.bpx table.inits td,.bpx table.inits th{text-align:left}
.bpx table.goals td:first-child,.bpx table.inits td:first-child{min-width:230px}
.bpx table.goals select{max-width:210px}
.bpx table.goals td:first-child input.txt{min-width:200px}
.bpx table.goals input.txt,.bpx table.inits input.txt{min-width:220px}
.bpx table.inits td:nth-child(3) input.txt{min-width:160px}
.bpx table.goals .pv{font-variant-numeric:tabular-nums;font-weight:600;text-align:right}
.bpx .unit{margin-left:4px;color:var(--muted);font-size:12px}
.bpx .pill.gap{background:var(--warn-soft);color:var(--warn)}
.bpx table.inits input[type=date]{font:inherit;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:4px;padding:3px 6px}
.bpx select.ist-1{color:var(--accent);font-weight:600}
.bpx select.ist-2{color:var(--pos);font-weight:600}
.bpx select.ist-3{color:var(--muted)}
.bpx .dict-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.bpx button.rec{background:var(--neg);border-color:var(--neg);color:var(--surface)}
.bpx .pp-block{display:flex;flex-direction:column;gap:6px;min-height:0}
.bpx .pp-boxed{border:1px solid #D7DEDA;border-radius:6px;padding:14px 16px}
.bpx .pp-text{white-space:pre-wrap;font-size:13px;line-height:1.55;color:#15201C}
.bpx .pp-vm{flex:none}
.bpx .pp-strat td{white-space:normal;font-size:11.5px;padding:5px 8px;text-align:left}
.bpx .pp-strat th{text-align:left;padding:6px 8px}
.bpx .pp-ok{color:#1E7A3C;font-weight:600}
.bpx .pp-gap{color:#9A6400;font-weight:600}
.bpx .pp-swot{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:14px;flex:1;min-height:0}
.bpx .pp-sw{border:1px solid #D7DEDA;border-radius:6px;padding:12px 16px;display:flex;flex-direction:column;gap:6px;overflow:hidden}
.bpx .pp-sw-s{border-top:4px solid #1E7A3C}
.bpx .pp-sw-w{border-top:4px solid #9A6400}
.bpx .pp-sw-o{border-top:4px solid #1D5B48}
.bpx .pp-sw-t{border-top:4px solid #B42318}
.bpx .pp-list{margin:0;padding-left:18px;font-size:12.5px;line-height:1.5;color:#15201C;display:flex;flex-direction:column;gap:3px}
.bpx .goal-form{padding:14px 16px;display:flex;flex-direction:column;gap:12px;border-color:var(--accent)}
.bpx .gf-grid{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;align-items:center;max-width:620px}
.bpx .gf-grid input.txt{min-width:0}
.bpx .gf-grid select{max-width:100%}
.bpx input.unit-in{width:90px;min-width:0;margin-left:6px}
.bpx .order-btns{display:flex;gap:6px;align-items:center}
.bpx .ord-col{display:flex;flex-direction:column;gap:1px}
.bpx button.mv{padding:0 6px;font-size:9px;line-height:1.3;border-color:transparent;color:var(--muted)}
.bpx button.mv:hover:not(:disabled){color:var(--accent);border-color:var(--line)}
.bpx button.mv:disabled{opacity:.25}
.bpx table.goals select{max-width:190px}
.bpx .row-actions{display:flex;gap:6px;flex-wrap:wrap}
.bpx .toggle{display:inline-flex;align-items:center;gap:8px;font-weight:500;cursor:pointer}
.bpx .toggle input{width:16px;height:16px;accent-color:var(--accent)}
.bpx .pill{display:inline-block;font-size:11px;font-weight:600;padding:1px 8px;border-radius:99px;background:var(--sunk);color:var(--muted);letter-spacing:.02em}
.bpx .pill.on{background:var(--accent-soft);color:var(--accent)}
.bpx .grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}
.bpx .params{display:grid;grid-template-columns:1fr auto;gap:8px 14px;align-items:center;padding:14px 16px}
.bpx .params label{color:var(--ink)}
.bpx .chart svg{display:block;width:100%;height:auto}
.bpx .chart .ax{fill:var(--muted);font-size:11px;font-family:var(--f-body)}
.bpx .chart .grid{stroke:var(--line);stroke-width:1}
.bpx .chart .zero{stroke:var(--muted);stroke-width:1}
.bpx .legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);padding:10px 16px 0}
.bpx .legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.bpx ul.fixes{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;max-width:80ch}
.bpx ul.fixes li b{font-weight:600}
.bpx .toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:9px 14px;border-radius:var(--r);font-size:13px;z-index:50}
@media (max-width:640px){.bpx header.top{position:static}
.bpx .wrap{padding-inline:16px}
.bpx .top-inner,.bpx nav.tabs{padding-left:16px;padding-right:16px}
.bpx th:first-child,.bpx td:first-child{min-width:170px}
.bpx .kpi .val{font-size:21px}}
@media (prefers-reduced-motion:reduce){.bpx *{transition:none!important;animation:none!important}}
