/* ═══════════════════════════════════════════════════
   Token Detail — page-specific styles
   Extracted from token_detail.html <style> blocks.
   ═══════════════════════════════════════════════════ */

html { overflow-y: scroll; }

.chart-controls { display:flex; gap:4px; margin-bottom:8px; align-items:center; }
    .chart-ctrl-btn {
      font-size:10.5px; padding:5px 12px; border-radius:6px; border:1px solid transparent;
      background:transparent; color:var(--text-muted); cursor:pointer; font-weight:600;
      letter-spacing:-0.005em;
      transition: background 0.18s ease, color 0.15s ease, box-shadow 0.18s ease, transform 0.1s ease;
      position:relative;
    }
    .chart-ctrl-btn:hover:not(.active) { background:var(--surface); color:var(--text); border-color:rgba(14,14,14,0.08); box-shadow:0 1px 3px rgba(14,14,14,0.06); }
    .chart-ctrl-btn.active { background:var(--surface); color:var(--text); border-color:rgba(14,14,14,0.08); box-shadow:0 1px 3px rgba(14,14,14,0.06), 0 0 0 1px rgba(255,180,0,0.18) inset; }
    .chart-ctrl-btn.active:hover { background:var(--surface); box-shadow:0 1px 3px rgba(14,14,14,0.06), 0 0 0 1px rgba(255,180,0,0.28) inset; }
    .chart-ctrl-btn:active { transform:translateY(0.5px); }
    .chart-ctrl-btn:disabled, .chart-ctrl-btn[disabled] { opacity:0.4; cursor:not-allowed; }
    .chart-ctrl-btn[disabled]:hover { background:transparent; color:var(--text-muted); border-color:transparent; box-shadow:none; }
    .chart-ctrl-label { font-size:10px; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.04em; margin-right:4px; font-weight:600; }
    .chart-ctrl-sep { width:1px; height:14px; background:var(--border); margin:0 6px; }
    .tv-chart {
      width:100%; height:400px; border-radius:var(--radius); overflow:hidden; margin-top:8px;
      border:1px solid rgba(0,0,0,0.06);
      background:rgba(255,255,255,0.45);
      box-shadow:0 2px 8px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
    }

    /* ── Chart label system ── */
    .chart-label-layer {
      position:absolute; top:0; left:0; right:0; bottom:0;
      pointer-events:none; z-index:4;
    }
    .chart-leaders-svg {
      position:absolute; top:0; left:0; width:100%; height:100%;
      pointer-events:none; overflow:visible;
    }
    .chart-dot {
      position:absolute; width:10px; height:10px; border-radius:50%;
      transform:translate(-50%,-50%); pointer-events:auto; cursor:default;
      box-shadow: 0 0 0 2px var(--surface), 0 0 4px rgba(0,0,0,0.1);
      z-index: 5;
    }
    .chart-dot-end {
      position:absolute; width:6px; height:6px; border-radius:50%;
      transform:translate(-50%,-50%); pointer-events:none;
      border: 2px solid; box-sizing: content-box;
      background: var(--surface);
      box-shadow: 0 0 4px rgba(0,0,0,0.1);
      z-index: 5;
    }
    .chart-pill {
      position:absolute; transform:translate(-50%,0);
      padding: 2px 7px; border-radius:var(--radius-xs);
      font-size: 10px; font-weight: 600; line-height: 1.4;
      font-family: inherit; letter-spacing: 0.01em; white-space: nowrap;
      pointer-events: auto; cursor: default;
      transition: transform 0.15s ease;
    }
    .chart-pill:hover { transform: translate(-50%, -1px); z-index: 20; }
    /* Solid (opaque) pill backgrounds — no glass/see-through, no drop shadow.
       Dark-mode equivalents live in dark-colors.css. */
    .pill-neutral {
      background: #f4f4f5; color: var(--text-muted);
      border: 1px solid var(--gray-200);
    }
    .pill-up {
      background: #e7f6ee; color: var(--green-hover);
      border: 1px solid rgba(16,185,129,0.2);
    }
    .pill-down {
      background: #fdeaea; color: var(--red-hover);
      border: 1px solid rgba(239,68,68,0.15);
    }

    /* Economy pillar metric bars — class-based versions of the technical card's
       inline bars. The row carries `--pct:<score>%` (the only dynamic inline). */
    .eco-bar-track { position:absolute; inset:0; background:var(--gray-100); border-radius:3px; }
    .eco-bar-fill { position:absolute; top:0; left:0; height:100%; width:var(--pct,0%); border-radius:3px; background:linear-gradient(90deg, rgba(255,180,0,0.1) 0%, #FFB400 100%); }
    .eco-bar-dot { position:absolute; top:50%; left:var(--pct,0%); width:8px; height:8px; border-radius:50%; background:#FFB400; transform:translate(-50%,-50%); box-shadow:0 0 6px rgba(255,180,0,0.4); }
    .eco-badge { font-size:9px; font-weight:600; padding:2px 8px; border-radius:var(--radius-full); color:var(--text-muted); background:var(--gray-100); white-space:nowrap; }
    .pill-pin {
      background: var(--pill-bg); color: var(--pill-fg);
      border: 1px solid var(--pill-border);
      box-shadow: 0 1px 3px var(--pill-shadow, rgba(0,0,0,0.04));
    }

    .chart-pill-tooltip {
      display: none; position: absolute;
      left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
      background: var(--surface); border: 1px solid var(--gray-200);
      border-radius:var(--radius); padding: 8px 11px;
      font-size: 11px; font-weight: 400; color: var(--text-secondary);
      line-height: 1.5; white-space: normal;
      width: max-content; max-width: 260px;
      box-shadow: var(--shadow-lg);
      pointer-events: none; z-index: 30;
    }
    .chart-pill:hover .chart-pill-tooltip,
    .chart-dot:hover .chart-pill-tooltip { display: block; }
    .chart-dot:hover { transform: translate(-50%,-50%) scale(1.5); z-index: 20; }
    .chart-pill-tooltip .tt-title { font-weight: 700; color: var(--text); margin-bottom: 2px; font-size: 11px; }
    .chart-pill-tooltip .tt-desc { color: var(--text-muted); font-size: 10.5px; line-height: 1.45; }
    .chart-pill-tooltip .tt-meta {
      font-size: 10px; color: var(--text-muted); margin-top: 4px;
      display:flex; gap:4px; flex-wrap:wrap;
    }
    .chart-pill-tooltip .tt-meta span {
      white-space:nowrap; padding:1px 5px;
      background: var(--gray-50); border-radius:var(--radius-xs); border: 1px solid var(--gray-100);
    }
    /* ── Tick flash ── */
    @keyframes tickUp { 0%{color:var(--green)} 70%{color:var(--green)} 100%{color:var(--text)} }
    @keyframes tickDown { 0%{color:var(--red)} 70%{color:var(--red)} 100%{color:var(--text)} }
    .tick-up { animation: tickUp 2s ease-out; }
    .tick-down { animation: tickDown 2s ease-out; }
    /* ── Unified section system ── */
    .section { margin-top: 28px; }
    .section h2 {
      font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--text-muted); margin: 0 0 14px;
      padding: 0 0 0 12px; border: none;
      font-family: var(--font-mono);
      display: flex; align-items: center; gap: 10px;
      scroll-margin-top: 64px;
    }
    .section h2 .sec-num { color: var(--text-muted); font-weight: 400; }
    .section h2 .sec-dot { width: 6px; height: 6px; border-radius: 50%; background: #FFB400; flex-shrink: 0; }
    .section h2 .sec-line { flex: 1; height: 1px; background: var(--border-card); }
    .section h2 .sec-right { margin-left: auto; font-weight: 400; letter-spacing: 0.04em; font-size: 10px; text-transform: none; }
    .stat-card {
      background: var(--surface); border: 1px solid var(--border-card);
      border-radius:var(--radius-sm); transition: border-color 0.12s;
    }
    .stat-card:hover { border-color: rgba(255,180,0,0.2); }
    .stat-card .label {
      font-size: 10px; color: var(--text-muted); text-transform: uppercase;
      letter-spacing: 0.04em; font-weight: 600; margin-bottom: 2px;
    }
    .stat-card .value { font-weight: 700; color: var(--text); }
    .stats-bar { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
    .empty-state {
      text-align: center; padding: var(--sp-6); color: var(--text-muted);
      border: 1px dashed var(--gray-200); border-radius:var(--radius);
    }
    .empty-state h3 { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: var(--sp-1); }
    /* ═══ Animations (Claude Design) ═══ */
    @keyframes rfFadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes rfSlideUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes rfPopIn { 0% { opacity: 0; transform: translateY(8px) scale(0.985); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
    @keyframes rfBarGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @keyframes rfPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,180,0,0.35); } 70% { box-shadow: 0 0 0 8px rgba(255,180,0,0); } }
    @keyframes rfSpark { 0%,100% { opacity: 0.8; } 50% { opacity: 0.4; } }

    /* ═══ NARRATIVE PULSE (Claude Design) ═══ */
    .np-grid { display: grid; grid-template-columns: 140px 44px 52px 1fr 48px 36px; column-gap: 10px; align-items: center; }
    .np-head { padding: 8px 0 6px; border-bottom: 1px solid var(--gray-100); margin-bottom: 2px; }
    .np-head .h { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
    .np-row { padding: 10px 0; border-bottom: 1px solid var(--gray-50); transition: background 0.15s; animation: rfSlideUp 0.4s cubic-bezier(.16,1,.3,1) both; }
    .np-row:nth-child(2) { animation-delay: 0.04s; } .np-row:nth-child(3) { animation-delay: 0.08s; }
    .np-row:nth-child(4) { animation-delay: 0.12s; } .np-row:nth-child(5) { animation-delay: 0.16s; }
    .np-row:nth-child(6) { animation-delay: 0.20s; } .np-row:nth-child(7) { animation-delay: 0.24s; }
    .np-row:nth-child(8) { animation-delay: 0.28s; }
    .np-row:hover { background: var(--hover-bg); }
    .np-row:last-of-type { border-bottom: none; }
    .np-name { font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .np-match { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-align: right; letter-spacing: -0.02em; }
    .np-phase { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-align: center; min-width: 40px; letter-spacing: 0.06em; line-height: 1.6; }
    .np-phase.heat { background: rgba(255,180,0,0.12); color: #FFB400; }
    .np-phase.peak { background: rgba(139,92,246,0.12); color: #6d28d9; }
    .np-phase.cool { background: rgba(59,130,246,0.12); color: #1d4ed8; }
    .np-phase.emer { background: rgba(22,163,74,0.12); color: var(--green); }
    .np-phase.rot { background: rgba(100,116,139,0.12); color: #475569; }
    .np-bars { display: flex; gap: 4px; align-items: center; }
    .np-bar { flex: 1; height: 28px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: #ffffff; transition: filter 0.15s; position: relative; }
    .np-bar:hover { filter: brightness(0.95); }
    .np-bar:hover::after { content: attr(data-date); position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: 7.5px; color: var(--text-muted); white-space: nowrap; font-weight: 500; letter-spacing: 0.02em; }
    .np-delta { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-align: right; letter-spacing: -0.02em; }
    .np-tokens { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); text-align: right; font-weight: 500; }
    .np-dates { display: flex; gap: 4px; padding: 4px 0 0; }
    .np-dates span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 7.5px; color: var(--text-muted); letter-spacing: 0.02em; }
    .np-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; }
    @media (max-width: 900px) { .np-grid { grid-template-columns: 110px 40px 46px 1fr 44px; } .np-tokens { display: none; } }

    /* ═══ SUPPLY & UNLOCKS — single card, two flat columns (mirrors About) ═══
       The card + columns are plain inline-styled divs in the template (like the
       About section), so NONE of the legacy .su-grid / .td-design-card override
       rules apply — no nested cards. This class just lays out the two columns. */
    .td-supply-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
    @media (max-width: 900px) { .td-supply-grid { grid-template-columns: 1fr; } }

    /* ═══ Community Signals events list (v2) ═══ */
    .cs-events { display:flex;flex-direction:column; }
    .cs-event {
      position:relative;display:flex;align-items:center;gap:8px;
      padding:5px 4px 5px 0;border-bottom:1px solid var(--gray-50);
      transition:background 0.15s;
      animation:rfSlideUp 0.4s cubic-bezier(.16,1,.3,1) both;
    }
    .cs-event:last-child { border-bottom:none; }
    .cs-event:hover { background:var(--gray-50); }
    .cs-event:nth-child(1){animation-delay:0.03s;} .cs-event:nth-child(2){animation-delay:0.06s;}
    .cs-event:nth-child(3){animation-delay:0.09s;} .cs-event:nth-child(4){animation-delay:0.12s;}
    .cs-event:nth-child(5){animation-delay:0.15s;} .cs-event:nth-child(6){animation-delay:0.18s;}

    /* Catalyst type badge */
    .cs-cat-badge {
      display:inline-flex;align-items:center;
      padding:2px 7px;border-radius:4px;font-family:var(--font-mono);
      font-size:7.5px;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;
      white-space:nowrap;flex-shrink:0;min-width:58px;justify-content:center;
    }
    .cs-cat-badge.cat-partnership { background:rgba(59,130,246,0.08);color:#3b82f6; }
    .cs-cat-badge.cat-exchange { background:rgba(22,163,74,0.08);color:#16a34a; }
    .cs-cat-badge.cat-upgrade { background:rgba(139,92,246,0.08);color:#8b5cf6; }
    .cs-cat-badge.cat-onchain { background:rgba(16,185,129,0.08);color:#10b981; }
    .cs-cat-badge.cat-security { background:rgba(239,68,68,0.08);color:#ef4444; }
    .cs-cat-badge.cat-unlock { background:rgba(245,158,11,0.08);color:#d97706; }
    .cs-cat-badge.cat-governance { background:rgba(99,102,241,0.08);color:#6366f1; }
    .cs-cat-badge.cat-social { background:rgba(236,72,153,0.08);color:#ec4899; }
    .cs-cat-badge.cat-launch { background:rgba(255,180,0,0.12);color:#FFB400; }
    .cs-cat-badge.cat-integration { background:rgba(6,182,212,0.08);color:#0891b2; }
    .cs-cat-badge.cat-default { background:var(--gray-100);color:var(--text-muted); }

    .cs-titleCol { display:flex;flex-direction:column;gap:1px;min-width:0;flex:1; }
    .cs-title { font-size:10px;font-weight:500;color:var(--text);line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
    .cs-meta { display:flex;align-items:center;gap:5px;font-family:var(--font-mono);font-size:8px;color:var(--text-muted); }
    .cs-meta .sep { opacity:0.4; }

    /* Stats cluster */
    .cs-stats { display:flex;align-items:center;gap:10px;flex-shrink:0; }
    .cs-stat-item { display:flex;flex-direction:column;align-items:center;gap:0; }
    .cs-stat-val { font-family:var(--font-mono);font-size:10px;font-weight:700;color:var(--text);letter-spacing:-0.02em; }
    .cs-stat-val.green { color:var(--green); }
    .cs-stat-val.red { color:var(--red); }
    .cs-stat-val.amber { color:#FFB400; }
    .cs-stat-label { font-family:var(--font-mono);font-size:6.5px;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-muted); }

    /* Assess button in feed */
    .cs-assess-btn {
      display:inline-flex;align-items:center;gap:3px;
      padding:3px 8px;border-radius:6px;border:1px solid var(--gray-200);
      background:var(--surface);color:var(--text-secondary);
      font-family:var(--font-body);font-size:9px;font-weight:600;
      cursor:pointer;text-decoration:none;white-space:nowrap;flex-shrink:0;
      transition:background 0.15s,border-color 0.15s,color 0.15s;
    }
    .cs-assess-btn:hover { border-color:#FFB400;color:var(--text);background:rgba(255,180,0,0.04); }
    .cs-assess-btn svg { width:9px;height:9px; }

    @media (max-width:720px) {
      .cs-event { flex-wrap:wrap;gap:6px; }
      .cs-stats { gap:8px; }
    }

    /* ═══ Shared rf- utility classes (v2) ═══ */
    /* Buttons inherit from style.css — radius-8, not pills */
    .rf-btn-tiny-solid { background: var(--brand-amber); color: #0E0E0E; }
    .rf-btn-tiny-solid:hover { background: rgba(255,196,51,0.95); opacity: 1; }
    .rf-btn-tiny-solid:active { background: rgba(255,180,0,0.8); }
    .rf-btn-tiny-ghost { background: var(--surface); border: 1px solid var(--gray-200); color: var(--text); }
    .rf-btn-tiny-ghost:hover { border-color: var(--gray-300); background: var(--gray-50); opacity: 1; }
    .rf-btn-tiny-ghost:active { background: var(--gray-100); }
    .rf-btn-tiny-neutral { background: var(--gray-100); color: var(--text); }
    .rf-btn-tiny-neutral:hover { background: var(--gray-200); opacity: 1; }
    .rf-btn-tiny-neutral:active { background: var(--gray-300); }
    .rf-btn-tiny-quiet { background: transparent; color: var(--text-secondary); padding: 7px 8px; }
    .rf-btn-tiny-quiet:hover { color: var(--text); background: var(--gray-100); opacity: 1; }
    .rf-cat { font-family: var(--font-body); font-size: 10px; font-weight: 500; padding: 2px 9px; border-radius: 999px; border: none; letter-spacing: 0; white-space: nowrap; display: inline-flex; align-items: center; line-height: 1.5; }
    .rf-validity-bar { flex: 1; height: 3px; background: var(--gray-100); border-radius: 999px; overflow: hidden; position: relative; }
    .rf-validity-fill { height: 100%; border-radius: 999px; transform-origin: left center; animation: rfBarGrow 0.7s cubic-bezier(.16,1,.3,1) both; }

/* ═══ Pillar pop-ups (rebuilt) ═══ */
    .rfpp-overlay {
      display: none; position: fixed; inset: 0; z-index: 1000;
      align-items: center; justify-content: center;
      background: rgba(14,14,14,0.45);
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      animation: rfFadeIn 0.2s ease-out;
      padding: 24px;
    }
    .rfpp-overlay.open { display: flex; }
    .rfpp {
      background: var(--surface); border-radius: 14px;
      box-shadow: 0 24px 80px rgba(0,0,0,0.18), 0 1px 0 rgba(255,255,255,0.6) inset;
      width: min(880px, 100%); max-height: 86vh;
      display: flex; flex-direction: column;
      overflow: hidden; position: relative;
      animation: rfPopIn 0.28s cubic-bezier(.16,1,.3,1) both;
    }
    .rfpp-close {
      position: absolute; top: 16px; right: 16px; z-index: 5;
      width: 32px; height: 32px; border-radius: 50%;
      border: 1px solid var(--gray-100); background: var(--surface);
      cursor: pointer; color: var(--text-muted);
      display: flex; align-items: center; justify-content: center;
      transition: color 0.15s, border-color 0.15s, transform 0.15s, background 0.15s;
    }
    .rfpp-close:hover { color: var(--text); border-color: var(--text); transform: rotate(90deg); }
    .rfpp-close svg { width: 13px; height: 13px; }

    .rfpp-head {
      padding: 28px 32px 18px;
      border-bottom: 1px solid var(--gray-100);
      flex-shrink: 0;
    }
    .rfpp-eyebrow {
      display: inline-flex; align-items: center; gap: 6px;
      font-family: var(--font-mono); font-size: 9px; font-weight: 700;
      letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--rfpp-accent, #FFB400);
      padding: 4px 10px;
      background: var(--rfpp-accent-bg, rgba(255,180,0,0.1));
      border-radius: 999px;
      margin-bottom: 10px;
    }
    .rfpp-eyebrow .dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: currentColor;
      animation: rfSpark 1.6s ease-in-out infinite;
    }
    .rfpp-title {
      font-size: 22px; font-weight: 700; letter-spacing: -0.025em;
      color: var(--text); line-height: 1.2; margin-bottom: 6px;
    }
    .rfpp-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; max-width: 64ch; }

    .rfpp-method {
      padding: 14px 32px 16px;
      background: linear-gradient(180deg, var(--gray-50) 0%, transparent 100%);
      border-bottom: 1px solid var(--gray-100);
      flex-shrink: 0;
    }
    .rfpp-method-label {
      font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--text-muted); font-weight: 700;
      margin-bottom: 6px;
      display: inline-flex; align-items: center; gap: 6px;
    }
    .rfpp-method-label::before {
      content: ""; width: 12px; height: 1px; background: var(--text-muted);
    }
    .rfpp-method-body { font-size: 11.5px; color: var(--text-secondary); line-height: 1.6; }

    .rfpp-body {
      flex: 1; overflow-y: auto; padding: 8px 32px 24px;
      min-height: 0;
      scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.08) transparent;
    }
    .rfpp-body::-webkit-scrollbar { width: 5px; }
    .rfpp-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 999px; }
    .rfpp-body:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.16); }

    /* ── Sticky section label inside scrollable body ── */
    .rfpp-section-label {
      position: sticky; top: -8px; z-index: 2;
      background: var(--surface);
      padding: 14px 0 10px;
      margin-top: -8px;
      font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--text-muted); font-weight: 700;
      display: flex; align-items: center; gap: 8px;
    }
    .rfpp-section-label::after {
      content: ""; flex: 1; height: 1px; background: var(--gray-100);
    }

    /* Row for standard pillar (metric/value/context/score) */
    .rfpp-row {
      display: grid;
      grid-template-columns: 168px 90px 1fr 40px;
      gap: 14px; align-items: center;
      padding: 11px 12px;
      border-radius: 8px;
      transition: background 0.15s ease;
      animation: rfSlideUp 0.32s cubic-bezier(.16,1,.3,1) both;
    }
    .rfpp-row + .rfpp-row { border-top: 1px solid var(--gray-50); }
    .rfpp-row:hover { background: var(--hover-bg); }
    .rfpp-row .m-name { font-size: 12px; font-weight: 600; color: var(--text); }
    .rfpp-row .m-raw {
      font-family: var(--font-mono); font-size: 12px; font-weight: 700;
      color: var(--rfpp-accent, #FFB400);
    }
    .rfpp-row .m-ctx { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
    .rfpp-row .m-score {
      font-family: var(--font-mono); font-size: 13px; font-weight: 700;
      width: 36px; height: 36px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      background: var(--rfpp-accent-bg, rgba(255,180,0,0.1));
      color: var(--rfpp-accent, #FFB400);
      letter-spacing: -0.02em;
    }

    /* Row for utility */
    .rfpp-row-utility {
      display: grid;
      grid-template-columns: 160px 80px 60px 1fr 64px 36px;
      gap: 12px; align-items: center;
      padding: 11px 12px;
      border-radius: 8px;
      transition: background 0.15s ease;
      animation: rfSlideUp 0.32s cubic-bezier(.16,1,.3,1) both;
    }
    .rfpp-row-utility + .rfpp-row-utility { border-top: 1px solid var(--gray-50); }
    .rfpp-row-utility:hover { background: var(--hover-bg); }
    .rfpp-row-utility .u-name { font-size: 12px; font-weight: 600; color: var(--text); }
    .rfpp-row-utility .u-cons {
      font-family: var(--font-mono); font-size: 12px; font-weight: 700;
      color: var(--rfpp-accent, #FFB400);
    }
    .rfpp-row-utility .u-ass {
      font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted);
      display: inline-flex; align-items: center; gap: 4px;
    }
    .rfpp-row-utility .u-ctx { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

    /* ── Unified popup row (community-style for all types) ── */
    .rfpp-row-comm {
      position: relative;
      padding: 14px 14px 14px 18px;
      border-radius: 10px;
      transition: background 0.18s ease, border-color 0.18s ease;
      animation: rfSlideUp 0.32s cubic-bezier(.16,1,.3,1) both;
      border: 1px solid transparent;
    }
    .rfpp-row-comm + .rfpp-row-comm { margin-top: 4px; }
    .rfpp-row-comm:hover { background: var(--hover-bg); border-color: var(--gray-100); }
    .rfpp-row-comm::before {
      content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
      width: 3px; border-radius: 0 3px 3px 0;
      background: var(--cat-color, var(--rfpp-accent, #FFB400));
      opacity: 0.85;
    }
    .rfpp-row-comm .c-head {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: start;
      gap: 12px;
      margin-bottom: 6px;
    }
    .rfpp-row-comm .c-headL { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
    .rfpp-row-comm .c-name {
      font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35;
      letter-spacing: -0.01em; display: flex; align-items: center; gap: 4px;
    }
    .c-tip {
      display: inline-flex; align-items: center; justify-content: center;
      width: 13px; height: 13px; border-radius: 50%; font-size: 8px; font-weight: 700;
      background: var(--gray-100); color: var(--text-muted); cursor: default;
      flex-shrink: 0; line-height: 1;
    }
    .c-tip:hover { background: var(--gray-200); color: var(--text); }
    .rfpp-row-comm .c-meta {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
      font-family: var(--font-mono); font-size: 9.5px; color: var(--text-muted);
    }
    .rfpp-row-comm .c-meta .sep { opacity: 0.4; }
    .rfpp-row-comm .c-scoreBlock { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
    .rfpp-row-comm .c-impact-pill {
      font-size: 9px; font-weight: 600; padding: 2px 8px;
      border-radius: 999px; text-align: center;
      letter-spacing: 0.02em; text-transform: capitalize;
      display: inline-flex; align-items: center; gap: 4px;
      line-height: 1.5;
    }
    .rfpp-row-comm .c-impact-pill .deg {
      font-family: var(--font-mono); font-size: 8px; opacity: 0.7;
      letter-spacing: 0.04em;
    }
    .rfpp-row-comm .c-body {
      display: grid;
      grid-template-columns: 156px 1fr;
      align-items: start;
      gap: 8px 16px;
      margin-top: 2px;
    }
    .rfpp-row-comm .c-methodology {
      grid-column: 1 / -1;
      font-size: 10.5px; color: var(--text-muted); line-height: 1.5;
      padding: 8px 10px; margin-top: 4px;
      background: var(--gray-50); border-radius: 6px;
      border-left: 2px solid var(--gray-200);
    }
    .rfpp-row-comm .c-method-label {
      font-family: var(--font-mono); font-size: 8.5px; font-weight: 700;
      letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
      margin-right: 8px; opacity: 0.7;
    }
    .rfpp-row-comm .c-validity {
      display: flex; flex-direction: column; gap: 5px;
    }
    .rfpp-row-comm .c-validity-row {
      display: flex; align-items: center; justify-content: space-between;
      font-family: var(--font-mono); font-size: 8.5px; color: var(--text-muted);
      font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    }
    .rfpp-row-comm .c-validity-row .pct {
      font-size: 10.5px; letter-spacing: -0.02em; text-transform: none;
    }
    .rfpp-row-comm .c-validity .rf-validity-bar { height: 4px; width: 100%; flex: none; overflow: visible; }
    .rfpp-row-comm .c-validity .rf-validity-fill { animation: none; transform: scaleX(1); }
    .rfpp-row-comm .c-ctx {
      font-size: 11.5px; color: var(--text-secondary); line-height: 1.55;
    }
    .rfpp-row-comm .c-assess {
      display: inline-flex; align-items: center;
      font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: var(--text-muted);
      padding: 4px 10px; border-radius: 8px;
      background: var(--surface); border: 1px solid var(--gray-200);
      text-decoration: none; margin-left: auto; flex-shrink: 0;
      opacity: 0; pointer-events: none;
      transition: opacity 0.18s, color 0.15s, background 0.15s, border-color 0.15s;
      letter-spacing: 0.04em;
    }
    .rfpp-row-comm:hover .c-assess { opacity: 1; pointer-events: auto; }
    .rfpp-row-comm .c-assess:hover {
      background: #FFB400; color: #0E0E0E; border-color: #FFB400;
    }

    /* Redirect card for metrics with dedicated sections */
    .rfpp-section-redirect {
      display:flex; align-items:center; justify-content:space-between; gap:12px;
      margin-top:6px; padding:10px 14px; border-radius:8px;
      background:var(--gray-50); border:1px solid var(--gray-100);
      text-decoration:none; transition:background 0.15s, border-color 0.15s;
    }
    .rfpp-section-redirect:hover { background:rgba(255,180,0,0.06); border-color:rgba(255,180,0,0.2); }
    .rfpp-section-redirect span:first-child {
      font-size:11px; color:var(--text-muted); font-weight:500;
    }
    .rfpp-section-redirect-btn {
      font-family:var(--font-mono); font-size:10px; font-weight:700; color:#FFB400;
      white-space:nowrap; letter-spacing:0.02em;
    }
    .rfpp-section-redirect:hover .rfpp-section-redirect-btn { text-decoration:underline; }

    /* Generic score badge (for non-+/- scores 0..100) */
    .rfpp-row-comm .c-score-badge {
      font-family: var(--font-mono); font-size: 14px; font-weight: 700;
      padding: 5px 10px; border-radius: 8px; min-width: 42px; text-align: center;
      background: var(--rfpp-accent-bg, rgba(255,180,0,0.12));
      color: var(--rfpp-accent, #FFB400);
      letter-spacing: -0.02em;
    }

    .rfpp-footer {
      padding: 14px 32px; flex-shrink: 0;
      border-top: 1px solid var(--gray-100);
      background: var(--gray-50);
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
    }
    .rfpp-footer .help {
      font-size: 11px; color: var(--text-muted); line-height: 1.4;
      display: flex; align-items: center; gap: 8px;
    }
    .rfpp-footer .help::before {
      content: ""; width: 22px; height: 22px; border-radius: 50%;
      background: rgba(255,180,0,0.12);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B07C00' stroke-width='2.5'%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
      background-repeat: no-repeat; background-position: center;
    }
    .rfpp-cta-row { display: flex; gap: 8px; }

    /* Accent variants per pillar */
    .rfpp.va-financial,
    .rfpp.va-general { --rfpp-accent: #FFB400; --rfpp-accent-bg: rgba(255,180,0,0.12); }
    .rfpp.va-onchain { --rfpp-accent: #1d4ed8; --rfpp-accent-bg: rgba(59,130,246,0.1); }
    .rfpp.va-social { --rfpp-accent: #6d28d9; --rfpp-accent-bg: rgba(139,92,246,0.1); }
    .rfpp.va-utility { --rfpp-accent: #FFB400; --rfpp-accent-bg: rgba(255,180,0,0.12); }
    .rfpp.va-products { --rfpp-accent: #FFB400; --rfpp-accent-bg: rgba(255,180,0,0.12); }
    .rfpp.va-community { --rfpp-accent: var(--green); --rfpp-accent-bg: rgba(22,163,74,0.1); }
    .rfpp .rfpp-eyebrow { color: var(--rfpp-accent); background: var(--rfpp-accent-bg); }

    /* Make existing chart-ctrl-btn buttons feel a touch more refined */
    .chart-ctrl-btn { transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s !important; }
    .chart-ctrl-btn:active { transform: translateY(1px); }

    /* Subtle consistency: section in-view fade */
    .section > * { animation: rfFadeIn 0.4s ease-out both; }

    /* Token Utility & Community Signals pillar tag should look like rest */
    .pillar-info-btn { transition: background 0.15s, color 0.15s, transform 0.1s !important; }
    .pillar-info-btn:hover { transform: translateY(-0.5px); }
    .pillar-info-btn:active { transform: translateY(0); }

    /* ── Responsive ── */
    /* ── Responsive: universal grid helpers ── */
    .td-grid-2, .td-grid-3 { /* classes added to inline grids for responsive override */ }
    .table-scroll { overflow-x:auto;-webkit-overflow-scrolling:touch; }
    .table-scroll table { min-width:600px; }

    @media (max-width:768px) {
      .tv-chart { height:320px; }
      .chart-controls { flex-wrap:wrap;gap:3px; }
      .chart-ctrl-btn { padding:4px 8px;font-size:9.5px; }
      .chart-ctrl-sep { margin:0 3px; }

      /* Token header */
      .td-header { padding:16px !important; }
      .td-row1 { flex-wrap:wrap !important;gap:6px !important; }
      .td-row1 h1 { font-size:20px !important; }
      .td-social { display:none !important; }

      /* Price: stack vertically, MCap becomes horizontal chips */
      .td-price-row { flex-direction:column !important;gap:14px !important; }
      .td-mcap-right {
        text-align:left !important;font-size:11px !important;line-height:1.4 !important;
        /* 2×2 — always balanced; auto-fit dropped to 3 cols ~520px, orphaning the 4th */
        display:grid !important;grid-template-columns:1fr 1fr !important;gap:8px 12px !important;
        white-space:normal !important;
      }

      /* Pillar cards: 2 columns */
      .td-pillars { grid-template-columns:1fr 1fr !important;gap:10px !important; }
      .td-grid-2 { grid-template-columns:1fr 1fr !important; }
      .td-grid-3 { grid-template-columns:1fr 1fr !important; }

      /* Section headers with tabs: scroll horizontally */
      .section h2 { flex-wrap:wrap !important;gap:6px !important; }
      #val-tab-group { flex-wrap:wrap;gap:3px; }
      #supply-unlocks-section { flex-direction:column !important;align-items:flex-start !important;gap:8px !important; }
    }

    @media (max-width:640px) {
      .tv-chart { height:240px; }
      .section h2 { font-size:11px; }
      .chart-controls { gap:2px; }
      .chart-ctrl-btn { padding:5px 8px;font-size:9px;min-height:36px; }
      .chart-ctrl-label { font-size:8px;margin-right:2px; }
      .chart-ctrl-sep { display:none; }

      /* Token header */
      .td-header { padding:12px !important; }
      .td-row1 h1 { font-size:18px !important; }
      .td-row1 img { width:32px !important;height:32px !important; }
      #header-price { font-size:24px !important; }

      /* Chart */
      .tv-chart { height:280px !important; }
      .td-chart-header { flex-direction:column !important;align-items:flex-start !important;gap:6px !important; }
      .td-chart-header > div { overflow-x:auto;width:100%;-webkit-overflow-scrolling:touch; }
      .chart-controls { flex-wrap:nowrap !important; }
      .sig-strip { height:48px !important; }
      .sig-strip-brand-sub { display:none; }
      .sig-strip-brand-sep { display:none; }
      #signal-timeline { height:16px !important; }
      #signal-markers { height:16px !important; }

      /* Pillar cards: single column */
      .td-pillars { grid-template-columns:1fr !important; }
      .td-grid-2 { grid-template-columns:1fr !important; }
      .td-grid-3 { grid-template-columns:1fr !important; }

      /* All complex grids stack */
      /* Narrative Pulse: the 7-track grid overflowed, and stacking to 1 column
         dumped 7 label-less values vertically. Show a clean 3-col scan instead —
         name (wraps) + 7d avg + positive% — and hide the dot / 30d / conf / tokens
         columns (both header + data map 1:1 by child index). !important overrides
         the non-media .np-grid.tdf-34 (7 tracks) that would otherwise win. */
      .np-grid { grid-template-columns: minmax(0,1fr) 52px 48px !important; column-gap:8px; }
      .np-grid > :nth-child(2), .np-grid > :nth-child(4),
      .np-grid > :nth-child(6), .np-grid > :nth-child(7) { display:none; }
      .np-grid .np-name { white-space:normal; overflow:visible; text-overflow:clip; line-height:1.25; }
      .cs-event { flex-wrap:wrap;gap:6px; }
      .su-grid { grid-template-columns:1fr !important; }

      /* Popup full-width */
      .pillar-popup-overlay .rfpp { width:calc(100vw - 24px) !important;max-width:none !important;margin:12px !important; }

      /* CEX bar compact */
      #cex-bar-outer { margin-top:8px !important;padding-top:8px !important; }

      /* Tags + period changes: wrap */
      .td-row1 .tag { font-size:9px !important;padding:2px 6px !important; }
      .td-price-left > div[style*="gap:18px"] { gap:10px !important;flex-wrap:wrap !important; }

      /* PR stats inside cards: stay horizontal, just tighter */
      .pr-stats { gap:10px !important;padding:8px 12px !important; }
      .pr-stat-label { font-size:7.5px !important; }
    }

    @media (max-width:480px) {
      .tv-chart { height:240px !important; }
      .sig-d-row { flex-direction:column; }
      .sig-d-meters { flex-direction:column;gap:8px; }
      #header-price { font-size:22px !important; }
      .td-mcap-right { font-size:10px !important;grid-template-columns:1fr 1fr !important; }
      .score-ring { width:90px !important;height:90px !important; }
      .score-ring .ring-score { font-size:28px !important; }

      /* Tags wrap tighter */
      .td-price-left > div[style*="flex-wrap"] { gap:4px !important; }
    }

    /* Price must not clip on mobile. The desktop hero uses a tight line-height:0.95
       (and the 40px block uses line-height:1) — fine in the spacious desktop hero,
       but on the compact mobile card the tabular body glyphs (the $, tall digits)
       are taller than that line box, so their tops/bottoms get cut by the card's
       overflow. Give the number a line box that fits it at every mobile width. */
    @media (max-width: 768px) {
      #header-price { line-height: 1.3 !important; }
    }

#cex-scroll-wrapper { will-change: transform; }
        #header-exchange-grid { contain: layout; }
        /* MCap self-reported warning tooltip */
        .mcap-warn-tip {
          display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
          background: var(--surface); border: 1px solid var(--border-card);
          border-radius: var(--radius-sm); padding: 8px 12px;
          font-size: 11px; font-weight: 400; color: var(--amber);
          line-height: 1.5; white-space: nowrap;
          box-shadow: var(--shadow-md);
        }
        .mcap-warn:hover .mcap-warn-tip { display: block; }

@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
        @keyframes loadDot { 0%,80%,100%{opacity:0.2;transform:scale(0.8)} 40%{opacity:1;transform:scale(1.2)} }

@keyframes loadDot { 0%,80%,100%{opacity:0.2;transform:scale(0.8)} 40%{opacity:1;transform:scale(1.2)} }
        @keyframes shimmer { 0%{background-position:-100px 0} 100%{background-position:100px 0} }
        .ex-price-loading {
          width:60px;height:12px;border-radius:var(--radius-sm);
          background:linear-gradient(90deg,var(--gray-100,#f4f4f5) 25%,var(--gray-200,#e4e4e7) 50%,var(--gray-100,#f4f4f5) 75%);
          background-size:200px 100%;animation:shimmer 1.5s infinite;
        }

.sig-marker {
          position: absolute; top: 2px;
          transform: translateX(-50%);
          cursor: pointer; z-index: 5;
          display: flex; align-items: center; gap: 3px;
          padding: 2px 7px; border-radius: var(--radius-full);
          font-family: var(--font-mono); font-size: 8px; font-weight: 700;
          letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
          border: 1px solid; background: var(--surface);
          transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.15s;
        }
        .sig-marker::before {
          content: ""; width: 5px; height: 5px; border-radius: 50%;
          background: currentColor; flex-shrink: 0;
        }
        .sig-marker:hover { transform: translateX(-50%) translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.1); z-index: 10; }
        .sig-marker.active { border-color: #FFB400; box-shadow: 0 0 0 2px rgba(255,180,0,0.2); z-index: 10; }
        .sig-marker.is-pinned { border-color: #FFB400; box-shadow: 0 0 0 1.5px rgba(255,180,0,0.12); z-index: 8; }
        /* Tooltip on timeline labels removed — handled by JS proximity on chart dot */
        .sig-marker.type-volume { color: #3b82f6; border-color: rgba(59,130,246,0.25); }
        .sig-marker.type-social { color: #8b5cf6; border-color: rgba(139,92,246,0.25); }
        .sig-marker.type-onchain { color: #10b981; border-color: rgba(16,185,129,0.25); }
        .sig-marker.type-news { color: #f59e0b; border-color: rgba(245,158,11,0.25); }
        .sig-marker.type-dev { color: #374151; border-color: rgba(55,65,81,0.2); }
        .sig-marker.type-macro { color: #6366f1; border-color: rgba(99,102,241,0.25); }
        .sig-marker.type-exchange { color: #0891b2; border-color: rgba(8,145,178,0.25); }
        .sig-marker.type-security { color: #dc2626; border-color: rgba(220,38,38,0.25); }
        .sig-marker.type-catalyst { color: #16a34a; border-color: rgba(22,163,74,0.25); }
        .sig-marker.in-cluster { display: none; }

        /* Cluster badge — replaces overlapping markers */
        .sig-cluster {
          position: absolute; top: 2px; transform: translateX(-50%);
          cursor: pointer; z-index: 5;
          display: flex; align-items: center; gap: 0;
        }
        .sig-cluster-badge {
          padding: 2px 8px; border-radius: var(--radius-full);
          background: var(--surface); border: 1px solid var(--gray-200);
          font-family: var(--font-mono); font-size: 8px; font-weight: 700;
          color: var(--text-muted); white-space: nowrap;
          display: flex; align-items: center; gap: 4px;
          transition: border-color 0.15s, background 0.15s, color 0.15s;
        }
        .sig-cluster:hover .sig-cluster-badge { border-color: #FFB400; color: var(--text); }
        .sig-cluster.is-open .sig-cluster-badge { border-color: #FFB400; background: rgba(255,180,0,0.08); color: var(--text); display: flex; }

        /* Expanded cluster: dropdown list below badge */
        .sig-cluster-items {
          display: none; flex-direction: column; gap: 2px;
          position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
          background: var(--surface); border: 1px solid var(--gray-200);
          border-radius: 8px; padding: 4px; min-width: 120px;
          box-shadow: 0 4px 16px rgba(0,0,0,0.08);
          backdrop-filter: none; z-index: 20;
        }
        .sig-cluster.is-open .sig-cluster-items { display: flex; }
        .sig-cluster-items .sig-marker {
          position: static; transform: none; display: flex;
          width: 100%; border-radius: 6px;
        }
        .sig-cluster-items .sig-marker:hover { transform: none; background: var(--hover-bg); }
        .sig-cluster-items .sig-marker.active { border-color: #FFB400; box-shadow: 0 0 0 2px rgba(255,180,0,0.2); }
        .sig-cluster-items .sig-marker.is-pinned { border-color: #FFB400; box-shadow: 0 0 0 1.5px rgba(255,180,0,0.12); }

        /* Signal strip — persistent container below timeline, fixed height */
        .sig-strip {
          background: var(--surface); border: 1px solid var(--border-card);
          border-radius: var(--radius-sm); margin-top: 6px; height: 72px;
          overflow: hidden; position: relative;
        }
        /* Default: branded banner with gold gradient */
        .sig-strip-default {
          height: 100%; display: flex; align-items: center; padding: 0 16px;
          position: relative; overflow: hidden;
        }
        .sig-strip-bg {
          position: absolute; inset: 0; pointer-events: none;
          background: linear-gradient(135deg, rgba(255,180,0,0.06) 0%, rgba(255,180,0,0.12) 35%, rgba(255,196,51,0.08) 60%, rgba(255,180,0,0.04) 100%);
        }
        .sig-strip-bg::after {
          content: ""; position: absolute; inset: 0;
          background: radial-gradient(ellipse 60% 120% at 85% 50%, rgba(255,180,0,0.10), transparent 70%);
        }
        .sig-strip-brand {
          display: flex; align-items: center; gap: 8px; position: relative; z-index: 1;
        }
        .sig-strip-brand-text {
          font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -0.01em;
        }
        .sig-strip-brand-sep { width: 1px; height: 14px; background: var(--gray-200); }
        .sig-strip-brand-sub {
          font-family: var(--font-mono); font-size: 9px; color: var(--text-muted);
          letter-spacing: 0.02em;
        }
        .sig-strip-count {
          margin-left: auto; position: relative; z-index: 1;
          font-family: var(--font-mono); font-size: 9px; color: var(--text-muted);
          display: flex; align-items: center; gap: 6px;
        }
        .sig-strip-count .sig-ct {
          font-weight: 700; color: var(--text); font-size: 12px;
          background: var(--gray-50); padding: 2px 8px; border-radius: var(--radius-full);
          border: 1px solid var(--gray-100);
        }
        /* Expanded: single signal detail */
        .sig-strip-detail {
          padding: 12px 16px; height: 100%; display: flex; flex-direction: column;
          justify-content: center; animation: sigStripIn 0.15s ease-out;
        }
        @keyframes sigStripIn { from { opacity:0; } to { opacity:1; } }
        .sig-d-row { display: flex; align-items: center; gap: 14px; height: 100%; }
        .sig-d-left { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
        .sig-d-head { display: flex; align-items: center; gap: 6px; }
        .sig-d-type {
          font-family: var(--font-mono); font-size: 8px; font-weight: 600;
          letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
        }
        .sig-d-move {
          font-family: var(--font-mono); font-size: 9px; font-weight: 700;
          padding: 1px 6px; border-radius: var(--radius-full);
        }
        .sig-d-source {
          font-family: var(--font-mono); font-size: 7px; font-weight: 600;
          padding: 1px 5px; border-radius: var(--radius-full);
          letter-spacing: 0.04em; text-transform: uppercase;
        }
        .sig-d-source.community { background: rgba(139,92,246,0.08); color: var(--purple); }
        .sig-d-source.auto { background: var(--green-subtle); color: var(--green); }
        .sig-d-title {
          font-weight: 600; font-size: 12px; color: var(--text); line-height: 1.25;
          overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .sig-d-date { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); }
        .sig-d-meters { display: flex; gap: 10px; flex-shrink: 0; width: 260px; }
        .sig-meter { flex: 1; }
        .sig-meter-label {
          font-family: var(--font-mono); font-size: 7.5px; text-transform: uppercase;
          letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; margin-bottom: 2px;
        }
        .sig-meter-bar { height: 3px; background: var(--gray-100); border-radius: 2px; overflow: hidden; }
        .sig-meter-fill { height: 100%; border-radius: 2px; }
        .sig-meter-value { display: flex; justify-content: space-between; margin-top: 2px; }
        .sig-meter-pct { font-family: var(--font-mono); font-size: 9px; font-weight: 700; }
        .sig-meter-votes { font-family: var(--font-mono); font-size: 8px; color: var(--text-muted); }
        .sig-d-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
        .sig-d-back {
          border: none; background: none; cursor: pointer; color: var(--text-muted);
          font-family: var(--font-mono); font-size: 9px; font-weight: 600; padding: 4px 8px;
          border-radius: var(--radius-sm); transition: background 0.15s;
        }
        .sig-d-back:hover { background: var(--hover-bg); color: var(--text); }
        .sig-d-pin {
          border: none; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm);
          font-family: var(--font-mono); font-size: 9px; font-weight: 600;
          background: var(--brand-amber-bg); color: var(--brand-amber-strong);
          transition: background 0.15s;
        }
        .sig-d-pin:hover { background: rgba(255,180,0,0.18); }
        .sig-d-pin.is-pinned { background: var(--gray-100); color: var(--text-muted); }

        /* One-off signal — pulsing dot + label on chart */
        .sig-dot {
          position: absolute; width: 9px; height: 9px; border-radius: 50%;
          background: #FFB400; transform: translate(-50%, -50%);
          box-shadow: 0 0 0 2.5px var(--surface), 0 0 10px rgba(255,180,0,0.5);
          z-index: 3;
          opacity: 0; transition: opacity 0.2s ease;
        }
        .sig-dot.visible, .sig-dot-group.visible .sig-dot { opacity: 1; }
        /* sig-dot-tip is unused — tooltip handled by JS proximity detector (line ~3062)
           because the LightweightCharts canvas blocks CSS :hover on dots. */
        .sig-dot::before {
          content: ""; position: absolute; inset: -3px; border-radius: 50%;
          border: 1.5px solid #FFB400; opacity: 0;
          animation: sigDotPulse 2.4s cubic-bezier(.16,1,.3,1) infinite;
        }
        @keyframes sigDotPulse { 0%{transform:scale(1);opacity:0.6;} 80%,100%{transform:scale(2.4);opacity:0;} }
        .sig-dot-stem { display: none !important; }
        .sig-dot-chip {
          position: absolute; z-index: 4; pointer-events: none;
          font-family: var(--font-mono); font-size: 8px; font-weight: 600;
          letter-spacing: 0.06em; text-transform: uppercase;
          color: var(--brand-amber-strong); background: rgba(255,255,255,0.92);
          border: 1px solid rgba(255,180,0,0.25);
          padding: 2px 8px; border-radius: var(--radius-full); white-space: nowrap;
          transform: translateX(-50%);
          backdrop-filter: blur(4px);
          opacity: 0; transition: opacity 0.2s ease;
        }
        .sig-dot-chip.visible, .sig-dot-group.visible .sig-dot-chip { opacity: 1; }
        /* Pinned state — always visible, chip gets × button */
        .sig-dot-group.pinned .sig-dot,
        .sig-dot-group.pinned .sig-dot-chip { opacity: 1; }
        .sig-range.pinned { opacity: 1; }
        .sig-pin-x {
          display: inline-flex; align-items: center; justify-content: center;
          width: 12px; height: 12px; border-radius: 50%; border: none;
          background: rgba(0,0,0,0.08); color: var(--text-muted);
          font-size: 8px; line-height: 1; cursor: pointer; pointer-events: auto;
          margin-left: 4px; vertical-align: middle;
          transition: background 0.15s, color 0.15s;
        }
        .sig-pin-x:hover { background: rgba(220,38,38,0.12); color: var(--red); }

        /* Range signal — subtle band on chart */
        .sig-range {
          position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none;
          background: rgba(255,180,0,0.05);
          border-left: 1px dashed rgba(255,180,0,0.35);
          border-right: 1px dashed rgba(255,180,0,0.35);
          opacity: 0; transition: opacity 0.2s ease;
        }
        .sig-range.visible { opacity: 1; }
        .sig-range-tag {
          position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
          font-family: var(--font-mono); font-size: 8px; font-weight: 600;
          letter-spacing: 0.06em; text-transform: uppercase;
          color: var(--brand-amber-strong); background: rgba(255,255,255,0.92);
          border: 1px solid rgba(255,180,0,0.25);
          padding: 2px 8px; border-radius: var(--radius-full); white-space: nowrap;
          backdrop-filter: blur(4px); z-index: 2;
        }
        /* Horizontal boundary lines from tag edges to band edges */
        .sig-range-lines {
          position: absolute; top: 12px; left: 0; right: 0; height: 1px;
          pointer-events: none; z-index: 1;
        }
        .sig-range-line {
          position: absolute; top: 0; height: 1px;
          border-top: 1px dashed rgba(255,180,0,0.3);
        }
        .sig-range-line-l { left: 0; }
        .sig-range-line-r { right: 0; }

#moves-table { width:100%;min-width:800px;border-collapse:collapse;background:var(--surface) !important;border:1px solid var(--border-card) !important;border-radius:var(--radius) !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;box-shadow:none !important;overflow:hidden;transition:border-color 0.18s ease, box-shadow 0.2s ease; }
        #moves-table:hover { border-color:rgba(255,180,0,0.28);box-shadow:0 4px 16px rgba(0,0,0,0.04); }
        #moves-table thead th { background:var(--gray-50); }
        #moves-table tbody tr:hover td { background:var(--hover-bg); }
        #moves-table thead { display:table;width:100%;table-layout:fixed; }
        #moves-table tbody { display:block;max-height:200px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(0,0,0,0.08) transparent; }
        #moves-table tbody::-webkit-scrollbar { width:5px; }
        #moves-table tbody::-webkit-scrollbar-thumb { background:rgba(0,0,0,0.08);border-radius:999px; }
        #moves-table tbody:hover::-webkit-scrollbar-thumb { background:rgba(0,0,0,0.16); }
        #moves-table tbody tr { display:table;width:100%;table-layout:fixed; }
        #moves-table th, #moves-table td { white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
        #moves-table th:nth-child(1), #moves-table td:nth-child(1) { width:18%; }
        #moves-table th:nth-child(2), #moves-table td:nth-child(2) { width:7%; }
        #moves-table th:nth-child(3), #moves-table td:nth-child(3) { width:9%; }
        #moves-table th:nth-child(4), #moves-table td:nth-child(4) { width:9%; }
        #moves-table th:nth-child(5), #moves-table td:nth-child(5) { width:9%; }
        #moves-table th:nth-child(6), #moves-table td:nth-child(6) { width:10%; }
        #moves-table th:nth-child(7), #moves-table td:nth-child(7) { width:10%; }
        #moves-table th:nth-child(8), #moves-table td:nth-child(8) { width:8%; }
        #moves-table th:nth-child(9), #moves-table td:nth-child(9) { width:9%; }
        #moves-table th:nth-child(10), #moves-table td:nth-child(10) { width:7%; }
        #moves-table th:nth-child(11), #moves-table td:nth-child(11) { width:4%; }
        @media (max-width:768px) {
          #moves-table { min-width:800px; }
          #moves-table thead { table-layout:auto; }
          #moves-table tbody { display:table-row-group;max-height:none;overflow:visible; }
          #moves-table tbody tr { display:table-row; }
          #moves-table th, #moves-table td { width:auto !important;white-space:nowrap; }
        }

.seg-tip { display:none;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:9px;font-family:var(--font-mono);color:var(--text-muted);background:var(--surface);border:1px solid var(--border-card);border-radius:var(--radius-sm);padding:3px 8px;box-shadow:var(--shadow-sm);z-index:10;pointer-events:none; }
        .seg-tip-wrap:hover .seg-tip { display:block; }
/* Downward hook/caret on above-positioned tooltips — matches chart event-card pointer (.pe-arrow) */
.seg-tip::after, .cs-hook-tip::after { content:"";position:absolute;bottom:-5px;width:9px;height:9px;background:var(--surface);border-right:1px solid var(--border-card);border-bottom:1px solid var(--border-card);transform:rotate(45deg);pointer-events:none; }
.seg-tip::after { left:50%;margin-left:-4.5px; }
/* Custom-score tooltip is right-aligned under its trigger button, so the hook sits near the right edge */
.cs-hook-tip::after { right:14px; }

/* Unified scroll: fade top/bottom edges, scrollbar pushed to card right edge */
        .scroll-fade {
          overflow-y: auto; scrollbar-width: thin; scrollbar-color: transparent transparent;
          -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 24px), transparent 100%);
                  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 24px), transparent 100%);
          transition: -webkit-mask-image 0.2s ease, mask-image 0.2s ease;
        }
        .scroll-fade.no-overflow {
          -webkit-mask-image: none;
                  mask-image: none;
        }
        .scroll-fade.is-scrolled {
          -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
                  mask-image: linear-gradient(180deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
        }
        .scroll-fade.is-end {
          -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24px, #000 100%);
                  mask-image: linear-gradient(180deg, transparent 0, #000 24px, #000 100%);
        }
        .scroll-fade::-webkit-scrollbar { width: 5px; }
        .scroll-fade::-webkit-scrollbar-track { background: transparent; }
        .scroll-fade::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 999px; }
        .scroll-fade:hover { scrollbar-color: rgba(0,0,0,0.16) transparent; }
        .scroll-fade:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.16); }
        .pillar-scroll { max-height: 160px; padding: 4px 16px 4px 0; margin-right: -16px; }
        .metric-section-link {
          display:inline-flex;align-items:center;justify-content:center;
          width:13px;height:13px;border-radius:50%;background:var(--gray-100);
          color:var(--text-muted);font-size:8px;text-decoration:none;line-height:1;
          vertical-align:middle;margin-left:2px;
          transition:background 0.15s, color 0.15s;
        }
        .metric-section-link:hover { background:rgba(255,180,0,0.15);color:#FFB400; }

        /* Pillar detail button (unified with action button language) */
        .pillar-info-btn {
          padding: 2px 8px 2px 9px; border-radius: 8px; border: none;
          background: var(--gray-100);
          display: inline-flex; align-items: center; gap: 3px; cursor: pointer; flex-shrink: 0;
          font-size: 8.5px; font-weight: 700; color: var(--text-muted);
          font-family: var(--font-mono); line-height: 1.4;
          letter-spacing: 0.06em; text-transform: uppercase;
          transition: background 0.15s, color 0.15s, transform 0.1s;
        }
        .pillar-info-btn::after {
          content: "→"; font-family: var(--font-body); font-size: 9px; font-weight: 500; letter-spacing: 0;
          transform: translateX(0); transition: transform 0.18s cubic-bezier(.16,1,.3,1);
        }
        .pillar-info-btn:hover { background: rgba(255,180,0,0.18); color: var(--brand-amber-strong); }
        .pillar-info-btn:hover::after { transform: translateX(2px); }
        .pillar-info-btn:active { transform: translateY(0); }

        /* rf-dd dropdown styles are in style.css */
        .rf-dd-section:first-child { padding-top: 4px; }

        .val-tabs-wrap { position: relative; }
        .val-tab { display: none; }
        .val-tab.active { display: block; animation: rfFadeIn 0.22s ease-out; }
        .val-row-1 { min-height: 230px; overflow: visible; }

        /* ═══ Peer Rankings list ═══ */
        .pk-thead {
          display: grid; grid-template-columns: 30px 22px minmax(110px,1fr) 1fr 60px 76px 16px;
          column-gap: 12px; align-items: center; padding: 4px 20px 6px 12px;
          font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em;
          text-transform: uppercase; color: var(--text-muted); font-weight: 700;
        }
        .pk-thead span.r { text-align: right; }
        .pk-row + .pk-row { margin-top: 2px; }
        .pk-row {
          display: grid; grid-template-columns: 30px 22px minmax(110px,1fr) 1fr 60px 76px 16px;
          column-gap: 12px; align-items: center; padding: 8px 20px 8px 12px;
          border-radius: 8px; transition: background 0.15s ease;
          animation: rfSlideUp 0.4s cubic-bezier(.16,1,.3,1) both;
        }
        .pk-row:hover { background: var(--hover-bg); }
        .pk-row.is-self {
          background: linear-gradient(135deg, rgba(255,180,0,0.08), rgba(255,180,0,0.02));
          border: 1px solid rgba(255,180,0,0.22); padding: 7px 11px;
        }
        .pk-row.is-self:hover { background: linear-gradient(135deg, rgba(255,180,0,0.12), rgba(255,180,0,0.03)); }
        .pk-row.is-hl { background: rgba(59,130,246,0.05); border: 1px solid rgba(59,130,246,0.18); padding: 7px 11px; }
        .pk-rank { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: -0.02em; }
        .pk-rank.t1 { color: #FFB400; } .pk-rank.t2 { color: #71717a; } .pk-rank.t3 { color: #64748b; }
        .pk-logo { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px var(--gray-100); background: var(--gray-50); flex-shrink: 0; }
        .pk-name { font-size: 11px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .pk-bar { position: relative; height: 6px; }
        .pk-bar-track { height: 6px; border-radius: 3px; background: var(--gray-100); overflow: visible; position: relative; }
        .pk-bar-fill {
          height: 100%; border-radius: 3px;
          background: linear-gradient(90deg, rgba(255,180,0,0.1) 0%, #FFB400 100%);
          transform-origin: left; animation: rfBarGrow 0.6s cubic-bezier(.16,1,.3,1) both;
          position: relative;
        }
        .pk-bar-fill::after {
          content: ""; position: absolute; top: 50%; right: 0;
          width: 8px; height: 8px; border-radius: 50%; background: #FFB400;
          transform: translate(50%, -50%); box-shadow: 0 0 6px rgba(255,180,0,0.4);
        }
        .pk-score { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-align: right; letter-spacing: -0.02em; color: var(--text); }
        .pk-sim { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); text-align: right; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
        .pk-sim .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gray-300); }
        .pk-sim.s-hi .dot { background: var(--green); } .pk-sim.s-md .dot { background: var(--amber); }
        .pk-go {
          display: inline-flex; align-items: center; justify-content: center;
          width: 18px; height: 18px; border-radius: 4px; color: var(--text-muted); text-decoration: none;
          opacity: 0; transition: opacity 0.15s, background 0.15s, color 0.15s, transform 0.15s;
        }
        .pk-row:hover .pk-go { opacity: 1; }
        .pk-go:hover { color: var(--text); background: var(--gray-100); transform: translateX(2px); }
        .pk-go svg { width: 11px; height: 11px; }
        @media (max-width: 900px) { .pk-thead, .pk-row { grid-template-columns: 24px 20px minmax(80px,1fr) 1fr 46px 36px 14px; column-gap: 8px; } }
        .score-ring { position:relative;width:120px;height:120px;margin:0 auto 6px; }
        .score-ring svg { width:100%;height:100%; }
        .score-ring .ring-track { fill:none;stroke:#ebebeb;stroke-width:12;stroke-dasharray:209.4 41.9;stroke-linecap:round; }
        .score-ring .ring-fill { fill:none;stroke-width:12;stroke-linecap:round;transition:stroke-dasharray 0.6s ease,stroke 0.3s; }
        .score-ring .ring-center { position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none; }
        .score-ring .ring-score { font-size:36px;font-weight:700;font-family:var(--font-mono);letter-spacing:-0.03em;color:var(--text);line-height:1; }
        .score-ring .ring-denom { font-size:11px;color:var(--text-muted);margin-top:2px; }
        @media (max-width:640px) {
          .pk-thead, .pk-row { grid-template-columns:20px minmax(60px,1fr) 1fr 40px 14px !important;column-gap:6px !important; }
          .pk-row .pk-sim { display:none; }
          .score-ring { width:90px !important;height:90px !important; }
          .score-ring .ring-score { font-size:28px !important; }
        }

@keyframes btDotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.55); } 50% { box-shadow: 0 0 0 4px rgba(59,130,246,0); } }
        @keyframes btBadgePulse { 0% { transform: scale(1); opacity: 0.55; } 80% { transform: scale(1.7); opacity: 0; } 100% { transform: scale(1.7); opacity: 0; } }

.pr-card-wrap { position: relative; background: var(--surface); border: 1px solid var(--border-card); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
        .pr-card-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
        .pr-scan-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
        .pr-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.85) 60%, rgba(255,255,255,0.92)); backdrop-filter: blur(0.5px); }
        .pr-card-head { position: relative; z-index: 1; padding: 10px 16px; border-bottom: 1px solid var(--gray-100); background: var(--surface); }
        .pr-status { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding: 2px 8px; background: var(--gray-100); border-radius: 999px; line-height: 1.5; }
        .pr-pulse-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-amber, #FFB400); box-shadow: 0 0 0 0 rgba(255,180,0,0.6); animation: prDotPulse 1.8s ease-in-out infinite; }
        @keyframes prDotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,180,0,0.55); } 50% { box-shadow: 0 0 0 4px rgba(255,180,0,0); } }
        @keyframes prDotPulsePurple { 0%,100% { box-shadow: 0 0 0 0 rgba(139,92,246,0.55); } 50% { box-shadow: 0 0 0 4px rgba(139,92,246,0); } }
        .pr-card-body { position: relative; z-index: 1; padding: 28px 24px 22px; text-align: center; }
        .pr-ai-badge { position: relative; width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 12px; background: #FFB400; color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(255,180,0,0.35); }
        .pr-ai-badge svg { width: 18px; height: 18px; position: relative; z-index: 1; stroke: white; }
        .pr-ai-pulse, .pr-ai-pulse--2 { position: absolute; inset: 0; border-radius: 12px; border: 1.5px solid rgba(255,180,0,0.4); opacity: 0; animation: prAiPulse 2.4s cubic-bezier(.16,1,.3,1) infinite; }
        .pr-ai-pulse--2 { animation-delay: 1.2s; }
        @keyframes prAiPulse { 0% { transform: scale(1); opacity: 0.55; } 80% { transform: scale(1.7); opacity: 0; } 100% { transform: scale(1.7); opacity: 0; } }
        @keyframes chartLoadPulse { 0% { transform: scale(1); opacity: 0.55; } 80% { transform: scale(1.8); opacity: 0; } 100% { transform: scale(1.8); opacity: 0; } }
        .pr-title { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.2; }
        .pr-sub { font-size: 12px; color: var(--text-muted); line-height: 1.55; max-width: 460px; margin: 0 auto 18px; }
        .pr-stats { display: inline-flex; align-items: center; gap: 18px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--gray-200); border-radius: 999px; }
        .pr-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; }
        .pr-stat-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; display: inline-flex; align-items: center; justify-content: center; min-height: 14px; }
        .pr-stat-label { font-family: var(--font-mono); font-size: 8.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
        .pr-stat-divider { width: 1px; height: 24px; background: var(--gray-200); }
        .pr-skel { display: inline-block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--gray-100) 0%, var(--gray-200) 50%, var(--gray-100) 100%); background-size: 200% 100%; animation: prSkel 1.6s ease-in-out infinite; }
        @keyframes prSkel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
        @media (max-width: 640px) {
          .pr-stats { gap:6px;padding:6px 10px;border-radius:12px;flex-wrap:nowrap !important; }
          .pr-stat-num { font-size:10px; }
          .pr-stat-label { font-size:6.5px;letter-spacing:0.04em; }
          .pr-stat-divider { height:16px; }
          .pr-card-body { padding:16px 12px 14px; }
          .pr-title { font-size:14px; }
          .pr-sub { font-size:10px;margin-bottom:10px; }
        }

.ph-toggle {
    position: fixed; bottom: 20px; right: 70px; z-index: 200;
    width: 42px; height: 42px; border-radius:var(--radius);
    background: rgba(255,255,255,0.85); border: 1px solid rgba(14,14,14,0.1);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all 0.15s;
  }
  .ph-toggle:hover { color: #FFB400; border-color: #FFB400; }
  .ph-toggle.active { background: #FFB400; color: #0E0E0E; border-color: #FFB400; }
  .ph-toggle svg { width: 18px; height: 18px; }

  [data-ph] { position: relative; transition: filter 0.3s, opacity 0.3s; }
  body.ph-blur [data-ph] { filter: blur(4px); opacity: 0.35; pointer-events: none; user-select: none; }
  body.ph-blur [data-ph]::after {
    content: attr(data-ph); position: absolute; inset: 0; display: flex;
    align-items: center; justify-content: center; z-index: 5;
    font-size: 11px; font-weight: 600; color: var(--text);
    font-family: var(--font-mono); letter-spacing: 0.04em;
    filter: none; opacity: 1; pointer-events: none;
  }

.links-scroll { max-height:480px; padding:4px 0; }

/* ── Weights modal layout ── */
  .wt-body { flex:1; overflow-y:auto; padding:0 28px 20px; max-height:52vh; }

  /* ── Allocation bar ── */
  .wt-alloc-bar { display:flex; align-items:center; gap:12px; padding:14px 28px; border-bottom:1px solid var(--gray-100); flex-shrink:0; }
  .wt-alloc-label { font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); white-space:nowrap; }
  .wt-alloc-track { flex:1; height:6px; border-radius:999px; background:var(--gray-100); overflow:hidden; }
  .wt-alloc-fill { height:100%; border-radius:999px; background:#FFB400; transition:width 0.2s ease, background 0.2s ease; }
  .wt-alloc-fill.is-over { background:var(--red); }
  .wt-alloc-fill.is-under { background:var(--text-muted); }
  .wt-alloc-num { font-family:var(--font-mono); font-size:12px; font-weight:700; min-width:38px; text-align:right; }
  .wt-alloc-num.is-ok { color:var(--green); }
  .wt-alloc-num.is-bad { color:var(--red); }

  /* ── Pillar sections ── */
  .wt-section { border-bottom:1px solid var(--gray-100); }
  .wt-section:last-of-type { border-bottom:none; }
  .wt-pillar-reset:hover { color:var(--red) !important; }
  .wt-section-head {
    display:flex; align-items:center; gap:10px; width:100%;
    padding:14px 0; border:none; background:none; cursor:pointer;
    font-family:inherit; text-align:left;
  }
  .wt-section-head:hover { background:var(--hover-bg); margin:0 -28px; padding:14px 28px; width:calc(100% + 56px); border-radius:8px; }
  .wt-section-dot { width:8px; height:8px; border-radius:50%; background:var(--pillar-color); flex-shrink:0; }
  .wt-section-name { font-size:13px; font-weight:600; color:var(--text); letter-spacing:-0.01em; }
  .wt-section-badge { font-family:var(--font-mono); font-size:9.5px; font-weight:700; color:var(--text-muted); background:var(--gray-100); padding:2px 7px; border-radius:999px; }
  .wt-section-slider-wrap { flex:1; min-width:80px; display:flex; align-items:center; }
  .wt-section-val { font-family:var(--font-mono); font-size:11px; font-weight:700; color:var(--text); min-width:24px; text-align:right; }
  .wt-section-chevron { color:var(--text-muted); transition:transform 0.2s ease; flex-shrink:0; }
  .wt-section.is-open .wt-section-chevron { transform:rotate(180deg); }

  /* ── Metric rows (hidden by default) ── */
  .wt-section-body { display:none; padding:0 0 10px 18px; }
  .wt-section.is-open .wt-section-body { display:block; }
  .wt-metric { display:flex; align-items:center; gap:10px; padding:6px 0; }
  .wt-metric-label { min-width:130px; font-size:11px; color:var(--text-muted); font-weight:500; display:flex; align-items:center; gap:4px; }
  .wt-metric-tip {
    display:inline-flex; align-items:center; justify-content:center;
    width:13px; height:13px; border-radius:50%; font-size:8px; font-weight:700;
    color:var(--text-muted); background:var(--gray-100); cursor:help; flex-shrink:0;
    position:relative; opacity:0.6; transition:opacity 0.15s;
  }
  .wt-metric-tip:hover { opacity:1; }
  .wt-metric-tip:hover::after {
    content:attr(data-tip); position:absolute; left:calc(100% + 8px); top:50%;
    transform:translateY(-50%); width:max-content; max-width:220px;
    padding:6px 10px; border-radius:6px; font-size:10px; font-weight:400;
    line-height:1.4; color:#fff; background:#1a1a1a;
    box-shadow:0 4px 12px rgba(0,0,0,0.2);
    z-index:100; pointer-events:none; white-space:normal;
  }
  .wt-metric-val { font-family:var(--font-mono); font-size:10px; font-weight:700; color:var(--text); min-width:24px; text-align:right; }

  /* ── Quantity bonus row (utility/products) — set apart from the per-item metrics.
       Always amber-gold (brand) regardless of the pillar's accent, so the bonus reads
       consistently across pillars. ── */
  .wt-qbonus { margin-top:4px; padding-top:10px; border-top:1px dashed var(--border-card); }
  .wt-qbonus .wt-metric-label { color:#FFB400; font-weight:600; }
  .wt-qbonus .wt-slider { --slider-accent:#FFB400; }
  .wt-empty-note { font-size:10px; color:var(--text-muted); line-height:1.4; padding:6px 0 2px; }

  /* ── Sliders ── */
  .wt-slider { flex:1; height:4px; -webkit-appearance:none; appearance:none; background:var(--gray-200); border-radius:999px; outline:none; cursor:pointer; }
  .wt-slider::-webkit-slider-thumb {
    -webkit-appearance:none; width:16px; height:16px; border-radius:50%;
    background:var(--slider-accent, #FFB400); border:2.5px solid var(--surface);
    box-shadow:0 1px 4px rgba(0,0,0,0.18); cursor:grab; margin-top:-6px;
    transition:transform 0.15s ease, box-shadow 0.15s ease;
  }
  .wt-slider::-webkit-slider-thumb:hover { transform:scale(1.15); box-shadow:0 2px 8px rgba(0,0,0,0.22); }
  .wt-slider:active::-webkit-slider-thumb { cursor:grabbing; transform:scale(1.1); }
  .wt-slider::-moz-range-thumb {
    width:16px; height:16px; border-radius:50%;
    background:var(--slider-accent, #FFB400); border:2.5px solid var(--surface);
    box-shadow:0 1px 4px rgba(0,0,0,0.18); cursor:grab;
  }
  .wt-slider::-webkit-slider-runnable-track { height:4px; border-radius:999px; background:var(--gray-200); }

  /* ── Templates ── */
  .wt-templates { margin-top:16px; padding-top:16px; border-top:1px solid var(--gray-100); }
  .wt-templates-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
  .wt-templates-label { font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); }
  .wt-templates-save { display:flex; gap:6px; margin-left:auto; }
  .wt-tpl-input {
    font-size:11px; padding:5px 10px; border:1px solid var(--gray-200); border-radius:var(--radius-sm);
    background:var(--surface); color:var(--text); outline:none; width:160px;
    transition:border-color 0.15s;
  }
  .wt-tpl-input:focus { border-color:#FFB400; }
  .wt-tpl-save-btn {
    font-size:10px; font-weight:600; padding:5px 12px; border:none; border-radius:var(--radius-sm);
    background:var(--gray-100); color:var(--text); cursor:pointer; transition:background 0.15s;
  }
  .wt-tpl-save-btn:hover { background:var(--gray-200); }
  .wt-tpl-row {
    display:flex; align-items:center; gap:8px; padding:7px 0;
    border-bottom:1px solid var(--gray-50); font-size:11px;
  }
  .wt-tpl-row:last-child { border-bottom:none; }
  .wt-tpl-name { font-weight:600; color:var(--text); }
  .wt-tpl-scope { font-family:var(--font-mono); font-size:9px; color:var(--text-muted); }
  .wt-tpl-scope.is-global { padding:1px 6px; background:rgba(255,180,0,0.1); border-radius:999px; color:#FFB400; font-weight:500; }
  .wt-tpl-actions { margin-left:auto; display:flex; gap:4px; }
  .wt-tpl-btn {
    font-size:10px; font-weight:600; padding:4px 10px; border:none; border-radius:var(--radius-sm);
    background:var(--gray-100); color:var(--text); cursor:pointer; transition:background 0.15s;
  }
  .wt-tpl-btn:hover { background:var(--gray-200); }
  .wt-tpl-del { border:none; background:none; color:var(--text-muted); cursor:pointer; font-size:11px; padding:4px 6px; border-radius:var(--radius-sm); transition:color 0.15s, background 0.15s; }
  .wt-tpl-del:hover { color:var(--red); background:rgba(239,68,68,0.08); }

  /* ── Footer ── */
  .wt-footer { display:flex; align-items:center; gap:16px; padding:14px 28px; border-top:1px solid var(--gray-100); flex-shrink:0; }
  .wt-footer-note { font-size:10px; color:var(--text-muted); line-height:1.4; flex:1; }
  .wt-footer-actions { display:flex; gap:8px; flex-shrink:0; }
  .wt-btn-primary, .wt-btn-secondary {
    font-size:12px; font-weight:600; padding:8px 18px; border-radius:var(--radius-sm);
    border:1px solid transparent; cursor:pointer; transition:background 0.15s, border-color 0.15s, transform 0.1s;
  }
  .wt-btn-primary::after, .wt-btn-secondary::after {
    content:"→"; margin-left:3px; display:inline-block; transform:translateX(0); font-weight:500;
    transition:transform 0.18s cubic-bezier(.16,1,.3,1);
  }
  .wt-btn-primary:hover::after, .wt-btn-secondary:hover::after { transform:translateX(3px); }
  .wt-btn-primary:active, .wt-btn-secondary:active { transform:translateY(0.5px); }
  .wt-btn-primary { background:#FFB400; color:#0E0E0E; }
  .wt-btn-primary:hover { background:rgba(255,196,51,0.95); }
  .wt-btn-secondary { background:var(--surface); border-color:var(--gray-200); color:var(--text); box-shadow:0 1px 2px rgba(0,0,0,0.04); }
  .wt-btn-secondary:hover { border-color:var(--gray-300); background:var(--gray-50); }

/* extracted free inline styles (css-verify) */
.td-row1 h1.tdf-1 { font-size:24px;font-weight:800;letter-spacing:-0.48px;margin:0; }
.tdf-2 { vertical-align:middle; }
.td-row1 .chain-cell.tdf-3 { display:inline;position:relative;margin-left:-4px; }
.tdf-4 { margin-left:var(--sp-2); }
.td-row1 .narrative-cell.tdf-5 { display:inline;position:relative; }
.td-mcap-right .tdf-6 { position:relative;display:inline-block;cursor:default; }
.tdf-7 { color:var(--amber);font-size:11px;margin-left:3px;cursor:help; }
.tdf-8 { overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(to right,transparent,black 2%,black 94%,transparent);mask-image:linear-gradient(to right,transparent,black 2%,black 94%,transparent); }
.tdf-10 { position:relative;height:22px;margin-top:2px;overflow-x:clip;overflow-y:visible;z-index:10; }
.tdf-11 { position:relative;height:22px; }
.tdf-13 { cursor:pointer; }
.tdf-14 { font-size:10px;color:var(--accent); }
.tdf-15 { font-weight:600; }
.tdf-16 { position:relative; }
.tdf-17 { flex-shrink:0;text-decoration:none; }
span.tdf-18 { position:relative;display:inline-block; }
.tdf-19 { font-size:12px;color:var(--gray-300);font-weight:400; }
.tdf-20 { flex:1;height:6px;position:relative;overflow:visible; }
.tdf-21 { color:#FFB400;text-decoration:none; }
.tdf-22 { font-size:10px; }
.tdf-24 { text-align:center; }
.tdf-25 { text-align:center;min-width:80px; }
.tdf-26 { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.tdf-27 { position:relative;z-index:1; }
.tdf-28 { width:32px; }
.tdf-29 { width:38px; }
.tdf-30 { width:28px; }
.tdf-31 { width:36px; }
.tdf-32 { width:30px; }
.tdf-33 { width:34px; }
.np-grid.tdf-34 { grid-template-columns:1fr 52px 60px 60px 60px 52px 36px; }
.tdf-36 { min-width:0; }
.social-icon.tdf-37 { width:22px;height:22px; }
.social-icon svg.tdf-38 { width:13px;height:13px; }
.tdf-39 { display:grid;grid-template-columns:1fr 1fr;gap:6px 16px; }
.tdf-40 { color:var(--gray-200);font-size:10px; }
.rfpp.tdf-41 { width:min(620px,100%); }
.tdf-42 { width:100%; }

/* ── Products & Token Utility — expanded Lab view. One unified glass section card
   (matching Narrative Pulse / Token Design and the design-system card treatment),
   split into two columns by a divider. Class-based only (no inline styles). ── */
/* Token Utility + Products: two standalone sections sharing one row (each its own
   column). The row owns the top spacing so the paired sections align at the top;
   stacks to a single column on narrow screens. */
.pu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; margin-top: 28px; }
.pu-row > .section { margin-top: 0; }
@media (max-width: 760px) { .pu-row { grid-template-columns: 1fr; } }
.pu-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  border-radius: 16px; overflow: hidden;
}
.pu-grid { display:grid; grid-template-columns:1fr 1fr; }
.pu-col { padding:16px 18px; display:flex; flex-direction:column; min-width:0; }
.pu-col + .pu-col { border-left:1px solid var(--border-card); }
.pu-col-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; padding-bottom:10px; margin-bottom:2px; border-bottom:1px solid var(--border-card); }
.pu-col-title { font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--text); }
.pu-col-meta { font-family:var(--font-mono); font-size:9px; color:var(--text-muted); white-space:nowrap; }
.pu-item { padding:12px 0; border-bottom:1px solid var(--border-card); }
.pu-item:last-of-type { border-bottom:none; }
.pu-item-head { display:flex; align-items:center; gap:8px; margin-bottom:5px; }
.pu-item-name { font-size:12.5px; font-weight:600; color:var(--text); flex:1; min-width:0; letter-spacing:-0.005em; }
.pu-badge { font-family:var(--font-mono); font-size:8px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; padding:2px 7px; border-radius:var(--radius-full); white-space:nowrap; flex-shrink:0; }
.pu-badge.valid { color:var(--green); background:var(--green-bg); }
.pu-badge.pending { color:var(--text-muted); background:var(--hover-medium); }
.pu-desc { font-size:11px; line-height:1.5; color:var(--text-secondary); margin:0 0 9px; }
.pu-stats { display:flex; gap:24px; }
.pu-stat { display:flex; flex-direction:column; gap:2px; }
.pu-stat-label { font-family:var(--font-mono); font-size:8px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--text-muted); }
.pu-stat-val { font-family:var(--font-mono); font-size:14px; font-weight:700; color:var(--text); line-height:1.05; }
.pu-stat-val.green { color:var(--green); }
.pu-stat-val.amber { color:#d97706; }
.pu-stat-val.red { color:var(--red); }
.pu-stat-sub { font-family:var(--font-mono); font-size:8px; color:var(--text-muted); }
.pu-foot { margin-top:auto; padding-top:14px; display:flex; gap:8px; }
.pu-empty { font-size:11px; color:var(--text-muted); padding:12px 0 16px; line-height:1.5; }
@media (max-width:760px) {
  .pu-grid { grid-template-columns:1fr; }
  .pu-col + .pu-col { border-left:none; border-top:1px solid var(--border-card); }
}

/* ── Rumors (token detail, below the chart) — reuses the Activity Feed card (.tdc-78 etc.) ── */
.td-rumors { margin-top: 14px; }
.td-rumors-titlerow { display: flex; align-items: center; gap: 6px; }
.td-rumors-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
/* Rumor stage badges reuse the .cs-cat-badge pill shape; only the colors differ. */
.cs-cat-badge.st-open { background: rgba(217, 70, 239, 0.14); color: #d946ef; }
.cs-cat-badge.st-confirmed { background: rgba(22, 163, 74, 0.14); color: #16a34a; }
.cs-cat-badge.st-busted { background: rgba(234, 88, 12, 0.14); color: #ea580c; }

/* ── About card body: Description + Team. Replaces a non-responsive inline grid
   (was display:grid 1.4fr/1fr with no mobile handling → team names truncated on
   phones). Stacks on mobile and turns the left divider into a top border. ── */
.td-about-body { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.td-about-body.has-team { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 768px) {
  .td-about-body.has-team { grid-template-columns: 1fr; }
  .td-about-body .tdc-146 { border-left: none; padding-left: 0; border-top: 1px solid var(--gray-100); padding-top: 16px; }
}
