:root {
  color-scheme: light;
  --ink: #2b201a;
  --muted: #7e6b60;
  --canvas: #f4ede2;
  --surface: #fffaf3;
  --surface-strong: #ffffff;
  --border: #e1d4c2;
  --wine: #6f1d32;
  --wine-deep: #4d1022;
  --gold: #e7ad55;
  --green: #2d7559;
  --danger: #a43b42;
  --radius: 20px;
  --shadow: 0 24px 65px rgba(72, 45, 25, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  background: #eae0d2;
  color: var(--ink);
  margin: 0;
  min-width: 320px;
}

button,
input { font: inherit; }

button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

button:focus-visible,
input:focus-visible {
  outline: 3px solid #d89a40;
  outline-offset: 3px;
}

.app-shell {
  background: var(--canvas);
  box-shadow: var(--shadow);
  min-height: 100vh;
  overflow: hidden;
}

.auth-button,
.soft-button,
.light-button,
.outline-button,
.primary-button {
  align-items: center;
  border-radius: 11px;
  display: inline-flex;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
}

.auth-button {
  background: rgba(255, 247, 237, 0.08);
  border: 1px solid rgba(255, 247, 237, 0.22);
  color: #fff7ed;
  font-size: 11px;
  min-height: 36px;
  padding: 7px 11px;
}

.auth-button.is-authenticated { background: #fff7ed; color: var(--wine); }

.game-night {
  background: #332019;
  color: #fff7ed;
  padding: 26px clamp(18px, 4vw, 44px) 30px;
}

.game-heading {
  align-items: flex-end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto 20px;
  max-width: 1180px;
}

.kicker {
  color: #8b7467;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.game-heading .kicker { color: #d9b8ac; }

.game-heading h1,
.ledger-heading h2,
.card-top h3,
.dialog-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.game-heading h1 { font-size: clamp(30px, 4vw, 42px); margin: 4px 0 0; }
.game-heading p { color: #cdbbb2; font-size: 13px; margin: 7px 0 0; }
.game-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.session-actions { align-items: center; display: flex; gap: 9px; }
.sync-status { color: #cbb7ad; font-size: 10px; }

.last-settled {
  align-items: center;
  background: rgba(255, 247, 237, 0.08);
  border: 1px solid rgba(255, 247, 237, 0.15);
  border-radius: 12px;
  display: flex;
  gap: 9px;
  min-height: 48px;
  padding: 9px 12px;
}

.context-icon { color: var(--gold); font-size: 18px; }
.last-settled > span:last-child { color: #c2afa5; display: flex; flex-direction: column; font-size: 11px; }
.last-settled strong { color: #fff7ed; font-size: 12px; margin-top: 2px; }

.soft-button {
  background: rgba(255, 247, 237, 0.08);
  border: 1px solid rgba(255, 247, 237, 0.2);
  color: #fff7ed;
  font-size: 12px;
}

.light-button { background: #fff7ed; border: 0; color: #5e182d; font-size: 12px; }
.light-button:hover { background: #ffffff; }

.table-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 14px 18px 24px;
}

.game-table {
  aspect-ratio: 2.08 / 1;
  background:
    radial-gradient(ellipse at 50% 42%, #167357 0%, #0a533f 48%, #05372b 100%) padding-box,
    linear-gradient(125deg, #271109 0%, #815235 19%, #3c1d11 43%, #91603c 67%, #241008 100%) border-box;
  border: 16px solid transparent;
  border-radius: 48% / 46%;
  box-shadow:
    0 0 0 5px #1d0d08,
    0 0 0 7px rgba(179, 119, 66, 0.38),
    inset 0 0 0 3px rgba(237, 193, 111, 0.42),
    inset 0 22px 54px rgba(255, 255, 255, 0.055),
    inset 0 -36px 62px rgba(0, 0, 0, 0.35),
    0 24px 48px rgba(17, 8, 4, 0.5);
  min-height: 450px;
  position: relative;
}

.game-table::before {
  border: 1px dashed rgba(243, 215, 158, 0.3);
  border-radius: inherit;
  content: "";
  inset: 25px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.game-table::after {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.07), transparent 45%),
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.4px);
  background-size: auto, 10px 10px;
  border-radius: inherit;
  content: "";
  inset: 8px;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.table-decor {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.dealt-cards {
  height: 62px;
  left: 27%;
  position: absolute;
  top: 64%;
  transform: translate(-50%, -50%);
  width: 78px;
}

.playing-card {
  background: linear-gradient(145deg, #fffef9, #efe8d9);
  border: 1px solid rgba(51, 32, 18, 0.35);
  border-radius: 6px;
  box-shadow: 0 7px 14px rgba(7, 19, 14, 0.32), inset 0 0 0 2px rgba(255, 255, 255, 0.66);
  color: #1e211d;
  height: 58px;
  position: absolute;
  width: 42px;
}

.playing-card b { font-family: Georgia, "Times New Roman", serif; font-size: 13px; left: 6px; line-height: 1; position: absolute; top: 5px; }
.playing-card i { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-style: normal; left: 50%; position: absolute; top: 52%; transform: translate(-50%, -50%); }
.card-spade { left: 3px; transform: rotate(-10deg); }
.card-heart { color: #a72d3f; right: 3px; transform: rotate(9deg); }

.chip-pile {
  height: 56px;
  left: 72%;
  position: absolute;
  top: 64%;
  transform: translate(-50%, -50%);
  width: 92px;
}

.poker-chip {
  --chip-color: #7a1730;
  background: repeating-conic-gradient(#f4e9d5 0deg 12deg, var(--chip-color) 12deg 42deg);
  border: 3px solid var(--chip-color);
  border-radius: 50%;
  box-shadow: 0 5px 10px rgba(4, 15, 11, 0.34), inset 0 0 0 2px #f5e9d4;
  height: 34px;
  position: absolute;
  width: 34px;
}

.poker-chip::after {
  background: var(--chip-color);
  border: 2px solid #eadbbf;
  border-radius: 50%;
  content: "";
  inset: 7px;
  position: absolute;
}

.chip-pile .poker-chip:nth-child(1) { bottom: 2px; left: 3px; transform: rotate(-12deg); }
.chip-pile .poker-chip:nth-child(2) { --chip-color: #222824; bottom: 13px; left: 25px; transform: rotate(11deg); }
.chip-pile .poker-chip:nth-child(3) { --chip-color: #bc7d28; bottom: 0; left: 47px; transform: rotate(-5deg); }
.chip-pile .poker-chip:nth-child(4) { bottom: 22px; left: 52px; transform: rotate(16deg); }

.dealer-button {
  align-items: center;
  background: #f4ead8;
  border: 3px double #6f604a;
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(5, 17, 12, 0.3);
  color: #514331;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  left: 73%;
  position: absolute;
  top: 36%;
  transform: rotate(8deg);
  width: 34px;
}

.player-seats {
  inset: 0;
  position: absolute;
  z-index: 3;
}

.player-seat {
  left: var(--seat-x);
  position: absolute;
  top: var(--seat-y);
  transform: translate(-50%, -50%);
  z-index: 3;
}

.player-seat button {
  align-items: center;
  background: linear-gradient(145deg, rgba(26, 22, 17, 0.97), rgba(7, 13, 10, 0.95));
  border: 1px solid rgba(229, 194, 129, 0.3);
  border-radius: 15px;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: #fff5e9;
  display: flex;
  gap: 10px;
  max-width: 150px;
  min-height: 52px;
  min-width: 150px;
  padding: 8px 11px;
  text-align: left;
  touch-action: manipulation;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  width: 150px;
}

.player-seat button:hover { border-color: rgba(239, 201, 124, 0.68); transform: translateY(-2px); }

.player-seat button.is-selected {
  background: linear-gradient(145deg, #5c3b1d, #2d2113);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(231, 173, 85, 0.25), 0 12px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.avatar {
  align-items: center;
  background: var(--avatar-bg, #e8ddff);
  border-radius: 50%;
  color: var(--avatar-ink, #5b31a8);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.03em;
  overflow: hidden;
  position: relative;
  width: 34px;
}

.avatar-initials { position: relative; z-index: 0; }
.avatar-photo {
  border-radius: inherit;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: 50% 44%;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.avatar-0 { --avatar-bg: #e8ddff; --avatar-ink: #5b31a8; }
.avatar-1 { --avatar-bg: #ffe4cf; --avatar-ink: #9a4918; }
.avatar-2 { --avatar-bg: #d9f0e5; --avatar-ink: #156348; }
.avatar-3 { --avatar-bg: #fde1e6; --avatar-ink: #a13b50; }
.avatar-4 { --avatar-bg: #dcecff; --avatar-ink: #245c9d; }
.avatar-5 { --avatar-bg: #eee5d5; --avatar-ink: #705e3c; }

.seat-copy { display: flex; min-width: 0; flex-direction: column; }
.seat-copy strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-copy small { color: #bca9a0; font-size: 10px; margin-top: 2px; white-space: nowrap; }
.seat-copy small b { color: #f8eadd; font-weight: 700; }

.pot-center {
  align-items: center;
  display: flex;
  flex-direction: column;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(270px, 34%);
  z-index: 4;
}

.pot-center::before {
  color: rgba(244, 217, 164, 0.28);
  content: "♠  ♥  ♦  ♣";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: 0.14em;
  margin-bottom: 9px;
  white-space: pre;
}

.pot-center > span { color: #d7c4a5; font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.pot-center > strong { color: #fff8e9; font-family: Georgia, "Times New Roman", serif; font-size: clamp(50px, 7vw, 68px); font-weight: 500; letter-spacing: -0.055em; line-height: 1; margin-top: 4px; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28); }
.pot-center > small { color: #c5b69d; font-size: 11px; margin-top: 7px; text-align: center; }

.pot-center > button {
  background: linear-gradient(180deg, #efbd6d, #d99a43);
  border: 0;
  border-radius: 999px;
  color: #3c2213;
  font-size: 12px;
  font-weight: 800;
  margin-top: 14px;
  min-height: 42px;
  padding: 10px 17px;
  box-shadow: 0 8px 20px rgba(27, 14, 7, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.pot-center > button:hover:not(:disabled) { background: #f0bd70; }
.pot-center > button:disabled { opacity: 0.58; }
.entry-status { color: #bdb196; font-size: 10px; margin-top: 8px; min-height: 15px; text-align: center; }

.ledger { margin: 0 auto; max-width: 1280px; padding: 28px clamp(18px, 4vw, 44px) 34px; }
.ledger-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 16px; }
.ledger-heading h2 { font-size: 30px; margin: 3px 0 0; }
.ledger-heading p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }

.outline-button { background: transparent; border: 1px solid #d6c7b4; color: var(--ink); font-size: 12px; }
.outline-button:hover { background: #fff8ee; }

.tally-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tally-card { padding: 16px 18px; }
.tally-labels { color: #917b6f; display: grid; font-size: 11px; grid-template-columns: minmax(190px, 0.8fr) minmax(160px, 1fr) 70px 65px; padding: 0 8px 9px 32px; }
.tally-labels span:nth-child(3), .tally-labels span:nth-child(4) { text-align: right; }
.tally-list { display: flex; flex-direction: column; gap: 4px; }

.tally-row {
  align-items: center;
  border-radius: 12px;
  display: grid;
  font-size: 12px;
  gap: 8px;
  grid-template-columns: 18px 32px minmax(70px, 110px) 48px minmax(120px, 1fr) 50px 55px;
  min-height: 48px;
  padding: 6px 8px;
}

.tally-row:first-child { background: #f5eadb; }
.tally-row .avatar { height: 30px; width: 30px; }
.rank { color: #9b8376; text-align: center; }
.tally-row > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-badge { background: #f5dca9; border-radius: 999px; color: #855207; font-size: 9px; font-style: normal; padding: 4px 6px; text-align: center; }
.contribution-track { background: #eaded0; border-radius: 999px; height: 7px; overflow: hidden; }
.contribution-track i { background: #b46f43; border-radius: inherit; display: block; height: 100%; transition: width 0.22s ease; }
.loss-count { color: #716057; text-align: right; }
.loss-amount { text-align: right; }

.empty-row { color: var(--muted); font-size: 13px; padding: 28px 12px; text-align: center; }

.ledger-cards { display: grid; gap: 12px; grid-template-columns: 0.8fr 1.2fr 1fr; margin-top: 12px; }
.info-card { padding: 17px 18px; }
.card-top { align-items: flex-start; display: flex; justify-content: space-between; }
.card-top h3 { font-size: 20px; margin: 3px 0 0; }
.amount-pill { background: #f0e4d4; border-radius: 999px; color: #705c50; font-size: 10px; padding: 6px 8px; }
.info-card > p { color: #76645a; font-size: 12px; margin: 11px 0; }
.info-card > button:not(.icon-button) { background: transparent; border: 0; color: var(--wine); font-size: 11px; padding: 0; }

.lifetime-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
.lifetime-grid > div { border-left: 1px solid #e7dbcc; border-top: 1px solid #e7dbcc; display: flex; flex-direction: column; padding: 11px; }
.lifetime-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
.lifetime-grid > div:nth-child(-n + 2) { border-top: 0; padding-top: 0; }
.lifetime-grid span { color: #846f63; font-size: 11px; }
.lifetime-grid strong { font-family: Georgia, "Times New Roman", serif; font-size: 17px; margin-top: 4px; }

.icon-button,
.close-button { align-items: center; background: transparent; border: 0; color: inherit; display: inline-flex; justify-content: center; }
.icon-button { min-height: 36px; min-width: 36px; }
.activity-list { display: flex; flex-direction: column; margin-top: 8px; }
.activity-item { align-items: center; border-top: 1px solid #eadfd2; display: grid; gap: 8px; grid-template-columns: 30px 1fr auto auto; min-height: 50px; padding: 8px 0; }
.activity-item:first-child { border-top: 0; }
.activity-item .avatar { height: 29px; width: 29px; }
.activity-item p { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.activity-item p strong { font-size: 11px; }
.activity-item p span { color: #88756a; font-size: 9px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-item > b { color: var(--green); font-size: 11px; }
.remove-loss { background: transparent; border: 0; color: var(--danger); font-size: 10px; padding: 6px; }
.activity-empty { color: var(--muted); font-size: 12px; padding: 18px 0 6px; }

dialog {
  background: transparent;
  border: 0;
  color: var(--ink);
  max-height: calc(100vh - 32px);
  max-width: min(520px, calc(100vw - 28px));
  padding: 0;
  width: 100%;
}

dialog::backdrop { background: rgba(29, 17, 13, 0.68); backdrop-filter: blur(4px); }
.dialog-card { background: #fffaf3; border: 1px solid #e1d4c2; border-radius: 22px; box-shadow: 0 24px 70px rgba(20, 10, 6, 0.36); display: flex; flex-direction: column; margin: 0; max-height: calc(100vh - 32px); padding: 22px; }
.dialog-heading { align-items: flex-start; display: flex; justify-content: space-between; }
.dialog-heading h2 { font-size: 25px; margin: 3px 0 0; }
.close-button { background: #f1e7db; border-radius: 50%; font-size: 22px; height: 36px; width: 36px; }
.dialog-copy { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 12px 0 18px; }
.dialog-card label { color: #5d4d44; display: flex; flex-direction: column; font-size: 12px; font-weight: 700; gap: 7px; margin-bottom: 14px; }
.dialog-card input { background: #fff; border: 1px solid #d8cab8; border-radius: 11px; color: var(--ink); font-size: 16px; min-height: 46px; padding: 10px 12px; width: 100%; }
.money-input { align-items: center; background: #fff; border: 1px solid #d8cab8; border-radius: 11px; display: flex; }
.money-input > span { color: #806c61; padding-left: 12px; }
.money-input input { border: 0; }
.form-error { color: var(--danger); font-size: 12px; margin: -3px 0 11px; min-height: 18px; }
.primary-button { background: var(--wine); border: 0; color: #fff9f0; font-size: 13px; width: 100%; }
.primary-button:hover { background: #81283f; }
.primary-button:disabled { opacity: 0.6; }

.history-dialog { max-width: min(720px, calc(100vw - 28px)); }
.history-list { display: flex; flex-direction: column; min-height: 100px; overflow: auto; }
.history-item { align-items: center; border-top: 1px solid #eadfd2; display: grid; gap: 10px; grid-template-columns: 36px 1fr auto auto; padding: 11px 0; }
.history-item:first-child { border-top: 0; }
.history-item p { display: flex; flex-direction: column; margin: 0; }
.history-item p strong { font-size: 13px; }
.history-item p span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.history-item > b { color: var(--green); font-size: 12px; }
.history-empty { color: var(--muted); padding: 26px 0; text-align: center; }

.toast {
  background: #2d211b;
  border-radius: 12px;
  bottom: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
  color: #fff8ef;
  font-size: 13px;
  left: 50%;
  max-width: calc(100vw - 32px);
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: #7c2630; }

@media (max-width: 900px) {
  .game-heading { align-items: flex-start; flex-direction: column; }
  .game-actions { justify-content: flex-start; width: 100%; }
  .ledger-cards { grid-template-columns: 1fr 1fr; }
  .activity-card { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .game-night { padding: 22px 14px 24px; }
  .game-heading { gap: 17px; }
  .game-actions { align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; }
  .last-settled { grid-column: 1 / -1; }
  .session-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .soft-button, .light-button { width: 100%; }
  .table-shell { max-width: 440px; padding: 10px 4px 20px; }
  .game-table {
    aspect-ratio: auto;
    border-radius: 46% / 22%;
    border-width: 11px;
    display: block;
    height: clamp(560px, 154vw, 640px);
    min-height: 0;
    padding: 0;
  }
  .game-table::before { border-radius: 46% / 21%; inset: 15px; }
  .game-table::after { border-radius: 46% / 21%; inset: 5px; }
  .dealt-cards { left: 50%; top: 70%; transform: translate(-50%, -50%) scale(0.82); }
  .chip-pile { left: 50%; top: 29%; transform: translate(-50%, -50%) scale(0.78); }
  .dealer-button { display: none; }
  .player-seats { display: block; inset: 0; position: absolute; }
  .player-seat {
    left: var(--seat-mobile-x) !important;
    position: absolute;
    top: var(--seat-mobile-y) !important;
    transform: translate(-50%, -50%);
    z-index: 3;
  }
  .player-seat button {
    gap: 6px;
    max-width: 110px;
    min-height: 44px;
    min-width: 110px;
    padding: 6px 7px;
    width: 110px;
  }
  .player-seat button:hover,
  .player-seat button.is-selected { transform: none; }
  .player-seat .avatar { height: 28px; width: 28px; }
  .seat-copy { max-width: 67px; }
  .seat-copy strong { font-size: 10px; }
  .seat-copy small { font-size: 8px; }
  .player-seats:is([data-player-count="7"], [data-player-count="8"]) .player-seat button {
    max-width: 96px;
    min-width: 96px;
    width: 96px;
  }
  .player-seats:is([data-player-count="9"], [data-player-count="10"]) .player-seat button {
    max-width: 86px;
    min-width: 86px;
    padding-inline: 5px;
    width: 86px;
  }
  .player-seats:is([data-player-count="9"], [data-player-count="10"]) .seat-copy {
    max-width: 46px;
  }
  .player-seats:is([data-player-count="9"], [data-player-count="10"]) .seat-copy small {
    display: none;
  }
  .pot-center {
    left: 50%;
    max-width: 154px;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44%;
  }
  .pot-center::before { font-size: 14px; margin-bottom: 7px; }
  .pot-center > strong { font-size: 50px; }
  .pot-center > small { font-size: 9px; }
  .pot-center > button { font-size: 10px; line-height: 1.2; max-width: 150px; min-height: 44px; padding: 9px 12px; white-space: normal; }
  .ledger { padding: 24px 14px 28px; }
  .ledger-heading { align-items: flex-start; gap: 12px; }
  .outline-button { align-self: flex-end; }
  .tally-labels { display: none; }
  .tally-card { padding: 12px; }
  .tally-row { grid-template-columns: 16px 31px minmax(60px, 90px) minmax(55px, 1fr) 36px 46px; }
  .tally-row .leader-badge, .tally-row > span:nth-child(4) { display: none; }
  .ledger-cards { grid-template-columns: 1fr; }
  .activity-card { grid-column: auto; }
}

@media (max-width: 430px) {
  .game-actions { grid-template-columns: 1fr; }
  .last-settled { grid-column: auto; }
  .game-table { border-width: 9px; }
  .ledger-heading { flex-direction: column; }
  .outline-button { align-self: flex-start; }
  .tally-row { grid-template-columns: 14px 30px minmax(60px, 1fr) 34px 42px; }
  .tally-row .contribution-track { display: none; }
  .activity-item { grid-template-columns: 30px 1fr auto; }
  .activity-item .remove-loss { grid-column: 2 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
