/* =====================================================================
   Zolt HR — components  (system/components.css)
   Requires tokens.css. Class names are short and literal; states use
   aria-* / data-* attributes where possible so markup stays honest.
   ===================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: var(--t-base); line-height: var(--lh-base);
  font-feature-settings: "ss01" 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: var(--brand-soft-2); color: var(--text); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.deva, :lang(hi) { font-family: var(--font-deva); }

/* ---------- Type ---------- */
.display { font-size: var(--t-7xl); line-height: var(--lh-7xl); font-weight: var(--w-semibold); letter-spacing: -0.035em; }
.h1 { font-size: var(--t-5xl); line-height: var(--lh-5xl); font-weight: var(--w-semibold); letter-spacing: -0.035em; margin: 0; }
.h2 { font-size: var(--t-3xl); line-height: var(--lh-3xl); font-weight: var(--w-semibold); letter-spacing: var(--track-tight); margin: 0; }
.h3 { font-size: var(--t-xl); line-height: var(--lh-xl); font-weight: var(--w-semibold); letter-spacing: var(--track-snug); margin: 0; }
.h4 { font-size: var(--t-md); line-height: var(--lh-md); font-weight: var(--w-semibold); margin: 0; }
.lead { font-size: var(--t-lg); line-height: var(--lh-lg); color: var(--text-2); }
.body-md { font-size: var(--t-md); line-height: var(--lh-md); }
.small { font-size: var(--t-sm); line-height: var(--lh-sm); }
.xs { font-size: var(--t-xs); line-height: var(--lh-xs); }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.overline { font-size: var(--t-sm); line-height: var(--lh-sm); font-weight: var(--w-medium); letter-spacing: 0; color: var(--text-3); }   /* sentence case: no shouting labels */
.num, .money, td.n, th.n { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
/* Big money: the rupee sign and paise sit lighter and smaller than the rupees */
.amount { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1; font-weight: var(--w-semibold); letter-spacing: -0.03em; white-space: nowrap; }
.amount .cur { font-weight: var(--w-medium); font-size: .62em; vertical-align: .38em; margin-right: .06em; color: var(--text-2); letter-spacing: 0; }
.amount .paise { font-size: .55em; font-weight: var(--w-medium); color: var(--text-3); letter-spacing: 0; }
.kbd { font: 500 11px/1 var(--font-sans); padding: 3px 5px; border-radius: var(--r-xs); border: 1px solid var(--border-strong); border-bottom-width: 2px; color: var(--text-2); background: var(--surface); }

/* ---------- Icons ---------- */
.ic { width: var(--icon-md); height: var(--icon-md); flex: none; fill: none; stroke: currentColor; stroke-width: var(--stroke-icon); stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: var(--icon-sm); height: var(--icon-sm); }
.ic-lg { width: var(--icon-lg); height: var(--icon-lg); }
.ic-xl { width: var(--icon-xl); height: var(--icon-xl); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--surface); --_fg: var(--text); --_bd: var(--border-strong); --_bg-h: var(--surface-hover); --_bg-a: var(--surface-press);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--control-md); padding: 0 var(--s-4); border-radius: var(--r-sm);
  border: 1px solid var(--_bd); background: var(--_bg); color: var(--_fg);
  font-size: var(--t-base); font-weight: var(--w-semibold); letter-spacing: -0.005em; line-height: 1; white-space: nowrap;
  cursor: pointer; user-select: none; text-decoration: none !important;
  box-shadow: var(--e-1);
  transition: background-color var(--d-instant) linear, border-color var(--d-instant) linear, transform var(--d-instant) var(--ease-press), box-shadow var(--d-quick) var(--ease-move);
}
.btn:hover { background: var(--_bg-h); }
.btn:active { background: var(--_bg-a); transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.btn .ic { width: var(--icon-sm); height: var(--icon-sm); stroke-width: 2; }
.btn-primary { --_bg: var(--brand); --_fg: var(--text-on-fill); --_bd: transparent; --_bg-h: var(--brand-hover); --_bg-a: var(--brand-press);
  box-shadow: 0 1px 0 rgb(255 255 255 / .14) inset, 0 1px 2px rgb(var(--shadow-color) / .18); }
.btn-dark { --_bg: var(--surface-inverse); --_fg: var(--text-inverse); --_bd: transparent; --_bg-h: var(--paper-800); --_bg-a: var(--paper-700); }
:root[data-theme="dark"] .btn-dark { --_bg-h: var(--paper-100); --_bg-a: var(--paper-150); }
.btn-ghost { --_bg: transparent; --_bd: transparent; --_fg: var(--text-2); box-shadow: none; }
.btn-ghost:hover { color: var(--text); }
.btn-danger { --_bg: var(--surface); --_fg: var(--danger-text); --_bd: var(--danger-line); --_bg-h: var(--danger-soft); --_bg-a: var(--danger-soft); }
.btn-danger-solid { --_bg: var(--red-600); --_fg: #fff; --_bd: transparent; --_bg-h: var(--red-700); --_bg-a: var(--red-700); }
.btn-link { --_bg: transparent; --_bd: transparent; --_fg: var(--brand-text); box-shadow: none; padding: 0; height: auto; }
.btn-link:hover { background: transparent; text-decoration: underline !important; text-underline-offset: 3px; }
.btn-sm { height: var(--control-sm); padding: 0 var(--s-3); font-size: var(--t-sm); gap: 6px; }
.btn-lg { height: var(--control-lg); padding: 0 var(--s-5); font-size: var(--t-md); border-radius: 8px; }
.btn-xl { height: var(--control-xl); padding: 0 var(--s-6); font-size: var(--t-md); border-radius: 10px; }
.btn-icon { width: var(--control-md); padding: 0; }
.btn-icon.btn-sm { width: var(--control-sm); }
.btn-icon.btn-lg { width: var(--control-lg); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { --_bg: var(--surface-2); --_fg: var(--text-disabled); --_bd: var(--border); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost[disabled], .btn-link[disabled] { --_bg: transparent; --_bd: transparent; }
.btn-primary[disabled] { --_bg: var(--mayur-200); --_fg: #fff; --_bd: transparent; }
:root[data-theme="dark"] .btn-ghost[disabled], .btn-link[disabled] { --_bg: transparent; --_bd: transparent; }
.btn-primary[disabled] { --_bg: var(--brand-line); --_fg: rgb(255 255 255 / .6); }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--_fg); border-right-color: transparent; animation: spin 700ms linear infinite; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.btn-group .btn:focus-visible { z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Form fields ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.label { font-size: var(--t-sm); line-height: var(--lh-sm); font-weight: var(--w-semibold); color: var(--text); }
.label .opt { font-weight: var(--w-regular); color: var(--text-3); }
.hint { font-size: var(--t-xs); line-height: var(--lh-xs); color: var(--text-3); }
.error-text { font-size: var(--t-xs); line-height: var(--lh-xs); color: var(--danger-text); display: flex; gap: 6px; align-items: center; }
.input, .select, .textarea {
  width: 100%; height: var(--control-md); padding: 0 var(--s-3);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-field); border-radius: var(--r-sm);
  font-size: var(--t-base); line-height: var(--lh-base);
  transition: border-color var(--d-quick) linear, box-shadow var(--d-quick) var(--ease-move);
}
.textarea { height: auto; min-height: 88px; padding: 8px var(--s-3); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus, .input-group:focus-within {
  outline: none; border-color: var(--brand-ui); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent);
}
.input[aria-invalid="true"], .input-group[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 20%, transparent); }
.input:disabled, .select:disabled { background: var(--surface-2); color: var(--text-disabled); border-color: var(--border); cursor: not-allowed; }
.input[readonly] { background: var(--surface-2); }
.input-lg { height: var(--control-lg); font-size: var(--t-md); }
.input-group { display: flex; align-items: center; height: var(--control-md); background: var(--surface); border: 1px solid var(--border-field); border-radius: var(--r-sm); transition: border-color var(--d-quick) linear, box-shadow var(--d-quick) var(--ease-move); }
.input-group:hover { border-color: var(--text-3); }
.input-group .input { border: 0; height: 100%; background: transparent; box-shadow: none !important; min-width: 0; }
.input-group .affix { display: flex; align-items: center; gap: 6px; padding: 0 0 0 var(--s-3); color: var(--text-3); font-weight: var(--w-medium); white-space: nowrap; }
.input-group .affix.end { padding: 0 var(--s-3) 0 0; }
.input-group .affix .ic { width: 16px; height: 16px; }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23837F7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }

/* Trigger used by dropdown, combobox, date picker */
.trigger { display: flex; align-items: center; gap: var(--s-2); width: 100%; height: var(--control-md); padding: 0 10px 0 var(--s-3);
  background: var(--surface); border: 1px solid var(--border-field); border-radius: var(--r-sm); cursor: pointer; text-align: left; }
.trigger:hover { border-color: var(--text-3); }
.trigger[aria-expanded="true"] { border-color: var(--brand-ui); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.trigger .value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trigger .placeholder { color: var(--text-3); }
.trigger > .ic:last-child { color: var(--text-3); width: 16px; height: 16px; }

/* ---------- Popover / menu / listbox ---------- */
.pop-anchor { position: relative; }
.popover {
  position: absolute; z-index: var(--z-pop); top: calc(100% + 6px); left: 0; min-width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--e-3);
  padding: 4px; transform-origin: top left;
  animation: settle-pop var(--d-base) var(--ease-settle);
}
.popover[hidden] { display: none; }
.menu-label { padding: 8px 10px 4px; }
.option {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 6px 10px; border: 0; border-radius: 6px;
  background: transparent; text-align: left; cursor: pointer; color: var(--text); font-size: var(--t-base);
}
.option .ic { color: var(--text-3); width: 16px; height: 16px; }
.option:hover, .option[data-active="true"] { background: var(--surface-hover); }
.option[aria-selected="true"] { font-weight: var(--w-semibold); }
.option[aria-selected="true"] .check { visibility: visible; }
.option .check { margin-left: auto; visibility: hidden; color: var(--brand-text); }
.option .meta { margin-left: auto; color: var(--text-3); font-size: var(--t-sm); }
.option.danger { color: var(--danger-text); }
.option.danger .ic { color: var(--danger-text); }
.menu-sep { height: 1px; background: var(--border); margin: 4px -4px; }
.option mark { background: transparent; color: var(--brand-text); font-weight: var(--w-semibold); }

/* ---------- Date picker ---------- */
.datepicker { width: 296px; padding: 12px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { font-weight: var(--w-semibold); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-dow { font-size: var(--t-xs); color: var(--text-3); padding: 6px 0; font-weight: var(--w-medium); }
.dp-day { height: 36px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-variant-numeric: tabular-nums; position: relative; color: var(--text); }
.dp-day:hover { background: var(--surface-hover); }
.dp-day.out { color: var(--text-disabled); }
.dp-day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand-ui); }
.dp-day.in-range { background: var(--brand-soft); border-radius: 0; }
.dp-day[aria-selected="true"] { background: var(--brand); color: var(--text-on-fill); font-weight: var(--w-semibold); }
.dp-day[aria-selected="true"]::after { background: #fff; }
.dp-day.holiday { color: var(--danger-text); }
.dp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ---------- Checkbox / radio / switch ---------- */
.check-row { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--t-base); line-height: 20px; }
.check-row .sub { display: block; color: var(--text-3); font-size: var(--t-sm); }
.checkbox, .radio {
  appearance: none; margin: 1px 0 0; flex: none; width: 18px; height: 18px; background: var(--surface);
  border: 1.5px solid var(--border-field); display: grid; place-content: center; cursor: pointer;
  transition: background-color var(--d-quick) linear, border-color var(--d-quick) linear;
}
.checkbox { border-radius: 5px; }
.radio { border-radius: 50%; }
.checkbox::before { content: ""; width: 10px; height: 10px; transform: scale(0); transition: transform var(--d-quick) var(--ease-settle);
  background: #fff; clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 37% 70%); }
.checkbox:checked, .checkbox:indeterminate { background: var(--brand-ui); border-color: var(--brand-ui); }
.checkbox:checked::before { transform: scale(1); }
.checkbox:indeterminate::before { transform: scale(1); clip-path: inset(40% 5% 40% 5%); }
.radio::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform var(--d-quick) var(--ease-settle); }
.radio:checked { background: var(--brand-ui); border-color: var(--brand-ui); }
.radio:checked::before { transform: scale(1); }
.checkbox:hover, .radio:hover { border-color: var(--text-3); }
.checkbox:disabled, .radio:disabled { background: var(--surface-2); border-color: var(--border); cursor: not-allowed; }
.checkbox:focus-visible, .radio:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.switch { appearance: none; margin: 0; flex: none; width: 36px; height: 22px; border-radius: 999px; background: var(--paper-400); position: relative; cursor: pointer;
  transition: background-color var(--d-quick) linear; }
:root[data-theme="dark"] .switch { background: #55524D; }
.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform var(--d-base) var(--ease-move); }
.switch:checked { background: var(--brand-ui); }
.switch:checked::before { transform: translateX(14px); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Segmented control: a sliding "ink" pill */
.segmented { position: relative; display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-sunken); border-radius: 8px; border: 1px solid var(--border-soft); }
.segmented button { position: relative; z-index: 1; height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font-weight: var(--w-semibold); font-size: var(--t-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segmented button[aria-pressed="true"], .segmented button[aria-selected="true"] { color: var(--text); }
.segmented .ink { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 6px; background: var(--surface); box-shadow: var(--e-1), 0 0 0 1px var(--border-soft);
  transition: left var(--d-base) var(--ease-move), width var(--d-base) var(--ease-move); }
:root[data-theme="dark"] .segmented .ink { background: var(--paper-800); }
.segmented button .ic { width: 15px; height: 15px; }

/* ---------- Tabs (underline ink that travels) ---------- */
.tabs { position: relative; display: flex; gap: var(--s-6); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 10px 0 12px; border: 0; background: none; color: var(--text-2); font-weight: var(--w-semibold); font-size: var(--t-base); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab .count { font-size: var(--t-xs); font-weight: var(--w-semibold); color: var(--text-3); background: var(--surface-sunken); border-radius: 999px; padding: 1px 7px; }
.tab[aria-selected="true"] .count { color: var(--brand-text); background: var(--brand-soft); }
.tabs .ink { position: absolute; bottom: -1px; height: 2px; background: var(--brand-ui); border-radius: 2px 2px 0 0; transition: left var(--d-base) var(--ease-move), width var(--d-base) var(--ease-move); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--t-sm); color: var(--text-3); margin: 0; padding: 0; list-style: none; }
.crumbs a { color: var(--text-2); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--border-strong); }
.crumbs [aria-current] { color: var(--text); font-weight: var(--w-semibold); }

/* ---------- Side nav ---------- */
.sidenav { width: var(--nav-side); display: flex; flex-direction: column; gap: 2px; padding: var(--s-3); background: var(--surface); border-right: 1px solid var(--border); }
.sidenav .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.sidenav .group { margin-top: var(--s-4); padding: 0 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 7px; color: var(--text-2); font-weight: var(--w-medium); font-size: var(--t-base); text-decoration: none !important; position: relative; }
.nav-item .ic { color: var(--text-3); }
.nav-item:hover { background: var(--surface-hover); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); font-weight: var(--w-semibold); }
.nav-item[aria-current="page"] .ic { color: var(--brand-text); }
.nav-item .badge { margin-left: auto; }
.nav-item .lock { margin-left: auto; color: var(--text-3); width: 14px; height: 14px; }

/* ---------- Top nav ---------- */
.topbar { height: var(--nav-top); display: flex; align-items: center; gap: var(--s-4); padding: 0 var(--s-5); background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar .search { flex: 1; max-width: 420px; }
.topbar .spacer { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px; background: var(--surface-sunken); border: 1px solid var(--border-soft); color: var(--text-3); }
.search input { flex: 1; border: 0; background: transparent; outline: none; min-width: 0; color: var(--text); }
.search input::placeholder { color: var(--text-3); }
.search:focus-within { border-color: var(--brand-ui); background: var(--surface); }
.site-nav { height: 64px; display: flex; align-items: center; gap: var(--s-8); }
.site-nav a.link { color: var(--text-2); font-weight: var(--w-medium); }
.site-nav a.link:hover { color: var(--text); text-decoration: none; }

/* ---------- Mobile tab bar ---------- */
.tabbar { height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-3); font-size: 11px; font-weight: var(--w-semibold); text-decoration: none !important; position: relative; }
.tabbar a .ic { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--brand-text); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 24px; height: 2px; border-radius: 0 0 2px 2px; background: var(--brand-ui); }

/* ---------- Pills, badges, tags ---------- */
.pill { --_fg: var(--neutral-text); --_bg: var(--neutral-soft); display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 999px;
  background: var(--_bg); color: var(--_fg); font-size: var(--t-xs); font-weight: var(--w-semibold); white-space: nowrap; line-height: 1; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.pill.success { --_fg: var(--success-text); --_bg: var(--success-soft); }
.pill.warning { --_fg: var(--warning-text); --_bg: var(--warning-soft); }
.pill.danger  { --_fg: var(--danger-text);  --_bg: var(--danger-soft); }
.pill.info    { --_fg: var(--info-text);    --_bg: var(--info-soft); }
.pill.brand   { --_fg: var(--brand-text);   --_bg: var(--brand-soft); }
.pill.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-2); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: var(--w-bold); font-variant-numeric: tabular-nums;
  background: var(--brand); color: var(--text-on-fill); }
.badge.neutral { background: var(--surface-sunken); color: var(--text-2); }
.badge.dot { min-width: 8px; width: 8px; height: 8px; padding: 0; box-shadow: 0 0 0 2px var(--surface); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); font-size: var(--t-sm); font-weight: var(--w-medium); }
.tag button { display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 4px; background: transparent; color: var(--text-3); cursor: pointer; padding: 0; }
.tag button:hover { background: var(--surface-hover); color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: var(--t-sm); font-weight: var(--w-semibold); cursor: pointer; }
.chip:hover { color: var(--text); background: var(--surface-hover); }
.chip[aria-pressed="true"] { background: var(--surface-inverse); color: var(--text-inverse); border-color: transparent; }
.chip .ic { width: 15px; height: 15px; }

/* ---------- Avatars ---------- */
.avatar { --_bg: var(--cat-cobalt); position: relative; display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--_bg) var(--tile-mix, 12%), var(--surface)); color: color-mix(in srgb, var(--_bg) var(--tile-ink, 100%), #fff); font-size: 12px; font-weight: var(--w-semibold); letter-spacing: .02em; overflow: visible; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.avatar .presence { position: absolute; right: -1px; bottom: -1px; width: 30%; height: 30%; min-width: 8px; min-height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 2px var(--surface); }
.avatar.c1 { --_bg: var(--cat-mayur); } .avatar.c2 { --_bg: var(--cat-violet); } .avatar.c3 { --_bg: var(--cat-turmeric); } .avatar.c4 { --_bg: var(--cat-leaf); }
.avatar.c5 { --_bg: var(--cat-rose); } .avatar.c6 { --_bg: var(--cat-cobalt); } .avatar.c7 { --_bg: var(--cat-jade); } .avatar.c8 { --_bg: var(--cat-clay); }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar + .avatar { margin-left: -8px; }
.avatar.more { --_bg: var(--surface-sunken); color: var(--text-2); }

/* ---------- Icon tiles (flat fill, white icon) ---------- */
.tile { --_bg: var(--cat-mayur); display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: color-mix(in srgb, var(--_bg) var(--tile-mix, 10%), var(--surface)); color: color-mix(in srgb, var(--_bg) var(--tile-ink, 100%), #fff); }
:root[data-theme="dark"] .tile, :root[data-theme="dark"] .avatar { --tile-mix: 26%; --tile-ink: 52%; }
.tile .ic { width: 18px; height: 18px; stroke-width: 1.8; }
.tile.sm { width: 28px; height: 28px; border-radius: 7px; } .tile.sm .ic { width: 15px; height: 15px; }
.tile.lg { width: 48px; height: 48px; border-radius: 12px; } .tile.lg .ic { width: 24px; height: 24px; }
.tile.soft { background: var(--brand-soft); color: var(--brand-text); }
.tile.mayur { --_bg: var(--cat-mayur); } .tile.cobalt { --_bg: var(--cat-cobalt); } .tile.violet { --_bg: var(--cat-violet); } .tile.jade { --_bg: var(--cat-jade); }
.tile.leaf { --_bg: var(--cat-leaf); } .tile.turmeric { --_bg: var(--cat-turmeric); } .tile.clay { --_bg: var(--cat-clay); } .tile.rose { --_bg: var(--cat-rose); }
.tile.ink { --_bg: var(--paper-800); }
.tile.solid { background: var(--_bg); color: #fff; }   /* the rare filled tile (app icon, brand moments) */

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--e-1); }
.card-pad { padding: var(--s-5); }
.card-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border); }
.card-head .h4 { flex: 1; }
.card-body { padding: var(--s-5); }
.card-foot { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border); background: var(--surface); border-radius: 0 0 var(--r-lg) var(--r-lg); }
a.card, .card.interactive { display: block; color: inherit; text-decoration: none; transition: border-color var(--d-quick) linear, box-shadow var(--d-base) var(--ease-move), transform var(--d-base) var(--ease-move); cursor: pointer; }
a.card:hover, .card.interactive:hover { border-color: var(--border-strong); box-shadow: var(--e-2); transform: translateY(-1px); text-decoration: none; }
.card.brand { background: var(--brand); color: var(--text-on-fill); border-color: transparent; }
.card.brand .muted, .card.brand .subtle { color: color-mix(in srgb, var(--text-on-fill) 82%, transparent); }

/* Stat card: one big number + one short line */
.stat { display: grid; gap: 6px; padding: var(--s-5); }
.stat .stat-label { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: var(--t-sm); font-weight: var(--w-medium); }
.stat .stat-label .tile { display: none; }
.stat .stat-value { font-size: var(--t-4xl); line-height: 1.05; font-weight: var(--w-medium); letter-spacing: -0.04em; font-variant-numeric: tabular-nums lining-nums; }
.stat .stat-line { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: var(--t-sm); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.delta.up { color: var(--success-text); } .delta.down { color: var(--danger-text); }
.delta .ic { width: 14px; height: 14px; stroke-width: 2.25; }

/* ---------- Table ---------- */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-base); }
.table th { position: sticky; top: 0; z-index: 1; height: 38px; padding: 0 var(--s-4); background: var(--surface); border-bottom: 1px solid var(--border); text-align: left; font-size: var(--t-xs); font-weight: var(--w-medium); color: var(--text-3); white-space: nowrap; }
.table td { height: 52px; padding: 0 var(--s-4); border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--d-instant) linear; }
.table tbody tr:hover td { background: var(--surface-hover); }
.table tbody tr[aria-selected="true"] td { background: var(--brand-soft); }
.table .n { text-align: right; }
.table .sel { width: 44px; padding-right: 0; }
.th-sort { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.th-sort .ic { width: 14px; height: 14px; color: var(--text-3); opacity: .7; }
.th-sort:hover { color: var(--text); }
th[aria-sort="ascending"] .th-sort, th[aria-sort="descending"] .th-sort { color: var(--text); }
th[aria-sort] .th-sort .ic { opacity: 1; color: var(--brand-text); }
.cell-person { display: flex; align-items: center; gap: 10px; }
.cell-person .name { font-weight: var(--w-semibold); }
.cell-person .id { font-size: var(--t-xs); color: var(--text-3); }
.bulkbar { display: flex; align-items: center; gap: var(--s-3); padding: 8px 8px 8px var(--s-4); border-radius: 10px; background: var(--surface-inverse); color: var(--text-inverse); box-shadow: var(--e-3); animation: settle-in var(--d-base) var(--ease-settle); }
.bulkbar .btn { --_bg: transparent; --_fg: var(--text-inverse); --_bd: rgb(127 127 127 / .45); --_bg-h: rgb(127 127 127 / .18); box-shadow: none; }

/* ---------- Empty state ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: var(--s-2); padding: var(--s-12) var(--s-6); }
.empty .art { width: 72px; height: 72px; margin-bottom: var(--s-2); }
.empty .h4 { font-size: var(--t-lg); }
.empty p { margin: 0 0 var(--s-3); max-width: 340px; color: var(--text-2); }

/* ---------- Toast ---------- */
.toast-region { position: fixed; z-index: var(--z-toast); right: var(--s-6); bottom: var(--s-6); display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px 12px 14px; border-radius: 10px; background: var(--surface-inverse); color: var(--text-inverse); box-shadow: var(--e-4);
  animation: settle-in var(--d-calm) var(--ease-settle); }
.toast.leaving { animation: settle-out var(--d-base) var(--ease-exit) forwards; }
.toast .ic { margin-top: 1px; }
.toast .t-title { font-weight: var(--w-semibold); }
.toast .t-body { opacity: .78; font-size: var(--t-sm); }
.toast .t-action { margin-left: auto; align-self: center; border: 0; background: none; color: var(--mayur-300); font-weight: var(--w-semibold); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
:root[data-theme="dark"] .toast .t-action { color: var(--mayur-700); }
.toast .t-close { border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; padding: 2px; border-radius: 4px; }
.toast .ok { color: var(--green-300); } :root[data-theme="dark"] .toast .ok { color: var(--green-600); }

/* ---------- Banner ---------- */
.banner { --_fg: var(--info-text); --_bg: var(--info-soft); --_bd: var(--info-line); display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--_bg); border: 1px solid var(--_bd); color: var(--text); }
.banner > .ic { color: var(--_fg); margin-top: 1px; }
.banner .b-title { font-weight: var(--w-semibold); }
.banner .b-body { color: var(--text-2); font-size: var(--t-sm); }
.banner .b-actions { margin-left: auto; display: flex; gap: 8px; align-self: center; }
.banner.warning { --_fg: var(--warning-text); --_bg: var(--warning-soft); --_bd: var(--warning-line); }
.banner.danger  { --_fg: var(--danger-text);  --_bg: var(--danger-soft);  --_bd: var(--danger-line); }
.banner.success { --_fg: var(--success-text); --_bg: var(--success-soft); --_bd: var(--success-line); }
.banner.brand   { --_fg: var(--brand-text); --_bg: var(--brand-soft); --_bd: var(--brand-line); }



/* ---------- Modal ---------- */
.scrim { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--scrim); display: grid; place-items: center; padding: var(--s-4); animation: fade-in var(--d-calm) var(--ease-settle); }
.scrim[hidden] { display: none; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--e-4); border: 1px solid var(--border);
  animation: settle-modal var(--d-calm) var(--ease-settle); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: var(--s-5) var(--s-5) 0; }
.modal-head .h3 { flex: 1; }
.modal-body { padding: var(--s-3) var(--s-5) var(--s-5); color: var(--text-2); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.modal.static, .sheet.static { animation: none; }

/* ---------- Bottom sheet ---------- */
.sheet-scrim { align-items: end; padding: 0; }
.sheet { width: 100%; max-width: 560px; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--e-4); padding: 8px var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom));
  animation: sheet-up var(--d-calm) var(--ease-settle); }
.sheet .grabber { width: 36px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 0 auto 14px; }
.sheet .sheet-title { font-size: var(--t-lg); font-weight: var(--w-semibold); margin: 0 0 4px; }

/* ---------- Tooltip ---------- */
.tip-anchor { position: relative; display: inline-flex; }
.tooltip { position: absolute; z-index: var(--z-pop); bottom: calc(100% + 8px); left: 50%; translate: -50% 0; padding: 6px 9px; border-radius: 6px; background: var(--surface-inverse); color: var(--text-inverse);
  font-size: var(--t-xs); font-weight: var(--w-medium); line-height: 16px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(var(--rise-sm));
  transition: opacity var(--d-quick) linear, transform var(--d-base) var(--ease-settle); }
.tooltip .kbd { margin-left: 6px; background: transparent; color: inherit; border-color: rgb(127 127 127 / .5); }
.tip-anchor:hover .tooltip, .tip-anchor:focus-within .tooltip, .tooltip.show { opacity: 1; transform: none; transition-delay: 300ms; }
.tooltip.show { transition-delay: 0ms; }

/* ---------- Skeleton: a slow ledger "sweep" ---------- */
.skeleton { position: relative; overflow: hidden; border-radius: 6px; background: var(--skeleton); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--skeleton-hi), transparent); animation: sweep 1600ms var(--ease-move) infinite; }
.sk-line { height: 10px; } .sk-title { height: 14px; } .sk-circle { border-radius: 50%; }
@keyframes sweep { to { transform: translateX(100%); } }

/* ---------- Pay-run stepper ---------- */
.stepper { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; gap: 4px; padding-top: 30px; padding-right: var(--s-4); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: var(--w-bold); background: var(--surface); color: var(--text-3); box-shadow: inset 0 0 0 1.5px var(--border-strong); font-variant-numeric: tabular-nums; }
.step::after { content: ""; position: absolute; top: 10px; left: 30px; right: 8px; height: 2px; border-radius: 2px; background: var(--border);
  background-image: linear-gradient(var(--brand-ui), var(--brand-ui)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size var(--d-calm) var(--ease-move); }
.step:last-child::after { display: none; }
.step .s-title { font-weight: var(--w-semibold); font-size: var(--t-sm); }
.step .s-meta { font-size: var(--t-xs); color: var(--text-3); }
.step[data-state="done"]::before { content: ""; background: var(--brand-ui); box-shadow: none;
  -webkit-mask: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat; }
.step[data-state="done"]::after { background-size: 100% 100%; }
.step[data-state="current"]::before { background: var(--surface); color: var(--brand-text); box-shadow: inset 0 0 0 2px var(--brand-ui), 0 0 0 4px var(--brand-soft); }
.step[data-state="current"] .s-title { color: var(--brand-text); }
.step[data-state="upcoming"] .s-title { color: var(--text-2); }
.step[data-state="blocked"]::before { content: "!"; color: var(--danger-text); box-shadow: inset 0 0 0 2px var(--danger); }

/* ---------- Progress ---------- */
.progress { height: 6px; border-radius: 999px; background: var(--chart-track); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-ui); width: var(--value, 0%); transition: width var(--d-tally) var(--ease-move); }
.progress.success > span { background: var(--success); } .progress.warning > span { background: var(--warning); } .progress.danger > span { background: var(--danger); }
.progress.indeterminate > span { width: 35%; animation: indet 1400ms var(--ease-move) infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.meter-segments { display: flex; gap: 3px; height: 8px; }
.meter-segments span { flex: var(--w, 1); border-radius: 2px; background: var(--c, var(--brand-ui)); }
.ring { --size: 56px; --value: 0; width: var(--size); height: var(--size); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--chart-track); }
.ring .bar { stroke: var(--brand-ui); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset var(--d-tally) var(--ease-move); }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; overflow: visible; font-family: var(--font-sans); }
.chart .grid line { stroke: var(--chart-grid); stroke-width: 1; }
.chart .axis text, .chart text.axis { fill: var(--chart-axis); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--chart-1); }
.chart .bar.s2 { fill: var(--chart-2); } .chart .bar.s3 { fill: var(--chart-3); }
.chart .bar.muted { fill: var(--chart-track); }
.chart .line { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.s2 { stroke: var(--chart-2); stroke-dasharray: 4 4; }
.chart .area { fill: var(--chart-1); opacity: .08; }
.chart .dot { fill: var(--surface); stroke: var(--chart-1); stroke-width: 2; }
.chart .label { fill: var(--text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); animation: draw var(--d-tally) var(--ease-move) forwards; }
.chart .grow { transform-box: fill-box; transform-origin: bottom; animation: grow var(--d-calm) var(--ease-settle) both; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--t-sm); color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.legend i.line { height: 2px; border-radius: 2px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Punch: "Slide to punch" (owner, 2 Dec 2026: same habit as the current app) ----------
   A track with a round thumb. Slide it all the way right to punch in; once in,
   the same slide punches out. Letting go early springs back. Keyboard: Enter,
   Space or the right arrow. */
.punch { display: grid; justify-items: center; justify-self: stretch; gap: var(--s-3); }
.punch-slide { --p: 0; --ps-h: 64px; position: relative; width: min(100%, 340px); height: var(--ps-h); border-radius: 999px; overflow: hidden;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.punch-slide .ps-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--ps-h) + (100% - var(--ps-h)) * var(--p)); border-radius: inherit; background: var(--brand-soft); }
.punch-slide .ps-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding-left: calc(var(--ps-h) - 8px);
  font-size: 15px; font-weight: var(--w-semibold); color: var(--text-2); opacity: max(0, calc(1 - var(--p) * 1.8)); pointer-events: none; }
.punch-slide .ps-label .ic { width: 16px; height: 16px; color: var(--text-3); }
.punch-slide .ps-thumb { position: absolute; top: 4px; left: calc(4px + (100% - var(--ps-h)) * var(--p)); width: calc(var(--ps-h) - 8px); height: calc(var(--ps-h) - 8px); border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--text-on-fill); cursor: grab; box-shadow: 0 1px 0 rgb(255 255 255 / .16) inset, 0 4px 12px -4px rgb(var(--shadow-color) / .35); }
.punch-slide .ps-thumb .ic { width: 24px; height: 24px; stroke-width: 1.9; }
.punch-slide:not(.dragging) .ps-thumb, .punch-slide:not(.dragging) .ps-fill { transition: left var(--d-base) var(--ease-move), width var(--d-base) var(--ease-move); }
.punch-slide.dragging .ps-thumb { cursor: grabbing; }
.punch-slide.done .ps-thumb { background: var(--surface-inverse); color: var(--text-inverse); }
.punch-slide.done .ps-fill { background: var(--paper-200); }
.punch-slide:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.punch-meta { display: flex; gap: 6px; align-items: center; color: var(--text-3); font-size: var(--t-sm); }
.punch-time { font-size: 44px; line-height: 1; font-weight: var(--w-semibold); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.punch-time .sec { color: var(--text-3); font-size: .5em; letter-spacing: 0; margin-left: 2px; }
.punch-strip { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.punch-strip > div { padding: 10px 12px; display: grid; gap: 2px; }
.punch-strip > div + div { border-left: 1px solid var(--border); }
.punch-strip .k { font-size: var(--t-xs); color: var(--text-3); font-weight: var(--w-medium); }
.punch-strip .v { font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }

/* ---------- Motion: "Settle" keyframes ---------- */
@keyframes settle-in { from { opacity: 0; transform: translateY(var(--rise-md)); } to { opacity: 1; transform: none; } }
@keyframes settle-out { to { opacity: 0; transform: translateY(var(--rise-sm)); } }
@keyframes settle-pop { from { opacity: 0; transform: translateY(calc(var(--rise-sm) * -1)); } to { opacity: 1; transform: none; } }
@keyframes settle-modal { from { opacity: 0; transform: translateY(var(--rise-md)) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.settle { animation: settle-in var(--d-calm) var(--ease-settle) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
/* "Tally": figures roll into place digit by digit (see system.js) */
.tally { display: inline-block; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .skeleton::after { display: none; }
}
