/* TCC Wallet Watch — story pieces on top of styles.css + editorial.css (brand kit unchanged).
   Colour meaning is the same in every chart:
     --series-a #1baf7a  the 16 Bybit-funded wallets
     --series-a at 55%    the new wallets they passed TCC to
     --series-b #3987e5  the Relay-funded second group
     --text-4 grey        TCC that left the group
   series-a / series-b were validated with the dataviz validate_palette script on #15181A / #090B0C (SAFU Watch). */

:root { --new: rgba(27, 175, 122, .55); --left: #57656E; --buy: #F5B445; }
.key-a { background: var(--series-a); }
.key-b { background: var(--series-b); }
.key-new { background: var(--new); }
.key-left { background: var(--left); }
.key-buy { width: 2px !important; height: 12px !important; border-radius: 0 !important; background: var(--buy); }

.hero-meta .chip a { color: var(--text); }
.hero-meta .chip a:hover { color: var(--green-soft); }
.nav-cta { margin-left: 0; }

/* ── KPI cells ── */
#kpis { margin-top: 8px; }
.kpi small a { color: var(--green-soft); }

/* ── split bar ── */
.split-panel { margin-top: 1px; padding-bottom: 20px; }
.split-panel .panel-bar { margin-bottom: 14px; }
.pad { padding: 18px 20px 0; }
.split-bar { display: flex; height: 44px; margin: 0 20px; background: rgba(255, 255, 255, .03); box-shadow: 0 0 0 1px var(--hair); }
.split-bar span { display: flex; align-items: center; min-width: 0; padding: 0 10px; overflow: hidden; color: #090B0C; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.split-bar .seg-a { background: var(--series-a); }
.split-bar .seg-new { background: var(--new); }
.split-bar .seg-left { background: var(--left); color: #FFFFFF; }
.split-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 14px 20px 0; }
.split-legend div { padding: 10px 0 0; border-top: 1px solid var(--hair); }
.split-legend b { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.split-legend b .key { align-self: center; }
.split-legend span { display: block; margin-top: 4px; color: var(--text-3); font-size: 12.5px; line-height: 1.45; }

/* ── setup steps ── */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; list-style: none; }
.steps li { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; background: rgba(255, 255, 255, .012); box-shadow: 0 0 0 1px var(--hair); }
.steps time { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.steps time small { color: var(--text-3); font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.steps .off { color: var(--amber); font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.steps p { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.steps a { margin-top: auto; color: var(--green-soft); font-size: 12px; }
.steps li.hl { box-shadow: 0 0 0 1px rgba(27, 175, 122, .5); }

/* ── trail chart ── */
#trailChart { position: relative; min-height: 300px; }
.chart-svg .row-label { fill: var(--text-3); font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.chart-svg .row-line { stroke: var(--line); stroke-width: 1; }
.chart-svg .fund-a { fill: var(--series-a); fill-opacity: .85; stroke: var(--panel); stroke-width: 1.5; cursor: pointer; }
.chart-svg .fund-b { fill: var(--series-b); fill-opacity: .85; stroke: var(--panel); stroke-width: 1.5; cursor: pointer; }
.chart-svg .fund-a.on, .chart-svg .fund-b.on { stroke: #FFFFFF; stroke-width: 2; }
.chart-svg .buy { stroke: var(--buy); stroke-width: 2; }
.chart-svg .buy-label { fill: var(--text-2); font-family: var(--font); font-size: 11px; }
.chart-svg .event { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-svg .event-label { fill: var(--text); font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chart-svg .axis line { stroke: var(--line); }
.chart-svg .axis text { fill: var(--text-3); font-family: var(--font); font-size: 10.5px; }
.chart-svg .window { fill: rgba(27, 175, 122, .06); }
.fund-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 1px; padding: 1px; }
.fund-strip div { padding: 14px 16px; background: rgba(255, 255, 255, .012); box-shadow: 0 0 0 1px var(--hair); }
.fund-strip b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.fund-strip span { display: block; margin-top: 4px; color: var(--text-3); font-size: 12px; line-height: 1.45; }
.fund-strip a { color: var(--green-soft); }

/* ── moves feed ── */
.feed { margin: 0; padding: 0; list-style: none; }
.feed li { display: grid; grid-template-columns: 148px minmax(160px, 1fr) 170px 84px minmax(220px, 1.4fr); align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.linkish { padding: 0; color: var(--green-soft); background: none; border: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.feed li:hover { background: rgba(255, 255, 255, .02); }
.feed .t { color: var(--text-3); font-variant-numeric: tabular-nums; }
.feed .t b { color: var(--text); font-weight: 600; }
.feed .w { min-width: 0; }
.feed .w button { padding: 0; color: var(--text); background: none; border: 0; font-family: var(--font-mono); font-size: 12.5px; }
.feed .w button:hover { color: var(--green-soft); }
.feed .w small { display: block; color: var(--text-3); font-size: 11px; }
.wlink { color: var(--text); font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.wlink:hover { color: var(--green-soft); text-decoration: underline; text-underline-offset: 3px; }
.feed .w .linkish, .lookup-msg a { color: var(--green-soft); }
.feed .w .linkish { font-size: 11px; }
.feed .amt { color: var(--text); font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -.02em; text-align: right; }
.feed .to { min-width: 0; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .to a, .feed .tx a { color: var(--green-soft); }
.feed .tx { text-align: right; font-size: 12px; }
.feed li.fresh { animation: fresh 2.4s ease-out; }
.feed .empty { display: block; padding: 18px 20px; }
.new-tag { margin-left: 6px; padding: 1px 5px; color: #090B0C; background: var(--green); border-radius: 2px; font-family: var(--font-display); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--hair); border-radius: 2px; font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--text-2); }
.act::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-4); }
.act-sold::before { background: var(--loss); }
.act-sent::before { background: var(--new); }
.act-sent_outside::before { background: var(--amber); }
.act-bought::before { background: var(--buy); }
.act-received::before { background: var(--series-a); }
.act-funded::before { background: var(--series-b); }

/* ── table ── */
#walletTable { min-width: 1180px; }
#walletTable tbody tr { cursor: pointer; }
#walletTable tbody tr:hover td { background: rgba(255, 255, 255, .025); }
#walletTable tbody tr.on td { background: rgba(0, 255, 163, .05); }
.addr-cell b { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; }
.addr-cell small, .cell-sub { display: block; margin-top: 2px; color: var(--text-3); font-size: 11px; }
.addr-cell a, .cell-sub a { color: var(--green-soft); }
.grp-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.grp-tag i { width: 8px; height: 8px; border-radius: 2px; }
.st-sent_part::before { background: var(--amber); }
.st-moved_all::before, .st-selling::before, .st-sold_all::before { background: var(--loss); }
.st-moved_all, .st-selling, .st-sold_all { color: #FFD6D2; border-color: rgba(255, 138, 128, .35); }
.st-parked::before { background: var(--new); }
.st-passed_on::before, .st-empty::before { background: var(--text-4); }

/* ── wallet card ── */
.wallet-card .ev { grid-template-columns: 140px 190px minmax(0, 1fr) auto; align-items: center; }
.wallet-card .ev .amt { color: var(--text); font-weight: 600; text-align: right; }
.wallet-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lookup-msg { color: var(--text-3); font-size: 13px; line-height: 1.55; }

@media (max-width: 1120px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed li { grid-template-columns: 130px minmax(0, 1fr) 160px 80px; }
  .feed .to { grid-column: 2 / -1; white-space: normal; }
}
@media (max-width: 760px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-legend { grid-template-columns: minmax(0, 1fr); }
  .fund-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t amt" "w act" "to to"; gap: 6px 12px; padding: 12px 16px; }
  .feed .t { grid-area: t; }
  .feed .w { grid-area: w; }
  .feed .act { grid-area: act; justify-self: end; }
  .feed .amt { grid-area: amt; }
  .feed .to { grid-area: to; }
  .nav-cta, .nav-divider, .nav-product { display: none; }
  .live-pill { min-width: 0; max-width: 58vw; overflow: hidden; text-overflow: ellipsis; }
  .wallet-card .ev { grid-template-columns: minmax(0, 1fr) auto; }
  .wallet-card .ev span:first-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .split-bar span { font-size: 0; padding: 0; }
}
