/* CBR Solutions — Built by Britain Technologies
   ---------------------------------------------------------------
   BRAND COLOURS: change these to match your logo and the whole app follows. */
:root {
  --brand: #044174;        /* primary: CBR blue (the R) */
  --brand-700: #032E52;    /* darker shade */
  --brand-500: #0B4D8E;    /* lighter shade */
  --brand-50: #E8F0F8;     /* tint for backgrounds */
  --accent: #EC7500;       /* CBR orange (the B) */
  --accent-600: #C96300;
  --accent-50: #FDF0E3;
  --charcoal: #272C31;     /* CBR charcoal (the C) */
  --concrete: #CDCCD1;     /* block grey */

  --bg: #F4F6F9;
  --card: #FFFFFF;
  --ink: #272C31;
  --ink-2: #4A5A6C;
  --ink-3: #7D8B9A;
  --line: #E2E7EE;
  --ok: #1E8E5A;
  --ok-50: #E6F5EE;
  --warn: #B7791F;
  --warn-50: #FDF3E1;
  --bad: #C0392B;
  --bad-50: #FBEAE8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 34, 51, .06), 0 4px 16px rgba(16, 34, 51, .06);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1622; --card: #13212F; --ink: #E8EEF4; --ink-2: #A9B6C4; --ink-3: #7C8A99; --line: #22323F;
    --brand-50: #132C40; --accent-50: #2E2614; --ok-50: #0F2E21; --warn-50: #2F2412; --bad-50: #351816;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); overscroll-behavior-y: none; }
body { font-size: 16px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-500); }
@media (prefers-color-scheme: dark) { a { color: var(--accent); } }
.boot { height: 100vh; display: grid; place-items: center; background: #fff; }
.boot img { width: 220px; height: auto; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .8; } }

/* ---------- shell ---------- */
.shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 760px; margin: 0 auto; background: var(--bg); position: relative; }
.topbar { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; border-bottom: 3px solid var(--accent); padding: calc(var(--safe-top) + 10px) 16px 12px; display: flex; align-items: center; gap: 12px; flex: none; }
.topbar img { width: 38px; height: 38px; border-radius: 10px; background: #fff; padding: 3px; object-fit: contain; }
.topbar .t { flex: 1; min-width: 0; }
.topbar .t b { display: block; font-size: 17px; letter-spacing: .2px; }
.topbar .t small { opacity: .75; font-size: 12px; }
.topbar .back { background: rgba(255,255,255,.14); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; font-size: 20px; cursor: pointer; }
.scroller { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; position: relative; }
.content { padding: 16px 16px 24px; min-height: calc(100% - 52px); }
.nav { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding-bottom: var(--safe-bottom); }
.nav a { text-decoration: none; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; font-size: 11px; font-weight: 600; }
.nav a svg { width: 24px; height: 24px; }
.nav a.on { color: var(--brand); }
@media (prefers-color-scheme: dark) { .nav a.on { color: var(--accent); } }
.nav a.on svg { stroke-width: 2.4; }

/* ---------- footer (all screens) ---------- */
.foot { text-align: center; font-size: 12px; color: var(--ink-3); padding: 14px 16px 18px; }
.foot b { color: var(--ink-2); font-weight: 600; }

/* ---------- pull to refresh ---------- */
.ptr { position: absolute; left: 0; right: 0; top: 0; height: 0; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; pointer-events: none; z-index: 5; }
.ptr i { width: 30px; height: 30px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; margin-bottom: 8px; }
.ptr i::after { content: ""; width: 14px; height: 14px; border: 2.5px solid var(--brand); border-top-color: transparent; border-radius: 50%; }
.ptr.spin i::after { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- home ---------- */
.hello { margin: 2px 0 14px; }
.hello h1 { font-size: 24px; margin: 0; letter-spacing: -.3px; }
.hello p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.balance { background: linear-gradient(140deg, var(--brand-500) 0%, var(--brand) 55%, var(--brand-700) 100%); color: #fff; border-radius: 22px; padding: 20px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(4, 65, 116, .28); }
.balance::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 18px solid rgba(236, 117, 0, .25); }
.balance .lbl { font-size: 13px; opacity: .8; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.balance .amt { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.balance .amt small { font-size: 18px; font-weight: 700; color: var(--accent); margin-right: 6px; letter-spacing: 0; }
.balance .row { display: flex; gap: 10px; position: relative; z-index: 1; }
.balance .row div { flex: 1; background: rgba(255,255,255,.1); border-radius: 12px; padding: 8px 10px; }
.balance .row span { display: block; font-size: 11px; opacity: .75; }
.balance .row b { font-size: 15px; font-variant-numeric: tabular-nums; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.quick a { background: var(--card); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; }
.quick a i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 20px; flex: none; }
.quick a .in { background: var(--ok-50); color: var(--ok); }
.quick a .out { background: var(--accent-50); color: var(--accent-600); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.stat span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.stat b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.alert { display: flex; align-items: center; gap: 10px; background: var(--warn-50); color: var(--warn); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; font-weight: 600; margin-bottom: 14px; }

/* ---------- lists & cards ---------- */
h2.sec { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); margin: 18px 4px 8px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card + .card { margin-top: 12px; }
.card.pad { padding: 16px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; }
.ic.in { background: var(--ok-50); color: var(--ok); }
.ic.out { background: var(--accent-50); color: var(--accent-600); }
.item .m { flex: 1; min-width: 0; }
.item .m b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .m small { color: var(--ink-3); font-size: 12.5px; }
.item .r { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.item .r small { display: block; font-weight: 500; }
.pos { color: var(--ok); }
.neg { color: var(--ink); }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-3); }
.chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .4px; }
.chip.pending { background: var(--warn-50); color: var(--warn); }
.chip.approved { background: var(--brand-50); color: var(--brand-500); }
.chip.paid, .chip.received { background: var(--ok-50); color: var(--ok); }
.chip.rejected, .chip.cancelled, .chip.void { background: var(--bad-50); color: var(--bad); }
@media (prefers-color-scheme: dark) { .chip.approved { color: #8CC4EE; } }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 1px solid var(--line); background: var(--card); padding: 7px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.search { display: flex; gap: 8px; margin-bottom: 12px; }
.search input { flex: 1; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
input, select, textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50); }
textarea { min-height: 84px; resize: vertical; }
.money-in { position: relative; }
.money-in span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-3); }
.money-in input { padding-left: 52px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.row2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: 22px; height: 22px; -webkit-appearance: auto; appearance: auto; accent-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; background: var(--brand); color: #fff; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.block { width: 100%; }
.btn.gold { background: var(--accent); color: #fff; }
.btn.ghost { background: var(--brand-50); color: var(--brand); }
@media (prefers-color-scheme: dark) { .btn.ghost { color: #CFE3F3; } }
.btn.ok { background: var(--ok); }
.btn.bad { background: var(--bad-50); color: var(--bad); }
.btn.sm { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btns { display: grid; gap: 10px; margin-top: 8px; }
.btns.two { grid-template-columns: 1fr 1fr; }

/* ---------- detail ---------- */
.hero { text-align: center; padding: 20px 16px; }
.hero .n { color: var(--ink-3); font-weight: 700; font-size: 13px; letter-spacing: .5px; }
.hero .a { font-size: 34px; font-weight: 800; letter-spacing: -.8px; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.kv td:first-child { color: var(--ink-3); font-size: 14px; width: 38%; }
.kv td:last-child { font-weight: 600; text-align: right; word-break: break-word; }
.timeline { padding: 6px 16px 10px; }
.tl { display: flex; gap: 12px; position: relative; padding: 10px 0; }
.tl::before { content: ""; position: absolute; left: 13px; top: 36px; bottom: -10px; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl i { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 800; background: var(--line); color: var(--ink-3); }
.tl.done i { background: var(--ok); color: #fff; }
.tl.no i { background: var(--bad); color: #fff; }
.tl b { display: block; font-size: 15px; }
.tl small { color: var(--ink-3); font-size: 13px; }

/* ---------- balance sheet ---------- */
.bs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bs td { padding: 9px 16px; }
.bs td:last-child { text-align: right; white-space: nowrap; }
.bs tr.h td { text-align: left !important; background: var(--brand-50); color: var(--brand); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
@media (prefers-color-scheme: dark) { .bs tr.h td { color: #CFE3F3; } }
.bs tr.t td { font-weight: 800; border-top: 1px solid var(--line); }
.bs tr.g td { font-weight: 800; background: var(--accent-50); border-top: 2px solid var(--accent); }
.bs td.e { color: var(--ink-3); font-style: italic; }
.memo { font-size: 13px; color: var(--ink-3); padding: 10px 16px; }

/* ---------- auth (always light so the full-colour logo reads well) ---------- */
.auth { --card: #FFFFFF; --ink: #272C31; --ink-2: #4A5561; --ink-3: #7D8791; --line: #E2E6EB; --brand-50: #E8F0F8; --bad: #C0392B; --bad-50: #FBEAE8;
  color-scheme: light; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 35%, #EEF2F6 100%); color: var(--ink); padding-top: var(--safe-top); overflow-y: auto; position: relative; }
.auth::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--charcoal) 0 33.3%, var(--accent) 33.3% 66.6%, var(--brand) 66.6%); }
.auth .in { flex: 1; width: 100%; max-width: 400px; margin: 0 auto; padding: 28px 22px 10px; display: flex; flex-direction: column; align-items: center; }
.auth .logo { width: 190px; height: auto; }
.auth .logo.sm { width: 150px; }
.auth h1 { margin: 14px 0 2px; font-size: 23px; letter-spacing: -.3px; color: var(--charcoal); text-align: center; }
.auth .sub { color: var(--ink-2); margin: 6px 0 16px; font-size: 15px; text-align: center; }
.auth .foot { color: var(--ink-3); }
.auth .foot b { color: var(--ink-2); }
.auth .panel { background: #fff; color: var(--ink); border-radius: 20px; padding: 20px; width: 100%; box-shadow: 0 10px 30px rgba(39, 44, 49, .1); border: 1px solid var(--line); }
.auth .link { background: none; border: 0; color: var(--brand-500); font-weight: 650; cursor: pointer; padding: 6px; font-size: 15px; }
.auth .err { min-height: 22px; color: var(--bad); font-weight: 600; font-size: 14px; text-align: center; margin: 8px 0 4px; }
.auth input.user { text-align: center; font-weight: 600; }
.dots { display: flex; gap: 14px; justify-content: center; margin: 14px 0 6px; }
.dots span { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #A9B3BD; transition: background .1s, transform .1s; }
.dots span.f { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 74px); gap: 12px 22px; justify-content: center; margin-top: 4px; }
.keypad button { width: 74px; height: 74px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--charcoal); font-size: 28px; font-weight: 500; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(39, 44, 49, .08); }
.keypad button:active { background: var(--brand); color: #fff; border-color: var(--brand); }
.keypad button.fn { background: transparent; border: 0; box-shadow: none; font-size: 15px; font-weight: 600; color: var(--brand); }
.keypad button.fn#bio { color: var(--accent); }
.keypad button svg { width: 30px; height: 30px; }
.whoami { display: flex; align-items: center; gap: 10px; background: var(--brand-50); color: var(--brand); font-weight: 600; padding: 6px 14px 6px 6px; border-radius: 99px; }
.whoami .av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 20, 32, .5); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: fade .15s; }
.modal { background: var(--card); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + var(--safe-bottom)); max-height: 90vh; overflow-y: auto; animation: up .2s ease-out; }
@media (min-width: 600px) { .modal-bg { align-items: center; } .modal { border-radius: 22px; } }
.modal h3 { margin: 4px 0 6px; font-size: 19px; }
.modal p { color: var(--ink-2); margin: 0 0 14px; font-size: 15px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px); transform: translateX(-50%) translateY(20px); background: #142233; color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--bad); }

.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; color: var(--ink); font-weight: 600; cursor: pointer; text-align: left; font-size: 16px; }
.menu > :last-child { border-bottom: 0; }
.menu .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; font-size: 17px; }
@media (prefers-color-scheme: dark) { .menu .ico { color: #CFE3F3; } }
.menu span.go { margin-left: auto; color: var(--ink-3); }
.profile { display: flex; gap: 14px; align-items: center; padding: 16px; }
.profile .av { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.profile b { display: block; font-size: 18px; }
.profile small { color: var(--ink-3); }
.muted { color: var(--ink-3); font-size: 13px; }
.spacer { height: 12px; }

input[type=date] { min-height: 48px; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }

/* ---------- v1.1 ---------- */
.quick i.cnt { background: var(--brand-50); color: var(--brand); font-weight: 800; }
.quick i.chk { background: #EDEDF0; color: var(--charcoal); font-weight: 800; }
@media (prefers-color-scheme: dark) { .quick i.cnt { color: #CFE3F3; } .quick i.chk { background: #2A3540; color: #E8EEF4; } }
.countcard { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-bottom: 14px; }
.countcard > div { flex: 1; min-width: 0; }
.countcard b { display: block; font-size: 17px; margin-top: 2px; }
.countcard small { color: var(--ink-3); font-size: 12.5px; }
.countcard .muted { font-size: 12px; }
.countcard .go { color: var(--ink-3); font-size: 20px; }
.tabs a { border: 1px solid var(--line); background: var(--card); padding: 7px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.line-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 40px; gap: 8px; margin-bottom: 8px; }
.line-row .x { border: 0; background: var(--bad-50); color: var(--bad); border-radius: 10px; font-weight: 700; cursor: pointer; }
.line-row input { padding: 10px 12px; }
.lines-hint { color: var(--accent-600) !important; font-weight: 600; }
input[readonly] { background: var(--brand-50); }
.balance.small { padding: 16px; border-radius: 18px; }
.balance.small .amt { font-size: 30px; margin: 2px 0 10px; }
.item small.by { display: block; font-size: 11.5px; color: var(--ink-3); }
.item .m small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
h2.daysep { margin-top: 16px; }
.den-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 96px; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.den-row:last-child { border-bottom: 0; }
.den-row .den { font-weight: 800; color: var(--brand); font-size: 16px; }
@media (prefers-color-scheme: dark) { .den-row .den { color: #8CC4EE; } }
.den-row .sub { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper input { text-align: center; padding: 9px 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper button { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 18px; font-weight: 700; color: var(--brand); cursor: pointer; }
.stepper button:active { background: var(--brand); color: #fff; }
.sticky-sum { position: sticky; top: 0; z-index: 3; margin-bottom: 12px; border-top: 3px solid var(--accent); }
.sumgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sumgrid span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.sumgrid b { font-size: 20px; font-variant-numeric: tabular-nums; }
.varline { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tape-in { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.tape-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.tape-row button { border: 0; background: none; color: var(--bad); font-weight: 700; cursor: pointer; }
.tape-row.t { border-bottom: 0; border-top: 2px solid var(--accent); margin-top: 4px; }
.modal .bs td { padding: 8px 4px; }
label.btn { cursor: pointer; }
.rhint { color: var(--accent-600) !important; font-weight: 600; margin: -8px 0 12px; }
.modal .rhint { margin: 6px 0 0; }
