/* Sales Pipeline (web/salespipe.js) — Tara Rezapour's report styles, scoped.
   Her stylesheet run through scripts/scope-css.py --wrap sp: every selector
   sits under .sp (the page), #sp-tip (tooltip) or #sp-modal (deal pop-up), so
   her short class names (.card, .kpi, .pill, .hero …) never touch the rest of
   the dashboard. Same brand rules and light-only panel as Rep Performance.
   Section at the bottom = what's needed to live inside the dashboard shell. */
/* app.css also styles .card / .kpi / .pill. Undo what would leak in — here,
   ahead of her rules, so hers still win wherever she sets the same property. */
.sp .card{padding:0;}
.sp .kpi .v{margin:6px 0 0;}
.sp .pill{display:inline-block; font-size:12px; gap:0;}
.sp,#sp-tip,#sp-modal{color-scheme:light;
  --navy:#062141; --cyan:#13b3cf; --teal:#23c2b7; --green:#43e285; --offwhite:#f7f7f7;
  --gradient:linear-gradient(90deg,#062141 0%,#13b3cf 35%,#23c2b7 65%,#43e285 100%);
  --surface:#ffffff; --surface-2:#f9fafb;
  --border:#e6ebf1; --grid:#eef2f6; --row:#f6f8fb;
  --ink:#062141; --ink-2:#526176; --muted:#8a97a8; --faint:#c4ccd6;
  --l2:#13b3cf; --l3:#23c2b7; --tint:#b4bcc6; --tint-2:#dfe5ec;
  --strong-bg:rgba(67,226,133,.22); --strong-fg:#062141;
  --medium-bg:rgba(19,179,207,.14); --medium-fg:#062141;
  --weak-bg:#062141; --weak-fg:#ffffff;
  --b-fresh:#43e285; --b-ok:#23c2b7; --b-aging:#13b3cf; --b-old:#062141; --b-none:#dfe5ec;
  --r-lg:14px; --r-md:10px; --r-sm:7px;
  --shadow:0 1px 2px rgba(6,33,65,.04),0 6px 20px rgba(6,33,65,.05);
  --shadow-hover:0 0 0 3px rgba(35,194,183,.14),0 10px 28px rgba(6,33,65,.10);}
.sp .num,
#sp-modal .num{font-variant-numeric:tabular-nums;}
.sp .ctrl{background:rgba(255,255,255,.92); backdrop-filter:saturate(1.4) blur(8px); border-bottom:1px solid var(--border); position:sticky; top:env(safe-area-inset-top,0px); z-index:20;}
.sp .ctrl{display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; padding-block:10px;}
.sp .clabel{display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--muted);}
.sp .seg{display:inline-flex; gap:2px; padding:3px; border-radius:var(--r-md); background:var(--grid);}
.sp .seg button{font:inherit; font-size:12.5px; font-weight:600; border:0; border-radius:var(--r-sm); background:transparent; color:var(--ink-2); padding:6px 12px; cursor:pointer; transition:background .15s,color .15s;}
.sp .seg button:hover{color:var(--navy); background:rgba(255,255,255,.7);}
.sp .seg button[aria-pressed="true"]{background:var(--navy); color:#fff; box-shadow:0 1px 3px rgba(6,33,65,.25);}
.sp .ctrl .gap{flex:0 0 6px;}
.sp .custom{display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--muted);}
.sp .custom input{font:inherit; font-size:12.5px; color:var(--navy); border:1px solid var(--border); border-radius:var(--r-sm); padding:5px 8px; background:var(--surface);}
.sp button:focus-visible,
#sp-modal button:focus-visible,
.sp [tabindex]:focus-visible,
#sp-modal [tabindex]:focus-visible,
.sp input:focus-visible,
#sp-modal input:focus-visible{outline:2px solid var(--teal); outline-offset:2px;}
.sp .sp-body{padding-block:26px 48px; display:flex; flex-direction:column; gap:44px;}
.sp .showing{display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:12px; color:var(--muted); margin-bottom:-18px;}
.sp .pill{border-radius:999px; padding:3px 10px; font-weight:600; background:var(--surface); border:1px solid var(--border); color:var(--navy);}
.sp .shrow{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px;}
.sp .sh{display:flex; flex-direction:column;}
.sp .sh h2{margin:0; font-size:17px; font-weight:700; letter-spacing:-.01em; color:var(--navy); display:flex; align-items:center; gap:10px; flex-wrap:wrap; text-wrap:balance;}
.sp .sh > i{display:block; margin-top:8px; height:3px; width:40px; border-radius:999px; background-image:var(--gradient); background-size:300% 100%;}
.sp .acts{display:inline-flex; gap:6px; align-items:center;}
.sp .info,
.sp .tkbtn{font:inherit; height:26px; border:1px solid var(--border); background:var(--surface); color:var(--ink-2); cursor:help; display:inline-flex; align-items:center; justify-content:center; padding:0; border-radius:999px; transition:border-color .15s,box-shadow .15s,color .15s;}
.sp .info{width:26px; font-size:12px; font-weight:700; font-family:Georgia,"Times New Roman",serif; font-style:italic;}
.sp .tkbtn{gap:6px; padding:0 11px 0 9px; font-size:12px; font-weight:600; color:var(--navy); letter-spacing:0; text-transform:none;}
.sp .tkbtn svg{color:var(--teal);}
.sp .info:hover,
.sp .info:focus-visible,
.sp .tkbtn:hover,
.sp .tkbtn:focus-visible{border-color:var(--teal); color:var(--navy); box-shadow:0 0 0 3px rgba(35,194,183,.15);}
.sp .card{background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow); min-width:0;}
.sp .pad{padding:20px;}
.sp .ctitle{font-size:14px; font-weight:700; color:var(--navy); margin-bottom:3px;}
.sp .csub{font-size:12.5px; color:var(--muted); margin-bottom:16px;}
.sp .csub strong{color:var(--navy);}
.sp .dr{cursor:pointer;}
.sp .card.dr{transition:box-shadow .15s,border-color .15s;}
.sp .card.dr:hover{box-shadow:var(--shadow-hover); border-color:var(--teal);}
.sp .panes{display:grid; gap:18px;}
.sp .panes.side{grid-template-columns:repeat(auto-fit,minmax(min(100%,470px),1fr));}
.sp .panes.stack{grid-template-columns:1fr; gap:22px;}
.sp .panes > *,
.sp .pane{min-width:0;}
.sp .pane{display:flex; flex-direction:column;}
.sp .pane > .card{flex:1;}
.sp .dhead{display:inline-flex; align-self:flex-start; align-items:center; gap:8px; font-size:12px; font-weight:700; color:var(--navy); margin-bottom:10px; padding:4px 11px 4px 8px; border-radius:999px; background:var(--surface); border:1px solid var(--border);}
.sp .dhead i{width:9px; height:9px; border-radius:50%; display:inline-block;}
.sp .dhead span{font-weight:500; color:var(--muted);}
.sp .glance{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px;}
@media (max-width:980px){.sp .glance{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:560px){.sp .glance{grid-template-columns:1fr;}}
.sp .hero{grid-column:span 2; grid-row:span 2; background:var(--navy); color:#fff; border-radius:var(--r-lg); padding:22px 24px; position:relative; overflow:hidden; display:flex; flex-direction:column; gap:10px; box-shadow:0 10px 30px rgba(6,33,65,.18);}
.sp .hero::before{content:""; position:absolute; left:0; right:0; top:0; height:4px; background-image:var(--gradient);}
.sp .hero.dr:hover{box-shadow:0 0 0 3px rgba(35,194,183,.35),0 14px 34px rgba(6,33,65,.25);}
@media (max-width:980px){.sp .hero{grid-column:1/-1; grid-row:auto;}}
.sp .hero .lab{font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.09em; color:rgba(255,255,255,.62);}
.sp .hero .big{display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;}
.sp .hero .big b{font-size:52px; line-height:1; font-weight:800; letter-spacing:-.02em; color:var(--green);}
.sp .hero .big span{font-size:15px; color:rgba(255,255,255,.85);}
.sp .hero p{margin:0; font-size:13px; color:rgba(255,255,255,.78); max-width:52ch;}
.sp .hero p strong{color:#fff;}
.sp .hero .split{display:flex; height:10px; border-radius:999px; overflow:hidden; gap:2px; margin-top:6px; background:rgba(255,255,255,.08);}
.sp .hero .split b{display:block; height:100%;}
.sp .hero .keys{display:flex; flex-wrap:wrap; gap:6px 14px; font-size:11.5px; color:rgba(255,255,255,.72);}
.sp .hero .keys i{display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:6px; vertical-align:0;}
.sp .hero .worst{margin-top:auto; padding-top:12px; border-top:1px solid rgba(255,255,255,.12); display:flex; flex-wrap:wrap; gap:6px 16px; font-size:12px; color:rgba(255,255,255,.7);}
.sp .hero .worst strong{color:#fff;}
.sp .kpi{padding:16px 18px; display:flex; flex-direction:column; gap:4px; position:relative; overflow:hidden;}
.sp .kpi::before{content:""; position:absolute; left:0; right:0; top:0; height:3px; background-image:var(--gradient); opacity:.9;}
.sp .kpi .top{display:flex; align-items:center; gap:8px;}
.sp .ico{width:28px; height:28px; border-radius:8px; background:rgba(19,179,207,.1); color:var(--navy); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.sp .kpi .lab{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--muted);}
.sp .kpi .v{margin-top:6px; font-size:26px; font-weight:800; line-height:1.1; letter-spacing:-.01em; color:var(--navy);}
.sp .kpi .d{font-size:12.5px; color:var(--ink-2);}
.sp .kpi .d strong{color:var(--navy);}
.sp .delta{font-weight:700; border-radius:999px; padding:1px 7px; font-size:11px;}
.sp .delta.up{background:var(--strong-bg); color:var(--strong-fg);}
.sp .delta.down{background:var(--weak-bg); color:var(--weak-fg);}
.sp .delta.flat{background:var(--grid); color:var(--ink-2);}
.sp .tscroll{overflow-x:auto;}
.sp table,
#sp-modal table{width:100%; border-collapse:separate; border-spacing:0; font-size:13px;}
.sp thead th,
#sp-modal thead th{background:var(--surface-2); font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); text-align:left; padding:11px 12px; border-bottom:1px solid var(--border); white-space:nowrap; vertical-align:bottom;}
.sp thead th:first-child,
#sp-modal thead th:first-child{border-top-left-radius:var(--r-lg);}
.sp thead th:last-child,
#sp-modal thead th:last-child{border-top-right-radius:var(--r-lg);}
.sp th.r,
#sp-modal th.r,
.sp td.r,
#sp-modal td.r{text-align:right;}
.sp th button,
#sp-modal th button{font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; text-transform:inherit; letter-spacing:inherit; display:inline-flex; align-items:center; gap:3px;}
.sp th button:hover,
#sp-modal th button:hover,
.sp th button.on,
#sp-modal th button.on{color:var(--navy);}
.sp th .grp,
#sp-modal th .grp{display:block; font-size:9.5px; color:var(--teal); letter-spacing:.09em; margin-bottom:3px;}
.sp td,
#sp-modal td{padding:11px 12px; border-bottom:1px solid var(--grid); vertical-align:middle; color:var(--ink-2); white-space:nowrap;}
.sp td.strong,
#sp-modal td.strong,
.sp .strong,
#sp-modal .strong{color:var(--navy); font-weight:700;}
.sp td.name,
#sp-modal td.name{color:var(--navy); font-weight:500; max-width:300px; overflow:hidden; text-overflow:ellipsis;}
.sp td .sub,
#sp-modal td .sub{display:block; font-size:11px; color:var(--muted); font-weight:500; margin-top:1px;}
.sp tbody tr:last-child td,
#sp-modal tbody tr:last-child td{border-bottom:0;}
.sp tbody tr:hover td,
#sp-modal tbody tr:hover td{background:var(--row);}
.sp tr.dr:hover td,
#sp-modal tr.dr:hover td{background:rgba(35,194,183,.07);}
.sp .sc td:first-child,
#sp-modal .sc td:first-child,
.sp .sc th:first-child,
#sp-modal .sc th:first-child{position:sticky; left:0; z-index:1;}
.sp .sc td:first-child,
#sp-modal .sc td:first-child{background:var(--surface);}
.sp .sc tbody tr:hover td:first-child,
#sp-modal .sc tbody tr:hover td:first-child{background:var(--row);}
.sp .sc td.rep,
#sp-modal .sc td.rep{font-weight:700; color:var(--navy);}
.sp .sc th.sep,
#sp-modal .sc th.sep,
.sp .sc td.sep,
#sp-modal .sc td.sep{border-left:1px solid var(--grid);}
.sp .sc td .pc,
#sp-modal .sc td .pc{display:block; font-size:11px; color:var(--muted); font-weight:500; margin-top:2px;}
.sp tfoot td,
#sp-modal tfoot td{background:var(--surface-2)!important; color:var(--navy); border-top:1px solid var(--border); border-bottom:0;}
.sp tfoot td:first-child,
#sp-modal tfoot td:first-child{border-bottom-left-radius:var(--r-lg);}
.sp tfoot td:last-child,
#sp-modal tfoot td:last-child{border-bottom-right-radius:var(--r-lg);}
.sp .none,
#sp-modal .none{color:var(--faint);}
.sp .tone,
#sp-modal .tone{display:inline-block; border-radius:999px; padding:2px 9px; font-size:12px; font-weight:700; white-space:nowrap;}
.sp .tone.s,
#sp-modal .tone.s{background:var(--strong-bg); color:var(--strong-fg);}
.sp .tone.m,
#sp-modal .tone.m{background:var(--medium-bg); color:var(--medium-fg);}
.sp .tone.w,
#sp-modal .tone.w{background:var(--weak-bg); color:var(--weak-fg);}
.sp .tone.n,
#sp-modal .tone.n{background:var(--grid); color:var(--ink-2);}
.sp .stagepill{display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:2px 9px; font-size:12px; font-weight:600; background:var(--grid); color:var(--navy); white-space:nowrap;}
.sp .minibar{display:inline-flex; align-items:center; gap:8px;}
.sp .minibar .bar{width:52px; height:6px; background:var(--grid); border-radius:999px; overflow:hidden;}
.sp .minibar .bar b{display:block; height:100%; border-radius:999px;}
.sp .hb{display:grid; grid-template-columns:minmax(96px,132px) 1fr auto; gap:10px 14px; align-items:center;}
.sp .hb .rl{font-size:13px; font-weight:600; color:var(--navy); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.sp .hb .tr{display:flex; height:22px; gap:2px; min-width:0; border-radius:6px; overflow:hidden; background:var(--grid);}
.sp .hb .tr b{display:block; height:100%; min-width:3px; transition:filter .15s;}
.sp .hb .tr b.dr:hover{filter:brightness(1.12) saturate(1.1);}
.sp .hb .rv{font-size:12.5px; color:var(--ink-2); text-align:right; min-width:70px;}
.sp .hb .rv strong{color:var(--navy);}
.sp .lg{display:flex; gap:8px 16px; flex-wrap:wrap; font-size:12px; color:var(--ink-2); margin:-4px 0 16px;}
.sp .lg span{display:inline-flex; align-items:center; gap:6px;}
.sp .lg i{width:10px; height:10px; border-radius:3px; display:inline-block;}
@media (max-width:560px){.sp .hb{grid-template-columns:minmax(80px,96px) 1fr auto;}}
.sp .vc{position:relative; height:260px; margin:28px 0 0 36px; border-bottom:1px solid var(--border);}
.sp .vc .gl{position:absolute; left:0; right:0; border-top:1px dashed var(--grid);}
.sp .vc .gl span{position:absolute; right:calc(100% + 8px); top:-8px; font-size:11px; color:var(--muted);}
.sp .vc .bars{position:absolute; inset:0; display:flex; align-items:flex-end; gap:8px; padding-inline:4px;}
.sp .vc .col{flex:1; height:100%; position:relative; display:flex; align-items:flex-end; justify-content:center; min-width:0;}
.sp .vc .stk{width:min(62%,48px); display:flex; flex-direction:column-reverse; gap:1.5px;}
.sp .vc .stk b{display:block; width:100%; min-height:2px; transition:filter .15s;}
.sp .vc .stk b:last-child{border-radius:5px 5px 0 0;}
.sp .vc .stk b.dr:hover{filter:brightness(1.12) saturate(1.1);}
.sp .vc .tot{position:absolute; left:0; right:0; text-align:center; font-size:12px; font-weight:700; color:var(--navy); padding-bottom:4px; transform:translateY(-100%);}
.sp .vx{display:flex; gap:8px; margin-left:36px; padding-inline:4px; margin-top:9px;}
.sp .vx span{flex:1; min-width:0; text-align:center; font-size:12px; font-weight:600; color:var(--navy); line-height:1.25; overflow-wrap:anywhere;}
.sp .vx.st span{font-size:11px; overflow-wrap:normal; hyphens:auto;}
.sp .vx.st span.hold{color:var(--muted);}
.sp .vx em{display:block; font-style:normal; font-weight:400; font-size:11px; color:var(--muted);}
.sp .mx td.cell{text-align:center; padding:7px 4px;}
.sp .mx td.cell span{display:inline-block; min-width:32px; padding:4px 6px; border-radius:6px; font-size:12px; font-weight:700;}
.sp .mx th.f{white-space:normal; min-width:64px; max-width:86px; text-align:center; font-size:10px; line-height:1.25;}
.sp .rcards{display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr)); gap:16px;}
.sp .rc{display:flex; flex-direction:column; overflow:hidden; position:relative;}
.sp .rc::before{content:""; position:absolute; left:0; right:0; top:0; height:3px; background-image:var(--gradient);}
.sp .rc .rh{padding:18px 18px 12px; border-bottom:1px solid var(--grid); display:flex; flex-direction:column; gap:6px;}
.sp .rc .rn{font-size:16px; font-weight:800; color:var(--navy); letter-spacing:-.01em;}
.sp .rc .rs{display:flex; flex-direction:column; gap:2px; font-size:12px; color:var(--ink-2);}
.sp .rc .rs b{font-weight:700;}
.sp .rc .rb{padding:14px 18px 18px; display:flex; flex-direction:column; gap:14px;}
.sp .rc .rk{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-bottom:8px; color:var(--navy); display:flex; align-items:center; gap:7px;}
.sp .rc .rk::before{content:''; width:8px; height:8px; border-radius:50%;}
.sp .rc .rk.good::before{background:var(--green);}
.sp .rc .rk.bad::before{background:var(--navy);}
.sp .rc ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:7px;}
.sp .rc li{display:flex; gap:8px; align-items:flex-start; font-size:13px; line-height:1.5; color:var(--ink-2); padding:8px 10px; border-radius:var(--r-md);}
.sp .rc ul.good li{background:rgba(67,226,133,.10); box-shadow:inset 3px 0 0 var(--green);}
.sp .rc ul.bad li{background:rgba(6,33,65,.04); box-shadow:inset 3px 0 0 var(--navy);}
.sp .rc li strong{color:var(--navy);}
.sp .rc li.dr:hover{box-shadow:inset 3px 0 0 var(--teal),0 0 0 1px rgba(35,194,183,.35);}
.sp .rc .dv{flex-shrink:0; font-size:10px; font-weight:800; color:var(--navy); border-radius:5px; padding:1px 6px; margin-top:3px;}
.sp .rc .dv.L3{background:rgba(35,194,183,.25);}
.sp .rc .dv.L2{background:rgba(19,179,207,.2);}
.sp .rc p.none{margin:0; font-size:12.5px;}
#sp-tip{position:fixed; pointer-events:none; background:var(--navy); color:#fff; font-size:12.5px; padding:10px 12px; border-radius:var(--r-md); line-height:1.5; z-index:40; max-width:300px; box-shadow:0 12px 32px rgba(6,33,65,.28);}
#sp-tip strong{color:var(--green);}
#sp-tip.wide{max-width:430px; padding:14px 16px; font-size:13px;}
#sp-tip .tth{display:block; font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.09em; color:var(--cyan); margin:0 0 4px;}
#sp-tip .tth + p,
#sp-tip p{margin:0 0 10px;}
#sp-tip p:last-child{margin-bottom:0;}
#sp-modal .mask{position:fixed; inset:0; background:rgba(6,33,65,.5); backdrop-filter:blur(2px); z-index:30; display:flex; align-items:flex-start; justify-content:center; padding:40px 16px; overflow:auto;}
#sp-modal .modal{background:var(--surface); border-radius:16px; width:100%; max-width:1120px; max-height:calc(100vh - 80px); display:flex; flex-direction:column; box-shadow:0 24px 64px rgba(6,33,65,.35); overflow:hidden;}
#sp-modal .mh{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:18px 22px; border-bottom:1px solid var(--border); position:relative;}
#sp-modal .mh::before{content:""; position:absolute; left:0; right:0; top:0; height:4px; background-image:var(--gradient);}
#sp-modal .mt{font-size:16px; font-weight:800; color:var(--navy);}
#sp-modal .ms{font-size:12.5px; color:var(--ink-2); margin-top:3px;}
#sp-modal .ms strong{color:var(--navy);}
#sp-modal .mx{font:inherit; font-size:22px; line-height:1; border:0; background:var(--grid); color:var(--ink-2); cursor:pointer; width:34px; height:34px; border-radius:50%;}
#sp-modal .mx:hover{background:var(--navy); color:#fff;}
#sp-modal .mb{overflow:auto;}
#sp-modal table{min-width:960px;}
#sp-modal thead th{position:sticky; top:0; z-index:2; border-radius:0!important;}
#sp-modal td.miss{white-space:normal; max-width:240px; font-size:12px;}
/* Contact column: a long contact or company name (often a pasted website) no longer stretches the column — cut with … (full text on hover) */
#sp-modal td.ct{max-width:200px; overflow:hidden; text-overflow:ellipsis;}
#sp-modal td.ct .sub{overflow:hidden; text-overflow:ellipsis;}
.sp .sp-foot{padding-block:0 28px; font-size:12px; color:var(--muted); line-height:1.6;}
.sp .sp-foot p{margin:0 0 6px; max-width:130ch;}
.sp .glance.g6 .hero{grid-row:span 3;}
@media (max-width:980px){.sp .glance.g6 .hero{grid-row:auto;}}
.sp .hero .funnel{display:flex; height:10px; border-radius:999px; overflow:hidden; gap:2px; margin-top:6px; background:rgba(255,255,255,.08);}
.sp .hero .funnel b{display:block; height:100%;}
.sp .hero .delta{align-self:flex-start;}
.sp .hero .delta.up{background:rgba(67,226,133,.2); color:var(--green);}
.sp .hero .delta.down{background:rgba(255,255,255,.12); color:#fff;}
.sp .hero .delta.flat{background:rgba(255,255,255,.1); color:rgba(255,255,255,.8);}
.sp .kpi .rate{display:inline-block; margin-left:2px; border-radius:999px; padding:1px 8px; font-size:11px; font-weight:700; background:var(--medium-bg); color:var(--navy);}
.sp .combined{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px;}
.sp .combined > div{padding:16px 18px; display:flex; flex-direction:column; gap:4px; position:relative; overflow:hidden;}
.sp .combined > div::before{content:""; position:absolute; left:0; right:0; top:0; height:3px; background-image:var(--gradient); opacity:.9;}
.sp .combined .lab{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--muted);}
.sp .combined .v{font-size:26px; font-weight:800; color:var(--navy); line-height:1.15; letter-spacing:-.01em;}
.sp .combined .split{font-size:12.5px; color:var(--ink-2); display:flex; gap:14px; flex-wrap:wrap;}
.sp .sw{display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px;}
.sp .legend{display:flex; gap:8px 16px; flex-wrap:wrap; font-size:12px; color:var(--ink-2); margin:-4px 0 14px;}
.sp .legend span{display:inline-flex; align-items:center; gap:6px;}
.sp .legend i{width:22px; height:10px; border-radius:3px; display:inline-block; background-image:var(--gradient);}
.sp .legend i.faded{opacity:.28;}
.sp .stages{display:grid; column-gap:14px; row-gap:0; align-items:center;}
.sp .stages.eight{grid-template-columns:minmax(150px,220px) minmax(90px,1fr) repeat(6,auto); min-width:720px;}
.sp .stages > *{padding-block:7px;}
.sp .stages .hd{background:var(--surface-2); font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); text-align:right; white-space:nowrap; padding-block:10px; border-bottom:1px solid var(--border);}
.sp .stages .hd:first-child{border-top-left-radius:var(--r-md);}
.sp .stages .hd:nth-child(8){border-top-right-radius:var(--r-md);}
.sp .stages .grp{grid-column:1/-1; margin-top:12px; padding:6px 0 6px; border-bottom:1px solid var(--grid); font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.09em; color:var(--navy);}
.sp .stages .lab{font-size:13px; font-weight:600; color:var(--navy); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; position:sticky; left:0; background:var(--surface); z-index:1;}
.sp .track{height:20px; display:flex; gap:2px; min-width:40px; padding-block:0!important; border-radius:6px; overflow:hidden; background:var(--grid);}
.sp .track b{display:block; height:100%; transition:filter .15s;}
.sp .track.dr:hover b{filter:brightness(1.12) saturate(1.1);}
.sp .stages .c{font-size:13px; font-weight:800; text-align:right; min-width:28px; color:var(--navy);}
.sp .stages .pp,
.sp .stages .dd,
.sp .stages .m{font-size:13px; color:var(--ink-2); text-align:right; min-width:52px;}
.sp .stages .p{text-align:right; min-width:56px;}
.sp .stages .dr:hover{color:var(--navy);}
.sp .stages .lab.dr:hover{text-decoration:underline; text-decoration-color:var(--teal); text-underline-offset:3px;}
.sp .stages .tot{background:var(--surface-2); font-weight:800; color:var(--navy); border-top:1px solid var(--border); margin-top:8px;}
.sp .stages .tot.lab{padding-left:10px; border-bottom-left-radius:var(--r-md); background:var(--surface-2);}
.sp .stages .tot.last{border-bottom-right-radius:var(--r-md); padding-right:10px;}
.sp .stages .hd.dd,
.sp .stages .hd.m,
.sp .stages .hd.pp{font-size:10.5px; font-weight:700; color:var(--muted); text-align:right;}
.sp .hero .funnel{margin-top:auto;}
.sp .hero .late{display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; padding:12px 14px; border-radius:var(--r-md); background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12);}
.sp .hero .late.dr:hover{background:rgba(255,255,255,.12); border-color:rgba(35,194,183,.6);}
.sp .hero .late .ll{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.62); width:100%;}
.sp .hero .late b{font-size:26px; font-weight:800; color:var(--green); line-height:1;}
.sp .hero .late span:last-child{font-size:12.5px; color:rgba(255,255,255,.78);}
@media (max-width:560px){.sp .stages.eight{min-width:0; grid-template-columns:minmax(96px,130px) 1fr auto auto auto;}.sp .stages.eight .dd,
.sp .stages.eight .m,
.sp .stages.eight .pp{display:none;}}
.sp .cols{position:relative; height:220px; margin:26px 0 0 44px; border-bottom:1px solid var(--border);}
.sp .cols .gl{position:absolute; left:0; right:0; border-top:1px dashed var(--grid);}
.sp .cols .gl.top{border-top-color:transparent;}
.sp .cols .gl span{position:absolute; right:calc(100% + 8px); top:-8px; font-size:11px; color:var(--muted); white-space:nowrap;}
.sp .cols .bars{position:absolute; inset:0; display:flex; align-items:flex-end; gap:6px; padding-inline:4px;}
.sp .cols .col{flex:1; height:100%; display:flex; align-items:flex-end; justify-content:center; position:relative; min-width:0;}
.sp .cols .col .stk{width:min(62%,34px); display:flex; flex-direction:column-reverse; gap:1.5px;}
.sp .cols .col .stk b{display:block; width:100%; min-height:2px; transition:filter .15s;}
.sp .cols .col .stk b:last-child{border-radius:5px 5px 0 0;}
.sp .cols .col.dr:hover .stk b,
.sp .cols .col:focus .stk b{filter:brightness(1.12) saturate(1.1);}
.sp .cols .vl{position:absolute; font-size:12px; font-weight:700; color:var(--navy); transform:translateY(-100%); padding-bottom:4px; white-space:nowrap;}
.sp .cols.line svg{position:absolute; inset:0; width:100%; height:100%; overflow:visible;}
.sp .cols .pt{position:absolute; width:10px; height:10px; border-radius:50%; background:var(--surface); border:2.5px solid var(--teal); transform:translate(-50%,50%); z-index:1; transition:transform .12s ease;}
.sp .cols .pt.last{width:12px; height:12px; box-shadow:0 0 0 4px rgba(35,194,183,.18);}
.sp .cols .pt:hover,
.sp .cols .pt:focus{transform:translate(-50%,50%) scale(1.35);}
.sp .cols .vl.pl{transform:translate(-50%,-100%); padding:0 4px 9px; background:transparent;}
.sp .xlabs{display:flex; gap:6px; margin-left:44px; padding-inline:4px; margin-top:9px;}
.sp .xlabs span{flex:1; min-width:0; text-align:center; font-size:11.5px; font-weight:600; color:var(--navy);}
.sp .tier td{background:var(--surface-2)!important; font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.09em; color:var(--navy); padding:9px 12px;}
.sp .tier td .sub{display:inline; margin-left:8px; font-size:11px; letter-spacing:.02em; text-transform:none; font-weight:600; color:var(--muted);}
.sp .rank{display:inline-flex; width:24px; height:24px; border-radius:50%; align-items:center; justify-content:center; font-size:11px; font-weight:800; color:#fff; background:var(--navy);}
.sp .msg.sub,
#sp-modal .msg.sub{display:block; font-size:11px; color:var(--muted); font-weight:500; margin-top:2px;}
.sp tfoot td,
#sp-modal tfoot td{font-weight:800;}
.sp tr.tot td,
#sp-modal tr.tot td{background:var(--surface-2)!important; color:var(--navy);}
.sp .sc tfoot td:first-child,
#sp-modal .sc tfoot td:first-child{background:var(--surface-2)!important;}
.sp .tbar{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 16px; border-bottom:1px solid var(--grid);}
.sp .tcount{font-size:12.5px; color:var(--ink-2);}
.sp .tcount strong{color:var(--navy);}
.sp .linkbtn{font:inherit; font-size:12.5px; font-weight:700; background:none; border:0; color:var(--navy); cursor:pointer; padding:12px 16px; text-decoration:underline; text-decoration-color:var(--teal); text-underline-offset:3px;}
.sp .card > .tscroll > table thead th:first-child{border-top-left-radius:var(--r-lg);}
.sp .card > .tbar + .tscroll > table thead th{border-radius:0!important;}
.sp .obsgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr)); gap:14px;}
.sp .obs{padding:16px 18px 16px; display:flex; flex-direction:column; gap:8px; align-items:flex-start; position:relative; overflow:hidden;}
.sp .obs::before{content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--obs,var(--navy));}
.sp .obs.t-s{--obs:var(--green);}
.sp .obs.t-m{--obs:var(--cyan);}
.sp .obs.t-w{--obs:var(--navy);}
.sp .obs p{margin:0; font-size:13px; color:var(--ink-2); line-height:1.55;}
.sp .obs p strong{color:var(--navy);}
.sp .obs details{margin-top:6px; font-size:12.5px;}
.sp .obs summary{cursor:pointer; color:var(--navy); font-weight:700; text-decoration:underline; text-decoration-color:var(--teal); text-underline-offset:3px;}
.sp .obs ul{margin:6px 0 0; padding-left:18px; display:flex; flex-direction:column; gap:4px;}
.sp .obs .s{color:var(--muted);}
.sp .subh{font-size:14px; font-weight:700; color:var(--navy); margin:0 0 12px;}
.sp .subh.mt{margin-top:22px;}
.sp .hyg{display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr)); gap:12px;}
.sp .hyg > div{display:flex; justify-content:space-between; gap:12px; align-items:center; padding:14px 16px;}
.sp .hyg .l{font-size:13px; color:var(--navy); font-weight:600;}
.sp .hyg .s{font-size:11.5px; color:var(--muted);}
#sp-tip ul{margin:0; padding-left:16px; display:flex; flex-direction:column; gap:7px;}
#sp-tip li{color:rgba(255,255,255,.88);}
#sp-tip .tkh{display:block; margin:12px 0 6px; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#fff; padding-top:10px; border-top:1px solid rgba(255,255,255,.14);}
#sp-tip .tkh:first-of-type{margin-top:4px; padding-top:0; border-top:0;}
#sp-tip em{color:rgba(255,255,255,.7);}
.sp .custom[hidden]{display:none!important;}

/* ---------- inside the dashboard shell ---------- */
.sp{color:var(--ink); font-size:14px; line-height:1.45;}
.sp .ctrl{top:62px; z-index:15; padding:8px 12px; border:1px solid var(--border); border-radius:var(--r-lg); background:rgba(255,255,255,.94);}
.sp .ctrl .present{margin-left:auto; font:inherit; font-size:12.5px; font-weight:600; color:var(--navy); background:var(--surface); border:1px solid var(--border); border-radius:var(--r-sm); padding:6px 12px; cursor:pointer;}
.sp .ctrl .present:hover{border-color:var(--teal); box-shadow:0 0 0 3px rgba(35,194,183,.15);}
.sp .sp-body{padding-block:22px 40px;}
.sp .showing .asof{margin-left:auto;}
.sp .sp-foot{padding-block:0 12px; font-size:12px; color:var(--muted); line-height:1.6;}
.sp .sp-foot p{margin:0 0 6px; max-width:130ch;}
.sp .sp-loading{padding:40px 0; color:var(--muted);}
:root[data-theme="dark"] .sp{background:var(--offwhite); border-radius:16px; padding:14px 18px 6px;}
@media (max-width:640px){.sp .ctrl{position:static;} .sp .ctrl .present{display:none;} .sp .showing .asof{margin-left:0;}}

/* Presentation mode (⤢ Present): the report alone, full screen. */
body.sp-present .topbar, body.sp-present .sidebar, body.sp-present #pipebar, body.sp-present #sourcebar{display:none!important;}
body.sp-present .shell{grid-template-columns:minmax(0,1fr);}
body.sp-present .main{max-width:1440px;}
body.sp-present .sp .ctrl{top:8px;}
