#finance-assets { min-width: 0; scroll-margin-top: calc(var(--host-inset-top, 0px) + 20px); }
.finance-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.finance-tabs .period-button { font-size: 14px; }
.asset-catalog-heading h3 { font-size: clamp(24px, 5vw, 34px); line-height: 1.15; letter-spacing: -.045em; margin: 8px 0 14px; }
.asset-eyebrow { color: var(--accent); font-weight: 600; }
.asset-meta { color: var(--text-dim); font-size: 12px !important; line-height: 1.55; }
.asset-filters { display: flex; gap: 16px; align-items: end; margin: 20px 0 12px; flex-wrap: wrap; }
.asset-filters .field { flex: 1; min-width: 150px; font-size: 12px; }
.asset-filters select { font-size: 14px; }
.asset-status { font-size: 13px !important; min-height: 1.5em; }
.asset-row { display: grid; grid-template-columns: 18px 40px minmax(0, 1fr) auto auto; width: 100%; text-align: left; align-items: center; column-gap: 12px; row-gap: 4px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); }
.asset-row:hover { background: var(--row-hover); text-decoration: none; }
.asset-row:focus-visible, .period-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.asset-rank { font-size: 11px; color: var(--text-faint); }
.asset-identity, .asset-quote { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.asset-identity strong { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; font-weight: 600; }
.asset-identity small { font-size: 11px; color: var(--text-dim); }
.asset-quote { text-align: right; font-variant-numeric: tabular-nums; }
.asset-quote strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
.asset-quote small { font-size: 12px; }
.asset-cap { grid-column: 3 / -1; color: var(--text-faint); font-size: 11px; }
.asset-up { color: var(--up); }
.asset-down { color: var(--down); }
.asset-back { margin-bottom: 20px; }
#finance-assets .asset-title { font-size: clamp(27px, 6vw, 40px); letter-spacing: -.05em; line-height: 1.1; margin: 14px 0 8px; }
#finance-assets .asset-price { font-size: clamp(36px, 8vw, 52px); font-weight: 650; letter-spacing: -.06em; line-height: 1.1; margin: 26px 0 8px; font-variant-numeric: tabular-nums; }
.asset-chart { min-height: 235px; margin-top: 28px; }
.chart-view-switch { display: flex; justify-content: flex-end; gap: 3px; margin: 0 0 12px; }
.chart-view-button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-dim); font-size: 12px; }
.chart-view-button[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.chart-view-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chart-plot { display: grid; }
.chart-frame { grid-area: 1 / 1; min-width: 0; }
.asset-chart svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.chart-line { stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; fill: none; vector-effect: non-scaling-stroke; }
.chart-legend { margin: 6px 0 0; color: var(--text-dim); font-size: 11px !important; line-height: 1.5; }
.chart-legend[hidden] { display: none; }
.chart-wick { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.chart-candle { stroke: none; }
.chart-up { stroke: var(--chart-up); fill: var(--chart-up); }
.chart-down { stroke: var(--chart-down); fill: var(--chart-down); }
.chart-price-tick { stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-end { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.chart-grid { stroke: var(--chart-grid); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-axis { fill: var(--text-dim); font: 17px Onest, sans-serif; }
.chart-guide { stroke: var(--muted); stroke-dasharray: 4; }
.chart-readout { font-variant-numeric: tabular-nums; font-weight: 500; min-height: 22px; }
.chart-pulse { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: chart-point-pulse 1.8s ease-out infinite; pointer-events: none; }
@keyframes chart-point-pulse { from { transform: scale(.6); opacity: .4; } to { transform: scale(1.9); opacity: 0; } }
.asset-chart svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .chart-pulse { animation: none; opacity: 0; } }
.asset-periods { display: flex; justify-content: space-between; gap: 4px; margin: 16px 0; }
.period-button { min-height: 44px; min-width: 38px; flex: 1; border: 0; background: transparent; border-radius: 8px; font-size: 13px; color: var(--text-dim); }
.period-button[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.period-button:hover { text-decoration: none; }
.asset-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding: 28px 0; margin: 24px 0; border-block: 1px solid var(--line); }
.asset-metrics dt { font-size: 12px; color: var(--text-dim); }
.asset-metrics dd { margin: 8px 0 0; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
#finance-assets h4 { font-size: 18px; margin: 28px 0 10px; }
.asset-summary { max-width: 65ch; line-height: 1.65; }
.asset-sources { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px !important; }
@media (max-width: 360px) { .asset-row { column-gap: 8px; grid-template-columns: 14px 34px minmax(0, 1fr) auto auto; } .fin-logo { width: 34px; height: 34px; } .asset-spark .fin-spark svg { width: 48px; } .asset-quote strong { font-size: 13px; } .asset-identity strong { font-size: 14px; } }

/* ---------- логотипы, миниграфики, анимации (finance-ui.js) ---------- */
.fin-logo {
  --logo-bg: var(--surface);
  position: relative; display: grid; place-items: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 1px var(--line);
  color: #fff; font-size: 17px; font-weight: 650;
  opacity: 0; transform: scale(.82);
  transition: opacity 420ms cubic-bezier(.22, 1, .36, 1), transform 520ms cubic-bezier(.34, 1.4, .64, 1);
}
/* Сильнее общего .work-section img (отступ 12px и height: auto) — иначе
   логотип съезжал вниз внутри кружка. */
.fin-logo > img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 0; object-fit: contain; }
.fin-logo.is-loaded { opacity: 1; transform: none; }
.fin-logo.is-monogram { background: var(--logo-bg); box-shadow: none; }
.fin-logo-lg { width: 56px; height: 56px; font-size: 24px; }
.asset-detail-head { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.asset-detail-head .asset-title { margin: 2px 0 0; }

.asset-spark { display: flex; align-items: center; justify-content: flex-end; min-width: 64px; height: 26px; }
.fin-spark { display: inline-flex; color: var(--up); }
.fin-spark.is-down { color: var(--down); }
.fin-spark svg { display: block; overflow: visible; }
.fin-spark.is-drawing .fin-spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fin-spark-draw 900ms cubic-bezier(.22, 1, .36, 1) forwards; }
.fin-spark.is-drawing .fin-spark-area { opacity: 0; animation: fin-fade-in 600ms ease-out 450ms forwards; }
.fin-spark.is-drawing .fin-spark-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: fin-dot-pop 420ms cubic-bezier(.34, 1.6, .64, 1) 780ms forwards; }
@keyframes fin-spark-draw { to { stroke-dashoffset: 0; } }
@keyframes fin-fade-in { to { opacity: 1; } }
@keyframes fin-dot-pop { 0% { opacity: 0; transform: scale(0); } 100% { opacity: 1; transform: scale(1); } }

.asset-row { transition: background-color 200ms ease, transform 160ms ease; }
.asset-row:active { transform: scale(.985); }
@media (prefers-reduced-motion: reduce) {
  .fin-logo { opacity: 1; transform: none; transition: none; }
  .asset-row { transition: none; }
}
