/* PerfilPY — design tokens + components. Один файл, без препроцессора. */

:root {
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --line: #dfe4ea;
  --line-strong: #c9d1da;
  --ink: #14202b;
  --ink-2: #44515d;
  --muted: #7a8792;

  --brand: #0b6e6a;
  --brand-soft: #e2f1ef;
  --brand-ink: #085553;
  --data: #2c5aa8;
  --data-soft: #e4ebf7;
  --on-brand: #ffffff;

  --ok: #17865a;      --ok-soft: #e1f3ea;
  --warn: #b97a12;    --warn-soft: #fbf0d9;
  --bad: #bf3a30;     --bad-soft: #fbe5e2;
  --info: #4a6a9e;    --info-soft: #e7edf7;

  /* шесть факторов индекса */
  --f1: #0b6e6a; --f2: #1d8f7d; --f3: #4aa38a; --f4: #7fb8a0; --f5: #a9cbb9; --f6: #c9ddd3;

  --radius: 12px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgba(20, 32, 43, .06), 0 0 0 1px var(--line);
  --container: 1240px;
}

[data-theme="dark"] {
  --bg: #0f151b;
  --surface: #161f28;
  --surface-2: #1b2530;
  --line: #263240;
  --line-strong: #344253;
  --ink: #e7ecf1;
  --ink-2: #b3bdc7;
  --muted: #7f8c98;

  --brand: #3fb3a9;
  --brand-soft: #14312f;
  --brand-ink: #7fd6cd;
  --data: #6f97e0;
  --data-soft: #1b2a45;
  --on-brand: #0b1a19;

  --ok: #3fbf84;   --ok-soft: #143326;
  --warn: #e0a93a; --warn-soft: #3a2d12;
  --bad: #ee6a5f;  --bad-soft: #3d1c19;
  --info: #7f9fd1; --info-soft: #1d2838;

  --f1: #3fb3a9; --f2: #4fc0a5; --f3: #63c6a3; --f4: #7ccfa6; --f5: #98d5b0; --f6: #b6dbc0;
  --shadow: 0 0 0 1px var(--line);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.45; font-feature-settings: "tnum" 1, "cv05" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--data); outline-offset: 2px; border-radius: 4px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.empty { color: var(--muted); padding: 18px 0; }

/* ---------- topbar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar__row { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 26px; height: 26px; color: var(--brand); }
.search { display: flex; flex: 1; max-width: 520px; }
.search__input {
  flex: 1; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-right: 0;
  border-radius: var(--radius-s) 0 0 var(--radius-s); background: var(--surface); color: var(--ink); font: inherit;
}
.search__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); position: relative; z-index: 1; }
.search__btn {
  height: 38px; padding: 0 16px; border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand);
  border-radius: 0 var(--radius-s) var(--radius-s) 0; cursor: pointer; font-weight: 500;
}
.search__btn:hover { filter: brightness(.92); }
.search--big .search__input, .search--big .search__btn { height: 50px; font-size: 17px; }
.topbar__tools { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.tool {
  border: 1px solid transparent; background: none; color: var(--muted); border-radius: var(--radius-s);
  padding: 6px 9px; font-size: 13px; font-weight: 500; cursor: pointer; line-height: 1;
}
.tool:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.tool.is-active { color: var(--ink); border-color: var(--line); }
.tool--icon { display: inline-flex; padding: 6px; }
.ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: block; }

/* ---------- home ---------- */
.hero-home { background: var(--surface); border-bottom: 1px solid var(--line); padding: 72px 0 64px; }
.hero-home__inner { max-width: 760px; }
.hero-home__title { font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.hero-home__sub { margin: 14px 0 28px; font-size: 17px; color: var(--ink-2); max-width: 640px; }
.hero-home__sources { margin-top: 14px; color: var(--muted); font-size: 14px; }
.section { padding: 32px 0 48px; }
.section__title { font-size: 20px; margin-bottom: 16px; }
.section--error { text-align: left; max-width: 640px; }
.section--error h1 { font-size: 28px; margin-bottom: 8px; }
.section--error p { color: var(--ink-2); margin-bottom: 20px; }

.results { display: grid; gap: 8px; max-width: 760px; }
.results__link {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow); color: inherit;
}
.results__link:hover { text-decoration: none; box-shadow: 0 0 0 1px var(--line-strong), 0 4px 14px rgba(20, 32, 43, .08); }
.results__score {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px;
  background: var(--surface-2); color: var(--ink-2); flex: none; border: 2px solid var(--line-strong);
}
.results__score--alta { border-color: var(--ok); color: var(--ok); }
.results__score--media { border-color: var(--warn); color: var(--warn); }
.results__score--baja, .results__score--riesgo { border-color: var(--bad); color: var(--bad); }
.results__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.results__name { font-weight: 600; }
.results__meta { color: var(--muted); font-size: 13px; }

/* ---------- company hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero__inner { display: flex; gap: 24px; align-items: flex-start; padding: 26px 20px 20px; }
.hero__main { min-width: 0; flex: 1; }
.hero__ruc { color: var(--ink-2); font-size: 14px; margin-bottom: 4px; }
.hero__ruc strong { color: var(--ink); font-weight: 600; }
.hero__name { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.hero__meta { margin: 8px 0 14px; color: var(--ink-2); }
.hero__actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex: none; }
.hero__asof { color: var(--muted); font-size: 13px; margin-top: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.chip--ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip--ok::before { background: var(--ok); }
.chip--bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip--bad::before { background: var(--bad); }
.chip--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip--warn::before { background: var(--warn); }
.chip--neutral::before { background: var(--data); }

.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-s);
  border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand); font-weight: 500; font-size: 14px; white-space: nowrap;
}
.btn:hover { text-decoration: none; background: var(--brand-ink); }
.btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }

/* ---------- subnav ---------- */
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 56px; z-index: 20; }
.subnav__row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav__row::-webkit-scrollbar { display: none; }
.subnav__link {
  padding: 12px 12px 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.subnav__link:hover { color: var(--ink); text-decoration: none; }
.subnav__link.is-active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- card grid ---------- */
.card-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; padding-top: 20px; padding-bottom: 40px; align-items: start; }
.card-grid__side { display: grid; gap: 20px; position: sticky; top: 112px; }
.card-grid__main { display: grid; gap: 20px; min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px 22px; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel__title { font-size: 17px; }
.panel__subtitle { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 20px 0 10px; }
.panel__tag { font-size: 12px; color: var(--muted); }
.panel__lead { color: var(--muted); font-size: 13.5px; margin: -6px 0 14px; }
.panel__note { margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.45; }

.src {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; line-height: 1.4; vertical-align: middle; white-space: nowrap;
}

/* ---------- index panel: the one bold element ---------- */
.panel--index { padding-top: 22px; }
.gauge { position: relative; width: 168px; height: 168px; margin: 6px auto 4px; }
.gauge__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: var(--surface-2); stroke-width: 11; }
.gauge__seg { fill: none; stroke-width: 11; stroke-linecap: butt; }
.gauge__seg--f1 { stroke: var(--f1); } .gauge__seg--f2 { stroke: var(--f2); } .gauge__seg--f3 { stroke: var(--f3); }
.gauge__seg--f4 { stroke: var(--f4); } .gauge__seg--f5 { stroke: var(--f5); } .gauge__seg--f6 { stroke: var(--f6); }
.gauge__value { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 58px; }
.gauge__score { font-size: 48px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.gauge__max { font-size: 15px; color: var(--muted); margin-left: 3px; }
.verdict { text-align: center; font-weight: 600; font-size: 17px; margin-top: 2px; }
.verdict--alta .verdict { color: var(--ok); }
.verdict--media .verdict { color: var(--warn); }
.verdict--baja .verdict, .verdict--riesgo .verdict { color: var(--bad); }
.verdict--riesgo .gauge__seg { stroke: var(--bad); opacity: .85; }
.verdict--riesgo .gauge__score { color: var(--bad); }
.verdict__forced { margin: 10px 0 0; padding: 10px 12px; background: var(--bad-soft); color: var(--bad); border-radius: var(--radius-s); font-size: 13px; }

.factors { display: grid; gap: 2px; }
.factor details summary { list-style: none; cursor: pointer; }
.factor details summary::-webkit-details-marker { display: none; }
.factor__row { display: grid; grid-template-columns: 1fr 88px 44px; align-items: center; gap: 10px; padding: 7px 6px; border-radius: var(--radius-s); }
.factor__row:hover { background: var(--surface-2); }
.factor__name { font-size: 13.5px; }
.factor__bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.factor__fill { display: block; height: 100%; width: var(--w); border-radius: 3px; }
.factor__fill--f1 { background: var(--f1); } .factor__fill--f2 { background: var(--f2); } .factor__fill--f3 { background: var(--f3); }
.factor__fill--f4 { background: var(--f4); } .factor__fill--f5 { background: var(--f5); } .factor__fill--f6 { background: var(--f6); }
.verdict--riesgo .factor__fill { background: var(--bad); }
.factor__num { text-align: right; font-weight: 600; font-size: 13.5px; }
.factor__items { padding: 2px 6px 8px 6px; display: grid; gap: 4px; }
.factor__items li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); padding-left: 16px; position: relative; }
.factor__items li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.factor__items li.is-ok::before { background: var(--ok); }
.factor__items li.is-part::before { background: var(--warn); }
.factor__items li.is-no::before { background: var(--bad); }

/* ---------- signals ---------- */
.signals { display: grid; gap: 8px; }
.signal { padding: 10px 12px; border-radius: var(--radius-s); border-left: 3px solid; font-size: 13.5px; display: grid; gap: 6px; justify-items: start; }
.signal p { color: var(--ink); }
.signal--warn { background: var(--warn-soft); border-color: var(--warn); }
.signal--bad { background: var(--bad-soft); border-color: var(--bad); }
.signal--info { background: var(--surface-2); border-color: var(--line-strong); }
.signal--info p { color: var(--ink-2); }

/* ---------- kpis ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kpi { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px 14px; display: grid; gap: 2px; }
.kpi__label { color: var(--muted); font-size: 13px; }
.kpi__value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.kpi__value--none { color: var(--muted); }
.kpi__sub { color: var(--ink-2); font-size: 12.5px; }

/* ---------- data list ---------- */
.datalist { display: grid; }
.datalist__row { display: grid; grid-template-columns: 200px 1fr auto; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); align-items: baseline; }
.datalist__row:first-child { border-top: 0; }
.datalist dt { color: var(--muted); font-size: 13.5px; margin: 0; }
.datalist dd { margin: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot--ok { background: var(--ok); } .dot--bad { background: var(--bad); }
.names { margin-top: 12px; font-size: 13.5px; }
.names summary { cursor: pointer; color: var(--brand); }
.names ul { margin-top: 8px; display: grid; gap: 4px; }

/* ---------- procurement ---------- */
.proc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
.chart { width: 100%; }
.buyers { display: grid; gap: 9px; }
.buyer { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px 52px; grid-template-areas: "name amt pct cnt" "bar bar bar bar"; gap: 4px 10px; align-items: center; font-size: 13px; }
.buyer__name { grid-area: name; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer__amt { grid-area: amt; } .buyer__pct { grid-area: pct; } .buyer__cnt { grid-area: cnt; }
.buyer__bar { grid-area: bar; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.buyer__bar span { display: block; height: 100%; width: var(--w); background: var(--data); border-radius: 4px; }
.buyer__amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.buyer__pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.buyer__cnt { text-align: right; color: var(--muted); white-space: nowrap; }

.modalities { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; margin: 22px 0 6px; font-size: 13px; }
.modalities__label { color: var(--muted); }
.modalities__bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.modalities__seg { display: block; width: var(--w); background: var(--line-strong); }
.modalities__legend { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); }
.modalities__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--line-strong); }
.modalities__seg--0 { background: #9aa8b6; } .modalities__seg--1 { background: #b7c2cd; } .modalities__seg--2 { background: #d0d8e0; } .modalities__seg--3 { background: #e0e6ec; }
.modalities__legend i.modalities__seg--0 { background: #9aa8b6; } .modalities__legend i.modalities__seg--1 { background: #b7c2cd; }
.modalities__legend i.modalities__seg--2 { background: #d0d8e0; } .modalities__legend i.modalities__seg--3 { background: #e0e6ec; }
.modalities .is-competitive, .modalities__legend i.is-competitive { background: var(--brand) !important; }
.modalities__legend b { font-weight: 600; color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table__foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 13.5px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill--finalizado { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.pill--activo { background: var(--ok-soft); color: var(--ok); }
.pill--en_curso { background: var(--data-soft); color: var(--data); }

/* ---------- people ---------- */
.people { display: grid; gap: 10px; }
.person { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; }
.person__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 600; }
.person__body { display: grid; gap: 3px; min-width: 0; }
.person__name { font-weight: 600; }
.person__roles { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-2); }
.person__count { font-size: 12.5px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.person__count.is-multi { color: var(--warn); font-weight: 500; }

/* ---------- links ---------- */
.linked { display: grid; gap: 10px; margin-top: 6px; }
.linked__item { display: grid; gap: 2px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-s); }
.linked__name { font-weight: 600; }
.linked__meta { font-size: 13px; color: var(--ink-2); }

/* ---------- registries ---------- */
.registries { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.registry { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.registry__state { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--line-strong); }
.registry--ok .registry__state { background: var(--ok); }
.registry--warn .registry__state { background: var(--warn); }
.registry--bad .registry__state { background: var(--bad); }
.registry--none { color: var(--muted); }
.registry__body { display: grid; gap: 1px; min-width: 0; }
.registry__name { font-weight: 500; }
.registry__detail { font-size: 13px; color: var(--ink-2); }
.registry--none .registry__detail, .registry--none .registry__name { color: var(--muted); }
.registry__snap { font-size: 12px; white-space: nowrap; padding-top: 2px; }

/* ---------- timeline ---------- */
.timeline { display: grid; position: relative; margin-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl { position: relative; padding: 6px 0 14px 26px; display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: baseline; font-size: 13.5px; }
.tl::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--data); }
.tl--tax::before { border-color: var(--bad); }
.tl--capital::before { border-color: var(--warn); }
.tl--registry::before { border-color: var(--brand); }
.tl__date { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- sources ---------- */
.sources { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-2); padding: 0 4px; }
.sources__label { color: var(--muted); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer__row { display: flex; justify-content: space-between; gap: 24px; padding: 18px 20px; font-size: 12.5px; color: var(--muted); }
.footer__disclaimer { max-width: 720px; }

/* ---------- page-load: единственная оркестрированная анимация — кольцо индекса ---------- */
@media (prefers-reduced-motion: no-preference) {
  .gauge__seg { animation: seg-in .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--seg-i) * 90ms); }
  @keyframes seg-in { from { stroke-dasharray: 0 999; } }
  .factor__fill { transform-origin: left; animation: bar-in .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: .2s; }
  @keyframes bar-in { from { transform: scaleX(0); } }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: 300px minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid__side { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .registries { grid-template-columns: 1fr; }
  .hero__inner { flex-direction: column; }
  .hero__actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .hero__name { font-size: 24px; }
  .topbar__row { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .subnav { top: 0; }
  .datalist__row { grid-template-columns: 1fr; gap: 2px; }
  .buyer { grid-template-columns: minmax(0, 1fr) auto 40px; grid-template-areas: "name amt pct" "bar bar bar"; }
  .buyer__cnt { display: none; }
  .tl { grid-template-columns: 1fr; gap: 2px; }
  .hero-home__title { font-size: 30px; }
}

/* ---------- print ---------- */
.is-print body { background: #fff; }
.is-print .card-grid { grid-template-columns: 1fr; }
.is-print .card-grid__side { position: static; }
@media print {
  .topbar, .subnav, .footer, .hero__actions { display: none !important; }
  .panel, .kpi { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .card-grid { grid-template-columns: 1fr; }
  .gauge__seg, .factor__fill { animation: none !important; }
}
