/*
THESIS: A shared ledger is the whole product. The whole product is lines in a columnar accounts
book that everyone holds; it refuses the fintech card-stack and the hero-metric.
OWN-WORLD: ledger-green paper, teal rules, one red double rule between words and
money, ink figures in tabular columns, condensed caps column heads, book-cloth cover.
STORY: "I can see exactly who paid what, and my number, in two seconds; I trust it
because it is written down." Then: add a line, settle, share.
FIRST VIEWPORT: cover band with the name; the sheet with a live ledger writing
itself; the primary action (Start a ledger / Add a line) sits at the thumb.
FORM: grounded direction 6 of 7 (ruled ledger book), staging: pinned protagonist
sheet with scrolling commentary; seed key 98c63652.
*/
@import url('/fonts/fonts.css');

:root {
  --paper: #EEF3EA;
  --paper-2: #E3EBDD;
  --paper-3: #D7E2D0;
  --rule: #A9C4B3;
  --rule-strong: #6E9A83;
  --ink: #14201A;
  --ink-2: #3E5247;
  --ink-3: #5F7568;
  --red: #B8321F;
  --red-ink: #8F2415;
  --red-paper: #F6E3DF;
  --green-ink: #1F6B48;
  --green-paper: #DCEBDF;
  --cover: #1B3A2C;
  --cover-2: #142C21;
  --cover-ink: #EEF3EA;
  --cover-ink-2: #B9CFC1;
  --shadow: 0 2px 0 rgba(20, 32, 26, .08), 0 12px 32px -16px rgba(20, 32, 26, .35);
  --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--cover);
  --row: 44px;
  --radius: 8px;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: 'Barlow', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12221A;
    --paper-2: #182C22;
    --paper-3: #1F3A2D;
    --rule: #2C4A3A;
    --rule-strong: #4E7C63;
    --ink: #E6EFE7;
    --ink-2: #B9CFC1;
    --ink-3: #93AC9C;
    --red: #E2553F;
    --red-ink: #F08A78;
    --red-paper: #3A1E19;
    --green-ink: #6CC497;
    --green-paper: #173A2A;
    --cover: #0C1812;
    --cover-2: #07110C;
    --cover-ink: #E6EFE7;
    --cover-ink-2: #93AC9C;
    --shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .7);
    --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--rule-strong);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cover); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--cover);
  color: var(--ink);
  font: 400 16px/1.45 var(--body);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; text-wrap: balance; letter-spacing: .01em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- cover band ---------- */
.cover {
  background: var(--cover); color: var(--cover-ink);
  padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
}
.cover-in { max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.wordmark svg { width: 22px; height: 22px; }
.cover .spacer { flex: 1; }
.cover-meta { color: var(--cover-ink-2); font-size: 14px; }

/* ---------- the sheet ---------- */
.page { max-width: 680px; margin: 0 auto; padding: 0 12px calc(env(safe-area-inset-bottom) + 96px); }
.sheet {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 12px; overflow: hidden;
}
.sheet + .sheet { margin-top: 16px; }
.sheet-head { padding: 16px 16px 10px; border-bottom: 2px solid var(--rule-strong); display: flex; align-items: baseline; gap: 12px; }
.sheet-head h2 { font-size: 18px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.sheet-head .sub { color: var(--ink-2); font-size: 14px; margin-left: auto; }
.sheet-body { padding: 0; }
.sheet-pad { padding: 16px; }
.note { color: var(--ink-2); font-size: 14px; }

/* column heads */
.cols { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 8px 16px 6px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); }
.cols .r { text-align: right; }

/* ledger rows: description | red double rule | amount */
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) 7px minmax(96px, auto);
  align-items: center; min-height: var(--row);
  border-bottom: 1px solid var(--rule);
  padding: 0 0 0 16px;
  text-align: left; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0;
  color: inherit;
}
.row:last-child { border-bottom: 0; }
.row .rr { align-self: stretch; background: linear-gradient(90deg, var(--red) 0 2px, transparent 2px 5px, var(--red) 5px 7px); opacity: .9; }
.row .desc { padding: 8px 12px 8px 0; min-width: 0; }
.row .desc b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .desc small { display: block; color: var(--ink-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .amt { padding: 8px 16px 8px 12px; text-align: right; white-space: nowrap; font-weight: 500; }
.row .amt small { display: block; color: var(--ink-2); font-size: 12px; font-weight: 400; }
.row.owes .amt, .owes-ink { color: var(--red-ink); }
.row.owed .amt, .owed-ink { color: var(--green-ink); }
.row.total { background: var(--paper-2); font-weight: 600; border-top: 2px solid var(--rule-strong); }
.row.total .amt { font-weight: 600; }
button.row:hover { background: var(--paper-2); }
button.row:active { background: var(--paper-3); }
.row.me .desc b::after { content: 'you'; font-family: var(--display); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cover-ink); background: var(--cover); padding: 2px 5px; border-radius: 3px; margin-left: 8px; vertical-align: 2px; }
.day { padding: 10px 16px 4px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--paper-2); border-bottom: 1px solid var(--rule); }

.written { animation: write .32s var(--ease) both; }
@keyframes write { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .written { animation: none; } }

/* position line (your number) */
.position { padding: 18px 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--rule); }
.position .lead { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.position .big { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.01em; margin-top: 4px; }
.position .big.owes { color: var(--red-ink); }
.position .big.owed { color: var(--green-ink); }
.position .who { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

/* empty */
.empty { padding: 28px 16px; text-align: center; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent; text-decoration: none; user-select: none; -webkit-user-select: none;
  transition: transform .1s var(--ease), background-color .15s var(--ease);
}
.btn.primary { background: var(--cover); color: var(--cover-ink); }
.btn.primary:active { transform: translateY(1px); background: var(--cover-2); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.quiet:hover { background: var(--paper-2); }
.btn.quiet:active { transform: translateY(1px); }
.btn.danger { background: transparent; color: var(--red-ink); border-color: var(--red); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.oncover { background: var(--cover-ink); color: var(--cover); }
.btn.oncover:active { transform: translateY(1px); }
.iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: var(--radius); color: inherit; }
.iconbtn:hover { background: rgba(255, 255, 255, .08); }
.iconbtn svg { width: 22px; height: 22px; }

.field { display: block; padding: 12px 16px 0; }
.field:last-child { padding-bottom: 16px; }
.label { display: block; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 6px;
  color: var(--ink); -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--rule-strong); box-shadow: var(--focus); }
.input.money { font-family: var(--display); font-weight: 600; font-size: 32px; letter-spacing: .01em; text-align: right; padding-right: 14px; min-height: 60px; }
.money-wrap { position: relative; }
.money-wrap .cur { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .06em; color: var(--ink-2); pointer-events: none; }
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.textarea { min-height: 72px; resize: vertical; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline .input { flex: 1; }

/* chips for people */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 6px;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper);
  font-weight: 500; font-size: 15px;
}
.chip .ini { width: 24px; height: 24px; border-radius: 6px; background: var(--paper-3); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--cover); color: var(--cover-ink); border-color: var(--cover); }
.chip[aria-pressed="true"] .ini, .chip[aria-checked="true"] .ini { background: var(--cover-ink); color: var(--cover); }
.chip .x { margin-left: 2px; margin-right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: none; color: inherit; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.chip .x:hover { background: rgba(0, 0, 0, .08); }

.seg { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--rule-strong); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 8px 12px; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--rule-strong); }
.seg button[aria-pressed="true"] { background: var(--cover); color: var(--cover-ink); }

.split-row { display: grid; grid-template-columns: 1fr 110px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.split-row:last-child { border-bottom: 0; }
.split-row .input { min-height: 38px; text-align: right; }
.split-sum { display: flex; justify-content: space-between; padding: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.split-sum.bad { color: var(--red-ink); }

.error { margin: 12px 16px 0; padding: 10px 12px; background: var(--red-paper); color: var(--red-ink); border: 1px solid var(--red); border-radius: 6px; font-size: 14px; }
.error:empty { display: none; }

/* ---------- bottom action bar ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--cover); color: var(--cover-ink);
  padding: 10px 12px calc(env(safe-area-inset-bottom) + 10px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.bar-in { max-width: 680px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.bar .btn { min-height: 48px; }

/* ---------- dialogs as bottom sheets ---------- */
dialog.sheet-dialog {
  border: 0; padding: 0; margin: 0; max-width: none; width: 100%; max-height: none;
  background: transparent; color: inherit;
  position: fixed; inset: 0; height: 100dvh;
  display: none;
}
dialog.sheet-dialog[open] { display: grid; align-items: end; justify-items: stretch; overflow: hidden; }
dialog.sheet-dialog::backdrop { background: rgba(10, 20, 14, .55); }
dialog.sheet-dialog .panel {
  width: 100%; max-width: 680px; max-height: calc(100dvh - 24px); min-width: 0; margin: 0 auto; justify-self: center;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius) var(--radius) 0 0;
  display: flex; flex-direction: column;
  animation: rise .32s var(--ease) both;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 700px) { dialog.sheet-dialog[open] { align-items: center; } dialog.sheet-dialog .panel { border-radius: var(--radius); } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet-dialog .panel { animation: none; } }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-bottom: 2px solid var(--rule-strong); }
.panel-head h2 { font-size: 18px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; flex: 1; }
.panel-body { overflow-y: auto; min-width: 0; -webkit-overflow-scrolling: touch; flex: 1; }
.panel-foot { padding: 12px 16px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr; gap: 8px; background: var(--paper); }
.panel-foot.two { grid-template-columns: auto 1fr; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 84px); transform: translateX(-50%) translateY(8px); z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; font-size: 14px; opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none; max-width: calc(100vw - 24px); }
.toast.on { opacity: 1; transform: translateX(-50%); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--cover-ink-2); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-ink); box-shadow: 0 0 0 2px rgba(108, 196, 151, .25); }
.live.off i { background: var(--red); box-shadow: none; }

/* ---------- landing ---------- */
.hero { padding: 28px 16px 8px; color: var(--cover-ink); background: var(--cover); }
.hero-in { max-width: 680px; margin: 0 auto; }
.hero h1 { font-size: clamp(44px, 9vw, 76px); text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.hero h1 em { font-style: normal; color: #E2553F; }
.hero p { margin-top: 16px; font-size: 18px; max-width: 40ch; color: var(--cover-ink-2); }
.hero .cta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.demo-label { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--paper-2); border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.proofs { list-style: none; margin: 0; padding: 0; }
.proofs li { padding: 14px 16px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 7px auto; gap: 12px; align-items: center; }
.proofs li:last-child { border-bottom: 0; }
.proofs b { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .04em; }
.proofs span { color: var(--ink-2); font-size: 15px; }
.proofs .rr { align-self: stretch; background: linear-gradient(90deg, var(--red) 0 2px, transparent 2px 5px, var(--red) 5px 7px); }
.proofs .tick { font-family: var(--display); font-weight: 700; color: var(--green-ink); font-size: 20px; padding-right: 16px; }
.foot { max-width: 680px; margin: 0 auto; padding: 32px 16px calc(env(safe-area-inset-bottom) + 32px); color: var(--cover-ink-2); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.foot a { color: var(--cover-ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.ledgers-list .row .desc b { white-space: normal; }

@media (min-width: 700px) {
  .page { padding-bottom: 40px; }
  .bar { position: sticky; bottom: 0; margin-top: 16px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); max-width: 680px; margin-inline: auto; }
  .bar .btn.oncover { background: var(--cover); color: var(--cover-ink); }
  .bar .btn.quiet { border-color: var(--rule-strong); color: var(--ink); }
}

/* ---------- utilities (CSP forbids inline styles) ---------- */
.u-pb0 { padding-bottom: 0 !important; }
.u-pb4 { padding-bottom: 4px !important; }
.u-pb16 { padding-bottom: 16px !important; }
.u-pt10 { padding-top: 10px !important; }
.u-mt6 { margin-top: 6px; }
.u-mt12 { margin-top: 12px; }
.u-mb8 { margin-bottom: 8px; }
.u-w100 { width: 100%; }
.u-break { word-break: break-all; }
.emoji-in { flex: 0 0 64px; text-align: center; }
.btn.quiet.on-cover { color: var(--cover-ink); border-color: rgba(255, 255, 255, .35); }
.card-img { width: 100%; max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; display: block; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.rowlink { text-decoration: none; }
.prose { max-width: 64ch; }
.prose p + p { margin-top: 12px; }
.label.between { display: flex; justify-content: space-between; align-items: center; }
.page.u-pb0 { padding-bottom: 0; }

/* ---------- read pages (guides, occasions, calculator) ---------- */
.prose { max-width: 64ch; }
.prose h2 { font-size: 24px; text-transform: none; letter-spacing: 0; margin: 28px 0 8px; }
.prose h3 { font-size: 18px; margin: 20px 0 6px; }
.prose p, .prose li { font-size: 17px; line-height: 1.55; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 8px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-family: var(--display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); }
.prose td.r, .prose th.r { text-align: right; white-space: nowrap; }
.prose a { color: var(--green-ink); }
.answer { background: var(--paper-2); border: 1px solid var(--rule); border-left: 1px solid var(--rule); padding: 14px 16px; margin: 12px 0 4px; font-size: 17px; line-height: 1.5; }
.dateline { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-family: var(--display); font-weight: 700; color: var(--ink-2); }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.more { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.more li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.more a { text-decoration: none; color: var(--ink); }
.more a:hover { text-decoration: underline; }
@media (max-width: 520px) { .more { columns: 1; } }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.calc-grid .field { padding-left: 0; padding-right: 0; }
.calc-people .split-row { grid-template-columns: 1fr 130px; }
.result { padding: 16px; background: var(--paper-2); border-top: 2px solid var(--rule-strong); }
.result .big { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; }
.result .lead { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.calc-people .inline .input { text-align: left; }

.fx summary { cursor: pointer; list-style: none; }
.fx summary::-webkit-details-marker { display: none; }
.fx summary::after { content: ' +'; }
.fx[open] summary::after { content: ' \2013'; }
.fx .calc-grid { margin-top: 4px; }

/* ---------- account surfaces ---------- */
.h2ish { font-size: 18px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.u-pt0 { padding-top: 0 !important; }
.amt-text { font-weight: 500; margin-right: 4px; }
.row .actions .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .row .actions { flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .row .actions .amt-text { margin: 0; }
}
