:root {
  --field: #f6f3ee;
  --sheet: #ffffff;
  --ink: #111111;
  --mute: #6a6a6a;
  --line: #e6e1d8;
  --cta: #111111;
  --cta-hover: #000000;
  --danger: #c81e1e;
  --success: #0f7a45;
  --disabled: #e6e1d8;
  --font-ui: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --pad: clamp(1rem, 4.2vw, 1.5rem);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --sheet-w: 26.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

#poll-line,
.poll-line {
  display: none !important;
}

html {
  color-scheme: light;
  background: var(--field);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--field);
  background-image: url("plaster-light.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wash,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wash {
  background: rgba(246, 243, 238, 0.78);
}

.grain {
  background-image: url("paper-fiber.png");
  background-size: 420px;
  opacity: 0.07;
  mix-blend-mode: multiply;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, var(--sheet-w));
  margin: 0 auto;
  padding: calc(var(--safe-t) + 1.15rem) var(--pad) calc(var(--safe-b) + 1.5rem);
}

::selection {
  background: var(--ink);
  color: var(--sheet);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.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;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.5rem;
  margin-bottom: 1.35rem;
  animation: rise 0.45s ease both;
}

body.is-guest .masthead {
  display: none;
}

.share-slot {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.share-value {
  font-size: 0.95rem;
}

.wordmark {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.42em;
  line-height: 1;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0.35rem 0.15rem;
}

.back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status-pill {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--ink);
  animation: rise 0.45s ease 0.04s both;
}

.status-pill[data-tone="live"] {
  border-color: var(--ink);
  color: var(--ink);
}

.status-pill[data-tone="dead"] {
  border-color: var(--danger);
  color: var(--danger);
}

.status-pill[data-tone="ok"] {
  border-color: var(--success);
  color: var(--success);
}

.status-pill[data-tone="wait"] {
  border-color: var(--mute);
  color: var(--mute);
}

.sheet {
  position: relative;
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 28px 70px rgba(17, 17, 17, 0.1),
    0 4px 14px rgba(17, 17, 17, 0.05);
  animation: rise 0.55s ease 0.08s both;
}

.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("paper-fiber.png") center / cover;
  opacity: 0.11;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.sheet-body,
.pay-link,
.btn-pay,
.qr-plate {
  position: relative;
  z-index: 1;
}

.sheet-body {
  padding: 1.45rem 1.25rem 1.2rem;
}

.kicker,
.field-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.hero-amount {
  display: flex;
  align-items: baseline;
  gap: 0.28rem;
  min-height: 4.6rem;
  margin: 0 0 1.35rem;
}

#amount,
.figure {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(3.5rem, 14vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.hero-amount.is-long #amount,
.hero-amount.is-long .figure {
  font-size: clamp(2.35rem, 10vw, 3.15rem);
}

.hero-amount.is-xl #amount,
.hero-amount.is-xl .figure {
  font-size: clamp(1.7rem, 8vw, 2.35rem);
}

#amount {
  width: 1.45ch;
  min-width: 1ch;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  caret-color: var(--ink);
}

#amount::placeholder {
  color: var(--mute);
  opacity: 1;
}

.rub {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  line-height: 1;
  color: var(--ink);
}

.hero-amount.is-long .rub {
  font-size: 1.2rem;
}

.select-wrap {
  position: relative;
}

.select-wrap + .select-wrap,
.bank-slot {
  margin-top: 0.7rem;
}

select {
  width: 100%;
  height: 3rem;
  padding: 0 2.4rem 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--sheet);
  color: var(--ink);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}

.text-input {
  width: 100%;
  height: 3rem;
  margin: 0 0 0.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--sheet);
  color: var(--ink);
  font-size: 16px;
}

.text-input:focus {
  border-color: var(--ink);
}

select:hover {
  border-color: #d2cdc3;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.field-label {
  margin-bottom: 0.4rem;
}

#comment {
  display: block;
  width: 100%;
  min-height: 4.2rem;
  margin: 0.15rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  resize: vertical;
}

#comment:focus {
  border-color: var(--ink);
}

.recent-label {
  margin: 1.35rem 0 0.55rem;
}

.ttl {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ttl.is-late {
  color: var(--danger);
}

#buyer-msg,
#buyer-msg-pay {
  display: block;
  width: 100%;
  min-height: 8.5rem;
  margin: 0.15rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.search-input {
  margin: 0;
}

.pay-note {
  margin: 0.25rem 0 0;
  font-size: 13px;
  color: var(--mute);
}

.alert {
  margin: 0.9rem 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--danger);
}

.btn-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 1rem;
  border: 0;
  border-radius: 0;
  background: var(--cta);
  color: var(--sheet);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.btn-pay:hover,
.btn-pay:focus-visible {
  background: var(--cta-hover);
}

.btn-pay:active {
  transform: translateY(1px);
}

.btn-pay.btn-fallback {
  background: transparent;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-weight: 500;
  font-size: 14px;
}

.btn-pay.btn-fallback:hover,
.btn-pay.btn-fallback:focus-visible {
  background: var(--field);
}

.pay-primary {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 4px;
  background: var(--field);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.btn-pay:disabled {
  background: var(--disabled);
  color: var(--mute);
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink);
  color: var(--sheet);
}

.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ghost.is-copied {
  border-color: var(--success);
  background: transparent;
  color: var(--success);
}

.btn-row {
  margin: -0.55rem 0 0.2rem;
}

.requisites {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.req-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.req-head .field-label {
  margin: 0;
}

.req-value {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  word-break: break-all;
  color: var(--ink);
}

.meta {
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.pay-info {
  margin: 1rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.meta div {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.meta dt {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

.form-hint,
.lock-note {
  margin: 1rem 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
}

.lock-note {
  color: var(--ink);
}

.receipt-slot {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.receipt-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.receipt-pick {
  width: 100%;
}

.receipt-send {
  height: 48px;
}

.receipt-name,
.receipt-done {
  margin: 0.55rem 0 0;
  font-size: 13px;
  font-weight: 500;
}

.receipt-done {
  color: var(--success);
}

.receipt-ext {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--mute);
}

body.is-success .lock-note {
  color: var(--success);
}

body.is-dead .lock-note,
body.is-error .lock-note {
  color: var(--danger);
}

.pay-link {
  display: flex;
  flex-direction: column;
}

.qr-plate {
  display: flex;
  justify-content: center;
  padding: 0.15rem 1.25rem 1.2rem;
}

#qr {
  display: block;
  width: 196px;
  height: 196px;
  max-width: 100%;
  background: var(--sheet);
}

body.is-loading .figure {
  color: var(--line);
}

body.is-loading .sheet {
  animation: rise 0.55s ease 0.08s both, pulse 1.4s ease-in-out infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.86;
  }
}

@media (min-width: 480px) {
  .sheet-body {
    padding: 1.7rem 1.45rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .masthead,
  .status-pill,
  .sheet,
  body.is-loading .sheet {
    animation: none;
  }

  .btn-pay:active {
    transform: none;
  }
}

body[data-page="history"] .page {
  width: min(100%, 60rem);
}

.ledger-head {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
}

.ledger-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ledger-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-export:hover,
.btn-export:focus-visible {
  border-color: var(--ink);
  background: var(--field);
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet);
}

.seg-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: transparent;
  color: var(--mute);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.seg-btn:hover {
  color: var(--ink);
}

.seg-btn.is-active {
  background: var(--ink);
  color: var(--sheet);
}

.acct,
.agg-row,
.ledger-toolbar {
  position: relative;
  z-index: 1;
}

.acct {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.acct-card {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem 0.95rem;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
  overflow: hidden;
}

.acct-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.55rem;
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
}

.acct-hero {
  background: var(--ink);
  color: var(--sheet);
  border-color: var(--ink);
}

.acct-hero .acct-ico {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.acct-hero .acct-kicker,
.acct-hero .acct-sub {
  color: rgba(255, 255, 255, 0.62);
}

.acct-profit {
  border-color: #b98a3e;
}

.acct-profit .acct-ico {
  background: rgba(185, 138, 62, 0.14);
  color: #8a6420;
}

.acct-profit .acct-value {
  color: #8a6420;
}

.acct-kicker {
  margin: 0 0 0.3rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

.acct-value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.acct-sub {
  margin: 0.35rem 0 0;
  font-size: 12px;
  color: var(--mute);
}

.agg-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.agg-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.05rem;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
}

.agg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.agg-count {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.agg-unit {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  color: var(--mute);
  letter-spacing: 0;
}

.agg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.agg-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.agg-l {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.agg-v {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.agg-v.agg-profit {
  color: #8a6420;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-ico {
  position: absolute;
  left: 0.75rem;
  color: var(--mute);
  pointer-events: none;
}

.search-wrap .search-input {
  padding-left: 2.3rem;
}

.ledger-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 0.2rem 0 0.85rem;
}

.ledger {
  display: grid;
  gap: 0.5rem;
}

.pay-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem 1rem;
  padding: 0.9rem 1.05rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pay-row:hover {
  border-color: #ccc4b4;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.08);
  transform: translateY(-1px);
}

.pay-when {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
}

.pay-date {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pay-time {
  font-size: 12px;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.pay-ref {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.02em;
}

.pay-main {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.pay-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pay-mico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--ink);
  flex: none;
}

.pay-agg {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--mute);
  background: rgba(17, 17, 17, 0.03);
  white-space: nowrap;
}

.pay-agg[data-agg="montera"] {
  border-color: #b98a3e;
  color: #8a6420;
  background: rgba(185, 138, 62, 0.1);
}

.pay-agg[data-agg="npay"] {
  border-color: #4a6b8a;
  color: #35526e;
  background: rgba(74, 107, 138, 0.1);
}

.pay-method-name {
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
}

.pay-sub {
  margin: 0;
  font-size: 12px;
  color: var(--mute);
}

.pay-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  opacity: 0.85;
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.pay-copy,
.pay-copy-msg {
  min-height: 1.7rem;
  padding: 0.15rem 0.6rem;
  font-size: 12px;
}

.pay-money {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.pay-in {
  font-size: 11px;
  color: var(--mute);
}

.pay-out {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pay-profit {
  font-size: 11px;
  font-weight: 600;
  color: #8a6420;
}

.pay-side {
  display: flex;
  align-items: center;
}

.pay-st {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--mute);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--mute);
}

.pay-st[data-tone="ok"] {
  border-color: var(--success);
  color: var(--success);
  background: rgba(45, 122, 74, 0.08);
}

.pay-st[data-tone="dead"] {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(178, 58, 58, 0.08);
}

.pay-st[data-tone="wait"],
.pay-st[data-tone="live"] {
  border-color: var(--mute);
  color: var(--mute);
}

.pay-check {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--success);
  border-radius: 3px;
  color: var(--success);
}

.empty {
  margin: 1.5rem 0 0;
  color: var(--mute);
  font-size: 14px;
  text-align: center;
}

body[data-page="history"] .alert {
  margin: 0 0 0.85rem;
}

@media (min-width: 780px) {
  .acct {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ledger-toolbar {
    grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  }

  .pay-row {
    grid-template-columns: 8.5rem minmax(0, 1fr) 9rem 7.5rem;
    align-items: center;
    gap: 0.4rem 1.1rem;
  }

  .pay-when {
    flex-direction: column;
    gap: 0.15rem;
  }

  .pay-money {
    text-align: right;
    align-items: flex-end;
  }

  .pay-side {
    justify-content: flex-end;
  }
}
