/* owner: rs-swing — 強勢股波段 sub-panes (§13.5): 最強勢股排行榜 (.ld-*), 產業強度 (.in-*), 捕獲率 (.sv-cap*, .sv-cmp). */

/* ---- sub navigation ---- */
.sv-subrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.sv-subnav {
  display: flex; gap: 4px; padding: 4px; border-radius: var(--r-lg);
  background: var(--panel-2); border: 1px solid var(--border); width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.sv-subnav::-webkit-scrollbar { display: none; }
.sv-subnav button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  font: inherit; border: 0; cursor: pointer; padding: 7px 16px 6px; border-radius: 10px; white-space: nowrap;
  background: transparent; color: var(--text-2); transition: background var(--dur-1), color var(--dur-1), box-shadow var(--dur-1);
}
.sv-subnav button span { font-size: var(--fs-md); font-weight: 600; }
.sv-subnav button small { font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; }
.sv-subnav button:hover { color: var(--text); background: var(--panel-hover); }
.sv-subnav button.is-on { background: var(--panel-solid); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong), 0 6px 18px -10px var(--accent-glow); }
.sv-subnav button.is-on span { color: var(--accent-strong); }
.sv-subnav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sv-pane { display: flex; flex-direction: column; gap: var(--sv-gap); min-width: 0; }
.sv-pane[hidden] { display: none; }
.sv-h-note { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); margin-left: 6px; }

/* ---- leaderboard toolbar ---- */
.ld-bar {
  position: sticky; top: 0; z-index: 4;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px; border-radius: var(--sv-r);
  background: color-mix(in srgb, var(--panel-solid) 94%, transparent); border: 1px solid var(--border);
  box-shadow: 0 -10px 0 0 var(--bg), 0 12px 28px -18px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ld-bar__g { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.ld-bar__l { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.ld-seg button { flex: none; padding: 4px 10px; }
.ld-sel { display: inline-flex; align-items: center; gap: 6px; }
.ld-sel select {
  font: inherit; font-size: var(--fs-xs); color: var(--text); background: var(--panel-2); cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: 4px 26px 4px 10px; max-width: 170px;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) 52%, calc(100% - 9px) 52%; background-size: 4px 4px; background-repeat: no-repeat;
}
.ld-sel select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ld-status { margin-left: auto; }

/* ---- leading-industry strip ---- */
.ld-leadstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ld-strip__l { font-size: var(--fs-sm); font-weight: 650; margin-right: 4px; white-space: nowrap; }
.ld-strip__l small { font-weight: 400; color: var(--muted); font-size: var(--fs-2xs); margin-left: 4px; }
.ld-ind {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: var(--fs-sm); cursor: pointer;
  padding: 5px 10px 5px 5px; border-radius: var(--r-pill); color: var(--text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--up) 14%, transparent), transparent 70%), var(--panel-2);
  border: 1px solid color-mix(in srgb, var(--up) 28%, var(--border));
  transition: border-color var(--dur-1), transform var(--dur-1);
}
.ld-ind:hover { border-color: var(--up); transform: translateY(-1px); }
.ld-ind.is-on { border-color: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.ld-ind > b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-family: var(--font-mono); font-size: 11px; background: var(--up); color: #fff; }
.ld-ind__v { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--up); }
.ld-clear, .ld-more {
  font: inherit; font-size: var(--fs-xs); cursor: pointer; padding: 5px 11px; border-radius: var(--r-pill);
  background: transparent; color: var(--text-2); border: 1px solid var(--border-strong); white-space: nowrap;
}
.ld-clear { color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.ld-more { margin-left: auto; }
.ld-clear:hover, .ld-more:hover { color: var(--text); border-color: var(--accent); }

/* ---- leaderboard grid ---- */
.ld-card { --ld-bg: var(--panel-solid); padding: 4px 6px 8px; overflow: hidden; container-type: inline-size; container-name: ld; background: var(--panel-solid); }
.ld-head, .ld-row {
  display: grid; align-items: center; column-gap: 10px;
  grid-template-columns: 84px minmax(150px, 1.3fr) 122px 70px 58px 62px 62px 56px 62px 60px 92px minmax(170px, 1.15fr);
  grid-template-areas: "rank name spark rs ex ts r20 r60 hi tv inst exit";
  padding: 0 10px;
}
.ld-head { height: 38px; border-bottom: 1px solid var(--border-strong); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.ld-head small { font-size: 10px; margin-left: 2px; opacity: 0.85; }
.ld-h { cursor: help; overflow: hidden; text-overflow: ellipsis; }
.ld-h.num { text-align: right; }
.ld-key { display: inline-block; width: 10px; height: 2px; margin: 0 3px 0 6px; vertical-align: middle; border-radius: 1px; }
.ld-key--px { background: var(--text-2); }
.ld-key--rs { background: var(--accent); }
.ld-c--rank { grid-area: rank; }
.ld-c--name { grid-area: name; }
.ld-c--spark { grid-area: spark; }
.ld-c--rs { grid-area: rs; }
.ld-c--ex { grid-area: ex; }
.ld-c--ts { grid-area: ts; }
.ld-c--r20 { grid-area: r20; }
.ld-c--r60 { grid-area: r60; }
.ld-c--hi { grid-area: hi; }
.ld-c--tv { grid-area: tv; }
.ld-c--inst { grid-area: inst; }
.ld-c--exit { grid-area: exit; }

.ld-scroll { position: relative; --ld-h: 56px; }
.ld-scroll.is-virtual { max-height: min(72vh, 900px); overflow-y: auto; overscroll-behavior: contain; }
.ld-body { position: relative; }
.ld-row {
  position: absolute; left: 0; right: 0; top: 0; height: var(--ld-h); cursor: pointer; will-change: transform;
  border-bottom: 1px solid var(--border); font-size: var(--fs-sm); background-color: var(--ld-bg);
  transition: background-color var(--dur-1);
}
.ld-row:hover { background-color: color-mix(in srgb, var(--accent) 8%, var(--ld-bg)); }
.ld-row.is-top .ld-rk { color: var(--text); }
.ld-row.is-lead { background-image: linear-gradient(90deg, color-mix(in srgb, var(--up) 8%, transparent), transparent 42%); }
.ld-row.selected { background-color: color-mix(in srgb, var(--accent) 14%, var(--ld-bg)); box-shadow: inset 3px 0 0 var(--accent); }
.ld-row.cursor { box-shadow: inset 3px 0 0 var(--accent-strong), inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.ld-row.flash-up { animation: ld-flash-up 1.1s ease-out; }
.ld-row.flash-down { animation: ld-flash-down 1.1s ease-out; }
@keyframes ld-flash-up { 0% { background-color: color-mix(in srgb, var(--up) 24%, var(--ld-bg)); } 100% { background-color: var(--ld-bg); } }
@keyframes ld-flash-down { 0% { background-color: color-mix(in srgb, var(--down) 18%, var(--ld-bg)); } 100% { background-color: var(--ld-bg); } }
.ld-c { min-width: 0; }
.ld-c.num { text-align: right; font-family: var(--font-mono); font-size: var(--fs-sm); }
.ld-c--rank { display: flex; align-items: center; gap: 8px; }
.ld-rk { font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--text-2); min-width: 26px; text-align: right; }
.ld-ds { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.ld-d { font-family: var(--font-mono); font-size: 10.5px; white-space: nowrap; }
.ld-d--up { color: var(--up); }
.ld-d--down { color: var(--down); }
.ld-d--flat, .ld-d--na { color: var(--muted); }
.ld-d--new { color: var(--warn); font-family: var(--font-sans); font-weight: 600; }
.ld-c--name { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.ld-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-code { font-family: var(--font-mono); font-weight: 600; }
.ld-name { color: var(--text); }
.ld-ind-l { font-size: var(--fs-2xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.in-lead-badge, .ld-etf {
  font-style: normal; font-size: 9.5px; font-weight: 700; line-height: 1; padding: 2px 5px; border-radius: 4px; letter-spacing: 0.04em;
  color: #fff; background: var(--up);
}
.ld-etf { background: color-mix(in srgb, var(--accent) 70%, transparent); }
.ld-c--spark svg { display: block; width: 100%; height: 34px; overflow: visible; }
.ld-sp-px { fill: none; stroke: color-mix(in srgb, var(--text) 52%, transparent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ld-sp-rs { fill: none; stroke: var(--accent); stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.ld-rsr {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; min-width: 50px; padding: 2px 7px; border-radius: var(--r-sm);
  font-weight: 600; color: var(--text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, transparent) calc(var(--v, 0) * 1%), transparent 0), var(--panel-2);
}
.ld-rsr.is-high::after { content: "▲"; font-size: 9px; color: var(--up); }
.ld-ts { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ld-ts i { width: 26px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--c, var(--muted)) calc(var(--v, 0) * 1%), var(--border-strong) 0); }
.ld-ts--hi { --c: var(--up); }
.ld-ts--mid { --c: var(--warn); }
.ld-ts--lo { --c: var(--down); }
.ld-ts--lo b { color: var(--down); }
.ld-newhi { font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; color: var(--up); padding: 1px 6px; border-radius: 4px; background: var(--up-soft); }
.ld-sep { color: var(--muted); }
.ld-c--exit { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.ld-c--exit .sv-light { font-size: var(--fs-2xs); }
.ld-ex-p { font-size: var(--fs-2xs); color: var(--text-2); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-card .tone-up { color: var(--up); }
.ld-card .tone-down { color: var(--down); }
.ld-empty { margin: 16px 12px; color: var(--muted); font-size: var(--fs-sm); }
.ld-notes .sv-risks { font-size: var(--fs-xs); }

/* responsive columns (container widths) */
@container ld (max-width: 1180px) {
  .ld-head, .ld-row { grid-template-columns: 80px minmax(140px, 1.3fr) 112px 66px 56px 58px 56px 58px 88px minmax(150px, 1fr); grid-template-areas: "rank name spark rs ts r20 r60 hi inst exit"; }
  .ld-c--ex, .ld-c--tv { display: none; }
}
@container ld (max-width: 940px) {
  .ld-head, .ld-row { grid-template-columns: 78px minmax(120px, 1.2fr) 100px 62px 56px 56px minmax(140px, 1fr); grid-template-areas: "rank name spark rs ts r20 exit"; }
  .ld-c--r60, .ld-c--hi, .ld-c--inst { display: none; }
}
@container ld (max-width: 600px) {
  .ld-head, .ld-row {
    grid-template-columns: 56px minmax(0, 1fr) 72px 50px 58px;
    grid-template-areas: "rank name spark rs r20" "rank exit exit exit exit";
    column-gap: 8px; padding: 0 6px;
  }
  .ld-head { grid-template-areas: "rank name spark rs r20"; }
  .ld-head .ld-c--exit, .ld-head .ld-c--ts { display: none; }
  .ld-c--ts { display: none; }
  .ld-scroll { --ld-h: 72px; }
  .ld-row { align-content: center; row-gap: 3px; }
  .ld-c--exit { flex-direction: row; align-items: center; gap: 8px; }
  .ld-rk { font-size: 15px; min-width: 20px; }
  .ld-c--rank { gap: 5px; }
  .ld-c--spark svg { height: 28px; }
  .ld-rsr { min-width: 40px; padding: 2px 5px; }
  .ld-key { display: none; }
}

/* ---- industries ---- */
.in-card { container-type: inline-size; container-name: in; }
.in-card h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.in-sub { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.in-legend { font-size: var(--fs-xs); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.in-head, .in-row {
  display: grid; align-items: center; column-gap: 12px;
  grid-template-columns: 62px minmax(130px, 0.9fr) minmax(170px, 1.3fr) 104px 48px 96px minmax(220px, 2fr);
  grid-template-areas: "rank name bar br ld hist top";
  padding: 0 10px;
}
.in-head { height: 34px; border-bottom: 1px solid var(--border-strong); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.in-head small { font-size: 10px; margin-left: 2px; }
.in-c--rank { grid-area: rank; display: flex; align-items: baseline; gap: 6px; }
.in-c--name { grid-area: name; }
.in-c--bar { grid-area: bar; }
.in-c--br { grid-area: br; }
.in-c--ld { grid-area: ld; text-align: right; }
.in-c--hist { grid-area: hist; }
.in-c--top { grid-area: top; }
.in-body { position: relative; --in-h: 60px; }
.in-row {
  position: absolute; left: 0; right: 0; top: 0; height: var(--in-h); cursor: pointer; will-change: transform;
  border-bottom: 1px solid var(--border); font-size: var(--fs-sm); transition: background var(--dur-1);
}
.in-row:hover { background: var(--panel-hover); }
.in-row.is-lead { background: linear-gradient(90deg, color-mix(in srgb, var(--up) 9%, transparent), transparent 55%); }
.in-row.is-on { box-shadow: inset 3px 0 0 var(--accent); }
.in-row .in-c--rank b { font-family: var(--font-mono); font-size: 17px; font-weight: 600; min-width: 22px; text-align: right; }
.in-row.is-lead .in-c--rank b { color: var(--up); }
.in-row .in-c--name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.in-row .in-c--name b { font-weight: 650; white-space: nowrap; }
.in-row .in-c--name small { color: var(--muted); font-size: var(--fs-2xs); width: 100%; }
.in-c--bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.in-c--bar b { font-family: var(--font-mono); font-size: var(--fs-sm); min-width: 46px; text-align: right; }
.in-bar { flex: 1; height: 10px; border-radius: 5px; background: var(--panel-2); position: relative; overflow: hidden; }
.in-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 5px; background: linear-gradient(90deg, color-mix(in srgb, var(--up) 55%, transparent), var(--up)); transition: width var(--dur-3) var(--ease-out); }
.in-bar.is-neg i { background: linear-gradient(90deg, color-mix(in srgb, var(--down) 55%, transparent), var(--down)); }
.in-c--br { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: var(--fs-xs); }
.in-br { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--warn) calc(var(--v) * 1%), var(--border-strong) 0); }
.in-c--br b { min-width: 34px; text-align: right; font-weight: 500; }
.in-c--ld b { font-family: var(--font-mono); font-size: var(--fs-md); }
.in-c--hist svg { display: block; width: 100%; height: 26px; overflow: visible; }
.in-c--hist path { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.in-c--top { display: flex; gap: 5px; overflow: hidden; flex-wrap: nowrap; mask-image: linear-gradient(90deg, #000 88%, transparent); }
.in-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r-pill); white-space: nowrap; cursor: pointer;
  font-size: var(--fs-2xs); background: var(--panel-2); border: 1px solid var(--border); color: var(--text-2);
}
.in-chip:hover { border-color: var(--accent); color: var(--text); }
.in-chip small { font-family: var(--font-mono); color: var(--muted); font-size: 10px; }
.in-extra { display: grid; gap: 10px; margin-top: 12px; }
.in-etf {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 12px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 7%, var(--panel-2)); border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--border));
  font-size: var(--fs-xs); color: var(--text-2);
}
.in-etf b { font-family: var(--font-mono); color: var(--text); }
.in-etf__t { font-weight: 650; color: var(--text); font-size: var(--fs-sm); }
.in-etf__t small { font-weight: 400; color: var(--muted); font-size: var(--fs-2xs); margin-left: 4px; }
.in-etf .in-c--top { mask-image: none; flex-wrap: wrap; }
.in-thin { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-2xs); }
.in-thin__b { font: inherit; font-size: var(--fs-2xs); cursor: pointer; padding: 2px 8px; border-radius: var(--r-pill); background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.in-thin__b:hover { border-color: var(--accent); }
.in-thin__b small { font-family: var(--font-mono); color: var(--muted); }
@container in (max-width: 1000px) {
  .in-head, .in-row { grid-template-columns: 56px minmax(110px, 1fr) minmax(130px, 1.2fr) 92px 40px minmax(150px, 1.4fr); grid-template-areas: "rank name bar br ld top"; }
  .in-c--hist { display: none; }
}
@container in (max-width: 620px) {
  .in-body { --in-h: 84px; }
  .in-head, .in-row {
    grid-template-columns: 40px minmax(0, 1fr) 84px;
    grid-template-areas: "rank name br" "rank bar bar" "rank top top";
    column-gap: 8px; row-gap: 3px; padding: 0 6px;
  }
  .in-head { display: none; }
  .in-row { align-content: center; }
  .in-c--ld, .in-c--hist { display: none; }
  .in-row .in-c--name small { width: auto; }
}

/* ---- 波段捕獲率 ---- */
@container (min-width: 1080px) { .sv-row--cap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sv-cap__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sv-ck { padding: 9px 11px; border-radius: var(--r-md); background: var(--panel-2); border: 1px solid var(--border); min-width: 0; cursor: help; }
.sv-ck.is-main { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%), var(--panel-2); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.sv-ck__t { font-size: var(--fs-2xs); color: var(--muted); }
.sv-ck__v { font-family: var(--font-mono); font-size: 22px; font-weight: 600; line-height: 1.3; }
.sv-ck__s { font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.sv-cap__plot { margin-top: 10px; }
.sv-capsvg { display: block; width: 100%; height: auto; max-height: 260px; font-family: var(--font-mono); }
.sv-capsvg .g { stroke: var(--grid); }
.sv-capsvg .g.z { stroke: color-mix(in srgb, var(--muted) 55%, transparent); stroke-dasharray: 3 4; }
.sv-capsvg .tx, .sv-capsvg .ty { fill: var(--muted); font-size: 10px; }
.sv-capsvg .tx { text-anchor: middle; }
.sv-capsvg .ty { text-anchor: end; }
.sv-capsvg .ax { fill: var(--muted); font-size: 10.5px; text-anchor: end; font-family: var(--font-sans); }
.sv-capsvg .d1 { stroke: color-mix(in srgb, var(--text) 55%, transparent); stroke-width: 1.2; }
.sv-capsvg .d5 { stroke: color-mix(in srgb, var(--text) 40%, transparent); stroke-width: 1; stroke-dasharray: 4 4; }
.sv-capsvg .lbl { fill: var(--text-2); font-size: 10.5px; font-family: var(--font-sans); text-anchor: end; }
.sv-capsvg .lbl--5 { fill: var(--muted); }
.sv-capsvg .ax--y { text-anchor: start; }
.sv-capsvg .d5 { fill: none; }
.sv-capsvg .p { stroke: var(--panel-solid); stroke-width: 0.8; opacity: 0.88; }
.sv-capsvg .p:hover { opacity: 1; stroke: var(--text); }
.sv-capsvg .p--hi, .sv-caplegend .p--hi { fill: var(--up); background: var(--up); }
.sv-capsvg .p--mid, .sv-caplegend .p--mid { fill: var(--warn); background: var(--warn); }
.sv-capsvg .p--lo, .sv-caplegend .p--lo { fill: var(--down); background: var(--down); }
.sv-capsvg .p--na { fill: var(--muted); }
.sv-caplegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-2xs); color: var(--muted); margin-top: 4px; }
.sv-caplegend span { display: inline-flex; align-items: center; gap: 5px; }
.sv-caplegend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sv-caplegend i.ln { width: 14px; height: 0; border-radius: 0; border-top: 1px solid var(--text-2); }
.sv-capcell {
  display: inline-block; min-width: 46px; padding: 1px 6px; border-radius: var(--r-sm); text-align: right;
  background: linear-gradient(90deg, color-mix(in srgb, var(--up) 30%, transparent) calc(var(--v, 0) * 1%), transparent 0), var(--panel-2);
}
.sv-table--cmp td { padding: 9px 8px; }
.sv-table--cmp tr.is-current td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sv-table--cmp tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.sv-table--cmp td.is-best { color: var(--accent-strong); font-weight: 700; }
.sv-table--cmp tr.is-pending td { opacity: 0.55; }
.sv-table--cmp tr.is-pending td:last-child { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 10%, transparent), transparent) 0 0 / 200% 100%; animation: ld-shimmer 1.1s linear infinite; }
@keyframes ld-shimmer { to { background-position: -200% 0; } }

@media (max-width: 640px) {
  .ld-bar { position: static; padding: 10px; gap: 8px 12px; }
  .ld-status { margin-left: 0; width: 100%; }
  .ld-bar__sws { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .ld-bar__sws::-webkit-scrollbar { display: none; }
  .ld-bar__sws .sv-sw { flex: none; }
  .ld-head .ld-c--rank small { display: none; }
  .sv-hd { padding-top: 12px; }
  .sv-hd p { font-size: var(--fs-sm); line-height: 1.55; }
  .sv-subrow .sv-chip:nth-child(n + 3) { display: none; }
  .ld-leadstrip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .ld-leadstrip::-webkit-scrollbar { display: none; }
  .ld-leadstrip > * { flex: none; }
  .ld-more { margin-left: 0; }
  .sv-cap__kpis { grid-template-columns: 1fr 1fr; }
  .sv-subnav { width: 100%; }
  .sv-subnav button { flex: 1; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-row.flash-up, .ld-row.flash-down { animation: none; }
  .in-bar i { transition: none; }
}
