/* ============================================================
   ALDERAN AM-OS · v0.2 · 2026-05-20
   JLL Asset Beacon layout pattern + GCCP / Comète brand system.

   Layout adopted from JLL: header → breadcrumb/title → tab bar →
   body (hero left / KPI row + chart grid right).
   Brand applied: Fraunces · Inter · JetBrains Mono · navy / cream /
   vellum · cosmic accents reserved for hero treatments.
   No gold for GCCP corporate.

   Reference: am-os/reference/jll-castle-king-overview.png
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,ital@9..144,300..600,0;9..144,300..600,1&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  /* Brand */
  --navy:       #0E1B33;
  --navy-deep:  #080F1F;
  --navy-soft:  #1A2547;
  --slate:      #4A4F5C;
  --blue-grey:  #3E4D77;
  --blue-grey-soft: #A8B4D6;
  --cream:      #F4EFE6;
  --vellum:     #E6DDC9;
  --bg:         #FAF8F2;
  --surface:    #FFFFFF;
  --border:     #E5DFD0;
  --border-soft:#EFEADF;
  --rule-cool:  #E4E6EB;
  --text:       #1A1A1A;
  --text-muted: #5C5A52;
  --text-soft:  #8A8478;
  --good: #2D6A4E;
  --warn: #B8842F;
  --bad:  #9C3030;

  /* Cosmic — lifted EXACTLY from cover-v2-comet-tail.html + design-templates.html */
  --cosmic-nebula:    #B8825A;   /* warm nebula sienna · per yesterday's hub */
  --cosmic-warm:      #D4A77A;   /* lighter warm tan */
  --cosmic-teal:      #5B9BAA;   /* cosmic teal */
  --cosmic-teal-deep: #3E7888;   /* deeper teal */
  --comet-ion:        #A8D6E5;   /* ion tail · cool blue */
  --comet-dust:       #E8B584;   /* dust tail · warm cream */
  --star:             #F8F4E8;   /* star body */
  /* Legacy aliases (used elsewhere in this stylesheet) */
  --nebula-cyan: var(--cosmic-teal);
  --nebula-warm: var(--cosmic-nebula);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-sans:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Shell */
  --w:           1320px;
  --header-h:    52px;
  --title-h:     76px;
  --tabs-h:      44px;
  --pad-x:       40px;
  --col-gap:     20px;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  font-feature-settings: 'ss01','cv11','tnum';
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: var(--w);
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--surface);
}
a{ color: inherit; text-decoration: none; }

/* ============================================================
   AI-DRAFT pill + verification badges
   ============================================================ */
.ai-draft{
  position: fixed; top: 12px; right: 24px; z-index: 200;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--vellum); color: var(--navy);
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 11px 5px; border-radius: 2px;
  box-shadow: 0 1px 0 rgba(8,15,31,0.18), 0 4px 14px rgba(8,15,31,0.10);
}
.ai-draft::before{
  content:""; width:6px; height:6px; border-radius:50%;
  background: var(--warn); display:inline-block;
}
.vb{
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 2px 6px 1px; border-radius: 2px;
  vertical-align: middle; line-height: 1.2; white-space: nowrap;
}
.vb::before{ content:""; width:5px; height:5px; border-radius:50%; }
.vb.verified{ background: rgba(45,106,78,0.10); color: var(--good); border: 1px solid rgba(45,106,78,0.30); }
.vb.verified::before{ background: var(--good); }
.vb.draft{ background: rgba(184,132,47,0.10); color: var(--warn); border: 1px solid rgba(184,132,47,0.32); }
.vb.draft::before{ background: var(--warn); }
.vb.gap{ background: rgba(156,48,48,0.08); color: var(--bad); border: 1px solid rgba(156,48,48,0.30); }
.vb.gap::before{ background: var(--bad); }
.vb.partial{ background: rgba(62,77,119,0.08); color: var(--blue-grey); border: 1px solid rgba(62,77,119,0.30); }
.vb.partial::before{ background: var(--blue-grey); }

/* ============================================================
   HEADER — JLL pattern: logo · search center · user right
   ============================================================ */
.header{
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  grid-template-columns: 280px 1fr 200px;
  align-items: center;
  padding: 0 var(--pad-x);
  position: sticky; top: 0; z-index: 100;
}
.header__brand{ display: flex; align-items: center; gap: 12px; }
.header__brand .logo{
  width: 26px; height: 26px;
  background: var(--navy); color: var(--cream);
  font-family: var(--font-display);
  font-weight: 500; font-size: 14px;
  font-style: italic;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  font-variation-settings: "opsz" 24;
}
.header__brand .wordmark{
  font-family: var(--font-display);
  font-weight: 500; font-size: 14px;
  color: var(--navy);
  line-height: 1.15;
  font-variation-settings: "opsz" 24;
}
.header__brand .wordmark em{
  font-style: italic; color: var(--blue-grey); font-weight: 400;
}
.header__brand .pipe{
  display: inline-block; width: 1px; height: 18px;
  background: var(--border); margin: 0 4px;
}
.header__brand .product{
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--text-soft);
}

.header__search{
  display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 5px 12px;
  justify-self: stretch;
  margin: 0 32px;
}
.header__search::before{
  content: "⌕";
  font-size: 13px; color: var(--text-soft); font-weight: 500;
}
.header__search input{
  border: 0; background: transparent; outline: 0; flex: 1;
  font-family: var(--font-sans); font-size: 12.5px;
  color: var(--text);
  padding: 3px 0;
}
.header__search input::placeholder{ color: var(--text-soft); }
.header__search .kbd{
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--text-soft);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 2px;
}

.header__user{
  display: flex; align-items: center; gap: 14px;
  justify-self: end;
}
.header__user .view-toggle{
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 2px; overflow: hidden;
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.header__user .view-toggle button{
  border: 0; background: var(--surface); color: var(--text-muted);
  padding: 5px 10px; cursor: pointer; font: inherit; letter-spacing: inherit;
}
.header__user .view-toggle button.on{ background: var(--navy); color: var(--cream); }
.header__user .avatar{
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--blue-grey) 0%, var(--navy) 100%);
  color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  letter-spacing: 0.04em;
  font-variation-settings: "opsz" 18;
}

/* ============================================================
   TITLE STRIP — breadcrumb + portfolio name
   ============================================================ */
.title-strip{
  padding: 18px var(--pad-x) 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.crumb{
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.crumb a{ color: var(--blue-grey); }
.crumb .sep{ color: var(--text-soft); margin: 0 6px; opacity: 0.6; }
.crumb .here{ color: var(--navy); font-weight: 600; }
.title-strip h1{
  font-family: var(--font-display);
  font-weight: 400; font-size: 30px;
  line-height: 1.05; letter-spacing: -0.012em;
  color: var(--navy);
  font-variation-settings: "opsz" 60;
  margin: 0;
}
.title-strip h1 em{ font-style: italic; color: var(--blue-grey); font-weight: 300; }
.title-strip .stamp{
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-soft);
  text-align: right; line-height: 1.85;
}
.title-strip .stamp b{ color: var(--slate); font-weight: 700; }
.title-strip .stamp .live{ color: var(--good); }

/* ============================================================
   TAB BAR — JLL pattern: inline tabs with underline indicator
   ============================================================ */
.tabs{
  height: var(--tabs-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad-x);
  display: flex; align-items: end; gap: 0;
  position: sticky; top: var(--header-h); z-index: 90;
}
.tab{
  font-family: var(--font-sans);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  padding: 12px 18px 11px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}
.tab:hover{ color: var(--navy); }
.tab.active{
  color: var(--navy); font-weight: 600;
  border-bottom-color: var(--nebula-warm);
}
.tab .n{
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.10em; color: var(--text-soft);
  margin-right: 5px;
}
.tab.active .n{ color: var(--nebula-warm); }
.tab.more{
  margin-left: auto;
  color: var(--text-soft);
  display: inline-flex; align-items: center; gap: 4px;
}
.tab.more::after{ content: "▾"; font-size: 8px; margin-left: 2px; }

/* ============================================================
   BODY — JLL pattern: hero left + KPIs/charts right
   ============================================================ */
.body{
  padding: 24px var(--pad-x) 32px;
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: var(--col-gap);
  background: var(--bg);
}

/* HERO PANEL (left) — uses the actual Comet Tail v2 SVG + canvas starfield
   from cover-explorations/cover-v2-comet-tail.html · twin-tail comet
   (ion + dust) with coma + nucleus + cross-flare */
.hero{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.hero__visual{
  height: 280px;
  position: relative;
  overflow: hidden;
  /* Base sky · matches cover-v2 exactly */
  background:
    radial-gradient(ellipse 80% 60% at 75% 30%, #0E2440 0%, #061128 40%, var(--navy-deep) 85%);
  border-bottom: 1px solid var(--border);
}
/* Atmospheric nebula band — subtle, screen-blended (cover-v2 .atmosphere) */
.hero__visual .atmosphere{
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 30% 75%, rgba(91,155,170,.14) 0%, transparent 70%),
    radial-gradient(ellipse 60% 35% at 80% 20%, rgba(184,130,90,.10) 0%, transparent 70%);
  mix-blend-mode: screen;
}
/* SVG comet container (cover-v2 .comet) */
.hero__visual .comet-svg{
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero__visual .comet-svg svg{ width: 100%; height: 100%; display: block; }
.hero__visual .stamp{
  position: absolute; top: 16px; left: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(8,15,31,0.55);
  border: 1px solid rgba(244,239,230,0.22);
  padding: 5px 10px 4px;
  border-radius: 2px;
  color: rgba(244,239,230,0.92);
  font-family: var(--font-mono);
  font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase;
  z-index: 4;
}
.hero__visual .stamp::before{
  content:""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--good);
}
.hero__visual .motif{
  position: absolute; bottom: 20px; left: 22px;
  z-index: 4;
  color: var(--cream);
}
.hero__visual .motif .word{
  font-family: var(--font-display);
  font-weight: 400; font-style: italic;
  font-size: 28px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgba(244,239,230,0.95);
  font-variation-settings: "opsz" 60;
}
.hero__visual .motif .sub{
  font-family: var(--font-mono);
  font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(244,239,230,0.62);
  margin-top: 6px;
}

.hero__body{ padding: 22px 24px 16px; flex: 1; }
.hero__name{
  font-family: var(--font-display);
  font-weight: 400; font-size: 22px;
  line-height: 1.1; letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0 0 8px;
  font-variation-settings: "opsz" 48;
}
.hero__name em{ font-style: italic; color: var(--blue-grey); font-weight: 300; }
.hero__pill-row{ display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill{
  display: inline-block;
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 2px 7px 1px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--slate);
}
.pill.active{ background: rgba(45,106,78,0.08); color: var(--good); border-color: rgba(45,106,78,0.30); }
.pill.cmt{ background: rgba(62,77,119,0.06); color: var(--blue-grey); border-color: rgba(62,77,119,0.25); }
.pill.avm{ background: rgba(201,120,67,0.08); color: var(--nebula-warm); border-color: rgba(201,120,67,0.30); }

.hero__desc{
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.hero__desc b{ color: var(--navy); font-weight: 600; }
.hero__meta{
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.hero__meta .row{ display: flex; justify-content: space-between; }
.hero__meta .l{ color: var(--text-soft); }
.hero__meta .v{ color: var(--navy); font-weight: 600; }

/* ============================================================
   RIGHT COLUMN — KPI row + chart grid
   ============================================================ */
.right{ display: flex; flex-direction: column; gap: var(--col-gap); }

/* 5-KPI row — JLL pattern: big numbers, tiny labels */
.kpi5{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 22px 24px 20px;
}
.kpi5 .k{
  padding: 0 18px;
  border-right: 1px solid var(--border-soft);
  position: relative;
}
.kpi5 .k:first-child{ padding-left: 0; }
.kpi5 .k:last-child{ border-right: 0; padding-right: 0; }
.kpi5 .k .v{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.015em;
  font-feature-settings: 'tnum';
  font-variation-settings: "opsz" 72;
  margin-bottom: 4px;
}
.kpi5 .k .v em{ font-style: italic; color: var(--blue-grey); font-weight: 300; font-size: 22px; }
.kpi5 .k .v .u{
  font-family: var(--font-mono); font-style: normal; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-soft); font-weight: 500; margin-left: 4px;
}
.kpi5 .k .l{
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--text-soft);
}
.kpi5 .k .badge{ position: absolute; top: 0; right: 12px; }
.kpi5 .k:last-child .badge{ right: 0; }

/* 2x2 chart grid */
.charts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
}
.chart{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex; flex-direction: column;
}
.chart__head{
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.chart__title{
  font-family: var(--font-display);
  font-weight: 500; font-size: 14.5px;
  color: var(--navy);
  letter-spacing: -0.003em;
  font-variation-settings: "opsz" 24;
  margin: 0;
}
.chart__title em{ font-style: italic; color: var(--blue-grey); font-weight: 400; }
.chart__m{
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-soft);
  text-align: right;
}
.chart__body{ padding: 14px 18px 16px; flex: 1; }
.chart__foot{
  padding: 7px 18px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

/* Expiry profile bar chart */
.bars{ }
.bars__svg{ width: 100%; height: 180px; display: block; }
.bars__legend{
  display: flex; gap: 14px; margin-top: 10px;
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-soft);
}
.bars__legend span{ display: inline-flex; align-items: center; gap: 5px; }
.bars__legend i{ width: 12px; height: 8px; }
.bars__legend i.now{ background: var(--blue-grey); }
.bars__legend i.bud{ background: var(--blue-grey-soft); }
.bars__legend i.lvl{ background: var(--warn); }

/* Horizontal sector bars */
.sec{ display: flex; flex-direction: column; gap: 9px; padding: 4px 0 2px; }
.sec__row{
  display: grid;
  grid-template-columns: 110px 1fr 56px;
  gap: 10px;
  align-items: center;
}
.sec__lbl{
  font-size: 11px; font-weight: 500; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sec__lbl .sub{
  font-family: var(--font-mono);
  font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-left: 4px;
}
.sec__bar{
  height: 14px; background: var(--bg);
  border-radius: 1px; position: relative; border: 1px solid var(--border-soft);
}
.sec__bar i{ display: block; height: 100%; }
.sec__bar i.office{ background: var(--blue-grey); }
.sec__bar i.retail{ background: var(--nebula-warm); }
.sec__bar i.hotel{ background: var(--blue-grey-soft); }
.sec__bar i.mu{ background: var(--vellum); border-right: 1px solid var(--border); }
.sec__bar i.fb{ background: var(--nebula-cyan); }
.sec__bar i.log{ background: var(--slate); }
.sec__val{
  font-family: var(--font-mono); font-size: 10px;
  text-align: right; font-weight: 600; color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* Rent roll trend (dual bar) */
.dual{ }
.dual__svg{ width: 100%; height: 180px; display: block; }

/* Geo map */
.geo{ position: relative; }
.geo__svg{ width: 100%; height: 220px; display: block; }
.geo__legend{
  display: flex; gap: 16px; margin-top: 6px;
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-soft);
}
.geo__legend span{ display: inline-flex; align-items: center; gap: 5px; }
.geo__legend i{ width: 8px; height: 8px; border-radius: 50%; }
.geo__legend i.uk{ background: var(--blue-grey); }
.geo__legend i.ie{ background: var(--nebula-warm); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot{
  background: var(--navy-deep);
  color: rgba(244,239,230,0.55);
  padding: 22px var(--pad-x);
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.foot .l{ text-align: left; color: var(--cream); }
.foot .l em{ font-style: normal; color: rgba(244,239,230,0.50); margin-left: 8px; }
.foot .c{ text-align: center; color: rgba(244,239,230,0.50); }
.foot .r{ text-align: right; color: rgba(244,239,230,0.50); }
.foot .r b{ color: var(--cream); font-weight: 600; }

/* ============================================================
   INTERNAL / LP view stripping
   ============================================================ */
.internal-only{ display: block; }
.lp-only{ display: none; }
[data-view="lp"] .internal-only{ display: none; }
[data-view="lp"] .lp-only{ display: block; }

/* ============================================================
   v0.5 ADDITIONS — patterns lifted from design-templates.html
   ============================================================ */

/* Disputed verification badge · per yesterday's spec:
   "disputed = ink rule + small caps REVIEW · never a green check"     */
.vb.disputed{
  background: transparent;
  color: var(--navy);
  border: 0;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  padding: 1px 8px 0;
  font-feature-settings: 'smcp', 'c2sc';
  letter-spacing: 0.20em;
  font-size: 8.5px;
  border-radius: 0;
}
.vb.disputed::before{ display: none; }

/* Eyebrow horizontal rule · per cover-v2 chrome pattern
   Apply to existing eyebrow-style labels (module-h .num + card__h)
   by adding the .eb-rule class                                        */
.eb-rule{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eb-rule::before{
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cosmic-warm);
  opacity: 0.65;
}

/* ============================================================
   NEBULA BACKDROP · the workhorse cosmic atmosphere
   Lifted from design-templates.html · two SVG turbulence layers
   (cyan-teal left + warm sienna right) + canvas starfield
   ============================================================ */
.nebula-backdrop{
  position: relative;
  background: radial-gradient(ellipse at 50% 45%, #0A1530 0%, var(--navy-deep) 75%);
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}
.nebula-backdrop .neb{
  position: absolute;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: contrast(1.08) saturate(1.15);
}
.nebula-backdrop .neb svg{ width: 100%; height: 100%; display: block; }
.nebula-backdrop .neb-l{
  left: -20%; top: 8%;
  width: 82%; height: 105%;
  opacity: 0.88;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 52% 52%, black 0%, rgba(0,0,0,0.85) 45%, transparent 82%);
  mask-image: radial-gradient(ellipse 62% 58% at 52% 52%, black 0%, rgba(0,0,0,0.85) 45%, transparent 82%);
}
.nebula-backdrop .neb-r{
  right: -15%; top: -25%;
  width: 72%; height: 95%;
  opacity: 0.83;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 55% 52%, black 0%, rgba(0,0,0,0.85) 43%, transparent 80%);
  mask-image: radial-gradient(ellipse 62% 58% at 55% 52%, black 0%, rgba(0,0,0,0.85) 43%, transparent 80%);
}
.nebula-backdrop > canvas.stars{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
.nebula-backdrop::before{
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 38% 48% at 15% 75%, rgba(91,155,170,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 32% 42% at 85% 25%, rgba(184,130,90,0.06) 0%, transparent 70%);
  z-index: 1;
}
.nebula-backdrop > .content,
.nebula-backdrop > .modal__head-inner{
  position: relative; z-index: 3;
}

/* ============================================================
   MODAL HEAD · upgraded to nebula-backdrop
   ============================================================ */
.modal__head.nebula-backdrop{
  padding: 16px 24px;
  background: radial-gradient(ellipse at 50% 45%, #0A1530 0%, var(--navy-deep) 75%);
  display: block;
}
.modal__head.nebula-backdrop .modal__head-inner{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

/* ============================================================
   ASSET CARD · cosmic motif via JS-injected canvas + mini SVG
   ============================================================ */
.asset-card__visual{
  background:
    radial-gradient(ellipse 80% 60% at 75% 30%, #0E2440 0%, #061128 40%, var(--navy-deep) 85%);
}
.asset-card__visual::after{ display: none; } /* drop the CSS-only dot stars */
.asset-card__visual canvas.stars{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.asset-card__visual .mini-comet{
  position: absolute; inset: 0;
  z-index: 2; pointer-events: none;
}
.asset-card__visual .mini-comet svg{ width: 100%; height: 100%; display: block; }
.asset-card__visual .code,
.asset-card__visual .fund-tag,
.asset-card__visual .city,
.asset-card__visual .score{ z-index: 3; }

/* Tighter eyebrow on chart cards (rule prefix on the section number) */
.chart__head .card__h.eb-rule::before,
.module-h .num.eb-rule::before{
  background: var(--cosmic-warm);
}

/* Disputed inline example wrapper */
.disputed-demo{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--text-soft);
  margin-left: 8px;
}

/* Section divider · subtle nebula band between content blocks */
.section-divider{
  height: 64px;
  position: relative;
  overflow: hidden;
  margin: 8px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* Watermark */
.proto-mark{
  position: fixed; bottom: 14px; left: 18px;
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: rgba(8,15,31,0.30);
  background: rgba(244,239,230,0.55);
  padding: 4px 8px 3px;
  border: 1px solid rgba(229,223,208,0.7);
  border-radius: 2px;
  z-index: 200;
  backdrop-filter: blur(3px);
}
