:root {
  --white: #ffffff;
  --black: #0e0e11;
  --black-2: #16161c;
  --violet: #621ff5;
  --violet-deep: #4c12cc;
  --violet-soft: #f3eeff;
  --ink: #0e0e11;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e6e6eb;
  --line-dark: rgba(255, 255, 255, 0.14);
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --c-hot: #621ff5;
  --c-outreach: #0e0e11;
  --c-watch: #10b981;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--white); color: var(--ink); overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

/* =========================================================
   ARCHITECTURAL HAIRLINE TOP BAR
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  width: 100%;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--black);
}
.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(98, 31, 245, 0.16);
}
.nav-issue {
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--violet); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-kbd-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.nav-kbd-btn:hover { border-color: var(--black); color: var(--black); }
.nav-sub-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--black);
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.nav-sub-btn:hover { background: var(--violet); border-color: var(--violet); }

/* =========================================================
   LAYER 1: STICKY WHITE ARCHITECTURAL DOMAIN POSTER
   Stays pinned while the translucent-lipped violet curtain glides over it
   ========================================================= */
.poster-stage {
  position: sticky;
  top: 56px;
  z-index: 1;
  background: var(--white);
  padding: 22px 28px 18px;
  overflow: hidden;
  user-select: none;
}
/* Subtle architectural vertical guide lines + micro paper grain */
.poster-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14, 14, 17, 0.045) 1px, transparent 1px);
  background-size: 25% 100%;
}
.poster-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.poster-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.poster-domain {
  font-family: var(--display);
  font-size: clamp(46px, 11vw, 182px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.88;
  color: var(--black);
  white-space: nowrap;
}
.poster-tld {
  color: var(--violet);
  font-weight: 500;
}

/* =========================================================
   LAYER 2: TRANSLUCENT-LIPPED ELECTRIC VIOLET CURTAIN (#621FF5)
   Original PublicSift Sift Gate — refracts Layer 1 through its glass lip!
   ========================================================= */
.sift-curtain {
  position: relative;
  z-index: 10;
  color: var(--white);
  box-shadow: 0 -22px 54px rgba(14, 14, 17, 0.14);
}

/* Frosted violet glass lip: black domain text visibly blurs through on scroll */
.curtain-glass-lip {
  background: rgba(98, 31, 245, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
}
.lip-pill {
  background: rgba(14, 14, 17, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
}

.curtain-body {
  position: relative;
  background:
    radial-gradient(ellipse 70% 90% at 88% 12%, rgba(196, 181, 253, 0.24), transparent 62%),
    linear-gradient(175deg, #621ff5 0%, #5214da 65%, #4610be 100%);
  padding: 54px 28px 58px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  overflow: hidden;
}
/* Tactile fine grain texture on violet surface */
.curtain-body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.curtain-body > * { position: relative; z-index: 1; }

.curtain-lead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.curtain-title {
  font-family: var(--display);
  margin: 0;
  max-width: 780px;
  font-size: clamp(30px, 4.1vw, 54px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
}
.curtain-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cta-white {
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  background: #fff;
  color: var(--black);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 12px 28px rgba(14, 14, 17, 0.22);
  transition: transform 0.18s var(--spring);
}
.cta-white:hover { transform: translateY(-2px); }
.cta-ghost-white {
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(14, 14, 17, 0.22);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cta-ghost-white:hover { background: rgba(14, 14, 17, 0.42); border-color: #fff; }

/* ORIGINAL HORIZONTAL OPTICAL SIFT GATE (Frosted Obsidian Glass inside Violet) */
.sift-gate {
  background: rgba(14, 14, 17, 0.34);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 56px rgba(14, 14, 17, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.gate-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.gm-block { display: flex; flex-direction: column; gap: 2px; }
.gm-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}
.gm-num {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.gm-num.muted-num { color: rgba(255, 255, 255, 0.5); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.4); }
.gm-arrow { font-family: var(--mono); font-size: 18px; color: #ddd6fe; }
.gm-sep { width: 1px; height: 32px; background: rgba(255, 255, 255, 0.18); }

.gate-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  background: rgba(14, 14, 17, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.gt-btn {
  height: 30px;
  padding: 0 13px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.gt-btn.active { background: #fff; color: var(--black); }

/* Horizontal live signal strip */
.gate-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.gs-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.18s var(--spring), background 0.15s, border-color 0.15s;
}
.gs-chip:hover {
  background: rgba(14, 14, 17, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}
.gs-chip.noise {
  cursor: default;
  border-style: dashed;
  background: rgba(14, 14, 17, 0.18);
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 0.58;
}
.gs-chip.noise:hover { transform: none; background: rgba(14, 14, 17, 0.18); border-color: rgba(255, 255, 255, 0.12); }

/* =========================================================
   LAYER 3: FULL-BLEED OBSIDIAN BLACK STAGE — (01) LEAD SIGNALS
   ========================================================= */
.dark-stage {
  position: relative;
  z-index: 12;
  background:
    radial-gradient(ellipse 55% 320px at 80% 0%, rgba(98, 31, 245, 0.26), transparent 72%),
    var(--black);
  color: var(--white);
  padding: 76px 28px 84px;
}
.stage-inner {
  max-width: 1320px;
  margin: 0 auto;
}
.stage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-dark);
}
.stage-num {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}
.stage-title {
  font-family: var(--display);
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.04;
}
.stage-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dark-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.dark-card {
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  cursor: pointer;
  transition: transform 0.2s var(--spring), border-color 0.18s, background 0.18s;
}
.dark-card.lead-one {
  background: linear-gradient(155deg, rgba(98, 31, 245, 0.3) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(167, 139, 250, 0.45);
}
.dark-card:hover {
  transform: translateY(-4px);
  border-color: #a78bfa;
  background: rgba(255, 255, 255, 0.08);
}
.dark-amount {
  font-family: var(--display);
  font-size: clamp(34px, 3.1vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
}
.dark-sub { font-family: var(--sans); font-size: 12.5px; font-weight: 400; color: rgba(255, 255, 255, 0.62); margin-top: 7px; }
.dark-rank { font-family: var(--mono); font-size: 11.5px; color: #a78bfa; font-weight: 700; }

/* =========================================================
   LAYER 4: CRISP WHITE ARCHITECTURAL LEDGER — (02) LIVE DATA
   ========================================================= */
.light-stage {
  position: relative;
  z-index: 14;
  background: var(--white);
  color: var(--ink);
  padding: 76px 28px 110px;
}
.light-stage .stage-head { border-bottom: 1px solid var(--line); }
.light-stage .stage-num { color: var(--violet); }
.light-stage .stage-meta { color: var(--muted); }

/* Frozen Sticky Filter Toolbar (locks below topbar while browsing ledger) */
.strip-sticky-wrap {
  position: sticky;
  top: 56px;
  z-index: 35;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  margin: 0 -28px 18px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.strip-sticky-wrap.is-stuck {
  box-shadow: 0 12px 28px -14px rgba(14, 14, 17, 0.16);
}
.strip {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.tab {
  height: 34px;
  padding: 0 13px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
}
.tab:hover { background: #f4f4f6; color: var(--ink); }
.tab.active { background: var(--black); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.strip-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini-select, .mini-toggle {
  height: 34px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.mini-toggle { display: inline-flex; align-items: center; gap: 6px; user-select: none; }
.mini-toggle input { accent-color: var(--violet); margin: 0; }

/* Architectural Hairline Ledger */
.ledger { border-top: 2px solid var(--black); }
.ledger-head {
  display: grid;
  grid-template-columns: 56px minmax(220px, 1.8fr) minmax(130px, 0.9fr) minmax(130px, 0.85fr) 160px 80px;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ledger-row {
  display: grid;
  grid-template-columns: 56px minmax(220px, 1.8fr) minmax(130px, 0.9fr) minmax(130px, 0.85fr) 160px 80px;
  gap: 12px;
  align-items: center;
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s ease;
}
.ledger-row:hover { background: var(--violet-soft); }
.row-rank { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 700; }

.co-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.co-title { font-family: var(--sans); font-weight: 600; font-size: 14.5px; letter-spacing: -0.012em; color: var(--black); display: flex; align-items: center; gap: 6px; min-width: 0; }
.co-title-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-new, .badge-da {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
.badge-new { background: var(--violet-soft); color: var(--violet); }
.badge-da { background: #ececf2; color: #52525b; }
.co-sub { font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-desc { font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.lb-desc { font-family: var(--sans); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); background: var(--violet-soft); border-left: 3px solid var(--violet); padding: 9px 12px; border-radius: 6px; }
.pro-gate {
  margin-top: 16px;
  padding: 24px 26px;
  border-radius: 12px;
  border: 1px solid rgba(98, 31, 245, 0.28);
  background: linear-gradient(135deg, rgba(98, 31, 245, 0.07) 0%, rgba(14, 14, 17, 0.03) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.dom-pill { font-family: var(--mono); font-weight: 500; font-size: 10.5px; color: var(--violet); background: var(--violet-soft); padding: 1px 6px; border-radius: 4px; }
.sector-pill { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--ink-2); background: #f4f4f6; padding: 3px 9px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.amount-cell { text-align: right; }
.amount-val { font-family: var(--mono); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--black); }
#lb-sold { font-family: var(--display); }
#lb-name { font-family: var(--sans); font-weight: 700; }
.amount-bar { height: 3px; background: #eeeef2; border-radius: 99px; margin-top: 5px; overflow: hidden; }
.amount-bar-fill { height: 100%; background: var(--violet); border-radius: 99px; }

.row-save-wrap { justify-self: end; }
.save-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.12s, background 0.12s;
}
.dark-card .save-btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.ledger-row:hover .save-btn,
.dark-card:hover .save-btn,
.save-btn.saved { opacity: 1; }
.save-btn:hover { background: var(--violet); color: #fff; border-color: var(--violet); }

/* Crisp Squircle Logo / Monogram */
.app-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(14, 14, 17, 0.08);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
}
.app-icon img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.app-icon.sm { width: 26px; height: 26px; border-radius: 6px; font-size: 9.5px; }
.app-icon.sm img { width: 17px; height: 17px; }
.app-icon.lg { width: 44px; height: 44px; border-radius: 10px; font-size: 14px; }
.app-icon.lg img { width: 28px; height: 28px; }

/* =========================================================
   FIXED-GEOMETRY ZERO-JUMP SPLIT LIGHTBOX
   ========================================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 17, 0.64);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.lightbox {
  width: 100%;
  max-width: 860px;
  height: 600px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 40px 96px -20px rgba(0, 0, 0, 0.48);
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  transform: scale(0.97);
  transition: transform 0.2s var(--spring);
}
.overlay.open .lightbox { transform: scale(1); }

.lb-stage {
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(98, 31, 245, 0.45), transparent 70%),
    var(--black);
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}
.lb-paper {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lb-stage .circle-btn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.lb-stage .circle-btn:hover { background: var(--violet); border-color: var(--violet); }
.kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
}
.lb-stage .kbd { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #e4e2f0; }

.lb-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; background: #fff; }
.lb-panel-head { padding: 20px 24px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.lb-panel-scroll { flex: 1 1 auto; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.lb-panel-foot { padding: 14px 24px; border-top: 1px solid var(--line); background: #fafafa; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}
.circle-btn:hover { background: var(--black); color: #fff; border-color: var(--black); }

.list-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.color-pill {
  height: 30px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.color-pill:hover { background: #f4f4f6; }
.color-pill.active { background: var(--black); color: #fff; border-color: var(--black); }

.cta-violet {
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: none;
  background: var(--violet);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cta-violet:hover { background: var(--violet-deep); }

.meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meta-cell { background: #f8f8fb; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.meta-k { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--muted); }
.meta-v { font-size: 13px; font-weight: 700; margin-top: 2px; word-break: break-word; }

.exec-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; gap: 8px; }

.palette { width: 100%; max-width: 540px; background: #fff; border-radius: 14px; box-shadow: 0 40px 96px -20px rgba(0, 0, 0, 0.45); overflow: hidden; }
.pal-input-wrap { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.pal-input-wrap input { flex: 1; border: none; outline: none; font-size: 14.5px; color: var(--ink); background: transparent; }
.pal-results { max-height: 360px; overflow-y: auto; padding: 6px; }
.pal-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.pal-item:hover { background: var(--violet-soft); }

.dock {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  opacity: 0;
  pointer-events: none;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 20px 44px -10px rgba(0, 0, 0, 0.5);
  z-index: 65;
  transition: transform 0.25s var(--spring), opacity 0.2s ease;
}
.dock.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.dock-btn { height: 30px; padding: 0 12px; border-radius: 999px; border: none; font-size: 12px; font-weight: 700; cursor: pointer; }
.dock-signal { background: var(--violet); color: #fff; }
.dock-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }

.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.65);
  padding: 32px 28px;
  font-family: var(--mono);
  font-size: 11px;
  position: relative;
  z-index: 15;
}
.site-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1040px) {
  .gate-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links, .nav-issue { display: none; }
  .dark-podium { grid-template-columns: 1fr; }
  .gate-strip { grid-template-columns: 1fr; }
  .ledger-head, .ledger-row { grid-template-columns: 44px 1fr 110px; }
  .hide-sm { display: none; }
  .lightbox { grid-template-columns: 1fr; height: auto; max-height: 90vh; overflow-y: auto; }
  .lb-stage, .lb-panel { height: auto; overflow: visible; }
}

.archive-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--black);
  color: white;
  padding: 1rem max(1rem, calc((100vw - 58rem) / 2));
}
.archive-nav nav { display: flex; gap: 1rem; }
.archive-page {
  width: min(100% - 2rem, 58rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
  font-size: 1rem;
  line-height: 1.55;
}
.archive-page h1 {
  font: 700 clamp(2rem, 6vw, 4rem)/1.08 var(--display);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.archive-page h2 { margin-top: 2rem; }
.archive-page a { color: var(--violet); text-decoration: underline; }
.archive-lede { font-size: 1.15rem; max-width: 68ch; }
.archive-list { list-style: none; padding: 0; }
.archive-list li { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.archive-list span { display: block; color: var(--muted); }
.archive-page dt { font-weight: 700; }
.archive-page dd { margin: 0 0 .75rem; }
