/* ═══ TPI PULSE DESIGN SYSTEM ═══
   Light ("day") is the default. html.night switches to the dark palette. Every page shares these tokens;
   the older class names (card, chip, filter, drawer…) are kept and re-skinned so all pages match. */
:root {
  --ink: #F3F1FF; --ink2: #E9E5FF; --glass: rgba(255,255,255,.72); --glass2: rgba(255,255,255,.95);
  --line: rgba(30,20,90,.10); --txt: #120F2E; --mut: #5E5A8A; --dim: #9895BF;
  --cy: #0596B8; --mg: #E0177F; --li: #5E9A00; --am: #D98200; --vi: #6D3BF0; --rd: #E11D48; --gr: #00A36C; --bl: #2563EB;
  --lit: #120F2E; --lit-txt: #F5F3FF; --shadow: 0 20px 50px -24px rgba(60,40,160,.35); --solid: #FFFFFF;
  --aurora: .35;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  /* legacy names used by the older page scripts, mapped onto the new palette */
  --bg: var(--ink); --card: var(--glass); --border: var(--line); --radius: 20px;
  --text-1: var(--txt); --text-2: var(--mut); --text-3: var(--mut);
  --primary: var(--vi); --primary-tint: color-mix(in srgb, var(--vi) 12%, transparent); --primary-ink: var(--vi);
  --threat-ink: var(--mg); --threat-tint: color-mix(in srgb, var(--mg) 12%, transparent); --threat-chart: var(--mg);
  --info-ink: var(--cy); --info-tint: color-mix(in srgb, var(--cy) 12%, transparent);
  --ai-ink: var(--vi); --ai-tint: color-mix(in srgb, var(--vi) 12%, transparent);
  --selected: var(--lit);
  color-scheme: light;
}
:root.night {
  --ink: #07061A; --ink2: #0E0C2A; --glass: rgba(255,255,255,.055); --glass2: rgba(255,255,255,.1);
  --line: rgba(255,255,255,.10); --txt: #F5F3FF; --mut: #9C99C9; --dim: #5F5C8C;
  --cy: #22E1FF; --mg: #FF3EA5; --li: #B6F23A; --am: #FFB627; --vi: #9D6BFF; --rd: #FF4D6D; --gr: #2EF2A6; --bl: #4D8BFF;
  --lit: #F5F3FF; --lit-txt: #0A0820; --shadow: 0 20px 60px -20px rgba(0,0,0,.7); --solid: #14112F;
  --aurora: .55;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--txt); font: 400 15px/1.5 var(--sans); padding-left: 88px; position: relative; isolation: isolate; overflow-x: hidden; }
a { color: var(--vi); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.usd { color: var(--mut); }
.muted { color: var(--mut); }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── aurora background ── */
.tp-aurora { position: fixed; inset: -20%; z-index: -1; pointer-events: none; filter: blur(70px); opacity: var(--aurora); }
.tp-aurora i { position: absolute; border-radius: 50%; display: block; }
.tp-aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 8%; top: -6%; background: radial-gradient(circle, var(--vi), transparent 65%); }
.tp-aurora i:nth-child(2) { width: 38vw; height: 38vw; right: 4%; top: 6%; background: radial-gradient(circle, var(--mg), transparent 65%); }
.tp-aurora i:nth-child(3) { width: 40vw; height: 40vw; left: 38%; top: 46%; background: radial-gradient(circle, var(--cy), transparent 65%); opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  .tp-aurora i:nth-child(1) { animation: tp-drift1 22s var(--ease) infinite alternate; }
  .tp-aurora i:nth-child(2) { animation: tp-drift2 26s var(--ease) infinite alternate; }
  .tp-aurora i:nth-child(3) { animation: tp-drift3 30s var(--ease) infinite alternate; }
  .tp-tick-track { animation: tp-scroll 70s linear infinite; }
  .tp-tick:hover .tp-tick-track, .tp-tick:focus-within .tp-tick-track { animation-play-state: paused; }
  .tp-live-dot { animation: tp-ping 1.8s ease-out infinite; }
  .tp-rise > * { animation: tp-rise .5s var(--ease) both; }
  .tp-rise > *:nth-child(2) { animation-delay: 40ms; } .tp-rise > *:nth-child(3) { animation-delay: 80ms; }
  .tp-rise > *:nth-child(4) { animation-delay: 120ms; } .tp-rise > *:nth-child(5) { animation-delay: 160ms; }
  .tp-rise > *:nth-child(6) { animation-delay: 200ms; } .tp-rise > *:nth-child(n+7) { animation-delay: 240ms; }
}
@keyframes tp-drift1 { to { transform: translate(18%, 22%) scale(1.15); } }
@keyframes tp-drift2 { to { transform: translate(-22%, 30%) scale(.9); } }
@keyframes tp-drift3 { to { transform: translate(-20%, -26%) scale(1.2); } }
@keyframes tp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tp-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gr) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes tp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── left rail (injected into <header class="gcc-header">) ── */
.gcc-header { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: 88px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 75%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow-y: auto; scrollbar-width: none; }
.gcc-header::-webkit-scrollbar { display: none; }
.tp-logo { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: conic-gradient(from 200deg, var(--cy), var(--vi), var(--mg), var(--am), var(--cy)); color: #0A0820; font-weight: 800; font-size: 14px; letter-spacing: -.04em; text-decoration: none; box-shadow: 0 0 30px -4px var(--mg); }
.tp-nav { flex: none; box-sizing: border-box; width: 66px; padding: 10px 0 8px; border-radius: 16px; display: grid; justify-items: center; gap: 5px; color: var(--mut); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; text-decoration: none; text-align: center; line-height: 1.15; transition: background .25s, color .25s, transform .25s; }
.tp-nav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-nav:hover { color: var(--txt); background: var(--glass); }
.tp-nav.on { background: var(--lit); color: var(--lit-txt); box-shadow: 0 10px 30px -10px var(--cy), inset 0 0 0 1px var(--glass2); transform: translateX(2px); }
.tp-rail-sp { flex: 1; min-height: 12px; }
.tp-mode { flex: none; cursor: pointer; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--am); background: var(--glass); border: 1px solid var(--line); padding: 0; }
.tp-mode svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.tp-mode .moon { display: block; } .tp-mode .sun { display: none; }
:root.night .tp-mode .moon { display: none; } :root.night .tp-mode .sun { display: block; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lit); color: var(--lit-txt); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 96px; }

/* ── page frame + top bar ── */
.page { position: relative; z-index: 1; min-width: 0; max-width: 1360px; margin: 0 auto; padding: 22px clamp(14px, 2.4vw, 34px) 48px; }
.tp-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tp-crumb { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.tp-crumb b { color: var(--txt); font-weight: 700; letter-spacing: .06em; }
.tp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--mut); }
.tp-live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); white-space: nowrap; }
.tp-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gr); }
.viewas { display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); white-space: nowrap; }
.viewas select { min-height: 34px; border: 0; border-radius: 999px; padding: 0 12px; font: 600 13px var(--sans); color: var(--lit-txt); background: var(--lit); cursor: pointer; max-width: 220px; }
.prof, .tp-out { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font: 600 12.5px var(--sans); white-space: nowrap; text-decoration: none; color: var(--txt); background: var(--glass); border: 1px solid var(--line); cursor: pointer; }
.prof[hidden], .tp-out[hidden] { display: none; }
.prof:hover, .tp-out:hover { border-color: color-mix(in srgb, var(--vi) 40%, var(--line)); }

/* ── market selector ── */
.tp-markets { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); width: fit-content; max-width: 100%; }
.tp-mk { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font-size: 13px; color: var(--mut); transition: all .25s; min-height: 20px; }
.tp-mk i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 3px 6px; border-radius: 6px; background: var(--glass2); color: var(--txt); border: 1px solid var(--line); }
.tp-mk:hover { color: var(--txt); }
.tp-mk.on { background: var(--lit); color: var(--lit-txt); box-shadow: 0 8px 24px -10px var(--mg); }
.tp-mk.on i { background: linear-gradient(135deg, var(--cy), var(--mg)); color: #fff; border-color: transparent; }
.tp-mk:focus-visible, .tp-pf:focus-visible, .tp-chipbtn:focus-visible { outline: 2px solid var(--cy); outline-offset: 2px; }

/* ── ticker ── */
.tp-tick { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--solid) 60%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tp-tick-track { display: flex; width: max-content; min-height: 44px; align-items: center; }
.tp-ti { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; white-space: nowrap; font-size: 13px; border-right: 1px solid var(--line); }
.tp-ti b { font-weight: 700; } .tp-ti em { font-style: normal; color: var(--mut); }
.tp-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ── hero ── */
.tp-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.tp-hero.solo { grid-template-columns: minmax(0, 1fr); }
.tp-hero-l { padding: 6px 0; display: grid; gap: 12px; align-content: center; }
.tp-kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cy); font-weight: 600; }
.tp-hero h1, .hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.015em; }
.tp-hero h1 em, .hero h1 em { font-style: italic; background: linear-gradient(90deg, var(--cy), var(--vi) 45%, var(--mg)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.tp-hero p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--mut); max-width: 60ch; }
.tp-hero p b { color: var(--txt); font-weight: 700; }
.tp-hero p .hot { color: var(--mg); }
.tp-big { position: relative; border-radius: 26px; padding: 22px 24px; overflow: hidden; background: linear-gradient(140deg, color-mix(in srgb, var(--vi) 30%, var(--ink2)), color-mix(in srgb, var(--mg) 22%, var(--ink2)) 60%, color-mix(in srgb, var(--am) 25%, var(--ink2))); border: 1px solid var(--glass2); box-shadow: var(--shadow); display: grid; align-content: space-between; min-height: 220px; }
.tp-big::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid var(--glass2); box-shadow: 0 0 0 30px color-mix(in srgb, var(--txt) 4%, transparent), 0 0 0 60px color-mix(in srgb, var(--txt) 3%, transparent); }
.tp-big span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--txt) 75%, transparent); position: relative; z-index: 1; }
.tp-big b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 9vw, 128px); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-height: .9em; position: relative; z-index: 1; }
.tp-big small { font-size: 13px; color: color-mix(in srgb, var(--txt) 80%, transparent); position: relative; z-index: 1; }

/* ── KPI tiles ── */
.tp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.tp-kpi { --c: var(--cy); position: relative; overflow: hidden; border-radius: 20px; padding: 16px 16px 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); min-height: 118px; }
.tp-kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.tp-kpi::after { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%); }
.tp-kpi span { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); font-weight: 600; }
.tp-kpi b { display: block; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; margin: 10px 0 6px; color: var(--c); font-variant-numeric: tabular-nums; min-height: 1em; }
.tp-kpi i { font-style: normal; font-size: 12px; color: var(--mut); }
.k-cy { --c: var(--cy); } .k-gr { --c: var(--gr); } .k-rd { --c: var(--rd); } .k-mg { --c: var(--mg); } .k-am { --c: var(--am); } .k-vi { --c: var(--vi); } .k-li { --c: var(--li); }

/* ── panels ── */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr)); gap: 16px; }
.tp-grid > * { min-width: 0; }
.tp-panel { position: relative; min-width: 0; border-radius: 24px; padding: 20px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.tp-panel.feature { background: linear-gradient(160deg, color-mix(in srgb, var(--vi) 12%, var(--glass)), var(--glass) 55%); }
.tp-wide { grid-column: 1 / -1; }
.tp-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.tp-ph h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.tp-ph p { margin: 3px 0 0; font-size: 12.5px; color: var(--mut); max-width: 70ch; }
.tp-tag { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--mut); white-space: nowrap; font-weight: 600; }
.tp-chart { width: 100%; min-height: 300px; position: relative; }
.tp-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tp-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--mut); margin-bottom: 8px; }
.tp-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tp-sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.c-cy { background: var(--cy); box-shadow: 0 0 10px var(--cy); } .c-mg { background: var(--mg); box-shadow: 0 0 10px var(--mg); }
.c-am { background: var(--am); box-shadow: 0 0 10px var(--am); } .c-vi { background: var(--vi); box-shadow: 0 0 10px var(--vi); }
.c-gr { background: var(--gr); box-shadow: 0 0 10px var(--gr); } .c-rd { background: var(--rd); box-shadow: 0 0 10px var(--rd); }
.c-li { background: var(--li); box-shadow: 0 0 10px var(--li); } .c-dim { background: var(--dim); }
.tp-tip { position: fixed; pointer-events: none; z-index: 90; min-width: 160px; max-width: 300px; padding: 10px 12px; border-radius: 14px; font-size: 12px; line-height: 1.45; color: var(--txt); background: color-mix(in srgb, var(--solid) 94%, transparent); border: 1px solid var(--line); box-shadow: 0 16px 40px -12px rgba(20,10,60,.45); backdrop-filter: blur(10px); opacity: 0; transition: opacity .12s; }
.tp-tip.show { opacity: 1; }
.tp-tip .k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin-bottom: 2px; }
.tp-tip .v { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.ax { font: 500 10.5px var(--mono); fill: var(--mut); }
.axl { font: 600 10.5px var(--sans); fill: var(--mut); letter-spacing: .08em; text-transform: uppercase; }
.oplbl { font: 600 12px var(--sans); fill: var(--txt); }
.gridl { stroke: var(--line); }

/* ── timeline ── */
.tp-tl { list-style: none; margin: 0; padding: 0 0 0 4px; max-height: 480px; overflow: auto; position: relative; }
.tp-tl li { position: relative; }
.tp-tl li > button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 10px 8px 10px 18px; border-radius: 12px; }
.tp-tl li > button:hover { background: var(--glass); }
.tp-tl li > button:focus-visible { outline: 2px solid var(--cy); }
.tp-tl li::before { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tp-tl .tp-dot { position: absolute; left: 0; top: 17px; box-shadow: 0 0 12px currentColor; }
.tp-tl .when { font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; padding-top: 3px; letter-spacing: .04em; text-transform: uppercase; }
.tp-tl .t { font-size: 14px; } .tp-tl .t b { font-weight: 700; }
.tp-tl .d { font-size: 12px; color: var(--mut); margin-top: 2px; }
.tp-badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; white-space: nowrap; }

/* ── heatmap ── */
.tp-heat { display: grid; gap: 5px; font-size: 12px; overflow-x: auto; }
.tp-heat .h { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); padding: 4px 2px; text-align: center; align-self: end; font-weight: 600; }
.tp-heat .r { font-weight: 700; padding: 0 8px 0 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12.5px; }
.tp-heat .r small { font-weight: 500; color: var(--mut); }
.tp-heat .c { border-radius: 12px; min-height: 50px; display: grid; place-items: center; text-align: center; padding: 4px; font-variant-numeric: tabular-nums; transition: transform .2s; }
.tp-heat .c:hover { transform: scale(1.04); }
.tp-heat .c b { font-size: 16px; font-weight: 700; display: block; } .tp-heat .c small { font-size: 10.5px; opacity: .85; }
.tp-heat .c.na { background: transparent; border: 1px dashed var(--line); color: var(--dim); }
.tp-heat .mine { outline: 2px solid var(--txt); outline-offset: 1px; }
.tp-scale { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--mut); margin-top: 12px; }
.tp-scale i { flex: 1; max-width: 240px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--cy), var(--glass2), var(--mg)); border: 1px solid var(--line); }

/* ── portfolio + controls ── */
.tp-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.tp-pfs { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-pf { all: unset; cursor: pointer; flex: none; display: grid; gap: 6px; padding: 14px 16px; min-width: 120px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); color: var(--mut); font-size: 13px; font-weight: 600; transition: all .25s; }
.tp-pf small { font-weight: 500; font-size: 11.5px; opacity: .85; }
.tp-pf svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tp-pf:hover { color: var(--txt); }
.tp-pf.on { color: #fff; background: linear-gradient(135deg, var(--cy), var(--vi)); border-color: transparent; box-shadow: 0 12px 30px -12px var(--cy); }
.tp-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mut); cursor: pointer; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.tp-switch input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--ink2); border: 1px solid var(--line); position: relative; cursor: pointer; margin: 0; transition: background .25s; }
.tp-switch input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--mut); transition: transform .25s, background .25s; }
.tp-switch input:checked { background: color-mix(in srgb, var(--mg) 30%, transparent); }
.tp-switch input:checked::after { transform: translateX(14px); background: var(--mg); }
.tp-chips { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); flex-wrap: wrap; }
.tp-chipbtn { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.tp-chipbtn.on { background: var(--lit); color: var(--lit-txt); }

/* ── spotlight cards ── */
.tp-spot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tp-sp { --c: var(--cy); border-radius: 20px; padding: 16px 18px; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 18%, transparent), var(--glass) 70%); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); min-height: 128px; display: grid; gap: 4px; align-content: start; }
.tp-sp .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); font-weight: 700; }
.tp-sp .v { font-family: var(--serif); font-size: 40px; line-height: 1.05; }
.tp-sp .s { font-size: 12.5px; color: var(--mut); }
.tp-sp .s b { color: var(--txt); }

/* ── table ── */
.tp-tablebox { max-height: 560px; overflow: auto; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--solid) 40%, transparent); }
.tp-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tp-table th { position: sticky; top: 0; z-index: 1; text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); font-weight: 700; padding: 12px; background: var(--ink2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tp-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tp-table tbody tr { transition: background .2s; cursor: pointer; }
.tp-table tbody tr:hover { background: var(--glass); }
.tp-table tr.mine td { background: color-mix(in srgb, var(--vi) 8%, transparent); }
.tp-table .num { text-align: right; }
.tp-table td.usd { font-family: var(--serif); font-size: 19px; color: var(--cy); text-align: right; white-space: nowrap; }
.tp-table td.plan { font-weight: 700; }
.tp-table td.dim { color: var(--mut); font-size: 12px; }
@media (max-width: 760px) { .tp-hide-sm { display: none; } }

/* ── loyalty wallet ── */
.tp-wallet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.tp-lcard { display: grid; gap: 10px; align-content: start; }
.tp-cc { all: unset; box-sizing: border-box; cursor: pointer; position: relative; aspect-ratio: 1.6; border-radius: 20px; padding: 18px; overflow: hidden; color: #fff; display: grid; align-content: space-between; box-shadow: 0 24px 50px -24px rgba(30,10,80,.7); transition: transform .35s var(--ease); }
.tp-cc:hover { transform: translateY(-4px) rotate(-1deg); }
.tp-cc:focus-visible { outline: 3px solid var(--cy); outline-offset: 3px; }
.tp-cc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.35), transparent 40%), repeating-linear-gradient(120deg, rgba(255,255,255,.06) 0 2px, transparent 2px 14px); }
.tp-cc > * { position: relative; }
.tp-cc .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tp-cc .nm { font-family: var(--serif); font-size: 28px; line-height: 1; }
.tp-cc .op { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-top: 6px; }
.tp-cc .chipc { flex: none; width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #ffe7a3, #c8962c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.tp-cc .bot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; gap: 10px; }
.tp-cc .bot b { display: block; font-size: 24px; font-family: var(--serif); font-weight: 400; }
.tp-cc .tiers { font-size: 11px; letter-spacing: .06em; opacity: .95; text-align: right; }
.tp-cc .vflag { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: rgba(0,0,0,.28); }
.tp-ldet { border-radius: 16px; padding: 12px 14px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; display: grid; gap: 6px; margin: 0; }
.tp-ldet div { display: grid; grid-template-columns: 82px 1fr; gap: 8px; } .tp-ldet dt { color: var(--mut); } .tp-ldet dd { margin: 0; }
.tp-ldet .chg { display: block; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--am) 14%, transparent); color: var(--txt); }
.tp-ldet .chg b { color: var(--am); }
.tp-ldet .chg.quiet { background: transparent; color: var(--mut); padding: 0; }

/* ── promo cards ── */
.tp-promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.tp-promo { --c: var(--mg); border-radius: 18px; padding: 14px 16px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; position: relative; overflow: hidden; }
.tp-promo::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.tp-promo .who { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.tp-promo .ttl { font-family: var(--serif); font-size: 21px; line-height: 1.12; }

.tp-foot { font-size: 11.5px; color: var(--mut); display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.tp-foot strong { color: var(--txt); }
.tp-sec { margin-top: 18px; }

/* ═══ SHARED COMPONENTS (used by every page, including the older ones) ═══ */
.hero { margin-bottom: 8px; }
.hero h1 { font-size: clamp(30px, 3.8vw, 50px); margin: 0 0 8px; }
.eyebrow { font: 600 12px var(--sans); color: var(--cy); text-transform: uppercase; letter-spacing: .18em; margin-bottom: 8px; }
.stamp { font: 400 12px var(--mono); color: var(--mut); }
.checked, .tp-hero .checked { font: 400 12px var(--mono); color: var(--mut); margin-top: 4px; line-height: 1.7; }
.checked summary { cursor: pointer; list-style: none; }
.checked summary::-webkit-details-marker { display: none; }
.checked .ck-more { text-decoration: underline; margin-left: 4px; }
.checked .ck-list { margin-top: 4px; }
/* True price: a matrix on wide screens, one ranked list per customer type on narrow ones */
.vp-narrow { display: none; }
.vp-rank { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-top: 10px; background: color-mix(in srgb, var(--solid) 40%, transparent); }
.vp-rank h3 { margin: 0 0 6px; font-size: 14px; }
.vp-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.vp-row:first-of-type { border-top: 0; }
.vp-row .op { font-weight: 700; }
.vp-row .px { font-family: var(--serif); font-size: 18px; text-align: right; white-space: nowrap; }
.vp-row .sub { grid-column: 1 / -1; color: var(--mut); font-size: 12px; }
.vp-row.mine { background: color-mix(in srgb, var(--vi) 8%, transparent); margin: 0 -8px; padding: 8px; border-radius: 10px; }
@media (max-width: 980px) { .vp-wide { display: none; } .vp-narrow { display: block; } }
.checked .ck-l { font-weight: 600; }
.checked .ck { white-space: nowrap; }
.checked .ck.late { color: #B54708; }
.checked .ck.manual, .checked .ck.none { opacity: .75; }
.hint { font-size: 13px; color: var(--mut); margin: 6px 0 0; }
.card { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 20px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .25s var(--ease), box-shadow .25s var(--ease); color: var(--txt); }
a.card:hover, .card.lift:hover { transform: translateY(-3px); }
.grid { display: grid; gap: 16px; }
.grid > *, .feed > * { min-width: 0; }
.kpis { grid-template-columns: repeat(4, 1fr); }
.kpi { position: relative; overflow: hidden; min-height: 124px; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cy); box-shadow: 0 0 18px var(--cy); }
.kpis > .kpi:nth-child(2)::before { background: var(--mg); box-shadow: 0 0 18px var(--mg); }
.kpis > .kpi:nth-child(3)::before { background: var(--am); box-shadow: 0 0 18px var(--am); }
.kpis > .kpi:nth-child(4)::before { background: var(--vi); box-shadow: 0 0 18px var(--vi); }
.kpi .v { font: 400 44px var(--serif); line-height: 1.05; font-variant-numeric: tabular-nums; margin: 6px 0; }
.kpi .l { font-size: 12px; color: var(--mut); }
.kpi .l:first-child { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: 11.5px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 11px; color: var(--mut); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.sec { margin-top: 28px; }
.sec > h2, .h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; letter-spacing: -.01em; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--glass2); border: 1px solid var(--line); color: var(--mut); white-space: nowrap; }
.chip.threat { background: color-mix(in srgb, var(--mg) 12%, transparent); color: var(--mg); border-color: color-mix(in srgb, var(--mg) 30%, transparent); }
.chip.ok { background: color-mix(in srgb, var(--gr) 12%, transparent); color: var(--gr); border-color: color-mix(in srgb, var(--gr) 30%, transparent); }
.chip.info { background: color-mix(in srgb, var(--cy) 12%, transparent); color: var(--cy); border-color: color-mix(in srgb, var(--cy) 30%, transparent); }
.chip.ai { background: color-mix(in srgb, var(--vi) 12%, transparent); color: var(--vi); border-color: color-mix(in srgb, var(--vi) 30%, transparent); }
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 14px; }
.filters .grp { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 4px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.filters .gl { font-size: 11px; color: var(--mut); font-weight: 700; margin: 0 6px 0 8px; text-transform: uppercase; letter-spacing: .08em; }
.filter { min-height: 36px; padding: 0 14px; border: 0; background: transparent; border-radius: 14px; font: 600 13px var(--sans); color: var(--mut); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.filter:hover { color: var(--txt); }
.filter[aria-pressed="true"] { background: var(--lit); color: var(--lit-txt); box-shadow: 0 8px 24px -12px var(--mg); }
.btn { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--vi), var(--mg)); color: #fff; font: 700 14px var(--sans); cursor: pointer; box-shadow: 0 12px 30px -14px var(--mg); }
.inp { min-height: 42px; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; font: 500 14px var(--sans); color: var(--txt); background: var(--glass2); width: 100%; }
select.inp { cursor: pointer; }
.filters .grp .inp { width: auto; min-width: 150px; border: 0; }
.filters .grp[style*="flex"] .inp { width: 100%; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
mark { background: color-mix(in srgb, var(--am) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* loading, empty, error */
.skel { border-radius: 20px; background: linear-gradient(90deg, var(--glass) 25%, var(--glass2) 50%, var(--glass) 75%); background-size: 200% 100%; animation: sk 1.2s linear infinite; border: 1px solid var(--line); }
@keyframes sk { to { background-position: -200% 0; } }
.empty { border: 1px dashed color-mix(in srgb, var(--vi) 30%, var(--line)); border-radius: 20px; padding: 28px 20px; text-align: center; background: var(--glass); color: var(--mut); }
.empty-t { font-weight: 700; color: var(--txt); margin-bottom: 4px; }
.empty p { margin: 4px 0; }
.empty-n { font-size: 13px; color: var(--mut); }
.empty.err { border-color: color-mix(in srgb, var(--rd) 45%, transparent); background: color-mix(in srgb, var(--rd) 6%, var(--glass)); }
.sample { display: inline-block; font: 600 11px var(--mono); padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--am) 18%, transparent); color: var(--am); }
.notice { border-color: color-mix(in srgb, var(--am) 40%, transparent); margin-bottom: 16px; }

/* detail panel */
.overlay { position: fixed; inset: 0; background: rgba(18,15,46,.35); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); z-index: 60; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--solid); color: var(--txt); z-index: 70; transform: translateX(105%); transition: transform .3s var(--ease); overflow-y: auto; padding: 26px; box-shadow: -20px 0 60px -20px rgba(40,20,120,.35); border-left: 1px solid var(--line); }
.drawer.open { transform: none; }
.drawer h3 { margin: 10px 0 4px; font: 400 30px/1.1 var(--serif); }
.drawer h4 { margin: 18px 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--mut); }
.drawer .x { float: right; min-height: 40px; min-width: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); color: var(--txt); font-size: 20px; cursor: pointer; }
.opt { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 8px 0; background: var(--glass); }
.opt b { display: block; color: var(--vi); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.ev { font-size: 13px; font-weight: 600; }
.ev a, a.ev { color: var(--vi); }

/* older page parts */
.top3 { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.two { grid-template-columns: 1fr 1fr; }
.two-wide { grid-template-columns: 2fr 1fr; }
.cards3 { grid-template-columns: repeat(3, 1fr); }
.move { display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.move.threat { box-shadow: inset 4px 0 0 var(--mg), var(--shadow); }
.move.own { box-shadow: inset 4px 0 0 var(--vi), var(--shadow); }
.move .who, .who { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.move .what, .what { font-size: 14px; color: var(--mut); }
.move .meta, .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.feed { display: grid; gap: 10px; }
.feed .move { flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px 16px; }
.move, .idea, .card { overflow-wrap: anywhere; }
.idea { display: flex; flex-direction: column; gap: 8px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.idea:hover { transform: translateY(-3px); }
.idea-t { font-weight: 400; font-family: var(--serif); font-size: 23px; line-height: 1.12; }
.ribbon { background: color-mix(in srgb, var(--vi) 10%, var(--glass)); color: var(--vi); border: 1px solid color-mix(in srgb, var(--vi) 25%, transparent); border-radius: 999px; padding: 8px 16px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ribbon.quiet { background: var(--glass); color: var(--mut); border-color: var(--line); }
.idea-link { border: 0; cursor: pointer; font-family: inherit; min-height: 44px; }
.linkb { background: none; border: 0; padding: 0; color: var(--vi); font: 600 14px var(--sans); cursor: pointer; text-align: left; text-decoration: underline; min-height: 32px; }
.pl { padding-left: 18px; margin: 10px 0; }
.pl li { margin: 6px 0; }
.bars { display: grid; gap: 6px; }
.bar-r { display: grid; grid-template-columns: 150px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; }
.bar { height: 8px; background: var(--ink2); border-radius: 99px; overflow: hidden; display: block; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cy), var(--vi)); border-radius: 99px; }
.rb { display: grid; grid-template-columns: 1fr 64px; gap: 8px; align-items: center; min-width: 150px; }
.rb .bar { height: 10px; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--glass); }
tr.mine td { background: color-mix(in srgb, var(--vi) 8%, transparent); }
.tl { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 18px; display: grid; gap: 14px; }
.tl .item { position: relative; }
.tl .item::before { content: ''; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--vi); box-shadow: 0 0 10px var(--vi); }
.tl .mo { font: 600 11px var(--sans); color: var(--cy); text-transform: uppercase; letter-spacing: .12em; margin: 6px 0 -6px; }
.fm td, .fm th { text-align: center; }
.fm td:first-child, .fm th:first-child { text-align: left; white-space: nowrap; }
.tick { color: var(--gr); font-weight: 700; }
.rule { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }
.rule label { font-size: 12px; color: var(--mut); font-weight: 600; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; color: var(--mut); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.pt { cursor: pointer; }
.sortb { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; min-height: 36px; text-transform: inherit; letter-spacing: inherit; }
.heat th, .heat td { padding: 6px 4px; text-align: center; font-size: 12px; min-width: 38px; }
.heat th[scope=row] { text-align: left; white-space: nowrap; padding-left: 8px; position: sticky; left: 0; background: var(--solid); }
.heat .wk { font: 500 11px var(--mono); text-transform: none; letter-spacing: 0; }
.heat .wk.rel { background: color-mix(in srgb, var(--vi) 10%, transparent); }
.heat td.hc { font: 500 12px var(--mono); border: 2px solid transparent; border-radius: 8px; }
.heat td.nat { outline: 2px solid var(--am); outline-offset: -2px; }
#map { aspect-ratio: 800 / 380; }
#map > .skel { height: 100% !important; }

/* sign-in */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(440px, 100%); padding: 30px; }
.login-card h1 { font: 400 40px/1.05 var(--serif); margin: 14px 0 6px; }
.login-card label { display: block; font-size: 12px; font-weight: 700; color: var(--mut); margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .08em; }
.login-card .inp { width: 100%; }
.login-card .btn { width: 100%; margin-top: 22px; }
.login-card .btn[disabled] { opacity: .6; cursor: wait; }
.login-err { color: var(--rd); background: color-mix(in srgb, var(--rd) 10%, transparent); border-radius: 12px; padding: 10px 14px; margin-top: 16px; font-size: 14px; }
.login-err[hidden] { display: none; }
body.public { padding-left: 0; }

/* ── responsive ── */
@media (max-width: 1100px) { .tp-hero { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } .top3, .two, .two-wide, .cards3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  body { padding-left: 0; }
  .gcc-header { position: sticky; top: 0; bottom: auto; width: 100%; height: auto; flex-direction: row; justify-content: flex-start; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
  .tp-logo { margin: 0 6px 0 0; width: 38px; height: 38px; }
  .tp-rail-sp { display: none; }
  .tp-nav { width: 60px; }
  .tp-mode { width: 40px; height: 40px; margin-left: 4px; }
  .skip:focus { left: 8px; }
}
@media (max-width: 600px) {
  .kpis { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .viewas span { display: none; }
  .viewas { padding-left: 4px; }
  .viewas select { max-width: 58vw; }
  .bar-r { grid-template-columns: 110px 1fr 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  a.card:hover, .card.lift:hover, .tp-cc:hover { transform: none; }
}
.heat th[scope=row] { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--txt); }
