/* Analytics «Здоровье бизнеса». Colours are tokens; dark values are redefined below. */
.hb-root {
  --hb-card: #ffffff;
  --hb-soft: #f3f6f9;
  --hb-line: var(--v4-line, #dfe6ec);
  --hb-ink: var(--v4-ink, #17212b);
  --hb-muted: var(--v4-muted, #71808e);
  --hb-accent: #3390ec;
  --hb-bar: #3390ec;
  --hb-good: #1f8a5b;
  --hb-good-soft: #e7f6ee;
  --hb-bad: #c8473a;
  --hb-bad-soft: #fdecea;
  --hb-hero: #111b28;
  --hb-hero-line: #172536;
  --hb-hero-muted: #9fb0c2;
  display: grid;
  gap: 16px;
  min-width: 0;
  color: var(--hb-ink);
  font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .hb-root {
  --hb-card: #1c1c1e;
  --hb-soft: #2c2c2e;
  --hb-line: #38383a;
  --hb-ink: #ffffff;
  --hb-muted: #9d9da3;
  --hb-accent: #0a84ff;
  --hb-bar: #0a84ff;
  --hb-good: #30d158;
  --hb-good-soft: #16301f;
  --hb-bad: #ff6b5e;
  --hb-bad-soft: #3a1d1b;
  --hb-hero: #0d1621;
  --hb-hero-line: #24364a;
}
.hb-root * { box-sizing: border-box; }

.hb-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 4px; }
.hb-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.hb-head p { margin: 0; font-size: 13px; color: var(--hb-muted); }

/* Hero + tiles */
.hb-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; }
.hb-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 100%; padding: 26px 28px; border: 1px solid var(--hb-hero-line); border-radius: 24px;
  background:
    radial-gradient(circle at 12% 8%, rgba(77, 165, 255, .27), transparent 38%),
    radial-gradient(circle at 92% 96%, rgba(87, 236, 184, .14), transparent 34%),
    var(--hb-hero);
  color: #ffffff; box-shadow: 0 22px 50px rgba(16, 27, 40, .16);
}
.hb-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .4) .7px, transparent .8px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(115deg, transparent 5%, #000 45%, transparent 95%);
  mask-image: linear-gradient(115deg, transparent 5%, #000 45%, transparent 95%);
}
.hb-hero > * { position: relative; z-index: 1; }
.hb-hero.is-negative { background: radial-gradient(circle at 12% 8%, rgba(255, 120, 100, .25), transparent 38%), #2a1517; border-color: #4a2224; }
.hb-hero-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hb-hero-muted); }
.hb-hero-value { font-size: clamp(40px, 4.6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.hb-hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hb-hero-foot > small { font-size: 14px; color: var(--hb-hero-muted); }
.hb-hero .hb-delta, .hb-hero .hb-delta.is-good, .hb-hero .hb-delta.is-bad { background: #ffffff1a; }
.hb-hero .hb-delta.is-good b { color: #7fe0a8; }
.hb-hero .hb-delta.is-bad b { color: #ffb4a8; }
.hb-hero .hb-delta small, .hb-hero .hb-delta.is-muted { color: var(--hb-hero-muted); }
.hb-hero-formula { margin: 0; padding-top: 16px; border-top: 1px solid #ffffff1f; font-size: 14px; color: var(--hb-hero-muted); }
.hb-hero-formula span { font-weight: 700; color: #ffffff; }
.hb-hero-formula em { font-style: normal; margin: 0 4px; }

.hb-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hb-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; min-height: 150px;
  padding: 20px 22px; border: 1px solid var(--hb-line); border-radius: 20px; background: var(--hb-card);
  color: var(--hb-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.hb-tile:hover { border-color: var(--hb-accent); box-shadow: 0 8px 24px rgba(51, 144, 236, .1); }
.hb-tile:focus-visible, .hb-cats button:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 2px; }
.hb-tile-label { display: flex; justify-content: space-between; width: 100%; font-size: 14px; font-weight: 600; color: var(--hb-muted); }
.hb-tile-label i { font-style: normal; opacity: .5; }
.hb-tile-value { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.hb-tile-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; }
.hb-tile-foot > small { font-size: 13px; color: var(--hb-muted); }

.hb-delta { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--hb-soft); font-size: 13px; white-space: nowrap; }
.hb-delta b { font-weight: 700; }
.hb-delta small { font-size: 12px; color: var(--hb-muted); }
.hb-delta.is-good { background: var(--hb-good-soft); }
.hb-delta.is-good b { color: var(--hb-good); }
.hb-delta.is-bad { background: var(--hb-bad-soft); }
.hb-delta.is-bad b { color: var(--hb-bad); }
.hb-delta.is-muted { color: var(--hb-muted); }

/* Expense categories */
.hb-card { padding: 22px 24px; border: 1px solid var(--hb-line); border-radius: 22px; background: var(--hb-card); }
.hb-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hb-card h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.hb-card > header b { font-size: 18px; }
.hb-cats { display: grid; margin: 0; padding: 0; list-style: none; }
.hb-cats li + li { border-top: 1px solid var(--hb-line); }
.hb-cats button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; width: 100%; padding: 14px 6px;
  border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.hb-cats button:hover { background: var(--hb-soft); }
.hb-cat-name { font-size: 15px; font-weight: 600; }
.hb-cat-sum { font-size: 15px; font-weight: 700; }
.hb-cat-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--hb-soft); overflow: hidden; }
.hb-cat-bar i { display: block; height: 100%; border-radius: inherit; background: var(--hb-bar); }
.hb-cats small { grid-column: 1 / -1; font-size: 13px; color: var(--hb-muted); }
.hb-empty { margin: 8px 0 0; color: var(--hb-muted); }

.hb-help { padding: 16px 22px; border: 1px solid var(--hb-line); border-radius: 18px; background: var(--hb-card); }
.hb-help summary { cursor: pointer; font-weight: 600; }
.hb-help dl { display: grid; gap: 10px; margin: 14px 0 2px; }
.hb-help dt { font-weight: 700; }
.hb-help dd { margin: 2px 0 0; color: var(--hb-muted); font-size: 14px; }

@media (max-width: 960px) {
  .hb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hb-tiles { gap: 10px; }
  .hb-tile { min-height: 128px; padding: 16px; border-radius: 18px; }
  .hb-tile-value { font-size: 22px; }
  .hb-hero { padding: 22px 20px; border-radius: 22px; }
  .hb-card { padding: 18px 16px; }
}

/* Work type chips and breakdown */
.hb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hb-chip { min-height: 36px; padding: 7px 14px; border: 1px solid var(--hb-line); border-radius: 999px; background: var(--hb-card); color: var(--hb-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.hb-chip:hover { border-color: var(--hb-accent); }
.hb-chip:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 2px; }
.hb-chip.is-on { border-color: var(--hb-accent); background: var(--hb-accent); color: #ffffff; }
.hb-chips-sep { display: none; }
.hb-chip.is-drawings::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #d9932d; vertical-align: 1px; }
.hb-chip.is-drawings.is-on { border-color: #d9932d; background: #d9932d; }
.hb-chip.is-drawings.is-on::before { background: #ffffff; }
.hb-scope { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--hb-soft); color: var(--hb-muted); font-size: 13px; }
.hb-types { display: grid; margin: 0; padding: 0; list-style: none; }
.hb-types li + li { border-top: 1px solid var(--hb-line); }
.hb-types button {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px 150px 150px; align-items: center; gap: 4px 20px;
  width: 100%; padding: 13px 6px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.hb-types button:hover { background: var(--hb-soft); }
.hb-types button.is-selected { background: color-mix(in srgb, var(--hb-accent) 12%, transparent); box-shadow: inset 3px 0 0 var(--hb-accent); }
.hb-types button:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 2px; }
.hb-types button.is-drawings .hb-type-name::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #d9932d; vertical-align: middle; }
.hb-type-name { font-size: 15px; font-weight: 600; }
.hb-type-count { font-size: 14px; color: var(--hb-muted); }
.hb-type-money { display: grid; justify-items: end; font-size: 15px; font-weight: 700; }
.hb-type-money small { font-size: 12px; font-weight: 500; color: var(--hb-muted); }
.hb-note { margin: 10px 0 0; font-size: 13px; color: var(--hb-muted); }
@media (max-width: 560px) {
  .hb-types button { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 12px 4px; }
  .hb-type-count { grid-column: 1; grid-row: 2; font-size: 13px; }
  .hb-type-money { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; white-space: nowrap; }
  .hb-type-money:nth-of-type(3) { grid-column: 2; grid-row: 1; }
  .hb-type-money:nth-of-type(4) { grid-column: 2; grid-row: 2; font-size: 13px; font-weight: 600; color: var(--hb-muted); }
  .hb-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
  .hb-chip { flex: none; }
}
.hb-type-also { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--hb-muted); }
.hb-types-total { display: grid; grid-template-columns: minmax(0, 1fr) 120px 150px 150px; align-items: center; gap: 4px 20px; margin-top: 4px; padding: 14px 6px 4px; border-top: 2px solid var(--hb-ink); font-size: 15px; }
.hb-types-total > span:first-child { font-weight: 700; }
.hb-types-total b { text-align: right; font-size: 16px; }
.hb-types-sub { margin: 18px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hb-muted); }
@media (max-width: 560px) {
  .hb-types-total { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 12px 4px 4px; }
  .hb-types-total .hb-type-count { grid-column: 1; grid-row: 2; }
  .hb-types-total b:nth-of-type(1) { grid-column: 2; grid-row: 1; }
  .hb-types-total b:nth-of-type(2) { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--hb-muted); }
}

/* Team: one card per staff member */
.hb-root {
  --hb-costs: #f0a43a;
  --hb-salary: #7c8cf8;
  --hb-kept: #2fb67c;
}
html[data-theme="dark"] .hb-root { --hb-costs: #ffb340; --hb-salary: #8e9bff; --hb-kept: #30d158; }
.hb-section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px 10px; }
.hb-section-head h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.hb-staff-grid { display: grid; gap: 14px; }
.hb-staff-card {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "head stats" "result stats" "flow stats" "actions actions";
  gap: 18px 28px; padding: 24px 26px; border: 1px solid var(--hb-line); border-radius: 24px; background: var(--hb-card);
  transition: border-color .15s, box-shadow .15s;
}
.hb-staff-card.is-selected { border-color: var(--hb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hb-accent) 18%, transparent); }
.hb-staff-head { grid-area: head; display: flex; align-items: center; gap: 14px; min-width: 0; }
.hb-staff-head h4 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.hb-staff-head small { color: var(--hb-muted); font-size: 13px; }
.hb-staff-avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(140deg, #4da5ff, #2b7de0); color: #ffffff; font-size: 20px; font-weight: 800; }
.hb-staff-share { margin-left: auto; padding: 5px 11px; border-radius: 999px; background: var(--hb-soft); color: var(--hb-ink); font-size: 13px; font-weight: 650; white-space: nowrap; }
.hb-staff-result { grid-area: result; display: grid; gap: 4px; }
.hb-staff-result span { color: var(--hb-muted); font-size: 14px; font-weight: 600; }
.hb-staff-result strong { color: var(--hb-kept); font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.hb-staff-result.is-negative strong { color: var(--hb-bad); }
.hb-staff-flow { grid-area: flow; display: grid; gap: 12px; }
.hb-staff-bar { display: flex; gap: 3px; height: 14px; overflow: hidden; border-radius: 99px; background: var(--hb-soft); }
.hb-staff-bar i { display: block; min-width: 0; height: 100%; }
.hb-staff-bar i:first-child { border-radius: 99px 0 0 99px; }
.hb-staff-bar i:last-child { border-radius: 0 99px 99px 0; }
.hb-staff-bar .is-costs, .hb-staff-legend .is-costs { background: var(--hb-costs); }
.hb-staff-bar .is-salary, .hb-staff-legend .is-salary { background: var(--hb-salary); }
.hb-staff-bar .is-kept, .hb-staff-legend .is-kept { background: var(--hb-kept); }
.hb-staff-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.hb-staff-legend li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hb-staff-legend li i { width: 10px; height: 10px; border-radius: 3px; }
.hb-staff-legend span { color: var(--hb-muted); }
.hb-staff-legend b { font-weight: 700; }
.hb-staff-stats { grid-area: stats; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.hb-staff-stat { display: grid; align-content: start; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--hb-soft); }
.hb-staff-stat span { color: var(--hb-muted); font-size: 13px; font-weight: 600; }
.hb-staff-stat strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.hb-staff-stat small { color: var(--hb-muted); font-size: 12px; }
.hb-staff-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.hb-staff-actions button { min-height: 40px; padding: 8px 16px; border: 1px solid var(--hb-line); border-radius: 12px; background: var(--hb-card); color: var(--hb-ink); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.hb-staff-actions button:hover { border-color: var(--hb-accent); }
.hb-staff-actions button:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 2px; }
.hb-staff-actions button[aria-pressed="true"] { border-color: var(--hb-accent); background: var(--hb-accent); color: #ffffff; }
@media (max-width: 960px) {
  .hb-staff-card { grid-template-columns: 1fr; grid-template-areas: "head" "result" "flow" "stats" "actions"; }
}
@media (max-width: 560px) {
  .hb-staff-card { gap: 16px; padding: 18px 16px; border-radius: 22px; }
  .hb-staff-stat { padding: 13px 14px; }
  .hb-staff-stat strong { font-size: 18px; }
  .hb-staff-legend { gap: 8px 16px; }
  .hb-staff-actions button { flex: 1; }
}

/* 2026-11-25 · Minimal header, tabs, «Сотрудники» */
.an-page .an-header-min .an-filters { align-items: center; gap: 8px; }
.an-page .an-header-min .an-filters select, .an-page .an-header-min .an-filters input, .an-page .an-header-min .an-more { height: 42px; }
.an-page .an-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.an-page .an-more b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #3390ec; color: #ffffff; font-size: 12px; }
.an-page .an-more.is-active { border-color: #3390ec; }
.an-switch { display: inline-flex; gap: 4px; width: fit-content; margin: 18px 0 4px; padding: 4px; border-radius: 14px; background: #e8eef3; }
.an-switch button { min-height: 38px; padding: 8px 18px; border: 0; border-radius: 10px; background: none; color: #5d7180; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.an-switch button.is-active { background: #ffffff; color: #17212b; box-shadow: 0 1px 4px rgba(23, 33, 43, .12); }
.an-switch button:focus-visible { outline: 2px solid #3390ec; outline-offset: 2px; }
.an-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.an-active-filters button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 12px; border: 1px solid #cfe3f6; border-radius: 999px; background: #eef6fe; color: #1a6fc4; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.an-active-filters button span { opacity: .6; font-size: 15px; line-height: 1; }
.an-active-filters button.is-reset { border-color: transparent; background: none; color: #71808e; }
.hb-range { margin: 8px 2px 0; color: var(--hb-muted); font-size: 13px; }
.hb-tile.is-static { cursor: default; }
.hb-tile.is-static:hover { border-color: var(--hb-line); box-shadow: none; }
.hb-tiles.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hb-staff-block { display: grid; gap: 14px; }
.hb-staff-block + .hb-staff-block { margin-top: 18px; }
.hb-staff-title { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.hb-staff-title h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.hb-staff-avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(140deg, #4da5ff, #2b7de0); color: #ffffff; font-size: 18px; font-weight: 800; }
.hb-staff-open { margin-left: auto; min-height: 38px; padding: 7px 14px; border: 1px solid var(--hb-line); border-radius: 12px; background: var(--hb-card); color: var(--hb-ink); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.hb-staff-open:hover { border-color: var(--hb-accent); }
.hb-staff-open:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 2px; }
html[data-theme="dark"] .an-switch { background: #1c1c1e; }
html[data-theme="dark"] .an-switch button { color: #9d9da3; }
html[data-theme="dark"] .an-switch button.is-active { background: #2c2c2e; color: #ffffff; box-shadow: none; }
html[data-theme="dark"] .an-active-filters button { border-color: #173b62; background: #192f47; color: #9ccfff; }
html[data-theme="dark"] .an-active-filters button.is-reset { border-color: transparent; background: none; color: #9d9da3; }
html[data-theme="dark"] .an-page .an-more b { background: #0a84ff; }
@media (max-width: 960px) { .hb-tiles.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .an-page .an-header-min .an-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .an-page .an-header-min .an-month { display: none; }
  .an-switch { display: flex; width: 100%; }
  .an-switch button { flex: 1; padding: 8px 10px; font-size: 14px; }
}
.hb-tile.is-static { min-height: 0; }

/* 2026-11-26 · Charts: types of work and expenses, with one shared tooltip */
.hb-root {
  --hb-s1: #2a78d6; --hb-s2: #eb6834; --hb-s3: #1baf7a; --hb-s4: #eda100; --hb-s5: #e87ba4; --hb-s6: #6250d6; --hb-s0: #a3adb7;
  --hb-quoted: #bcd7f5; --hb-paid: #2a78d6;
}
html[data-theme="dark"] .hb-root {
  --hb-s1: #3987e5; --hb-s2: #d95926; --hb-s3: #199e70; --hb-s4: #c98500; --hb-s5: #d55181; --hb-s6: #9085e9; --hb-s0: #6e6e73;
  --hb-quoted: #22405f; --hb-paid: #3987e5;
}
.hb-root [data-slot="1"] { background: var(--hb-s1); } .hb-root [data-slot="2"] { background: var(--hb-s2); }
.hb-root [data-slot="3"] { background: var(--hb-s3); } .hb-root [data-slot="4"] { background: var(--hb-s4); }
.hb-root [data-slot="5"] { background: var(--hb-s5); } .hb-root [data-slot="6"] { background: var(--hb-s6); }
.hb-root [data-slot="0"] { background: var(--hb-s0); }
.hb-card > header b { font-size: 18px; }
.hb-legend { display: flex; gap: 18px; margin: 0 0 6px; padding: 0; list-style: none; color: var(--hb-muted); font-size: 13px; }
.hb-legend li { display: flex; align-items: center; gap: 7px; }
.hb-legend i { width: 12px; height: 12px; border-radius: 3px; }
.hb-legend .is-quoted { background: var(--hb-quoted); } .hb-legend .is-paid { background: var(--hb-paid); }

.hb-seg { display: flex; gap: 2px; height: 28px; margin: 10px 0 14px; }
.hb-seg-part { position: relative; min-width: 4px; flex-basis: 0; padding: 0; border: 0; border-radius: 4px; color: #ffffff; font: inherit; cursor: pointer; transition: filter .12s; }
.hb-seg-part span { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; white-space: nowrap; }
.hb-seg-part:hover, .hb-seg-part:focus-visible { filter: brightness(1.12); outline: none; box-shadow: 0 0 0 2px var(--hb-card), 0 0 0 4px var(--hb-ink); }

.hb-bars { display: grid; margin: 0; padding: 0; list-style: none; }
.hb-bar-row {
  display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr) 130px; align-items: center; gap: 4px 18px;
  width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.hb-bar-row:hover, .hb-bar-row:focus-visible { background: var(--hb-soft); outline: none; }
.hb-bar-row.is-selected { box-shadow: inset 3px 0 0 var(--hb-accent); background: color-mix(in srgb, var(--hb-accent) 8%, transparent); }
.hb-bar-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 15px; font-weight: 600; }
.hb-bar-name small { color: var(--hb-muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.hb-key { flex: none; align-self: center; width: 10px; height: 10px; border-radius: 3px; }
.hb-bar-track { position: relative; height: 20px; }
.hb-bar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; transition: filter .12s; }
.hb-bar-fill.is-quoted { position: relative; overflow: hidden; background: var(--hb-quoted); }
.hb-bar-fill.is-quoted .is-paid { position: absolute; inset: 0 auto 0 0; display: block; background: var(--hb-paid); }
.hb-bar-row:hover .hb-bar-fill, .hb-bar-row:focus-visible .hb-bar-fill { filter: brightness(1.08); }
.hb-bar-value { display: grid; justify-items: end; font-size: 15px; font-weight: 700; white-space: nowrap; }
.hb-bar-value small { color: var(--hb-muted); font-size: 12px; font-weight: 500; }
.hb-bar-row.is-drawings .hb-bar-name::before { content: ""; flex: none; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: #d9932d; }

.hb-tip {
  position: fixed; z-index: 9999; min-width: 200px; max-width: 280px; padding: 12px 14px; border-radius: 14px;
  background: #17212b; color: #ffffff; box-shadow: 0 12px 32px rgba(10, 20, 30, .28); pointer-events: none; font-size: 13px;
}
.hb-tip.is-touch { pointer-events: auto; }
.hb-tip strong { display: block; margin-bottom: 8px; font-size: 14px; }
.hb-tip dl { display: grid; gap: 5px; margin: 0; }
.hb-tip dl div { display: flex; justify-content: space-between; gap: 16px; }
.hb-tip dt { color: #a9b8c6; }
.hb-tip dd { margin: 0; font-weight: 700; white-space: nowrap; }
.hb-tip-open { width: 100%; margin-top: 10px; min-height: 36px; border: 0; border-radius: 10px; background: #3390ec; color: #ffffff; font: inherit; font-weight: 650; cursor: pointer; }
html[data-theme="dark"] .hb-tip { background: #2c2c2e; box-shadow: 0 12px 32px rgba(0, 0, 0, .6); }

@media (max-width: 680px) {
  .hb-bar-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name value" "track track"; gap: 6px 12px; padding: 10px 6px; }
  .hb-bar-name { grid-area: name; } .hb-bar-value { grid-area: value; } .hb-bar-track { grid-area: track; height: 14px; }
  .hb-seg-part span { display: none; }
}
.hb-bar-name { display: grid; gap: 1px; align-items: center; }
.hb-bar-name:has(.hb-key) { display: flex; align-items: center; }
@media (max-width: 680px) { .hb-bar-name { display: flex; align-items: baseline; flex-wrap: wrap; } }

/* 2026-11-26 · Vertical column charts */
.hb-cols { display: flex; align-items: stretch; gap: 6px; margin-top: 12px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.hb-col {
  flex: 1 0 96px; display: grid; grid-template-rows: auto 220px auto; justify-items: center; gap: 8px; min-width: 96px;
  padding: 10px 6px 12px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer;
}
.hb-col:hover, .hb-col:focus-visible { background: var(--hb-soft); outline: none; }
.hb-col.is-selected { background: color-mix(in srgb, var(--hb-accent) 9%, transparent); box-shadow: inset 0 -3px 0 var(--hb-accent); }
.hb-col-value { display: grid; gap: 1px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.hb-col-value small { color: var(--hb-muted); font-size: 12px; font-weight: 500; }
.hb-col-plot { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 220px; border-bottom: 1px solid var(--hb-line); }
.hb-col-bar { position: relative; display: block; width: 36px; border-radius: 4px 4px 0 0; transition: filter .12s; }
.hb-col-bar.is-quoted { overflow: hidden; background: var(--hb-quoted); }
.hb-col-bar.is-quoted .is-paid { position: absolute; inset: auto 0 0 0; display: block; background: var(--hb-paid); }
.hb-col:hover .hb-col-bar, .hb-col:focus-visible .hb-col-bar { filter: brightness(1.08); }
.hb-col-name { display: grid; gap: 2px; max-width: 120px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.hb-col-name small { color: var(--hb-muted); font-size: 12px; font-weight: 500; }
.hb-col.is-drawings .hb-col-name::before { content: ""; justify-self: center; width: 8px; height: 8px; margin-bottom: 2px; border-radius: 50%; background: #d9932d; }
.hb-cols-sep { flex: none; display: flex; align-items: flex-start; justify-content: center; width: 1px; margin: 0 10px; background: var(--hb-line); }
.hb-cols-sep small { writing-mode: vertical-rl; transform: rotate(180deg); margin-left: -14px; padding-top: 40px; color: var(--hb-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 680px) {
  .hb-cols { margin-left: -6px; margin-right: -6px; }
  .hb-col { flex-basis: 84px; min-width: 84px; grid-template-rows: auto 180px auto; }
  .hb-col-plot { height: 180px; }
  .hb-col-bar { width: 28px; }
}
.hb-col { align-content: start; }
.hb-col-value { min-height: 36px; align-content: end; }
.hb-root > *, .hb-card { min-width: 0; }
.hb-cols { max-width: 100%; }
@media (max-width: 680px) {
  .hb-col { flex-basis: 92px; min-width: 92px; padding-left: 4px; padding-right: 4px; }
  .hb-col-value { font-size: 13px; }
  .hb-col-word { display: none; }
  .hb-col-name { font-size: 12px; }
}

/* 2026-11-26 · Expenses donut */
.hb-root [data-slot-stroke="1"] { stroke: var(--hb-s1); } .hb-root [data-slot-stroke="2"] { stroke: var(--hb-s2); }
.hb-root [data-slot-stroke="3"] { stroke: var(--hb-s3); } .hb-root [data-slot-stroke="4"] { stroke: var(--hb-s4); }
.hb-root [data-slot-stroke="5"] { stroke: var(--hb-s5); } .hb-root [data-slot-stroke="6"] { stroke: var(--hb-s6); }
.hb-root [data-slot-stroke="0"] { stroke: var(--hb-s0); }
.hb-donut-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 36px; margin-top: 10px; }
.hb-donut { position: relative; width: 260px; height: 260px; }
.hb-donut svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hb-donut-part { stroke-width: 30; cursor: pointer; transition: stroke-width .15s, filter .15s; }
.hb-donut-part:hover { stroke-width: 36; filter: brightness(1.08); }
.hb-donut-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; pointer-events: none; }
.hb-donut-center strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hb-donut-center small { color: var(--hb-muted); font-size: 12px; }
.hb-donut-legend { display: grid; margin: 0; padding: 0; list-style: none; }
.hb-donut-legend li + li { border-top: 1px solid var(--hb-line); }
.hb-donut-legend button {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) 64px auto; align-items: center; gap: 12px; width: 100%; min-height: 48px;
  padding: 8px 8px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.hb-donut-legend button:hover, .hb-donut-legend button:focus-visible { background: var(--hb-soft); outline: none; }
.hb-donut-legend .hb-key { width: 12px; height: 12px; }
.hb-donut-name { font-size: 15px; font-weight: 600; }
.hb-donut-share { color: var(--hb-muted); font-size: 14px; text-align: right; }
.hb-donut-legend b { font-size: 15px; white-space: nowrap; text-align: right; min-width: 96px; }
@media (max-width: 760px) {
  .hb-donut-wrap { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .hb-donut { width: 220px; height: 220px; }
  .hb-donut-legend { width: 100%; }
  .hb-donut-legend button { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .hb-donut-share { display: none; }
}

/* 2026-11-26 · Compact donut and the pair row */
.hb-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.hb-donut-wrap { grid-template-columns: 170px minmax(0, 1fr); gap: 22px; }
.hb-donut { width: 170px; height: 170px; }
.hb-donut-part { stroke-width: 26; }
.hb-donut-part:hover { stroke-width: 31; }
.hb-donut-center strong { font-size: 18px; }
.hb-donut-center small { font-size: 11px; }
.hb-donut-legend button { grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; min-height: 40px; padding: 6px; }
.hb-donut-legend .hb-key { width: 10px; height: 10px; }
.hb-donut-name { font-size: 14px; }
.hb-donut-share { display: none; }
.hb-donut-legend b { min-width: 0; font-size: 14px; }
.hb-src { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.hb-src button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name value" "track track"; gap: 7px 12px;
  width: 100%; padding: 9px 8px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.hb-src button:hover, .hb-src button:focus-visible { background: var(--hb-soft); outline: none; }
.hb-src-name { grid-area: name; display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; }
.hb-src-name small { color: var(--hb-muted); font-size: 12px; font-weight: 500; }
.hb-src b { grid-area: value; font-size: 14px; white-space: nowrap; }
.hb-src-track { grid-area: track; height: 8px; border-radius: 99px; background: var(--hb-soft); overflow: hidden; }
.hb-src-track i { display: block; height: 100%; border-radius: 99px; background: var(--hb-paid); }
@media (max-width: 1100px) { .hb-pair { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .hb-donut { width: 170px; height: 170px; } }
.hb-donut-center strong { font-size: 15px; letter-spacing: -.01em; }
@media (max-width: 560px) {
  .hb-donut-wrap { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .hb-donut-legend { width: 100%; }
}

/* 2026-11-26 · Monthly trend */
.hb-root { --hb-rev: var(--hb-s1); --hb-exp: var(--hb-s2); --hb-line-c: var(--hb-ink); }
.hb-trend > header { flex-wrap: wrap; }
.hb-trend .hb-legend { margin: 0; }
.hb-legend .is-rev { background: var(--hb-rev); } .hb-legend .is-exp { background: var(--hb-exp); }
.hb-legend .is-line { width: 16px; height: 2px; border-radius: 2px; background: var(--hb-line-c); }
.hb-trend-chart { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: 240px auto; column-gap: 8px; margin-top: 16px; }
.hb-trend-axis { position: relative; }
.hb-trend-axis span { position: absolute; right: 0; transform: translateY(-50%); color: var(--hb-muted); font-size: 11px; white-space: nowrap; }
.hb-trend-plot { position: relative; }
.hb-trend-grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--hb-line); opacity: .6; }
.hb-trend-grid.is-zero { opacity: 1; background: color-mix(in srgb, var(--hb-ink) 35%, transparent); }
.hb-trend-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.hb-trend-line polyline { fill: none; stroke: var(--hb-line-c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hb-trend-cols { position: absolute; inset: 0; display: flex; }
.hb-trend-col { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.hb-trend-col:hover, .hb-trend-col:focus-visible { background: color-mix(in srgb, var(--hb-soft) 85%, transparent); outline: none; }
.hb-trend-col.is-selected { background: color-mix(in srgb, var(--hb-accent) 9%, transparent); }
.hb-trend-pair { position: absolute; inset: 0; display: flex; justify-content: center; gap: 2px; }
.hb-trend-bar { position: relative; display: block; width: min(16px, 28%); border-radius: 3px 3px 0 0; }
.hb-trend-pair { align-items: stretch; }
.hb-trend-pair .hb-trend-bar { position: absolute; }
.hb-trend-pair .is-rev { right: calc(50% + 1px); background: var(--hb-rev); }
.hb-trend-pair .is-exp { left: calc(50% + 1px); background: var(--hb-exp); }
.hb-trend-col.is-partial .hb-trend-bar { opacity: .55; }
.hb-trend-dot { position: absolute; left: 50%; z-index: 3; width: 9px; height: 9px; border: 2px solid var(--hb-card); border-radius: 50%; background: var(--hb-line-c); transform: translate(-50%, -50%); }
.hb-trend-dot.is-negative { background: var(--hb-bad); }
.hb-trend-labels { grid-column: 2; display: flex; margin-top: 8px; }
.hb-trend-labels span { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; color: var(--hb-muted); font-size: 12px; font-weight: 600; }
.hb-trend-labels span.is-selected { color: var(--hb-accent); }
.hb-trend-labels small { font-size: 10px; font-weight: 500; }
@media (max-width: 680px) {
  .hb-trend-chart { grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 200px auto; column-gap: 4px; }
  .hb-trend-axis span { font-size: 10px; }
  .hb-trend-bar { width: min(10px, 30%); }
  .hb-trend-labels span { font-size: 10px; }
}
/* three columns per month: billed, revenue, expenses */
.hb-root { --hb-quo: var(--hb-s3); --hb-tw: min(13px, 22%); }
.hb-legend .is-quo { background: var(--hb-quo); }
.hb-trend-pair .hb-trend-bar { width: var(--hb-tw); }
.hb-trend-pair .is-quo { right: auto; left: calc(50% - var(--hb-tw) * 1.5 - 2px); background: var(--hb-quo); }
.hb-trend-pair .is-rev { right: auto; left: calc(50% - var(--hb-tw) / 2); }
.hb-trend-pair .is-exp { left: calc(50% + var(--hb-tw) / 2 + 2px); }
@media (max-width: 680px) { .hb-root { --hb-tw: min(7px, 24%); } .hb-trend-pair .is-quo { left: calc(50% - var(--hb-tw) * 1.5 - 1px); } .hb-trend-pair .is-exp { left: calc(50% + var(--hb-tw) / 2 + 1px); } }
.hb-legend { flex-wrap: wrap; row-gap: 6px; }
/* «Выставлено» has one colour on the whole page: aqua; «оплачено» is revenue blue */
.hb-root { --hb-quoted: #bfe8d7; }
html[data-theme="dark"] .hb-root { --hb-quoted: #1c4a3b; }

/* 2026-11-26 · Institutions */
.hb-uni { display: grid; gap: 2px; margin: 8px 0 0; padding: 0; list-style: none; }
.hb-uni-row {
  display: grid; grid-template-columns: minmax(160px, 300px) minmax(0, 1fr) 130px; align-items: center; gap: 4px 18px;
  width: 100%; min-height: 50px; padding: 7px 8px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.hb-uni-row:hover, .hb-uni-row:focus-visible { background: var(--hb-soft); outline: none; }
.hb-uni-row.is-muted { opacity: .7; }
.hb-uni-name { display: grid; gap: 1px; min-width: 0; font-size: 14px; font-weight: 600; }
.hb-uni-name small { overflow: hidden; color: var(--hb-muted); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.hb-uni-bar { display: flex; gap: 2px; height: 18px; min-width: 6px; }
.hb-uni-bar i { display: block; min-width: 3px; flex-basis: 0; }
.hb-uni-bar i:first-child { border-radius: 4px 0 0 4px; }
.hb-uni-bar i:last-child { border-radius: 0 4px 4px 0; }
.hb-uni-bar i:only-child { border-radius: 4px; }
.hb-uni-value { display: grid; justify-items: end; font-size: 14px; font-weight: 700; white-space: nowrap; }
.hb-uni-value small { color: var(--hb-muted); font-size: 12px; font-weight: 500; }
@media (max-width: 680px) {
  .hb-uni-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name value" "bar bar"; gap: 6px 12px; padding: 10px 6px; }
  .hb-uni-name { grid-area: name; } .hb-uni-value { grid-area: value; } .hb-uni-bar { grid-area: bar; height: 12px; }
}
.hb-uni-label { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hb-uni-bar.is-empty { height: 0; }
.hb-uni li:last-child .hb-uni-row.is-muted { margin-top: 6px; border-top: 1px solid var(--hb-line); border-radius: 0 0 12px 12px; }

/* 2026-11-26 · «Avito» tab */
.hb-root.is-loading { opacity: .6; transition: opacity .2s; }
.hb-av-switch { display: inline-flex; gap: 4px; width: fit-content; padding: 4px; border-radius: 12px; background: var(--hb-soft); }
.hb-av-switch button { min-height: 34px; padding: 6px 14px; border: 0; border-radius: 9px; background: none; color: var(--hb-muted); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.hb-av-switch button.is-active { background: var(--hb-card); color: var(--hb-ink); box-shadow: 0 1px 4px rgba(23, 33, 43, .12); }
.hb-av-switch button:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 2px; }
.hb-av-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hb-av-kpis .hb-tile { padding: 16px 18px; gap: 8px; }
.hb-av-kpis .hb-tile-value { font-size: clamp(20px, 1.8vw, 26px); }
.hb-av-chart { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr) 70px; align-items: end; gap: 10px; margin-top: 14px; }
.hb-av-chart-title { align-self: center; color: var(--hb-muted); font-size: 13px; font-weight: 650; }
.hb-av-max { align-self: start; color: var(--hb-muted); font-size: 11px; }
.hb-av-bars { display: flex; align-items: stretch; gap: 2px; height: 96px; border-bottom: 1px solid var(--hb-line); }
.hb-av-day { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; border-radius: 4px; cursor: default; }
.hb-av-day:hover, .hb-av-day:focus-visible { background: var(--hb-soft); outline: none; }
.hb-av-day i { display: block; width: min(70%, 18px); border-radius: 3px 3px 0 0; }
.hb-av-day .is-contacts { background: var(--hb-s1); }
.hb-av-day .is-spend { background: var(--hb-s2); }
.hb-av-day.is-empty i { opacity: .3; }
.hb-av-dates { display: flex; gap: 2px; margin: 6px 80px 0 100px; }
.hb-av-dates span { flex: 1 1 0; min-width: 0; color: var(--hb-muted); font-size: 11px; text-align: center; }
.hb-av-best { margin: 0 0 12px; color: var(--hb-muted); font-size: 13px; }
.hb-av-best b { color: var(--hb-ink); }
.hb-heat { display: grid; grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.hb-heat-dow { color: var(--hb-muted); font-size: 11px; font-weight: 600; }
.hb-heat-cell { display: block; aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--hb-s1) calc(var(--a) * 100%), var(--hb-soft)); cursor: default; }
.hb-heat-cell:hover { outline: 2px solid var(--hb-ink); outline-offset: 1px; }
.hb-heat-hour { color: var(--hb-muted); font-size: 10px; text-align: center; }
.hb-av-accounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hb-av-acc dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 12px 0 0; }
.hb-av-acc dl div { display: grid; gap: 2px; }
.hb-av-acc dt { color: var(--hb-muted); font-size: 12px; }
.hb-av-acc dd { margin: 0; font-size: 17px; font-weight: 700; }
@media (max-width: 1100px) { .hb-av-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hb-av-accounts { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .hb-av-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hb-av-chart { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hb-av-max { display: none; }
  .hb-av-bars { height: 80px; }
  .hb-av-dates { margin: 6px 0 0; }
  .hb-heat { grid-template-columns: 22px repeat(24, minmax(0, 1fr)); gap: 2px; }
  .hb-heat-cell { border-radius: 2px; }
  .hb-av-switch { display: flex; width: 100%; } .hb-av-switch button { flex: 1; }
}
.hb-pair .hb-src button { padding-top: 7px; padding-bottom: 7px; gap: 5px 12px; }

/* 2026-11-26 · «Метрики» tab */
.hb-metric-group h3 { margin: 10px 2px 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.hb-metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hb-metric { position: relative; display: grid; align-content: start; gap: 8px; min-width: 0; padding: 16px 18px 14px; border: 1px solid var(--hb-line); border-radius: 18px; background: var(--hb-card); cursor: default; }
.hb-metric:hover, .hb-metric:focus-visible { border-color: var(--hb-accent); outline: none; }
.hb-metric-label { display: grid; gap: 2px; color: var(--hb-muted); font-size: 13px; font-weight: 600; line-height: 1.3; }
.hb-metric-label small { color: var(--hb-accent); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.hb-metric-value { font-size: clamp(20px, 1.7vw, 26px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.hb-metric-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hb-metric-spark { position: relative; flex: 0 1 90px; height: 30px; }
.hb-spark { display: block; width: 100%; height: 100%; overflow: visible; }
.hb-spark polyline { fill: none; stroke: var(--hb-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .8; }
.hb-spark-dot { position: absolute; width: 7px; height: 7px; border: 2px solid var(--hb-card); border-radius: 50%; background: var(--hb-accent); transform: translate(-50%, -50%); }
@media (max-width: 1200px) { .hb-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .hb-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .hb-metric { padding: 14px; } .hb-metric-spark { flex-basis: 56px; } }
.hb-metric-grid { grid-template-columns: repeat(var(--hb-cols, 5), minmax(0, 1fr)); }
@media (max-width: 1200px) { .hb-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .hb-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-switch { display: flex; width: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .an-switch button { flex: none; white-space: nowrap; padding: 8px 14px; }
}
.hb-tip-desc { margin: -2px 0 10px; color: #d5dee7; font-size: 13px; line-height: 1.4; }
.hb-tip:has(.hb-tip-desc) { max-width: 300px; }
.hb-tip dl:empty { display: none; }
html[data-theme="dark"] .hb-tip-desc { color: #c7c7cc; }
.hb-metric-group h3 small { margin-left: 6px; color: var(--hb-muted); font-size: 13px; font-weight: 500; }
.hb-metric.is-ltm { background: linear-gradient(145deg, var(--hb-card), color-mix(in srgb, var(--hb-accent) 5%, var(--hb-card))); }
.an-page .an-header-min .an-month.is-metrics { display: block; min-width: 170px; }
@media (max-width: 680px) { .an-page .an-header-min .an-filters:has(.is-metrics) { grid-template-columns: 1fr; } }
