/* workspace-system.css — ZionLink, 2026-10-29
   One design language for every workspace tab: Home, Markets, Discover,
   Network, Pipeline, the deal page, Reports and Settings. Loaded after the
   page's own styles. Home (workspace-premium.css) is the reference: the same
   page header, glow, tile, section heading, loading, empty and error states.
   Pages keep their own data layouts; this file only aligns the shared parts. */

body.has-zl-shell{
  --desk-surface:#151821;
  --desk-glow:linear-gradient(138deg,rgba(146,112,215,.17) 0%,rgba(40,35,50,.94) 34%,rgba(23,24,29,.98) 82%);
  --desk-glow-hover:linear-gradient(138deg,rgba(146,112,215,.25) 0%,rgba(48,40,63,.97) 36%,rgba(27,28,34,.99) 84%);
  --desk-rule:rgba(220,225,245,.12);
  --desk-rule-strong:rgba(190,166,239,.4);
  --desk-lilac:#cbb6ff;
  --desk-heading:#f5f2fb;
  --desk-body:#aeb3c2;
  --desk-serif:'Fraunces',Georgia,serif;
  --desk-gap:28px;
}

/* ── Width and gutters: every tab starts at the same place ────────────── */
body.has-zl-shell > main.page,
body.has-zl-shell > main.zl-page{max-width:1280px;margin:0 auto;padding:28px clamp(24px,3vw,48px) 80px}
body.has-zl-shell > main.workspace-main{padding:0 clamp(24px,3vw,48px) 80px}
body.has-zl-shell > main.workspace-main > .zl-page,
body.has-zl-shell > main.workspace-main > .settings-stage{max-width:1280px;margin:0 auto;padding:28px 0 0}

/* ── Page header: eyebrow, one serif headline, one line, actions right ── */
body.has-zl-shell .zl-page-head{
  position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  margin:0 0 var(--desk-gap);padding:18px 0 28px;border:0;border-bottom:1px solid var(--desk-rule);background:none;
}
body.has-zl-shell .zl-page-head::after{content:"";position:absolute;left:0;bottom:-1px;width:82px;height:2px;background:linear-gradient(90deg,var(--desk-lilac),transparent)}
body.has-zl-shell .zl-page-head > :first-child{min-width:0;max-width:760px}
body.has-zl-shell .zl-page-head :is(.ey,.zl-eyebrow,.screen-context){
  display:block;margin:0 0 6px;color:var(--desk-lilac);font:500 12px/1.4 var(--sans);letter-spacing:0;text-transform:none;
}
body.has-zl-shell .zl-page-head h1{
  margin:0;color:var(--desk-heading);font-family:var(--desk-serif);font-size:clamp(34px,3vw,48px);font-weight:500;line-height:1.08;letter-spacing:-.04em;
}
body.has-zl-shell .zl-page-head :is(p,.intro,.zl-sub):not(.ey):not(.zl-eyebrow):not(.screen-context){
  max-width:62ch;margin:8px 0 0;color:var(--desk-body);font-size:14px;line-height:1.55;
}
body.has-zl-shell .zl-page-head > :not(:first-child){flex:none;display:flex;gap:10px;align-items:center}
body.has-zl-shell .zl-page-head > [hidden]{display:none!important}

/* ── Market page header: its own breadcrumb and flag, the same header look ── */
body.has-zl-shell .mo-breadcrumb{font-size:12px;color:var(--desk-body)}
body.has-zl-shell .mo-head{position:relative;align-items:flex-end;gap:16px;margin:10px 0 var(--desk-gap);padding:12px 0 28px;border-bottom:1px solid var(--desk-rule)}
body.has-zl-shell .mo-head::after{content:"";position:absolute;left:0;bottom:-1px;width:82px;height:2px;background:linear-gradient(90deg,var(--desk-lilac),transparent)}
body.has-zl-shell .mo-head-flag{align-self:center;width:48px;height:32px}
body.has-zl-shell .mo-head-copy h1{color:var(--desk-heading);font-family:var(--desk-serif);font-size:clamp(34px,3vw,48px);font-weight:500;line-height:1.08;letter-spacing:-.04em}
body.has-zl-shell .mo-head-copy p{max-width:62ch;margin-top:8px;color:var(--desk-body);font-size:14px;line-height:1.55}
body.has-zl-shell .mo-market-switch{align-self:center;padding:8px 12px;border:1px solid var(--desk-rule);border-radius:8px;color:#fff;font-size:14px;text-decoration:none}
body.has-zl-shell .mo-market-switch:hover{background:rgba(255,255,255,.06)}

/* ── Section headings: the same voice as Home's card headlines ───────── */
body.has-zl-shell :is(.markets-section-head h2,.discover-feed-heading h2,.board-heading h2,.report-section-heading h2,.links-section-head h2,.zl-section-head h2){
  margin:0;color:var(--desk-heading);font-family:var(--desk-serif);font-size:24px;font-weight:500;line-height:1.2;letter-spacing:-.03em;
}
body.has-zl-shell :is(.markets-section-head,.discover-feed-heading,.board-heading,.report-section-heading,.links-section-head,.zl-section-head) p{
  margin-top:6px;color:var(--desk-body);font-size:14px;line-height:1.55;
}

/* ── KPI tiles: one look on every tab ────────────────────────────────── */
body.has-zl-shell :is(.intel-metric,.pulse-chip,.portfolio-stat,.report-summary-item){
  border:1px solid rgba(166,137,216,.3)!important;border-radius:12px!important;background:var(--desk-glow)!important;box-shadow:none!important;
}
body.has-zl-shell :is(.intel-metric,.pulse-chip,.portfolio-stat,.report-summary-item) :is(strong,b,.intel-metric-v,.kpi-value){
  font-family:var(--sans);font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.02em;color:var(--desk-heading);
}

/* ── Loading: a calm skeleton instead of a line of text ──────────────── */
body.has-zl-shell :is(main .loading,main .zl-loading,.zl-skeleton){
  position:relative;display:block;min-height:148px;padding:0!important;border:1px solid var(--desk-rule);border-radius:12px;
  background:var(--desk-surface);color:transparent!important;overflow:hidden;font-size:0;
}
body.has-zl-shell :is(main .loading,main .zl-loading,.zl-skeleton)::before{
  content:"";position:absolute;inset:22px 22px auto;height:100px;
  background:
    linear-gradient(rgba(255,255,255,.07),rgba(255,255,255,.07)) 0 0/38% 12px no-repeat,
    linear-gradient(rgba(255,255,255,.05),rgba(255,255,255,.05)) 0 34px/86% 10px no-repeat,
    linear-gradient(rgba(255,255,255,.05),rgba(255,255,255,.05)) 0 56px/72% 10px no-repeat,
    linear-gradient(rgba(255,255,255,.05),rgba(255,255,255,.05)) 0 78px/54% 10px no-repeat;
}
body.has-zl-shell :is(main .loading,main .zl-loading,.zl-skeleton)::after{
  content:"";position:absolute;inset:0;transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(203,182,255,.06),transparent);
  animation:zl-skeleton 1.6s ease-in-out infinite;
}
@keyframes zl-skeleton{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){body.has-zl-shell :is(main .loading,main .zl-loading,.zl-skeleton)::after{animation:none;opacity:0}}

/* ── Empty state: same card, sans body, one action ───────────────────── */
body.has-zl-shell .zl-empty-state{border:1px dashed rgba(166,137,216,.28);border-radius:12px;background:rgba(146,112,215,.035);padding:28px 26px}
body.has-zl-shell .zl-empty-state h2{color:var(--desk-heading);font-family:var(--desk-serif);font-size:24px;font-weight:500;letter-spacing:-.02em}
body.has-zl-shell .zl-empty-state p{color:var(--desk-body);font-size:14px}
body.has-zl-shell .zl-empty-kicker{color:var(--desk-lilac);font:500 12px/1.4 var(--sans);letter-spacing:0;text-transform:none}

/* ── Error state: say what failed and offer Try again ────────────────── */
body.has-zl-shell :is(.zl-error,.pipeline-error,.zl-state-error){
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:18px 20px;border:1px solid rgba(248,113,113,.32);border-radius:12px;background:rgba(248,113,113,.06);
  color:#f3d2d2;font-size:14px;line-height:1.5;
}
body.has-zl-shell .pipeline-error[style*="display:none"],body.has-zl-shell :is(.zl-error,.pipeline-error,.zl-state-error,.zl-skeleton,.loading,.zl-loading)[hidden]{display:none!important}
body.has-zl-shell :is(.zl-error,.pipeline-error,.zl-state-error) :is(a,button){
  display:inline-flex;align-items:center;min-height:34px;padding:7px 12px;border:1px solid rgba(255,255,255,.16);border-radius:6px;
  background:rgba(255,255,255,.05);color:#fff!important;font:500 12px/1.3 var(--sans);text-decoration:none!important;cursor:pointer;
}
body.has-zl-shell :is(.zl-error,.pipeline-error,.zl-state-error) :is(a,button):hover{background:rgba(255,255,255,.1)}

/* ── Forms in Settings: label above field, two columns on desktop ────── */
body.has-zl-shell .settings-form{display:grid;gap:16px}
body.has-zl-shell .settings-form .settings-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.has-zl-shell .settings-form .field{display:grid;gap:7px;min-width:0}
body.has-zl-shell .settings-form .field label{color:var(--muted);font-size:12px;font-weight:500}
body.has-zl-shell .settings-form .field input{width:100%;margin:0;padding:0 12px;color:var(--text)}
body.has-zl-shell .settings-form .field input:disabled,body.has-zl-shell .settings-form .field input[readonly]{color:var(--dim);cursor:default}
body.has-zl-shell .settings-form .field select{width:100%;height:46px;margin:0;padding:0 12px;border:1px solid rgba(32,16,54,.18);border-radius:4px;background:#fff;color:var(--text);font:inherit;font-size:14px}
body.has-zl-shell .settings-form .field select:disabled{color:var(--dim);cursor:default}
body.has-zl-shell .settings-form .field[hidden]{display:none}
body.has-zl-shell .settings-form .field small{color:var(--dim);font-size:12px}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media(max-width:720px){
  body.has-zl-shell > main.page,body.has-zl-shell > main.zl-page{padding:20px 16px 96px}
  body.has-zl-shell > main.workspace-main{padding:0 16px 96px}
  body.has-zl-shell > main.workspace-main > :is(.zl-page,.settings-stage){padding-top:20px}
  body.has-zl-shell .zl-page-head{display:block;padding:12px 0 20px;margin-bottom:20px}
  body.has-zl-shell .zl-page-head h1{font-size:30px}
  body.has-zl-shell .mo-head{flex-wrap:wrap;padding-bottom:20px}
  body.has-zl-shell .mo-head-copy{flex:1 1 220px}
  body.has-zl-shell .mo-head-copy h1{font-size:30px}
  body.has-zl-shell .mo-market-switch{margin-left:0}
  body.has-zl-shell .settings-form .settings-row{grid-template-columns:1fr}
  /* The menu starts closed on phones. Some standalone pages never loaded
     the rule that hid it, so it covered the page on first load. */
  body.has-zl-shell > .workspace-sidebar{transform:translateX(-105%);transition:transform .18s ease;box-shadow:16px 0 50px rgba(0,0,0,.55)}
  body.has-zl-shell.nav-open > .workspace-sidebar{transform:none}
  body.has-zl-shell .zl-page-head > :not(:first-child){margin-top:16px;flex-wrap:wrap}
  body.has-zl-shell :is(.markets-section-head h2,.discover-feed-heading h2,.board-heading h2,.report-section-heading h2,.links-section-head h2,.zl-section-head h2){font-size:24px}
}

/* ── Buttons: Settings uses its own class for the same primary action ── */
body.has-zl-shell .settings-button.primary{min-height:36px;padding:9px 14px;border:1px solid #9873d1;border-radius:6px;background:#7955bb;color:#fff;font-size:14px;font-weight:500}
body.has-zl-shell .settings-button.primary:hover{background:#8964cb}
body.has-zl-shell #discoverFirstStep:not([hidden]){display:block;margin:18px 0 0}

/* ── Modern skin, 2026-11-02 ─────────────────────────────────────────────
   Visual only: bold sans headlines, mono eyebrows, darker rounded cards,
   a pill for the active menu item and a soft glow on the main action.
   No data, copy or layout changes. Remove this block to go back. */
body.has-zl-shell{
  --desk-serif:'Geist',var(--sans),system-ui,sans-serif;
  --desk-surface:#12131a;
  --desk-card-border:rgba(190,166,239,.16);
  --desk-card-border-hover:rgba(190,166,239,.42);
  --desk-card-radius:16px;
}
body.has-zl-shell .zl-page-head h1,
body.has-zl-shell .mo-head-copy h1{font-weight:650;letter-spacing:-.045em}
body.has-zl-shell :is(.markets-section-head h2,.discover-feed-heading h2,.board-heading h2,.report-section-heading h2,.links-section-head h2,.zl-section-head h2,.zl-empty-state h2){font-weight:650;letter-spacing:-.035em}
body.has-zl-shell .zl-page-head :is(.ey,.zl-eyebrow,.screen-context){
  font:600 12px/1.4 var(--mono,'Geist Mono',ui-monospace,monospace);letter-spacing:.14em;text-transform:uppercase;
}
body.has-zl-shell .zl-page-head::after,body.has-zl-shell .mo-head::after{display:none}
body.has-zl-shell .zl-page-head,body.has-zl-shell .mo-head{border-bottom-color:rgba(220,225,245,.08)}

/* Cards: darker surface, bigger radius, a quiet purple edge */
body.has-zl-shell :is(.overview-section,.attention-panel,.changes-panel,.market-card,.home-market-card,.operating-system-panel,.zl-empty-state){
  border-color:var(--desk-card-border);border-radius:var(--desk-card-radius);
}
body.has-zl-shell .market-card{border-left-width:1px;background:var(--desk-surface)}
body.has-zl-shell :is(.market-card,.home-market-card):hover{border-color:var(--desk-card-border-hover)}
body.has-zl-shell :is(.intel-metric,.pulse-chip,.portfolio-stat,.report-summary-item){
  border-color:var(--desk-card-border)!important;border-radius:var(--desk-card-radius)!important;
}
body.has-zl-shell .market-compare{border-color:var(--desk-card-border);border-radius:var(--desk-card-radius)}

/* Menu: one line per item, active item is a pill */
body.has-zl-shell .primary-nav a{min-height:46px;align-items:center;border:1px solid transparent;border-radius:10px}
body.has-zl-shell .primary-nav small{display:none}
body.has-zl-shell .primary-nav a[aria-current=page]{
  background:rgba(155,81,255,.14);border-color:rgba(155,81,255,.34);box-shadow:none;
}

/* Main action: soft purple glow */
body.has-zl-shell :is(.zl-btn.primary,.settings-button.primary){
  border-radius:10px;border-color:rgba(190,150,255,.5);
  background:linear-gradient(180deg,#9a68e6,#7d52c9);box-shadow:0 6px 22px rgba(125,82,201,.38);
}
body.has-zl-shell :is(.zl-btn.primary,.settings-button.primary):hover{background:linear-gradient(180deg,#a578f0,#8559d3)}

/* One button look: the workspace's own primary-button and quiet-button follow zl-btn */
body.has-zl-shell :is(.primary-button,.home-card-cta){
  border-radius:10px;border-color:rgba(190,150,255,.5);color:#fff;
  background:linear-gradient(180deg,#9a68e6,#7d52c9);box-shadow:0 6px 22px rgba(125,82,201,.38);
}
body.has-zl-shell :is(.primary-button,.home-card-cta):hover{background:linear-gradient(180deg,#a578f0,#8559d3)}
body.has-zl-shell .quiet-button{
  border-radius:10px;background:none;border:1px solid var(--zl-border,rgba(255,255,255,.12));color:var(--zl-white,#fff);box-shadow:none;
}
body.has-zl-shell .quiet-button:hover{border-color:var(--zl-border-hi,rgba(155,81,255,.4))}

/* Market page: numbered steps so the order reads as strategy, path, evidence, risks, reads, targets */
#marketMaturityRoot{counter-reset:mkt-step}
#marketMaturityRoot :is(.mkt-section-title,.mkt-objective>.maturity-eyebrow,.mkt-objective-head .maturity-eyebrow){counter-increment:mkt-step;display:inline-flex;align-items:center;gap:9px}
#marketMaturityRoot :is(.mkt-section-title,.mkt-objective>.maturity-eyebrow,.mkt-objective-head .maturity-eyebrow)::before{
  content:counter(mkt-step);display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;
  border:1px solid rgba(155,81,255,.45);background:rgba(155,81,255,.12);color:var(--zl-lavender,#c4a8ff);font:600 12px/1 'Geist Mono',monospace;
}

/* Market page: the next move leads, setup tools come last */
#marketMaturityRoot .mkt-nextmove{border-color:rgba(155,81,255,.4);background:linear-gradient(180deg,rgba(155,81,255,.12),rgba(155,81,255,.04))}
#marketMaturityRoot .mkt-nextmove .mkt-next{border:0;background:none;padding:0;margin:0}
#marketMaturityRoot .mkt-nextmove h2{margin:4px 0 6px;font:500 24px/1.25 Fraunces,Georgia,serif;color:var(--paper,#f2ecdf)}
#marketMaturityRoot .mkt-manage{display:grid;gap:10px;margin-top:8px;padding-top:18px;border-top:1px solid var(--zl-border,rgba(255,255,255,.08))}
#marketMaturityRoot .mkt-manage:not(:has(.mkt-control)){display:none}
#marketMaturityRoot .mkt-manage-title{font:600 12px/1 'Geist Mono',monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--zl-muted,#a1a1aa)}

/* Home "Your markets": one card per market, the same card the old Markets tab used */
.hm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hm-grid[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.hm-card{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:196px;padding:21px 22px;border:1px solid rgba(196,168,255,.17);border-left:2px solid rgba(196,168,255,.3);border-radius:14px;background:var(--zl-s1,#111218);color:inherit;text-decoration:none}
.hm-card:hover,.hm-card:focus-visible{border-color:rgba(196,168,255,.52);background:#171925}
.hm-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hm-status{display:inline-flex;align-items:center;gap:8px;color:var(--zl-lavender,#c4a8ff);font:500 12px 'Geist Mono',monospace;letter-spacing:.08em;text-transform:uppercase}
.hm-status i{width:7px;height:7px;border-radius:50%;background:var(--zl-lavender,#c4a8ff);box-shadow:0 0 0 4px rgba(196,168,255,.12)}
.hm-updated{color:var(--zl-muted,#a1a1aa);font-size:12px}
.hm-main{display:flex;align-items:center;gap:14px;margin:24px 0 20px}
.hm-main>div{min-width:0;flex:1}
.hm-monogram{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border:1px solid rgba(155,81,255,.4);border-radius:12px;background:rgba(155,81,255,.12);color:var(--zl-lavender,#c4a8ff);font:500 14px 'Geist Mono',monospace}
.hm-main h3{margin:0;color:var(--paper,#f2ecdf);font:500 24px/1.1 Fraunces,Georgia,serif;letter-spacing:-.02em}
.hm-main p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:6px 0 0;color:var(--zl-muted,#a1a1aa);font-size:12px;line-height:1.45}
.hm-arrow{color:var(--zl-lavender,#c4a8ff);font-size:18px}
.hm-position{color:var(--zl-muted,#a1a1aa);font-size:12px}
.hm-position strong{margin-left:7px;color:#fff;font-weight:600}
.hm-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:13px}
.hm-context span,.hm-next span:not(.hm-cta){display:block;color:var(--zl-dim,#71717a);font-size:12px}
.hm-context strong{display:block;margin-top:4px;color:var(--zl-muted,#a1a1aa);font-size:12px;font-weight:500;line-height:1.4}
.hm-context .has-risk strong{color:#f0c98a}
.hm-next{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:17px;padding:13px 0 2px;border-top:1px solid var(--zl-border,rgba(255,255,255,.08))}
.hm-next strong{display:block;margin-top:4px;color:#fff;font-size:14px;font-weight:500;line-height:1.35}
.hm-cta{color:var(--zl-lavender,#c4a8ff);font-size:12px;font-weight:600;white-space:nowrap}
@media(max-width:760px){.hm-grid{grid-template-columns:1fr}.hm-context{grid-template-columns:1fr}}

/* Home as a dashboard: wide rows and two column rows, not one long column */
@media(min-width:1180px){
  body.has-zl-shell .home-global-root{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:stretch}
  body.has-zl-shell .home-global-root .home-brief-grid{display:contents}
  body.has-zl-shell .home-global-root .home-expansion-thesis{grid-column:1/-1;grid-row:1}
  body.has-zl-shell .home-global-root .home-next-move{grid-column:1;grid-row:2}
  body.has-zl-shell .home-global-root .home-latest-intel{grid-column:2;grid-row:2;align-self:start}
  body.has-zl-shell .home-global-root .home-market-focus{grid-column:1/-1;grid-row:3}
  body.has-zl-shell .home-global-root .home-latest-intel :is(#latestIntelList,.home-intel-list){grid-template-columns:1fr}
  body.has-zl-shell .home-global-root .home-latest-intel .home-intel-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}
  body.has-zl-shell .home-global-root .home-latest-intel .home-intel-row>.home-intel-meta{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
}

/* Cards that open another screen share the Home market card look (hm-card) */
.zl-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
@media(max-width:760px){.zl-card-grid{grid-template-columns:1fr}}

/* ── Workspace page template, 2026-11-17 ────────────────────────────────
   Every primary area opens with the same quiet hierarchy. The content, not
   the title treatment, distinguishes Home, Discover, Network, Pipeline and
   Reports. Page-specific styles above may shape their bodies, but never the
   opening rhythm. */
body.has-zl-shell :is(.zl-page-head,.screen-heading,.mo-head){
  min-height:0!important;
  align-items:flex-end;
  margin:0 0 28px!important;
  padding:26px 0 27px!important;
  border-bottom:1px solid rgba(220,225,245,.09)!important;
  background:none!important;
}
body.has-zl-shell :is(.zl-page-head,.screen-heading) > :first-child{max-width:780px}
body.has-zl-shell .mo-head-copy{max-width:780px}
body.has-zl-shell :is(.zl-page-head,.screen-heading) :is(.ey,.zl-eyebrow,.screen-context),
body.has-zl-shell .mo-head-copy .screen-context{
  margin:0 0 9px!important;
  color:var(--desk-lilac)!important;
  font:600 12px/1.35 var(--mono,'Geist Mono',ui-monospace,monospace)!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
}
body.has-zl-shell :is(.zl-page-head,.screen-heading) h1,
body.has-zl-shell .mo-head-copy h1{
  max-width:19ch;
  color:var(--desk-heading)!important;
  font-family:'Geist',var(--sans),system-ui,sans-serif!important;
  font-size:clamp(38px,4vw,56px)!important;
  font-weight:650!important;
  line-height:1.03!important;
  letter-spacing:-.052em!important;
}
body.has-zl-shell :is(.zl-page-head,.screen-heading) :is(.intro,.zl-sub,#screenDescription),
body.has-zl-shell .mo-head-copy .mo-head-description{
  max-width:66ch!important;
  margin:12px 0 0!important;
  color:var(--desk-body)!important;
  font-size:14px!important;
  line-height:1.55!important;
}
/* Home is a daily desk. Its greeting can be warmer, but not a billboard. */
body.has-zl-shell[data-page="deals"] .page-head .pipeline-actions{margin:0 0 2px}

@media(max-width:720px){
  body.has-zl-shell :is(.zl-page-head,.screen-heading,.mo-head){display:block;margin-bottom:22px!important;padding:22px 0!important}
  body.has-zl-shell :is(.zl-page-head,.screen-heading) h1,body.has-zl-shell .mo-head-copy h1{font-size:clamp(34px,10vw,44px)!important}
  body.has-zl-shell :is(.zl-page-head,.screen-heading) > :not(:first-child){margin-top:16px}
  body.has-zl-shell .mo-head{display:flex;flex-wrap:wrap;gap:12px;padding:22px 0!important}
  body.has-zl-shell .mo-head-copy{flex:1 1 220px}
  body.has-zl-shell .mo-head-flag{margin:0!important}
}
.pl-card{cursor:pointer;min-height:0;gap:2px}
.pl-card .hm-main{margin:18px 0 14px}
.pl-card .hm-main h3 a{color:inherit;text-decoration:none}
.pl-card .hm-next strong{font-size:14px}
.pl-card .pl-state{margin:0 0 6px}
.pl-card .pl-card-source{margin-top:10px;font-size:12px}
.pl-card .pl-actions{margin-top:14px;flex-wrap:wrap}

/* Page background: the same soft purple glow as the sign in screen */
body.has-zl-shell{
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%,rgba(155,81,255,.14) 0%,transparent 70%),
    radial-gradient(ellipse 50% 45% at 80% 85%,rgba(155,81,255,.10) 0%,transparent 70%),
    #080809;
  background-attachment:fixed;
}
/* Clickable cards: the purple gradient */
.hm-card{
  border-color:rgba(196,168,255,.28);
  background:linear-gradient(135deg,rgba(155,81,255,.20) 0%,rgba(46,38,72,.55) 45%,rgba(18,16,28,.92) 100%);
  box-shadow:0 14px 40px rgba(60,25,120,.18);
  transition:border-color .18s,box-shadow .18s,transform .18s;
}
.hm-card:hover,.hm-card:focus-visible{
  border-color:rgba(196,168,255,.6);
  background:linear-gradient(135deg,rgba(155,81,255,.28) 0%,rgba(56,46,88,.6) 45%,rgba(20,18,32,.92) 100%);
  box-shadow:0 18px 48px rgba(100,43,157,.28);transform:translateY(-1px);
}

/* ── Home: Research completed, decision first (2026-11-20) ───────────────
   One card answers what ZionLink found, why it matters, what it already
   did and what the founder must decide. Placed above everything else. */
body.has-zl-shell .home-research-work{margin-bottom:18px}
.hrw-head h2{margin:4px 0 0;font-family:var(--zl-serif,Georgia,serif);font-weight:500;font-size:24px;line-height:1.2;color:#fff}
.hrw-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;margin-top:18px}
.hrw-label{margin:0 0 6px;color:var(--zl-dim,#71717a);font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.hrw-found h3{margin:0 0 14px;color:#fff;font-size:18px;font-weight:600;line-height:1.3}
.hrw-found h3 small{margin-left:6px;color:var(--zl-muted,#a1a1aa);font-size:12px;font-weight:500}
.hrw-found p{margin:0 0 12px;color:var(--zl-muted,#a1a1aa);font-size:14px;line-height:1.5}
.hrw-found.is-empty h3{font-size:18px}
.hrw-proof{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.hrw-proof a{color:var(--zl-lavender,#c4a8ff);font-size:12px}
.hrw-pill{display:inline-block;padding:3px 9px;border-radius:999px;font-size:12px;border:1px solid var(--zl-border,rgba(255,255,255,.1))}
.hrw-pill.is-ready{color:var(--green,#4ade80);border-color:rgba(74,222,128,.3)}
.hrw-pill.is-partial{color:#f0c98a;border-color:rgba(240,201,138,.3)}
.hrw-cta{display:inline-block;margin-top:4px;color:var(--zl-lavender,#c4a8ff);font-size:14px;font-weight:600;text-decoration:none}
.hrw-done{list-style:none;margin:0 0 12px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.hrw-done li{display:flex;align-items:baseline;gap:8px}
.hrw-done strong{color:#fff;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
.hrw-done span{color:var(--zl-muted,#a1a1aa);font-size:12px;line-height:1.35}
.hrw-quiet{margin:0 0 12px;color:var(--zl-dim,#71717a);font-size:12px;line-height:1.45}
.hrw-decide{display:flex;flex-direction:column;gap:3px;margin:4px 0 0;padding:12px 14px;border-radius:12px;border:1px solid var(--bd-hi,rgba(155,81,255,.22));background:var(--pu-dim,rgba(155,81,255,.1));text-decoration:none}
.hrw-decide strong{color:#fff;font-size:14px;font-weight:600}
.hrw-decide span{color:var(--zl-muted,#a1a1aa);font-size:12px}
.hrw-decide.is-clear{border-color:var(--zl-border,rgba(255,255,255,.08));background:none}
@media(max-width:760px){.hrw-grid{grid-template-columns:1fr}.hrw-done{grid-template-columns:1fr}}
@media(min-width:1180px){
  body.has-zl-shell .home-global-root .home-research-work{grid-column:1/-1;grid-row:1;margin-bottom:0}
  body.has-zl-shell .home-global-root .home-expansion-thesis{grid-row:2}
  body.has-zl-shell .home-global-root .home-next-move{grid-row:3}
  body.has-zl-shell .home-global-root .home-latest-intel{grid-row:3}
  body.has-zl-shell .home-global-root .home-market-focus{grid-row:4}
}

/* Home: data freshness and empty explanations (home-freshness.js) */
body.has-zl-shell .home-freshness{display:grid;gap:6px;margin-top:12px}
body.has-zl-shell .home-freshness-line{display:flex;gap:10px;align-items:baseline;margin:0;font-size:12px;line-height:1.5;color:#a1a1aa}
body.has-zl-shell .home-freshness-line b{flex:none;font-weight:600;color:#c4a8ff}
body.has-zl-shell .home-freshness-line.is-stale b{color:#f87171}
body.has-zl-shell .home-freshness-line.is-ok b{color:#4ade80}
body.has-zl-shell .home-freshness-line.is-stale,
body.has-zl-shell .home-freshness-line.is-empty{max-width:68ch}

/* Home task links: an older row rule turned the link into a grid and laid the arrow over its label. */
body.has-zl-shell .home-task-item a.home-task-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:0}
body.has-zl-shell .home-task-item:not(.is-lead) a.home-task-action{padding:0;background:transparent}
/* Home market updates: the headline gets its own line and wraps, so it can be read. */
body.has-zl-shell #homeLatestIntel .zlf-intel-list a{grid-template-columns:auto minmax(0,1fr);gap:4px 12px}
body.has-zl-shell #homeLatestIntel .zlf-intel-list small{justify-self:end}
body.has-zl-shell #homeLatestIntel .zlf-intel-list strong{grid-row:2;grid-column:1/-1;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4}

/* Night workspace: the landing page canvas on every tab. Tabs keep their own dark base colours. */
body[data-look=night]{--sidebar-width:208px}
@media(min-width:901px){body[data-look=night] .workspace-sidebar{padding:16px 10px 12px!important}}
body[data-look=night]:not([data-page=today]){--serif:'Fraunces',Georgia,serif;color-scheme:dark;color:#f6f2ea;
 --bg:#0c0716;--s1:rgba(255,255,255,.035);--s2:rgba(255,255,255,.055);--zl-s1:rgba(255,255,255,.035);--zl-s2:rgba(255,255,255,.055);--surface:rgba(255,255,255,.035);--surface-raised:#1b1230;
 --line:rgba(246,242,234,.14);--bd:rgba(246,242,234,.14);--zl-border:rgba(246,242,234,.14);--kpi-border:rgba(246,242,234,.14);--desk-rule:rgba(246,242,234,.14)}
body[data-look=night]:not([data-page=today])>main,body[data-look=night]:not([data-page=today]) .workspace-main{min-height:calc(100vh - 16px);color:#f6f2ea;background:transparent!important}
@media(min-width:901px){body[data-look=night]:not([data-page=today])>main,body[data-look=night]:not([data-page=today]) .workspace-main{margin-top:8px!important;margin-bottom:8px!important;border-radius:22px;padding-top:14px!important}}
body[data-look=night]:not([data-page=today]) main :is(.zl-page-head,.links-hero-copy):not(#_){margin:0 0 18px!important;padding:16px 0 20px!important;border:0!important;border-bottom:1px solid rgba(246,242,234,.14)!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
body[data-look=night]:not([data-page=today]) main :is(.zl-page-head,.links-hero-copy) h1:not(#_){font:300 clamp(30px,3vw,42px)/1.12 'Fraunces',Georgia,serif!important;color:#f5f1e9!important;margin:2px 0 4px!important}
body[data-look=night]:not([data-page=today]) main :is(.zl-page-head,.links-hero-copy) :is(p,span,small):not(#_){color:#ddd4ee!important}
body[data-look=night]:not([data-page=today]) main .zl-page-head::before,body[data-look=night]:not([data-page=today]) main .zl-page-head::after{display:none!important}
body[data-look=night]:not([data-page=today]) main .zlf-chip[data-state=decision]{color:#cdb4ff!important}
body[data-look=night]:not([data-page=today]) main .zl-page-head .links-hero-copy:not(#_){background:none!important;padding:0!important;margin:0!important;border-radius:0!important}
body[data-look=night]:not([data-page=today]) main :is(input:not([type=checkbox]):not([type=radio]),select,textarea):not(#_){border:1px solid rgba(246,242,234,0.18)!important;background-color:rgba(255,255,255,0.05)!important}
body[data-look=night] .stepper li button:not(#_){background:rgba(245,241,233,.08)!important;border:1px solid rgba(205,180,255,.3)!important;color:#ddd4ee!important;opacity:1!important}
body[data-look=night] .stepper li.done button:not(#_){background:rgba(255,255,255,0.05)!important;color:#f6f2ea!important}
body[data-look=night] .stepper li.now button:not(#_){background:#7849c8!important;border-color:#cdb4ff!important;color:#fff!important}
body[data-look=night] .stepper li button i:not(#_){color:inherit!important}
body[data-look=night] .stepper li.done button i:not(#_){color:#fff!important}
body[data-look=night] main :is(.zl-page-head,.links-hero-copy) :is(.zl-eyebrow,.ey):not(#_){color:#cdb4ff!important}
@media(max-width:900px){body[data-look=night]:not(.nav-open) .workspace-sidebar:not(#_){box-shadow:none!important}}
/* Glass cards, the same surface as Home. */
body[data-look=night]:not([data-page=today]) main :is(.pl-top,.pl-card,.pl-row,.nb-decision,.nw-job,.rq-card,.mw-brief,.mw-row,.maturity-panel,.rep-tabs,[role=tablist].zl-tabs):not(#_){background:rgba(255,255,255,0.033)!important;border:1px solid rgba(246,242,234,0.123)!important;border-radius:22px!important;box-shadow:0 18px 44px -26px rgba(40,22,86,.5)!important;-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3)}
body[data-look=night]:not([data-page=today]) main .nb-decision:not(#_){border-left:3px solid #7849c8!important}
@media(prefers-reduced-transparency:reduce){body[data-look=night]:not([data-page=today]) main :is(.pl-top,.pl-card,.pl-row,.nb-decision,.nw-job,.rq-card,.mw-brief,.mw-row,.maturity-panel):not(#_){background:rgba(255,255,255,0.05)!important;-webkit-backdrop-filter:none;backdrop-filter:none}}

body[data-look=night] .sidebar-utilities-label:not(#_){color:#aea4c1!important}
body[data-look=night] .mw-lanes:not(#_){background:#0c0716!important}
body[data-look=night].zl-has-talk .zl-talk-trigger:not(#_){bottom:92px!important}
body[data-look=night] a.sk-btn.primary:not(#_){color:#fff!important;background:#7849c8!important}
body[data-look=night] .zlf-step.is-founder .zlf-step-dot:not(#_){color:#fff!important}
@media(max-width:480px){body[data-look=night] .pl-top li span:not(#_){font-size:10px!important;letter-spacing:0!important}}
/* Soft workspace (2026-11-28): the brand look on every tab except Home. Night plum header and menu, lilac working surface.
   Tokens are set here. zl-soft-theme.js converts the remaining fixed dark colours in the tab stylesheets. */
body[data-look=soft]{--sidebar-width:208px}
@media(min-width:901px){body[data-look=soft] .workspace-sidebar{padding:16px 10px 12px!important}}
body[data-look=soft]:not([data-page=today]){
 --text:#201036;--w:#201036;--paper:#201036;--zl-white:#201036;--zl-paper:#201036;
 --muted:#4f3f6b;--g1:#4f3f6b;--zl-muted:#4f3f6b;--dim:#665787;--g2:#665787;--g3:#665787;--zl-dim:#665787;--zl-dimmer:#d8caee;
 --line:rgba(32,16,54,.12);--bd:rgba(32,16,54,.12);--zl-border:rgba(32,16,54,.12);--kpi-border:rgba(32,16,54,.12);--zlf-rule:rgba(32,16,54,.12);--desk-rule:rgba(32,16,54,.12);
 --surface:#fbf9ff;--s1:#fbf9ff;--zl-s1:#fbf9ff;--surface-raised:#ffffff;--s2:#efe7fb;--zl-s2:#efe7fb;--ink:#f4eefc;--bg:#f4eefc;
 --lavender:#5b2fa8;--lav:#5b2fa8;--zl-lavender:#5b2fa8;--kpi-accent:#5b2fa8;--desk-lilac:#5b2fa8;--pu:#6a3db8;--purple:#6a3db8;--zl-purple:#6a3db8;
 --line-purple:rgba(106,61,184,.3);--bd-hi:rgba(106,61,184,.3);--zl-border-hi:rgba(106,61,184,.35);
 --green:#1c7a43;--red:#a3343d;--gold:#7a5a10;
 --desk-heading:#201036;--desk-body:#4f3f6b;--zlf-head:#201036;--zh-ink:#201036;--zh-text:#201036;--zh-soft:#4f3f6b;--zh-line:rgba(32,16,54,.12);
 --a-w:#201036;--a-g2:#665787;--a-bd:rgba(32,16,54,.12);
 --serif:'Fraunces',Georgia,serif;
 color-scheme:light;color:#201036;background:#0c0616!important;
}
body[data-look=soft]:not([data-page=today]) :is(.workspace-sidebar,.mobile-menu,.zl-talk-drawer,.zl-talk-toast,.sidebar-assistant){--text:#edeef3;--w:#edeef3;--paper:#edeef3;--zl-white:#fff;--zl-paper:#edeef3;--muted:#9998a3;--g1:#a1a1aa;--zl-muted:#9998a3;--dim:#9497a7;--g2:#9497a7;--g3:#9497a7;--zl-dim:#9497a7;--line:#2c2e38;--bd:#2c2e38;--surface:#17181d;--s1:#17181d;--s2:#1c1e24;--surface-raised:#1c1e24;--lavender:#c5aff0;--lav:#c5aff0;--zl-lavender:#c5aff0;color-scheme:dark;color:#edeef3}
body[data-look=soft]:not([data-page=today])>main,body[data-look=soft]:not([data-page=today]) .workspace-main{min-height:calc(100vh - 16px);color:#201036;background:radial-gradient(900px 520px at 90% 6%,rgba(120,73,200,.30),transparent 70%),radial-gradient(760px 520px at 0 38%,rgba(205,180,255,.55),transparent 72%),radial-gradient(900px 620px at 70% 78%,rgba(205,180,255,.35),transparent 72%),#f4eefc!important}
@media(min-width:901px){body[data-look=soft]:not([data-page=today])>main,body[data-look=soft]:not([data-page=today]) .workspace-main{margin-top:8px!important;margin-bottom:8px!important;border-radius:22px;padding-top:14px!important}}
body[data-look=soft]:not([data-page=today]) main :is(.zl-page-head,.links-hero-copy):not(#_){margin:0 0 12px!important;padding:18px 22px!important;border:0!important;border-radius:18px!important;box-shadow:none!important;
 background:radial-gradient(420px 220px at 92% 120%,rgba(139,92,220,.62),transparent 70%),linear-gradient(120deg,#0c0616 25%,#2a1650)!important}
body[data-look=soft]:not([data-page=today]) main :is(.zl-page-head,.links-hero-copy) h1:not(#_){font:300 clamp(26px,2.4vw,34px)/1.15 'Fraunces',Georgia,serif!important;color:#f4eefc!important;margin:2px 0 4px!important}
body[data-look=soft]:not([data-page=today]) main :is(.zl-page-head,.links-hero-copy) :is(p,span,small):not(#_){color:#ddd4ee!important}
body[data-look=soft]:not([data-page=today]) main .zl-page-head::before,body[data-look=soft]:not([data-page=today]) main .zl-page-head::after{display:none!important}
body[data-look=soft]:not([data-page=today]) main{--zlf-moving:#201036;--zlf-head:#201036;--zlf-body:#4f3f6b;--zlf-researching:#6a3db8;--zlf-won:#1c7a43;--zlf-lost:#a3343d;--zlf-closed:#665787;--zlf-setup:#665787}
body[data-look=soft]:not([data-page=today]) main .zlf-chip[data-state=decision]{color:#5b2fa8!important}
body[data-look=soft]:not([data-page=today]) main .zl-page-head .links-hero-copy:not(#_){background:none!important;padding:0!important;margin:0!important;border-radius:0!important}
body[data-look=soft]:not([data-page=today]) main :is(input:not([type=checkbox]):not([type=radio]),select,textarea):not(#_){border:1px solid rgba(32,16,54,.18)!important;background-color:#ffffff!important}
body[data-look=soft] .stepper li button:not(#_){background:rgba(244,238,252,.08)!important;border:1px solid rgba(205,180,255,.3)!important;color:#ddd4ee!important;opacity:1!important}
body[data-look=soft] .stepper li.done button:not(#_){background:#f4eefc!important;color:#201036!important}
body[data-look=soft] .stepper li.now button:not(#_){background:#7849c8!important;border-color:#cdb4ff!important;color:#fff!important}
body[data-look=soft] .stepper li button i:not(#_){color:inherit!important}
body[data-look=soft] .stepper li.done button i:not(#_){color:#fff!important}
body[data-look=soft] main :is(.zl-page-head,.links-hero-copy) :is(.zl-eyebrow,.ey):not(#_){color:#cdb4ff!important}
@media(max-width:900px){body[data-look=soft]:not(.nav-open) .workspace-sidebar:not(#_){box-shadow:none!important}}
/* Glass cards, the same surface as Home. */
body[data-look=soft]:not([data-page=today]) main :is(.pl-top,.pl-card,.pl-row,.nb-decision,.nw-job,.rq-card,.mw-brief,.mw-row,.maturity-panel,.rep-tabs,[role=tablist].zl-tabs):not(#_){background:rgba(251,249,255,.66)!important;border:1px solid rgba(255,252,246,.95)!important;border-radius:22px!important;box-shadow:0 18px 44px -26px rgba(40,22,86,.5)!important;-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3)}
body[data-look=soft]:not([data-page=today]) main .nb-decision:not(#_){border-left:3px solid #7849c8!important}
@media(prefers-reduced-transparency:reduce){body[data-look=soft]:not([data-page=today]) main :is(.pl-top,.pl-card,.pl-row,.nb-decision,.nw-job,.rq-card,.mw-brief,.mw-row,.maturity-panel):not(#_){background:#fbf9ff!important;-webkit-backdrop-filter:none;backdrop-filter:none}}
