/* =====================================================================
   AISkillCertificate · admin · STYLES (v1, 2026-11-15)
   Phone first. Uses only the semantic variables of /app/css/tokens.css (the «Середина» palette) and follows its
   dark theme (html.dark, set by js/main.js from prefers-color-scheme). The cabinet's components.css is not on the
   admin host, so the few shared looks (pill buttons, cards, badges) are restated here in the same style.
   The admin host's CSP allows styles from files only: no style="" anywhere; scripts set sizes through CSSOM.
   Breakpoint: ≤ 720 px the menu is a top bar; above it a left column.
   Naming: block__element, states is-*, modifiers --*. Section styles go in the marked block at the end.
   ===================================================================== */

/* ---------- chart colours (validated categorical slots 1–4, light and dark) ---------- */
:root { --chart-1: #2a78d6; --chart-2: #eb6834; --chart-3: #1baf7a; --chart-4: #eda100; color-scheme: light; }
html.dark { --chart-1: #3987e5; --chart-2: #d95926; --chart-3: #199e70; --chart-4: #c98500; color-scheme: dark; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--surface); color: var(--text); font: 400 var(--fs-16)/var(--lh-body) var(--font-ui); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-10); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.i { width: 20px; height: 20px; flex-shrink: 0; }
.i--sm { width: 16px; height: 16px; }
.noscript { padding: var(--s-6) 16px; text-align: center; }

/* while main.js asks the server: a quiet spinner in the empty page */
#admin { min-height: 100dvh; }
#admin[aria-busy="true"]:empty::after { content: ""; display: block; width: 28px; height: 28px; margin: 30vh auto 0; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons, badges, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding: var(--s-3) var(--s-6); border: 0; border-radius: var(--r-pill); background: var(--action); color: var(--action-text); font: 500 15px/21px var(--font-mono); text-transform: uppercase; text-decoration: none; transition: background-color var(--t-base) var(--ease), transform var(--t-fast) var(--ease); }
.btn:hover { background: var(--action-hover); }
.btn:active { transform: scale(.98); }
.btn[disabled] { background: var(--line); color: var(--text-2); cursor: default; transform: none; }
.btn--block { width: 100%; }
.btn--secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--sm { min-height: 40px; padding: var(--s-2) var(--s-4); font-size: 13px; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent-sand); color: var(--text); font: 500 11px/16px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.badge--ink { background: var(--surface-ink); color: var(--text-on-ink); }
.input { width: 100%; min-height: 52px; padding: 0 var(--s-4); border: 1.5px solid var(--line-strong); border-radius: var(--r-12); background: var(--surface); color: var(--text); font-size: var(--fs-16); }
.input:focus-visible { border-color: var(--text); border-radius: var(--r-12); }
.notice { padding: var(--s-3) var(--s-4); border-radius: var(--r-12); background: var(--tint); color: var(--text); font-size: var(--fs-14); line-height: 1.45; }
.logo { width: auto; height: 26px; }
.logo--dark { display: none; }
html.dark .logo--light { display: none; }
html.dark .logo--dark { display: block; }

/* ---------- sign-in ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: var(--s-6) 16px; background: var(--surface-2); }
.login__card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6) var(--s-5); border-radius: var(--r-24); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line), var(--sh-2); }
.login__brand { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.login__title { font-size: var(--fs-28); font-weight: 700; line-height: var(--lh-tight); letter-spacing: var(--tracking-head); }
.login__lead, .login__note { color: var(--text-2); font-size: var(--fs-14); line-height: 1.45; }
.login__error { padding: var(--s-3) var(--s-4); border-radius: var(--r-12); background: var(--warn-soft); color: var(--warn-ink); font-size: var(--fs-14); font-weight: 500; line-height: 1.45; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--fs-14); font-weight: 600; }
.solo { min-height: 100dvh; display: grid; place-items: center; padding: var(--s-6) 16px; }

/* ---------- frame: phone top bar ---------- */
.skip { position: absolute; left: 8px; top: -60px; z-index: 30; padding: var(--s-2) var(--s-4); border: 0; border-radius: var(--r-pill); background: var(--action); color: var(--action-text); }
.skip:focus-visible { top: 8px; }
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.shell__nav { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand foot" "items items"; align-items: center; gap: var(--s-1) var(--s-3); padding: var(--s-2) 16px 0; background: var(--surface); border-bottom: 1.5px solid var(--line); }
.brand { grid-area: brand; display: flex; align-items: center; gap: var(--s-2); min-width: 0; min-height: 44px; text-decoration: none; }
.brand .logo { height: 22px; }
/* phone: every section stays in sight; the items wrap onto a second row instead of hiding off the screen edge */
.shell__items { grid-area: items; display: flex; flex-wrap: wrap; gap: var(--s-1); padding: 0 0 var(--s-2); }
.nav__item { display: inline-flex; flex-shrink: 0; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-12); color: var(--text-2); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
@media (max-width: 420px) { .nav__item { padding: 0 var(--s-2); gap: 6px; } }
.nav__item:hover { background: var(--surface-2); color: var(--text); }
.nav__item.is-active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.shell__foot { grid-area: foot; display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.who { display: none; }
.nav__out { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-12); background: none; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.nav__out:hover { background: var(--surface-2); color: var(--text); }
.nav__out[disabled] { cursor: default; opacity: .6; }
.shell__main { flex: 1; min-width: 0; padding: var(--s-5) 16px var(--s-10); }
.shell__main:focus { outline: none; }

/* ---------- frame: desktop left column ---------- */
@media (min-width: 721px) {
  .shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); align-items: start; }
  .shell__nav { height: 100dvh; display: flex; flex-direction: column; align-items: stretch; gap: var(--s-1); padding: var(--s-5) var(--s-3); border-bottom: 0; border-right: 1.5px solid var(--line); }
  .brand { flex-direction: column; align-items: flex-start; gap: var(--s-2); padding: 0 var(--s-3) var(--s-5); }
  .brand .logo { height: 28px; }
  .shell__items { flex-direction: column; margin: 0; padding: 0; overflow: visible; }
  .nav__item { min-height: 48px; }
  .shell__foot { flex-direction: column; align-items: stretch; gap: var(--s-2); margin-top: auto; padding-top: var(--s-4); border-top: 1.5px solid var(--line); }
  .who { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 var(--s-3); min-width: 0; }
  .who__email { max-width: 100%; font-size: var(--fs-14); font-weight: 500; overflow-wrap: anywhere; }
  .shell__main { padding: var(--s-8) var(--s-8) var(--s-12); }
}

/* ---------- page ---------- */
.page { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3); }
.page__titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.page__title { font-size: var(--fs-24); font-weight: 700; line-height: var(--lh-tight); letter-spacing: var(--tracking-head); overflow-wrap: anywhere; }
.page__sub { color: var(--text-2); font-size: var(--fs-14); }
.page__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (min-width: 721px) { .page__title { font-size: var(--fs-28); } }

/* ---------- state boxes ---------- */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); padding: var(--s-8) var(--s-5); border-radius: var(--r-20); background: var(--surface-2); text-align: center; }
.state__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--text); }
.state__icon .i { width: 24px; height: 24px; }
.state__text { max-width: 46ch; color: var(--text); }
.state--error .state__icon, .state--unavailable .state__icon { background: var(--warn-soft); color: var(--warn-ink); }
.state--forbidden .state__icon { background: var(--tint); }
.state--loading .state__icon .i { animation: spin .9s linear infinite; }
.state--loading .state__text { color: var(--text-2); }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.kpi { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-20); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.kpi__label { color: var(--text-2); font-size: var(--fs-14); font-weight: 500; }
.kpi__value { font-size: var(--fs-28); font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.kpi__delta { color: var(--text-2); font-size: var(--fs-13); }
.kpi__delta.is-up .kpi__arrow { color: var(--success-ink); }
.kpi__delta.is-down .kpi__arrow { color: var(--warn-ink); }
.kpi__hint { color: var(--text-2); font-size: var(--fs-13); }
@media (min-width: 721px) { .kpis { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

/* ---------- tables ---------- */
.tbl { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
/* A shadow at the edge where the table is cut shows that it scrolls sideways (the cover gradients move with the
   content, the shadows stay with the box). */
.tbl__scroll { max-width: 100%; overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--r-16);
  background:
    linear-gradient(to right, var(--surface) 30%, transparent) left center / 32px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, transparent) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--line-strong), transparent) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--line-strong), transparent) right center / 12px 100% no-repeat scroll,
    var(--surface); }
.tbl__table .is-sticky { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.tbl__table th.is-sticky { background: var(--surface-2); }
@media (max-width: 720px) { .tbl__table .is-phone-hidden { display: none; } }
.tbl__table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.tbl__table th { padding: var(--s-3) var(--s-4); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-13); font-weight: 600; text-align: left; white-space: nowrap; }
.tbl__table td { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.tbl__table td.is-text { min-width: 8em; white-space: normal; overflow-wrap: break-word; }
.tbl__table .is-num { text-align: right; }
.tbl__table td.is-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tbl__table tr.is-link { cursor: pointer; }
.tbl__table tr.is-link:hover td { background: var(--surface-2); }
.tbl__table tr.is-link:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; box-shadow: none; }
.tbl__foot { display: flex; justify-content: flex-end; }
.tbl__csv { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--text); font: 500 13px/1 var(--font-mono); text-decoration: none; text-transform: uppercase; }
.tbl__csv:hover { background: var(--surface-2); }

/* ---------- bars ---------- */
.bars { display: flex; flex-direction: column; gap: var(--s-4); }
.bars__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: var(--fs-14); }
.bars__label { min-width: 0; overflow-wrap: anywhere; }
.bars__value { flex-shrink: 0; color: var(--text-2); }
.bars__track { height: 8px; margin-top: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bars__fill { width: 0; height: 100%; border-radius: 4px; background: var(--chart-1); }

/* ---------- line chart ---------- */
.line { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.line__legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-13); color: var(--text); }
.line__key { display: inline-flex; align-items: center; gap: 6px; }
.line__swatch { flex-shrink: 0; width: 14px; height: 3px; border-radius: 2px; background: var(--chart-1); }
.line__swatch--1 { background: var(--chart-2); }
.line__swatch--2 { background: var(--chart-3); }
.line__swatch--3 { background: var(--chart-4); }
.line__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-3); }
.line__y { display: flex; flex-direction: column; justify-content: space-between; height: 180px; color: var(--text-2); font-size: var(--fs-12); line-height: 1; text-align: right; }
.line__plot { position: relative; height: 180px; min-width: 0; border-radius: 2px; touch-action: pan-y; }
.line__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.line__grid { stroke: var(--line); stroke-width: 1; }
.line__path { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.line__path--1 { stroke: var(--chart-2); }
.line__path--2 { stroke: var(--chart-3); }
.line__path--3 { stroke: var(--chart-4); }
.line__x { grid-column: 2; display: flex; justify-content: space-between; gap: var(--s-2); color: var(--text-2); font-size: var(--fs-12); }
.line__guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-strong); pointer-events: none; }
.line__tip { position: absolute; top: 0; z-index: 2; min-width: 150px; max-width: 220px; display: flex; flex-direction: column; gap: 2px; padding: var(--s-2) var(--s-3); border-radius: var(--r-12); background: var(--surface); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); font-size: var(--fs-13); pointer-events: none; transform: translateX(-50%); }
.line__tip.is-start { transform: none; }
.line__tip.is-end { transform: translateX(-100%); }
.line__tipx { font-weight: 600; }
.line__tiprow { display: flex; align-items: center; gap: 6px; }
.line__tiplabel { flex: 1; min-width: 0; color: var(--text-2); }
@media (min-width: 721px) { .line__y, .line__plot { height: 220px; } }

/* ---------- filter bar ---------- */
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-20); background: var(--surface-2); }
.filter { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.filter--period, .filter--source, .filter--check { grid-column: 1 / -1; }
.filter__label { color: var(--text-2); font: 500 var(--fs-12)/1.3 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.filter__control { width: 100%; min-width: 0; min-height: 44px; padding: 0 var(--s-3); border: 1.5px solid var(--line-strong); border-radius: var(--r-12); background: var(--surface); color: var(--text); font-size: var(--fs-16); }
.filter__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-2); }
.filter__date { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.filter__sub { color: var(--text-2); font-size: var(--fs-12); }
.filter__error { grid-column: 1 / -1; color: var(--warn-ink); font-size: var(--fs-13); }
.filter--check { flex-direction: row; align-items: center; gap: var(--s-2); min-height: 44px; font-size: var(--fs-14); cursor: pointer; }
.filter--check input { width: 20px; height: 20px; margin: 0; accent-color: var(--action); }
@media (min-width: 721px) {
  .filters { display: flex; flex-wrap: wrap; align-items: flex-end; }
  .filter { width: 190px; }
  .filter--period { width: 300px; }
  .filter--source { width: 220px; }
  .filter--check { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   SECTIONS (Task 10): module styles only, below this line
   ===================================================================== */

/* ---------- sections: shared pieces (blocks of a page, the back link, note panels) ---------- */
.page__body, .blk__body { display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
.blk__body { gap: var(--s-4); }
.blk { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.blk__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); min-height: 40px; }
.blk__title { font-size: var(--fs-18); font-weight: 600; line-height: var(--lh-tight); }
.blk__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.blk__note { max-width: 75ch; color: var(--text-2); font-size: var(--fs-14); line-height: 1.45; }
.panel { padding: var(--s-4) var(--s-5) var(--s-5); border-radius: var(--r-20); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: calc(var(--s-3) * -1); color: var(--text-2); font-size: var(--fs-14); font-weight: 500; text-decoration: none; }
.back:hover { color: var(--text); }

/* ---------- overview: tiles, the funnel strip ---------- */
.ov-strip { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
.ov-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-16); background: var(--surface-2); }
.ov-step__label { min-width: 0; color: var(--text-2); font-size: var(--fs-14); font-weight: 500; overflow-wrap: anywhere; }
.ov-step__value { font-size: var(--fs-20); font-weight: 500; text-align: right; }
.ov-step__share { grid-column: 1 / -1; font-size: var(--fs-13); }
.ov-step__track { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.ov-step__fill { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--chart-1); }
@media (min-width: 1024px) {
  .ov-kpis, .ov-accounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ov-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
  .ov-step { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .ov-step__value { text-align: left; }
  /* the order of the steps, between the cards (the list is an <ol>, so it is said without the arrows too) */
  .ov-step:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: calc(var(--s-5) / -2); transform: translate(50%, -50%); color: var(--text-2); }
}

/* ---------- funnels: names with ids, flags, the legend, answer groups ---------- */
.fn-name { display: flex; flex-direction: column; gap: 2px; min-width: 10em; max-width: 36ch; }
.fn-name__title { font-weight: 500; overflow-wrap: anywhere; }
.fn-name__id { color: var(--text-2); font: 400 var(--fs-12)/1.3 var(--font-mono); overflow-wrap: anywhere; }
.fn-flag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 8px; border-radius: var(--r-pill); font-size: var(--fs-13); font-weight: 600; line-height: 20px; white-space: nowrap; }
.fn-flag--problem { background: var(--warn-soft); color: var(--warn-ink); }
.fn-flag--drop { background: var(--accent-soft); color: var(--text); }
.fn-flag--slow { background: var(--tint); color: var(--text); }
.fn-flag--small { background: var(--surface-3); color: var(--text-2); font-weight: 500; }
.fn-flag--inline { align-self: flex-start; margin-top: 4px; }
@media (min-width: 721px) { .fn-flag--inline { display: none; } }
.fn-legend { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-16); background: var(--surface-2); }
.fn-legend__title { font-size: var(--fs-14); font-weight: 600; }
.fn-legend__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2) var(--s-5); }
.fn-legend__item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-2); color: var(--text-2); font-size: var(--fs-13); line-height: 1.4; }
.fn-legend__note { color: var(--text-2); font-size: var(--fs-13); line-height: 1.4; }
@media (min-width: 1024px) { .fn-legend__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the quiz tables are wide (8 and 11 columns): headers may wrap and cells sit closer, so they fit on a desktop */
.fn-pack .tbl__table th { white-space: normal; vertical-align: bottom; }
.fn-pack .tbl__table th, .fn-pack .tbl__table td { padding-left: var(--s-2); padding-right: var(--s-2); }
.fn-pack .tbl__table th:first-child, .fn-pack .tbl__table td:first-child { padding-left: var(--s-4); }
.fn-pack .tbl__table th:last-child, .fn-pack .tbl__table td:last-child { padding-right: var(--s-4); }
.fn-group { display: flex; flex-direction: column; gap: var(--s-3); }
.fn-group + .fn-group { padding-top: var(--s-4); border-top: 1.5px solid var(--line); }
.fn-group__title { color: var(--text-2); font: 500 var(--fs-13)/1.3 var(--font-mono); overflow-wrap: anywhere; }

/* ---------- users: tiles, the search, the pager ---------- */
@media (min-width: 1024px) { .us-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.us-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-2) var(--s-3); }
.us-search__field { flex: 1 1 240px; }
.us-search .btn { min-height: 44px; }
.us-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); }
.us-pager__range { color: var(--text-2); font-size: var(--fs-14); }

/* ---------- system: the two notes, their links ---------- */
.sys-notes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.sys-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); margin-top: var(--s-1); }
.sys-links .btn { min-height: 44px; text-align: left; }
@media (min-width: 1024px) { .sys-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
