/* Byaj Khata
   Layout: a ledger desk. Headline figure and four totals on top, the growth chart,
   then the khata list; each loan opens as its own page with its entries.
   Peacock teal is the house colour; marigold marks interest. */

:root {
  --bg: #F3F6F6;
  --surface: #FFFFFF;
  --surface-2: #EAF0EF;
  --line: #D6E0DE;
  --ink: #12201E;
  --muted: #5A6B68;
  --accent: #0E6B66;
  --accent-hover: #0A5652;
  --accent-ink: #FFFFFF;
  --accent-soft: #D9EEEB;
  --gold: #8F5A00;
  --gold-line: #D99A1E;
  --gold-soft: #FBEFD6;
  --danger: #B42318;
  --danger-soft: #FCE8E5;
  --ok: #2B7445;
  --ok-soft: #E1F1E6;
  --shadow: 0 1px 2px rgba(18, 32, 30, 0.06), 0 8px 24px rgba(18, 32, 30, 0.06);
  --backdrop: rgba(10, 22, 20, 0.45);

  --font-body: "IBM Plex Sans", "IBM Plex Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Tiro Devanagari Hindi", "IBM Plex Sans Devanagari", Georgia, serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1514;
    --surface: #141F1D;
    --surface-2: #1A2826;
    --line: #283936;
    --ink: #E4EEEC;
    --muted: #93A6A2;
    --accent: #4EC1B6;
    --accent-hover: #6DD3C9;
    --accent-ink: #052220;
    --accent-soft: #173B38;
    --gold: #F2B84B;
    --gold-line: #F2B84B;
    --gold-soft: #3A2C12;
    --danger: #F28B7F;
    --danger-soft: #3B1C19;
    --ok: #74CF93;
    --ok-soft: #173223;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --backdrop: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font-body);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.page { padding-block: 24px 64px; display: grid; gap: 24px; }

/* ---------- wordmark ---------- */
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); margin: 0; }
.wm-hi { font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--accent); }
.wm-en { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.wordmark.small .wm-hi { font-size: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
  font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.danger-text { color: var(--danger); }
.btn[disabled] { opacity: .55; cursor: progress; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ---------- boot + auth ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; }
.boot-msg { color: var(--muted); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.auth-card {
  width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow); display: grid; gap: 20px;
}
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-tag { color: var(--muted); margin-top: -10px; }
.auth h1 { font-size: 20px; }
.stack { display: grid; gap: 14px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.field.narrow { max-width: 260px; }
input:not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 12px; color: var(--muted); }
.form-error { color: var(--danger); font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
legend { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 12px; }
legend small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; flex: 1 1 auto; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 42px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); font-size: 14px; cursor: pointer;
}
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.preview { font-size: 14px; color: var(--muted); background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; }
.preview:empty { display: none; }
.preview strong { color: var(--gold); font-weight: 600; }

/* ---------- top bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow);
  padding: 6px; display: grid;
}
.menu-pop button { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; }
.menu-pop button:hover { background: var(--surface-2); }
.menu-user { font-size: 12px; color: var(--muted); padding: 6px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-wrap: anywhere; }

/* ---------- overview ---------- */
.overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.big-num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 600; font-size: clamp(36px, 6vw, 56px); line-height: 1.1; letter-spacing: -0.03em; margin-top: 6px; overflow-wrap: anywhere; }
.headline-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font-size: 14px; }
.grow-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold); font-family: var(--font-num); font-size: 13px; font-weight: 600;
}
.grow-chip::before { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 6px solid currentColor; }
.counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--surface); padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.stat dt { font-size: 13px; color: var(--muted); }
.stat dd { margin: 0; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.stat dd.gold { color: var(--gold); }
.stat .sub { font-size: 12px; color: var(--muted); font-family: var(--font-body); font-weight: 400; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-active { background: var(--accent-soft); color: var(--accent); }
.pill-overdue { background: var(--danger-soft); color: var(--danger); }
.pill-dueSoon { background: var(--gold-soft); color: var(--gold); }
.pill-settled { background: var(--ok-soft); color: var(--ok); }

/* ---------- cards + chart ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.card h2 { font-size: 16px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: var(--r-md); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg .count { font-family: var(--font-num); font-size: 12px; margin-left: 4px; opacity: .75; }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key::before { content: ""; width: 14px; height: 3px; border-radius: 2px; }
.key-value::before { background: var(--accent); }
.key-principal::before { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); }
.chart { position: relative; margin-top: 8px; height: 230px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-family: var(--font-num); font-size: 11px; }
.chart .area { fill: var(--accent); fill-opacity: .12; }
.chart .line-value { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-principal { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .end-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; }
.chart .guide { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .hover-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.chart-tip {
  position: absolute; top: 0; pointer-events: none; z-index: 2;
  background: var(--ink); color: var(--bg); border-radius: var(--r-sm); padding: 6px 10px; font-size: 12px; line-height: 1.4; white-space: nowrap;
}
.chart-tip .num { font-size: 13px; font-weight: 600; }
.chart-empty { height: 100%; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-md); text-align: center; padding: 16px; }

/* ---------- loan list ---------- */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 22px; font-family: var(--font-display); font-weight: 400; }
.loans { display: grid; gap: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 220px; max-width: 340px; }
.sort select { width: auto; min-width: 0; }
.loan-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.loan-row, .list-head {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr);
  padding: 12px 18px;
}
.list-head { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding-block: 8px; }
.list-head .r, .loan-row .r { text-align: right; justify-items: end; }
.loan-row { color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); transition: background-color .12s; }
.loan-row:first-of-type { border-top: 0; }
.list-head + .loan-row { border-top: 0; }
.loan-row:hover { background: var(--surface-2); }
.loan-row > div { display: grid; gap: 1px; min-width: 0; }
.c-name { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px !important; align-items: center; }
.avatar {
  grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 15px;
}
.nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 15px; }
.v.strong { font-weight: 600; }
.v.gold { color: var(--gold); }
.settled-row .v.strong { color: var(--muted); }
.empty { padding: 40px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty h3 { font-size: 18px; }
.empty p { max-width: 46ch; color: var(--muted); }
.empty .btn-row { justify-content: center; margin-top: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; font-size: 14px; }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.detail-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4vw, 36px); overflow-wrap: anywhere; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-figures { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: end; }
.detail-figures .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.side { display: grid; gap: 24px; min-width: 0; }
.info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 14px 0 0; font-size: 14px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; overflow-wrap: anywhere; }
.info dd.pre { white-space: pre-wrap; }
.copyable { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ledger-card { overflow: hidden; }
.ledger-wrap { position: relative; overflow-x: auto; margin: 14px -20px -18px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 700px; }
.ledger td:nth-child(2) { min-width: 220px; }
.ledger th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 8px 12px; white-space: nowrap; }
.ledger td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.ledger th:first-child, .ledger td:first-child { padding-left: 20px; }
.ledger th:last-child, .ledger td:last-child { padding-right: 12px; }
.ledger .r { text-align: right; }
.ledger td.num { white-space: nowrap; }
.ledger .entry-type { font-weight: 600; }
.ledger .entry-sub { display: block; font-size: 12px; color: var(--muted); }
.ledger .accr { display: block; font-size: 12px; color: var(--gold); margin-bottom: 2px; }
.ledger tr.today td { background: var(--gold-soft); border-top: 1px solid var(--gold-line); }
.ledger tr.today .entry-type { color: var(--gold); }
.ledger .del { width: 32px; height: 32px; }
.ledger .del:hover { color: var(--danger); background: var(--danger-soft); }
.tag { display: inline-block; white-space: nowrap; font-size: 11px; padding: 0 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); margin-left: 6px; font-weight: 500; }

/* ---------- dialogs ---------- */
dialog.sheet {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
dialog.narrow-sheet { width: min(480px, calc(100vw - 24px)); }
dialog.confirm-sheet { width: min(420px, calc(100vw - 24px)); }
dialog::backdrop { background: var(--backdrop); }
dialog form, .sheet-form { display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 18px; }
.sheet-body { padding: 18px 20px; overflow-y: auto; display: grid; gap: 22px; }
.sheet-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.sheet-foot .form-error { flex: 1 1 100%; }
.confirm-sheet .sheet-body { font-size: 15px; }
.confirm-sheet .sheet-foot { border-top: 0; padding-top: 0; }
.data-block { display: grid; gap: 10px; }
.data-block + .data-block { border-top: 1px solid var(--line); padding-top: 20px; }
.data-block h3 { font-size: 15px; }
.templates { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.file-pick { position: relative; overflow: hidden; justify-self: start; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.import-preview { background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 8px; font-size: 14px; }
.import-preview ul { margin: 0; padding-left: 18px; color: var(--danger); max-height: 160px; overflow-y: auto; }
.import-preview .btn { justify-self: start; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 50;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: var(--r-md);
  background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: var(--shadow);
}
.toast.error { background: var(--danger); color: #fff; }

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  .overview, .detail-figures, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-figures .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .list-head { display: none; }
  .loan-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name value" "given int" "rate status";
    row-gap: 8px; padding: 14px 16px;
  }
  .c-name { grid-area: name; }
  .c-value { grid-area: value; }
  .c-given { grid-area: given; }
  .c-int { grid-area: int; }
  .c-rate { grid-area: rate; }
  .c-status { grid-area: status; }
  .c-given, .c-rate { padding-left: 48px; }
  .search { max-width: none; flex-basis: 100%; }
}
@media (max-width: 520px) {
  .page { padding-block: 16px 48px; gap: 20px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .stat dd { font-size: 17px; }
  .card { padding: 16px; }
  .ledger-wrap { margin: 14px -16px -16px; }
  .ledger th:first-child, .ledger td:first-child { padding-left: 16px; }
  .detail-actions .btn { flex: 1 1 auto; }
  .wm-en { display: none; }
  .auth-card { padding: 24px 18px; }
  dialog.sheet { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  dialog form, .sheet-form { max-height: 92dvh; }
  .sheet-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .sheet-foot .btn { flex: 1 1 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Devanagari joins letters; spacing them out breaks the shapes. */
:lang(hi) .eyebrow, :lang(hi) legend, :lang(hi) .list-head, :lang(hi) .ledger th, :lang(hi) .wm-hi { letter-spacing: 0; }
