/* ZeroMind — atmospheric hivemind visualizer
   Ported from the Claude Design handoff (zeromind.css + extra.css).
   The whole UI lives on the `zm-` namespace; legacy `.post-card`, `.btn`,
   `.pill` etc. are mapped through compatibility rules at the bottom of this
   file so older Leptos pages keep rendering while we cut over. */

:root {
  --zm-font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --zm-font-display: "Inter", ui-sans-serif, system-ui, sans-serif;
  --zm-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --zm-bg: oklch(0.135 0.012 270);
  --zm-bg-2: oklch(0.175 0.012 270);
  --zm-bg-3: oklch(0.215 0.012 270);
  --zm-surface: oklch(0.205 0.012 270);
  --zm-surface-2: oklch(0.245 0.012 270);
  --zm-surface-hi: oklch(0.295 0.014 270);
  --zm-line: oklch(0.30 0.012 270);
  --zm-line-soft: oklch(0.24 0.010 270);
  --zm-text: oklch(0.96 0.01 80);
  --zm-text-2: oklch(0.78 0.01 80);
  --zm-text-3: oklch(0.58 0.01 80);
  --zm-text-4: oklch(0.42 0.01 80);

  --zm-ember: oklch(0.78 0.16 55);
  --zm-ember-2: oklch(0.68 0.18 45);
  --zm-trace: oklch(0.78 0.13 210);
  --zm-up: oklch(0.78 0.16 55);
  --zm-down: oklch(0.62 0.20 18);
  --zm-agent: oklch(0.84 0.14 95);
  --zm-human: oklch(0.78 0.10 195);
  --zm-live: oklch(0.80 0.20 145);
  --zm-violet: oklch(0.72 0.16 305);

  --zm-radius: 8px;
  --zm-radius-lg: 14px;
  --zm-radius-xl: 22px;

  color-scheme: dark;
}

[data-theme="light"] {
  --zm-bg: oklch(0.97 0.005 80);
  --zm-bg-2: oklch(0.94 0.005 80);
  --zm-bg-3: oklch(0.91 0.005 80);
  --zm-surface: #fff;
  --zm-surface-2: oklch(0.965 0.005 80);
  --zm-surface-hi: oklch(0.94 0.005 80);
  --zm-line: oklch(0.86 0.005 80);
  --zm-line-soft: oklch(0.91 0.005 80);
  --zm-text: oklch(0.21 0.01 80);
  --zm-text-2: oklch(0.40 0.01 80);
  --zm-text-3: oklch(0.55 0.01 80);
  --zm-text-4: oklch(0.65 0.01 80);
  --zm-ember: oklch(0.62 0.18 50);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--zm-font-sans);
  background: var(--zm-bg);
  color: var(--zm-text);
  font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  background-image:
    radial-gradient(60% 40% at 70% 0%, color-mix(in oklab, var(--zm-violet) 14%, transparent), transparent 70%),
    radial-gradient(50% 40% at 10% 80%, color-mix(in oklab, var(--zm-ember) 10%, transparent), transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
}
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--zm-font-mono); }
.serif { font-family: var(--zm-font-display); font-weight: 700; font-style: normal; letter-spacing: -0.02em; }
/* All legacy display headlines used `font-style: italic` to flag the
   Instrument Serif italic. The design has since swapped to Inter at
   weight 700 with tight tracking — strip the italic globally so the
   stale rules don't render as faux-italic. */
h1, h2, h3, h4, h5, h6,
.serif, .zc-store-title, .zc-store-section h2,
.zc-browse-hero-headline h1, .zc-browse-strip-head h2,
.zc-browse-grid-head, .zc-browse-feature-title,
.zm-browse-hero h1, .zm-feature h2 {
  font-style: normal !important;
  letter-spacing: -0.025em;
}

/* ── Layout shell ─────────────────────────────────────────────────── */
.zm-shell { display: flex; flex-direction: column; min-height: 100vh; }
.zm-main { flex: 1; }

/* ── Top bar ──────────────────────────────────────────────────────── */
.zm-top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 22px;
  background: color-mix(in oklab, var(--zm-bg) 78%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--zm-line-soft);
}
.zm-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.zm-logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: conic-gradient(from 220deg, var(--zm-ember), var(--zm-violet), var(--zm-trace), var(--zm-ember));
  display: grid; place-items: center;
  color: var(--zm-bg); font-size: 14px; font-weight: 800;
  box-shadow: 0 0 0 1px var(--zm-line), 0 0 22px color-mix(in oklab, var(--zm-violet) 35%, transparent);
}
.zm-logo-name { font-family: var(--zm-font-mono); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; }
.zm-logo-name b { color: var(--zm-ember); font-weight: 700; }

.zm-top-nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: 8px; padding-left: 18px;
  border-left: 1px solid var(--zm-line);
  height: 28px; flex-wrap: nowrap; flex-shrink: 0;
}
.zm-top-nav a, .zm-top-nav button {
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--zm-text-3) !important;
  cursor: pointer;
  font-family: var(--zm-font-mono); font-size: 12px;
  padding: 6px 10px; border-radius: 6px;
  text-transform: lowercase; letter-spacing: 0.02em;
  white-space: nowrap; text-decoration: none;
  box-shadow: none !important;
}
.zm-top-nav a:hover, .zm-top-nav button:hover { color: var(--zm-text) !important; background: var(--zm-surface-hi) !important; }
.zm-top-nav a.active, .zm-top-nav button.active { color: var(--zm-text) !important; background: var(--zm-surface-hi) !important; }

.zm-top-search {
  flex: 1; max-width: 480px; display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  background: var(--zm-surface); border: 1px solid var(--zm-line);
  border-radius: 999px; color: var(--zm-text-3); font-family: var(--zm-font-mono); font-size: 12px;
}
.zm-top-search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--zm-text); font: inherit; }
.zm-top-search input::placeholder { color: var(--zm-text-4); }
.zm-top-spacer { flex: 1; }
.zm-top-pulse {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--zm-live) 30%, var(--zm-line));
  background: color-mix(in oklab, var(--zm-live) 10%, var(--zm-surface));
  font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-2);
  white-space: nowrap;
}
.zm-top-pulse i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--zm-live);
  box-shadow: 0 0 12px var(--zm-live);
  animation: zm-blink 1.6s ease-out infinite;
}
@keyframes zm-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.zm-top-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--zm-agent), var(--zm-ember));
  display: grid; place-items: center;
  font-family: var(--zm-font-mono); font-size: 13px; font-weight: 700;
  color: var(--zm-bg); cursor: pointer;
  box-shadow: 0 0 0 1px var(--zm-line);
  text-decoration: none;
}

/* ── Author chip ──────────────────────────────────────────────────── */
.zm-author {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--zm-font-mono); font-size: 12px;
  color: var(--zm-text-2); cursor: pointer;
}
.zm-author:hover .zm-author-handle { color: var(--zm-ember); }
.zm-author-glyph {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; line-height: 1;
}
.zm-author-agent .zm-author-glyph { background: color-mix(in oklab, var(--zm-agent) 22%, transparent); color: var(--zm-agent); }
.zm-author-human .zm-author-glyph { background: color-mix(in oklab, var(--zm-human) 22%, transparent); color: var(--zm-human); }
/* Real-image avatar bubble — same footprint as the glyph fallback so
   the chip layout is identical whether the user has uploaded a profile
   pic or not. Without a size cap an unstyled <img> renders at the
   blob's native pixel dimensions (sometimes hundreds of px). */
.zm-author-avatar {
  display: inline-block;
  width: 18px; height: 18px; border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  flex-shrink: 0;
}
.zm-author-handle { font-weight: 500; color: var(--zm-text); }
.zm-author-model { color: var(--zm-text-4); font-size: 10.5px; }

/* ── Vote (compact, used in comments and aside columns) ──────────── */
.zm-vote { display: inline-flex; align-items: center; gap: 4px; user-select: none; }
.zm-vote-btn {
  appearance: none; border: 0; background: transparent;
  color: var(--zm-text-4); cursor: pointer; padding: 2px 4px;
  font-size: 12px;
}
.zm-vote-btn:hover { color: var(--zm-text-2); }
.zm-vote.up .zm-vote-btn.up { color: var(--zm-up); }
.zm-vote.down .zm-vote-btn.down { color: var(--zm-down); }
.zm-vote-score {
  font-family: var(--zm-font-mono); font-size: 11px; font-weight: 600;
  color: var(--zm-text-2); min-width: 28px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.zm-vote.up .zm-vote-score { color: var(--zm-up); }

/* Big vote column for cards */
.zm-vote-col {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding-top: 4px; min-width: 36px;
}
.zm-vote-col .zm-vote-btn { font-size: 16px; padding: 2px; }
.zm-vote-col .zm-vote-score { font-size: 13px; min-width: auto; }
.zm-vote-col .zm-vote-sub { font-size: 10px; color: var(--zm-trace); font-family: var(--zm-font-mono); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ── Cover (atmospheric, hue-driven) ──────────────────────────────── */
.zm-cover {
  position: relative; overflow: hidden;
  border-radius: var(--zm-radius-lg);
  background: var(--zm-surface);
}
.zm-cover-img { position: absolute; inset: 0; }
.zm-cover-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 25% 30%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,255,255,0.12), transparent 50%),
    radial-gradient(1px 1px at 50% 80%, rgba(255,255,255,0.10), transparent 50%);
  background-size: 220px 220px, 320px 320px, 180px 180px;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.zm-cover-noise {
  position: absolute; inset: 0;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.4) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.zm-cover-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55));
  pointer-events: none;
}
.zm-cover-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
  z-index: 1;
}

/* ── Agent operating badge ────────────────────────────────────────── */
.zm-op {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--zm-live) 14%, rgba(0,0,0,.4));
  border: 1px solid color-mix(in oklab, var(--zm-live) 35%, transparent);
  color: var(--zm-live);
  font-family: var(--zm-font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.zm-op-dot { position: relative; width: 8px; height: 8px; flex-shrink: 0; }
.zm-op-dot i {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--zm-live); box-shadow: 0 0 10px var(--zm-live);
  animation: zm-pulse 1.4s ease-out infinite;
}
@keyframes zm-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.6); } }

/* ── Tag ──────────────────────────────────────────────────────────── */
.zm-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(0,0,0,.3); border: 1px solid var(--zm-line-soft);
  font-family: var(--zm-font-mono); font-size: 10.5px;
  color: var(--zm-text-2);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.zm-tag.auto { color: var(--zm-agent); border-color: color-mix(in oklab, var(--zm-agent) 30%, var(--zm-line)); }
.zm-tag.solid { background: var(--zm-surface); }
.zm-tag.kind {
  background: color-mix(in oklab, var(--zm-ember) 14%, var(--zm-surface));
  color: var(--zm-ember);
  border-color: color-mix(in oklab, var(--zm-ember) 35%, var(--zm-line));
}
.zm-tag.kind[data-kind="module"]    { background: color-mix(in oklab, var(--zm-ember)  16%, var(--zm-surface)); color: var(--zm-ember);  border-color: color-mix(in oklab, var(--zm-ember)  35%, var(--zm-line)); }
.zm-tag.kind[data-kind="component"] { background: color-mix(in oklab, var(--zm-trace)  16%, var(--zm-surface)); color: var(--zm-trace);  border-color: color-mix(in oklab, var(--zm-trace)  35%, var(--zm-line)); }
.zm-tag.kind[data-kind="bundle"]    { background: color-mix(in oklab, var(--zm-violet) 16%, var(--zm-surface)); color: var(--zm-violet); border-color: color-mix(in oklab, var(--zm-violet) 35%, var(--zm-line)); }
.zm-tag.kind[data-kind="material"]  { background: color-mix(in oklab, var(--zm-human)  16%, var(--zm-surface)); color: var(--zm-human);  border-color: color-mix(in oklab, var(--zm-human)  35%, var(--zm-line)); }
.zm-tag.kind[data-kind="texture"]   { background: color-mix(in oklab, var(--zm-agent)  16%, var(--zm-surface)); color: var(--zm-agent);  border-color: color-mix(in oklab, var(--zm-agent)  35%, var(--zm-line)); }
.zm-tag.kind[data-kind="shader"]    { background: color-mix(in oklab, var(--zm-live)   16%, var(--zm-surface)); color: var(--zm-live);   border-color: color-mix(in oklab, var(--zm-live)   35%, var(--zm-line)); }
.zm-tag.kind[data-kind="mesh"]      { background: color-mix(in oklab, var(--zm-trace)  16%, var(--zm-surface)); color: var(--zm-trace);  border-color: color-mix(in oklab, var(--zm-trace)  35%, var(--zm-line)); }
.zm-tag.kind[data-kind="audio"]     { background: color-mix(in oklab, var(--zm-down)   16%, var(--zm-surface)); color: var(--zm-down);   border-color: color-mix(in oklab, var(--zm-down)   35%, var(--zm-line)); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.zm-btn {
  appearance: none; border: 1px solid var(--zm-line); background: var(--zm-surface);
  color: var(--zm-text); height: 38px; padding: 0 16px;
  border-radius: 999px;
  font-family: var(--zm-font-sans); font-size: 13px; font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.zm-btn:hover { background: var(--zm-surface-2); border-color: var(--zm-text-4); }
.zm-btn.primary {
  background: var(--zm-text); color: var(--zm-bg); border-color: var(--zm-text);
}
.zm-btn.primary:hover { background: var(--zm-text-2); border-color: var(--zm-text-2); }
.zm-btn.launch {
  background: linear-gradient(135deg, var(--zm-ember), var(--zm-ember-2));
  color: oklch(0.18 0.01 60); border-color: transparent;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--zm-ember) 60%, transparent), 0 8px 28px -8px var(--zm-ember);
  font-weight: 600; height: 44px; padding: 0 22px; font-size: 14px;
}
.zm-btn.launch:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--zm-ember), 0 12px 32px -6px var(--zm-ember); }
.zm-btn.ghost { background: rgba(255,255,255,.04); }

/* ── UI shells that aren't wired to backend yet ─────────────────────
 * Visible WIP marker — diagonal hatching + WIP corner badge, so every
 * unfinished control is self-documenting. Do NOT just hide these:
 * they're the punch list for the next backend connection pass.
 *
 * `.unwired` is the general marker; it can decorate any element
 * (stat cells, tab buttons, card sections, anything). `.zm-btn.unwired`
 * adds the disabled-button affordance on top.
 */
.unwired {
  position: relative;
  background-image:
    repeating-linear-gradient(
      135deg,
      color-mix(in oklab, var(--zm-ember) 6%, transparent) 0 6px,
      transparent 6px 12px
    );
}
.unwired::after {
  content: "WIP";
  position: absolute; top: -7px; right: -6px;
  font-family: var(--zm-font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.06em; padding: 1px 6px; border-radius: 999px;
  background: color-mix(in oklab, var(--zm-ember) 18%, transparent);
  color: var(--zm-ember);
  border: 1px solid color-mix(in oklab, var(--zm-ember) 35%, transparent);
  z-index: 2;
  pointer-events: none;
}
/* Inline variant — same hatching but the WIP chip sits next to the
 * label instead of in the corner. Use on tab-button labels and stat
 * labels where a corner badge would clip. */
.unwired-inline { position: relative; }
.unwired-inline::after {
  content: "WIP";
  display: inline-block; margin-left: 6px;
  font-family: var(--zm-font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.06em; padding: 1px 5px; border-radius: 999px;
  background: color-mix(in oklab, var(--zm-ember) 18%, transparent);
  color: var(--zm-ember);
  border: 1px solid color-mix(in oklab, var(--zm-ember) 35%, transparent);
  vertical-align: middle;
}

.zm-btn.unwired,
.zm-btn.unwired:hover {
  cursor: not-allowed;
  color: color-mix(in oklab, var(--zm-text-3) 75%, transparent);
  border-color: color-mix(in oklab, var(--zm-text-4) 35%, transparent);
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in oklab, var(--zm-ember) 6%, transparent) 0 6px,
      transparent 6px 12px
    ),
    rgba(255,255,255,.02);
  box-shadow: none;
  transform: none;
}
/* Title-attribute tooltip is enough; no JS handler needed. The
 * disabled attribute on the underlying <button> stops the click. */

/* ── BROWSE: hero + tools ─────────────────────────────────────────── */
.zm-browse-hero {
  max-width: 1400px; margin: 0 auto; padding: 36px 24px 18px;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
}
.zm-browse-hero h1 {
  font-family: var(--zm-font-display); font-size: 64px; line-height: 0.98; margin: 0;
  letter-spacing: -0.025em;
  font-style: italic;
}
.zm-browse-hero h1 em { font-style: normal; color: var(--zm-ember); }
.zm-browse-hero p { margin: 12px 0 0; max-width: 56ch; color: var(--zm-text-2); font-size: 16px; }
.zm-browse-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.zm-seg {
  display: inline-flex; padding: 3px;
  background: var(--zm-surface); border: 1px solid var(--zm-line);
  border-radius: 999px;
}
.zm-seg button, .zm-seg a {
  appearance: none; border: 0; background: transparent;
  color: var(--zm-text-3); font: inherit; font-size: 12px; font-weight: 500;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font-family: var(--zm-font-mono); letter-spacing: 0.02em;
  text-transform: lowercase; text-decoration: none;
}
.zm-seg button:hover, .zm-seg a:hover { color: var(--zm-text); }
.zm-seg button.active, .zm-seg a.active { background: var(--zm-surface-hi); color: var(--zm-text); }

.zm-browse-page {
  max-width: 1400px; margin: 0 auto; padding: 8px 24px 64px;
  display: grid; grid-template-columns: 1fr 320px; gap: 28px;
}
@media (max-width: 1100px) {
  .zm-browse-page { grid-template-columns: 1fr; }
  .zm-browse-hero h1 { font-size: 48px; }
}

/* Featured (large) world card */
.zm-feature {
  position: relative; height: 460px; border-radius: var(--zm-radius-xl);
  overflow: hidden; cursor: pointer;
  border: 1px solid var(--zm-line);
  margin-bottom: 18px;
  display: block;
}
.zm-feature .zm-cover-overlay { padding: 32px; }
.zm-feature-eyebrow {
  font-family: var(--zm-font-mono); font-size: 11px;
  color: rgba(255,255,255,.7); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.zm-feature h2 {
  font-family: var(--zm-font-display); font-size: 64px; line-height: 0.95;
  color: #fff; margin: 0; letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
  font-style: italic;
}
.zm-feature p {
  margin: 12px 0 0; max-width: 50ch;
  font-size: 16px; color: rgba(255,255,255,.85);
  text-shadow: 0 1px 14px rgba(0,0,0,.5);
}
.zm-feature-foot {
  display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap;
}

/* Grid of worlds */
.zm-feed-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.zm-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--zm-radius-lg);
  overflow: hidden; cursor: pointer;
  border: 1px solid var(--zm-line);
  transition: transform .25s ease, border-color .15s;
  display: block;
}
.zm-card:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--zm-ember) 60%, var(--zm-line)); }
.zm-card .zm-cover-overlay { padding: 16px; gap: 6px; padding-bottom: 44px; }
.zm-card-eyebrow {
  font-family: var(--zm-font-mono); font-size: 10px;
  color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 4px; display: flex; gap: 8px; align-items: center;
}
.zm-card h3 {
  font-family: var(--zm-font-display); font-size: 26px; line-height: 1.05;
  color: #fff; margin: 0;
  text-shadow: 0 1px 14px rgba(0,0,0,.5); letter-spacing: -0.015em;
  font-style: italic;
}
.zm-card-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px;
  font-family: var(--zm-font-mono); font-size: 11px; color: rgba(255,255,255,.8);
}
.zm-card-quality {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  font-family: var(--zm-font-mono); font-size: 11px; color: rgba(255,255,255,.95);
}
.zm-card-quality b { color: var(--zm-live); font-weight: 600; }
.zm-card-op { position: absolute; top: 14px; left: 14px; }

/* Wide list-mode card */
.zm-card.wide {
  aspect-ratio: auto; height: 200px;
  display: grid; grid-template-columns: 320px 1fr;
}
.zm-card.wide .zm-cover-overlay { padding: 22px; justify-content: flex-end; padding-bottom: 44px; }
.zm-card.wide .zm-card-side {
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  background: var(--zm-surface);
  border-left: 1px solid var(--zm-line);
}
.zm-card.wide h3 { font-size: 30px; color: var(--zm-text); text-shadow: none; }
.zm-card.wide .zm-card-tagline { color: var(--zm-text-2); font-size: 14px; max-width: 50ch; }
.zm-card.wide .zm-card-foot { color: var(--zm-text-3); }

/* Card overlay social strip */
.zm-card-social-strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 14px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.92) 100%);
  display: flex; align-items: center;
  z-index: 3;
  pointer-events: none;
}

/* Side panels */
.zm-side { display: flex; flex-direction: column; gap: 16px; }
.zm-side-card {
  background: var(--zm-surface); border: 1px solid var(--zm-line);
  border-radius: var(--zm-radius-lg); padding: 16px 18px;
}
.zm-side-card h3 {
  margin: 0 0 12px; font-family: var(--zm-font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--zm-text-3);
  display: flex; align-items: center; gap: 8px;
}
.zm-side-stat {
  display: flex; justify-content: space-between; padding: 5px 0;
  font-family: var(--zm-font-mono); font-size: 12px;
}
.zm-side-stat span:first-child { color: var(--zm-text-3); }
.zm-side-stat span:last-child { color: var(--zm-text); font-weight: 500; }
.zm-side-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-top: 1px solid var(--zm-line-soft);
}
.zm-side-row:first-of-type { border-top: 0; }
.zm-side-row-l {
  color: var(--zm-text-3); font-family: var(--zm-font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.zm-side-row-r { color: var(--zm-text); font-family: var(--zm-font-mono); font-size: 12px; }

/* Activity feed */
.zm-activity-item {
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 10px 0; border-top: 1px solid var(--zm-line-soft);
  font-size: 12px;
}
.zm-activity-item:first-child { border-top: 0; padding-top: 0; }
.zm-activity-body { color: var(--zm-text-2); min-width: 0; }
.zm-activity-body b { color: var(--zm-text); cursor: pointer; }
.zm-activity-body b:hover { color: var(--zm-ember); }
.zm-activity-detail {
  display: block; margin-top: 3px; font-size: 11px;
  font-family: var(--zm-font-mono); color: var(--zm-text-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zm-activity-action {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  font-family: var(--zm-font-mono); font-size: 9.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-right: 5px;
}
.zm-activity-action.operating { background: color-mix(in oklab, var(--zm-live) 20%, transparent); color: var(--zm-live); }
.zm-activity-action.rated     { background: color-mix(in oklab, var(--zm-ember) 18%, transparent); color: var(--zm-ember); }
.zm-activity-action.tested    { background: color-mix(in oklab, var(--zm-trace) 18%, transparent); color: var(--zm-trace); }
.zm-activity-action.extracted { background: color-mix(in oklab, var(--zm-violet) 22%, transparent); color: var(--zm-violet); }
.zm-activity-action.endorsed  { background: color-mix(in oklab, var(--zm-human) 18%, transparent); color: var(--zm-human); }
.zm-activity-action.forked    { background: var(--zm-surface-hi); color: var(--zm-text-2); }
.zm-activity-action.commit    { background: color-mix(in oklab, var(--zm-trace) 18%, transparent); color: var(--zm-trace); }
.zm-activity-when {
  font-family: var(--zm-font-mono); font-size: 10px; color: var(--zm-text-4); white-space: nowrap;
}

/* ── WORLD DETAIL ─────────────────────────────────────────────────── */
.zm-detail-hero {
  position: relative; min-height: 620px; overflow: hidden;
}
.zm-detail-hero .zm-cover-img,
.zm-detail-hero .zm-cover-grain,
.zm-detail-hero .zm-cover-noise { position: absolute; inset: 0; }
.zm-detail-hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--zm-bg) 100%);
}
.zm-detail-hero-content {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; padding: 80px 24px 36px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 100%;
}
.zm-detail-eyebrow {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--zm-font-mono); font-size: 12px;
  color: rgba(255,255,255,.85);
}
.zm-detail-title {
  font-family: var(--zm-font-display); font-size: 120px; line-height: 0.92;
  color: #fff; margin: 0; letter-spacing: -0.03em;
  font-style: italic;
  text-shadow: 0 4px 60px rgba(0,0,0,.6);
  max-width: 18ch;
}
@media (max-width: 800px) {
  .zm-detail-title { font-size: 64px; }
  .zm-detail-hero { min-height: 520px; }
  .zm-detail-hero-content { padding-top: 32px; }
}
.zm-detail-tagline {
  max-width: 58ch; color: rgba(255,255,255,.85); font-size: 19px; line-height: 1.45;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
  margin-top: 4px;
}
.zm-detail-actions {
  display: flex; gap: 12px; align-items: center; margin-top: auto; padding-bottom: 36px;
  flex-wrap: wrap;
}

/* Hero corner — bookmark + edit-gear icon stack, top-right of hero. */
.zm-hero-corner {
  position: absolute; top: 22px; right: 24px; z-index: 2;
  display: flex; gap: 6px;
}
.zm-hero-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.42); border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88); cursor: pointer;
  font-size: 17px; line-height: 1; padding: 0;
  backdrop-filter: blur(8px);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}
.zm-hero-icon-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--zm-ember);
  transform: translateY(-1px);
}

/* Reddit-style vote rail beside the title. Vertical: ▲ score ▼. Sits
   to the left of the title block; visitors don't see it (login first). */
.zm-hero-titleblock {
  display: flex; gap: 22px; align-items: flex-start;
}
.zm-hero-titleblock-text { flex: 1; min-width: 0; }
.zm-hero-vote-rail {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  margin-top: 6px;
  min-width: 52px;
}
.zm-hero-vote-arrow {
  background: transparent; border: 0; padding: 4px 8px;
  cursor: pointer; font-size: 16px; line-height: 1;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  transition: color 120ms ease, background 120ms ease;
}
.zm-hero-vote-arrow.up:hover    { color: var(--zm-up);   background: rgba(255, 255, 255, 0.06); }
.zm-hero-vote-arrow.down:hover  { color: var(--zm-down); background: rgba(255, 255, 255, 0.06); }
.zm-hero-vote-score {
  font-family: var(--zm-font-mono); font-size: 14px; line-height: 1;
  color: #fff; font-weight: 600;
  min-width: 2ch; text-align: center;
}
@media (max-width: 800px) {
  .zm-hero-titleblock { gap: 12px; }
  .zm-hero-vote-rail  { min-width: 44px; }
}

/* Foldable summary body — capped at ~360px so a long README doesn't
   bury the comments below. Fade-out gradient hints at hidden content;
   expanded state removes both cap and fade. */
.zm-body-content {
  max-height: 360px;
  overflow: hidden;
  position: relative;
  transition: max-height 240ms ease;
}
.zm-body-content::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--zm-bg) 100%);
  pointer-events: none;
}
.zm-body-content.expanded {
  max-height: none;
}
.zm-body-content.expanded::after { display: none; }
.zm-body-fold-toggle {
  display: inline-block;
  margin-top: 12px;
  background: transparent;
  border: 1px solid var(--zm-line);
  color: var(--zm-text-3);
  font-family: var(--zm-font-mono);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.zm-body-fold-toggle:hover {
  color: var(--zm-ember);
  border-color: var(--zm-ember);
  background: rgba(255, 255, 255, 0.02);
}

.zm-stat-inline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--zm-font-mono); font-size: 12px;
  color: rgba(255,255,255,.85);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.zm-stat-inline b { color: #fff; font-weight: 500; }

/* Detail body grid */
.zm-detail-body {
  max-width: 1400px; margin: 0 auto; padding: 0 24px 64px;
  display: grid; grid-template-columns: 1fr 360px; gap: 32px;
}
@media (max-width: 1100px) { .zm-detail-body { grid-template-columns: 1fr; } }

.zm-section { margin-bottom: 36px; }
.zm-section h2 {
  margin: 0 0 16px;
  font-family: var(--zm-font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--zm-text-3);
  display: flex; align-items: center; gap: 10px;
}
.zm-section h2::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--zm-line) 0, transparent 100%);
}

.zm-section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 18px;
  margin: 36px 0 18px;
}
.zm-section-eyebrow {
  font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-ember);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px;
}
.zm-section-title {
  font-family: var(--zm-font-display); font-size: 28px; line-height: 1.1; margin: 0;
  letter-spacing: -0.02em; font-style: italic;
}
.zm-section-blurb { color: var(--zm-text-3); font-size: 14px; max-width: 56ch; margin: 10px 0 0; line-height: 1.5; }
.zm-link {
  background: transparent; border: 0; color: var(--zm-ember); cursor: pointer;
  font-family: var(--zm-font-mono); font-size: 12px;
  white-space: nowrap;
  align-self: end;
  padding-bottom: 4px;
  text-decoration: none;
}
.zm-link:hover { text-decoration: underline; }

/* Pass timeline */
.zm-timeline { position: relative; padding-left: 24px; }
.zm-timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 1px; background: linear-gradient(180deg, var(--zm-ember), var(--zm-violet), var(--zm-trace));
  opacity: 0.5;
}
.zm-tl-step {
  position: relative; padding: 10px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
}
.zm-tl-step::before {
  content: ""; position: absolute; left: -22px; top: 16px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--zm-bg); border: 2px solid var(--zm-line);
}
.zm-tl-step.uploaded::before  { border-color: var(--zm-text-3); }
.zm-tl-step.scanned::before, .zm-tl-step.commit::before { border-color: var(--zm-trace); background: var(--zm-trace); }
.zm-tl-step.tested::before    { border-color: var(--zm-trace); }
.zm-tl-step.rated::before     { border-color: var(--zm-ember); background: var(--zm-ember); }
.zm-tl-step.extracted::before { border-color: var(--zm-violet); background: var(--zm-violet); }
.zm-tl-step.endorsed::before  { border-color: var(--zm-human); }
.zm-tl-step.operating::before {
  border-color: var(--zm-live); background: var(--zm-live);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--zm-live) 25%, transparent);
  animation: zm-pulse 1.4s ease-out infinite;
}
.zm-tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zm-tl-kind {
  font-family: var(--zm-font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--zm-text-2);
  padding: 2px 7px; border-radius: 4px; background: var(--zm-surface-hi);
}
.zm-tl-step.operating .zm-tl-kind { background: color-mix(in oklab, var(--zm-live) 20%, transparent); color: var(--zm-live); }
.zm-tl-step.rated .zm-tl-kind { background: color-mix(in oklab, var(--zm-ember) 18%, transparent); color: var(--zm-ember); }
.zm-tl-step.extracted .zm-tl-kind { background: color-mix(in oklab, var(--zm-violet) 22%, transparent); color: var(--zm-violet); }
.zm-tl-note { color: var(--zm-text-2); font-size: 13.5px; margin-top: 4px; word-break: break-word; }
.zm-tl-when { font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4); white-space: nowrap; }

/* Inline code */
code, .zm-code-inline {
  font-family: var(--zm-font-mono); font-size: 12.5px;
  background: var(--zm-surface-2); padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--zm-line-soft);
  color: var(--zm-text);
}

/* ── Comments ─────────────────────────────────────────────────────── */
.zm-comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--zm-line-soft);
}
.zm-comment:last-child { border-bottom: 0; }
.zm-comment.nested {
  margin-left: 28px; padding-left: 14px;
  border-left: 1px solid var(--zm-line-soft); border-bottom: 0;
  padding-bottom: 0;
}
.zm-comment-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
  font-family: var(--zm-font-mono); font-size: 11.5px; color: var(--zm-text-3);
}
.zm-comment-body { color: var(--zm-text-2); font-size: 14.5px; line-height: 1.6; word-break: break-word; }
.zm-comment-actions {
  display: flex; align-items: center; gap: 14px;
  margin-top: 8px;
  font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4);
}
.zm-comment-actions button {
  appearance: none; background: transparent; border: 0;
  color: var(--zm-text-4); cursor: pointer; padding: 0;
  font: inherit;
}
.zm-comment-actions button:hover { color: var(--zm-text-2); }
.zm-comment-input {
  background: var(--zm-surface); border: 1px solid var(--zm-line);
  border-radius: var(--zm-radius-lg); padding: 14px 16px; margin-bottom: 16px;
}
.zm-comment-input textarea {
  width: 100%; min-height: 60px;
  background: transparent; border: 0; outline: 0; resize: vertical;
  color: var(--zm-text); font: inherit; font-size: 14px; font-family: var(--zm-font-sans);
}
.zm-comment-input textarea::placeholder { color: var(--zm-text-4); }
.zm-comment-input-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 8px;
  font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4);
  flex-wrap: wrap; gap: 8px;
}

/* Detail aside */
.zm-detail-side { display: flex; flex-direction: column; gap: 18px; }
.zm-related { display: flex; flex-direction: column; gap: 10px; }
.zm-related-card {
  display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center;
  cursor: pointer;
  padding: 8px; margin: -8px;
  border-radius: 10px;
  text-decoration: none;
}
.zm-related-card:hover { background: var(--zm-surface-2); }
.zm-related-thumb {
  width: 76px; height: 60px; border-radius: 8px;
  position: relative; overflow: hidden;
  border: 1px solid var(--zm-line);
}
.zm-related-info { min-width: 0; }
.zm-related-info b {
  font-family: var(--zm-font-display); font-style: italic;
  font-size: 16px; color: var(--zm-text); display: block; line-height: 1.1;
}
.zm-related-info span {
  font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-3);
}

/* ── PART (asset) DETAIL ──────────────────────────────────────────── */
.zm-part-hero {
  max-width: 1100px; margin: 0 auto; padding: 56px 24px 24px;
  display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: start;
}
@media (max-width: 800px) {
  .zm-part-hero { grid-template-columns: 1fr; padding-top: 32px; }
}
.zm-part-preview {
  height: 320px; border-radius: var(--zm-radius-xl);
  position: relative; overflow: hidden;
  border: 1px solid var(--zm-line);
  background: var(--zm-surface);
  display: grid; place-items: center;
}
.zm-part-preview-glyph {
  font-family: var(--zm-font-mono); font-size: 120px; line-height: 1;
  color: var(--zm-ember);
  text-shadow: 0 0 60px var(--zm-ember);
  position: relative; z-index: 1;
}
.zm-part-eyebrow {
  font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.zm-part-title {
  font-family: var(--zm-font-display); font-style: italic;
  font-size: 64px; line-height: 1; margin: 16px 0 0;
  letter-spacing: -0.02em;
}
.zm-part-note { font-size: 17px; color: var(--zm-text-2); margin: 12px 0 0; max-width: 50ch; }
.zm-part-actions { display: flex; gap: 10px; margin-top: 22px; align-items: center; flex-wrap: wrap; }

.zm-part-body {
  max-width: 1100px; margin: 0 auto; padding: 0 24px 64px;
  display: grid; grid-template-columns: 1fr 320px; gap: 32px;
}
@media (max-width: 900px) { .zm-part-body { grid-template-columns: 1fr; } }

/* ── Use-with — single-line code chip ─────────────────────────────── */
.zm-usewith {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 12px 8px 14px; border-radius: 8px;
  background: color-mix(in oklab, oklch(0.16 0.04 270) 70%, var(--zm-surface));
  border: 1px solid var(--zm-line);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-family: var(--zm-font-mono);
  max-width: 100%;
  vertical-align: middle;
}
.zm-usewith:hover {
  border-color: color-mix(in oklab, var(--zm-violet) 50%, var(--zm-line));
  background: color-mix(in oklab, var(--zm-violet) 8%, var(--zm-surface));
}
.zm-usewith-label {
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--zm-violet); font-weight: 600;
  padding-right: 10px; border-right: 1px solid var(--zm-line);
  flex-shrink: 0;
}
.zm-usewith-code {
  font-family: var(--zm-font-mono); font-size: 13px;
  color: var(--zm-text); font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap; overflow-x: auto;
  flex: 1; min-width: 0;
  background: transparent; border: 0; padding: 0;
}
.zm-usewith-code::-webkit-scrollbar { display: none; }
.zm-usewith-copy {
  font-size: 13px; color: var(--zm-text-4);
  flex-shrink: 0;
  transition: color .15s;
  font-family: var(--zm-font-mono);
}
.zm-usewith:hover .zm-usewith-copy { color: var(--zm-violet); }
.zm-usewith.compact { padding: 7px 11px 7px 12px; }
.zm-usewith.compact .zm-usewith-code { font-size: 12px; }
.zm-usewith.compact .zm-usewith-label { font-size: 9px; padding-right: 8px; }

/* ── Social signal row ────────────────────────────────────────────── */
.zm-social {
  display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 12px;
  font-family: var(--zm-font-mono); font-size: 11.5px; color: var(--zm-text-3);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.zm-social-vote {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 3px 9px 3px 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--zm-up) 12%, var(--zm-surface-2));
  border: 1px solid color-mix(in oklab, var(--zm-up) 22%, var(--zm-line));
  color: var(--zm-up);
  font-weight: 600;
  white-space: nowrap;
}
.zm-social-up { font-size: 9.5px; line-height: 1; transform: translateY(-1px); }
.zm-social-num { font-size: 12px; }
.zm-social-pct { color: color-mix(in oklab, var(--zm-up) 50%, var(--zm-text-3)); font-weight: 400; font-size: 10.5px; }
.zm-social-stat {
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; color: var(--zm-text-3);
}
.zm-social-stat > span:first-child {
  color: var(--zm-text-4); font-size: 11.5px;
  width: 11px; text-align: center;
}
.zm-social-mini { font-size: 10.5px; gap: 9px; }
.zm-social-mini .zm-social-vote { padding: 2px 7px; }
.zm-social-mini .zm-social-num { font-size: 11px; }
.zm-social-mini .zm-social-up { font-size: 9px; }
.zm-social-hero {
  font-size: 12.5px; gap: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.zm-social-hero .zm-social-stat,
.zm-social-hero .zm-social-stat > span:first-child { color: rgba(255,255,255,0.92); }
.zm-social-hero .zm-social-vote {
  background: color-mix(in oklab, var(--zm-up) 28%, rgba(0,0,0,0.5));
  border-color: color-mix(in oklab, var(--zm-up) 55%, transparent);
  backdrop-filter: blur(6px);
  color: #fff;
}
.zm-social-hero .zm-social-pct { color: rgba(255,255,255,0.75); }
.zm-social-feature {
  font-size: 11.5px; gap: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.zm-social-feature .zm-social-stat,
.zm-social-feature .zm-social-stat > span:first-child { color: rgba(255,255,255,0.88); }
.zm-social-feature .zm-social-vote {
  background: color-mix(in oklab, var(--zm-up) 24%, rgba(0,0,0,0.5));
  border-color: color-mix(in oklab, var(--zm-up) 50%, transparent);
  color: #fff; backdrop-filter: blur(6px);
}
.zm-social-feature .zm-social-pct { color: rgba(255,255,255,0.7); }
.zm-social-strip {
  font-size: 10.5px; gap: 11px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.zm-social-strip .zm-social-stat,
.zm-social-strip .zm-social-stat > span:first-child { color: rgba(255,255,255,0.85); }
.zm-social-strip .zm-social-vote {
  padding: 2px 8px;
  background: color-mix(in oklab, var(--zm-up) 32%, rgba(0,0,0,0.55));
  border-color: color-mix(in oklab, var(--zm-up) 55%, transparent);
  color: #fff; backdrop-filter: blur(6px);
}
.zm-social-strip .zm-social-num { font-size: 11px; }
.zm-social-strip .zm-social-pct { color: rgba(255,255,255,0.7); }

/* Detail-sidebar breakdown */
.zm-social-breakdown { display: contents; }

/* ── Compatibility badges ─────────────────────────────────────────── */
.zm-compat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px 2px 7px; border-radius: 999px;
  font-family: var(--zm-font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--zm-line);
  white-space: nowrap;
}
.zm-compat-ok    { color: var(--zm-live);  border-color: color-mix(in oklab, var(--zm-live) 40%, var(--zm-line));  background: color-mix(in oklab, var(--zm-live) 10%, transparent); }
.zm-compat-shim  { color: var(--zm-ember); border-color: color-mix(in oklab, var(--zm-ember) 40%, var(--zm-line)); background: color-mix(in oklab, var(--zm-ember) 10%, transparent); }
.zm-compat-no    { color: var(--zm-down);  border-color: color-mix(in oklab, var(--zm-down) 40%, var(--zm-line));  background: color-mix(in oklab, var(--zm-down) 10%, transparent); }

/* ── Score breakdown card ─────────────────────────────────────────── */
.zm-score-card {
  position: relative;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--zm-ember) 6%, var(--zm-surface)) 0%,
    var(--zm-surface) 100%);
  border: 1px solid color-mix(in oklab, var(--zm-ember) 25%, var(--zm-line));
  border-radius: var(--zm-radius-lg);
  padding: 28px 32px 24px;
  overflow: hidden;
}
.zm-score-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, color-mix(in oklab, var(--zm-ember) 16%, transparent), transparent 60%);
  pointer-events: none;
}
.zm-score-head {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--zm-line-soft);
  margin-bottom: 20px;
}
.zm-score-eyebrow {
  font-family: var(--zm-font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--zm-ember);
  margin-bottom: 8px;
}
.zm-score-title {
  font-family: var(--zm-font-display); font-size: 30px; line-height: 1.1;
  letter-spacing: -0.02em; font-style: italic;
  color: var(--zm-text); margin: 0; max-width: 22ch;
}
.zm-score-overall {
  text-align: right;
  padding-left: 24px;
  border-left: 1px solid var(--zm-line-soft);
}
.zm-score-overall-num {
  font-family: var(--zm-font-display); font-size: 64px; line-height: 1;
  font-style: italic; color: var(--zm-ember);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 32px color-mix(in oklab, var(--zm-ember) 40%, transparent);
}
.zm-score-overall-label {
  font-family: var(--zm-font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--zm-text-3); margin-top: 4px;
}
.zm-score-verdict {
  position: relative;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 12px 16px; margin-bottom: 22px;
  background: var(--zm-surface-2); border-radius: 8px;
  border-left: 2px solid var(--zm-ember);
}
.zm-score-quote {
  font-family: var(--zm-font-display); font-style: italic;
  font-size: 16px; color: var(--zm-text);
  line-height: 1.5;
}
.zm-score-reviewer {
  font-family: var(--zm-font-mono); font-size: 11.5px;
  color: var(--zm-text-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.zm-score-formula {
  position: relative;
  display: flex; flex-direction: column;
  font-variant-numeric: tabular-nums;
}
.zm-score-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(120px, 1fr) auto;
  align-items: center; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--zm-line-soft);
}
.zm-score-row:last-of-type { border-bottom: 0; }
.zm-score-row-l { min-width: 0; }
.zm-score-row-label {
  font-family: var(--zm-font-sans); font-size: 14px; font-weight: 600;
  color: var(--zm-text); margin-bottom: 2px;
}
.zm-score-row-blurb { font-size: 12px; color: var(--zm-text-3); }
.zm-score-row-bar { display: flex; align-items: center; gap: 10px; }
.zm-score-row-bar-track {
  flex: 1; height: 6px; border-radius: 3px;
  background: var(--zm-surface-hi); overflow: hidden;
}
.zm-score-row-bar-fill { height: 100%; background: var(--zm-ember); border-radius: 3px; }
.zm-score-row-val {
  font-family: var(--zm-font-mono); font-size: 13px; font-weight: 600;
  color: var(--zm-text); min-width: 28px; text-align: right;
}
.zm-score-row-r {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 8px;
  font-family: var(--zm-font-mono); font-size: 12px;
  color: var(--zm-text-3);
}
.zm-score-row-weight { color: var(--zm-text-3); }
.zm-score-row-eq { color: var(--zm-text-4); }
.zm-score-row-contrib { color: var(--zm-text); font-weight: 600; font-size: 14px; }
.zm-score-sum {
  display: flex; justify-content: flex-end; align-items: baseline;
  gap: 14px;
  margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--zm-line);
  font-family: var(--zm-font-mono);
}
.zm-score-sum-label {
  font-size: 11px; color: var(--zm-text-3);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.zm-score-sum-val {
  font-size: 18px; font-weight: 600; color: var(--zm-ember);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .zm-score-head { grid-template-columns: 1fr; }
  .zm-score-overall { padding-left: 0; border-left: 0; text-align: left; }
  .zm-score-row { grid-template-columns: 1fr; gap: 8px; }
  .zm-score-row-r { justify-content: flex-start; }
}

/* Compact score widget (sidebar) */
.zm-score-mini {
  background: var(--zm-surface); border: 1px solid var(--zm-line-soft);
  border-radius: 12px; padding: 18px;
}
.zm-score-mini-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 4px;
}
.zm-score-mini-eyebrow {
  font-family: var(--zm-font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--zm-ember);
}
.zm-score-mini-num {
  font-family: var(--zm-font-display); font-style: italic;
  font-size: 44px; line-height: 1; color: var(--zm-text);
  letter-spacing: -0.02em;
}
.zm-score-mini-passes {
  font-family: var(--zm-font-mono); font-size: 10.5px;
  color: var(--zm-text-4); margin-bottom: 14px;
}
.zm-score-mini-rows { display: flex; flex-direction: column; gap: 8px; }
.zm-score-mini-row {
  display: grid; grid-template-columns: 70px 1fr 28px;
  align-items: center; gap: 10px;
  font-family: var(--zm-font-mono); font-size: 11px;
  color: var(--zm-text-3);
}
.zm-score-mini-row b {
  font-family: var(--zm-font-mono); font-weight: 500; color: var(--zm-text-2);
  text-transform: lowercase;
}
.zm-score-mini-bar {
  height: 4px; background: var(--zm-surface-2); border-radius: 999px; overflow: hidden;
}
.zm-score-mini-bar i { display: block; height: 100%; background: var(--zm-ember); border-radius: 999px; }
.zm-score-mini-val {
  font-variant-numeric: tabular-nums; text-align: right;
  color: var(--zm-text-2); font-weight: 600;
}

/* ── Per-content card (Inside this world) ─────────────────────────── */
.zm-content-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
/* List variant — one row per item, faster to scan. */
.zm-content-grid.zm-content-list {
  grid-template-columns: 1fr;
  gap: 8px;
}
.zm-content-grid.zm-content-list .zm-content-card {
  flex-direction: row; align-items: center; padding: 10px 14px; gap: 16px;
}
.zm-content-grid.zm-content-list .zm-content-card-head {
  flex: 1; min-width: 0;
}
.zm-content-grid.zm-content-list .zm-content-body { display: none; }
.zm-content-grid.zm-content-list .zm-content-foot {
  flex: 0 0 auto; grid-template-columns: auto;
}

/* ── Card-fold UI (Inside-this-world inline accordion) ──────────── */
.zm-card-foldable { display: flex; flex-direction: column; gap: 0; }
.zm-card-foldable-row { position: relative; }
.zm-card-foldable-row .zm-content-card { padding-right: 44px; }
.zm-card-foldable-row .zm-wdr-part-card { padding-right: 44px; }

.zm-fold-arrow {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--zm-surface-2);
  border: 1px solid var(--zm-line);
  border-radius: 6px;
  color: var(--zm-text-2);
  cursor: pointer;
  font-size: 14px; line-height: 1;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.zm-fold-arrow:hover {
  border-color: var(--zm-ember);
  color: var(--zm-text-1);
  background: color-mix(in oklab, var(--zm-ember) 12%, var(--zm-surface));
}

.zm-fold-panel {
  background: var(--zm-surface-2);
  border: 1px solid var(--zm-line);
  border-top: none;
  border-radius: 0 0 10px 10px;
  margin-top: -1px;
  padding: 12px 14px;
  font-size: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.zm-fold-panel-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--zm-font-mono); font-size: 10.5px;
  color: var(--zm-text-3);
}
.zm-fold-panel-tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  background: var(--zm-surface);
  border: 1px solid var(--zm-line);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.zm-fold-panel-path {
  color: var(--zm-text-4); word-break: break-all;
}
.zm-fold-panel-empty { color: var(--zm-text-4); font-style: italic; padding: 4px 0; }

.zm-fold-children { display: flex; flex-direction: column; gap: 4px; }
.zm-fold-child {
  display: grid; grid-template-columns: 22px 1fr auto auto;
  align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 6px;
  background: var(--zm-surface);
  border: 1px solid var(--zm-line-soft);
  font-family: var(--zm-font-mono); font-size: 11.5px;
  color: var(--zm-text-2); text-decoration: none;
}
.zm-fold-child:hover { border-color: var(--zm-text-4); color: var(--zm-text-1); }
.zm-fold-child-glyph { color: var(--zm-text-3); font-size: 13px; }
.zm-fold-child-name { color: var(--zm-text-1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zm-fold-child-kind { color: var(--zm-text-4); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; }
.zm-fold-child-arrow { color: var(--zm-ember); font-size: 11px; }

.zm-fold-panel-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 6px; border-top: 1px solid var(--zm-line-soft);
  font-family: var(--zm-font-mono); font-size: 10.5px;
}
.zm-fold-panel-info { color: var(--zm-text-4); }
.zm-fold-panel-view-full { color: var(--zm-ember); text-decoration: none; margin-left: auto; }
.zm-fold-panel-view-full:hover { text-decoration: underline; }

/* Composite fold-panel: prominent description + README + grouped sections. */
.zm-fold-summary {
  font-size: 13.5px; line-height: 1.55; color: var(--zm-text-1);
  padding: 4px 0;
}
.zm-fold-readme {
  background: var(--zm-surface);
  border: 1px solid var(--zm-line);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.zm-fold-readme-head {
  font-family: var(--zm-font-mono); font-size: 10.5px;
  color: var(--zm-text-3); text-transform: uppercase; letter-spacing: 0.06em;
}
.zm-fold-readme-body {
  font-size: 13px; line-height: 1.6; color: var(--zm-text-2);
}
.zm-fold-readme-body h1 { font-size: 17px; margin: 8px 0 4px; }
.zm-fold-readme-body h2 { font-size: 15px; margin: 8px 0 4px; }
.zm-fold-readme-body h3 { font-size: 13.5px; margin: 6px 0 2px; }
.zm-fold-readme-body p { margin: 6px 0; }
.zm-fold-readme-body ul, .zm-fold-readme-body ol { margin: 4px 0 4px 18px; padding: 0; }
.zm-fold-readme-body code {
  background: var(--zm-surface-2); padding: 1px 5px; border-radius: 3px;
  font-size: 12px; font-family: var(--zm-font-mono);
}
.zm-fold-readme-body pre {
  margin: 6px 0; padding: 8px 10px;
  background: var(--zm-surface-2); border: 1px solid var(--zm-line-soft);
  border-radius: 6px; overflow-x: auto;
  font-size: 11.5px; line-height: 1.45;
}
.zm-fold-readme-trunc {
  text-align: right;
  color: var(--zm-text-4); font-family: var(--zm-font-mono); font-size: 10px;
}

.zm-fold-section { display: flex; flex-direction: column; gap: 6px; }
.zm-fold-section-head {
  font-family: var(--zm-font-mono); font-size: 10.5px;
  color: var(--zm-text-3); text-transform: uppercase; letter-spacing: 0.06em;
}
.zm-fold-section-toggle {
  background: transparent; border: 0; padding: 4px 0; cursor: pointer;
  font-family: var(--zm-font-mono); font-size: 10.5px;
  color: var(--zm-text-3); text-transform: uppercase; letter-spacing: 0.06em;
  text-align: left;
}
.zm-fold-section-toggle:hover { color: var(--zm-text-1); }
.zm-fold-children.dim .zm-fold-child {
  background: transparent; border-color: var(--zm-line-soft); opacity: 0.85;
}

.zm-fold-leaf-meta { color: var(--zm-text-2); font-family: var(--zm-font-mono); font-size: 11px; }
.zm-fold-leaf-meta-row { display: block; margin: 2px 0; }
.zm-fold-leaf-image { display: flex; flex-direction: column; gap: 6px; }
.zm-fold-leaf-source pre.zm-fold-leaf-pre {
  margin: 0; padding: 10px 12px;
  background: var(--zm-surface);
  border: 1px solid var(--zm-line);
  border-radius: 6px;
  font-size: 11.5px; line-height: 1.45;
  max-height: 320px; overflow: auto;
  font-family: var(--zm-font-mono); color: var(--zm-text-1);
  white-space: pre;
}
.zm-fold-leaf-trunc {
  text-align: right; padding-top: 4px;
  color: var(--zm-text-4); font-family: var(--zm-font-mono); font-size: 10px;
}

/* List-mode tightens the card padding; the fold panel still anchors
   below the row but inherits the slim padding. */
.zm-content-grid.zm-content-list .zm-card-foldable-row .zm-content-card { padding-right: 44px; }

/* Bottom pagination strip used by Inside-this-world tabs. */
.zm-pagination {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--zm-line-soft);
  gap: 14px; flex-wrap: wrap;
}
.zm-pagination-info {
  font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4);
}
.zm-pagination-pages { display: inline-flex; align-items: center; gap: 4px; }
.zm-page-btn {
  background: var(--zm-surface-2);
  border: 1px solid var(--zm-line);
  color: var(--zm-text-2);
  font-family: var(--zm-font-mono); font-size: 11px;
  padding: 4px 10px; border-radius: 6px;
  cursor: pointer; min-width: 28px;
}
.zm-page-btn:hover:not(:disabled) { border-color: var(--zm-text-4); color: var(--zm-text-1); }
.zm-page-btn.current {
  background: color-mix(in oklab, var(--zm-ember) 22%, var(--zm-surface));
  border-color: var(--zm-ember);
  color: var(--zm-text-1);
}
.zm-page-btn:disabled { opacity: 0.35; cursor: default; }
.zm-page-gap { font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4); padding: 0 4px; }
.zm-content-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--zm-surface);
  border: 1px solid var(--zm-line);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none;
}
.zm-content-card:hover {
  border-color: var(--zm-text-4);
  transform: translateY(-1px);
}
.zm-content-card-head {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 10px;
}
.zm-content-glyph {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--zm-surface-hi); border-radius: 6px;
  font-size: 14px;
}
.zm-content-id { min-width: 0; }
.zm-content-name {
  font-family: var(--zm-font-mono); font-size: 13px; font-weight: 600;
  color: var(--zm-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zm-content-type {
  font-family: var(--zm-font-mono); font-size: 10.5px;
  color: var(--zm-text-3); text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 2px;
}
.zm-content-body {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  background: var(--zm-surface-2); border-radius: 6px;
  border-left: 2px solid var(--zm-line);
}
.zm-content-note {
  font-size: 13px; line-height: 1.45; color: var(--zm-text-2);
  font-style: italic;
}
.zm-content-foot {
  display: grid; grid-template-columns: 1fr auto;
  gap: 12px; align-items: center;
}
.zm-content-meta {
  font-family: var(--zm-font-mono); font-size: 11px;
  color: var(--zm-text-3);
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.zm-content-meta-item {
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.zm-content-meta-item b {
  color: var(--zm-text-1); font-weight: 600;
}

/* ── Inside-this-world filter chips + sort selector ───────────────── */
.zm-inside-controls {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--zm-line-soft);
}
.zm-kind-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--zm-surface-2);
  border: 1px solid var(--zm-line);
  font-family: var(--zm-font-mono); font-size: 11px;
  color: var(--zm-text-2); cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.zm-kind-chip:hover { border-color: var(--zm-text-4); color: var(--zm-text-1); }
.zm-kind-chip.active {
  background: color-mix(in oklab, var(--zm-ember) 18%, var(--zm-surface));
  border-color: var(--zm-ember);
  color: var(--zm-text-1);
}
.zm-kind-chip-count { color: var(--zm-text-4); font-size: 10px; }
.zm-sort-select {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--zm-font-mono); font-size: 11px;
  color: var(--zm-text-3); margin-left: auto;
}
.zm-sort-select select {
  background: var(--zm-surface-2);
  border: 1px solid var(--zm-line);
  border-radius: 6px;
  color: var(--zm-text-1);
  padding: 5px 10px;
  font-family: var(--zm-font-mono); font-size: 11px;
  cursor: pointer;
}

/* Inside section split */
.zm-inside-split {
  display: flex; align-items: baseline; gap: 24px;
  border-bottom: 1px solid var(--zm-line-soft);
  margin-bottom: 18px; padding-bottom: 0;
}
.zm-inside-tab {
  font-family: var(--zm-font-mono); font-size: 12px;
  color: var(--zm-text-3); padding: 10px 0; cursor: pointer;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.zm-inside-tab.active { color: var(--zm-text); border-bottom-color: var(--zm-ember); }
.zm-inside-tab.import.active { border-bottom-color: var(--zm-trace); }
.zm-inside-tab-count { display: inline-block; margin-left: 6px; font-size: 10.5px; color: var(--zm-text-4); }

/* ── Issue fold ──────────────────────────────────────────────────── */
.zm-issues-fold {
  border: 1px solid var(--zm-line-soft); border-radius: 8px;
  background: var(--zm-surface);
  padding: 0;
}
.zm-issues-fold summary {
  cursor: pointer; padding: 12px 16px;
  font-family: var(--zm-font-mono); font-size: 12px;
  color: var(--zm-text-3);
  list-style: none;
}
.zm-issues-fold summary::-webkit-details-marker { display: none; }
.zm-issues-fold summary::before {
  content: "▸"; display: inline-block; margin-right: 8px;
  transition: transform 0.15s; color: var(--zm-text-4);
}
.zm-issues-fold[open] summary::before { transform: rotate(90deg); }

/* ── Filter / parts-style chip row ─────────────────────────────────── */
.zm-parts-filter {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px;
}
.zm-parts-chip {
  appearance: none; background: var(--zm-surface); border: 1px solid var(--zm-line);
  color: var(--zm-text-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  font-family: var(--zm-font-mono); font-size: 12px;
  text-transform: lowercase; text-decoration: none;
}
.zm-parts-chip:hover { color: var(--zm-text); border-color: var(--zm-text-4); }
.zm-parts-chip.active { background: var(--zm-text); color: var(--zm-bg); border-color: var(--zm-text); }
.zm-parts-chip-count {
  padding: 1px 7px; border-radius: 999px;
  background: var(--zm-bg-3); color: var(--zm-text-3); font-size: 10.5px;
}
.zm-parts-chip.active .zm-parts-chip-count { background: rgba(0,0,0,0.2); color: var(--zm-bg); }

/* ── Misc ─────────────────────────────────────────────────────────── */
.zm-divider { height: 1px; background: var(--zm-line-soft); margin: 16px 0; }
.zm-empty { color: var(--zm-text-4); font-family: var(--zm-font-mono); font-size: 12px; padding: 40px; text-align: center; }
.zm-error {
  background: color-mix(in oklab, var(--zm-down) 8%, var(--zm-surface));
  border: 1px solid color-mix(in oklab, var(--zm-down) 30%, var(--zm-line));
  border-radius: 10px; padding: 18px 22px;
  max-width: 1100px; margin: 24px auto;
}
.zm-error h3 { margin: 0 0 6px; color: var(--zm-down); font-family: var(--zm-font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.zm-error p { margin: 0; color: var(--zm-text-2); font-size: 13.5px; }

/* ── Login / form ─────────────────────────────────────────────────── */
.zm-form {
  max-width: 460px; margin: 64px auto;
  background: var(--zm-surface); border: 1px solid var(--zm-line);
  border-radius: var(--zm-radius-lg); padding: 32px;
}
.zm-form h1 { font-family: var(--zm-font-display); font-style: italic; font-size: 36px; margin: 0 0 8px; }
.zm-form p.lead { color: var(--zm-text-3); margin: 0 0 22px; font-size: 14px; }
.zm-form label { display: block; margin: 12px 0 6px; font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.zm-form input {
  width: 100%; padding: 10px 14px; border-radius: 8px;
  background: var(--zm-bg-2); border: 1px solid var(--zm-line);
  color: var(--zm-text); font-family: var(--zm-font-mono); font-size: 13px; outline: 0;
}
.zm-form input:focus { border-color: var(--zm-ember); }
.zm-form .zm-btn { margin-top: 18px; width: 100%; justify-content: center; }

/* ── Discover / search hits ───────────────────────────────────────── */
.zm-hits {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}
.zm-hit {
  background: var(--zm-surface); border: 1px solid var(--zm-line);
  border-radius: var(--zm-radius-lg); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, transform .15s;
  text-decoration: none;
}
.zm-hit:hover { border-color: color-mix(in oklab, var(--zm-trace) 50%, var(--zm-line)); transform: translateY(-1px); }
.zm-hit-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zm-hit-name { font-family: var(--zm-font-mono); font-size: 14px; font-weight: 600; color: var(--zm-text); }
.zm-hit-snippet {
  font-family: var(--zm-font-mono); font-size: 11.5px; color: var(--zm-text-3);
  background: var(--zm-bg-2); padding: 8px 10px; border-radius: 6px;
  border-left: 2px solid var(--zm-trace);
  white-space: pre-wrap; word-break: break-word;
}
.zm-hit-meta { display: flex; gap: 8px; font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4); }

/* ── List rows for refs / commits / manifest ──────────────────────── */
.zm-row-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.zm-row-list li {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--zm-font-mono); font-size: 12px;
  color: var(--zm-text-2);
  padding: 6px 0;
  border-top: 1px solid var(--zm-line-soft);
}
.zm-row-list li:first-child { border-top: 0; }
.zm-row-list li code { font-size: 11.5px; }

/* ── Deprecated legacy mappings (kept for transition) ──────────────── */
.app, .main, .topbar, .sidebar, .post-card, .post-body, .post-aside,
.post-chips, .post-title, .post-desc, .post-meta, .grid-2, .feed,
.section-title, .card.hero, .stats, .stat, .aside-card, .pill,
.btn, .vote-col, .page-head, .subtitle, .tabs, .browse-hero, .browse-tools,
.browse-page { /* fallback safety */ }

/* Only keep a barely-styled fallback for raw .card so legacy fragments
   are still readable while pages migrate. */
.card { background: var(--zm-surface); border: 1px solid var(--zm-line); border-radius: var(--zm-radius-lg); padding: 16px 18px; }
.card.hero { padding: 28px 32px; }
.card.state { padding: 28px; text-align: center; color: var(--zm-text-3); font-family: var(--zm-font-mono); font-size: 12.5px; }
.card.state.error { border-color: color-mix(in oklab, var(--zm-down) 30%, var(--zm-line)); background: color-mix(in oklab, var(--zm-down) 6%, var(--zm-surface)); }
.card.state h3, .card.state.error h3 { margin: 0 0 8px; color: var(--zm-text); font-family: var(--zm-font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }


/* ===========================================================
 * PROFILE + SETTINGS — handoff from Claude Design (LaVToPC5LmWbWyrJW)
 * Tokens (--zm-bg/surface/line/text/ember/etc) already declared
 * at the top of this file; the design uses the same names so the
 * block below drops in without a token rewrite.
 * =========================================================== */

.zm-part-card {
  background: var(--zm-surface); border: 1px solid var(--zm-line);
  border-radius: var(--zm-radius-lg); padding: 14px 16px;
  display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center;
  text-align: left; cursor: pointer; transition: border-color .15s, transform .15s;
}
.zm-part-card:hover { border-color: var(--zm-text-4); }
.zm-part-glyph { font-size: 22px; text-align: center; opacity: 0.9; }
.zm-part-meta { min-width: 0; }
.zm-part-name { font-size: 13.5px; color: var(--zm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-part-sub { font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4); margin-top: 3px; }

/* ── PROFILE PAGE ────────────────────────────────────────────────── */
.zm-pf { max-width: 1400px; margin: 0 auto; padding: 0 24px 64px; }

.zm-pf-banner {
  position: relative; height: 220px; margin: 0 -24px;
  border-bottom: 1px solid var(--zm-line);
  overflow: hidden;
}
.zm-pf-banner-img { position: absolute; inset: 0; }
.zm-pf-banner-grain {
  position: absolute; inset: 0; opacity: 0.18; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}
.zm-pf-banner-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.zm-pf-banner-strip {
  position: absolute; left: 24px; bottom: 18px; display: flex; gap: 8px;
}
.zm-pf-kind-pill {
  font-family: var(--zm-font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.14);
  color: var(--zm-text);
}
.zm-pf-kind-pill.agent { color: var(--zm-agent); border-color: oklch(0.55 0.18 280 / 0.4); }
.zm-pf-kind-pill.human { color: var(--zm-ember); border-color: oklch(0.62 0.18 32 / 0.4); }

.zm-pf-header {
  display: grid; grid-template-columns: 168px 1fr; grid-template-rows: auto auto;
  gap: 8px 28px;
  align-items: end; margin-top: -70px; position: relative; z-index: 2;
  padding-bottom: 24px;
}
.zm-pf-avatar {
  grid-column: 1; grid-row: 1 / span 2;
  border-radius: 28px;
  display: grid; place-items: center;
  position: relative;
  width: 140px; height: 140px;
  box-shadow:
    0 0 0 4px var(--zm-bg),
    0 30px 60px -20px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.18);
  overflow: hidden;
}
.zm-pf-avatar-mono {
  font-family: var(--zm-font-display); font-style: italic;
  font-size: 56px; line-height: 1; color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  letter-spacing: -0.02em;
}
.zm-pf-avatar-live {
  position: absolute; bottom: 8px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--zm-up); box-shadow: 0 0 0 3px var(--zm-bg), 0 0 14px var(--zm-up);
}

.zm-pf-head-main { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; grid-column: 2; grid-row: 1; min-width: 0; }
.zm-pf-eyebrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--zm-font-mono); font-size: 12px; color: var(--zm-text-3);
}
.zm-pf-eyebrow-handle { color: var(--zm-text-2); }
.zm-pf-eyebrow-mono { color: var(--zm-text-3); }
.zm-pf-eyebrow-sep { color: var(--zm-text-4); }
.zm-pf-verified {
  font-family: var(--zm-font-mono); font-size: 11px;
  color: var(--zm-up); padding: 2px 8px; border-radius: 999px;
  background: oklch(0.55 0.16 156 / 0.12); border: 1px solid oklch(0.55 0.16 156 / 0.3);
}
.zm-pf-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-2);
  padding: 2px 9px; border-radius: 999px;
  background: oklch(0.55 0.16 156 / 0.1); border: 1px solid oklch(0.55 0.16 156 / 0.3);
}
.zm-pf-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--zm-up);
  box-shadow: 0 0 8px var(--zm-up); animation: zm-pulse 1.6s ease-out infinite;
}

.zm-pf-name {
  font-family: var(--zm-font-display); font-style: italic;
  font-size: 64px; line-height: 1; margin: 0; letter-spacing: -0.025em;
  color: var(--zm-text);
}
.zm-pf-bio { color: var(--zm-text-2); max-width: 60ch; font-size: 16px; line-height: 1.55; margin: 4px 0 0; }
.zm-pf-meta-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--zm-font-mono); font-size: 11.5px; color: var(--zm-text-4);
  margin-top: 4px;
}
.zm-pf-meta-mono { font-family: var(--zm-font-mono); color: var(--zm-text-3); }

.zm-pf-owner {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 4px;
}
.zm-pf-owner-l {
  font-family: var(--zm-font-display); font-style: italic;
  font-size: 15px; color: var(--zm-text-3);
}
.zm-pf-owner-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  background: oklch(0.62 0.18 32 / 0.10);
  border: 1px solid oklch(0.62 0.18 32 / 0.32);
  border-radius: 999px;
  color: var(--zm-ember);
  font-family: var(--zm-font-mono); font-size: 13px;
  cursor: pointer; transition: all 0.18s ease;
}
.zm-pf-owner-chip:hover {
  background: oklch(0.62 0.18 32 / 0.18);
  border-color: oklch(0.62 0.18 32 / 0.55);
  transform: translateX(1px);
}
.zm-pf-owner-mark {
  font-size: 12px; opacity: 0.85;
}
.zm-pf-owner-handle { letter-spacing: 0.01em; }
.zm-pf-owner-arrow { opacity: 0.55; font-size: 12px; }

.zm-pf-cta {
  grid-column: 2; grid-row: 2;
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: flex-end;
  padding-bottom: 6px;
}
.zm-btn.icon { width: 38px; padding: 0; display: grid; place-items: center; font-size: 16px; }

/* Stat row */
.zm-pf-statrow {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--zm-line); border: 1px solid var(--zm-line);
  border-radius: var(--zm-radius-lg); overflow: hidden;
  margin: 8px 0 24px;
}
.zm-pf-statcell {
  background: var(--zm-surface); padding: 18px 18px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.zm-pf-stat-num {
  font-family: var(--zm-font-display); font-style: italic;
  font-size: 30px; line-height: 1; color: var(--zm-text);
  letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zm-pf-stat-label {
  font-family: var(--zm-font-mono); font-size: 10.5px; color: var(--zm-text-4);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Tabs */
.zm-pf-tabs {
  display: flex; gap: 2px; border-bottom: 1px solid var(--zm-line);
  margin-bottom: 24px;
}
.zm-pf-tab {
  background: transparent !important; border: 0 !important; cursor: pointer;
  padding: 12px 18px; color: var(--zm-text-3) !important;
  font-family: var(--zm-font-mono); font-size: 12px; letter-spacing: 0.04em;
  border-bottom: 2px solid transparent !important;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s, border-color .15s;
}
.zm-pf-tab:hover { color: var(--zm-text) !important; }
.zm-pf-tab.is-active {
  color: var(--zm-text) !important;
  border-bottom-color: var(--zm-ember) !important;
}
.zm-pf-tab-n {
  font-size: 10.5px; color: var(--zm-text-4);
  background: var(--zm-line-soft); padding: 1px 7px; border-radius: 999px;
}
.zm-pf-tab.is-active .zm-pf-tab-n { color: var(--zm-ember); background: oklch(0.62 0.18 32 / 0.14); }

/* Body grid */
.zm-pf-body {
  display: grid; grid-template-columns: 1fr 320px; gap: 28px;
}
.zm-pf-main { min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.zm-pf-side { display: flex; flex-direction: column; gap: 16px; }

.zm-pf-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Badges */
.zm-pf-badges { display: flex; flex-direction: column; gap: 10px; }
.zm-pf-badge {
  display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--zm-line-soft);
}
.zm-pf-badge:first-child { border-top: 0; padding-top: 0; }
.zm-pf-badge-glyph {
  font-size: 22px; text-align: center;
  filter: drop-shadow(0 0 8px currentColor);
  opacity: 0.85;
}
.zm-pf-badge-title { font-size: 13px; color: var(--zm-text); font-weight: 500; }
.zm-pf-badge-sub { font-family: var(--zm-font-mono); font-size: 10.5px; color: var(--zm-text-4); }

.zm-pf-charter {
  font-size: 13px; color: var(--zm-text-2); line-height: 1.6;
}
.zm-pf-charter .ember { color: var(--zm-ember); }

.zm-pf-about { display: flex; flex-direction: column; }

.zm-pf-comments { display: flex; flex-direction: column; gap: 14px; }
.zm-pf-comment {
  background: var(--zm-surface); border: 1px solid var(--zm-line);
  border-radius: var(--zm-radius-lg); padding: 14px 16px;
}
.zm-pf-comment-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--zm-font-mono); font-size: 11.5px;
  margin-bottom: 6px;
}
.zm-pf-comment-meta { color: var(--zm-text-4); }
.zm-pf-comment-body { color: var(--zm-text-2); margin: 0; line-height: 1.55; font-size: 14.5px; }

/* ── BOTS ────────────────────────────────────────────────────────── */
.zm-bot-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px; margin-top: 14px;
}
.zm-bot-card {
  background: var(--zm-surface); border: 1px solid var(--zm-line);
  border-radius: var(--zm-radius-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, transform .15s;
}
.zm-bot-card:hover { border-color: oklch(0.55 0.18 280 / 0.4); }
.zm-bot-head { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; }
.zm-bot-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-size: 16px; color: var(--zm-agent);
  background: oklch(0.55 0.18 280 / 0.14); border: 1px solid oklch(0.55 0.18 280 / 0.3);
}
.zm-bot-handle { font-family: var(--zm-font-mono); font-size: 13.5px; color: var(--zm-text); }
.zm-bot-kind { font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4); margin-top: 2px; }
.zm-bot-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-3);
}
.zm-bot-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--zm-up); box-shadow: 0 0 6px var(--zm-up); }
.zm-bot-note { color: var(--zm-text-2); font-size: 13.5px; line-height: 1.5; }
.zm-bot-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--zm-line-soft);
}
.zm-bot-foot-l { font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4); }
.zm-bot-foot-r { display: flex; gap: 10px; }

/* Inline register-bot form */
.zm-bot-new {
  background: var(--zm-surface-2, oklch(0.13 0.01 28));
  border: 1px dashed var(--zm-line); border-radius: var(--zm-radius-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 14px;
}
.zm-bot-new-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zm-bot-new-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
}
.zm-bot-new-hint { color: var(--zm-text-4); font-size: 12px; max-width: 60ch; line-height: 1.5; }

/* ── FIELDS / INPUTS ─────────────────────────────────────────────── */
.zm-field { display: flex; flex-direction: column; gap: 6px; }
.zm-field-label {
  font-family: var(--zm-font-mono); font-size: 10.5px;
  color: var(--zm-text-4); text-transform: uppercase; letter-spacing: 0.08em;
}
.zm-input {
  background: var(--zm-bg); border: 1px solid var(--zm-line);
  border-radius: 10px; padding: 10px 12px;
  color: var(--zm-text); font-family: var(--zm-font-mono); font-size: 13px;
  transition: border-color .15s, background .15s;
  width: 100%;
}
textarea.zm-input { font-family: var(--zm-font-sans); font-size: 14px; line-height: 1.55; resize: vertical; }
.zm-input:focus { outline: none; border-color: var(--zm-ember); background: var(--zm-bg); }
.zm-input::placeholder { color: var(--zm-text-4); }
.zm-field-hint { font-family: var(--zm-font-mono); font-size: 10.5px; color: var(--zm-text-4); }

/* Scope pills */
.zm-scope-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.zm-scope-label {
  font-family: var(--zm-font-mono); font-size: 10.5px; color: var(--zm-text-4);
  text-transform: uppercase; letter-spacing: 0.08em; margin-right: 4px;
}
.zm-scope-pill {
  background: transparent !important;
  border: 1px solid var(--zm-line) !important;
  color: var(--zm-text-3) !important;
  font-family: var(--zm-font-mono); font-size: 11.5px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.zm-scope-pill:hover { color: var(--zm-text) !important; border-color: var(--zm-text-4) !important; }
.zm-scope-pill .zm-scope-dot {
  width: 8px; height: 8px; border-radius: 50%; background: transparent;
  border: 1px solid var(--zm-text-4);
  transition: all .15s;
}
.zm-scope-pill.on {
  color: var(--zm-ember) !important;
  border-color: oklch(0.62 0.18 32 / 0.5) !important;
  background: oklch(0.62 0.18 32 / 0.08) !important;
}
.zm-scope-pill.on .zm-scope-dot { background: var(--zm-ember); border-color: var(--zm-ember); box-shadow: 0 0 6px var(--zm-ember); }

/* ── SETTINGS PAGE ───────────────────────────────────────────────── */
.zm-pf-settings { max-width: 1200px; margin: 0 auto; padding: 36px 24px 64px; }

.zm-st-head {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  margin-bottom: 28px;
}
.zm-st-title {
  font-family: var(--zm-font-display); font-style: italic;
  font-size: 56px; line-height: 1; margin: 8px 0 12px; letter-spacing: -0.025em;
}

.zm-st-grid {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start;
}

.zm-st-nav {
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 80px;
}
.zm-st-nav-item {
  background: transparent !important; border: 0 !important; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px; border-radius: 10px; text-align: left;
  transition: background .15s;
}
.zm-st-nav-item:hover { background: var(--zm-line-soft) !important; }
.zm-st-nav-item.is-active {
  background: oklch(0.62 0.18 32 / 0.1) !important;
}
.zm-st-nav-item.is-active .zm-st-nav-label { color: var(--zm-ember); }
.zm-st-nav-label {
  font-size: 14px; color: var(--zm-text); font-weight: 500;
}
.zm-st-nav-desc {
  font-family: var(--zm-font-mono); font-size: 10.5px; color: var(--zm-text-4);
}
.zm-st-nav-item.danger .zm-st-nav-label { color: var(--zm-text-2); }
.zm-st-nav-item.danger.is-active { background: oklch(0.55 0.22 18 / 0.12) !important; }
.zm-st-nav-item.danger.is-active .zm-st-nav-label { color: oklch(0.7 0.2 18); }

.zm-st-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.zm-st-card {
  background: var(--zm-surface); border: 1px solid var(--zm-line);
  border-radius: var(--zm-radius-lg); padding: 24px 26px;
}
.zm-st-card.danger {
  border-color: oklch(0.55 0.22 18 / 0.3);
  background: linear-gradient(180deg, oklch(0.55 0.22 18 / 0.04), transparent);
}
.zm-st-card-head { margin-bottom: 22px; }
.zm-st-card-head h2 {
  margin: 0; font-family: var(--zm-font-display); font-style: italic;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 12px;
}
.zm-st-card-head p {
  color: var(--zm-text-3); font-size: 13.5px; margin: 8px 0 0; line-height: 1.55;
  max-width: 70ch;
}
.zm-st-card-head code {
  font-family: var(--zm-font-mono); font-size: 12px; color: var(--zm-text-2);
  background: var(--zm-line-soft); padding: 2px 6px; border-radius: 4px;
}
.zm-st-badge {
  font-family: var(--zm-font-mono); font-size: 10.5px;
  color: var(--zm-text-4); padding: 3px 9px; border-radius: 999px;
  background: var(--zm-line-soft); border: 1px solid var(--zm-line);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-style: normal;
}

/* Identity card */
.zm-st-id-grid { display: flex; flex-direction: column; }
.zm-st-id-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--zm-line-soft);
}
.zm-st-id-row:first-child { border-top: 0; padding-top: 0; }
.zm-st-id-l {
  font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.zm-st-id-r { color: var(--zm-text); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.zm-st-id-r.mono { font-family: var(--zm-font-mono); font-size: 13px; }
.zm-st-id-code {
  font-family: var(--zm-font-mono); font-size: 12.5px; color: var(--zm-ember);
  background: oklch(0.62 0.18 32 / 0.08); padding: 5px 10px; border-radius: 6px;
  border: 1px solid oklch(0.62 0.18 32 / 0.2);
  letter-spacing: 0.04em;
}

.zm-st-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zm-st-foot {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--zm-line-soft);
}

/* Hue swatches */
.zm-hue-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.zm-hue-swatch {
  width: 36px; height: 36px; border-radius: 10px;
  border: 2px solid transparent !important;
  cursor: pointer; transition: transform .15s, border-color .15s;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.95); font-size: 14px;
  padding: 0 !important;
}
.zm-hue-swatch:hover { transform: scale(1.06); }
.zm-hue-swatch.is-active { border-color: var(--zm-text) !important; box-shadow: 0 0 0 2px var(--zm-bg), 0 0 0 4px var(--zm-text); }

/* Tokens */
.zm-token-new {
  background: var(--zm-surface-2, oklch(0.13 0.01 28));
  border: 1px dashed var(--zm-line); border-radius: var(--zm-radius-lg);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 18px;
}
.zm-token-new-head {
  font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.zm-token-reveal {
  background: oklch(0.55 0.16 156 / 0.06);
  border: 1px solid oklch(0.55 0.16 156 / 0.4);
  border-radius: var(--zm-radius-lg); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 18px;
}
.zm-token-reveal-head {
  font-family: var(--zm-font-mono); font-size: 11.5px; color: var(--zm-up);
  display: flex; align-items: center; gap: 8px; letter-spacing: 0.04em;
}
.zm-token-reveal-code {
  font-family: var(--zm-font-mono); font-size: 13.5px; color: var(--zm-text);
  background: var(--zm-bg); padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--zm-line); word-break: break-all;
  letter-spacing: 0.02em;
}
.zm-token-reveal-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}

.zm-token-list {
  border: 1px solid var(--zm-line); border-radius: var(--zm-radius-lg);
  overflow: hidden;
}
.zm-token-list-head, .zm-token-row {
  display: grid; grid-template-columns: 2fr 2fr 1.2fr 1.4fr 1.2fr;
  gap: 14px; align-items: center;
  padding: 12px 16px; border-top: 1px solid var(--zm-line-soft);
}
.zm-token-list-head {
  border-top: 0; background: var(--zm-line-soft);
  font-family: var(--zm-font-mono); font-size: 10.5px; color: var(--zm-text-4);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.zm-token-label { font-size: 13.5px; color: var(--zm-text); font-weight: 500; }
.zm-token-prefix { font-family: var(--zm-font-mono); font-size: 11.5px; color: var(--zm-text-4); margin-top: 2px; display: block; }
.zm-token-scopes { display: flex; flex-wrap: wrap; gap: 4px; }
.zm-token-meta { font-size: 12px; color: var(--zm-text-3); }
.zm-token-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Charter */
.zm-charter-doc { display: flex; flex-direction: column; }
.zm-charter-line {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--zm-line-soft);
  font-size: 14px; color: var(--zm-text-2); line-height: 1.5;
}
.zm-charter-line:first-child { border-top: 0; padding-top: 0; }
.zm-charter-k {
  font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4);
  text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px;
}

/* Danger zone */
.zm-danger-row {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--zm-line-soft);
}
.zm-danger-row:first-of-type { border-top: 0; padding-top: 0; }
.zm-danger-title { font-size: 14.5px; color: var(--zm-text); font-weight: 500; }
.zm-danger-sub { font-size: 13px; color: var(--zm-text-3); margin-top: 4px; line-height: 1.5; max-width: 60ch; }
.zm-btn.danger {
  color: oklch(0.7 0.2 18) !important;
  border-color: oklch(0.55 0.22 18 / 0.4) !important;
  background: oklch(0.55 0.22 18 / 0.08) !important;
}
.zm-btn.danger:hover {
  background: oklch(0.55 0.22 18 / 0.16) !important;
}

/* Link buttons */
.zm-link-btn {
  background: transparent !important; border: 0 !important;
  color: var(--zm-text-3) !important; cursor: pointer;
  font-family: var(--zm-font-mono); font-size: 11.5px;
  padding: 4px 8px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.zm-link-btn:hover { color: var(--zm-text) !important; background: var(--zm-line-soft) !important; }
.zm-link-btn.danger { color: oklch(0.7 0.2 18 / 0.85) !important; }
.zm-link-btn.danger:hover { color: oklch(0.75 0.22 18) !important; background: oklch(0.55 0.22 18 / 0.12) !important; }

/* Vote-active state — applied to the comment ▲/▼ buttons when the
   viewer's own vote is on that arrow. Persists across page refresh
   because the server returns viewer_vote per comment for authed
   callers. Without this the user couldn't tell which way they'd
   voted on each thread row. */
.zm-link-btn.zm-vote-active.up   { color: var(--zm-up)   !important; background: color-mix(in oklab, var(--zm-up)   18%, transparent) !important; }
.zm-link-btn.zm-vote-active.down { color: var(--zm-down) !important; background: color-mix(in oklab, var(--zm-down) 18%, transparent) !important; }

.zm-btn.sm { padding: 6px 12px; font-size: 12.5px; }
.zm-btn.is-disabled { opacity: 0.4; cursor: not-allowed; }
.mono.ember { color: var(--zm-ember); }

.zm-empty {
  text-align: center; padding: 36px 0; color: var(--zm-text-4);
  font-family: var(--zm-font-mono); font-size: 12.5px;
}

/* ──────────────────────────────────────────────────────────────────
   Asset (part) detail — design pass 2026-05-06.
   Tabs, agent-review block, files/sub-parts/ratings tabs, version
   sidebar. Visual language is shared with world-detail; the `pdr`
   prefix ("part-detail") matches the upstream JSX.
   ────────────────────────────────────────────────────────────────── */
.zm-pdr-block {
  border: 1px solid var(--zm-line);
  border-radius: 14px;
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--zm-ember) 5%, transparent), transparent 60%), var(--zm-surface);
}
.zm-pdr-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: start;
}
.zm-pdr-review-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--zm-font-mono); font-size: 10.5px;
  color: var(--zm-text-3); letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--zm-line);
}
.zm-pdr-review-eyebrow-mark { color: var(--zm-agent); font-size: 13px; }
.zm-pdr-axes { display: grid; grid-template-columns: 1fr; gap: 18px; }
.zm-pdr-ax-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.zm-pdr-ax-label { font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.zm-pdr-ax-val { font-family: var(--zm-font-display); font-size: 22px; font-weight: 600; }
.zm-pdr-ax-bar {
  height: 6px; border-radius: 4px;
  background: color-mix(in oklab, var(--zm-line) 60%, transparent);
  overflow: hidden;
  margin-bottom: 6px;
}
.zm-pdr-ax-bar i { display: block; height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.zm-pdr-ax-desc { font-size: 11px; color: var(--zm-text-4); line-height: 1.4; }

.zm-pdr-overall {
  border-left: 1px solid var(--zm-line);
  padding-left: 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.zm-pdr-overall-eyebrow { font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.zm-pdr-overall-num {
  font-family: var(--zm-font-display);
  font-size: 64px; font-weight: 600; font-style: italic;
  line-height: 1; margin-top: 4px;
}
.zm-pdr-overall-scale { font-family: var(--zm-font-mono); font-size: 12px; color: var(--zm-text-4); margin-top: -4px; }
.zm-pdr-overall-passes { font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-3); margin: 6px 0 8px; }
.zm-pdr-overall-formula {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--zm-line);
  font-family: var(--zm-font-mono); font-size: 10.5px;
  color: var(--zm-text-4); line-height: 1.7;
}
.zm-pdr-empty-block {
  font-size: 13px; color: var(--zm-text-3); line-height: 1.55;
  max-width: 56ch;
}

/* Tabs */
.zm-pdr-tabs-shell { margin-top: 28px; }
.zm-pdr-tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--zm-line);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.zm-pdr-tab {
  background: transparent; border: 0;
  padding: 10px 16px;
  font-family: var(--zm-font-mono); font-size: 12px;
  color: var(--zm-text-3); letter-spacing: 0.04em;
  text-transform: lowercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.zm-pdr-tab:hover { color: var(--zm-text); }
.zm-pdr-tab.active { color: var(--zm-ember); border-bottom-color: var(--zm-ember); }
.zm-pdr-tab-count {
  font-family: var(--zm-font-mono); font-size: 10px;
  color: var(--zm-text-4);
  padding: 1px 6px;
  border: 1px solid var(--zm-line);
  border-radius: 999px;
}
.zm-pdr-tab.active .zm-pdr-tab-count { color: var(--zm-ember); border-color: color-mix(in oklab, var(--zm-ember) 45%, var(--zm-line)); }
.zm-pdr-tab-body { min-height: 120px; }

.zm-pdr-files-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.zm-pdr-files-head h3 {
  font-family: var(--zm-font-display);
  font-size: 22px; font-style: italic; font-weight: 500;
  margin: 0 0 4px;
}
.zm-pdr-files-head p { font-size: 13px; color: var(--zm-text-3); margin: 0; max-width: 60ch; }
.zm-pdr-empty {
  border: 1px dashed var(--zm-line);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: var(--zm-text-3);
  font-size: 14px;
}

/* Files tab */
.zm-pdr-files {
  border: 1px solid var(--zm-line);
  border-radius: 12px;
  overflow: hidden;
}
.zm-pdr-file {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid color-mix(in oklab, var(--zm-line) 60%, transparent);
  font-size: 13px;
}
.zm-pdr-file:last-child { border-bottom: 0; }
.zm-pdr-file:hover { background: color-mix(in oklab, var(--zm-ember) 4%, transparent); }
.zm-pdr-file-icon { color: var(--zm-text-3); text-align: center; font-size: 13px; }
.zm-pdr-file-path { font-size: 12.5px; color: var(--zm-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--zm-font-mono); }
.zm-pdr-file-kind {
  font-size: 10.5px; color: var(--zm-text-4);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 7px;
  border: 1px solid var(--zm-line);
  border-radius: 999px;
  font-family: var(--zm-font-mono);
}
.zm-pdr-file-size { font-size: 11px; color: var(--zm-text-3); min-width: 60px; text-align: right; font-family: var(--zm-font-mono); }

/* Sub-parts tab */
.zm-pdr-subparts {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.zm-pdr-subpart {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px; align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--zm-line);
  border-radius: 12px;
  background: var(--zm-surface);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.zm-pdr-subpart:hover {
  border-color: color-mix(in oklab, var(--zm-ember) 50%, var(--zm-line));
  transform: translateY(-1px);
}
.zm-pdr-subpart-glyph {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-size: 18px; color: var(--zm-ember);
  border: 1px solid var(--zm-line); border-radius: 9px;
  background: color-mix(in oklab, var(--zm-ember) 6%, transparent);
}
.zm-pdr-subpart-name { font-size: 13.5px; color: var(--zm-text); font-weight: 500; }
.zm-pdr-subpart-type { font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-3); margin-top: 2px; }
.zm-pdr-subpart-score { color: var(--zm-up); font-family: var(--zm-font-mono); font-size: 12px; }

/* Ratings tab */
.zm-pdr-ratings-summary { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.zm-pdr-ratings-num { font-family: var(--zm-font-display); font-size: 38px; font-weight: 600; font-style: italic; line-height: 1; }
.zm-pdr-ratings-pct { font-size: 18px; color: var(--zm-text-4); margin-left: 2px; }
.zm-pdr-ratings-count { font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-4); margin-top: 4px; }
.zm-pdr-ratings-bars {
  border: 1px solid var(--zm-line);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--zm-surface);
  display: flex; flex-direction: column; gap: 11px;
  margin-bottom: 22px;
}
.zm-pdr-ratings-row {
  display: grid; grid-template-columns: 200px 1fr 130px;
  gap: 14px; align-items: center;
  font-size: 13px;
}
.zm-pdr-ratings-label { color: var(--zm-text-2); font-family: var(--zm-font-mono); font-size: 11.5px; }
.zm-pdr-ratings-bar {
  height: 8px; border-radius: 4px;
  background: color-mix(in oklab, var(--zm-line) 50%, transparent);
  overflow: hidden;
}
.zm-pdr-ratings-bar i { display: block; height: 100%; transition: width 0.4s ease; }
.zm-pdr-ratings-val { font-family: var(--zm-font-mono); font-size: 12px; text-align: right; }
.zm-pdr-ratings-h { font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-3); letter-spacing: 0.08em; text-transform: uppercase; margin: 8px 0 12px; }

/* Mini agent-review header — single-line summary above the asset
   tabs. Click anywhere to open the Agent review tab. */
.zm-pdr-mini-review {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: var(--zm-surface);
  border: 1px solid var(--zm-line);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 6px 0 18px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.zm-pdr-mini-review:hover {
  border-color: color-mix(in oklab, var(--zm-ember) 30%, var(--zm-line));
  background: color-mix(in oklab, var(--zm-ember) 3%, var(--zm-surface));
}
.zm-pdr-mini-review-mark {
  color: var(--zm-agent);
  font-size: 14px;
}

/* Per-comment vote / reply / cite — WIP-styled action row beneath
   each comment body. Inline score chip lives in the comment head. */
.zm-comment-score {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--zm-font-mono);
  font-size: 11px;
  color: var(--zm-text-3);
  padding: 1px 6px;
  border: 1px solid var(--zm-line);
  border-radius: 999px;
}
.zm-comment-actions {
  display: flex; align-items: center; gap: 4px;
  margin-top: 8px;
  font-family: var(--zm-font-mono);
  font-size: 11px;
}
.zm-comment-actions .zm-link-btn { padding: 2px 8px; }

/* Threaded comments — children container under each comment + cite
   highlight class applied for ~2s when a comment is targeted by a
   `#comment-{id}` URL hash. */
.zm-comment-children { margin-top: 8px; }
.zm-comment-cited {
  background: var(--zm-surface-2);
  outline: 1px solid var(--zm-ember);
  outline-offset: 4px;
  border-radius: 6px;
  transition: background 250ms ease, outline-color 250ms ease;
}
.zm-comment-reply-form { margin: 10px 0 4px; }
.zm-comment-reply-form textarea { min-height: 48px; }

/* Users leaderboard rows. Three-column grid: rank chip | avatar+meta |
   score block. Hover lifts the row slightly, click goes to the
   profile. */
.zm-userrank-list {
  display: flex; flex-direction: column; gap: 8px;
}
.zm-userrank-row {
  display: grid;
  grid-template-columns: 56px 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--zm-surface);
  border: 1px solid var(--zm-line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 80ms ease, border-color 120ms ease;
}
.zm-userrank-row:hover {
  border-color: var(--zm-ember);
  transform: translateY(-1px);
}
.zm-userrank-rank {
  font-family: var(--zm-font-mono);
  font-size: 13px;
  color: var(--zm-text-3);
  text-align: right;
  font-feature-settings: "tnum";
}
.zm-userrank-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,0.92);
}
.zm-userrank-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.zm-userrank-head {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.zm-userrank-name {
  font-family: var(--zm-font-serif);
  font-size: 17px;
  color: var(--zm-text);
}
.zm-userrank-handle {
  font-family: var(--zm-font-mono);
  font-size: 11.5px;
  color: var(--zm-text-3);
}
.zm-userrank-kind {
  font-family: var(--zm-font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zm-text-4);
  border: 1px solid var(--zm-line-soft);
  padding: 1px 6px;
  border-radius: 4px;
}
.zm-userrank-stats {
  display: flex; gap: 18px;
  flex-wrap: wrap;
  font-family: var(--zm-font-mono);
  font-size: 11.5px;
  color: var(--zm-text-3);
  font-feature-settings: "tnum";
}
.zm-userrank-stats > span {
  display: inline-flex; align-items: baseline; gap: 4px;
}
.zm-userrank-stats b {
  color: var(--zm-text);
  font-weight: 600;
}
.zm-userrank-stat-glyph {
  color: var(--zm-text-3);
  font-size: 12px;
}
.zm-userrank-stat-label {
  color: var(--zm-text-4);
  font-size: 10.5px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
/* Kind filter (all / humans / agents) above the leaderboard list. */
.zm-userrank-filterbar {
  display: flex; gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  background: var(--zm-surface-2);
  border: 1px solid var(--zm-line);
  border-radius: 8px;
  width: fit-content;
}
.zm-userrank-filter {
  appearance: none;
  background: transparent; border: 0;
  color: var(--zm-text-3); cursor: pointer;
  padding: 6px 14px;
  border-radius: 5px;
  font: inherit;
  font-family: var(--zm-font-mono);
  font-size: 11.5px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  transition: background 80ms ease, color 80ms ease;
}
.zm-userrank-filter:hover { color: var(--zm-text); }
.zm-userrank-filter.is-active {
  background: var(--zm-surface);
  color: var(--zm-text);
  border: 1px solid var(--zm-line-soft);
}
.zm-userrank-score {
  display: flex; flex-direction: column; align-items: center;
  min-width: 48px;
}
.zm-userrank-score-num {
  font-family: var(--zm-font-serif);
  font-size: 22px;
  color: var(--zm-text);
  line-height: 1;
}
.zm-userrank-score-label {
  font-family: var(--zm-font-mono);
  font-size: 10px;
  color: var(--zm-text-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Side-card: shared between part + world sidebars. */
.zm-side-card {
  background: var(--zm-surface);
  border: 1px solid var(--zm-line);
  border-radius: 12px;
  padding: 14px 16px;
}
.zm-side-card h3 {
  font-family: var(--zm-font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--zm-text-3);
  margin: 0 0 10px;
}
.zm-side-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  font-size: 12.5px;
}
.zm-side-row-l { color: var(--zm-text-3); font-family: var(--zm-font-mono); font-size: 11px; }
.zm-side-row-r { color: var(--zm-text); }

/* Versions sidebar (shared shape with world recent commits) */
.zm-pdr-versions { display: flex; flex-direction: column; gap: 0; }
.zm-pdr-version { padding: 10px 0; border-bottom: 1px dashed var(--zm-line); }
.zm-pdr-version:last-child { border-bottom: 0; }
.zm-pdr-version.head .zm-pdr-version-tag { color: var(--zm-ember); }
.zm-pdr-version-tag {
  font-family: var(--zm-font-mono);
  font-size: 12.5px; font-weight: 500;
  color: var(--zm-text);
  display: flex; align-items: center;
}
.zm-pdr-version-head-pill {
  font-family: var(--zm-font-mono); font-size: 10px;
  color: var(--zm-live);
  letter-spacing: 0.06em;
  margin-left: 4px;
}
.zm-pdr-version-meta { display: flex; gap: 10px; margin-top: 2px; font-size: 10.5px; color: var(--zm-text-4); font-family: var(--zm-font-mono); }
.zm-pdr-version-change { font-size: 12px; color: var(--zm-text-3); margin-top: 4px; line-height: 1.45; }

@media (max-width: 920px) {
  .zm-pdr-grid { grid-template-columns: 1fr; }
  .zm-pdr-overall { border-left: 0; padding-left: 0; border-top: 1px solid var(--zm-line); padding-top: 16px; }
  .zm-pdr-subparts { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .zm-pdr-ratings-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ──────────────────────────────────────────────────────────────────
   World detail — segmented controls, parts grid, commit list, cast.
   Same `pdr-tabs-shell` is reused; world-specific extras under `wdr-`.
   ────────────────────────────────────────────────────────────────── */
.zm-wdr-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin: 16px 0 18px;
  padding: 10px 12px;
  background: color-mix(in oklab, var(--zm-bg-2) 50%, transparent);
  border: 1px solid var(--zm-line);
  border-radius: 10px;
}
.zm-wdr-controls-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zm-wdr-control {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--zm-font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--zm-text-3);
}
.zm-wdr-control select {
  font-family: var(--zm-font-mono); font-size: 12px;
  background: var(--zm-bg-2); color: var(--zm-text);
  border: 1px solid var(--zm-line); border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
}
.zm-wdr-control select:hover { border-color: color-mix(in oklab, var(--zm-line) 50%, var(--zm-ember)); }

.zm-wdr-segment {
  display: inline-flex; gap: 0;
  background: var(--zm-bg-2);
  border: 1px solid var(--zm-line);
  border-radius: 8px;
  padding: 3px;
}
.zm-wdr-segment-btn {
  font-family: var(--zm-font-mono); font-size: 12px;
  background: transparent; color: var(--zm-text-3);
  border: 0; border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.zm-wdr-segment-btn:hover { color: var(--zm-text); }
.zm-wdr-segment-btn.active {
  background: color-mix(in oklab, var(--zm-ember) 16%, var(--zm-bg-2));
  color: var(--zm-text);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--zm-ember) 35%, transparent);
}

/* Compact part-card grid — shared by the asset Sub-parts tab and the
   world Parts tab. One source of truth: every list of assets across
   the app should render through `<PartCard>` against this grid. */
.zm-wdr-parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 4px;
}
.zm-wdr-part-card {
  position: relative;
  background: var(--zm-bg-2);
  border: 1px solid var(--zm-line);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  display: flex; flex-direction: column; gap: 10px;
}
.zm-wdr-part-card::before {
  content: "";
  position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 2px;
  background: var(--zm-text-4);
  opacity: 0.5;
}
.zm-wdr-part-card.is-born::before     { background: var(--zm-ember); opacity: 0.85; }
.zm-wdr-part-card.is-imported::before { background: var(--zm-violet); opacity: 0.7; }
.zm-wdr-part-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--zm-line) 30%, var(--zm-ember));
  background: color-mix(in oklab, var(--zm-bg-2) 80%, var(--zm-bg));
}

/* Leaf-card modifier — a `file` (raw blob) reads quieter than a
   composite `asset` so a grid mixing the two is scannable. */
.zm-wdr-part-card.is-leaf {
  background: color-mix(in oklab, var(--zm-bg-2) 70%, var(--zm-bg));
}
.zm-wdr-part-card.is-leaf .zm-wdr-part-glyph { opacity: 0.55; }
.zm-wdr-part-card.is-leaf::before { opacity: 0.32; }

.zm-wdr-part-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
}
.zm-wdr-part-glyph { font-size: 22px; line-height: 1; color: var(--zm-ember); }
.zm-wdr-part-titleblock { min-width: 0; }
.zm-wdr-part-name {
  font-family: var(--zm-font-display);
  font-size: 16px; font-weight: 500;
  color: var(--zm-text);
  letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Unnamed fallback — italic + dimmer so a "(unnamed mesh)" placeholder
   doesn't masquerade as a real publisher-set name. */
.zm-wdr-part-name.unnamed {
  font-style: italic;
  color: var(--zm-text-3);
  font-weight: 400;
}
.zm-wdr-part-type {
  font-size: 11px; color: var(--zm-text-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* File vs asset pill — small, monospaced, sits in the head row. The
   distinction was missing before; a grid full of "mesh / mesh" rows
   gave no clue which entries were curated assets and which were raw
   blobs published alongside them. */
.zm-wdr-part-typetag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--zm-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border: 1px solid var(--zm-line);
  border-radius: 4px;
  white-space: nowrap;
}
.zm-wdr-part-typetag.asset {
  color: var(--zm-trace);
  border-color: color-mix(in oklab, var(--zm-trace) 35%, var(--zm-line));
  background: color-mix(in oklab, var(--zm-trace) 8%, transparent);
}
.zm-wdr-part-typetag.file {
  color: var(--zm-text-4);
  background: rgba(0, 0, 0, 0.18);
}
.zm-wdr-part-typetag-glyph { font-size: 11px; }
.zm-wdr-part-cert {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  background: color-mix(in oklab, var(--zm-up) 18%, transparent);
  color: var(--zm-up);
  border: 1px solid color-mix(in oklab, var(--zm-up) 40%, transparent);
  border-radius: 50%;
}
.zm-wdr-part-note {
  font-size: 13px; line-height: 1.55;
  color: var(--zm-text-2);
  font-family: var(--zm-font-display);
  font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Context line (surface-specific extra info — path hint inside world
   Parts, "from world X" inside a foreign Sub-parts, etc). One-line,
   small + dim so it doesn't compete with the description. */
.zm-wdr-part-context {
  font-size: 11px;
  color: var(--zm-text-3);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zm-wdr-part-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed color-mix(in oklab, var(--zm-line) 70%, transparent);
  font-size: 11px;
  color: var(--zm-text-3);
}
/* Owning-world chip in the foot — clickable, suppressed in surfaces
   where the world is implicit (world Parts page when origin = born). */
.zm-wdr-part-world {
  color: var(--zm-trace);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}
.zm-wdr-part-world:hover { color: var(--zm-ember); }

/* Pager (shared with world Parts) */
.zm-wdr-pager {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--zm-line);
}
.zm-wdr-pager-btn {
  font-family: var(--zm-font-mono); font-size: 12px;
  background: var(--zm-bg-2); color: var(--zm-text-2);
  border: 1px solid var(--zm-line); border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 120ms ease;
}
.zm-wdr-pager-btn:hover:not(:disabled) {
  color: var(--zm-text);
  border-color: color-mix(in oklab, var(--zm-line) 50%, var(--zm-ember));
}
.zm-wdr-pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.zm-wdr-pager-info {
  font-family: var(--zm-font-mono);
  font-size: 11px; color: var(--zm-text-3);
  letter-spacing: 0.04em;
}

.zm-wdr-commit-list { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.zm-wdr-commit {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--zm-line);
}
.zm-wdr-commit:last-child { border-bottom: 0; }
.zm-wdr-commit-sha { font-family: var(--zm-font-mono); font-size: 11px; color: var(--zm-text-3); padding-top: 2px; letter-spacing: 0.02em; }
.zm-wdr-commit-msg { font-size: 14px; color: var(--zm-text); line-height: 1.5; margin-bottom: 6px; }
.zm-wdr-commit-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 11px; font-family: var(--zm-font-mono); }
.zm-wdr-commit-when { color: var(--zm-text-3); }
.zm-wdr-commit-diff { letter-spacing: 0.02em; }

.zm-wdr-cast { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.zm-wdr-cast-row {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed color-mix(in oklab, var(--zm-line) 70%, transparent);
}
.zm-wdr-cast-row:last-child { border-bottom: 0; }
.zm-wdr-cast-role {
  font-family: var(--zm-font-mono);
  font-size: 10px; color: var(--zm-text-3);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.zm-wdr-cast-commits {
  font-family: var(--zm-font-mono);
  font-size: 11px; color: var(--zm-text-2);
  min-width: 24px; text-align: right;
}

/* Responsive */
@media (max-width: 1100px) {
  .zm-pf-statrow { grid-template-columns: repeat(3, 1fr); }
  .zm-pf-stat-num { font-size: 26px; }
}
@media (max-width: 960px) {
  .zm-pf-statrow { grid-template-columns: repeat(3, 1fr); }
  .zm-pf-body { grid-template-columns: 1fr; }
  .zm-pf-header { grid-template-columns: 140px 1fr; }
  .zm-pf-cta { grid-column: 1 / -1; justify-content: flex-start; }
  .zm-pf-name { font-size: 44px; }
  .zm-st-grid { grid-template-columns: 1fr; }
  .zm-st-nav { flex-direction: row; flex-wrap: wrap; position: static; }
  .zm-st-grid-2 { grid-template-columns: 1fr; }
  .zm-token-list-head, .zm-token-row { grid-template-columns: 1fr; gap: 6px; }
  .zm-token-list-head { display: none; }
  .zm-token-row { padding: 14px 16px; }
}

/* ── Segmented control (origin / class filter on Parts tabs) ── */
.zm-segment {
  background: var(--zm-bg-2);
  transition: background 140ms ease, color 140ms ease;
}
.zm-segment:hover {
  background: var(--zm-surface-2);
  color: var(--zm-text);
}
.zm-segment.active {
  background: rgba(245, 159, 88, 0.14); /* ember tint */
  color: var(--zm-ember);
  border-color: var(--zm-ember);
}
.zm-segment:last-child { border-right: 0 !important; }

/* ── World members row hover (W3) ── */
.zm-member-row { transition: background 120ms ease; }
.zm-member-row:hover { background: var(--zm-surface-2); }

/* ── Hero stat strip — bump contrast against the cover gradient ── */
.zm-detail-stat-strip .zm-stat-inline {
  color: var(--zm-text-2);
  background: rgba(0, 0, 0, 0.32);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.zm-detail-stat-strip .zm-stat-inline b { color: var(--zm-text); }

/* Spinner — small rotating ring. Used by the desktop-launch popup
   while we wait to see if the OS dispatched the zero:// URL. */
.zm-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--zm-amber);
  animation: zm-spin 0.8s linear infinite;
}
@keyframes zm-spin {
  to { transform: rotate(360deg); }
}

/* ───────────────────────────────────────────────────────────────────
   Consumer (Zero brand) — ported from the Claude Design handoff
   (zeromind/project/consumer.css). All rules live on the `.zc-*`
   namespace so they coexist with the dev (ZeroMind) chrome above.
   ─────────────────────────────────────────────────────────────────── */
html[data-mode="consumer"] body {
  background: #0a0612 !important;
  color: rgba(245, 240, 250, 0.92);
  font-feature-settings: "ss01" on;
}

/* ── Top bar ────────────────────────────────────────────────────── */
.zc-top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 28px;
  background: color-mix(in oklab, #0a0612 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
html[data-mode="developer"] .zc-top {
  background: color-mix(in oklab, var(--zm-bg) 80%, transparent);
}
.zc-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; }
.zc-logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background:
    conic-gradient(from 220deg,
      oklch(0.78 0.18 32),
      oklch(0.78 0.20 90),
      oklch(0.78 0.18 156),
      oklch(0.74 0.16 222),
      oklch(0.72 0.18 280),
      oklch(0.78 0.18 340),
      oklch(0.78 0.18 32));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 6px 22px rgba(80,40,140,0.4);
  flex-shrink: 0;
}
.zc-logo-name {
  font-family: var(--zm-font-display);
  font-weight: 700;
  font-size: 22px; line-height: 1.3;
  letter-spacing: -0.025em;
  color: #fff;
  padding: 2px 0 4px;
  overflow: visible;
}
.zc-top-nav { display: flex; gap: 4px; margin-left: 6px; }
.zc-top-nav a, .zc-top-nav button {
  background: transparent; border: 0;
  color: rgba(255,255,255,0.6);
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: color 120ms ease, background 120ms ease;
}
.zc-top-nav a:hover, .zc-top-nav button:hover { color: #fff; background: rgba(255,255,255,0.04); }
.zc-top-nav a.active, .zc-top-nav button.active { color: #fff; }
.zc-top-search {
  flex: 1 1 auto; max-width: 520px;
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  color: rgba(255,255,255,0.6);
}
.zc-top-search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: #fff; font: inherit; font-size: 14px;
}
.zc-top-search input::placeholder { color: rgba(255,255,255,0.45); }
.zc-top-spacer { flex: 1 1 0; min-width: 0; }
.zc-mode-pill {
  display: inline-flex;
  padding: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
}
.zc-mode-pill button {
  background: transparent; border: 0;
  color: rgba(255,255,255,0.55);
  font-size: 12.5px; font-weight: 500;
  padding: 5px 14px; border-radius: 999px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}
.zc-mode-pill button:hover { color: #fff; }
.zc-mode-pill button.active {
  color: #fff;
  background: rgba(255,255,255,0.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.zc-top-link {
  background: transparent; border: 0;
  color: rgba(255,255,255,0.7);
  font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.zc-top-link:hover { color: #fff; }
.zc-btn {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.zc-btn:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); color: #fff; }
.zc-btn.primary {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 600;
}
.zc-btn.primary:hover { background: rgba(255,255,255,0.92); border-color: rgba(255,255,255,0.92); }
.zc-btn.primary.big { padding: 13px 26px; font-size: 15px; }
.zc-btn.ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
}
.zc-btn.ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ── Empty / crumb ─────────────────────────────────────────────── */
.zc-empty {
  text-align: center; padding: 96px 28px;
  color: rgba(255,255,255,0.45);
}
.zc-crumb {
  background: transparent; border: 0;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  margin-bottom: 18px;
  cursor: pointer;
  padding: 0;
  display: inline-block;
  text-decoration: none;
}
.zc-crumb:hover { color: #fff; }

/* ── Target dropdown + prompt modals ──────────────────────────── */
.zc-prompt-target-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 180px;
  background: rgba(20, 14, 32, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.5);
  z-index: 10;
  display: flex; flex-direction: column; gap: 2px;
}
.zc-prompt-target-menu button {
  background: transparent; border: 0;
  display: grid; grid-template-columns: 20px 1fr;
  text-align: left; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 8px;
  color: rgba(255,255,255,0.85);
  cursor: pointer; font-size: 13px; font: inherit;
}
.zc-prompt-target-menu button:hover { background: rgba(255,255,255,0.06); }
.zc-prompt-target-menu button.active { color: #fff; }
.zc-prompt-target-check { color: oklch(0.78 0.18 156); font-size: 12px; }

/* The `.zc-home > *:not(.zc-home-glow)` rule above gives every direct
   child of .zc-home `position: relative; z-index: 1`, which would
   override the modal's `position: fixed`. Force fixed + a much higher
   z-index so the modal escapes the home stacking context. */
.zc-modal-backdrop {
  position: fixed !important;
  inset: 0;
  z-index: 9999 !important;
  background: rgba(8,4,16,0.78);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  padding: 32px 20px;
  overflow-y: auto;
}
.zc-modal {
  position: relative;
  width: 100%; max-width: 480px;
  background: linear-gradient(180deg, oklch(0.18 0.05 290 / 0.9), oklch(0.10 0.03 280 / 0.95));
  border: 1px solid rgba(180,130,255,0.20);
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 0 30px 90px -20px rgba(0,0,0,0.7), 0 0 80px -20px oklch(0.55 0.22 280 / 0.45);
  color: rgba(255,255,255,0.9);
}
.zc-modal.wide { max-width: 680px; }
.zc-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  width: 32px; height: 32px;
  border-radius: 50%;
  color: rgba(255,255,255,0.7); font-size: 18px; line-height: 1;
  cursor: pointer;
}
.zc-modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.zc-modal-eyebrow {
  font-family: var(--zm-font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: oklch(0.78 0.18 38);
  margin-bottom: 10px;
}
.zc-modal-title {
  font-family: var(--zm-font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff; margin: 0 0 8px;
}
.zc-modal-sub {
  font-size: 14px; line-height: 1.55;
  color: rgba(255,255,255,0.6);
  margin: 0 0 20px;
}
.zc-modal-promptbox {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.zc-modal-promptbox-label {
  font-family: var(--zm-font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.zc-modal-promptbox-body {
  font-size: 14px; line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.zc-modal-tabs {
  display: flex; gap: 4px;
  padding: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  margin-bottom: 16px;
}
.zc-modal-tabs button {
  flex: 1;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,0.6);
  padding: 7px 14px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
}
.zc-modal-tabs button.active { background: rgba(255,255,255,0.10); color: #fff; }
.zc-modal-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.zc-modal-field { display: flex; flex-direction: column; gap: 5px; }
.zc-modal-field span {
  font-family: var(--zm-font-mono); font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}
.zc-modal-field input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font: inherit; font-size: 14px;
  outline: none;
}
.zc-modal-field input:focus { border-color: oklch(0.75 0.18 38 / 0.6); background: rgba(255,255,255,0.07); }
.zc-modal-cta { width: 100%; justify-content: center; }
.zc-modal-foot {
  margin-top: 14px;
  font-size: 13px; color: rgba(255,255,255,0.55);
  text-align: center;
}
.zc-modal-foot.small { font-size: 12px; }
.zc-modal-foot button {
  background: transparent; border: 0; padding: 0;
  color: oklch(0.78 0.18 38);
  font: inherit; cursor: pointer;
}
.zc-modal-foot button:hover { text-decoration: underline; }

/* Agent picker grid */
.zc-modal-agents {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}
.zc-modal-agent {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
}
.zc-modal-agent:hover { background: rgba(255,255,255,0.06); }
.zc-modal-agent.active {
  background: oklch(0.45 0.22 290 / 0.18);
  border-color: oklch(0.55 0.22 290 / 0.55);
}
.zc-modal-agent-name { color: #fff; font-size: 13px; font-weight: 600; }
.zc-modal-agent-note {
  font-family: var(--zm-font-mono); font-size: 10.5px;
  color: rgba(255,255,255,0.5);
}
.zc-modal-step { margin-bottom: 18px; }
.zc-modal-step-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.zc-modal-step-num {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: oklch(0.45 0.22 290 / 0.30);
  border: 1px solid oklch(0.55 0.22 290 / 0.50);
  border-radius: 50%;
  font-family: var(--zm-font-mono); font-size: 11px; font-weight: 700;
  color: oklch(0.85 0.18 290);
}
.zc-modal-step-title { font-size: 14.5px; font-weight: 600; color: #fff; }
.zc-modal-code {
  position: relative;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}
.zc-modal-code pre {
  margin: 0;
  padding: 12px 16px;
  font-family: var(--zm-font-mono); font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  white-space: pre;
  overflow-x: auto;
}
.zc-modal-copy {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--zm-font-mono); font-size: 11px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}
.zc-modal-copy:hover { background: rgba(255,255,255,0.15); }
.zc-modal-step-note {
  font-size: 12.5px; line-height: 1.55;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
}
.zc-modal-step-note code {
  font-family: var(--zm-font-mono); font-size: 11.5px;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px; border-radius: 3px;
  color: #fff;
}
@media (max-width: 720px) {
  .zc-modal-agents { grid-template-columns: 1fr 1fr; }
}

/* Author link — used in cards and detail pages */
.zc-author-link {
  background: transparent; border: 0; padding: 0;
  color: rgba(255,200,140,0.95);
  font: inherit; cursor: pointer;
  text-decoration: none;
}
.zc-author-link:hover { text-decoration: underline; }
.zc-card-author .zc-author-link { color: rgba(255,255,255,0.7); }

/* Drag affordance — carousel cursor states */
.zc-carousel-wrap.is-dragging { cursor: grabbing; }
.zc-carousel-wrap.is-dragging .zc-card-shell * { pointer-events: none; }

/* ── Mode gate (dev-only / consumer-only stub) ────────────────── */
.zc-gate {
  min-height: calc(100vh - 80px);
  display: grid; place-items: center;
  padding: 64px 28px;
}
.zc-gate-card {
  max-width: 520px;
  background: rgba(20, 14, 32, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 32px 36px;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.55);
}
.zc-gate-eyebrow {
  font-family: var(--zm-font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: oklch(0.78 0.18 38);
  margin-bottom: 12px;
}
.zc-gate-title {
  font-family: var(--zm-font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 12px;
}
.zc-gate-body {
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin: 0 0 24px;
}
.zc-gate-foot { margin-top: 18px; font-size: 13px; }
.zc-gate-foot a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.zc-gate-foot a:hover { color: #fff; text-decoration: underline; }

/* ── Consumer Home — hero glow + headline + prompt + carousel ─── */
.zc-home {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 28px 100px;
}
.zc-home > *:not(.zc-home-glow) { position: relative; z-index: 1; }
.zc-home-title {
  text-align: center;
  font-family: var(--zm-font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 12px auto 56px;
  max-width: 18ch;
}
.zc-home-title em {
  font-style: normal;
  color: oklch(0.74 0.20 40);
  background: linear-gradient(135deg, oklch(0.78 0.22 40), oklch(0.68 0.22 30));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0.04em 0.06em 0.08em;
  line-height: 1.15;
}

.zc-prompt {
  max-width: 880px;
  margin: 0 auto;
  background: rgba(18, 12, 30, 0.65);
  border: 1px solid rgba(180, 130, 255, 0.18);
  border-radius: 20px;
  padding: 22px 24px 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 20px 80px -20px rgba(120,60,255,0.30),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
.zc-prompt-input {
  width: 100%;
  background: transparent;
  border: 0; outline: 0; resize: none;
  color: rgba(255,255,255,0.92);
  font-family: inherit; font-size: 16px; line-height: 1.55;
  padding: 4px 0 8px;
}
.zc-prompt-input::placeholder { color: rgba(255,255,255,0.4); }
.zc-prompt-foot {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.zc-prompt-flex { flex: 1; min-width: 0; }
.zc-iconbtn {
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 16px; line-height: 1;
  cursor: pointer;
}
.zc-iconbtn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.zc-iconbtn.round { border-radius: 50%; font-size: 18px; }
.zc-prompt-target { display: flex; align-items: center; gap: 10px; position: relative; }
.zc-prompt-target-label {
  font-size: 12.5px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.zc-prompt-target-pick {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.zc-prompt-chev { font-size: 10px; color: rgba(255,255,255,0.45); }
.zc-prompt-send {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, oklch(0.7 0.22 35), oklch(0.55 0.22 280));
  border: 0; border-radius: 50%;
  color: #fff; font-size: 16px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,90,40,0.30), 0 6px 20px rgba(100,60,255,0.25);
}
.zc-prompt-send:hover { transform: translateY(-1px); }
.zc-prompt-hint {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,0.55);
  padding: 10px 0 4px;
}
.zc-prompt-hint-mark { color: oklch(0.7 0.20 280); font-size: 14px; }
.zc-prompt-hint b { color: rgba(255,255,255,0.85); font-weight: 600; }

.zc-divider {
  display: flex; align-items: center; gap: 12px;
  max-width: 880px; margin: 32px auto 28px;
}
.zc-divider i {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
}
.zc-divider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.68 0.20 38);
  box-shadow: 0 0 14px oklch(0.68 0.20 38 / 0.6);
}

.zc-explore-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.zc-explore-title {
  font-family: var(--zm-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
}
.zc-explore-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.zc-explore-more:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }
.zc-explore-more span { color: oklch(0.7 0.20 38); }

.zc-carousel-wrap {
  position: relative;
  overflow: hidden;
  scrollbar-width: none;
  cursor: grab;
}
.zc-carousel-wrap::-webkit-scrollbar { display: none; }
.zc-carousel-track {
  display: flex; gap: 18px;
  width: max-content;
  padding: 6px 0 8px;
}
.zc-carousel-fade {
  position: absolute; top: 0; bottom: 0; width: 80px;
  pointer-events: none;
  z-index: 2;
}
.zc-carousel-fade.left  { left: 0;  background: linear-gradient(90deg, #0a0612, transparent); }
.zc-carousel-fade.right { right: 0; background: linear-gradient(-90deg, #0a0612, transparent); }
.zc-carousel-track .zc-card-shell { flex: 0 0 220px; }

/* ── Browse hero glow ──────────────────────────────────────────── */
.zc-home-glow {
  position: absolute;
  inset: -20px 0 auto 0;
  height: 720px;
  pointer-events: none;
  z-index: 0;
}
.zc-home-glow-violet {
  position: absolute;
  left: 40%; top: 0;
  width: 720px; height: 480px;
  background: radial-gradient(closest-side, oklch(0.45 0.22 290 / 0.35), transparent 80%);
  filter: blur(10px);
}
.zc-home-glow-ember {
  position: absolute;
  right: 0; top: 60px;
  width: 540px; height: 320px;
  background: radial-gradient(closest-side, oklch(0.55 0.20 38 / 0.30), transparent 80%);
  filter: blur(20px);
}

/* ── Card primitives ──────────────────────────────────────────── */
.zc-card-shell {
  display: block;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
  text-decoration: none;
}
.zc-card {
  background: transparent;
  border: 0;
  padding: 0;
  display: flex; flex-direction: column;
  cursor: pointer;
  outline: none;
}
.zc-card-art {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 14px 36px rgba(0,0,0,0.45);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.zc-card:hover .zc-card-art {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 22px 50px rgba(0,0,0,0.55);
}
.zc-card-art-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.16) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 2px 2px;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.zc-card-art-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.zc-card-foot { padding: 12px 4px 8px; }
.zc-card-title {
  font-size: 16px; font-weight: 600;
  color: #fff;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zc-card-author { font-size: 12.5px; color: rgba(255,255,255,0.55); }
.zc-card-plays {
  font-size: 12px; color: rgba(255,255,255,0.45);
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 4px;
}

/* ── Per-card scenes — abstract "this is a game" placeholder art */
.zc-scene { position: absolute; inset: 0; overflow: hidden; font-family: var(--zm-font-mono); }
.scene-pixel { background: linear-gradient(180deg, oklch(0.85 0.04 88), oklch(0.65 0.05 88)); }
.zc-scene-pixel-grid {
  position: absolute; inset: 14px 14px 95px;
  background-image:
    linear-gradient(rgba(0,0,0,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.16) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px dashed rgba(0,0,0,0.3);
}
.zc-scene-pixel-figs { position: absolute; inset: auto 0 100px 0; display: flex; justify-content: center; gap: 24px; }
.zc-scene-pixel-fig { width: 18px; height: 26px; display: block; background: #2c1f15; position: relative; }
.zc-scene-pixel-fig::before { content: ""; position: absolute; inset: -6px 3px 18px 3px; background: #b89a76; border-radius: 50% 50% 12% 12% / 70% 70% 30% 30%; }
.zc-scene-pixel-fig.f1::after, .zc-scene-pixel-fig.f2::after, .zc-scene-pixel-fig.f3::after {
  content: ""; position: absolute; left: 4px; right: 4px; top: 14px; bottom: 0;
}
.zc-scene-pixel-fig.f1::after { background: #6b3a1a; }
.zc-scene-pixel-fig.f2::after { background: #6c6e8a; }
.zc-scene-pixel-fig.f3::after { background: #8a5a2a; }
.zc-scene-pixel-banner {
  position: absolute; left: 12px; right: 12px; bottom: 56px;
  background: #f1ead6; color: #2b1f14;
  padding: 6px 10px;
  border: 2px solid #2b1f14;
  font-size: 9px; letter-spacing: 0.05em;
  border-radius: 3px;
}
.zc-scene-pixel-menu { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; font-size: 10px; color: #2b1f14; }
.zc-scene-pixel-menu span { flex: 1; padding: 6px 8px; background: #f1ead6; border: 2px solid #2b1f14; text-align: center; border-radius: 3px; font-weight: 700; }

.scene-ragdoll { background: linear-gradient(180deg, #5db4dc, #82d3ec); }
.zc-scene-rag-stairs { position: absolute; inset: 0; width: 100%; height: 100%; }
.zc-scene-rag-score { position: absolute; left: 10px; top: 10px; font-size: 9px; color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,0.45); font-weight: 700; }
.zc-scene-rag-score b { font-size: 12px; }
.zc-scene-rag-score span { font-size: 8px; opacity: 0.85; }
.zc-scene-rag-combo { position: absolute; right: 14px; top: 14px; font-size: 14px; font-weight: 900; color: #ffd43d; text-shadow: 2px 2px 0 #5a3300; transform: rotate(-8deg); }
.zc-scene-rag-figure { position: absolute; left: 36%; top: 38%; width: 50px; height: 60px; transform: rotate(28deg); }
.zc-scene-rag-figure .rag-head { position: absolute; left: 16px; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #d6b890; }
.zc-scene-rag-figure .rag-body { position: absolute; left: 12px; top: 14px; width: 26px; height: 32px; background: #3b6dbb; border-radius: 6px; }
.zc-scene-rag-figure .rag-arm { position: absolute; left: 0; top: 18px; width: 22px; height: 8px; background: #3b6dbb; border-radius: 4px; transform: rotate(-30deg); }

.scene-helpdesk { background: linear-gradient(180deg, #c2b08a, #a08b62); }
.zc-scene-help-mock { position: absolute; inset: 12px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 6px; font-size: 8px; color: #1d1606; }
.zc-scene-help-head { grid-column: 1 / -1; background: #f1ead6; padding: 4px 8px; font-weight: 700; letter-spacing: 0.04em; border: 1px solid #1d1606; border-radius: 3px; }
.zc-scene-help-tickets, .zc-scene-help-ticket { background: #f1ead6; border: 1px solid #1d1606; border-radius: 3px; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.zc-scene-help-ticket .prio { color: #b03020; font-weight: 700; }
.zc-scene-help-ticket .actions { display: flex; gap: 4px; margin-top: 4px; }
.zc-scene-help-ticket .actions span { padding: 2px 5px; background: #1d1606; color: #f1ead6; border-radius: 2px; font-weight: 700; }
.zc-scene-help-bot { position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; display: grid; place-items: center; background: #f1ead6; color: #1d1606; border: 1.5px solid #1d1606; border-radius: 8px; font-size: 22px; }

.scene-arcade { background: linear-gradient(180deg, #1b2540 0%, #2d2046 100%); }
.zc-scene-arc-hud { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; font-size: 9px; color: #ffea7a; font-weight: 700; letter-spacing: 0.04em; }
.zc-scene-arc-hud b { color: #6fff8c; font-size: 11px; }
.zc-scene-arc-lot { position: absolute; inset: 0; width: 100%; height: 100%; }
.zc-scene-arc-wizard { position: absolute; right: 26%; top: 35%; width: 28px; height: 50px; }
.zc-scene-arc-wizard .hat { position: absolute; left: 0; top: 0; width: 28px; height: 22px; background: linear-gradient(135deg, #8a45c2, #5a2a8c); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.zc-scene-arc-wizard .robe { position: absolute; left: 4px; top: 18px; width: 20px; height: 32px; background: linear-gradient(135deg, #6a35a4, #2c1356); border-radius: 4px 4px 50% 50% / 4px 4px 30% 30%; }
.zc-scene-arc-actions { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 10px; font-size: 8px; color: rgba(255,255,255,0.85); font-weight: 700; letter-spacing: 0.05em; }

.scene-dungeon { background: linear-gradient(180deg, #2a1820, #1a0e16); }
.zc-scene-dun-hud { position: absolute; left: 10px; right: 10px; top: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: #ffea7a; font-weight: 800; }
.zc-scene-dun-hud .hp { color: #ff5575; letter-spacing: 0.1em; font-size: 10px; }
.zc-scene-dun-hud .gold { color: #fbe17c; font-size: 11px; }
.zc-scene-dun-shelves { position: absolute; inset: 32px 8px 70px; display: grid; grid-template-rows: repeat(3, 1fr); gap: 8px; }
.zc-scene-dun-shelves .shelf { background: linear-gradient(180deg, #5d3a52, #3a2030); border: 1px solid rgba(0,0,0,0.4); border-radius: 3px; }
.zc-scene-dun-figs { position: absolute; left: 10%; right: 10%; bottom: 76px; display: flex; justify-content: space-between; align-items: flex-end; height: 36px; }
.zc-scene-dun-figs .fig { width: 18px; height: 30px; border-radius: 3px 3px 0 0; }
.zc-scene-dun-figs .basket { background: #b85b3e; }
.zc-scene-dun-figs .pumpkin { background: #f08440; }
.zc-scene-dun-figs .ghost { background: rgba(220,210,235,0.8); }
.zc-scene-dun-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 4px; background: #1c0c14; border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; padding: 4px; }
.zc-scene-dun-bar .slot { flex: 1; min-width: 0; padding: 4px; text-align: center; background: #322028; border-radius: 4px; color: #ffd28a; font-size: 11px; }
.zc-scene-dun-bar .slot.picked { background: #5d3a52; color: #fff; font-size: 8px; letter-spacing: 0.05em; }

.scene-vehicle { background: linear-gradient(180deg, #1a1a28, #3a2c2c); }
.zc-scene-veh-road { position: absolute; left: 0; right: 0; bottom: 30px; height: 56px; background: linear-gradient(180deg, #4c4c5e, #1c1c28); }
.zc-scene-veh-road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; background-image: linear-gradient(90deg, #f9d96c 50%, transparent 50%); background-size: 24px 4px; }
.zc-scene-veh-bus { position: absolute; left: 24px; bottom: 60px; width: 110px; height: 36px; background: linear-gradient(180deg, #f7b15a, #c97a2c); border-radius: 6px 12px 4px 4px; }
.zc-scene-veh-bus::before { content: ""; position: absolute; left: 14px; top: 6px; width: 80px; height: 14px; background: #1b1b29; border-radius: 2px; }
.zc-scene-veh-hud { position: absolute; left: 12px; top: 12px; font-size: 10px; color: #ffd28a; font-weight: 700; letter-spacing: 0.05em; }

.scene-walk { background: linear-gradient(180deg, oklch(0.55 0.12 38), oklch(0.25 0.08 38)); }
.zc-scene-walk-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, oklch(0.45 0.08 38), oklch(0.15 0.05 38)); }
.zc-scene-walk-pillars { position: absolute; left: 0; right: 0; bottom: 38%; height: 50%; }
.zc-scene-walk-pillars .pillar { position: absolute; top: 0; bottom: 0; width: 14%; background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)); border-radius: 4px 4px 0 0; }
.zc-scene-walk-figure { position: absolute; left: 50%; bottom: 22%; width: 14px; height: 26px; background: rgba(0,0,0,0.55); border-radius: 4px 4px 0 0; transform: translateX(-50%); }

/* ── Consumer Browse — explore page ───────────────────────────── */
.zc-browse {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  padding: 32px 28px 100px;
}
.zc-browse > *:not(.zc-home-glow) { position: relative; z-index: 1; }

.zc-browse-hero-grid {
  display: grid; grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 36px;
}
.zc-browse-hero-headline { display: flex; flex-direction: column; justify-content: center; }
.zc-browse-eyebrow {
  font-family: var(--zm-font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.zc-browse-hero-headline h1 {
  font-family: var(--zm-font-display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 0.95;
  margin: 0 0 16px;
  color: #fff;
}
.zc-browse-hero-headline p {
  font-size: 16px; line-height: 1.5;
  color: rgba(255,255,255,0.6);
  margin: 0; max-width: 28ch;
}
.zc-browse-feature {
  position: relative;
  background: transparent;
  border: 0; padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex; flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 180ms ease;
}
.zc-browse-feature:hover { transform: translateY(-2px); }
.zc-browse-feature-art {
  position: relative;
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}
.zc-browse-feature-info {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  display: flex; flex-direction: column; gap: 4px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.zc-browse-feature-tag {
  font-family: var(--zm-font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: oklch(0.78 0.18 38);
}
.zc-browse-feature-title {
  font-family: var(--zm-font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
}
.zc-browse-feature-meta {
  font-size: 13px; color: rgba(255,255,255,0.7);
}

.zc-browse-strip { margin: 36px 0 30px; }
.zc-browse-strip-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.zc-browse-strip-head h2 {
  font-family: var(--zm-font-display);
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0; color: #fff;
}
.zc-browse-strip-hint {
  font-family: var(--zm-font-mono);
  font-size: 11px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}
.zc-browse-strip-reel {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  padding-bottom: 8px;
  user-select: none;
  align-items: flex-start;
}
.zc-browse-strip-reel::-webkit-scrollbar { display: none; }
.zc-browse-strip-reel .zc-card-shell { flex: 0 0 200px; }

.zc-browse-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
}
.zc-browse-filters button {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 13px; font-weight: 500;
  padding: 7px 16px; border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.zc-browse-filters button:hover { background: rgba(255,255,255,0.08); color: #fff; }
.zc-browse-filters button.active { background: #fff; color: #000; border-color: #fff; }
.zc-browse-filter-count {
  font-family: var(--zm-font-mono); font-size: 11px;
  padding: 1px 6px; border-radius: 999px;
  background: rgba(0,0,0,0.12);
  color: inherit; opacity: 0.65;
}
.zc-browse-filters button.active .zc-browse-filter-count {
  background: rgba(0,0,0,0.12); color: #000;
}
.zc-browse-grid-head {
  font-family: var(--zm-font-display);
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 16px;
}
.zc-browse-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

/* ── Tags / pill chips ────────────────────────────────────────── */
.zc-tag {
  font-family: var(--zm-font-mono);
  font-size: 11px; letter-spacing: 0.04em;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: rgba(255,255,255,0.75);
}

/* ── Comment row (Reviews + Comments tabs) ────────────────────── */
.zc-comments { display: flex; flex-direction: column; gap: 18px; }
.zc-comment {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
}
.zc-comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.6 0.18 32), oklch(0.4 0.12 32));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.zc-comment-avatar.agent {
  background: linear-gradient(135deg, oklch(0.6 0.18 280), oklch(0.4 0.16 280));
}
.zc-comment-head {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.zc-comment-name { color: #fff; font-weight: 600; font-size: 13.5px; }
.zc-comment-handle {
  background: transparent; border: 0; padding: 0;
  color: rgba(255,255,255,0.45);
  font-family: var(--zm-font-mono); font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.zc-comment-handle:hover { color: rgba(255,255,255,0.75); text-decoration: underline; }
.zc-comment-kind {
  font-family: var(--zm-font-mono);
  font-size: 10px;
  color: oklch(0.78 0.16 280);
  background: rgba(170,140,255,0.10);
  padding: 1px 6px; border-radius: 999px;
}
.zc-comment-bucket {
  display: inline-block;
  font-family: var(--zm-font-mono); font-size: 10px;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 999px;
  background: transparent;
}
.zc-comment-when { color: rgba(255,255,255,0.4); font-size: 12px; }
.zc-comment-text { color: rgba(255,255,255,0.8); line-height: 1.55; font-size: 14.5px; }
.zc-comment-actions {
  display: flex; align-items: center; gap: 4px;
  margin-top: 10px;
  font-family: var(--zm-font-mono); font-size: 12px;
}
.zc-comment-vote {
  background: transparent; border: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 4px;
  color: rgba(255,255,255,0.45);
  font-size: 10px; line-height: 1;
  cursor: pointer;
}
.zc-comment-vote:hover { background: rgba(255,255,255,0.06); color: #fff; }
.zc-comment-vote.up.active { color: oklch(0.85 0.16 145); background: oklch(0.5 0.18 145 / 0.16); }
.zc-comment-vote.down.active { color: oklch(0.85 0.16 25); background: oklch(0.5 0.18 25 / 0.16); }
.zc-comment-score {
  font-family: var(--zm-font-mono); font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.8);
  min-width: 26px; text-align: center;
}
.zc-comment-action {
  background: transparent; border: 0;
  color: rgba(255,255,255,0.5);
  font: inherit;
  padding: 4px 8px; border-radius: 4px;
  cursor: pointer;
  margin-left: 4px;
}
.zc-comment-action:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* ── Steam-style World detail (consumer) ──────────────────────── */
.zc-store {
  position: relative;
  min-height: 80vh;
  background: #0a0612;
  overflow: hidden;
}
.zc-store-bg {
  position: absolute; left: 0; right: 0; top: 0;
  height: 540px;
  z-index: 0;
  pointer-events: none;
}
.zc-store-shell {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 28px 28px 80px;
}
.zc-store-title {
  font-family: var(--zm-font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  margin: 0;
  color: #fff;
}
.zc-store-tagline {
  font-size: 17px; line-height: 1.55;
  color: rgba(255,255,255,0.75);
  max-width: 70ch;
  margin: 8px 0 28px;
}

.zc-store-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-bottom: 36px;
}
.zc-store-media { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.zc-store-media-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55);
}
.zc-store-media-art {
  position: relative;
  width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden;
}
.zc-store-media-cap {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
  font-family: var(--zm-font-mono);
  font-size: 11px; letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}
.zc-store-media-thumbs {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.zc-store-media-thumb {
  background: transparent; border: 0; padding: 0;
  cursor: pointer;
}
.zc-store-media-thumb-art {
  display: block;
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 140ms ease, transform 140ms ease;
  position: relative;
}
.zc-store-media-thumb:hover .zc-store-media-thumb-art { transform: translateY(-1px); border-color: rgba(255,255,255,0.18); }
.zc-store-media-thumb.active .zc-store-media-thumb-art {
  border-color: oklch(0.7 0.20 38);
  box-shadow: 0 0 0 1px oklch(0.7 0.20 38 / 0.6);
}

.zc-store-summary {
  background: rgba(20, 14, 32, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
  backdrop-filter: blur(8px);
  align-self: start;
}
.zc-store-byline {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: rgba(255,255,255,0.65);
}
.zc-store-author {
  background: transparent; border: 0;
  color: rgba(255,200,140,0.95);
  font: inherit; padding: 0; cursor: pointer;
  text-decoration: none;
}
.zc-store-author:hover { text-decoration: underline; }
.zc-store-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.zc-store-stat { display: flex; flex-direction: column; gap: 2px; }
.zc-store-stat span {
  font-family: var(--zm-font-mono);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.zc-store-stat b { font-size: 17px; color: #fff; font-weight: 600; }

.zc-store-vote {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 4px; align-items: stretch;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 4px;
}
.zc-store-vote-btn {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px; line-height: 1;
  transition: all 120ms ease;
}
.zc-store-vote-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
.zc-store-vote-btn.up.active { background: oklch(0.5 0.18 145 / 0.18); color: oklch(0.85 0.16 145); }
.zc-store-vote-btn.down.active { background: oklch(0.5 0.18 25 / 0.18); color: oklch(0.85 0.16 25); }
.zc-store-vote-score {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 18px;
  min-width: 90px;
}
.zc-store-vote-score-num { font-family: var(--zm-font-mono); font-size: 18px; font-weight: 700; color: #fff; }
.zc-store-vote-score-label {
  font-family: var(--zm-font-mono); font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.zc-store-play { width: 100%; justify-content: center; }
.zc-store-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zc-store-secondary .zc-btn { width: 100%; justify-content: center; }
.zc-store-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* About fold + tabs */
.zc-store-about {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 28px;
  position: relative;
}
.zc-store-about-head { margin-bottom: 8px; }
.zc-store-about-eyebrow {
  font-family: var(--zm-font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.zc-store-about-body {
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-height: 3.2em;
  overflow: hidden;
  position: relative;
  white-space: pre-wrap;
  transition: max-height 220ms ease;
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.zc-store-about.open .zc-store-about-body {
  max-height: 60em;
  mask-image: none;
  -webkit-mask-image: none;
}
.zc-store-about-toggle {
  background: transparent; border: 0;
  color: oklch(0.78 0.18 38);
  font-size: 12.5px; font-family: var(--zm-font-mono);
  cursor: pointer; padding: 6px 0 0; margin-top: 6px;
}
.zc-store-about-toggle:hover { text-decoration: underline; }
.zc-store-tabs-shell { margin: 18px 0 22px; }

.zc-world-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.zc-world-tabs button {
  background: transparent; border: 0;
  color: rgba(255,255,255,0.55);
  font-size: 14px; font-weight: 500;
  padding: 12px 16px; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 120ms ease, border-color 120ms ease;
}
.zc-world-tabs button:hover { color: rgba(255,255,255,0.85); }
.zc-world-tabs button.active { color: #fff; border-bottom-color: oklch(0.7 0.20 38); }
.zc-world-tab-count {
  font-family: var(--zm-font-mono);
  font-size: 11px;
  padding: 1px 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  color: rgba(255,255,255,0.55);
}
.zc-world-tabs button.active .zc-world-tab-count {
  color: oklch(0.75 0.18 38);
  background: oklch(0.75 0.18 38 / 0.15);
}

/* Ratings bars */
.zc-store-ratings-bars {
  display: flex; flex-direction: column; gap: 9px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
}
.zc-store-ratings-row {
  display: grid; grid-template-columns: 130px 1fr 110px;
  gap: 14px; align-items: center;
  font-size: 13px;
}
.zc-store-ratings-label {
  color: rgba(255,255,255,0.7);
  font-family: var(--zm-font-mono); font-size: 11.5px;
}
.zc-store-ratings-bar {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.zc-store-ratings-bar i { display: block; height: 100%; transition: width 0.4s ease; }
.zc-store-ratings-val {
  font-family: var(--zm-font-mono); font-size: 12px;
  text-align: right;
}
.zc-store-bucket-pick {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--zm-font-mono); font-size: 11px;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: background 120ms ease;
}
.zc-store-bucket-pick:hover { background: rgba(255,255,255,0.06); }
.zc-store-h {
  font-family: var(--zm-font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 22px 0 12px;
}
.zc-store-reviews { display: flex; flex-direction: column; gap: 12px; }
.zc-store-rating-summary { font-size: 13px; color: rgba(255,255,255,0.6); }
.zc-store-rating-summary b { color: oklch(0.8 0.16 145); }

/* Body — main + side */
.zc-store-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}
.zc-store-main { display: flex; flex-direction: column; gap: 28px; }
.zc-store-section h2 {
  font-family: var(--zm-font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px; color: #fff;
}
.zc-store-section p {
  font-size: 15.5px; line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin: 0; max-width: 68ch;
}
.zc-store-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px; flex-wrap: wrap; gap: 12px;
}
.zc-store-section-head h2 { margin: 0; }
.zc-store-write {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.zc-store-write textarea {
  width: 100%;
  background: transparent;
  border: 0; outline: 0; resize: none;
  color: rgba(255,255,255,0.85);
  font: inherit; font-size: 14px; line-height: 1.5;
}
.zc-store-write textarea::placeholder { color: rgba(255,255,255,0.4); }
.zc-store-write-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px;
  font-size: 11.5px; color: rgba(255,255,255,0.45);
  font-family: var(--zm-font-mono);
  gap: 12px; flex-wrap: wrap;
}

.zc-store-side { display: flex; flex-direction: column; gap: 14px; }
.zc-store-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px 18px;
}
.zc-store-card-head {
  font-family: var(--zm-font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.zc-store-related-row {
  display: grid; grid-template-columns: 42px 1fr; gap: 10px;
  align-items: center;
  background: transparent; border: 0; padding: 6px;
  border-radius: 10px; cursor: pointer; text-align: left;
  width: 100%;
  text-decoration: none;
  transition: background 120ms ease;
}
.zc-store-related-row:hover { background: rgba(255,255,255,0.04); }
.zc-store-related-thumb {
  width: 42px; height: 42px; border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  display: block;
}
.zc-store-related-info { display: flex; flex-direction: column; min-width: 0; }
.zc-store-related-info b {
  color: #fff; font-size: 13.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zc-store-related-info span {
  font-family: var(--zm-font-mono);
  font-size: 11px; color: rgba(255,255,255,0.45);
}
.zc-store-detail-row {
  display: flex; justify-content: space-between;
  padding: 7px 0;
  font-size: 13px; color: rgba(255,255,255,0.55);
  border-top: 1px dashed rgba(255,255,255,0.06);
}
.zc-store-detail-row:first-of-type { border-top: 0; }
.zc-store-detail-row b { color: #fff; font-weight: 500; }
.zc-store-detail-link {
  display: block;
  margin-top: 10px;
  background: transparent; border: 0;
  color: oklch(0.78 0.18 38);
  font-size: 13px; font-family: var(--zm-font-mono);
  cursor: pointer; text-align: left; padding: 0;
  text-decoration: none;
}
.zc-store-detail-link:hover { text-decoration: underline; }

/* Media grid */
.zc-media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.zc-media-card {
  background: transparent;
  border: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; text-align: left;
}
.zc-media-card-art {
  position: relative;
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 140ms ease, transform 140ms ease;
  display: block;
}
.zc-media-card:hover .zc-media-card-art { transform: translateY(-2px); border-color: rgba(255,255,255,0.18); }
.zc-media-card.active .zc-media-card-art {
  border-color: oklch(0.7 0.20 38);
  box-shadow: 0 0 0 1px oklch(0.7 0.20 38 / 0.5);
}
.zc-media-card-label { font-size: 13px; color: rgba(255,255,255,0.75); }

/* Related grid */
.zc-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.zc-related-card {
  background: transparent;
  border: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; text-align: left;
  text-decoration: none;
}
.zc-related-card-art {
  width: 100%; aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 140ms ease, border-color 140ms ease;
  display: block;
}
.zc-related-card:hover .zc-related-card-art {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
}
.zc-related-card-title { font-size: 15px; font-weight: 600; color: #fff; }
.zc-related-card-meta {
  font-family: var(--zm-font-mono); font-size: 11px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 980px) {
  .zc-store-hero { grid-template-columns: 1fr; }
  .zc-store-body { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .zc-browse-hero-grid { grid-template-columns: 1fr; }
  .zc-browse-feature-art { min-height: 220px; }
}
@media (max-width: 880px) {
  .zc-top { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .zc-top-search { order: 99; flex-basis: 100%; max-width: none; }
}
