/* ZionLink commercial workspace. Shared across authenticated routes.
   Page-specific data, state colors, forms and permissions remain intact. */
body.has-zl-shell{
 --bg:#101114;--surface:#17181d;--surface-raised:#1c1e24;--text:#edeef3;--paper:#edeef3;
 --muted:#b4b6c2;--dim:#9497a7;--line:#2c2e38;--line-purple:#67548d;
 --purple:#9270d7;--lavender:#c5aff0;--sans:'Geist',system-ui,sans-serif;--serif:var(--sans);
 --zl-bg:#101114;--zl-s1:#17181d;--zl-s2:#1c1e24;--zl-white:#edeef3;--zl-paper:#edeef3;
 --zl-muted:#b4b6c2;--zl-dim:#9497a7;--zl-border:#2c2e38;--zl-border-hi:#67548d;
 --zl-purple:#9270d7;--zl-lavender:#c5aff0;--s1:#17181d;--s2:#1c1e24;--bd:#2c2e38;
 --g1:#b4b6c2;--g2:#9497a7;--g3:#9497a7;--w:#edeef3;--pu:#9270d7;--lav:#c5aff0;
 --rad-sm:6px;--rad-md:10px;--rad-lg:12px;
 background:var(--bg);color:var(--text);font-family:var(--sans);font-size:14px;line-height:1.55;
 -webkit-font-smoothing:antialiased;
}
body.has-zl-shell :is(button,input,textarea,select){font-family:var(--sans)}
body.has-zl-shell :is(h1,h2,h3,.zl-h1,.op-title,.hi){font-family:var(--sans);color:var(--text);letter-spacing:-.025em}
body.has-zl-shell :is(h1,.zl-h1,.op-title){font-size:clamp(25px,2.4vw,32px);font-weight:600;line-height:1.2}
body.has-zl-shell h2{font-size:19px;line-height:1.35;font-weight:600}
body.has-zl-shell h3{font-size:16px;line-height:1.4;font-weight:600}
body.has-zl-shell :is(p,dd){text-wrap:pretty}
body.has-zl-shell :is(a,button,input,textarea,select,summary):focus-visible{outline:2px solid #c5aff0;outline-offset:3px}
body.has-zl-shell :is(.ey,.eyebrow,.zl-eyebrow,.section-title,.zl-section-title,.home-eyebrow,.home-kpi-label,.panel-tag){text-transform:none;letter-spacing:0;font-family:var(--sans);font-size:12px;color:var(--muted)}
body.has-zl-shell :is(.intro,.lead,.zl-sub){max-width:72ch;font-size:14px;line-height:1.6;color:var(--muted);margin-top:8px}
body.has-zl-shell :is(.page,.zl-page){max-width:1440px;padding:28px 32px 64px;margin:0 auto}
body.has-zl-shell main.zl-ds{max-width:1440px!important;padding:32px!important}
body.has-zl-shell .workspace-main{padding:0 32px 48px}
body.has-zl-shell .shell-stage{padding-top:24px;max-width:1440px;margin-inline:auto}
body.has-zl-shell :is(.page-head,.discover-hero){padding-top:12px;margin-bottom:24px}
body.has-zl-shell :is(.screen-heading){padding-bottom:16px;margin-bottom:16px}
body.has-zl-shell :is(.screen-context,.ey,.zl-eyebrow){margin-bottom:6px}
body.has-zl-shell .workspace-toolbar{min-height:64px;padding-block:12px;border-color:var(--line)}
body.has-zl-shell .period-control{border-radius:7px;background:var(--surface);font-size:13px}
body.has-zl-shell .period-control button[aria-pressed=true]{background:#3e3157;color:#efe9fa}
body.has-zl-shell .zl-scope-trigger{background:var(--surface);border-color:var(--line);font-weight:500}
/* Quiet, stable navigation. AI entry is always available in the same place. */
body.has-zl-shell .workspace-sidebar{background:#14151a;border-right:1px solid var(--line);box-shadow:none;padding-inline:16px}
body.has-zl-shell .brand-row{padding-block:22px 18px}
body.has-zl-shell .workspace-context{background:transparent;border:0;padding:8px 0;margin-bottom:16px}
body.has-zl-shell .workspace-avatar{background:#282230;border-color:#483b5e}
body.has-zl-shell .primary-nav{gap:4px}
body.has-zl-shell .primary-nav a{min-height:42px;border:1px solid transparent;border-radius:7px;padding:10px 12px;color:var(--muted);background:transparent;box-shadow:none}
body.has-zl-shell .primary-nav a strong{font-size:14px;font-weight:500}
body.has-zl-shell .primary-nav a small{display:none}
body.has-zl-shell .primary-nav a[aria-current=page]{background:#292333;border-color:#41364e;color:#eee8fa;box-shadow:inset 2px 0 #b499e0}
body.has-zl-shell .primary-nav a:hover{background:#22232b;color:var(--text)}
body.has-zl-shell .sidebar-assistant{background:var(--surface-raised);border:1px solid #4a3c61;border-radius:8px;box-shadow:none;padding:12px;margin-bottom:22px}
body.has-zl-shell .sidebar-assistant strong{font-size:13px}
body.has-zl-shell .sidebar-assistant small{font-size:11px;color:var(--muted)}
/* Keep the assistant available without competing with the primary rail. */
body.has-zl-shell .sidebar-assistant{position:fixed;right:26px;bottom:26px;z-index:9000;width:230px;min-height:58px;margin:0;padding:11px 12px 11px 14px;box-shadow:0 12px 30px rgba(0,0,0,.32)}
body.has-zl-shell .sidebar-utilities a,body.has-zl-shell .sidebar-utilities button{font-size:12px;color:var(--muted)}
/* One level of surface per section. Nested objects use separators. */
body.has-zl-shell :is(.home-card,.zl-card,.decision-section,.decision-card,.report-narrative,.settings-panel,.access-card,.path-card,.signal-card,.intel-brief,.report-hero,.commercial-move){background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:none}
body.has-zl-shell :is(.home-card,.zl-card,.report-narrative,.settings-panel,.access-card,.path-card){padding:20px}
body.has-zl-shell :is(.zl-btn,.btn,.abtn,.primary-button,.quiet-button,.home-card-cta){border-radius:6px;min-height:36px;font-size:13px;line-height:1.4;padding:9px 13px;font-weight:500;box-shadow:none}
body.has-zl-shell :is(.zl-btn.primary,.btn.primary,.abtn.primary,.primary-button,.home-card-cta){background:#7955bb;border-color:#9873d1;color:#fff}
body.has-zl-shell :is(.zl-btn.primary,.btn.primary,.abtn.primary,.primary-button,.home-card-cta):hover{background:#8964cb}
body.has-zl-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:14px;color:var(--text);border-color:var(--line);border-radius:6px}
body.has-zl-shell :is(th,td){font-size:13px;padding:12px 14px;line-height:1.5}
body.has-zl-shell th{color:var(--muted);font-weight:500;text-transform:none;letter-spacing:0}
body.has-zl-shell :is(.tabs,.network-tabs,.zl-market-context-tabs){gap:4px;border-bottom:1px solid var(--line);padding-bottom:0;overflow-x:auto}
body.has-zl-shell :is(.tab,.network-tab){font-size:13px;padding:11px 14px;border-radius:0;background:transparent;white-space:nowrap}
body.has-zl-shell :is(.tab.active,.network-tab.active){color:#ded0f4;border-bottom:2px solid #b499e0}
body.has-zl-shell :is(.signal-filters,.report-filters,.filters){gap:8px;margin-block:16px}
body.has-zl-shell :is(.filter,.signal-filter){font-size:13px}
body.has-zl-shell :is(.review-detail,.evidence-group,.report-details,.archive-details){border:1px solid var(--line);border-radius:8px;margin-block:14px;padding:12px 16px;background:transparent}
body.has-zl-shell summary{font-size:13px;color:var(--muted);cursor:pointer;min-height:28px}
@media(max-width:720px){body.has-zl-shell .sidebar-assistant{right:16px;bottom:16px;width:min(230px,calc(100vw - 32px))}}
body.has-zl-shell summary:hover{color:var(--text)}
/* Home: context -> highest-fit opportunity + decisions -> supporting movement. */
body.has-zl-shell .home-global-root{display:grid;gap:20px}
body.has-zl-shell .home-snapshot{padding:0 0 16px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
body.has-zl-shell .home-snapshot>.home-card-head{display:none}
body.has-zl-shell .home-kpi-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
body.has-zl-shell .home-kpi-card{padding:6px 20px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;display:grid;grid-template-columns:1fr auto;align-items:start;gap:4px 10px}
body.has-zl-shell .home-kpi-card:first-child{padding-left:0}
body.has-zl-shell .home-kpi-card:last-child{border-right:0}
body.has-zl-shell .home-kpi-card .home-icon{display:none}
body.has-zl-shell .home-kpi-label{grid-column:1;font-size:13px;color:var(--muted)}
body.has-zl-shell .home-kpi-card strong{grid-column:1;font:600 30px/1.2 var(--sans);color:var(--text);font-variant-numeric:tabular-nums;margin:0}
body.has-zl-shell .home-kpi-card small{grid-column:1/-1;font-size:11px;line-height:1.5;color:var(--dim)}
body.has-zl-shell .home-kpi-delta{grid-column:2;grid-row:2;background:transparent;padding:0;color:#9ed5bb;font-size:11px;white-space:nowrap}
.executive-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:20px;align-items:start}
body.has-zl-shell .executive-focus{border-top:2px solid #a18ac8}
body.has-zl-shell .home-card-head h2{margin:0;font-size:15px;letter-spacing:-.01em}
body.has-zl-shell .home-card-head{margin-bottom:16px}
body.has-zl-shell .home-card-meta{font-size:11px;color:var(--dim)}
.executive-context{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;gap:12px;margin-top:22px}
.executive-score{color:#d6c5ef;font-variant-numeric:tabular-nums}
body.has-zl-shell .executive-focus h3{font-size:24px;line-height:1.35;letter-spacing:-.025em;max-width:36ch;margin:12px 0}
.executive-reason{font-size:15px;line-height:1.65;max-width:65ch;color:var(--muted);margin-bottom:18px}
.executive-timing strong{font-size:12px;color:var(--text)}
.executive-timing p,.executive-empty p{font-size:14px;color:var(--muted);line-height:1.6;margin:4px 0 16px}
.executive-action{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-block:20px}
.executive-action .home-card-cta{margin:0}
.executive-action>span{font-size:11px;color:var(--dim)}
body.has-zl-shell .home-attention{background:var(--surface);border-color:var(--line)}
body.has-zl-shell .home-next-move{border-top:2px solid #a18ac8;background:linear-gradient(145deg,rgba(155,81,255,.06),var(--surface) 44%)}
body.has-zl-shell .home-next-move .home-card-head{margin-bottom:4px}
body.has-zl-shell .home-next-move .home-card-meta{display:block;margin-top:4px}
body.has-zl-shell .home-attention-list{gap:0}
body.has-zl-shell .home-attention .home-attention-item{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;padding:22px 0}
body.has-zl-shell .home-attention .home-attention-item:first-child{border-top:0;padding-top:0}
body.has-zl-shell .home-attention-item::before{display:none}
body.has-zl-shell .home-attention-item{display:grid;grid-template-columns:1fr;gap:14px;align-items:start}
body.has-zl-shell .home-attention-item h3{font-size:18px;line-height:1.35;margin:7px 0 14px;max-width:34ch}
body.has-zl-shell .home-attention-tag{font-size:10px;text-transform:none;letter-spacing:0;padding:2px 6px;font-weight:500}
body.has-zl-shell .home-attention-top small{font-size:11px}
body.has-zl-shell .home-attention-identity{display:grid;gap:5px;margin-top:20px}
body.has-zl-shell .home-attention-identity span,body.has-zl-shell .home-attention-kicker{color:var(--dim);font-size:10px;text-transform:uppercase;letter-spacing:.08em}
body.has-zl-shell .home-attention-identity strong{margin:0;color:var(--text);font-size:15px;line-height:1.45;font-weight:500}
body.has-zl-shell .home-attention-kicker{display:block;margin-top:20px;color:var(--lavender)}
body.has-zl-shell .home-attention-item .home-card-cta{background:transparent;border-color:#4c3f63;color:#d6c5ef;margin-top:18px;font-size:12px;min-height:36px;padding:7px 12px}
body.has-zl-shell .home-attention-secondary{border-left:0;border-top:1px solid var(--line);padding:12px 0 4px}
body.has-zl-shell .home-decision-reasons{display:block;margin:8px 0}
body.has-zl-shell .home-decision-reasons>div{margin-bottom:10px}
body.has-zl-shell .home-decision-reasons dd{font-size:13px}
body.has-zl-shell .home-decision-risk{margin-top:10px;color:var(--muted);font-size:12px;line-height:1.5}
body.has-zl-shell .home-decision-risk strong{display:block;margin-bottom:3px;color:var(--text);font-size:11px}
body.has-zl-shell .home-decision-evidence{border:0;padding-top:0}
body.has-zl-shell .decision-context summary,body.has-zl-shell .home-decision-evidence summary{font-size:12px;padding:3px 0;min-height:26px}
body.has-zl-shell .home-decision-note{font-size:12px;line-height:1.5}
body.has-zl-shell .home-decision-more .home-attention-item{display:flex;align-items:center;gap:16px;padding:14px 0}
body.has-zl-shell .home-decision-more .home-attention-primary{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px 14px;flex:1;min-width:0}
body.has-zl-shell .home-decision-more .home-attention-top{grid-column:1/-1}
body.has-zl-shell .home-decision-more .home-attention-identity{grid-column:1/-1;margin-top:0}
body.has-zl-shell .home-decision-more .home-attention-identity span,
body.has-zl-shell .home-decision-more .home-attention-kicker,
body.has-zl-shell .home-decision-more .home-attention-secondary{display:none}
body.has-zl-shell .home-decision-more .home-attention-identity strong{font-size:13px}
body.has-zl-shell .home-decision-more .home-attention-item h3{margin:0;font-size:15px;line-height:1.35}
body.has-zl-shell .home-decision-more .home-attention-item .home-card-cta{margin:0;flex:none}
body.has-zl-shell .home-hero-grid{grid-template-columns:1fr 1fr;gap:20px}
body.has-zl-shell .home-market-card-grid{display:block}
body.has-zl-shell .home-market-card{padding:14px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;min-height:0}
body.has-zl-shell .home-market-card:first-child{border-top:0}
body.has-zl-shell .home-market-card h2{font:500 16px/1.4 var(--sans)}
body.has-zl-shell .home-market-card-stats{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:8px}
body.has-zl-shell .home-market-card-stats p{font-size:12px;color:var(--muted)}
body.has-zl-shell .home-market-card-watch{font-size:12px}
body.has-zl-shell .home-intel-row{padding:13px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
body.has-zl-shell .home-intel-row strong{font-size:14px;line-height:1.5;font-weight:500}
body.has-zl-shell .home-intel-why{font-size:12px;line-height:1.6;color:var(--muted)}
body.has-zl-shell .home-intel-top :is(small,span){font-size:10px;text-transform:none;letter-spacing:0}
body.has-zl-shell .home-card-link{font-size:12px}
body.has-zl-shell .home-secondary-grid{display:block}
/* Screen-specific hierarchy, sharing the same typography and controls. */
body[data-page=discovery] .discover-hero{display:block}
body[data-page=discovery] .discover-hero-note{display:none}
body[data-page=discovery] .intel-metrics{display:flex;gap:0;background:transparent;border:0;margin-block:20px}
body[data-page=discovery] .intel-metric{border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;padding:8px 24px}
body[data-page=discovery] .intel-metric-n{font-size:24px;color:var(--text)}
body[data-page=discovery] .intel-metric-l{font-size:12px;color:var(--muted)}
body.has-zl-shell .pipeline-pulse{gap:8px;flex-wrap:wrap}
body.has-zl-shell .pulse-chip{background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:10px 14px}
body.has-zl-shell .pulse-chip span{font-size:12px}
body.has-zl-shell .board{gap:12px;margin-top:20px;align-items:flex-start}
body.has-zl-shell .col{background:var(--surface);border-color:var(--line);border-radius:8px;flex:1 0 210px;padding:12px}
body.has-zl-shell .col-h{font-family:var(--sans);font-size:12px;text-transform:none;letter-spacing:0;color:var(--muted)}
body.has-zl-shell .report-hero{padding:20px;margin-block:18px;background:var(--surface)}
body.has-zl-shell .report-summary-item{background:transparent;border-radius:0;border-right:1px solid var(--line);padding:12px 18px}
body.has-zl-shell .report-section-heading{margin-top:24px}
body.has-zl-shell .report-narrative{margin-bottom:16px}
body.has-zl-shell .commercial-move{padding:24px;border-left:2px solid #a18ac8}
body.has-zl-shell .commercial-move h2{font:600 23px/1.4 var(--sans)}
body.has-zl-shell :is(.decision-hero,.decision-section,.decision-card){box-shadow:none;background:var(--surface);border-color:var(--line)}
body.has-zl-shell .decision-hero h1{font-size:28px;font-family:var(--sans)}
body.has-zl-shell .settings-main .screen-heading{margin-top:22px}
body.has-zl-shell :is(.settings-panel,.settings-card) header p{font-size:13px;color:var(--muted);max-width:70ch}
@media(max-width:1100px){.executive-grid{grid-template-columns:1fr}.executive-focus h3{max-width:unset}body.has-zl-shell .home-hero-grid{grid-template-columns:1fr 1fr}}
@media(max-width:900px){
 body.has-zl-shell .home-attention-item{grid-template-columns:1fr;gap:14px}
 body.has-zl-shell .home-attention-secondary{border-left:0;border-top:1px solid var(--line);padding:10px 0 0}
 body.has-zl-shell .home-attention-top{flex-wrap:wrap}
 body.has-zl-shell .home-attention-tag,body.has-zl-shell .home-attention-top small{white-space:nowrap}
 body.has-zl-shell .home-attention-item h3{max-width:42ch;font-size:17px}
}
@media(max-width:720px){
body.has-zl-shell .home-attention-item{grid-template-columns:1fr;gap:12px}
body.has-zl-shell .home-attention-secondary{border-left:0;border-top:1px solid var(--line);padding:10px 0 0}
 body.has-zl-shell :is(.page,.zl-page){padding:56px 16px 40px}
 body.has-zl-shell main.zl-ds{padding:56px 16px 40px!important}
 body.has-zl-shell .workspace-main{padding:0 16px 40px}
 body.has-zl-shell .workspace-toolbar{padding-top:48px}
 body.has-zl-shell .home-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:18px}
 body.has-zl-shell .home-kpi-card{padding:0 12px}
 body.has-zl-shell .home-kpi-card:nth-child(odd){padding-left:0}
 body.has-zl-shell .home-kpi-card:nth-child(even){border-right:0}
 body.has-zl-shell .home-kpi-delta{grid-row:auto;grid-column:1/-1}
 body.has-zl-shell .home-kpi-card strong{font-size:26px}
 body.has-zl-shell .home-hero-grid{grid-template-columns:1fr}
 body.has-zl-shell :is(.home-card,.zl-card,.report-narrative,.settings-panel,.access-card,.path-card){padding:16px}
 body.has-zl-shell .home-snapshot{padding:0 0 18px}
 body.has-zl-shell .executive-focus h3{font-size:22px}
 body.has-zl-shell .home-card-head{flex-wrap:wrap;gap:8px}
 body.has-zl-shell .period-control{border-radius:7px}
 body.has-zl-shell :is(input,textarea,select){font-size:16px}
}
@media(prefers-reduced-motion:reduce){body.has-zl-shell *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body.has-zl-shell{background:#fff;color:#111}body.has-zl-shell .executive-grid{display:block}}
body.has-zl-shell .intel-brief-head span{font:600 14px/1.4 var(--sans);text-transform:none;letter-spacing:0;color:var(--text)}
body.has-zl-shell .intel-brief-item{background:transparent;border:0;border-left:1px solid var(--line);border-radius:0;padding:4px 18px}
body.has-zl-shell .intel-brief-item:first-child{border-left:0;padding-left:0}

/* Shared KPI pattern: the number leads, the meaning follows. Interactive
   metrics keep a quiet purple signal so their role as filters/links is clear. */
body.has-zl-shell{
 --kpi-bg:#17181d;--kpi-border:#2c2e38;--kpi-accent:#c5aff0;
}
body.has-zl-shell :is(.home-kpi-row,.value-summary-grid,.pipeline-pulse,.intel-metrics,.kpis,.deal-outcome-kpis,.pipeline-summary,.pipeline-summary-metrics,.report-summary){
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
 border:0;border-radius:0;background:transparent;overflow:visible;
}
body.has-zl-shell :is(.intel-metrics,.kpis){grid-template-columns:repeat(3,minmax(0,1fr))}
body.has-zl-shell :is(.home-kpi-card,.value-summary-card,.pulse-chip,.intel-metric,.kpis .kpi,.deal-outcome-kpi){
 position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
 min-width:0;min-height:102px;padding:16px 17px;border:1px solid var(--kpi-border)!important;
 border-radius:12px!important;background:linear-gradient(140deg,rgba(146,112,215,.055),var(--kpi-bg) 54%)!important;
 box-shadow:none!important;text-align:left;transition:border-color .16s ease,background .16s ease;
}
body.has-zl-shell .pipeline-summary>div{display:flex;flex-direction:column;justify-content:flex-start;gap:0;min-width:0;min-height:90px;padding:14px!important;border:1px solid var(--kpi-border)!important;border-radius:12px!important;background:linear-gradient(140deg,rgba(146,112,215,.055),var(--kpi-bg) 54%)!important}
body.has-zl-shell .pipeline-summary>div+div{border-left:1px solid var(--kpi-border)}
body.has-zl-shell .pipeline-summary>div>strong{order:-2;margin:0;color:var(--text);font:600 30px/1.05 var(--sans);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
body.has-zl-shell .pipeline-summary>div>span{order:-1;margin-top:9px;color:var(--muted);font:500 13px/1.35 var(--sans)}
body.has-zl-shell .pipeline-summary-metrics>div{display:flex;flex-direction:column;min-width:0;min-height:82px;padding:12px!important;border:1px solid var(--kpi-border)!important;border-radius:12px!important;background:linear-gradient(140deg,rgba(146,112,215,.055),var(--kpi-bg) 54%)}
body.has-zl-shell .pipeline-summary-metrics>div>strong{order:-2;color:var(--text);font:600 26px/1.05 var(--sans);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
body.has-zl-shell .pipeline-summary-metrics>div>span{order:-1;margin-top:8px;color:var(--muted);font:500 12px/1.35 var(--sans)}
body.has-zl-shell .report-summary-item{display:flex;flex-direction:column;min-width:0;min-height:92px;padding:15px!important;border:1px solid var(--kpi-border)!important;border-radius:12px!important;background:linear-gradient(140deg,rgba(146,112,215,.055),var(--kpi-bg) 54%)!important}
body.has-zl-shell .report-summary-item>strong{order:-2;margin:0;color:var(--text);font:600 30px/1.05 var(--sans);letter-spacing:-.04em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body.has-zl-shell .report-summary-item>span{order:-1;margin-top:9px;color:var(--muted);font:500 13px/1.35 var(--sans)}
body.has-zl-shell .report-summary-item>small{margin-top:5px;color:var(--dim);font:400 10px/1.4 var(--sans)}
body.has-zl-shell :is(.home-kpi-card,.value-summary-card,.pulse-chip,.intel-metric){cursor:pointer;text-decoration:none}
body.has-zl-shell :is(.home-kpi-card,.value-summary-card,.pulse-chip,.intel-metric):hover,
body.has-zl-shell :is(.home-kpi-card,.value-summary-card,.pulse-chip,.intel-metric):focus-visible{
 border-color:rgba(177,146,224,.55)!important;
 background:linear-gradient(140deg,rgba(146,112,215,.15),#191920 60%)!important;
}
body.has-zl-shell :is(.home-kpi-card,.value-summary-card,.pulse-chip,.intel-metric):focus-visible{outline:2px solid var(--kpi-accent);outline-offset:2px}
body.has-zl-shell .home-kpi-card .home-icon{display:none}
body.has-zl-shell :is(.home-kpi-card,.value-summary-card,.pulse-chip,.intel-metric,.kpis .kpi,.deal-outcome-kpi) strong,
body.has-zl-shell .kpis .kpi-value,
body.has-zl-shell .deal-outcome-kpi>strong{
 order:-2;display:block;margin:0;color:var(--text)!important;font:600 34px/1.05 var(--sans)!important;
 letter-spacing:-.04em;font-variant-numeric:tabular-nums;
}
body.has-zl-shell .home-kpi-card .home-kpi-label,
body.has-zl-shell .value-summary-card span,
body.has-zl-shell .pulse-chip span,
body.has-zl-shell .intel-metric-l,
body.has-zl-shell .kpis .kpi-label,
body.has-zl-shell .deal-outcome-kpi>span{
 order:-1;display:block;margin:10px 0 0;color:var(--muted);font:500 15px/1.35 var(--sans);letter-spacing:0;text-transform:none;
}
body.has-zl-shell .intel-metric-n,body.has-zl-shell .kpis .kpi-value{order:-2}
body.has-zl-shell :is(.home-kpi-card:first-child .home-kpi-label,.value-summary-card:first-child span,.pulse-chip:first-child span,.intel-metric:first-child .intel-metric-l){color:var(--kpi-accent)}
body.has-zl-shell .home-kpi-card small,body.has-zl-shell .value-summary-card small,
body.has-zl-shell .kpis .kpi-note,body.has-zl-shell .deal-outcome-kpi p,
body.has-zl-shell .deal-outcome-kpi small{order:0;margin:5px 0 0;color:var(--dim);font:400 11px/1.4 var(--sans)}
body.has-zl-shell .home-kpi-delta{order:1;margin:8px 0 0;color:#9ed5bb;background:transparent;padding:0;font-size:10px}
body.has-zl-shell .intel-metric-n{font:600 34px/1.05 var(--sans);color:var(--text)}
body[data-page=discovery] #metricPriority .intel-metric-n{color:var(--text)}
body.has-zl-shell .pulse-chip[aria-pressed=true]{border-color:rgba(177,146,224,.65)!important;background:linear-gradient(140deg,rgba(146,112,215,.2),#191920 60%)!important}
body.has-zl-shell .pulse-chip.has-risk strong{color:#dfb779!important}
body.has-zl-shell .deal-outcome-kpi.won>strong{color:#a9d2af!important}
body.has-zl-shell .deal-outcome-kpi.lost>strong{color:#dca4a8!important}
body.has-zl-shell .home-snapshot{border:0;padding:0}
body.has-zl-shell .home-kpi-card{display:flex;gap:0;border-right:1px solid var(--kpi-border)!important;padding:16px 17px!important}
body.has-zl-shell .home-kpi-card:first-child{padding-left:17px}
body.has-zl-shell .value-summary-card+.value-summary-card{border-left:1px solid var(--kpi-border)}
body.has-zl-shell .deal-outcome-kpi+.deal-outcome-kpi{border-left:1px solid var(--kpi-border)}
@media(max-width:1000px){body.has-zl-shell :is(.home-kpi-row,.value-summary-grid,.pipeline-pulse,.intel-metrics,.kpis,.deal-outcome-kpis,.pipeline-summary,.pipeline-summary-metrics,.report-summary){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){body.has-zl-shell :is(.home-kpi-row,.value-summary-grid,.pipeline-pulse,.intel-metrics,.kpis,.deal-outcome-kpis,.pipeline-summary,.pipeline-summary-metrics,.report-summary){gap:10px}body.has-zl-shell :is(.home-kpi-card,.value-summary-card,.pulse-chip,.intel-metric,.kpis .kpi,.deal-outcome-kpi){min-height:90px;padding:14px!important}body.has-zl-shell :is(.home-kpi-card,.value-summary-card,.pulse-chip,.intel-metric,.kpis .kpi,.deal-outcome-kpi) strong,body.has-zl-shell .kpis .kpi-value,body.has-zl-shell .deal-outcome-kpi>strong{font-size:30px!important}body.has-zl-shell :is(.home-kpi-card .home-kpi-label,.value-summary-card span,.pulse-chip span,.intel-metric-l,.kpis .kpi-label,.deal-outcome-kpi>span){font-size:13px}body.has-zl-shell .pipeline-summary>div{min-height:82px;padding:12px!important}body.has-zl-shell .pipeline-summary>div>strong,body.has-zl-shell .report-summary-item>strong{font-size:26px}body.has-zl-shell .pipeline-summary-metrics>div{min-height:76px;padding:10px!important}}
@media(max-width:360px){body.has-zl-shell :is(.home-kpi-row,.value-summary-grid,.pipeline-pulse,.intel-metrics,.kpis,.deal-outcome-kpis,.pipeline-summary,.pipeline-summary-metrics,.report-summary){grid-template-columns:1fr}}
body.has-zl-shell .intel-brief-item .intel-brief-kind{font:400 11px/1.5 var(--sans);text-transform:none;letter-spacing:0;color:var(--dim)}
body.has-zl-shell .intel-brief-item p{font-size:13px;color:var(--muted)}
body.has-zl-shell .intel-brief-item .zl-btn{margin-top:12px}
body.has-zl-shell .home-feed-more{border-top:1px solid var(--line);padding-top:12px}
@media(max-width:720px){body.has-zl-shell .intel-brief-item{border-left:0;border-top:1px solid var(--line);padding:16px 0}body.has-zl-shell .intel-brief-item:first-child{border-top:0}}
body.has-zl-shell .intelligence-card{background:var(--surface-raised);border-radius:8px;box-shadow:none}
body.has-zl-shell .ic-header{display:block}
body.has-zl-shell .ic-header h3{font:600 16px/1.45 var(--sans);margin:5px 0 8px}
body.has-zl-shell :is(.ic-kind,.ic-label,.ic-status,.ic-movement){font-family:var(--sans);font-size:11px;letter-spacing:0;text-transform:none}
body.has-zl-shell .ic-status{display:inline-flex;margin-bottom:10px}
body.has-zl-shell .ic-value{font-size:13px;line-height:1.55}
body.has-zl-shell .ic-board .ic-attention{font-size:12px;background:transparent}
body.has-zl-shell .ic-board-context{margin-top:10px;border-top:1px solid var(--line);padding-top:8px}
body.has-zl-shell .pulse-chip strong{font:600 24px/1.2 var(--sans);font-variant-numeric:tabular-nums}
body.has-zl-shell .report-summary{background:transparent;border:0;border-block:1px solid var(--line);border-radius:0;gap:0}
body.has-zl-shell .report-summary-item:last-child{border-right:0}
body.has-zl-shell :is(.report-summary-item strong,.market-read strong){font:600 24px/1.3 var(--sans);font-variant-numeric:tabular-nums}
body.has-zl-shell .report-summary-item span{font-size:12px;color:var(--muted)}
body.has-zl-shell .report-summary-item small{font-size:11px;color:var(--dim)}
body.has-zl-shell .home-kpi-card{align-content:start}

/* Home hierarchy: KPIs are a quiet status strip. The decision surface below
   owns the visual emphasis, so the metrics must not read like four competing
   destinations. */
body.has-zl-shell .home-snapshot{padding:0 0 18px;border-bottom:1px solid var(--line)}
body.has-zl-shell .home-kpi-row{gap:0}
body.has-zl-shell .home-kpi-card{
  min-height:82px;
  padding:8px 20px!important;
  border:0!important;
  border-right:1px solid var(--line)!important;
  border-radius:0!important;
  background:transparent!important;
}
body.has-zl-shell .home-kpi-card:first-child{padding-left:0!important}
body.has-zl-shell .home-kpi-card:last-child{border-right:0!important}
body.has-zl-shell .home-kpi-card:hover,
body.has-zl-shell .home-kpi-card:focus-visible{background:rgba(146,112,215,.06)!important}
body.has-zl-shell .home-next-move{
  border-left:2px solid #a18ac8;
  border-top:2px solid #a18ac8;
  background:linear-gradient(145deg,rgba(155,81,255,.09),var(--surface) 48%);
}

/* Keep this last because shared KPI rules intentionally use high specificity
   for other surfaces. */
body.has-zl-shell .home-global-root .home-snapshot .home-kpi-card{
  min-height:82px;
  padding:8px 20px!important;
  border:0!important;
  border-right:1px solid var(--line)!important;
  border-radius:0!important;
  background:transparent!important;
}
body.has-zl-shell .home-global-root .home-snapshot .home-kpi-card:first-child{padding-left:0!important}
body.has-zl-shell .home-global-root .home-snapshot .home-kpi-card:last-child{border-right:0!important}
body.has-zl-shell .home-global-root .home-snapshot .home-kpi-card:hover,
body.has-zl-shell .home-global-root .home-snapshot .home-kpi-card:focus-visible{background:rgba(146,112,215,.06)!important}
body.has-zl-shell .home-global-root .home-next-move{
  border-left:2px solid #a18ac8!important;
  border-top:2px solid #a18ac8!important;
  background:linear-gradient(145deg,rgba(155,81,255,.09),var(--surface) 48%)!important;
}

/* Commercial proof stays separate from activity. Unknown is visible instead
   of being rendered as zero, so the Home view cannot overstate ROI. */
body.has-zl-shell .commercial-value-cockpit{border-left:2px solid #a18ac8}
body.has-zl-shell .commercial-value-head{align-items:flex-start}
body.has-zl-shell .commercial-value-head h2{margin:0;font-size:16px}
body.has-zl-shell .commercial-value-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
body.has-zl-shell .commercial-value-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.has-zl-shell .commercial-value-card{min-width:0;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-raised)}
body.has-zl-shell .commercial-value-card>span{display:block;color:var(--muted);font-size:12px}
body.has-zl-shell .commercial-value-card>strong{display:block;margin-top:9px;color:var(--text);font:600 22px/1.15 var(--sans);overflow-wrap:anywhere}
body.has-zl-shell .commercial-value-card>small{display:block;margin-top:7px;color:var(--dim);font-size:11px;line-height:1.45}
body.has-zl-shell .commercial-value-card.is-unknown>strong{color:var(--text)}
body.has-zl-shell{--gold:var(--lavender)}
/* The workspace palette has one accent family. Legacy gold/amber states
   resolve to the same purple/lavender language on this surface. */
body.has-zl-shell :is(.decision-market,.home-attention,.market-flow-node.is-ready){border-color:var(--line-purple)!important;background:var(--surface)!important}
body.has-zl-shell :is(.decision-market span,.ready-for-action .market-state,.market-row .portfolio-alert,.market-flow-node.is-ready .market-flow-dot,.signal-document.regulation .signal-category,.signal-evolution-card.regulation,.network-request .request-status.waiting_client){color:var(--lavender)!important}
body.has-zl-shell :is(.signal-document.regulation,.crm-column-followup,.signal-evolution-card.regulation){border-left-color:var(--lavender)!important;border-top-color:var(--lavender)!important}
body.has-zl-shell .signal-filters button[data-signal-category="regulation"][aria-pressed=true]{border-color:var(--line-purple)!important;background:rgba(146,112,215,.1)!important;color:var(--lavender)!important}
body.has-zl-shell .signal-filters button[data-signal-category="regulation"][aria-pressed=true] span{color:var(--lavender)!important}
body.has-zl-shell .market-flow-node.is-ready .market-flow-dot{background:var(--lavender)!important;box-shadow:0 0 0 4px rgba(196,168,255,.12)!important}
body.has-zl-shell .market-flow-connector{background:linear-gradient(90deg,var(--lavender),var(--lavender))!important}
body.has-zl-shell .home-attention-item.tag-attn-urgent .home-attention-tag{background:rgba(146,112,215,.16)!important;color:var(--lavender)!important}
body.has-zl-shell .home-market-card-next{margin:10px 0 0;padding-top:9px;border-top:1px solid var(--line);color:var(--text);font-size:12px;line-height:1.45}
body.has-zl-shell .home-market-card-next span{display:block;margin-bottom:3px;color:var(--lavender);font-size:10px;text-transform:uppercase;letter-spacing:.04em}
@media(max-width:820px){body.has-zl-shell .commercial-value-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body.has-zl-shell .commercial-value-grid{grid-template-columns:1fr}}
@media(max-width:720px){
 body.has-zl-shell .shell-stage{padding-top:16px}
 body.has-zl-shell .screen-heading{margin-bottom:12px;padding-bottom:12px}
 body.has-zl-shell .screen-heading>div>p:last-child{display:none}
 body.has-zl-shell .home-kpi-card small{display:none}
 body.has-zl-shell .home-kpi-row{row-gap:14px}
 body.has-zl-shell .home-kpi-label{font-size:12px}
}
/* Commercial activity: a compact trend with readable context and exact values. */
body.has-zl-shell .home-performance .home-card-head{display:block;margin-bottom:20px}
body.has-zl-shell .performance-toggles{margin-top:14px;gap:6px}
body.has-zl-shell .performance-toggle{padding:7px 10px;border-radius:6px;font-size:12px;font-weight:500;color:var(--muted)}
body.has-zl-shell .performance-toggle.is-active{background:#282332;color:var(--text);border-color:#75618f}
body.has-zl-shell .performance-toggle i{opacity:.75;width:6px;height:6px}
.activity-caption{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;font-size:12px;color:var(--muted);margin-bottom:12px}
.activity-caption strong,.activity-caption span{display:block}.activity-caption strong{color:var(--paper);font-size:14px;font-weight:600}.activity-caption div span{margin-top:3px;color:var(--dim);font-size:10px}.activity-caption>span{padding-top:2px;color:var(--dim);white-space:nowrap}
.activity-summary{display:flex;gap:28px;padding:11px 0 4px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.activity-summary div{display:flex;align-items:baseline;gap:6px}.activity-summary strong{color:var(--paper);font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}.activity-summary span{color:var(--dim);font-size:10px}
.activity-scroll{overflow-x:auto;padding:12px 0 2px}.activity-chart{min-width:500px;height:240px}.activity-chart svg{display:block;width:100%;height:100%;overflow:visible}.activity-grid-line{stroke:rgba(255,255,255,.09);stroke-width:1}.activity-axis-label{fill:var(--dim);font-size:10px;font-family:var(--sans)}.activity-line{filter:drop-shadow(0 3px 5px rgba(155,81,255,.16))}.activity-dot{stroke:var(--surface);stroke-width:2}.activity-dot:hover{r:6}
.activity-data{margin-top:12px;border-top:1px solid var(--line);padding-top:10px;font-size:12px;color:var(--muted)}
.activity-data summary{cursor:pointer;width:fit-content}
.activity-table-scroll{overflow:auto;margin-top:12px}
.activity-data table{border-collapse:collapse;width:100%;font-size:12px;text-align:right}
.activity-data caption{text-align:left;padding-bottom:8px}
.activity-data th,.activity-data td{padding:8px;border-bottom:1px solid var(--line)}
.activity-data th:first-child{text-align:left}
.pipeline-visual-layout{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(0,1.15fr);gap:28px}
.pipeline-visual-layout.no-outcomes{grid-template-columns:1fr}
.pipeline-snapshot-side{display:flex;align-items:flex-start}
.pipeline-distribution-head{display:flex;align-items:baseline;gap:10px;margin:0 0 22px}
.pipeline-distribution-head strong{font-size:30px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums}
.pipeline-distribution-head span{color:var(--muted);font-size:12px}
.pipeline-stage-row{display:grid;grid-template-columns:118px 1fr 20px;align-items:center;gap:10px;margin:16px 0;font-size:12px;color:var(--muted)}
.pipeline-stage-row strong{text-align:right;color:var(--text);font-variant-numeric:tabular-nums}
.pipeline-stage-track{height:7px;border-radius:2px;background:#292b34;overflow:hidden}
.pipeline-stage-track i{height:100%;display:block;border-radius:2px}
.pipeline-followup-state{display:block;padding-top:16px;margin-top:20px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.pipeline-followup-state.is-overdue{color:#dfb779}
body.has-zl-shell .home-pipeline .pipeline-recent{margin:0}
body.has-zl-shell .home-pipeline .pipeline-movement{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:12px 0;display:flex;gap:10px}
body.has-zl-shell .home-pipeline .pipeline-movement strong{font-size:12px;line-height:1.5}
body.has-zl-shell .home-pipeline .pipeline-movement time{font-size:11px;white-space:nowrap}
body.has-zl-shell .home-pipeline .pipeline-movement .home-icon{display:none}
body.has-zl-shell .outcome-chip{border:0;border-radius:4px;background:transparent;padding:6px 0}
body.has-zl-shell .outcome-chip strong{max-width:none;white-space:normal;font-size:12px}
@media(max-width:900px){.pipeline-visual-layout{grid-template-columns:1fr;gap:24px}}
@media(max-width:480px){.activity-caption{font-size:11px}.activity-unit{display:none}.activity-columns{gap:8px}body.has-zl-shell .performance-toggle{font-size:11px;padding:7px 8px}.pipeline-stage-row{grid-template-columns:112px 1fr 20px}}
body.has-zl-shell .home-pipeline .pipeline-recent{display:block}
body.has-zl-shell .home-pipeline .pipeline-recent>span,body.has-zl-shell .pipeline-outcomes>span{display:block;font-size:11px;color:var(--dim);margin-bottom:4px}
/* Purple gradient marks a full-card navigation target; static cards stay flat. */
body.has-zl-shell :is(a.market-card,a.zl-card[href],a.path-card[href],a.home-attention-item[href],button.monitored-market-card,.home-market-card[data-open-market]){
  background:linear-gradient(138deg,rgba(146,112,215,.17) 0%,rgba(40,35,50,.94) 34%,rgba(23,24,29,.98) 82%);
  border-color:rgba(166,137,216,.3);
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
body.has-zl-shell :is(a.market-card,a.zl-card[href],a.path-card[href],a.home-attention-item[href],button.monitored-market-card,.home-market-card[data-open-market]):hover{
  background:linear-gradient(138deg,rgba(146,112,215,.25) 0%,rgba(48,40,63,.97) 36%,rgba(27,28,34,.99) 84%);
  border-color:rgba(190,164,230,.55);
}
body.has-zl-shell :is(a.market-card,a.zl-card[href],a.path-card[href],a.home-attention-item[href],button.monitored-market-card,.home-market-card[data-open-market]):focus-visible{outline:2px solid var(--lavender);outline-offset:3px}
body.has-zl-shell .home-market-card[data-open-market]{margin:5px 0;padding:12px;border:1px solid rgba(166,137,216,.26);border-radius:8px}
body.has-zl-shell .home-market-card[data-open-market]:first-child{border-top:1px solid rgba(166,137,216,.26)}
body.has-zl-shell .home-market-card[data-open-market] .home-market-card-watch{border-top-color:rgba(255,255,255,.09)}
/* Keep the report header strip on the same independent-card grid as the other KPI groups. */
body.has-zl-shell .report-summary{gap:12px!important;border:0!important;border-radius:0;background:transparent;overflow:visible}
body.has-zl-shell .report-summary-item{border-right:1px solid var(--kpi-border)!important}
body.has-zl-shell .report-summary-item>strong{font-size:30px;line-height:1.05}
body.has-zl-shell .report-summary-item>span{margin-top:9px;color:var(--muted);font-size:13px}
body.has-zl-shell .report-summary-item>small{color:var(--dim);font-size:10px}
@media(max-width:720px){body.has-zl-shell .report-summary{gap:10px!important}}
