/* DDX Asia 2.0 — "Observatory / Live Signal" design system
   Direction: a screen-at-night canvas, the DDX prism spectrum as the one accent,
   monospace telemetry for the live-feed feel. Boldness spent on the spectrum
   signal + pulse readouts; everything else kept quiet. */

:root {
  /* canvas */
  --ink: #0A0E1A;
  --surface: #111728;
  --surface-2: #161E33;
  --surface-3: #1C2641;
  --line: #232E49;
  --line-soft: #1A2238;
  --nav-bg: rgba(10,14,26,0.78);
  color-scheme: dark;

  /* spectrum (from the DDX prism logo) */
  --s1: #E0218A;  /* magenta */
  --s2: #7A3DF5;  /* violet  */
  --s3: #2563EB;  /* blue    */
  --s4: #22D3EE;  /* cyan    */
  --spectrum: linear-gradient(90deg, var(--s1), var(--s2) 42%, var(--s3) 72%, var(--s4));

  /* ink text */
  --text: #EEF1F8;
  --muted: #939CB4;
  --muted-2: #646E88;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---------- light theme ---------- */
html[data-theme="light"] {
  --ink: #EEF1F8;
  --surface: #FFFFFF;
  --surface-2: #F4F6FC;
  --surface-3: #E7EBF6;
  --line: #D5DCEC;
  --line-soft: #E5E9F4;
  --text: #131A2B;
  --muted: #4C5A74;
  --muted-2: #74819B;
  --nav-bg: rgba(238,241,248,0.85);
  /* Spectrum darkened for legibility on light surfaces (text + white-on-accent buttons),
     while the prism identity is preserved in gradients and swatches. */
  --s1: #C81E80;  /* magenta */
  --s2: #6A2BE0;  /* violet  */
  --s3: #1E55D0;  /* blue    */
  --s4: #0E7490;  /* cyan    */
  color-scheme: light;
}
html[data-theme="light"] body {
  background-image:
    radial-gradient(60rem 40rem at 80% -10%, rgba(122,61,245,0.09), transparent 60%),
    radial-gradient(50rem 35rem at -10% 0%, rgba(224,33,138,0.06), transparent 55%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* faint pixel/scanline grid nodding to LED displays */
  background-image:
    radial-gradient(60rem 40rem at 80% -10%, rgba(122,61,245,0.10), transparent 60%),
    radial-gradient(50rem 35rem at -10% 0%, rgba(224,33,138,0.08), transparent 55%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- spectrum signal bar (signature) ---------- */
.signal { height: 3px; background: var(--spectrum); background-size: 200% 100%; animation: drift 9s linear infinite; }
@keyframes drift { to { background-position: 200% 0; } }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.theme-toggle {
  background: none; border: 1px solid var(--line); color: var(--text);
  width: 38px; height: 38px; border-radius: 9px; cursor: pointer; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  transition: border-color .15s, background .15s;
}
.theme-toggle:hover { border-color: var(--muted-2); background: var(--surface); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.brand .mark { width: 34px; height: 34px; }
.brand > span { display: inline-flex; flex-direction: column; line-height: 1.12; }
.brand .name { font-size: 19px; }
.brand .sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted-2); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ''; display: block; height: 2px; margin-top: 5px; background: var(--spectrum); border-radius: 2px; }
/* scoped to .nav-links a so the generic link colour/hover rules above don't override the CTA */
.nav-links a.nav-cta { background: var(--spectrum); color: #fff; font-weight: 600; padding: 9px 16px; border-radius: 9px; font-size: 14px; }
.nav-links a.nav-cta:hover { color: #fff; background: var(--spectrum); filter: brightness(1.08); }
.nav-burger { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 10px; cursor: pointer; }

/* ---------- generic bits ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--s4); }
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 34px); margin: 8px 0 0; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 52ch; }
.link-more { font-family: var(--font-mono); font-size: 12px; color: var(--s4); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 11px 18px; border-radius: 10px; font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--s3); }
.btn-primary { background: var(--spectrum); border: none; color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 44px; position: relative; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 6vw, 62px); line-height: 1.02; letter-spacing: -0.03em; margin: 18px 0 0; max-width: 17ch; }
.hero h1 .grad { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 56ch; margin: 22px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* live pulse dashboard (telemetry) */
.pulse {
  margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--ink));
  overflow: hidden;
}
.pulse-top { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--s1); box-shadow: 0 0 0 0 rgba(224,33,138,.55); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(224,33,138,.5);} 70%{ box-shadow:0 0 0 9px rgba(224,33,138,0);} 100%{ box-shadow:0 0 0 0 rgba(224,33,138,0);} }
.pulse-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pulse-cell { padding: 22px 18px; border-right: 1px solid var(--line-soft); }
.pulse-cell:last-child { border-right: none; }
.pulse-cell .num { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.pulse-cell .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }

/* ---------- category chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--muted-2); }
.chip[aria-pressed="true"] { color: #fff; border-color: transparent; }
.chip .swatch { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }

/* ---------- observatory grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 0; overflow: hidden; transition: transform .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: var(--s3); }

/* media cover */
.cover { position: relative; height: 152px; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.cover::after { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1.4px); background-size: 12px 12px; }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cover-cat { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
.cover-hero { height: 300px; border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0 6px; }

.card .body { padding: 18px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.card .meta-row { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.card .cat-tag { color: var(--text); }
.card h3 { font-family: var(--font-display); font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }
.card .foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.card.feature { grid-column: span 2; flex-direction: row; }
.card.feature .cover { height: auto; width: 44%; min-height: 260px; border-bottom: none; border-right: 1px solid var(--line-soft); }
.card.feature .card-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.badge-feat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--s1); }

@media (max-width: 720px) {
  .card.feature { grid-column: span 1; flex-direction: column; }
  .card.feature .cover { width: 100%; min-height: 0; height: 152px; border-right: none; border-bottom: 1px solid var(--line-soft); }
  .cover-hero { height: 200px; }
}

/* ---------- futures index ---------- */
.fx { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.fx-row { display: grid; grid-template-columns: 46px 1fr auto auto; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.fx-row:first-child { border-top: none; }
.fx-rank { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); }
.fx-rank.top { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.fx-tag { font-family: var(--font-display); font-size: 16px; }
.fx-mom { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.fx-bar { width: 120px; height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.fx-bar > span { display: block; height: 100%; background: var(--spectrum); }
@media (max-width: 620px){ .fx-bar{ display:none; } .fx-row{ grid-template-columns: 40px 1fr auto; } }

/* ---------- copilot ---------- */
.copilot { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 24px; }
.copilot .ask { display: flex; gap: 10px; margin-top: 14px; }
.copilot input[type=text] { flex: 1; background: var(--ink); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font-family: var(--font-body); font-size: 15px; }
.copilot input[type=text]:focus { outline: none; border-color: var(--s3); }
.copilot .suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.copilot .suggestions button { font-family: var(--font-mono); font-size: 12px; background: none; border: 1px solid var(--line); color: var(--muted); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.copilot .suggestions button:hover { color: var(--text); border-color: var(--muted-2); }
.copilot-answer { margin-top: 16px; padding: 14px 16px; border-left: 2px solid var(--s2); background: var(--ink); border-radius: 0 10px 10px 0; }
.copilot-answer .src { display: block; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.copilot-answer .src:first-of-type { margin-top: 10px; }

/* ---------- detail page ---------- */
.detail { max-width: 760px; margin: 0 auto; padding: 48px 0; }
.detail .back { font-family: var(--font-mono); font-size: 12px; color: var(--s4); }
.detail h1 { font-family: var(--font-display); font-size: clamp(26px,4vw,40px); line-height: 1.12; letter-spacing: -0.02em; margin: 18px 0 14px; }
.detail .lede { font-size: 19px; color: var(--text); }
.detail .body-text { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 22px 0; border-left: 2px solid var(--line); padding-left: 20px; }
.detail .body-text p { margin: 0 0 14px; }
.detail .body-text p:last-child { margin-bottom: 0; }
.detail .body-text ul, .detail .body-text ol { padding-left: 22px; margin: 8px 0 14px; }
.detail .body-text li { margin-bottom: 4px; }
.detail .body-text a { color: var(--s4); text-decoration: underline; }
.detail .body-text strong, .detail .body-text b { color: var(--text); font-weight: 600; }
.detail .body-text em, .detail .body-text i { font-style: italic; }
.detail .meta { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 18px 0; }

/* ---------- generic page (stubs) ---------- */
.page-head { padding: 64px 0 12px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(30px,5vw,52px); letter-spacing:-0.03em; margin: 12px 0 0; }
.feature-list { display:grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap:14px; margin-top:28px; }
.feature-list .it { border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); padding:18px; }
.feature-list .it h4 { font-family:var(--font-display); margin:0 0 6px; font-size:16px; }
.feature-list .it p { color:var(--muted); font-size:13.5px; margin:0; }
.soon { font-family:var(--font-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--s1); border:1px solid var(--line); border-radius:999px; padding:3px 9px; display:inline-block; margin-bottom:12px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); margin-top: 40px; padding: 40px 0 56px; color: var(--muted); }
.footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 12px; }
.footer a { display: block; font-size: 14px; color: var(--muted); padding: 4px 0; }
.footer a:hover { color: var(--text); }
.footer .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- skeleton / empty ---------- */
.skeleton { border:1px solid var(--line); border-radius:var(--radius); height:190px; background:linear-gradient(100deg,var(--surface),var(--surface-2),var(--surface)); background-size:200% 100%; animation:sk 1.3s linear infinite; }
@keyframes sk { to { background-position:-200% 0; } }
.empty { text-align:center; color:var(--muted); padding:48px; border:1px dashed var(--line); border-radius:var(--radius); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; background: var(--ink); border-bottom: 1px solid var(--line); padding: 12px 24px; gap: 2px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-burger { display: inline-block; margin-left: auto; }
  .pulse-grid { grid-template-columns: repeat(2, 1fr); }
  .pulse-cell:nth-child(2) { border-right: none; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){ .pulse-grid{ grid-template-columns:1fr 1fr; } .footer .cols{ grid-template-columns:1fr; } }

/* ---------- Future Lab ---------- */
/* Technology Radar */
.flab-radar-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }
.flab-radar { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background:
    radial-gradient(circle at 50% 48%, rgba(34,211,238,0.06), transparent 62%), linear-gradient(180deg, var(--surface), var(--ink)); padding: 12px; overflow: hidden; }
.flab-radar::after { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.4px); background-size: 13px 13px; }
.flab-svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.flab-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.flab-axis { stroke: var(--line-soft); stroke-width: 1; }
.flab-ring-label { fill: var(--muted-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.flab-quad { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.flab-sweep { stroke: var(--s4); stroke-width: 2; opacity: .35; }
.flab-sweep-g { transform-box: view-box; transform-origin: 360px 270px; animation: flab-sweep 7s linear infinite; }
@keyframes flab-sweep { to { transform: rotate(360deg); } }
.flab-blip { cursor: pointer; transition: opacity .15s; }
.flab-blip-dot { fill: var(--bc); fill-opacity: .85; stroke: var(--ink); stroke-width: 1.5; transition: fill-opacity .15s; }
.flab-blip-num { fill: #fff; font-family: var(--font-mono); font-size: 9px; font-weight: 600; pointer-events: none; }
.flab-blip-label { fill: var(--text); font-family: var(--font-mono); font-size: 11px; opacity: 0; transition: opacity .15s; pointer-events: none;
  paint-order: stroke; stroke: var(--ink); stroke-width: 3px; stroke-linejoin: round; }
.flab-blip:hover .flab-blip-label, .flab-blip.active .flab-blip-label { opacity: 1; }
.flab-blip:hover .flab-blip-dot, .flab-blip.active .flab-blip-dot { fill-opacity: 1; }
.flab-blip.active .flab-blip-dot { stroke: var(--bc); stroke-width: 3; }
.flab-blip.hot .flab-blip-dot { filter: drop-shadow(0 0 5px var(--bc)); }
.flab-blip.dim { opacity: .14; }

.flab-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.flab-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.flab-leg { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface); padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.flab-leg:hover { color: var(--text); border-color: var(--muted-2); }
.flab-leg.on { color: #fff; border-color: transparent; background: var(--surface-3); }
.flab-leg .sw { width: 9px; height: 9px; border-radius: 50%; }
.flab-detail { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; min-height: 220px; }
.flab-detail-empty { color: var(--muted); font-size: 14px; }
.flab-detail-ring { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.flab-detail-head h3 { font-family: var(--font-display); font-size: 22px; margin: 8px 0 6px; letter-spacing: -0.01em; }
.flab-mom { font-family: var(--font-mono); font-size: 12px; color: var(--s4); }
.flab-mom.muted { color: var(--muted-2); }
.flab-detail-blurb { color: var(--muted); font-size: 14.5px; margin: 12px 0 16px; }
.flab-rel-head, .flab-rel-loading, .flab-rel-empty { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.flab-rel { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px dashed var(--line); }
.flab-rel:hover .flab-rel-title { color: var(--s4); }
.flab-rel-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.flab-rel-title { font-size: 14px; color: var(--text); transition: color .15s; }

/* Future Concepts */
.flab-concepts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.flab-concept { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: transform .18s, border-color .18s; }
.flab-concept:hover { transform: translateY(-3px); border-color: var(--cc); }
.flab-concept-art { position: relative; height: 120px; background:
    radial-gradient(120% 130% at 82% 12%, var(--cc), transparent 58%), var(--ink); border-bottom: 1px solid var(--line-soft); }
.flab-concept-art::after { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.4px); background-size: 12px 12px; }
.flab-concept-horizon { position: absolute; left: 14px; bottom: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); z-index: 1; }
.flab-concept-body { padding: 18px; }
.flab-concept-body h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 8px; }
.flab-concept-body p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.maturity { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-bottom: 12px; }
.maturity > span { display: block; height: 100%; background: var(--spectrum); }
.flab-concept-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Future Horizons timeline */
.flab-timeline { position: relative; }
.flab-rail { position: relative; height: 2px; background: var(--line); margin: 18px 0 30px; overflow: visible; }
.flab-rail::before { content: ''; position: absolute; inset: 0; background: var(--spectrum); opacity: .5; }
.flab-scan { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--s4); box-shadow: 0 0 10px var(--s4); animation: flab-scan 6s ease-in-out infinite; }
@keyframes flab-scan { 0% { left: 0; } 50% { left: calc(100% - 10px); } 100% { left: 0; } }
.flab-tick { position: absolute; top: 12px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted-2); }
.flab-horizons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.flab-horizon { border: 1px solid var(--line); border-top: 2px solid var(--cc); border-radius: var(--radius); background: var(--surface); overflow: hidden; cursor: pointer; transition: transform .18s, border-color .18s; }
.flab-horizon:hover, .flab-horizon:focus-visible { transform: translateY(-3px); border-color: var(--cc); outline: none; }
.flab-horizon-view { position: relative; height: 150px; overflow: hidden; background: var(--ink); border-bottom: 1px solid var(--line-soft); }
.flab-horizon-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.flab-horizon-view::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,14,26,0) 42%, color-mix(in srgb, var(--cc) 22%, rgba(10,14,26,.55))); }
.flab-horizon:hover .flab-horizon-img { transform: scale(1.06); }
.flab-horizon-body { padding: 18px 20px 20px; }
.flab-horizon-year { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--cc); }
.flab-horizon h3 { font-family: var(--font-display); font-size: 19px; margin: 6px 0 10px; }
.flab-horizon p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.flab-horizon-signals { display: flex; flex-wrap: wrap; gap: 6px; }
.flab-horizon-enter { position: absolute; left: 14px; bottom: 12px; z-index: 3; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); background: rgba(10,14,26,.55); border: 1px solid color-mix(in srgb, var(--cc) 50%, var(--line)); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px); transition: background .15s; }
.flab-horizon:hover .flab-horizon-enter { background: color-mix(in srgb, var(--cc) 32%, rgba(10,14,26,.5)); }
.flab-horizon-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; background: linear-gradient(90deg, transparent, var(--cc), transparent); opacity: .8; animation: flab-vscan 4.5s ease-in-out infinite; }
@keyframes flab-vscan { 0% { top: 4%; } 50% { top: 92%; } 100% { top: 4%; } }
/* Immersive cinematic viewer */
.flab-vr { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 3vmin;
  background: rgba(4,6,12,.92); backdrop-filter: blur(8px); opacity: 0; transition: opacity .28s ease; }
.flab-vr.show { opacity: 1; }
.flab-vr-stage { position: relative; width: min(1240px, 96vw); height: min(800px, 90vh); border-radius: 16px; overflow: hidden;
  background: #05070e; border: 1px solid color-mix(in srgb, var(--cc) 36%, var(--line));
  box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 70px color-mix(in srgb, var(--cc) 18%, transparent) inset;
  transform: scale(.97); transition: transform .28s ease; }
.flab-vr.show .flab-vr-stage { transform: scale(1); }
.flab-vr-photowrap { position: absolute; inset: -3%; transition: transform .25s ease-out; will-change: transform; }
.flab-vr-photo { position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.06); animation: flab-ken 26s ease-in-out infinite alternate; }
@keyframes flab-ken { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.16) translate(-2.5%, -1.5%); } }
.flab-vr-grade { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 120% at 50% 42%, transparent 56%, rgba(4,6,12,.5) 100%),
    linear-gradient(180deg, rgba(4,6,12,.42) 0%, transparent 22%, transparent 50%, rgba(4,6,12,.84) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--cc) 12%, transparent), transparent 32%); }
.flab-vr-hotspots { position: absolute; inset: 0; transition: transform .25s ease-out; }
.flab-vr-cap { position: absolute; left: 28px; right: 28px; bottom: 24px; max-width: 560px; z-index: 5; pointer-events: none; }
.flab-vr-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cc); }
.flab-vr-cap h3 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); letter-spacing: -.02em; margin: 8px 0 8px; color: #fff; }
.flab-vr-cap p { color: rgba(238,241,248,.84); font-size: 14.5px; line-height: 1.6; margin: 0 0 10px; max-width: 48ch; }
.flab-vr-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flab-vr-credit { position: absolute; right: 14px; bottom: 12px; z-index: 8; font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; color: rgba(238,241,248,.55); }
.flab-vr-credit:hover { color: var(--text); text-decoration: underline; }

/* Interactive info points */
.flab-hot { position: absolute; transform: translate(-50%,-50%); width: 18px; height: 18px; padding: 0; background: none; border: none; cursor: pointer; z-index: 6; }
.flab-hot-dot { position: absolute; inset: 4px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 10px var(--cc); }
.flab-hot-pulse { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--cc); animation: flab-hotpulse 2s ease-out infinite; }
@keyframes flab-hotpulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.flab-hot-card { position: absolute; left: 26px; top: 50%; transform: translateY(-50%) scale(.96); transform-origin: left center;
  width: 230px; padding: 12px 14px; border-radius: 10px; background: rgba(8,11,20,.92); border: 1px solid color-mix(in srgb, var(--cc) 55%, var(--line));
  box-shadow: 0 10px 30px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; backdrop-filter: blur(6px); }
.flab-hot:hover .flab-hot-card, .flab-hot.open .flab-hot-card { opacity: 1; transform: translateY(-50%) scale(1); }
.flab-hot.open { z-index: 8; }
.flab-hot-title { display: block; font-family: var(--font-display); font-size: 14px; color: var(--text); margin-bottom: 4px; }
.flab-hot-detail { display: block; font-family: var(--font-body); font-size: 12.5px; line-height: 1.55; color: var(--muted); }
/* flip card to the left for right-edge markers */
.flab-hot[style*="left:8"] .flab-hot-card, .flab-hot[style*="left:9"] .flab-hot-card { left: auto; right: 26px; transform-origin: right center; }

.flab-vr-close { position: absolute; top: 14px; right: 16px; z-index: 9; pointer-events: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  color: var(--text); background: rgba(8,11,20,.7); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; transition: border-color .15s; }
.flab-vr-close:hover { border-color: var(--cc); }

@media (max-width: 640px) {
  .flab-vr-stage { height: 88vh; }
  .flab-hot-card { width: 180px; }
  .flab-vr-cap { left: 18px; right: 18px; bottom: 18px; }
  .flab-vr-cap p { display: none; }
}

/* Future Experience Simulator */
.flab-sim { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 24px; }
.flab-sim-controls { display: flex; flex-wrap: wrap; gap: 22px; }
.flab-sim-group { display: flex; flex-direction: column; gap: 8px; }
.flab-sim-lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.flab-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.flab-seg button { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--muted); background: none; border: none; padding: 8px 13px; border-radius: 7px; cursor: pointer; transition: all .15s; }
.flab-seg button:hover { color: var(--text); }
.flab-seg button.on { color: #fff; background: var(--surface-3); }
.flab-sim-out { margin-top: 18px; }
.flab-sim-card { border-left: 2px solid var(--s4); background: var(--ink); border-radius: 0 10px 10px 0; padding: 18px 20px; }
.flab-sim-card p { margin: 0; font-size: 16px; line-height: 1.7; }

@media (max-width: 860px) {
  .flab-radar-wrap { grid-template-columns: 1fr; }
  .flab-side { position: static; }
  .flab-horizons { grid-template-columns: 1fr; }
}

/* ---------- Future Concepts controls ---------- */
.flab-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.flab-sort { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 8px 14px; font-family: var(--font-mono); font-size: 12px; cursor: pointer; }
.flab-sort:focus { outline: none; border-color: var(--s3); }
.chip[aria-pressed="true"] { background: var(--s3); color: #fff; border-color: transparent; }

/* ---------- Learn ---------- */
.learn-nav { gap: 8px; }
.learn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.learn-card { position: relative; border: 1px solid var(--line); border-top: 2px solid var(--cc); border-radius: var(--radius); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: transform .18s, border-color .18s; cursor: pointer; }
.learn-card:hover { transform: translateY(-3px); border-color: var(--cc); }
.learn-kind { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cc); }
.learn-card h3 { font-family: var(--font-display); font-size: 18px; margin: 0; line-height: 1.25; }
.learn-card p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.learn-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); border-top: 1px solid var(--line-soft); padding-top: 12px; }
.learn-open { color: var(--s4); }

/* DDX TV */
.tv-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; align-items: start; }
.tv-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.tv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv-player h3 { font-family: var(--font-display); font-size: 20px; margin: 16px 0 4px; line-height: 1.25; }
.tv-cur-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tv-list { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.tv-item { display: flex; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.tv-item:hover { border-color: var(--muted-2); }
.tv-item.on { border-color: var(--s3); background: var(--surface-2); }
.tv-thumb { flex: none; width: 104px; aspect-ratio: 16/9; border-radius: 7px; overflow: hidden; background: var(--ink); }
.tv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tv-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tv-it-title { font-size: 13px; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-it-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); }

/* Podcast Hub */
.pod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.pod-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pod-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.pod-cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--s4); }
.pod-src { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); }
.pod-frame { width: 100%; height: 175px; border: none; display: block; background: var(--surface); }

@media (max-width: 820px) {
  .tv-wrap { grid-template-columns: 1fr; }
  .tv-list { max-height: none; }
}

/* ---------- Attend ---------- */
.att-hero { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
  background: radial-gradient(120% 150% at 92% -30%, color-mix(in srgb, var(--s2) 24%, transparent), transparent 55%), linear-gradient(180deg, var(--surface), var(--ink)); }
.att-when { font-family: var(--font-display); font-size: clamp(24px, 4vw, 38px); letter-spacing: -.02em; }
.att-venue { color: var(--muted); margin-top: 6px; font-size: 15px; }
.att-count { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.cd { display: flex; flex-direction: column; align-items: center; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 64px; }
.cd b { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.cd i { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-style: normal; margin-top: 4px; }
.att-live { color: var(--s1); font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.att-note { margin-top: 16px; display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--s4); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.att-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.att-stat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; text-align: center; }
.att-stat .n { font-family: var(--font-display); font-size: 28px; }
.att-stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }
.panel-plain { margin-top: 18px; }
.att-about { color: var(--muted); font-size: 15.5px; line-height: 1.7; max-width: 70ch; }
.att-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 26px; }
.att-link { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 18px; transition: border-color .15s, transform .15s; }
.att-link:hover { border-color: var(--s3); transform: translateY(-2px); }
.att-link h4 { font-family: var(--font-display); margin: 0 0 6px; font-size: 16px; }
.att-link p { color: var(--muted); font-size: 13.5px; margin: 0; }
.att-lead { color: var(--muted); font-size: 15px; max-width: 68ch; margin: 0 0 24px; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.att-zone { border: 1px solid var(--line); border-left: 2px solid var(--s2); border-radius: var(--radius-sm); background: var(--surface); padding: 18px; }
.att-zone h4 { font-family: var(--font-display); margin: 0 0 6px; font-size: 16px; }
.att-zone p { color: var(--muted); font-size: 13.5px; margin: 0; }
.att-cta-row { margin-top: 24px; }
.att-sub { font-family: var(--font-display); font-size: 18px; margin: 30px 0 14px; }
.att-speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.att-speaker { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 14px; }
.att-avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #fff; background: var(--spectrum); }
.att-speaker b { display: block; font-size: 14.5px; }
.att-speaker span { color: var(--muted); font-size: 12.5px; }
.att-agenda { display: grid; gap: 18px; }
.att-day { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.att-day-h { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--s4); padding: 12px 18px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.att-slot { display: flex; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line-soft); }
.att-slot:first-of-type { border-top: none; }
.att-time { font-family: var(--font-mono); font-size: 13px; color: var(--muted); min-width: 52px; }
.att-slot-t { font-size: 14.5px; }
.att-slot-t i { color: var(--muted); font-style: normal; }
.att-deadline { display: inline-block; font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; margin-bottom: 22px; }
.att-award { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 18px; }
.att-award-n { font-family: var(--font-mono); font-size: 12px; color: var(--s1); }
.att-award h4 { font-family: var(--font-display); margin: 8px 0 0; font-size: 16px; }
.att-passes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.att-pass { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; display: flex; flex-direction: column; }
.att-pass.featured { border-color: var(--s2); box-shadow: 0 0 0 1px var(--s2) inset; }
.att-pass-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.att-pass-price { font-family: var(--font-display); font-size: 30px; margin: 8px 0; }
.att-pass-perks { color: var(--muted); font-size: 13.5px; flex: 1; }
.att-archive { display: grid; gap: 14px; }
.att-arch { display: flex; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 18px; }
.att-arch-year { font-family: var(--font-display); font-size: 22px; color: var(--s4); min-width: 64px; }
.att-arch b { font-size: 16px; }
.att-arch-venue { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); margin: 2px 0 6px; }
.att-arch p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* Hall of Innovation */
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.hall-card { border: 1px solid var(--line); border-top: 2px solid var(--cc); border-radius: var(--radius); background: var(--surface); padding: 20px; }
.hall-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.hall-cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cc); }
.hall-year { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.hall-card h4 { font-family: var(--font-display); font-size: 17px; margin: 0 0 8px; }
.hall-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.hall-org { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }

/* admin event editor rows */
.ev-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-soft); }
.ev-row .row { flex: 1; }
.ev-row [data-rm] { align-self: center; }

/* admin users & role permissions */
.perm-block { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ink); padding: 14px 16px; margin-bottom: 14px; }
.perm-role { font-family: var(--font-display); font-size: 15px; margin-bottom: 10px; }
.perm-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 460px; }
.perm-table th, .perm-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.perm-table th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
#actingRole { font-family: var(--font-mono); font-size: 11px; }

/* admin innovation preview modal */
.pv-overlay { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 3vmin; background: rgba(4,6,12,.72); backdrop-filter: blur(6px); }
.pv-modal { width: min(820px, 96vw); max-height: 92vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.pv-badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--s4); }
.pv-close { font-family: var(--font-mono); font-size: 12px; color: var(--text); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.pv-close:hover { border-color: var(--s3); }
.pv-scroll { overflow-y: auto; }
.pv-inner { max-width: 680px; margin: 0 auto; padding: 28px 28px 36px; }
.pv-cover { width: 100%; height: 300px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); display: block; }
.pv-cover.pv-gen { background: radial-gradient(120% 130% at 82% 12%, var(--cc, var(--s2)), transparent 58%), var(--ink); }
.pv-meta { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 18px 0; }
.pv-inner h1 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 34px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.pv-lede { font-size: 18px; color: var(--text); margin: 0; }
.pv-body { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 22px 0; border-left: 2px solid var(--line); padding-left: 20px; }
.pv-body p { margin: 0 0 14px; } .pv-body p:last-child { margin-bottom: 0; }
.pv-body ul, .pv-body ol { padding-left: 22px; margin: 8px 0 14px; }
.pv-body a { color: var(--s4); text-decoration: underline; }
.pv-body strong, .pv-body b { color: var(--text); }
.pv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }

/* admin run-history expandable tag cells */
.rh-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.rh-chip { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; white-space: nowrap; }
.rh-more { font-family: var(--font-mono); font-size: 10.5px; color: var(--s4); background: none; border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; cursor: pointer; }
.rh-more:hover { border-color: var(--s4); }

/* admin source recommendations */
.rec-list { display: grid; gap: 8px; }
.rec-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--ink); padding: 10px 14px; cursor: pointer; }
.rec-row:hover { border-color: var(--muted-2); }
.rec-row input { width: auto; }
.rec-topic { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--s4); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; margin-left: 8px; }
.rec-url { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
@media (max-width: 640px) { .rec-row { grid-template-columns: auto 1fr; } .rec-url { display: none; } }

@media (max-width: 640px) { .att-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Explore · vendor marketplace ---------- */
.ven-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ven-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; cursor: pointer; transition: transform .18s, border-color .18s; display: flex; flex-direction: column; }
.ven-card:hover { transform: translateY(-3px); border-color: var(--s3); }
.ven-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ven-logo { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; background: var(--spectrum); }
.ven-logo.lg { width: 64px; height: 64px; font-size: 24px; border-radius: 16px; }
.ven-badges { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.ven-badge { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.ven-badge.verified { color: #3fb96b; border-color: color-mix(in srgb, #3fb96b 40%, var(--line)); }
.ven-badge.startup { color: var(--s4); border-color: color-mix(in srgb, var(--s4) 40%, var(--line)); }
.ven-badge.feat { color: var(--s1); border-color: color-mix(in srgb, var(--s1) 40%, var(--line)); }
.ven-card h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; }
.ven-cat { color: var(--s4); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.ven-loc { color: var(--muted-2); font-size: 12.5px; margin-top: 3px; }
.ven-card p { color: var(--muted); font-size: 13.5px; margin: 12px 0; flex: 1; }
.ven-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ven-cta { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--s4); }

.ven-filter { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ven-search { flex: 1; min-width: 220px; background: var(--ink); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 14px; font-family: var(--font-body); }
.ven-filter select { background: var(--ink); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 12px; font-family: var(--font-body); font-size: 14px; cursor: pointer; }
.ven-search:focus, .ven-filter select:focus { outline: none; border-color: var(--s3); }

.ven-overlay { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 3vmin; background: rgba(4,6,12,.72); backdrop-filter: blur(6px); }
.ven-modal { position: relative; width: min(760px, 96vw); max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.ven-close { position: absolute; top: 16px; right: 16px; font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.ven-close:hover { border-color: var(--s3); }
.ven-modal-head { display: flex; gap: 16px; align-items: center; padding-right: 40px; }
.ven-modal-head h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 4px; }
.ven-about { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 18px 0; }
.ven-spec { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ven-contact { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.ven-contact a { color: var(--s4); }
.ven-enquire { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); padding: 20px; margin-top: 20px; }
.ven-enquire h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; }
.ven-enquire .row { display: flex; flex-wrap: wrap; gap: 10px; }
.ven-enquire input, .ven-enquire textarea { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 10px 12px; font-family: var(--font-body); font-size: 14px; }
.ven-enquire input { flex: 1; min-width: 140px; }
.ven-enquire input:focus, .ven-enquire textarea:focus { outline: none; border-color: var(--s3); }
.enq-ok { color: #3fb96b; font-size: 14px; border-left: 2px solid #3fb96b; padding-left: 12px; }
.ven-related { margin-top: 24px; }
.ven-related h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 14px; }
.ven-logo { overflow: hidden; }
img.ven-logo { object-fit: cover; }

/* admin vendor add/edit + live preview */
.ven-editor { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.ven-preview { position: sticky; top: 76px; }
.ven-preview-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
@media (max-width: 860px) { .ven-editor { grid-template-columns: 1fr; } .ven-preview { position: static; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
:focus-visible { outline: 2px solid var(--s4); outline-offset: 2px; border-radius: 4px; }
