/* Déjà vu › Signals (pages/dejavu-signals.js): his numbers since 2009 as small charts in groups, with who was in the
   White House tinted behind them, the episodes as ticks along the bottom and a crosshair that reads every chart at
   once; the big chart a card grows into; He changed, Who's cooling and whom he attacks. Each chart's color is --c (the
   signal's own). Motion is transform and opacity only, and stands still under Reduce Motion. */

/* One column that never grows past the page: a long row of buttons scrolls inside itself instead of widening it. */
.sv { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.sv > .dj-note { margin: 0; }

/* ---- The intro and the episode key ---- */
.sv-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); gap: 18px 28px; align-items: end; padding: 20px 22px; box-shadow: var(--dv-glow); }
.sv-hero h2 { margin: 6px 0 8px; font: 850 clamp(24px, 2.6vw, 34px)/1.02 var(--display); font-stretch: 80%; text-wrap: balance; }
.sv-hero p:not(.eyebrow) { margin: 0; max-width: 88ch; color: var(--ink-2, var(--ink)); font-size: 14.5px; line-height: 1.6; }
.sv-key { padding: 0 5px; font-weight: 650; }
.sv-key.D { background: color-mix(in srgb, var(--blue) 16%, transparent); }
.sv-key.R { background: color-mix(in srgb, var(--red) 14%, transparent); }
.sv-legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-content: flex-end; }
.sv-legend .rchip { border-radius: 0; }
.sv-legend .rchip[aria-pressed="false"] { opacity: .5; background: var(--panel); border-style: dashed; }
.sv-legend .rchip[aria-pressed="false"] > i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
@media (max-width: 860px) {
  .sv-hero { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .sv-legend { justify-content: flex-start; }
}

/* ---- The toolbar: the years and the search, frosted once it sticks under the top bar ---- */
.sv-sentinel { display: block; height: 0; }
.sv-bar {
  position: sticky; top: calc(var(--bar-h) + 8px); z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 0; padding: 6px; border-radius: 999px; border: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s, transform .45s var(--spring);
}
.sv-bar.stuck {
  background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-color: var(--glass-line); box-shadow: 0 14px 30px -24px var(--sh-3, rgba(0, 0, 0, .4)); transform: scale(.985);
}
.sv-bar .seg { background: var(--panel); box-shadow: var(--shadow); flex: 0 1 auto; }
.sv-search { flex: 1 1 240px; max-width: 460px; margin-left: auto; }
.sv-showing { margin: -8px 0 0; min-height: 0; font-size: 13px; color: var(--muted); }
.sv-showing:empty { display: none; }
@media (max-width: 640px) {
  .sv-bar { border-radius: 20px; top: calc(var(--bar-h) + 6px); }
  .sv-bar .seg { max-width: 100%; }
  .sv-search { flex-basis: 100%; max-width: none; margin-left: 0; }
}

/* ---- Groups of small charts ---- */
/* Positioned, so the tooltip it holds sits by the pointer. */
.sv-groups { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--gap) * 1.4); }
.sv-group[hidden] { display: none; }
.sv-gh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sv-gh h3 { margin: 0; font: 800 19px/1.15 var(--display); font-stretch: 86%; }
.sv-gn { font: 600 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sv-gnote { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.sv-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr)); gap: 12px; }
.sv-empty { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.sv-empty .ic { flex: none; margin-top: 3px; }
.sv-empty b { color: var(--ink); font-weight: 650; }
.sv-empty span span { border-bottom: 1px dotted color-mix(in srgb, var(--muted) 60%, transparent); cursor: help; }
.sv-group.none .sv-gh { opacity: .75; }
.sv-wait { grid-column: 1 / -1; margin: 6px 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.sv-more { margin-top: 12px; }

.sv-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 13px 10px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--dv-glow);
  transition: transform .4s var(--spring), border-color .25s, box-shadow .3s;
}
.sv-card[hidden] { display: none; }
.sv-card::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--spring); }
@media (hover: hover) {
  .sv-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: var(--dv-glow), 0 18px 30px -24px var(--c); }
  .sv-card:hover::after { transform: none; }
}
.sv-card:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.sv-card:active { transform: scale(.985); }
.sv-card.is-empty { cursor: default; opacity: .7; }
.sv-card.is-empty:hover { transform: none; box-shadow: var(--dv-glow); border-color: var(--line); }
.sv-ch { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sv-ch h4 { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; font: 750 14.5px/1.2 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-ch h4 i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.sv-low { margin-left: auto; flex: none; font: 600 10px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sv-now, .sv-at { margin: 0; min-height: 2.6em; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.sv-now b, .sv-at b { color: var(--ink); font-weight: 700; }
.sv-at { display: none; }
.sv-at span { display: block; font: 500 11px/1.3 var(--mono); }
.sv-card.at .sv-now { display: none; }
.sv-card.at .sv-at { display: block; }

.sv-plot { position: relative; height: 74px; margin-top: 2px; container-type: size; }
.sv-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Clipped at the sides only: a week past either end (and the stretched picture while a stretch zooms) ran out of the card into the next one. */
.sv-svg { clip-path: inset(-100% 0); }
.sv-band.D { fill: color-mix(in srgb, var(--blue) 9%, transparent); }
.sv-band.R { fill: color-mix(in srgb, var(--red) 9%, transparent); }
.sv-shift { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.sv-data { transform-origin: 0 0; }
.sv-area { fill: color-mix(in srgb, var(--c) 16%, transparent); }
.sv-line { fill: none; stroke: var(--c-ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sv-ticks { position: absolute; left: 0; right: 0; bottom: -9px; height: 6px; }
.sv-tick { position: absolute; top: 0; height: 6px; width: max(2px, var(--w, 0%)); margin-left: -1px; background: var(--c); opacity: .85; border-radius: 1px; }
.sv-tick[hidden] { display: none; }
.sv-change {
  position: absolute; top: -4px; bottom: 0; width: 0; border-left: 1.5px dotted var(--c-ink); pointer-events: auto;
}
.sv-change b {
  position: absolute; top: 0; left: 4px; padding: 2px 5px; white-space: nowrap; font: 700 9.5px/1 var(--mono); letter-spacing: .03em;
  color: var(--panel); background: var(--c-ink); transform-origin: left center; animation: sv-pop .5s var(--spring) .6s backwards;
}
.sv-change.down b { background: var(--muted); }
.sv-change.at-end b { left: auto; right: 4px; transform-origin: right center; }
@keyframes sv-pop { from { opacity: 0; transform: scale(.6) translateY(4px); } }
.sv-ymax {
  position: absolute; left: 0; top: 0; padding: 1px 4px; font: 600 9.5px/1.2 var(--mono); color: var(--muted); pointer-events: none;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}
.sv-years { position: relative; height: 13px; margin-top: 12px; }
.sv-years span { position: absolute; top: 0; translate: -50% 0; font: 500 9.5px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.sv-eps { display: flex; flex-wrap: wrap; gap: 4px 10px; min-height: 14px; }
.sv-ep { display: inline-flex; align-items: center; gap: 5px; font: 600 10.5px/1.2 var(--mono); color: var(--muted); }
.sv-ep i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
/* Where a chart's data comes from, with a link (TPK Live's charts carry one; the app's own lines have none). */
.sv-credit { margin-left: auto; font: 500 10px/1.2 var(--mono); color: var(--muted); text-decoration: none; }
.sv-credit:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.sv-big-source .sv-credit, .sv-chg-unit .sv-credit { margin-left: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* The crosshair: a line and a dot on every chart on screen, for the week under the pointer. */
.sv-cross, .sv-dot { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .15s; }
.sv-cross { bottom: -10px; width: 1px; background: color-mix(in srgb, var(--ink) 55%, transparent); }
.sv-dot { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 2.5px var(--c-ink), 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.sv-dot[hidden] { display: none; }
.sv-card.at .sv-cross, .sv-card.at .sv-dot:not([hidden]) { opacity: 1; }

/* The tooltip: the episode under the pointer, or one day on the big chart. */
.sv-tip { display: grid; gap: 3px; max-width: 280px; font-size: 12.5px; line-height: 1.35; }
.sv-tip b { font-weight: 750; }
.sv-tip small { font: 500 10.5px/1.3 var(--mono); color: var(--muted); }
.sv-tip > b:first-child { padding-left: 9px; border-left: 3px solid var(--c, var(--ink)); }
.sv-tip-v { font-weight: 700; font-size: 14px; }
.sv-tip-rec { color: var(--red-ink, var(--red)); font-weight: 650; }
.sv-tip-ep { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.sv-tip-ep i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* ---- The big chart: a card grows into it ---- */
html.sv-open { overflow: hidden; }
.sv-big-wrap { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; }
.sv-scrim { position: absolute; inset: 0; background: rgba(4, 8, 16, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
.sv-big-wrap.open .sv-scrim { opacity: 1; }
.sv-big {
  position: relative; width: min(1180px, 100%); max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 20px 16px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--c);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6), var(--dv-glow);
}
.sv-big-head { display: flex; gap: 14px; align-items: flex-start; }
.sv-big-head > div { flex: 1; min-width: 0; }
.sv-big-head h2 { display: flex; align-items: center; gap: 10px; margin: 4px 0 4px; font: 850 clamp(24px, 3vw, 34px)/1 var(--display); font-stretch: 80%; }
.sv-big-head h2 i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); }
.sv-big-about { margin: 0; max-width: 90ch; color: var(--muted); font-size: 13.5px; }
.sv-big-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sv-big-span { font: 500 12px/1.2 var(--mono); color: var(--muted); }
.sv-big-chart { position: relative; min-height: 260px; }
.sv-big-wait { display: flex; align-items: center; gap: 10px; min-height: 240px; justify-content: center; color: var(--muted); }
.sv-big-svg { display: block; width: 100%; touch-action: pan-y; cursor: crosshair; user-select: none; }
.sv-b-band.D rect { fill: color-mix(in srgb, var(--blue) 8%, transparent); }
.sv-b-band.R rect { fill: color-mix(in srgb, var(--red) 8%, transparent); }
.sv-b-band text { font: 600 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; fill: var(--muted); }
.sv-b-shift { stroke: color-mix(in srgb, var(--ink) 32%, transparent); stroke-dasharray: 3 4; }
.sv-b-grid line { stroke: color-mix(in srgb, var(--ink) 9%, transparent); }
.sv-b-grid line.zero { stroke: color-mix(in srgb, var(--ink) 35%, transparent); }
.sv-b-bars { stroke: color-mix(in srgb, var(--c) 38%, transparent); fill: none; }
.sv-b-hot { stroke: var(--c-ink); fill: none; }
.sv-b-usual { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 5 4; }
.sv-b-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.sv-b-recs { fill: var(--red); }
.sv-b-eps rect { cursor: pointer; }
.sv-b-change line { stroke: var(--c-ink); stroke-width: 1.5; stroke-dasharray: 2 3; }
.sv-b-change text { font: 700 11px/1 var(--mono); fill: var(--c-ink); paint-order: stroke; stroke: var(--panel); stroke-width: 4px; }
.sv-b-axis text { font: 500 10.5px/1 var(--mono); fill: var(--muted); }
.sv-b-cross { stroke: color-mix(in srgb, var(--ink) 55%, transparent); pointer-events: none; }
.sv-big-context { position: relative; height: 54px; border-top: 1px solid var(--line); padding-top: 4px; }
.sv-ctx-svg { display: block; width: 100%; }
.sv-ctx-line { fill: none; stroke: var(--c-ink); stroke-width: 1.2; opacity: .8; }
.sv-ctx-brush .selection { fill: color-mix(in srgb, var(--c) 20%, transparent); stroke: var(--c-ink); stroke-width: 1.5; }
.sv-ctx-brush .handle { fill: var(--c-ink); }
.sv-big-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.sv-big-key .k { display: inline-flex; align-items: center; gap: 6px; }
.sv-big-key .k i { width: 14px; height: 9px; flex: none; }
.sv-big-key .k-bars i { background: color-mix(in srgb, var(--c) 38%, transparent); }
.sv-big-key .k-hot i { background: var(--c-ink); }
.sv-big-key .k-line i { height: 2px; background: var(--ink); }
.sv-big-key .k-usual i { height: 0; border-top: 2px dashed var(--muted); }
.sv-big-key .k-rec i { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--red); }
.sv-big-key .k-ep i { width: 10px; border-radius: 2px; background: var(--c); }
.sv-big-key .k-change i { width: 0; height: 12px; border-left: 2px dotted var(--c-ink); }
.sv-big-key .k-tip { margin-left: auto; font-style: italic; }
.sv-big-source { display: grid; gap: 3px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.sv-big-source p { margin: 0; }
.sv-big-source b { color: var(--ink); font-weight: 650; }
@media (max-width: 640px) {
  .sv-big-wrap { padding: 0; place-items: end stretch; }
  .sv-big { max-height: 92vh; padding: 14px 14px 12px; }
  .sv-big-key .k-tip { margin-left: 0; }
}

/* ---- The boards ---- */
.sv-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sv-board[hidden] { display: none; }
#sv-boards { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--gap) * 1.6); margin-top: calc(var(--gap) * .6); }
.sv-bh h3 { margin: 4px 0 4px; font: 850 clamp(21px, 2.2vw, 28px)/1.05 var(--display); font-stretch: 80%; }
.sv-bh p.muted { margin: 0; max-width: 92ch; font-size: 13.5px; line-height: 1.55; }

/* He changed */
.sv-chg-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.sv-chg {
  position: relative; display: grid; align-content: start; gap: 8px; padding: 14px 15px 13px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c); box-shadow: var(--dv-glow);
  transition: transform .4s var(--spring), box-shadow .3s;
}
@media (hover: hover) { .sv-chg:hover { transform: translateY(-3px); box-shadow: var(--dv-glow), 0 20px 34px -26px var(--c); } }
.sv-chg-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font: 600 11px/1 var(--mono); color: var(--muted); }
.sv-chg-kind b { padding: 4px 7px; letter-spacing: .05em; text-transform: uppercase; color: var(--panel); background: var(--red); }
.sv-chg.down .sv-chg-kind b { background: var(--blue); }
.sv-chg h4 { margin: 0; font: 800 17px/1.15 var(--display); font-stretch: 90%; }
.sv-chg-text { margin: 0; font-size: 14px; line-height: 1.5; }
.sv-cbars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; height: 92px; padding-top: 4px; }
.sv-cb { position: relative; display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; }
.sv-cb span { font: 600 9.5px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sv-cb i { align-self: end; justify-self: center; width: min(46px, 70%); height: max(2px, var(--h)); background: color-mix(in srgb, var(--c) 30%, var(--panel-2)); transform-origin: bottom; animation: sv-grow .8s var(--spring) .25s backwards; }
.sv-cb.after i, .sv-cb.now i { background: var(--c); }
.sv-cb.now i { opacity: .7; }
.sv-cb b { font: 700 13px/1.3 var(--mono); }
@keyframes sv-grow { from { transform: scaleY(0); } }
.sv-chg-unit { margin: -2px 0 0; font: 500 10.5px/1.3 var(--mono); color: var(--muted); text-align: center; }
.sv-chg-go { justify-self: start; }
.sv-rxs { display: grid; gap: 8px; }
.sv-rx { margin: 0; padding: 8px 11px; background: var(--panel-2); border-left: 3px solid color-mix(in srgb, var(--c, var(--ink)) 55%, var(--line)); font-size: 13px; line-height: 1.45; }
.sv-rx q { quotes: '“' '”'; }
.sv-rx a { color: inherit; text-decoration: none; }
.sv-rx a:hover { text-decoration: underline; text-underline-offset: 2px; }
.sv-rx cite { display: block; margin-top: 4px; font: 500 10.5px/1.2 var(--mono); font-style: normal; color: var(--muted); }

/* Who's cooling */
.sv-cool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.sv-cool { --c: #0ea5e9; display: grid; align-content: start; gap: 8px; padding: 14px 15px 13px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--dv-glow); }
.sv-cool header { display: flex; align-items: center; gap: 10px; }
.sv-cool h4 { margin: 0; flex: 1; min-width: 0; font: 800 17px/1.15 var(--display); font-stretch: 90%; }
.sv-cool-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; font: 650 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--c-ink); background: color-mix(in srgb, var(--c) 14%, transparent); }
.sv-cool-tag .ic { animation: sv-shiver 2.6s ease-in-out infinite; }
@keyframes sv-shiver { 0%, 80%, 100% { transform: none; } 84% { transform: translateX(-1.5px) rotate(-6deg); } 88% { transform: translateX(1.5px) rotate(6deg); } 92% { transform: translateX(-1px); } }
.sv-cool-line, .sv-turn, .sv-arc { margin: 0; font-size: 13.5px; line-height: 1.5; }
.sv-turn { color: var(--muted); }
.sv-arc { padding: 8px 11px; background: color-mix(in srgb, var(--warn-soft, var(--panel-2)) 70%, var(--panel)); border-left: 3px solid var(--warn); }
.sv-warm { display: block; width: 100%; height: 64px; }
.sv-warm .mid { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sv-warm .p { fill: var(--good); }
.sv-warm .a { fill: var(--red); }
.sv-warm .turn { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.sv-warm .exit { stroke: var(--warn); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sv-warm-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: -2px 0 0; font: 500 10.5px/1.3 var(--mono); color: var(--muted); }
.sv-warm-key span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 5px; vertical-align: -1px; background: currentColor; }
.sv-warm-key .p::before { background: var(--good); }
.sv-warm-key .a::before { background: var(--red); }
.sv-warm-key .m::before { background: var(--muted); }
.sv-warm-key .t::before { width: 0; border-left: 2px dashed var(--ink); background: none; }
.sv-warm-key .x::before { width: 0; border-left: 2px solid var(--warn); background: none; }
.sv-warm-key .yrs { margin-left: auto; }
.sv-warm-key .yrs::before { display: none; }

/* Whom he attacks */
#sv-targets > .seg { justify-self: start; }
.sv-tg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sv-tg-row { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--dv-glow); transition: border-color .25s; }
.sv-tg-row.open { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.sv-tg-head {
  appearance: none; display: grid; grid-template-columns: 30px minmax(0, 1.1fr) minmax(0, 1.4fr) 18px; gap: 4px 14px; align-items: center;
  width: 100%; padding: 11px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.sv-tg-head:hover .sv-tg-caret { transform: translateX(3px); color: var(--red); }
.sv-tg-rank { font: 800 20px/1 var(--display); font-stretch: 80%; color: var(--muted); }
.sv-tg-name { display: grid; gap: 3px; min-width: 0; }
.sv-tg-name b { font: 750 15px/1.2 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-tg-name small { font-size: 12px; color: var(--muted); }
.sv-tg-strip { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; min-width: 0; }
.sv-tg-strip svg { grid-column: 1 / -1; }
.sv-tg-strip small { font: 500 10px/1.2 var(--mono); color: var(--muted); }
.sv-tg-strip small:last-child { text-align: right; }
.sv-strip { display: block; width: 100%; height: 26px; }
.sv-strip rect { fill: var(--red); opacity: .8; }
.sv-tg-caret { font-size: 22px; line-height: 1; color: var(--muted); transition: transform .35s var(--spring), color .2s; }
.sv-tg-row.open .sv-tg-caret { transform: rotate(90deg); color: var(--red); }
.sv-tg-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 14px 14px 58px; --c: var(--red); }
.sv-weeks { display: block; width: 100%; height: 90px; background: var(--panel-2); }
.sv-weeks path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sv-weeks .a { stroke: var(--red); }
.sv-weeks .m { stroke: var(--muted); opacity: .7; }
.sv-weeks .p { stroke: var(--good); }
.sv-tg-more .btn { justify-self: start; }
@media (max-width: 640px) {
  .sv-tg-head { grid-template-columns: 24px minmax(0, 1fr) 16px; }
  .sv-tg-strip { grid-column: 2 / 3; grid-row: 2; }
  .sv-tg-caret { grid-row: 1 / 3; grid-column: 3; }
  .sv-tg-more { padding-left: 14px; }
}

/* Chains and modes: where they are */
.sv-chains { grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 18px 22px; padding: 18px 20px; background: var(--panel); border: 1px dashed var(--line); }
.sv-chains .card-actions { margin-top: 12px; }
.sv-chains-art { display: flex; align-items: center; justify-content: center; gap: 5px; }
.sv-chains-art i { width: 18px; height: 18px; border-radius: 50%; background: var(--red); animation: sv-chain 2.8s ease-in-out infinite; }
.sv-chains-art i:nth-of-type(2) { background: #c026d3; animation-delay: .35s; }
.sv-chains-art i:nth-of-type(3) { background: var(--blue); animation-delay: .7s; }
.sv-chains-art b { width: 16px; height: 2px; background: var(--muted); }
@keyframes sv-chain { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-6px) scale(1.15); } }
@media (max-width: 560px) { .sv-chains { grid-template-columns: minmax(0, 1fr); } .sv-chains-art { justify-content: flex-start; } }

.sv-status { margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .sv-card, .sv-card::after, .sv-chg, .sv-bar, .sv-tg-caret, .sv-scrim { transition: none; }
  .sv-change b, .sv-cb i, .sv-cool-tag .ic, .sv-chains-art i { animation: none; }
}
