/* frontend/css/clinic.css | the clinic: chrome, pages and dialogs (v2.49)
 *
 * The clinic's pages were one stylesheet's afterthought -- letters standing in
 * for icons, a page card per screen, two headers stacked above the app. They are
 * rebuilt here on the shared tokens (frontend/shared/tokens.css), which since
 * v2.49 carry the Avesta brand's own palette, so the studio and the public site
 * read as one product.
 *
 *   chrome     the shared header (shell.js) is the only bar; the sidebar holds the
 *              clinic's sections, or -- in the studio -- the case and its steps
 *   pages      a page header, then cards; tables for lists, tiles for counts
 *   status     a pill: a dot and a word, never colour alone
 *
 * Loaded after app.css. Rules here use their own classes (cl-*) and restyle
 * only the chrome the clinic owns (#sidebar, .btn, the dialogs), so the studio's
 * panels keep their own rules.
 */

/* ------------------------------------------------------------ the frame --- */
#layout { height: calc(100vh - var(--shell-h)); }
html, body { background: var(--canvas); font-size: var(--text-base); }
body { color: var(--ink); }

#sidebar {
  width: 232px;
  flex: 0 0 232px;
  background: var(--surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-inline-end: 1px solid var(--line);
  padding: 14px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#sidebar > div:not(.side-foot) { display: flex; flex-direction: column; gap: 2px; }
#sidebar > div.hidden { display: none !important; }
#sidebar .nav-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-3);
  margin: 14px 10px 6px;
}
#sidebar .step {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-weight: 500;
  gap: 10px;
  position: relative;
}
#sidebar .step:hover:not(:disabled) { background: var(--canvas); color: var(--ink); }
#sidebar .step.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
#sidebar .step.active .nav-ic { color: var(--accent); }
#sidebar .num { background: var(--sunken); color: var(--ink-2); }
#sidebar .step.active .num { background: var(--accent); color: var(--accent-on); }
.nav-ic { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; color: var(--ink-3); }
.nav-ic svg { width: 18px; height: 18px; }
.nav-sep { height: 1px; background: var(--line-soft); margin: 10px 8px; }
.nav-pip {
  margin-inline-start: auto;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-on);
  font-size: var(--text-xs); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-pip[hidden] { display: none; }

.side-back {
  display: flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 500; cursor: pointer; text-align: start;
}
.side-back:hover { background: var(--canvas); }
.side-back .nav-ic { color: var(--accent); }
.side-context { padding: 2px 0 4px; }
.side-context .nav-label { margin-block-start: 12px; }
#crumb.crumb { padding: 0 10px; font-weight: 600; color: var(--ink); line-height: var(--leading-tight); }

.side-foot {
  margin-block-start: auto;
  padding: 12px 10px 4px;
  border-block-start: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.side-clinic { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-clinic:empty { display: none; }
.mode-badge { font-size: var(--text-xs); color: var(--ink-3); }

#pageWrap { padding: 0; background: var(--canvas); }

/* ---------------------------------------------------------------- buttons --- */
/* One button for the product: the brand has no glow, and a 36px target. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  font-weight: 500; line-height: 1.2; white-space: nowrap;
  text-decoration: none;
}
.btn .ic { width: 16px; height: 16px; flex: 0 0 16px; }
.btn.sm { min-height: 30px; padding: 5px 11px; border-radius: var(--radius); }
.btn.sm .ic { width: 15px; height: 15px; }
.btn.primary, .btn.primary:hover:not(:disabled) { box-shadow: none; }
.btn.primary { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.btn.primary:hover:not(:disabled) { background: var(--accent-ink); }
.btn.danger { color: var(--danger); border-color: var(--line); }
.btn.danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn.block { display: flex; width: 100%; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a.btn:hover { text-decoration: none; }

/* -------------------------------------------------------------- the page --- */
.cl-page { max-width: 1200px; margin: 0 auto; padding: 22px 28px 64px; display: flex; flex-direction: column; gap: 18px; }
.cl-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cl-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.cl-head h1 { margin: 0; font-size: var(--text-xl); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.cl-head .cl-sub { margin: 4px 0 0; color: var(--ink-3); }
.cl-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-3); font-size: var(--text-sm); margin-block-end: 6px; }
.cl-crumbs a { color: var(--ink-2); text-decoration: none; }
.cl-crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.cl-crumbs .ic { width: 14px; height: 14px; }

.cl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.cl-card-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; border-block-end: 1px solid var(--line-soft);
}
.cl-card-head h2 { margin: 0; font-size: var(--text-md); font-weight: 600; flex: 1 1 auto; display: flex; align-items: center; gap: 8px; }
.cl-card-head h2 .ic { width: 18px; height: 18px; color: var(--ink-3); }
.cl-card-head .cl-sub { color: var(--ink-3); font-size: var(--text-sm); }
.cl-card-body { padding: 16px 18px; }
.cl-card-body.flush { padding: 0; }
.cl-card-foot { padding: 12px 18px; border-block-start: 1px solid var(--line-soft); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cl-note { color: var(--ink-3); font-size: var(--text-sm); margin: 0; max-width: 70ch; }
.cl-note.block { margin-block-start: 10px; }

.cl-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
.cl-grid > .cl-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 1100px) { .cl-grid { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- tiles --- */
.cl-tiles { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cl-tile, .cl-tile:hover, .cl-tab, .cl-chip, .cl-steps a, .cl-list a.btn, .cl-card-head a.btn { text-decoration: none; }
.cl-tile {
  display: flex; flex-direction: column; gap: 6px; text-align: start;
  padding: 14px 16px; min-height: 104px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); color: var(--ink); font: inherit; cursor: pointer;
}
.cl-tile:hover { border-color: var(--accent); }
.cl-tile .t-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: var(--text-sm); font-weight: 500; }
.cl-tile .t-top .ic { width: 18px; height: 18px; color: var(--ink-3); }
.cl-tile b { font-size: 26px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cl-tile .t-hint { color: var(--ink-3); font-size: var(--text-sm); }
.cl-tile.warn { border-color: var(--warn); }
.cl-tile.warn b { color: var(--warn); }
.cl-tile.accent b { color: var(--accent-ink); }

/* --------------------------------------------------------- task lists --- */
.cl-list { list-style: none; margin: 0; padding: 0; }
.cl-list > li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-block-end: 1px solid var(--line-soft); }
.cl-list > li:last-child { border-block-end: none; }
.cl-list .l-ic {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sunken); color: var(--ink-2);
}
.cl-list .l-ic .ic { width: 17px; height: 17px; }
.cl-list .l-ic.accent { background: var(--accent-soft); color: var(--accent-ink); }
.cl-list .l-ic.warn { background: var(--warn-soft); color: var(--warn); }
.cl-list .l-ic.ok { background: var(--ok-soft); color: var(--ok); }
.cl-list .l-main { flex: 1 1 auto; min-width: 0; }
.cl-list .l-title { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.cl-list .l-meta { color: var(--ink-3); font-size: var(--text-sm); margin-block-start: 2px; }
.cl-list a.l-title { text-decoration: none; }
.cl-list a.l-title:hover { color: var(--accent-ink); text-decoration: underline; }

/* -------------------------------------------------------------- tables --- */
.cl-table-wrap { overflow-x: auto; }
table.cl-table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
table.cl-table th {
  text-align: start; font-size: var(--text-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-3); background: var(--canvas);
  padding: 9px 14px; border-block-end: 1px solid var(--line); white-space: nowrap;
}
table.cl-table td { padding: 11px 14px; border-block-end: 1px solid var(--line-soft); vertical-align: middle; }
table.cl-table tr:last-child td { border-block-end: none; }
table.cl-table tr.click { cursor: pointer; }
table.cl-table tr.click:hover td { background: var(--canvas); }
table.cl-table tr.click:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
table.cl-table td.num, table.cl-table th.num { text-align: end; font-variant-numeric: tabular-nums; }
table.cl-table td.go { width: 28px; color: var(--ink-3); }
table.cl-table td.go .ic { width: 16px; height: 16px; }
.cl-name { font-weight: 600; color: var(--ink); }
.cl-dim { color: var(--ink-3); font-size: var(--text-sm); }
.cl-mono { font-family: var(--font-mono); font-size: var(--text-sm); }

/* ---------------------------------------------------------------- pills --- */
.cl-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  font-size: var(--text-sm); font-weight: 500;
  background: var(--sunken); color: var(--ink-2);
}
.cl-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.cl-pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
.cl-pill.ok { background: var(--ok-soft); color: var(--ok); }
.cl-pill.warn { background: var(--warn-soft); color: var(--warn); }
.cl-pill.danger { background: var(--danger-soft); color: var(--danger); }
.cl-pill.plain::before { display: none; }

.cl-prod { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); white-space: nowrap; }
.cl-prod .ic { width: 16px; height: 16px; color: var(--ink-3); }

/* ------------------------------------------------------------- toolbar --- */
.cl-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 18px; border-block-end: 1px solid var(--line-soft); }
.cl-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.cl-search .ic { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.cl-search input { width: 100%; padding-inline-start: 34px; min-height: 36px; }
.cl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cl-chip {
  min-height: 30px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: var(--text-sm); font-weight: 500; cursor: pointer;
}
.cl-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.cl-chip .n { opacity: .7; margin-inline-start: 4px; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------- empty state --- */
.cl-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 18px; }
.cl-empty .e-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.cl-empty .e-ic .ic { width: 22px; height: 22px; }
.cl-empty h3 { margin: 6px 0 0; font-size: var(--text-md); }
.cl-empty p { margin: 0; color: var(--ink-3); max-width: 48ch; }
.cl-empty .btn { margin-block-start: 8px; }
.cl-empty.small { padding: 18px; }

/* --------------------------------------------------------- the case page --- */
.cl-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.cl-facts dt { color: var(--ink-3); }
.cl-facts dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

.cl-rail { display: flex; gap: 0; list-style: none; margin: 0; padding: 14px 18px; overflow-x: auto; }
.cl-rail li { flex: 1 1 0; min-width: 120px; display: flex; flex-direction: column; gap: 6px; position: relative; padding-inline-end: 10px; }
.cl-rail li::before { content: ""; height: 3px; border-radius: 3px; background: var(--line); }
.cl-rail li.done::before { background: var(--accent); }
.cl-rail li.now::before { background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); }
.cl-rail .r-k { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.cl-rail .r-v { font-weight: 600; color: var(--ink-2); }
.cl-rail li.done .r-v, .cl-rail li.now .r-v { color: var(--ink); }

.cl-version { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-version .uid { font-family: var(--font-mono); font-weight: 600; }
.cl-version .cl-dim { margin-inline-start: auto; }

.cl-choices { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block-start: 14px; }
@media (max-width: 720px) { .cl-choices { grid-template-columns: minmax(0, 1fr); } }
.cl-choice {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.cl-choice.lead { border-color: var(--accent); background: linear-gradient(0deg, var(--surface), var(--surface)), var(--accent-soft); }
.cl-choice .c-head { display: flex; align-items: center; gap: 10px; }
.cl-choice .c-ic { width: 34px; height: 34px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cl-choice .c-ic .ic { width: 18px; height: 18px; }
.cl-choice h3 { margin: 0; font-size: var(--text-md); }
.cl-choice p { margin: 0; color: var(--ink-2); }
.cl-choice .c-price { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cl-choice .btn { margin-block-start: auto; align-self: flex-start; }

.cl-strip { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius); background: var(--canvas); margin-block-start: 12px; }
.cl-strip .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }
.cl-strip.ok .ic { color: var(--ok); }
.cl-strip .s-main { flex: 1 1 260px; min-width: 0; }
.cl-strip .s-main b { display: block; }
.cl-strip .s-main span { color: var(--ink-3); font-size: var(--text-sm); }

.cl-fields { display: grid; gap: 12px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cl-fields .wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .cl-fields { grid-template-columns: minmax(0, 1fr); } }
.cl-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cl-field > span { font-size: var(--text-sm); color: var(--ink-2); font-weight: 500; }
.cl-field input, .cl-field select, .cl-field textarea { width: 100%; }
.cl-field small { color: var(--ink-3); }

.cl-older { margin-block-start: 12px; }
.cl-older summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }

.cl-trend { width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------ the money --- */
.cl-balance { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cl-balance b { font-size: 30px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cl-balance.neg b { color: var(--danger); }
.cl-packs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.cl-pack {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; text-align: start;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  font: inherit; color: var(--ink); cursor: pointer;
}
.cl-pack b { font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.cl-pack span { color: var(--ink-3); font-size: var(--text-sm); }
.cl-pack[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.cl-bank { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.cl-bank dt { color: var(--ink-3); }
.cl-bank dd { margin: 0; font-family: var(--font-mono); overflow-wrap: anywhere; }
.amount-in { color: var(--ok); }
.amount-out { color: var(--ink); }

/* ------------------------------------------------------------- settings --- */
.cl-tabs { display: flex; gap: 2px; border-block-end: 1px solid var(--line); flex-wrap: wrap; }
.cl-tab {
  padding: 9px 14px; border: none; background: transparent; color: var(--ink-2);
  font: inherit; font-weight: 500; cursor: pointer; border-block-end: 2px solid transparent; margin-block-end: -1px;
  display: inline-flex; align-items: center; gap: 7px;
}
.cl-tab .ic { width: 16px; height: 16px; }
.cl-tab[aria-selected="true"] { color: var(--accent-ink); border-block-end-color: var(--accent); font-weight: 600; }
.cl-tab:hover { color: var(--ink); }

/* ------------------------------------------------------ the first steps --- */
.cl-steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cl-steps li { counter-increment: s; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.cl-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--sunken); color: var(--ink-2); font-weight: 700; font-size: var(--text-sm); display: inline-flex; align-items: center; justify-content: center; }
.cl-steps li.done::before { content: "\2713"; background: var(--ok-soft); color: var(--ok); }
.cl-steps b { color: var(--ink); }
.cl-steps span { color: var(--ink-3); font-size: var(--text-sm); }
.cl-steps a { color: var(--accent-ink); font-weight: 500; font-size: var(--text-sm); text-decoration: none; margin-block-start: auto; }
.cl-steps a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- dialogs --- */
/* The studio's own dialogs keep the card's padding; the clinic's are built of a
   head, a body and a foot (.cl-dialog), and the card gives them the edges. */
.modal-card { border-radius: var(--radius-lg); background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
.modal-card:has(> .cl-dialog) { padding: 0; width: 540px; }
.cl-dialog .modal-head { padding: 16px 20px; margin: 0; border-block-end: 1px solid var(--line-soft); }
.cl-dialog .modal-head h3 { font-size: var(--text-md); font-weight: 600; }
.cl-dialog .modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.cl-dialog .modal-foot { padding: 12px 20px 16px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; border-block-start: 1px solid var(--line-soft); }
.cl-dialog .modal-body > p { margin: 0; color: var(--ink-2); }
.cl-dialog .err { color: var(--danger); font-size: var(--text-sm); margin: 0; }
.cl-dialog .err:empty { display: none; }
.cl-radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cl-radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; }
.cl-radio-card input { margin-block-start: 3px; accent-color: var(--accent); width: auto; flex: none; min-height: 0; }
.cl-radio-card b { display: block; }
.cl-radio-card span { color: var(--ink-3); font-size: var(--text-sm); }
.cl-radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cl-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; background: var(--canvas); border-radius: var(--radius); }
.cl-sum span { color: var(--ink-2); }
.cl-sum b { font-variant-numeric: tabular-nums; text-align: end; }
.cl-sum .total { border-block-start: 1px solid var(--line); padding-block-start: 6px; font-weight: 600; }

/* --------------------------------------------------------------- sign-in --- */
.auth-overlay { background: var(--canvas); backdrop-filter: none; -webkit-backdrop-filter: none; }
.auth-card { width: 400px; background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 28px 30px; }
.auth-head .brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; }
.auth-head .brand b { color: var(--accent-ink); font-weight: 600; }
.auth-logo { width: 32px; height: 32px; border-radius: 8px; }
.auth-card h2 { font-size: var(--text-lg); margin: 18px 0 4px; }
.auth-lead { color: var(--ink-3); margin: 0 0 16px; }
.auth-lead:empty { display: none; }
.auth-foot { color: var(--ink-3); font-size: var(--text-sm); margin: 14px 0 0; text-align: center; }
.auth-foot:empty { display: none; }

/* -------------------------------------------------------------- narrow --- */
@media (max-width: 860px) {
  #sidebar { width: 64px; flex-basis: 64px; padding-inline: 8px; }
  #sidebar .step span[data-i18n], #sidebar .nav-label, .side-context, .side-foot, .nav-pip { display: none; }
  #sidebar .step, .side-back { justify-content: center; padding-inline: 0; }
  .side-back span[data-i18n] { display: none; }
  .cl-page { padding: 16px; }
}
