/* FiberNearMe Pie: a calm finance tool. Light and dark themes via prefers-color-scheme. */

:root {
  color-scheme: light;
  --surface: #ffffff;
  --plane: #f9f9f9;
  --ink: #191919;
  --ink-2: #666666;
  --line: #e7e7e7;
  --line-strong: #cfcfcf;
  --focus: #257de0;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --danger-line: #f3b8b2;
  --warn-ink: #6b4a00;
  --warn-bg: #fff5d6;
  --warn-line: #f0d68a;
  --ok: #0a7a33;
  --info-bg: #eef4fc;
  --s0: #257de0; --s1: #f47230; --s2: #00b894; --s3: #f2a600;
  --s4: #ee7fac; --s5: #008a17; --s6: #6a4ce2; --s7: #ec4647;
  --s-other: #a3a3a3;
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: #191919;
    --plane: #0b0b0b;
    --ink: #efefef;
    --ink-2: #9c9c9c;
    --line: #303030;
    --line-strong: #4a4a4a;
    --focus: #338ced;
    --danger: #ff8a80;
    --danger-bg: #3a1714;
    --danger-line: #6e2a24;
    --warn-ink: #f5d27a;
    --warn-bg: #33280c;
    --warn-line: #5e4a14;
    --ok: #5fd38a;
    --info-bg: #14233a;
    --s0: #338ced; --s1: #e76624; --s2: #00a888; --s3: #d28e05;
    --s4: #e24d8b; --s5: #0aac23; --s6: #9887ef; --s7: #eb6263;
    --s-other: #6b6b6b;
  }
}

[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--plane);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 1.5rem; font-weight: 650; }
h2 { font-size: 1.125rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0.5rem 0; }
a { color: var(--focus); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1:focus, h2:focus, h3:focus, main:focus { outline: none; }

.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.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;
}
.loading { color: var(--ink-2); padding: 2rem 0; }

/* ---- Header and tabs ---- */

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.5rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 0.4rem; min-width: 0; }
.brand-name { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.brand-sub { color: var(--ink-2); }
.who { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.who-name { color: var(--ink-2); font-size: 0.95rem; }

.tabs { background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs ul { display: flex; list-style: none; margin: 0 auto; padding: 0 0.5rem; max-width: 1100px; }
.tab {
  display: flex; align-items: center; min-height: 44px; padding: 0 0.85rem;
  color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

main { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* ---- Banners and toasts ---- */

.banners { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.banners:empty { display: none; }
.banner { margin-top: 0.75rem; padding: 0.7rem 0.9rem; border-radius: var(--radius); border: 1px solid; }
.banner-red { background: var(--danger-bg); border-color: var(--danger-line); color: var(--ink); }
.banner-red strong { color: var(--danger); }
.banner-amber { background: var(--warn-bg); border-color: var(--warn-line); color: var(--ink); }
.banner-amber strong { color: var(--warn-ink); }

.toasts {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 50;
  display: flex; flex-direction: column; gap: 0.5rem; width: min(560px, calc(100vw - 1.5rem));
}
.toast {
  display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.6rem 0.6rem 0.6rem 0.9rem;
  background: var(--ink); color: var(--surface); border-radius: var(--radius); box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
}
.toast p { margin: 0.35rem 0; flex: 1; }
.toast-warn { background: var(--danger-bg); color: var(--ink); border: 1px solid var(--danger-line); }
.toast-close {
  min-width: 40px; min-height: 40px; background: transparent; border: 0; color: inherit; font-size: 1.3rem; cursor: pointer;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 40px; padding: 0.45rem 0.95rem; border-radius: var(--radius);
  font: inherit; font-size: 0.95rem; font-weight: 550; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.btn:hover:not(:disabled) { border-color: var(--ink-2); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-primary:hover:not(:disabled) { opacity: 0.88; }
.btn-danger { color: var(--danger); border-color: var(--danger-line); }
.btn-link { border-color: transparent; background: transparent; color: var(--focus); padding-left: 0.4rem; padding-right: 0.4rem; }
.btn-row { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }
.icon-btn {
  min-width: 40px; min-height: 40px; border: 0; background: transparent; color: var(--ink-2);
  font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: var(--radius);
}
.icon-btn:hover { color: var(--ink); background: var(--plane); }

.badge {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--ink-2); vertical-align: middle; margin-left: 0.4rem;
}
.badge-view { color: var(--ink); background: var(--plane); }
.badge-left { margin-left: 0; color: var(--ink); }

/* ---- Tables ---- */

.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0.75rem 0; }
table.data { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
table.data caption { text-align: left; padding: 0.6rem 0.75rem; color: var(--ink-2); font-size: 0.9rem; }
table.data th, table.data td { padding: 0.55rem 0.75rem; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
table.data thead th { font-weight: 600; color: var(--ink-2); font-size: 0.85rem; white-space: nowrap; border-top: 0; }
table.data thead th.num { text-align: right; }
table.data tbody th { font-weight: 550; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data tfoot th, table.data tfoot td { font-weight: 650; border-top: 2px solid var(--line-strong); }
table.compact th, table.compact td { padding: 0.45rem 0.6rem; }
.name-cell { display: inline-flex; align-items: center; gap: 0.45rem; }
table.compact .name-cell { white-space: nowrap; }
.member-notes { font-weight: 400; font-size: 0.85rem; color: var(--ink-2); margin-top: 0.3rem; max-width: 34rem; }
.member-notes .note-line { display: block; }
.row-departed th .name-cell { color: var(--ink); }
.row-voided td { color: var(--ink-2); }
.row-voided .strike { text-decoration: line-through; }
.counts-note { display: block; font-size: 0.85rem; color: var(--ink-2); font-style: italic; margin-top: 0.2rem; }
.void-note { display: block; font-size: 0.85rem; color: var(--danger); margin-top: 0.2rem; }
.note-cell { overflow-wrap: anywhere; }
.row-actions .btn { min-height: 40px; }
.row-changed th, .row-changed td { background: var(--plane); }
.delta { font-size: 0.85rem; }
.neg { color: var(--danger); }
.pos { color: var(--ok); }

/* ---- Swatches and the chart ---- */

.swatch { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 3px; flex: none; background: var(--s-other); }
.sw-0 { background: var(--s0); fill: var(--s0); }
.sw-1 { background: var(--s1); fill: var(--s1); }
.sw-2 { background: var(--s2); fill: var(--s2); }
.sw-3 { background: var(--s3); fill: var(--s3); }
.sw-4 { background: var(--s4); fill: var(--s4); }
.sw-5 { background: var(--s5); fill: var(--s5); }
.sw-6 { background: var(--s6); fill: var(--s6); }
.sw-7 { background: var(--s7); fill: var(--s7); }
.sw-other { background: var(--s-other); fill: var(--s-other); }

.chart-row {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
}
.chart-wrap { position: relative; width: min(260px, 100%); flex: none; margin: 0 auto; }
.donut { display: block; width: 100%; height: auto; overflow: visible; }
.seg { stroke: var(--surface); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: default; }
.seg:hover, .seg:focus { opacity: 0.85; }
.seg:focus { outline: none; stroke: var(--ink); }
.donut-total { fill: var(--ink); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.donut-total-long { font-size: 15px; }
.donut-label { fill: var(--ink-2); font-size: 11px; }
.chart-tip {
  position: absolute; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; z-index: 5;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 0.4rem 0.6rem; font-size: 0.85rem; white-space: nowrap; box-shadow: 0 2px 10px rgb(0 0 0 / 0.15);
  font-variant-numeric: tabular-nums;
}
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 14rem; }
.legend li {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0; border-top: 1px solid var(--line);
}
.legend li:first-child { border-top: 0; }
.legend-name { overflow-wrap: anywhere; }
.legend-share { font-weight: 650; }
.legend-slices { color: var(--ink-2); font-size: 0.9rem; }

.empty-state {
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; color: var(--ink-2);
}
.empty-title { color: var(--ink); font-weight: 650; font-size: 1.05rem; }

/* ---- Member cards ---- */

.cards { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; min-width: 0; }
.card-title { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem 1rem; margin: 0.75rem 0 0; }
.fact { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0; border-top: 1px solid var(--line); min-width: 0; }
.fact dt { color: var(--ink-2); font-size: 0.88rem; }
.fact dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---- Ledger filters ---- */

.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.filters .field { margin: 0; }
.buyouts { margin-top: 1.5rem; }

/* ---- Activity ---- */

.integrity { margin-bottom: 1rem; }
.verified { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.9rem; margin: 0; }
.ok-mark { color: var(--ok); font-weight: 700; }
.problems { background: var(--danger-bg); border: 1px solid var(--danger-line); border-radius: var(--radius); padding: 0.7rem 0.9rem; }
.problems strong { color: var(--danger); }
.alerts { margin-top: 0.5rem; color: var(--ink-2); }
.revals { margin-bottom: 1.25rem; }
.event-list { list-style: none; margin: 0.5rem 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.event { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.6rem 0.9rem; border-top: 1px solid var(--line); }
.event:first-child { border-top: 0; }
.event-text { min-width: 0; }
.event-summary { margin: 0; overflow-wrap: anywhere; }
.event-meta { margin: 0.15rem 0 0; color: var(--ink-2); font-size: 0.85rem; }
.load-more { display: flex; justify-content: center; margin: 0.75rem 0; }

/* ---- Settings ---- */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.panel h2 + .setting, .panel h2 + .hint + .setting { border-top: 0; }
.setting-label { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.setting-value { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ---- Forms ---- */

.form { display: block; }
.field { margin: 0 0 0.9rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 0.3rem; padding: 0; }
.optional { font-weight: 400; color: var(--ink-2); }
.hint { color: var(--ink-2); font-size: 0.88rem; margin: 0.2rem 0 0.4rem; }
input[type="text"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; min-height: 44px; padding: 0.5rem 0.65rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px;
}
textarea { min-height: 4.5rem; resize: vertical; }
.num-input { font-variant-numeric: tabular-nums; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.filters select { width: auto; min-width: 11rem; }
.field-error { color: var(--danger); font-size: 0.9rem; margin: 0.3rem 0 0; }
.form-alert {
  background: var(--danger-bg); border: 1px solid var(--danger-line); color: var(--ink);
  border-radius: var(--radius); padding: 0.65rem 0.8rem; margin: 0.5rem 0;
}
.form-alert:focus { outline: 2px solid var(--danger); outline-offset: 1px; }
.info-line { background: var(--info-bg); border-radius: var(--radius); padding: 0.6rem 0.8rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.9rem; }
@media (max-width: 520px) { .two-col { grid-template-columns: 1fr; } }

.radio-group .radio-row, .check-row, .pick-row { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.35rem 0; }
.radio-row input, .check-row input, .pick-row input { width: 20px; height: 20px; margin: 0.15rem 0 0; flex: none; accent-color: var(--ink); }
.radio-row label, .check-row label, .pick-row label { display: flex; flex-direction: column; cursor: pointer; min-height: 40px; justify-content: center; }
.radio-label { font-weight: 550; }
.radio-desc { color: var(--ink-2); font-size: 0.88rem; }
.check-row { align-items: center; }
.check-row label { font-weight: 550; }
.pick-list { max-height: 16rem; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.25rem 0.75rem; }
.pick-row { border-top: 1px solid var(--line); }
.pick-row:first-of-type { border-top: 0; }
.pick-main { font-weight: 550; font-variant-numeric: tabular-nums; }
.pick-sub { color: var(--ink-2); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.inline-actions { margin: -0.5rem 0 0.5rem; }

.override { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.3rem 0.75rem; margin: 0 0 0.9rem; }
.override summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 550; }
.override[open] summary { margin-bottom: 0.25rem; }
.uses-line { color: var(--ink-2); font-size: 0.9rem; }
.live-line {
  background: var(--plane); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.6rem 0.8rem; font-variant-numeric: tabular-nums; font-weight: 550; overflow-wrap: anywhere;
}
.warn-line { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 0.55rem 0.8rem; color: var(--ink); }
.no-change { color: var(--ink-2); font-style: italic; }
.saved ul.plain { padding-left: 1.2rem; }

/* ---- Dialogs ---- */

.dlg {
  width: min(560px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); padding: 0;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
}
.dlg:not([open]) { display: none; }
.dlg-wide { width: min(960px, calc(100vw - 16px)); }
.dlg::backdrop { background: rgb(0 0 0 / 0.45); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.6rem 0.4rem 1.1rem; border-bottom: 1px solid var(--line); }
.dlg-head h2 { overflow-wrap: anywhere; }
.dlg > .form-alert { margin: 0.75rem 1.1rem 0; }
.dlg-body { padding: 1rem 1.1rem 0.5rem; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.dlg-footer { padding: 0.75rem 1.1rem; border-top: 1px solid var(--line); background: var(--surface); }
.review-step h3, .compare-title { margin: 0.25rem 0 0.5rem; }

.compare { margin-top: 0.5rem; border-top: 1px solid var(--line); padding-top: 0.75rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 410px), 1fr)); gap: 0.75rem; }
.choice-panel { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.choice-panel > .btn { margin-top: auto; width: 100%; }
.choice-panel .reflow-wrap { margin: 0.4rem 0 0.75rem; }
.choice-refused { background: var(--plane); }
.refused { color: var(--danger); }

/* ---- Sign-in ---- */

.signin { max-width: 440px; margin: 3rem auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }
.signin h1 { margin-bottom: 0.5rem; }
.signin .btn-row { justify-content: flex-start; margin-top: 0.5rem; }
.signin-message { margin-top: 1rem; }
.dev-link { margin-top: 0.75rem; padding: 0.75rem; border: 1px dashed var(--warn-line); background: var(--warn-bg); border-radius: var(--radius); overflow-wrap: anywhere; }
.dev-link-label { margin: 0 0 0.3rem; font-weight: 600; }
.noscript { padding: 2rem; text-align: center; }

@media (max-width: 480px) {
  main { padding: 0.75rem; }
  .tabs ul { padding: 0 0.25rem; }
  .tab { padding: 0 0.5rem; font-size: 0.95rem; }
  .topbar { padding: 0.4rem 0.75rem; }
  h1 { font-size: 1.3rem; }
  .signin { margin: 1rem auto; padding: 1.1rem; }
  .dlg-body { padding: 0.85rem 0.85rem 0.4rem; }
  .dlg-footer { padding: 0.6rem 0.85rem; }
}

/* ---- Member comparison table (review and preview): reflows inside narrow containers ---- */

.reflow-wrap {
  container-type: inline-size; margin: 0.5rem 0 0.75rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
table.reflow { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.reflow th, table.reflow td { padding: 0.45rem 0.6rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
table.reflow thead th { border-top: 0; color: var(--ink-2); font-size: 0.82rem; font-weight: 600; }
table.reflow tbody th { font-weight: 550; overflow-wrap: anywhere; }
table.reflow td.num, table.reflow th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.reflow .delta { display: block; font-size: 0.85rem; }
table.reflow tr.row-changed th, table.reflow tr.row-changed td { background: var(--plane); }
table.reflow tr.row-changed th { font-weight: 700; }
.chip { display: inline-block; margin-left: 0.4rem; font-size: 0.72rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 0.4rem; vertical-align: middle; }
@container (max-width: 400px) {
  table.reflow thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.reflow, table.reflow tbody, table.reflow tr, table.reflow th, table.reflow td { display: block; }
  table.reflow tr { padding: 0.5rem 0.65rem; border-top: 1px solid var(--line); }
  table.reflow tbody tr:first-child { border-top: 0; }
  table.reflow th, table.reflow td, table.reflow td.num { border: 0; padding: 0.1rem 0; text-align: left; background: transparent; }
  table.reflow tr.row-changed th, table.reflow tr.row-changed td { background: transparent; }
  table.reflow td::before { content: attr(data-label) ": "; color: var(--ink-2); }
  table.reflow .delta { display: inline; margin-left: 0.35rem; }
}

/* ---- Ledger: a fitting table from 900px, stacked cards below ---- */

.table-box { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0.75rem 0; }
.narrow-only { display: none; }
@media (max-width: 899px) {
  .wide-only { display: none; }
  .narrow-only { display: block; }
}
table.ledger { font-size: 0.9rem; }
table.ledger th, table.ledger td, .buyouts table.data th, .buyouts table.data td { padding: 0.5rem 0.45rem; }
table.ledger th:first-child, table.ledger td:first-child { padding-left: 0.75rem; }
table.ledger .name-cell, .buyouts table.data .name-cell { display: inline; }
td.member-cell { min-width: 8.5rem; }
table.ledger .name-cell .swatch, .buyouts table.data .name-cell .swatch { margin-right: 0.35rem; vertical-align: -1px; }
table.ledger .sub { display: block; color: var(--ink-2); font-size: 0.82rem; }
.note-col { width: 24%; }
td.note-cell { min-width: 6rem; max-width: none; overflow-wrap: anywhere; }
td.row-actions { width: 1%; padding-right: 0.6rem; }
.action-group { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
td.row-actions .action-group { flex-wrap: nowrap; }
td.row-actions .btn { margin: 0; padding: 0.3rem 0.65rem; }

.list-caption { margin: 0.75rem 0 0.4rem; font-size: 0.9rem; }
.entry-cards { list-style: none; margin: 0.5rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.entry-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.85rem; }
.entry-card p { margin: 0.15rem 0; }
.ec-head { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.ec-label { color: var(--ink-2); }
.ec-line { font-variant-numeric: tabular-nums; }
.ec-line .sub { display: inline; margin-left: 0.35rem; color: var(--ink-2); }
.ec-note { overflow-wrap: anywhere; }
.entry-card .action-group { justify-content: flex-start; margin-top: 0.5rem; }
.entry-card.row-voided { color: var(--ink-2); }
.entry-card.row-voided .strike { text-decoration: line-through; }
