/* Архетип «Анализ»: раскладка, графики, цвета рядов s0–s3 — docs/design/analysis/README.md. Только токены. */

.page-an {
  --an-s1: var(--accent); --an-s2: color-mix(in srgb, var(--gold) 70%, var(--gold-ink)); --an-s3: var(--ok); --an-s0: var(--faint);
  --an-rail: 244px; --an-axis: var(--field); --an-bar: 12px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-an {
  --an-s1: var(--accent-fill); --an-s2: color-mix(in srgb, var(--gold) 75%, var(--surface)); --an-s3: color-mix(in srgb, var(--ok) 70%, var(--surface)); } }
:root[data-theme="dark"] .page-an {
  --an-s1: var(--accent-fill); --an-s2: color-mix(in srgb, var(--gold) 75%, var(--surface)); --an-s3: color-mix(in srgb, var(--ok) 70%, var(--surface)); }
.page-an .s1 { --c: var(--an-s1); } .page-an .s2 { --c: var(--an-s2); } .page-an .s3 { --c: var(--an-s3); } .page-an .s0 { --c: var(--an-s0); }

.page-an main.wrap { padding-top: 20px; }

/* Раскладка */
.an { display: grid; grid-template-columns: var(--an-rail) minmax(0, 1fr); grid-template-areas: "top top" "rail main"; gap: 24px 40px; align-items: start; }
.an.an-norail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }
.an-top { grid-area: top; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.an-title { min-width: 0; flex: 1 1 320px; }
.an-title .crumb { margin: 0 0 6px; font-size: 13.5px; }
.an-top h1 { margin: 0; max-width: none; font: 750 var(--fs-h3)/1.15 var(--f-display); letter-spacing: -.02em; }
.an-lead { margin: 4px 0 0; font-size: 14px; color: var(--muted); max-width: 72ch; }
.an-lead:empty { display: none; }
.an-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.an-acts .btn, .an-acts button { gap: 8px; }
.an-top .out-tabs { flex-basis: 100%; margin-bottom: -17px; }
.an-fbtn { display: none; }
.an-fcount { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent);
  font: 650 12px/20px var(--f-body); }

/* Фильтры */
.an-rail { grid-area: rail; position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px);
  overflow: auto; overscroll-behavior: contain; }
.an-form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.an-f { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.an-f > span, .an-f > legend { padding: 0; font: 600 12.5px/1.3 var(--f-body); color: var(--muted); }
.an-f select, .an-f input { width: 100%; min-height: 40px; margin: 0; }
.an-f small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.an-pair { display: grid; gap: 8px; }
.an-pair label { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.an-opts { display: flex; flex-direction: column; gap: 2px; }
.an-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 0 10px;
  border-radius: var(--r-s); color: var(--ink); font-size: 14.5px; cursor: pointer; transition: background-color var(--t-quick); }
.an-opt input { position: absolute; opacity: 0; pointer-events: none; }
.an-opt .ic { color: var(--accent); opacity: 0; transform: scale(.6); transition: opacity var(--t-quick), transform var(--t-base) var(--ease-spring); }
.an-opt:hover { background: var(--hover); }
.an-opt:has(input:checked) { background: var(--surface-2); font-weight: 600; }
.an-opt:has(input:checked) .ic { opacity: 1; transform: none; }
.an-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.an-rail-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 4px; }
.an-apply, .an-sheet-head { display: none; }
.an-reset { font-size: 13.5px; }
.an-reset[hidden], .an-fcount[hidden] { display: none; }

/* Данные */
.an-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 28px; transition: opacity var(--t-base) var(--ease-out); }
.an-busy .an-main { opacity: .5; pointer-events: none; }
.an-note { margin: 0; font-size: 13px; color: var(--muted); max-width: 78ch; line-height: 1.5; }

/* Главная цифра */
.an-hl { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "big say" "stats stats"; gap: 20px 48px; align-items: end; }
.an-fig-big { grid-area: big; min-width: 0; }
.an-big { margin: 0; font: 750 clamp(52px, 5.6vw, 76px)/.92 var(--f-display); letter-spacing: -.045em; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-big.long { font-size: clamp(40px, 4.2vw, 60px); }
.an-big::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 14px; border-radius: 2px; background: var(--gold); }
.an-big-label { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; color: var(--muted); }
.an-delta { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px 1px 6px; border-radius: 999px; font-weight: 650; font-size: 12.5px;
  background: var(--surface-2); color: var(--muted); }
.an-delta.up { background: var(--ok-soft); color: var(--ok); }
.an-delta.down { background: var(--warn-soft); color: var(--warn); }
.an-say { grid-area: say; margin: 0 0 30px; font: 550 var(--fs-sub)/1.45 var(--f-body); letter-spacing: -.01em; color: var(--ink); max-width: 46ch; text-wrap: pretty; }
.an-stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: 12px 0; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.an-stats > div { padding: 0 24px; border-left: 1px solid var(--line); min-width: 0; }
.an-stats > div:first-child { padding-left: 0; border-left: 0; }
.an-stats dt { font-size: 12.5px; color: var(--muted); }
.an-stats dd { margin: 2px 0 0; font: 650 18px/1.3 var(--f-body); color: var(--ink); }

/* Графики */
.an-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 20px; align-items: start; }
.an-fig, .an-table, .an-side { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--lift); }
.an-fig { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.an-fig.wide { grid-column: 1 / -1; }
.an-fig-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.an-fig-h > div:first-child { min-width: 0; flex: 1 1 200px; }
.an-fig-h h2 { margin: 0; font: 650 15.5px/1.35 var(--f-body); letter-spacing: -.005em; }
.an-fig-h p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.an-view { display: inline-flex; flex: none; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); }
.an-view button { min-height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 550;
  transition: background-color var(--t-quick), color var(--t-quick); }
.an-view button[aria-pressed="true"] { background: var(--seg-on); color: var(--ink); box-shadow: var(--seg-shadow); }
html:not(.js) .an-view { display: none; }
.js .an-fig[data-view="chart"] .an-fig-tbl, .js .an-fig[data-view="table"] .an-plot-wrap { display: none; }
.an-plot-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.an-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
:is(.an-legend, .an-hbar, .an-stack, .an-bands, .an-x, .an-list) { list-style: none; margin: 0; padding: 0; }
.an-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.an-legend li { display: inline-flex; align-items: center; gap: 6px; }
.an-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.an-mk-key { width: 2px; height: 12px; border-radius: 1px; background: var(--ink); }

/* Подсказка */
.an-tip { position: fixed; z-index: 90; left: 0; top: 0; max-width: 260px; padding: 8px 10px; border-radius: var(--r-s); pointer-events: none;
  background: var(--raised); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; line-height: 1.35;
  opacity: 0; transition: opacity var(--t-quick) var(--ease-out); }
.an-tip.on { opacity: 1; }
.an-tip b { display: block; font-size: 14.5px; font-weight: 650; }
.an-tip span { display: block; color: var(--muted); }

/* Полосы */
.an-hbar { display: grid; grid-template-columns: minmax(84px, 32%) minmax(48px, 1fr) max-content; column-gap: 12px; }
.an-hbar.has-aside { grid-template-columns: minmax(84px, 28%) minmax(48px, 1fr) max-content minmax(40px, 14%) 4ch; }
.an-hbar > li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 34px; padding: 4px 8px; margin: 0 -8px;
  border-radius: var(--r-s); transition: background-color var(--t-quick); }
.an-hbar > .an-row:is(:hover, :focus-within) { background: var(--hover); }
.an-hbar-head { min-height: 0 !important; font-size: 12px; color: var(--muted); }
.an-hbar-head span { grid-column: 2 / 4; text-align: right; } .an-hbar-head span + span { grid-column: 4 / 6; }
.an-lbl { min-width: 0; font-size: 14px; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.an-lbl a { color: inherit; text-decoration: none; }
.an-lbl a:hover { color: var(--accent); text-decoration: underline; }
.an-lbl small { color: var(--muted); font-size: 12px; }
.an-tag { display: flex; align-items: center; gap: 4px; margin-top: 2px; font: normal 550 12px/1.3 var(--f-body); color: var(--warn); }
.an-track { position: relative; height: var(--an-bar); }
.an-track i { position: absolute; inset: 0 auto 0 0; width: max(calc(var(--f) * 100%), 2px); border-radius: 0 4px 4px 0; background: var(--c); transition: filter var(--t-quick); }
.an-track i.z { display: none; }
.an-row:is(:hover, :focus-visible) .an-track i { filter: brightness(1.12); }
.an-mk { position: absolute; top: -4px; bottom: -4px; left: calc(var(--f) * 100%); width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink);
  box-shadow: 0 0 0 2px var(--surface); }
.an-val { font-size: 13.5px; text-align: right; color: var(--ink); white-space: nowrap; }
.an-meter { position: relative; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.an-meter i { position: absolute; inset: 0 auto 0 0; width: calc(var(--f) * 100%); border-radius: 999px; background: var(--muted); }

/* Столбцы и линия */
.an-xy { display: grid; grid-template-columns: max-content minmax(0, 1fr); grid-template-rows: 190px auto; column-gap: 10px; }
.an-y { position: relative; min-width: 2ch; }
.an-y span { position: absolute; right: 0; bottom: calc(var(--f) * 100%); transform: translateY(50%); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.an-plot { position: relative; border-bottom: 1px solid var(--an-axis); }
.an-gl { position: absolute; left: 0; right: 0; bottom: calc(var(--f) * 100%); height: 1px; background: var(--line); }
.an-gl:first-of-type { display: none; }
.an-bands { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.an-bands li { position: relative; display: flex; align-items: flex-end; justify-content: center; border-radius: var(--r-xs) var(--r-xs) 0 0;
  transition: background-color var(--t-quick); }
.an-bands li:is(:hover, :focus-visible) { background: var(--hover); }
.an-bands i { width: min(24px, 72%); height: calc(var(--f) * 100%); border-radius: 4px 4px 0 0; background: var(--c); }
.an-x { grid-column: 2; display: grid; margin-top: 6px; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.an-x li { min-width: 0; text-align: center; font-size: 11.5px; color: var(--muted); }
.an-y, .an-x, .an-val, .an-stats dd, .an-seg, .an-tip b, .an-delta, .an-fcount { font-variant-numeric: tabular-nums; }
.an-x span { display: block; line-height: 1.3; }
@media (max-width: 640px) { .an-x li:not(.nw) span { display: none; } }
.an-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.an-ln { fill: none; stroke: var(--an-s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.an-area { fill: var(--an-s1); opacity: .1; }
.an-pt { position: absolute; left: calc(var(--x) * 1%); bottom: calc(var(--f) * 100%); width: 8px; height: 8px; margin: 0 0 -4px -4px; border-radius: 50%;
  background: var(--an-s1); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.an-k-line .an-bands li:is(:hover, :focus-visible)::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--an-axis); }
.an-k-line .an-bands li:is(:hover, :focus-visible) { background: none; }

/* Части целого */
.an-stack { display: grid; grid-template-columns: minmax(84px, 30%) minmax(60px, 1fr) max-content; column-gap: 12px; }
.an-stack > li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 34px; padding: 4px 0; }
.an-sbar { display: flex; gap: 2px; height: var(--an-bar); }
.an-sbar i, .an-seg i { flex: 1 1 0; min-width: 2px; background: var(--c); transition: filter var(--t-quick); }
.an-sbar i:last-child { border-radius: 0 4px 4px 0; }
:is(.an-sbar, .an-seg) i:is(:hover, :focus-visible) { filter: brightness(1.15); }

.an-seg { display: flex; gap: 2px; height: 28px; }
.an-seg i { position: relative; display: flex; align-items: center; padding: 0 8px; border-radius: 4px; overflow: hidden; }
.an-seg i span { font: normal 650 12.5px/1 var(--f-body); color: var(--on-accent); white-space: nowrap; }
.an-seg i.s2 span { color: var(--night); }
.an-seg i.s0 span { color: var(--ink); }

/* «Таблица» графика */
.an-fig-tbl { min-width: 0; overflow-x: auto; }
.an-ftbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.an-ftbl th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.an-ftbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.an-ftbl tr:last-child td { border-bottom: 0; }
.an-ftbl .num, .an-table .num { text-align: right; }

/* Подробная таблица */
.an-table-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 16px 20px 10px; }
.an-table-h h2 { margin: 0; font: 650 15.5px/1.35 var(--f-body); }
.an-table-h p { margin: 0; font-size: 13px; color: var(--muted); }
.an-scroll { overflow: auto; max-height: min(72vh, 760px); overscroll-behavior: contain; border-radius: 0 0 var(--r-l) var(--r-l); }
.an-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.an-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 8px 12px; text-align: left; vertical-align: bottom;
  font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); }
.an-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.an-table tbody tr:last-child td { border-bottom: 0; }
.an-table tbody tr:hover td { background: var(--hover); }
.an-table :is(th, td):first-child { padding-left: 20px; }
.an-table :is(th, td):last-child { padding-right: 20px; }
.an-table tfoot :is(th, td) { position: sticky; bottom: 0; background: var(--surface-2); padding: 10px 12px; border-top: 1px solid var(--line); font-weight: 650; text-align: left; }
.an-table tfoot .num { text-align: right; }
.an-table .total td { background: var(--surface-2); font-weight: 650; }
.an-table.sticky1 :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.an-table.sticky1 thead th:first-child { z-index: 3; }
.an-table.sticky1 .total td:first-child { background: var(--surface-2); }
.an-sortbtn { all: unset; position: relative; cursor: pointer; border-radius: var(--r-xs); color: inherit; }
.an-sortbtn:hover { color: var(--ink); } .an-sortbtn:hover .ic { opacity: .45; }
.an-sortbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.an-sortbtn .ic { position: absolute; top: 50%; right: -17px; margin-top: -7px; opacity: 0; transition: transform var(--t-quick), opacity var(--t-quick); }
th[aria-sort] .an-sortbtn { color: var(--ink); }
th[aria-sort] .an-sortbtn .ic { opacity: 1; }
th[aria-sort="descending"] .an-sortbtn .ic { transform: rotate(180deg); }
th.num .an-sortbtn .ic { right: auto; left: -17px; }
.an-table .code { font: 500 12.5px var(--f-code); color: var(--muted); }
.an-table small { display: block; color: var(--muted); font-size: 12.5px; }

/* Журнал: лента по дням */
.an-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.an-feed .an-day th { position: sticky; top: var(--header-h); z-index: 2; padding: 10px 20px 8px; text-align: left; background: var(--surface-2);
  border-block: 1px solid var(--line); font: 650 13px/1.3 var(--f-body); color: var(--muted); }
.an-feed tbody:first-of-type .an-day th { border-top: 0; }
.an-ev td { padding: 10px 12px; vertical-align: top; border-top: 1px solid var(--line); }
.an-day + .an-ev td { border-top: 0; }
.an-ev td:first-child { position: relative; width: 56px; padding-left: 20px; color: var(--muted); }
.an-ev td:nth-child(2) { width: 22%; }
.an-ev b { font-weight: 600; }
.an-ev-det span { display: inline-block; margin: 0 4px 4px 0; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--muted); }
.an-ev-det b { color: var(--ink); }
.an-ev[data-kind="export"] td:first-child::before { content: ""; position: absolute; left: 8px; top: 17px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* Списки, пустые состояния */
.an-warn { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: var(--r-m); background: var(--warn-soft); color: var(--warn); font-size: 14px; font-weight: 550; }
.an-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.an-sec > h2 { margin: 0; font: 650 var(--fs-sub)/1.3 var(--f-body); letter-spacing: -.01em; }
.an-main .state { border: 1px dashed var(--line); border-radius: var(--r-l); background: var(--surface); }
.an-side { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.an-side h2 { margin: 0; font: 650 15.5px/1.35 var(--f-body); }
.an-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.an-list span { color: var(--muted); }
.an-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.an-chips form { margin: 0; }
.an-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1280px) { .an-split.with-side { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
  .an-split .an-side { position: sticky; top: calc(var(--header-h) + 20px); } }
.an-advice { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* Подразделы */
.page-an .an-top .out-tabs { display: flex; gap: 0 22px; padding: 0; background: none; border-radius: 0; }
.page-an .an-top .out-tabs a { min-height: 40px; padding: 0; border-radius: 0; background: none; box-shadow: none; border-bottom: 2px solid transparent;
  color: var(--muted); font-weight: 550; white-space: nowrap; }
.page-an .an-top .out-tabs a[aria-current] { background: none; box-shadow: none; color: var(--ink); border-bottom-color: var(--gold); }

/* Узкий экран: фильтры — шторка */
@media (max-width: 1023px) {
  .an, .an.an-norail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "rail" "main"; gap: 20px; }
  .js .an-rail { display: none; }
  .js .an-fbtn { display: inline-flex; align-items: center; }
  .an-rail { position: static; max-height: none; }
  .an-sheet[open] { position: fixed; inset: auto 0 0 0; z-index: 80; box-sizing: border-box; width: 100%; max-width: none; max-height: min(86vh, 720px);
    margin: 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); overflow: auto; overscroll-behavior: contain; border: 0;
    border-radius: 22px 22px 0 0; background: var(--raised); color: var(--ink); box-shadow: var(--shadow), 0 -1px 0 var(--line);
    animation: sheet-in var(--t-move) var(--ease-spring) both; }
  .an-sheet.is-closing { animation: sheet-out var(--t-base) var(--ease-out) both; }
  .an-sheet::backdrop { background: var(--scrim); animation: fade-in var(--t-base) var(--ease-out) both; }
  .an-sheet .an-sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 18px 0 6px;
    background: var(--raised); }
  .an-sheet-head h2 { margin: 0; font: 700 var(--fs-sub)/1.2 var(--f-body); }
  .an-grip { position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 999px; background: var(--field); }
  .an-sheet .an-apply { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; }
  .an-sheet .an-rail-foot { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); align-items: stretch; padding: 12px 0 16px; background: var(--raised); }
  .an-hl { grid-template-columns: minmax(0, 1fr); grid-template-areas: "big" "say" "stats"; gap: 14px; }
  .an-say { margin: 0; }
  .an-figs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .page-an main.wrap { padding-top: 12px; }
  .an-top { padding-bottom: 12px; }
  .an-top .out-tabs { margin-bottom: -13px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .an-acts { width: 100%; }
  .an-acts .an-fbtn { margin-left: auto; }
  .an-big { font-size: 56px; } .an-big.long { font-size: 40px; }
  .an-say { font-size: 16.5px; }
  .an-fig { padding: 16px; border-radius: var(--r-m); }
  .an-hbar { grid-template-columns: minmax(0, 1fr) max-content; row-gap: 2px; }
  .an-hbar.has-aside { grid-template-columns: minmax(0, 1fr) max-content 40px 4ch; }
  .an-hbar > li { row-gap: 6px; padding-block: 8px; }
  .an-hbar .an-lbl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .an-hbar .an-tag { margin: 0; }
  .an-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .an-stats > div, .an-stats > div:first-child { padding: 0; border: 0; }
  .an-hbar-head { display: none !important; }
  .an-stack { grid-template-columns: minmax(0, 1fr) max-content; }
  .an-stack .an-lbl { grid-column: 1 / -1; }
  .an-xy { grid-template-rows: 160px auto; }
  .an-table { border: 0; background: none; box-shadow: none; }
  .an-table-h { padding: 0 0 10px; }
  .an-scroll { max-height: none; overflow: visible; }
  .an-table.sticky1 :is(th, td):first-child { position: static; box-shadow: none; background: none; }
  .an-table table.tbl-cards tfoot { display: block; }
  .an-table table.tbl-cards tfoot tr { background: var(--surface-2); } .an-table tfoot td { position: static; padding: 0; border: 0; background: none; }
  .an-table table.tbl-cards td:first-child, .an-table table.tbl-cards td:last-child { padding: 0; }
  .an-table table.tbl-cards tr.total { background: var(--surface-2); }
  .an-ftbl.tbl-cards tr { margin-bottom: 8px; }
  .an-feed tr.an-day { display: block; margin: 14px 0 6px; padding: 0; border: 0; background: none; }
  .an-feed .an-day th { position: static; display: block; padding: 0; border: 0; background: none; }
  .an-feed tbody { display: block; }
  .an-feed tr.an-ev { grid-template-columns: 44px minmax(0, 1fr); gap: 2px 10px; }
  .an-feed tr.an-ev td { display: block; grid-column: 2; width: auto; border: 0; padding: 0; }
  .an-feed tr.an-ev td::before { content: none; }
  .an-feed tr.an-ev td:first-child { grid-column: 1; grid-row: 1 / span 4; }
  .an-feed tr.an-ev td:nth-child(3) { order: -1; }
  .an-ev[data-kind="export"] td:first-child::before { left: -12px; top: 7px; }
}
@media (min-width: 641px) { .an-table table.report-tbl { min-width: 1240px; } .an-table table.an-wide { min-width: 900px; } .an-wide :is(th, td):first-child { min-width: 200px; } .report-tbl th.num { min-width: 10ch; } }
