/* SLONKS · 套利看板 v4 — Linear/Vercel-grade type system */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* === Colors === */
  --bg: #0a0e18;
  --bg-2: #131a2c;
  --bg-3: #1d2640;
  --bg-hover: #2a3454;
  --line: #283151;
  --line-soft: #1a2238;
  --txt: #f4f4f6;
  --txt-2: #a8b1c5;
  --txt-3: #6c7691;
  --green: #62fa4d;
  --green-glow: rgba(98, 250, 77, 0.18);
  --green-soft: rgba(98, 250, 77, 0.08);
  --magenta: #ff52c1;
  --magenta-glow: rgba(255, 82, 193, 0.18);
  --cyan: #4adcff;
  --cyan-glow: rgba(74, 220, 255, 0.18);
  --yellow: #ffce3a;
  --yellow-glow: rgba(255, 206, 58, 0.2);
  --red: #ff5570;
  --red-glow: rgba(255, 85, 112, 0.2);
  --orange: #ff9c3e;

  /* === Type === */
  --font-ui: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont,
             'Segoe UI Variable Display', 'Segoe UI', 'Roboto',
             'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei',
             system-ui, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'IBM Plex Mono',
               'Menlo', 'Cascadia Code', 'Consolas', 'Roboto Mono',
               ui-monospace, monospace;

  /* === Sizing === */
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
}

html, body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--green); }

button { font-family: inherit; }
input, select { font-family: inherit; }

/* Numbers + IDs use mono */
.mono, .num, .stat-value, .token-main, .lv-badge, .b-tag,
.board td.num, .board td.usd-slop, .board td.ev-cell,
.board td.token-id, .board td.slop, .board td.rank {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum', 'zero', 'cv11';
}

/* ============== HEADER ============== */
.hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.6rem;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.brand { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }

/* Data accuracy badge — yellow tone, sits next to title in top-left */
.accuracy-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  background: rgba(255, 180, 40, 0.10);
  color: #ffb84a;
  border: 1px solid rgba(255, 180, 40, 0.35);
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: help;
  font-family: var(--font-ui);
  white-space: nowrap;
}
.accuracy-badge:hover {
  background: rgba(255, 180, 40, 0.16);
  border-color: rgba(255, 180, 40, 0.5);
}

/* Author block — top-right, X + TG icon buttons */
.author {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-ui);
}
.author-by {
  font-size: 0.74rem;
  color: var(--txt-3);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.author-by strong { color: var(--txt-2); font-weight: 700; }
.author-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--txt-2);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.author-link:hover {
  background: #000;
  border-color: var(--txt-2);
  color: #fff;
}
.author-link.tg:hover {
  background: #229ED9;
  border-color: #229ED9;
  color: #fff;
}
.author-link svg {
  width: 13px;
  height: 13px;
}

.logo {
  font-size: 1.7rem;
  color: var(--yellow);
  /* removed drop-shadow on text/logo to keep crisp rendering */
  line-height: 1;
}

.title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--txt);
  white-space: nowrap;
  font-family: var(--font-ui);
}
.title .zh {
  font-weight: 800;
  color: var(--green);
  margin-left: 0.1em;
}

.status-row {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  min-width: 80px;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt-3);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: var(--font-ui);
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 0.4s, transform 0.2s;
}

.stat-value.floor { color: var(--green); }
.stat-value.eth { color: var(--yellow); }
.stat-value.sync {
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-ui);
}

.stat-value.flash {
  animation: flashGreen 1.4s cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes flashGreen {
  0%   { color: var(--cyan); }
  25%  { color: var(--green); }
  100% { color: var(--cyan); }
}

/* --- SLOP price hero stat --- */
.slop-stat .stat-value.slop-price {
  color: #ffb84a;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.slop-stat .stat-source {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--txt-3);
  letter-spacing: 0.05em;
  text-transform: lowercase;
  margin-left: 0.25rem;
}
.stat-change {
  font-size: 0.74rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: -0.005em;
  margin-top: 0.15rem;
  color: var(--txt-3);
  font-variant-numeric: tabular-nums;
}
.stat-change.pos { color: #6ee7a8; }
.stat-change.neg { color: #ff6e6e; }

/* --- EV bar live tier (different style from preset numeric tiers) --- */
.launch-tier.live-tier {
  background: rgba(70, 200, 140, 0.10);
  border-color: rgba(70, 200, 140, 0.35);
  color: #6ee7a8;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.launch-tier.live-tier:hover {
  background: rgba(70, 200, 140, 0.18);
  border-color: rgba(70, 200, 140, 0.6);
}
.launch-tier.live-tier.active {
  background: rgba(70, 200, 140, 0.28);
  border-color: #6ee7a8;
  box-shadow: 0 0 0 1px #6ee7a8 inset;
  color: #fff;
}
.launch-tier.live-tier:not(.available) {
  opacity: 0.5;
  pointer-events: none;
}

#refreshBtn {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: all 0.15s;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
}
#refreshBtn:hover {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}

/* ============== TABS ============== */
.tabs {
  display: flex;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow-x: auto;
}

.tab {
  background: transparent;
  border: none;
  color: var(--txt-2);
  padding: 0.95rem 1.5rem;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--font-ui);
}
.tab:hover { color: var(--txt); background: rgba(255,255,255,0.03); }
.tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: var(--green-soft);
}

/* ============== EV BAR ============== */
.ev-bar {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 0.95rem 2rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.ev-left, .ev-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.ev-prefix {
  color: var(--txt-2);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.ev-bar input[type="range"] {
  width: 200px;
  accent-color: var(--green);
}

.ev-bar input[type="number"] {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--yellow);
  padding: 0.4rem 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  width: 88px;
  text-align: center;
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
}
.ev-bar input[type="number"]:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px var(--yellow-glow);
}

.ev-unit { color: var(--txt-3); font-size: 0.82rem; }

.launch-tier {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  border-radius: var(--radius-sm);
  letter-spacing: -0.005em;
}
.launch-tier:hover {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}
.launch-tier.active {
  background: var(--yellow);
  color: var(--bg);
  border-color: var(--yellow);
  font-weight: 700;
}

/* ============== LAUNCH BANNER ============== */
.launch-banner {
  background: linear-gradient(90deg, rgba(255,180,40,0.14), rgba(255,140,30,0.06) 50%, transparent 90%);
  border-bottom: 1px solid rgba(255,180,40,0.35);
  padding: 0.55rem 1.5rem;
  font-family: var(--font-ui);
}
.launch-banner-inner {
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.launch-banner-icon {
  font-size: 1.05rem;
  filter: none;
}
.launch-banner-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffb84a;
  letter-spacing: 0.02em;
}
.launch-banner-time {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffd07a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.launch-banner-detail {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: auto;
}
.launch-banner.launching-soon {
  background: linear-gradient(90deg, rgba(255,80,80,0.20), rgba(255,80,80,0.06) 50%, transparent 90%);
  border-bottom-color: rgba(255,80,80,0.5);
  animation: launchPulse 2s ease-in-out infinite;
}
.launch-banner.launching-soon .launch-banner-label,
.launch-banner.launching-soon .launch-banner-time { color: #ff6e6e; }
.launch-banner.post-launch {
  background: linear-gradient(90deg, rgba(70,200,140,0.16), rgba(70,200,140,0.05) 50%, transparent 90%);
  border-bottom-color: rgba(70,200,140,0.4);
}
.launch-banner.post-launch .launch-banner-label,
.launch-banner.post-launch .launch-banner-time { color: #6ee7a8; }
.launch-banner.void-open {
  background: linear-gradient(90deg, rgba(120,160,255,0.18), rgba(120,160,255,0.05) 50%, transparent 90%);
  border-bottom-color: rgba(120,160,255,0.4);
}
.launch-banner.void-open .launch-banner-label,
.launch-banner.void-open .launch-banner-time { color: #88a8ff; }
@keyframes launchPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.78; }
}

/* ============== HERO STATS STRIP (post-void) ============== */
.hero-stats {
  background: linear-gradient(90deg, rgba(120,160,255,0.08), rgba(120,160,255,0.03) 50%, rgba(120,160,255,0.06) 100%);
  border-bottom: 1px solid rgba(120,160,255,0.22);
  padding: 0.55rem 1.5rem;
  font-family: var(--font-ui);
}
.hero-stats-inner {
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #4a7bf0, #5e8df5);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255,255,255,0.15);
  transition: filter 0.15s, transform 0.15s;
  white-space: nowrap;
}
.hero-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.hero-cta:active { transform: translateY(0); }
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  cursor: help;
}
.hero-stat-label {
  font-size: 0.66rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #cfd8e8;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ============== STICKY LAYERS ============== */
/* Sticky stack — keep nav + filters + thead visible while scrolling rows.
   z-index hierarchy: tabs (50) > ev-bar/sub-tabs (45) > filters (40) > thead (30).
   Heights are approximate; tweak if items reflow on narrow viewports. */

:root {
  --sticky-tabs-h: 52px;       /* nav.tabs height */
  --sticky-ev-h: 60px;         /* #evBar height */
  --sticky-filters-h: 70px;    /* .filters row height */
  --sticky-subtabs-h: 50px;    /* .sub-tabs / .sub-tabs-pill height */
}

nav.tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}

.ev-bar {
  position: sticky;
  top: var(--sticky-tabs-h);
  z-index: 45;
  background: var(--bg);
}

/* Filters: always sticky. Top offset varies by whether EV bar is shown above. */
.tab-content[data-tab="merge"] .filters,
.tab-content[data-tab="direct"] .filters {
  position: sticky;
  top: calc(var(--sticky-tabs-h) + var(--sticky-ev-h));
  z-index: 40;
  background: var(--bg);
}
.tab-content[data-tab="holders"] .filters {
  position: sticky;
  top: calc(var(--sticky-tabs-h) + var(--sticky-subtabs-h));
  z-index: 40;
  background: var(--bg);
}

/* Sub-tabs: sticky directly under main tabs */
.tab-content[data-tab="holders"] .sub-tabs,
.tab-content[data-tab="cap"] .sub-tabs-pill,
.tab-content[data-tab="mechanics"] .sub-tabs-pill {
  position: sticky;
  top: var(--sticky-tabs-h);
  z-index: 45;
  background: var(--bg);
}

/* Sticky thead intentionally NOT applied — `.board` uses `overflow: hidden` for
   rounded corners which creates a sticky-containment context, causing the thead
   to drift mid-table when scrolling. Filters bar staying sticky is enough.
   If sticky thead is needed later, wrap each table in a `.board-wrap` div for
   the overflow-hidden + rounded corners and let `.board` itself overflow visible. */

/* ============== MAIN ============== */
main {
  padding: 1.8rem 2rem;
  max-width: 1700px;
  margin: 0 auto;
}

.tab-content { display: none; }
.tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== BANNER ============== */
.banner {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.banner-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-bottom: 0.35rem;
  font-family: var(--font-ui);
}

.banner-sub {
  font-size: 0.86rem;
  color: var(--txt-2);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.banner-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.b-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-3);
  color: var(--txt-2);
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line);
  letter-spacing: -0.005em;
  font-family: var(--font-ui);
}
.b-tag.total {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  border-color: rgba(98, 250, 77, 0.3);
}
.b-tag.total strong { color: var(--green); }
.b-tag.pos {
  background: rgba(70, 200, 140, 0.14);
  color: #6ee7a8;
  border: 1px solid rgba(70, 200, 140, 0.32);
}
.b-tag.pos strong { color: #6ee7a8; }
.b-tag.warn {
  background: var(--yellow-glow);
  color: var(--yellow);
  border-color: rgba(255, 206, 58, 0.4);
}
.b-tag strong { color: var(--txt); font-weight: 800; font-family: var(--font-mono); }

/* ============== FILTERS ============== */
.filters {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filters label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--txt-2);
  font-size: 0.88rem;
  font-weight: 600;
}

.filters input, .filters select {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 0.42rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  min-width: 130px;
}
.filters select { padding-right: 1.5rem; cursor: pointer; }
.filters input:focus, .filters select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-soft);
}

.filters button {
  background: var(--green);
  border: none;
  color: var(--bg);
  padding: 0.5rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  border-radius: var(--radius-sm);
}
.filters button:hover { background: var(--cyan); }

.filters .filter-reset {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--txt-3);
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.filters .filter-reset:hover {
  background: var(--bg-3);
  color: var(--txt);
  border-color: var(--txt-3);
}

.filters .search-label input {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  min-width: 160px;
}
.filters .search-label input::placeholder {
  color: var(--txt-3);
  opacity: 0.7;
  font-family: var(--font-ui);
  letter-spacing: normal;
}
.filters input:placeholder-shown {
  font-weight: 500;
}

.filter-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 3px;
  font-family: var(--font-mono);
  vertical-align: middle;
}

/* ============== SUB-TABS ============== */
.sub-tabs {
  display: flex;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.sub-tab {
  background: transparent;
  border: none;
  color: var(--txt-2);
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}
.sub-tab.active {
  color: var(--magenta);
  border-bottom-color: var(--magenta);
}

/* Pill-style sub-tabs (for top-level mechanics + cap) */
.sub-tabs.sub-tabs-pill {
  display: flex;
  gap: 0.4rem;
  border-bottom: none;
  margin-bottom: 1.2rem;
  padding: 0.4rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  flex-wrap: wrap;
}
.sub-tabs.sub-tabs-pill .sub-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--txt-2);
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.sub-tabs.sub-tabs-pill .sub-tab:hover {
  color: var(--txt);
  background: var(--bg-3);
}
.sub-tabs.sub-tabs-pill .sub-tab.active {
  background: var(--bg-3);
  color: var(--green);
  border-color: var(--green);
  font-weight: 700;
}

.sub-content { display: none; }
.sub-content.active { display: block; }

/* ============== TABLE ============== */
.board {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.board thead { background: var(--bg-3); }

.board th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--txt-3);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  background: var(--bg-3);
  font-family: var(--font-ui);
}

.board th.num { text-align: right; }
.board th.highlight { color: var(--yellow); }

.board td {
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.board td.num { text-align: right; }
.board tr {
  transition: background 0.12s;
}
.board tr:hover { background: var(--bg-hover); }
.board tr:last-child td { border-bottom: none; }

.board tr.top-row {
  background: linear-gradient(90deg, var(--green-soft) 0%, transparent 88%);
  border-left: 3px solid var(--green);
}
.board tr.top-row:hover { background: linear-gradient(90deg, var(--bg-hover) 0%, var(--bg-hover) 88%); }
.board tr.top-row td { padding: 0.95rem 1rem; }

.board tr.top-row .rank {
  color: var(--yellow);
  font-size: 1.4rem;
  font-weight: 800;
  /* removed drop-shadow */
}

.board td.rank, .board th.rank {
  width: 48px;
  text-align: center;
  color: var(--txt-3);
  font-weight: 700;
  font-size: 0.95rem;
}

.board td.usd-slop {
  font-weight: 700;
  color: var(--green);
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}
.board td.usd-slop.high { color: var(--orange); }
.board td.usd-slop.bad { color: var(--red); }

.board td.ev-cell {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}
.board td.ev-cell.profit { color: var(--green); }
.board td.ev-cell.loss { color: var(--red); }

.board td.token-id {
  font-weight: 600;
}
.token-main {
  color: var(--cyan);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.token-sub {
  color: var(--txt-3);
  font-size: 0.74rem;
  font-weight: 500;
  margin-top: 0.18rem;
  line-height: 1.4;
  font-family: var(--font-ui);
  letter-spacing: -0.005em;
}
.token-sub strong {
  color: var(--magenta);
  font-weight: 700;
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
}

.board td.attrs {
  color: var(--txt-2);
  font-size: 0.78rem;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.board td.punkType {
  color: var(--magenta);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Path column with badges */
.board td.path-cell { padding: 0.78rem 0.7rem; min-width: 130px; }

.path-row {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--bg);
  padding: 0.32rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1;
}

.path-plus, .path-arrow {
  color: var(--txt-3);
  font-weight: 600;
  font-size: 0.78rem;
}
.path-arrow {
  color: var(--txt-2);
  font-weight: 700;
  margin: 0 0.1rem;
}

.lv-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-weight: 700;
  font-size: 0.74rem;
  border-radius: 3px;
  letter-spacing: 0;
  vertical-align: middle;
  font-feature-settings: 'tnum';
}
.lv-badge.lv0 { background: var(--bg-3); color: var(--txt-2); }
.lv-badge.lv1 { background: var(--cyan); color: var(--bg); }
.lv-badge.lv2 { background: var(--magenta); color: var(--bg); }
.lv-badge.lv3 { background: var(--yellow); color: var(--bg); }
.lv-badge.lv4, .lv-badge.lv5, .lv-badge.lv6 { background: var(--green); color: var(--bg); }

.board td.buy a, .board a.buy-btn {
  display: inline-block;
  background: var(--green);
  color: var(--bg);
  padding: 0.36rem 0.7rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: -0.005em;
  margin-right: 0.25rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.12s;
  font-family: var(--font-mono);
}
.board a.buy-btn:hover {
  background: var(--cyan);
  text-decoration: none;
  /* transform removed for crispness */
}

.board td.level {
  font-weight: 700;
  font-size: 0.95rem;
}
.board td.level.l0 { color: var(--txt-3); }
.board td.level.l1 { color: var(--cyan); }
.board td.level.l2 { color: var(--magenta); }
.board td.level.l3 { color: var(--yellow); }
.board td.level.l4, .board td.level.l5, .board td.level.l6 { color: var(--green); }

.board td.loading {
  text-align: center;
  color: var(--txt-2);
  font-style: italic;
  padding: 4rem;
  font-size: 1rem;
  font-family: var(--font-ui);
}

.board td.slop {
  font-weight: 700;
  color: var(--magenta);
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.board td.strong { font-weight: 700; font-size: 1rem; }
.board td.pct { color: var(--cyan); font-weight: 600; }
.board td.money { color: var(--green); font-weight: 600; }
.board td.addr a { color: var(--cyan); font-weight: 600; font-family: var(--font-mono); }

/* === REFINED CONFLICT MARKER (no more aggressive dim) === */
.board tr.conflict-row {
  /* opacity stays 1 — pair is still valid for SINGLE merge */
}
.board tr.conflict-row td.rank::after {
  content: '↻';
  display: inline-block;
  margin-left: 0.3rem;
  color: var(--txt-3);
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: super;
  opacity: 0.7;
}
.board tr.conflict-row:hover td.rank::after {
  color: var(--yellow);
  opacity: 1;
}

/* Pulse animation when row updates */
.board tr.just-updated {
  animation: rowFlash 1.4s cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes rowFlash {
  0%   { background: var(--green-glow); box-shadow: inset 3px 0 0 var(--green); }
  60%  { background: var(--green-soft); box-shadow: inset 2px 0 0 var(--green); }
  100% { background: transparent; box-shadow: none; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem !important;
}
.empty-icon { font-size: 2rem; margin-bottom: 0.5rem; opacity: 0.5; }
.empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 0.3rem;
}
.empty-sub {
  font-size: 0.83rem;
  color: var(--txt-3);
  font-weight: 500;
}

/* ============== HOLDERS / CAP CARDS ============== */
.concentration-grid, .cap-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.conc-card, .cap-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.conc-card:hover, .cap-card:hover {
  border-color: var(--cyan);
}

.conc-label, .cap-label {
  font-size: 0.7rem;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-family: var(--font-ui);
}

.conc-value, .cap-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--txt);
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.conc-value.slop, .cap-value.slop { color: var(--magenta); }
.cap-value.money { color: var(--green); }
.cap-value.highlight {
  color: var(--yellow);
  /* removed drop-shadow */
}

/* Live SLOP overview cards — distinct treatment so they read as "real-time, not static" */
.cap-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--txt-2);
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
  font-family: var(--font-ui);
}
.cap-overview-live {
  margin-bottom: 0.6rem;
}
.cap-card.live {
  background: linear-gradient(135deg, rgba(70,200,140,0.06), rgba(255,180,40,0.04) 50%, var(--bg-2) 100%);
  border-color: rgba(70,200,140,0.2);
}
.cap-card.live:hover {
  border-color: #6ee7a8;
}
.cap-card.highlight-card {
  background: linear-gradient(135deg, rgba(255,180,40,0.08), var(--bg-2));
  border-color: rgba(255,180,40,0.35);
}
.cap-card.highlight-card:hover {
  border-color: #ffb84a;
}
.cap-card-sub {
  font-size: 0.7rem;
  color: var(--txt-3);
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.cap-card-sub.pos { color: #6ee7a8; }
.cap-card-sub.neg { color: #ff6e6e; }

/* === VOID GUIDE — action-focused clean redesign === */

/* Status strip: at-a-glance whether void is open */
.void-strip {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.95rem 1.4rem;
  background: linear-gradient(135deg, rgba(255,180,40,0.10), rgba(70,200,140,0.04) 70%, var(--bg-2));
  border: 1px solid rgba(255,180,40,0.3);
  border-radius: 8px;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.void-strip.open {
  background: linear-gradient(135deg, rgba(70,200,140,0.18), rgba(70,200,140,0.04) 70%, var(--bg-2));
  border-color: rgba(70,200,140,0.5);
}
.void-strip-state {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffb84a;
  padding: 0.3rem 0.65rem;
  background: rgba(255,180,40,0.15);
  border-radius: 4px;
  font-family: var(--font-ui);
}
.void-strip.open .void-strip-state {
  color: #6ee7a8;
  background: rgba(70,200,140,0.18);
}
.void-strip-time {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffd07a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.void-strip.open .void-strip-time { color: #6ee7a8; }
.void-strip-meta {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--txt-3);
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}
.void-strip-meta strong {
  color: var(--txt);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.void-strip-sep { opacity: 0.4; }

/* === MERGE SIMULATOR (table mode) === */
.sim-controls {
  display: flex;
  gap: 0.95rem;
  padding: 1rem 1.4rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  position: sticky;
  top: var(--sticky-tabs-h);
  z-index: 40;
}
.sim-scan-btn {
  background: var(--green);
  color: var(--bg);
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  transition: background 0.15s;
}
.sim-scan-btn:hover { background: var(--cyan); }
.sim-scan-btn:disabled {
  background: var(--bg-3);
  color: var(--txt-3);
  cursor: not-allowed;
}
.sim-progress {
  margin-bottom: 0.85rem;
  padding: 0.7rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.sim-progress-bar {
  height: 6px;
  background: rgba(0,0,0,0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}
.sim-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  width: 0%;
  transition: width 0.4s ease;
}
.sim-progress-text {
  font-size: 0.78rem;
  color: var(--txt-3);
  font-family: var(--font-mono);
}
.sim-worker-meta {
  font-size: 0.78rem;
  color: var(--txt-3);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  letter-spacing: -0.005em;
}
.sim-worker-meta strong { color: var(--txt-2); font-weight: 700; }
.sim-worker-active {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  background: rgba(70, 160, 200, 0.15);
  color: var(--cyan);
  border-radius: 3px;
  font-weight: 700;
  margin-right: 0.4rem;
}

.sim-table .slop-col {
  background: rgba(255, 100, 200, 0.04);
}
.sim-table tbody tr:hover { background: var(--bg-hover); }
.sim-table tbody tr.unlisted-row {
  opacity: 0.78;
}
.sim-table tbody tr.unlisted-row:hover {
  opacity: 1;
  background: var(--bg-hover);
}
.status-listed {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  background: rgba(70,200,140,0.15);
  color: #6ee7a8;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.status-listed strong { color: #6ee7a8; }
.status-unlisted {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  background: rgba(180,180,180,0.10);
  color: var(--txt-3);
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.status-owner {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--txt-3);
  text-decoration: none;
  margin-left: 0.4rem;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s;
}
.status-owner:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.sim-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 180px;
}
.sim-input-row.flex-grow { flex: 1; }
.sim-label {
  font-size: 0.8rem;
  color: var(--txt-2);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sim-hint {
  color: var(--txt-3);
  font-weight: 400;
  font-size: 0.72rem;
  margin-left: 0.4rem;
}
.sim-controls input,
.sim-controls select {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 0.55rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
}
.sim-controls input::placeholder {
  font-family: var(--font-ui);
  color: var(--txt-3);
}
.sim-controls input:focus,
.sim-controls select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-soft);
}

.sim-status {
  font-size: 0.85rem;
  color: var(--txt-3);
  padding: 0.6rem 1rem;
  margin-bottom: 0.85rem;
  background: rgba(0,0,0,0.18);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  font-family: var(--font-mono);
}
.sim-status.empty {
  color: var(--txt-3);
  text-align: center;
  border-left-color: rgba(255,180,40,0.4);
}

.sim-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.sim-section {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.sim-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--txt);
  margin: 0 0 0.85rem;
  font-family: var(--font-ui);
  letter-spacing: -0.005em;
}
.sim-section-count {
  font-size: 0.78rem;
  color: var(--txt-3);
  font-weight: 500;
  margin-left: 0.5rem;
  font-family: var(--font-mono);
}
.sim-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 0.85rem;
}
.sim-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.15s;
}
.sim-card:hover { border-color: var(--cyan); }
.sim-card.top {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(70,200,140,0.08), var(--bg-3));
}
.sim-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.sim-card-rank {
  font-size: 0.78rem;
  color: var(--txt-3);
  font-family: var(--font-mono);
  font-weight: 700;
}
.sim-card-rank.top { color: var(--green); }
.sim-card-path {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}
.sim-card-tokens {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.sim-card-token {
  flex: 1;
}
.sim-card-token .token-num {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--cyan);
  cursor: pointer;
  letter-spacing: -0.01em;
}
.sim-card-token .token-num.donor { color: var(--magenta); }
.sim-card-token .token-detail {
  font-size: 0.74rem;
  color: var(--txt-3);
  font-family: var(--font-mono);
  margin-top: 0.15rem;
}
.sim-card-arrow {
  font-size: 1.1rem;
  color: var(--txt-3);
  flex: 0 0 auto;
}
.sim-card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: rgba(0,0,0,0.22);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.sim-stat-label {
  font-size: 0.68rem;
  color: var(--txt-3);
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.sim-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--txt);
}
.sim-stat-value.slop { color: var(--magenta); }
.sim-stat-value.usd-slop { color: var(--green); }
.sim-stat-value.usd-slop.high { color: #ffb84a; }
.sim-stat-value.usd-slop.bad { color: #ff8e8e; }
.sim-stat-value.profit { color: var(--green); }
.sim-stat-value.profit.loss { color: #ff8e8e; }

.sim-card-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}
.sim-card-actions .actions-pair {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}
.sim-card-empty {
  font-size: 0.85rem;
  color: var(--txt-3);
  text-align: center;
  padding: 1.2rem;
  background: rgba(0,0,0,0.18);
  border-radius: 5px;
  font-family: var(--font-ui);
}

/* Custom tooltip widget — replaces native title= popups (slow + ugly). */
.tooltip-widget {
  position: fixed;
  z-index: 9999;
  max-width: 380px;
  padding: 0.55rem 0.85rem;
  background: rgba(15, 18, 22, 0.97);
  color: var(--txt);
  border: 1px solid rgba(70, 200, 140, 0.4);
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.55;
  font-family: var(--font-ui);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  letter-spacing: -0.005em;
  animation: tooltipFadeIn 0.12s ease-out;
}
@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Banner link in launch banner detail */
.banner-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
  font-weight: 600;
}
.banner-link:hover {
  text-decoration-color: currentColor;
}
/* Highlighted CTA flavor — makes the slonks.xyz/void link visibly clickable in the banner row */
.banner-link.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  background: linear-gradient(90deg, rgba(120,160,255,0.28), rgba(120,160,255,0.16));
  border: 1px solid rgba(120,160,255,0.5);
  border-radius: 5px;
  color: #cfe0ff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.005em;
  transition: filter 0.15s, transform 0.15s;
}
.banner-link.banner-cta:hover {
  filter: brightness(1.18);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Drift indicator on /api/pairs rows.
   Color logic: negative drift (cost dropped) = green = good for buyer.
   Positive drift (cost rose) = yellow/red = warning.
   Only shows when |drift| >= 5%. */
.drift-warn {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.06rem 0.4rem;
  font-size: 0.66rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 3px;
  background: rgba(255, 180, 40, 0.15);
  color: #ffb84a;
  letter-spacing: 0.02em;
  cursor: help;
}
.drift-warn.high {
  background: rgba(255, 110, 110, 0.18);
  color: #ff8e8e;
}
.drift-warn.good {
  background: rgba(70, 200, 140, 0.15);
  color: #6ee7a8;
}
.drift-warn.good.high {
  background: rgba(70, 200, 140, 0.25);
  color: #4cd396;
}

/* === ART MECHANICS sub-tab === */
.doc-block.art-intro {
  background: linear-gradient(135deg, rgba(180,80,255,0.08), rgba(70,160,255,0.05) 60%, var(--bg-2));
  border-color: rgba(180,80,255,0.3);
}
.art-views {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 0.85rem 0;
}
.art-view {
  padding: 0.95rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.art-view-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.01em;
  font-family: var(--font-ui);
}
.art-view-detail {
  font-size: 0.74rem;
  color: var(--txt-3);
  font-family: var(--font-mono);
  margin: 0.2rem 0 0.55rem;
}
.art-view p {
  font-size: 0.85rem;
  color: var(--txt-2);
  line-height: 1.55;
  margin: 0;
}
.art-flow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--txt-2);
  background: rgba(0,0,0,0.3);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  border-left: 3px solid var(--green);
  white-space: pre;
  overflow-x: auto;
}
.art-mech {
  padding: 0.95rem 1.1rem;
  margin-top: 0.85rem;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.art-mech h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: var(--txt);
  letter-spacing: -0.01em;
  font-family: var(--font-ui);
}
.art-mech p { font-size: 0.85rem; line-height: 1.6; color: var(--txt-2); }
.art-mech ul { font-size: 0.85rem; line-height: 1.7; }
.art-mech pre {
  font-size: 0.76rem;
  background: rgba(0,0,0,0.3);
  padding: 0.65rem 0.85rem;
  border-radius: 5px;
  margin: 0.55rem 0;
  white-space: pre-wrap;
}
.art-blend {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 0.55rem 0;
}
.art-blend th {
  text-align: left;
  font-size: 0.72rem;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.art-blend td {
  padding: 0.45rem 0.7rem;
  border-bottom: 1px dashed var(--line-soft, rgba(255,255,255,0.05));
  color: var(--txt-2);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.art-stats {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.art-stats td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px dashed var(--line-soft, rgba(255,255,255,0.05));
  font-family: var(--font-ui);
}
.art-stats td:first-child { color: var(--txt-3); width: 50%; }
.art-stats td:last-child { color: var(--txt); font-weight: 600; font-family: var(--font-mono); }

/* AI-generated tutorial disclaimer — most prominent block in the void guide */
.void-aiwarn {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: linear-gradient(135deg, rgba(255,110,110,0.10), rgba(255,180,40,0.06) 70%, var(--bg-2));
  border: 1px solid rgba(255,110,110,0.4);
  border-radius: 9px;
  margin-bottom: 1.2rem;
}
.void-aiwarn-icon {
  font-size: 1.7rem;
  flex: 0 0 auto;
  line-height: 1;
}
.void-aiwarn-body { flex: 1; min-width: 0; }
.void-aiwarn-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ff8e8e;
  margin-bottom: 0.55rem;
  font-family: var(--font-ui);
  letter-spacing: -0.01em;
}
.void-aiwarn-body p {
  font-size: 0.86rem;
  color: var(--txt-2);
  line-height: 1.6;
  margin: 0 0 0.55rem;
}
.void-aiwarn-body strong { color: var(--txt); font-weight: 700; }
.void-aiwarn-body a {
  color: #ffb84a;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.void-aiwarn-body a:hover { border-bottom-color: #ffb84a; }
.void-aiwarn-body ul {
  margin: 0;
  padding-left: 1.3rem;
  font-size: 0.84rem;
  color: var(--txt-2);
  line-height: 1.75;
}
.void-aiwarn-body li { padding: 0.05rem 0; }

/* Preflight notice — what to prepare before 17:30 */
.void-prep {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(70, 160, 200, 0.07);
  border: 1px solid rgba(70, 160, 200, 0.3);
  border-radius: 8px;
  margin-bottom: 1.2rem;
}
.void-prep-icon {
  font-size: 1.5rem;
  color: var(--cyan);
  line-height: 1;
  flex: 0 0 auto;
}
.void-prep-body { flex: 1; }
.void-prep-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 0.45rem;
  font-family: var(--font-ui);
}
.void-prep-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--txt-2);
  line-height: 1.7;
}
.void-prep-list code {
  font-size: 0.78rem;
  background: rgba(0,0,0,0.3);
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  color: var(--cyan);
}
.void-prep-list a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.void-prep-list a:hover { border-bottom-color: var(--cyan); }

/* 3 step cards, action-focused */
/* ============== PRIMARY recommended path (slonks.xyz/void) ============== */
.void-primary-card {
  background: linear-gradient(160deg, rgba(120,160,255,0.16), rgba(120,160,255,0.04) 60%, var(--bg-2));
  border: 1px solid rgba(120,160,255,0.45);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 0 0 4px rgba(120,160,255,0.06);
}
.void-primary-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.void-primary-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 8px rgba(120,160,255,0.4));
  flex: 0 0 auto;
}
.void-primary-title-wrap { flex: 1; min-width: 0; }
.void-primary-title {
  font-size: 1.32rem;
  font-weight: 700;
  color: #cfe0ff;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.void-primary-sub {
  font-size: 0.85rem;
  color: var(--txt-3);
  margin-top: 0.3rem;
  font-family: var(--font-mono);
}
.void-primary-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  background: linear-gradient(90deg, #4a7bf0, #6c98f7);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-ui);
  border: 1px solid rgba(255,255,255,0.18);
  transition: filter 0.15s, transform 0.15s;
}
.void-primary-cta:hover { filter: brightness(1.15); transform: translateY(-1px); }
.void-primary-cta:active { transform: translateY(0); }
.void-primary-flow {
  margin: 0;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--txt-2);
  line-height: 1.65;
}
.void-primary-flow li { padding: 0.05rem 0; }
.void-primary-flow code {
  background: rgba(120,160,255,0.14);
  color: #cfe0ff;
  padding: 0.05rem 0.32rem;
  border-radius: 4px;
  font-size: 0.85em;
}
.void-primary-foot {
  font-size: 0.78rem;
  color: var(--txt-3);
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(120,160,255,0.2);
  line-height: 1.55;
}

/* ============== Fallback banner — divider before chain-truth raw flow ============== */
.void-fallback-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.025);
  border-left: 3px solid rgba(255,180,40,0.5);
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.83rem;
  color: var(--txt-2);
  line-height: 1.5;
}
.void-fallback-icon {
  font-size: 1.2rem;
  flex: 0 0 auto;
}
.void-fallback-text strong { color: #ffd07a; font-weight: 700; }
.void-fallback-text .dim { color: var(--txt-3); font-size: 0.93em; }
.void-fallback-text code {
  background: rgba(255,255,255,0.05);
  padding: 0.05rem 0.28rem;
  border-radius: 3px;
  font-size: 0.85em;
}

.void-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}
.void-step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.void-step.primary {
  border-color: rgba(70,200,140,0.45);
  background: linear-gradient(180deg, rgba(70,200,140,0.07), var(--bg-2) 60%);
}

.void-step-head {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}
.void-step-num {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--font-ui);
  letter-spacing: -0.02em;
}
.void-step-title-wrap { flex: 1; min-width: 0; }
.void-step-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.void-step-sub {
  font-size: 0.78rem;
  color: var(--txt-3);
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  letter-spacing: -0.005em;
}

/* Primary CTA button — directs to the action */
.void-step-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  background: var(--green);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 7px;
  font-family: var(--font-ui);
  letter-spacing: 0.005em;
  transition: background 0.15s;
}
.void-step-cta::after {
  content: " ↗";
  opacity: 0.8;
  font-size: 0.85em;
  margin-left: 0.3rem;
}
.void-step-cta:hover {
  background: var(--cyan);
  color: var(--bg);
}
.void-step-cta.secondary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}
.void-step-cta.secondary:hover {
  background: var(--cyan);
  color: var(--bg);
}

/* "Pick this exact function on Etherscan" callout */
.void-step-pick {
  font-size: 0.83rem;
  color: var(--txt-2);
  line-height: 1.6;
  padding: 0.7rem 0.85rem;
  background: rgba(0,0,0,0.22);
  border-left: 3px solid var(--green);
  border-radius: 4px;
}
.void-step-pick strong { color: var(--txt); font-weight: 700; }
.void-step-pick code.picked {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(70,200,140,0.15);
  color: #6ee7a8;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  margin: 0.3rem 0;
  letter-spacing: -0.01em;
}
.void-step-pick .dim {
  color: var(--txt-3);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* Warning banner inside step 2 */
.void-step-warn {
  font-size: 0.83rem;
  color: var(--txt-2);
  line-height: 1.6;
  padding: 0.7rem 0.85rem;
  background: rgba(255,180,40,0.08);
  border: 1px solid rgba(255,180,40,0.3);
  border-radius: 5px;
}
.void-step-warn strong { color: #ffb84a; font-weight: 700; }

/* Command block (step 2) */
.void-step-cmd {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.void-step-cmd pre {
  margin: 0;
  padding: 0.8rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #6ee7a8;
  white-space: pre-wrap;
  word-break: break-all;
}
.void-step-cmd pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
.void-step-cmd-hint {
  padding: 0.45rem 0.95rem;
  font-size: 0.74rem;
  color: var(--txt-3);
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
}

/* Args table — one row per parameter */
.void-step-args {
  background: rgba(0,0,0,0.22);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  flex: 1;
}
.void-step-args .row {
  display: flex;
  align-items: baseline;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--line-soft, rgba(255,255,255,0.05));
  gap: 0.7rem;
}
.void-step-args .row:last-child { border-bottom: 0; }
.void-step-args .k {
  flex: 0 0 90px;
  color: var(--txt-3);
  font-size: 0.74rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.void-step-args .v {
  flex: 1;
  color: var(--txt);
  font-size: 0.84rem;
  font-family: var(--font-ui);
}
.void-step-args .v.code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  word-break: break-all;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.void-step-args .row.hl .v.code {
  color: #6ee7a8;
  font-weight: 700;
}

.void-step-foot {
  font-size: 0.8rem;
  color: var(--txt-3);
  line-height: 1.6;
  padding-top: 0.2rem;
  border-top: 1px dashed var(--line-soft, rgba(255,255,255,0.05));
}
.void-step-foot strong { color: #ff8e8e; font-weight: 700; }

/* Compact details (folded references) */
.void-quickref {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.6rem;
}
.void-quickref details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  font-size: 0.85rem;
}
.void-quickref details[open] {
  border-color: var(--txt-3);
}
.void-quickref summary {
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--txt-2);
  list-style: none;
  user-select: none;
}
.void-quickref summary::-webkit-details-marker { display: none; }
.void-quickref summary::after {
  content: "▾";
  float: right;
  opacity: 0.5;
  font-size: 0.8em;
  transition: transform 0.15s;
}
.void-quickref details[open] summary::after {
  transform: rotate(180deg);
}
.void-quickref details > *:not(summary) {
  padding: 0 0.95rem 0.7rem;
  font-size: 0.8rem;
  color: var(--txt-3);
  margin: 0;
}
.void-quickref details ul,
.void-quickref details ol {
  padding-left: 2rem;
}
.void-quickref details li {
  padding: 0.15rem 0;
  line-height: 1.55;
}
.void-quickref details code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--txt-2);
  background: var(--bg-3);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  cursor: pointer;
}
.void-quickref details a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.void-quickref details a:hover { border-bottom-color: var(--green); }

.cap-section {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.3rem;
  border-radius: var(--radius);
}

.cap-section h3 {
  font-size: 1.15rem;
  color: var(--green);
  margin-bottom: 0.8rem;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.cap-section .hint {
  color: var(--txt-2);
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
  font-weight: 500;
}

.audit-block {
  background: var(--bg);
  border-left: 3px solid var(--cyan);
  padding: 0.7rem 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.65;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.audit-block strong { color: var(--yellow); font-weight: 700; }
.audit-block small { color: var(--txt-3); font-size: 0.8rem; }

/* Audit list (numbered rows) */
.audit-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.audit-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--bg);
  padding: 0.7rem 0.95rem;
  border-radius: 6px;
  border-left: 3px solid var(--cyan);
  font-size: 0.88rem;
  line-height: 1.6;
}
.audit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--bg-3);
  color: var(--cyan);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.audit-row strong { color: var(--yellow); font-weight: 700; }
.audit-row small { color: var(--txt-3); font-size: 0.8rem; display: block; margin-top: 0.15rem; }

/* === SLOP CALCULATOR === */
.calculator-section {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.calculator-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--magenta));
  opacity: 0.6;
}

.calc-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.calc-input-row {
  display: grid;
  grid-template-columns: 110px 1fr 90px 30px 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--line-soft);
}

.calc-input-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -0.005em;
}

.calc-input-row input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  height: 4px;
}

.calc-input-row input[type="number"] {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--cyan);
  padding: 0.35rem 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
  text-align: center;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
}
.calc-input-row input[type="number"]:focus {
  outline: none;
  border-color: var(--green);
}

.calc-unit {
  font-size: 0.78rem;
  color: var(--txt-3);
  font-weight: 600;
  text-align: center;
}

.calc-hint {
  font-size: 0.78rem;
  color: var(--txt-3);
  font-weight: 500;
}

.calc-output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.calc-out-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
}
.calc-out-card:hover { border-color: var(--cyan); transform: translateY(-1px); }

.calc-out-card.primary { border-left: 3px solid var(--cyan); }
.calc-out-card.highlight {
  border: 1px solid var(--yellow);
  background: linear-gradient(180deg, rgba(255, 206, 58, 0.05) 0%, var(--bg) 80%);
}

.calc-out-label {
  font-size: 0.72rem;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-family: var(--font-ui);
}

.calc-out-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--txt);
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.calc-out-value.money { color: var(--green); }
.calc-out-value.bad { color: var(--red); }
.calc-out-card.highlight .calc-out-value {
  color: var(--yellow);
  /* removed drop-shadow */
}

.calc-out-sub {
  font-size: 0.74rem;
  color: var(--txt-3);
  margin-top: 0.25rem;
  font-weight: 500;
  font-family: var(--font-ui);
}

.calc-scenarios {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
}

.calc-scen-label {
  font-size: 0.78rem;
  color: var(--txt-3);
  font-weight: 600;
  margin-right: 0.4rem;
}

.calc-preset {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  font-family: var(--font-ui);
  transition: all 0.12s;
  letter-spacing: -0.005em;
}
.calc-preset:hover {
  background: var(--bg);
  border-color: var(--cyan);
  color: var(--cyan);
}
.calc-preset.active {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
  font-weight: 700;
}

/* === STATUS CARDS === */
.status-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.status-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  transition: border-color 0.15s, transform 0.15s;
}
.status-card:hover {
  border-color: var(--cyan);
  /* transform removed for crispness */
}

.status-card-label {
  font-size: 0.7rem;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-family: var(--font-ui);
}

.status-card-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--txt);
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.status-card-value.green { color: var(--green); }
.status-card-value.cyan { color: var(--cyan); }
.status-card-value.yellow { color: var(--yellow); }
.status-card-value.magenta { color: var(--magenta); }
.status-card-value.mute { color: var(--txt-3); font-size: 1rem; }

.status-card-sub {
  font-size: 0.74rem;
  color: var(--txt-3);
  margin-top: 0.2rem;
  font-weight: 500;
  font-family: var(--font-ui);
}

/* ============== DOCS ============== */
.docs {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr 1fr;
  max-width: 1500px;
}

.doc-block {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1.4rem 1.7rem;
  border-radius: 10px;
  transition: border-color 0.12s;
}
.doc-block:hover {
  border-color: var(--cyan);
}

.doc-block.warn {
  border-left: 3px solid var(--yellow);
  background: linear-gradient(180deg, rgba(255, 206, 58, 0.06) 0%, var(--bg-2) 70%);
}

.doc-block h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--green);
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.doc-block.warn h2 { color: var(--yellow); }

.doc-block p { margin-bottom: 0.6rem; color: var(--txt); font-size: 0.88rem; line-height: 1.7; font-weight: 500; }
.doc-block strong { color: var(--cyan); font-weight: 700; }
.doc-block ul { margin-left: 1.2rem; margin-bottom: 0.6rem; }
.doc-block li { margin-bottom: 0.35rem; line-height: 1.65; font-size: 0.88rem; color: var(--txt); }
.doc-block li strong { color: var(--cyan); }

.doc-block pre {
  background: var(--bg);
  color: var(--txt);
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  overflow-x: auto;
  margin: 0.6rem 0;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  border: 1px solid var(--line-soft);
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.doc-block code {
  display: inline;
  padding: 0.08rem 0.35rem;
  font-size: 0.82rem;
  background: var(--bg);
  color: var(--cyan);
  border-radius: 3px;
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
}

.doc-block .callout {
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  padding: 0.75rem 1rem;
  margin: 0.7rem 0;
  font-size: 0.86rem;
  border-radius: 6px;
  font-weight: 500;
  line-height: 1.65;
}
.doc-block.warn .callout {
  background: var(--yellow-glow);
  border-left-color: var(--yellow);
}
.doc-block .callout strong {
  color: var(--green);
  font-weight: 700;
}
.doc-block.warn .callout strong { color: var(--yellow); }

/* ============== FOOTER ============== */
footer {
  margin-top: 2.4rem;
  padding: 1.4rem 2rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--txt-3);
  font-weight: 500;
}
.footer-row {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.footer-strong { color: var(--txt-2); font-weight: 600; letter-spacing: 0.02em; }
.footer-sep { opacity: 0.5; }
footer a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s;
}
footer a:hover { border-bottom-color: var(--green); }
.disclaimer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.1rem;
  background: rgba(255,180,40,0.04);
  border: 1px solid rgba(255,180,40,0.18);
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--txt-3);
  line-height: 1.6;
  text-align: center;
}
.disclaimer strong { color: #ffb84a; font-weight: 600; }

/* ============== TOAST ============== */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-3);
  color: var(--txt);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 3px solid var(--green);
  box-shadow: var(--shadow-md);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: 320px;
  font-family: var(--font-ui);
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}
#toast.error { border-left-color: var(--red); }
#toast.warn { border-left-color: var(--yellow); }

/* ============== ACTION BUTTONS ============== */
.actions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  height: 26px;
  min-width: 26px;
  padding: 0 0.4rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--txt-2);
  cursor: pointer;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.12s ease;
  font-family: var(--font-ui);
  text-decoration: none;
  position: relative;
  outline: 0;
}
.action-btn:hover {
  color: var(--txt);
  border-color: var(--txt-3);
  /* transform removed for crispness */
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.action-btn:active { transform: translateY(0); }
.action-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.action-btn .brand-mark {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
  pointer-events: none;
}
.action-btn .brand-label {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.action-btn.primary {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
  font-weight: 800;
  padding: 0 0.65rem;
}
.action-btn.primary:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg);
}
.action-btn.primary svg { width: 11px; height: 11px; }

/* === BRAND BUTTONS === */
.action-btn.brand-opensea {
  background: #2081E2;
  color: white;
  border-color: #2081E2;
  font-weight: 700;
  padding: 0 0.55rem;
}
.action-btn.brand-opensea svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}
.action-btn.brand-opensea .brand-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: white;
}
.action-btn.brand-opensea:hover {
  background: #1768B0;
  border-color: #5FB1FF;
  box-shadow: 0 2px 8px rgba(32, 129, 226, 0.4);
}

.action-btn.brand-etherscan {
  background: #21325B;
  color: white;
  border-color: #21325B;
}
.action-btn.brand-etherscan:hover {
  background: #2C406F;
  border-color: #5078B5;
}

/* Token ID is clickable to copy */
.token-main, .token-id-clickable {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  padding: 0.05rem 0.3rem;
  margin: -0.05rem -0.3rem;
  border-radius: 3px;
  transition: background 0.12s;
}
.token-main:hover, .token-id-clickable:hover {
  background: var(--bg-3);
}
.token-main:active, .token-id-clickable:active {
  background: var(--cyan-glow);
}

/* Bulk action bar above tables */
.bulk-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  color: var(--txt-2);
  align-items: center;
  flex-wrap: wrap;
  font-weight: 600;
}
.bulk-actions strong {
  color: var(--green);
  font-weight: 800;
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
}
.bulk-actions > span:first-child { margin-right: auto; }

.bulk-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 0.42rem 0.95rem;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
  font-family: var(--font-ui);
  letter-spacing: -0.005em;
}
.bulk-btn:hover {
  background: var(--bg-3);
  border-color: var(--cyan);
  color: var(--cyan);
  /* transform removed for crispness */
}
.bulk-btn.primary {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}
.bulk-btn.primary:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .docs { grid-template-columns: 1fr; }
  .ev-bar { flex-direction: column; align-items: stretch; }
  .hero { grid-template-columns: 1fr; gap: 0.7rem; }
  .status-row { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .hero { padding: 0.85rem 1rem; }
  .title { font-size: 1.25rem; }
  .stat-value { font-size: 1.05rem; }
  .status-row { gap: 0.9rem; }
  main { padding: 1rem; }
  .board { font-size: 0.78rem; }
  .board td, .board th { padding: 0.5rem; }
  .concentration-grid, .cap-overview { grid-template-columns: 1fr 1fr; }
}

/* Fees sub-tab — full-width single column. Default 2-col `.docs` grid squishes the
   wide fee tables; force horizontal rectangles stacked vertically for readability. */
[data-subcontent-mech="fees"] .docs {
  grid-template-columns: 1fr;
  max-width: 1500px;
}

/* ============== FEE TLDR CARDS (mechanics → 手续费 sub-tab) ============== */
.fee-tldr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
  margin: 0.8rem 0 1.2rem;
}
.fee-tldr-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fee-tldr-card.highlight {
  border-color: rgba(120,160,255,0.45);
  background: linear-gradient(160deg, rgba(120,160,255,0.10), var(--bg-2) 70%);
}
.fee-tldr-label {
  font-size: 0.68rem;
  color: var(--txt-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fee-tldr-value {
  font-family: var(--font-mono);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.fee-tldr-card.highlight .fee-tldr-value { color: #cfe0ff; }
.fee-tldr-sub {
  font-size: 0.72rem;
  color: var(--txt-3);
  line-height: 1.35;
}

/* ============== FEE TABLE (mechanics → 手续费 sub-tab) ============== */
.fee-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.85rem; }
.fee-table thead th {
  text-align: left;
  padding: 0.5rem 0.7rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--line);
  color: var(--txt-3);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fee-table tbody td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
.fee-table tr.fee-section-head td {
  background: linear-gradient(90deg, rgba(120,160,255,0.1), transparent 70%);
  color: #cfe0ff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(120,160,255,0.25);
  border-top: 1px solid rgba(120,160,255,0.15);
}
.fee-table code {
  font-size: 0.85em;
  background: rgba(255,255,255,0.05);
  padding: 0.05rem 0.32rem;
  border-radius: 3px;
}

/* ============== FEE-MODE TOGGLE (in EV bar) ============== */
.fee-toggle {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--txt-2);
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.6rem;
  transition: all 0.15s;
}
.fee-toggle:hover { filter: brightness(1.2); border-color: rgba(120,160,255,0.4); }
.fee-toggle.active {
  background: linear-gradient(135deg, rgba(110,231,168,0.2), rgba(110,231,168,0.06));
  border-color: rgba(110,231,168,0.5);
  color: #6ee7a8;
}
.fee-toggle-state { font-size: 0.7rem; line-height: 1; }
.fee-toggle-summary {
  margin-left: 0.5rem;
  font-size: 0.74rem;
  color: var(--txt-3);
  font-family: var(--font-mono);
}
.fee-toggle-summary strong { color: var(--txt); font-weight: 700; }
.fee-toggle-summary .dim { opacity: 0.7; }
/* Fee-adjusted cell marker (asterisk) */
.fee-adj {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted currentColor;
}

/* ============== REVIVE TAB ============== */
.rev-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.rev-hero-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.rev-hero-card.primary {
  background: linear-gradient(150deg, rgba(120,160,255,0.16), rgba(120,160,255,0.04) 70%, var(--bg-2));
  border-color: rgba(120,160,255,0.45);
  box-shadow: 0 0 0 4px rgba(120,160,255,0.06);
}
.rev-hero-card.spread {
  background: linear-gradient(150deg, rgba(110,231,168,0.10), rgba(255,180,40,0.06) 70%, var(--bg-2));
  border-color: rgba(110,231,168,0.35);
}
.rev-hero-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--txt-3);
  font-weight: 600;
}
.rev-hero-value {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.rev-hero-value.positive { color: #6ee7a8; }
.rev-hero-value.negative { color: #ff8c8c; }
.rev-hero-sub {
  font-size: 0.78rem;
  color: var(--txt-3);
  line-height: 1.4;
}
.rev-hero-sub .dim { color: var(--txt-3); opacity: 0.7; }
.rev-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  background: linear-gradient(90deg, #4a7bf0, #6c98f7);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 7px;
  text-decoration: none;
  margin-top: 0.4rem;
  align-self: flex-start;
  transition: filter 0.15s;
}
.rev-hero-cta:hover { filter: brightness(1.15); }

/* Rules */
.rev-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 0.8rem 0;
}
.rev-rules-grid > div {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}
.rev-rules-grid strong {
  display: block;
  color: #cfe0ff;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.rev-rules-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--txt-2);
  line-height: 1.6;
}
.rev-rules-grid ul ul {
  margin-top: 0.3rem;
  font-size: 0.95em;
}

/* History table */
.rev-table-wrap { overflow-x: auto; }
.rev-table {
  width: 100%;
  margin-top: 0.6rem;
}
.rev-table .rank {
  font-family: var(--font-mono);
  color: var(--txt-3);
  font-weight: 600;
}
.rev-badge {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.rev-finalized { background: rgba(110,231,168,0.18); color: #6ee7a8; border: 1px solid rgba(110,231,168,0.35); }
.rev-pending   { background: rgba(255,180,40,0.18);  color: #ffb84a; border: 1px solid rgba(255,180,40,0.4); }
.rev-expired   { background: rgba(255,140,140,0.15); color: #ff8c8c; border: 1px solid rgba(255,140,140,0.3); }
.rev-tok-link, .rev-tx-link {
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.rev-tok-link:hover, .rev-tx-link:hover { text-decoration: underline; }
.rev-newslop { color: #f0a8ff; font-weight: 700; font-family: var(--font-mono); }

/* Compact rules block (links to mechanics for full detail) */
.rev-rules-compact {
  background: rgba(120,160,255,0.04);
  border: 1px dashed rgba(120,160,255,0.2);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin: 0.7rem 0;
}
.rev-rules-line {
  margin: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--txt-2);
  line-height: 1.6;
}
.rev-rules-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}
.rev-rules-link:hover { text-decoration: underline; }

/* Live indicator on Dutch price card */
.rev-live-tag {
  display: inline-block;
  font-size: 0.6rem;
  color: #6ee7a8;
  letter-spacing: 0.05em;
  margin-left: 0.3rem;
  font-weight: 700;
  animation: rev-blink 2.4s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes rev-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* P/L coloring for revival rows */
.rev-pl-pos { color: #6ee7a8; font-weight: 700; }
.rev-pl-neg { color: #ff8c8c; font-weight: 700; }

/* ============== NOTIFICATION SYSTEM (mute/unmute toggle + right-top popup) ============== */
.notif-btn {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--txt-2);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: filter 0.15s, background 0.15s, border-color 0.15s;
  margin-left: 0.4rem;
}
.notif-btn:hover { filter: brightness(1.2); }
.notif-btn.active {
  background: linear-gradient(135deg, rgba(110,231,168,0.20), rgba(110,231,168,0.08));
  border-color: rgba(110,231,168,0.5);
  color: #6ee7a8;
  animation: notif-pulse 2.4s ease-in-out infinite;
}
@keyframes notif-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(110,231,168,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(110,231,168,0); }
}
.notif-icon { display: inline-block; }

/* Stack pinned to top-right of viewport. Toasts slide in, auto-dismiss after 10s. */
.notif-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
  max-width: 380px;
}
.notif-toast {
  pointer-events: auto;
  background: linear-gradient(135deg, #2d5fcc, #4a7bf0);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  min-width: 260px;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(120,160,255,0.2);
  animation: notif-slide-in 0.32s cubic-bezier(0.2,0.9,0.4,1);
  font-size: 0.86rem;
  line-height: 1.4;
  position: relative;
}
.notif-toast.dismiss { animation: notif-slide-out 0.28s ease-in forwards; }
.notif-toast .notif-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.notif-toast .notif-roi {
  color: #c4ffd8;
  font-family: var(--font-mono);
  font-weight: 800;
  margin-left: auto;
}
.notif-toast .notif-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.notif-toast .notif-detail {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.92);
}
.notif-toast .notif-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.notif-toast .notif-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.32rem 0.65rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.15s;
}
.notif-toast .notif-cta:hover { background: rgba(255,255,255,0.28); }
.notif-toast .notif-close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}
.notif-toast .notif-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
@keyframes notif-slide-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes notif-slide-out {
  to { transform: translateX(120%); opacity: 0; }
}

/* ============== TRUST PANEL (mechanics → 合约 sub-tab) ============== */
.trust-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 0.6rem;
}
.trust-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  padding: 0.85rem 1rem 0.7rem;
}
.trust-section-head {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--txt-3);
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
}
.trust-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(200px, auto) 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 0.45rem 0;
  font-size: 0.86rem;
}
.trust-row + .trust-row { border-top: 1px solid rgba(255,255,255,0.04); }
.trust-label {
  color: var(--txt-2);
  font-weight: 600;
}
.trust-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--txt);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.trust-value.addr { letter-spacing: -0.01em; }
.trust-value.clickable { cursor: pointer; transition: color 0.15s; }
.trust-value.clickable:hover { color: var(--cyan); }
.trust-badge {
  font-size: 0.95rem;
  filter: saturate(1.1);
}
.trust-hint {
  color: var(--txt-3);
  font-size: 0.78rem;
  line-height: 1.4;
}
.trust-hint code {
  background: rgba(255,255,255,0.05);
  padding: 0.05rem 0.32rem;
  border-radius: 3px;
  font-size: 0.92em;
}
.trust-foot {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--txt-3);
  line-height: 1.55;
}
.trust-foot .dim { color: var(--txt-3); opacity: 0.78; }
.trust-foot-stamp { margin-left: 0.4rem; }
@media (max-width: 800px) {
  .trust-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.65rem 0;
  }
  .trust-hint { padding-left: 0; }
}

/* ===== 紧急告警条（合约迁移问题等） ===== */
.alert-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255,85,112,0.18) 0%, rgba(255,156,62,0.18) 50%, rgba(255,85,112,0.18) 100%);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 2px 18px rgba(255, 85, 112, 0.35);
  animation: alertPulse 2.4s ease-in-out infinite;
}
@keyframes alertPulse {
  0%, 100% { box-shadow: 0 2px 18px rgba(255, 85, 112, 0.35); }
  50%      { box-shadow: 0 2px 28px rgba(255, 85, 112, 0.65); }
}
.alert-banner.dismissed { display: none; }
.alert-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.72rem 1rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--txt);
}
.alert-icon { font-size: 1.4rem; line-height: 1; flex: 0 0 auto; padding-top: 1px; }
.alert-text { flex: 1 1 auto; }
.alert-text strong { color: var(--red); font-weight: 700; }
.alert-text code {
  background: rgba(255, 85, 112, 0.12);
  border: 1px solid rgba(255, 85, 112, 0.35);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.82em;
  color: var(--orange);
}
.alert-actions {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--txt-2);
  line-height: 1.65;
}
.alert-link {
  display: inline-block;
  margin-top: 0.35rem;
  margin-right: 0.6rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed var(--cyan);
  padding-bottom: 1px;
  font-size: 0.82rem;
}
.alert-link:hover { color: var(--txt); border-bottom-color: var(--txt); }
.alert-dismiss {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--txt-3);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  margin-left: 0.4rem;
  transition: all 0.15s ease;
}
.alert-dismiss:hover { background: rgba(255, 255, 255, 0.12); color: var(--txt); border-color: var(--txt-3); }
@media (max-width: 800px) {
  .alert-inner { padding: 0.55rem 0.7rem; font-size: 0.78rem; }
  .alert-icon { font-size: 1.1rem; }
  .alert-actions { font-size: 0.75rem; line-height: 1.55; }
}
