/* Shared palette and typography */
:root {
  --green: #245c45;
  --green-dark: #143f30;
  --green-soft: #e4f2df;
  --lime: #cdf392;
  --ink: #1d2b24;
  --muted: #5e6b62;
  --line: #dce3da;
  --bg: #f5f6f1;
  --card: #fff;
  --red: #a53d32;
  --red-soft: #fbece7;
  --amber: #80530c;
  --amber-soft: #fbf1d9;
  --blue: #365e80;
  --blue-soft: #e8f1f8;
  --radius: 18px;
  --shadow: 0 2px 5px rgb(23 47 33 / 3%);
  --ease: cubic-bezier(.22,.7,.25,1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 650;
  letter-spacing: -.052em;
}

h2 {
  font-size: 19px;
  letter-spacing: -.035em;
  font-weight: 650;
}

h3 {
  font-size: 15px;
}

/* Application shell */
.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  pointer-events: none;
}
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 90; padding: 12px; background: white; }
:focus-visible { outline: 3px solid #498357; outline-offset: 3px; }
.layout { display: flex; min-height: 100dvh; }
.sidebar {
  flex: 0 0 238px;
  width: 238px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  padding: 0 16px;
  background: #fcfdf9;
  border-right: 1px solid var(--line);
  z-index: 40;
}
.brand-row { display: flex; align-items: center; justify-content: space-between; min-height: 79px; padding: 0 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
a.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--green-dark); color: var(--lime); }
.brand-mark .icon { width: 31px; height: 31px; stroke: none; }
.wordmark { font-size: 19px; letter-spacing: -.055em; font-weight: 700; white-space: nowrap; }
.wordmark small { margin-left: 1px; color: var(--muted); font-size: 10px; letter-spacing: .05em; font-weight: 650; vertical-align: 2px; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; padding: 0 2px 16px; }
.nav-group { padding: 20px 11px 6px; color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 40px; border-radius: 9px; color: #48564d; font-size: 14px; font-weight: 500; transition: background .16s, color .16s; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link:hover { background: #eff2eb; text-decoration: none; }
.nav-link.active { background: #e0eed6; color: #244b34; font-weight: 650; }
.nav-link.active::after { content: ''; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #4a7146; }
.nav-link .badge { margin-left: auto; }
.nav-link:has(.badge)::after { display: none; }
.sidebar-foot { margin-top: auto; padding: 15px 3px 14px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 37px; height: 37px; flex: none; border-radius: 50%; background: #e7eadc; color: #425337; font-size: 15px; font-weight: 650; }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.user-chip small { color: var(--muted); font-size: 11px; }
.side-actions { display: flex; justify-content: space-between; padding-top: 6px; }
.side-actions a, .side-actions .link-btn { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; padding: 6px 0; }
.side-actions .icon { width: 14px; height: 14px; }
.main { flex: 1; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  padding: 0 clamp(20px, 2.8vw, 48px);
  background: rgb(247 248 244 / 95%);
  border-bottom: 1px solid var(--line);
}
.crumb, .top-tools, .search-trigger, .topbar-date { display: flex; align-items: center; }
.crumb { gap: 9px; min-width: 0; font-size: 13px; font-weight: 600; }
.crumb a, .crumb .icon { color: var(--muted); font-weight: 450; }
.crumb .icon { width: 13px; height: 13px; }
.top-tools { margin-left: auto; gap: 18px; }
.search-trigger { gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; min-height: 35px; padding: 0 9px; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.search-trigger:hover { border-color: #9faa9d; }
.search-trigger .icon, .topbar-date .icon { width: 16px; height: 16px; }
kbd { border: 1px solid var(--line); border-radius: 4px; background: var(--bg); padding: 1px 5px; font: inherit; font-size: 11px; }
.topbar-date { gap: 7px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.icon-btn { display: inline-grid; place-items: center; flex: none; background: transparent; border: 0; cursor: pointer; color: var(--muted); width: 38px; height: 38px; border-radius: 9px; }
.icon-btn:hover { background: #eaf0e8; color: var(--ink); }
.menu-btn, .drawer-close, .overlay { display: none; }
.content { padding: 30px clamp(20px, 2.8vw, 48px) 70px; width: 100%; max-width: 1560px; margin: 0 auto; }
.content:focus { outline: none; }

/* Page header */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.page-head .subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.head-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 18px;
}

.card:last-child {
  margin-bottom: 0;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-head a {
  font-size: 13px;
  font-weight: 600;
}

.section-note {
  color: var(--muted);
  font-size: 13px;
  margin: -6px 0 14px;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 7px;
}

.stat-value {
  font-variant-numeric: tabular-nums;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.stat-hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.stat-accent {
  background: var(--green-dark);
  border-color: transparent;
  color: #fff;
}

.stat-accent .stat-label,
.stat-accent .stat-hint {
  color: #c9e6d6;
}

.stat-accent .negative {
  color: #ffd9d4;
}

.negative {
  color: var(--red);
}

.positive {
  color: var(--green);
}

/* Wallets */
.wallet-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.wallet-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-card span {
  color: var(--muted);
  font-size: 13px;
}

.wallet-card strong {
  font-size: 17px;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  min-height: 42px;
  transition: background .16s, border-color .16s, box-shadow .16s, transform .16s var(--ease);
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}

.btn:hover {
  background: var(--green-dark);
  text-decoration: none;
}

.btn:active:not(:disabled) { transform: translateY(1px); }
.btn .icon { width: 17px; height: 17px; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: #d3ddd7;
}

.btn-ghost:hover {
  background: #f4f8f5;
  color: var(--ink);
}

.btn-danger {
  background: #fff;
  color: var(--red);
  border-color: #ecc5c1;
}

.btn-danger:hover {
  background: var(--red-soft);
}

.btn-sm {
  min-height: 33px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--green);
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.link-btn.danger {
  color: var(--red);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2ef;
  color: #4a5a51;
  white-space: nowrap;
}

.badge-green {
  background: var(--green-soft);
  color: var(--green-dark);
}

.badge-red {
  background: var(--red-soft);
  color: var(--red);
}

.badge-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge-gray {
  background: #eef2ef;
  color: #66766d;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 0 -6px;
  padding: 0 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  background: #f4f6f0;
  white-space: nowrap;
}

td {
  padding: 11px 10px;
  border-bottom: 1px solid #edf1ee;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #fafcfb;
}

.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cell-main {
  font-weight: 600;
}

.cell-sub {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

.nowrap {
  white-space: nowrap;
}

.actions-cell {
  white-space: normal;
  min-width: 150px;
}

.actions-cell > a,
.actions-cell > form,
.actions-cell > .btn {
  margin-right: 6px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #35443b;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #bbc8bc;
  transition: border-color .16s, box-shadow .16s;
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  min-height: 44px;
}

select {
  padding-right: 30px;
}

textarea {
  min-height: 78px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.13);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: #f2f5f3;
  color: #8a978f;
  cursor: not-allowed;
  opacity: 1;
}

input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 25px;
}

.check label {
  font-weight: 500;
  font-size: 14px;
}

.hint {
  font-size: 12.5px;
  color: var(--muted);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.inline-form input[type="date"],
.inline-form select,
.inline-form input[type="number"],
.inline-form input[type="text"] {
  width: auto;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}

.filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.filters .field {
  min-width: 130px;
}

.filters .field.grow {
  flex: 1;
  min-width: 200px;
}

/* Flash */
.flashes {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flash {
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid transparent;
}

.flash-success {
  background: var(--green-soft);
  color: var(--green-dark);
  border-color: #c4e5d2;
}

.flash-error {
  background: var(--red-soft);
  color: var(--red);
  border-color: #f0c7c3;
}

/* Reminders */
.reminder-list {
  display: flex;
  flex-direction: column;
}

.reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1ee;
  flex-wrap: wrap;
}

.reminder:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.reminder-main {
  min-width: 240px;
  flex: 1;
}

.reminder-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reminder-name .phone {
  font-weight: 500;
  color: var(--green);
  font-size: 13px;
}

.reminder-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.reminder-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Dashboard blocks */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 18px;
  align-items: start;
}

.grid-2.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-list {
  display: flex;
  flex-direction: column;
}

.stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1ee;
  font-size: 14px;
}

.stack-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stack-item .right {
  text-align: right;
  white-space: nowrap;
}

.empty {
  padding: 26px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.callout {
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.callout-red {
  background: var(--red-soft);
  border-color: #f0c7c3;
  color: #8e2a1f;
}

.callout-green {
  background: var(--green-soft);
  border-color: #c4e5d2;
  color: var(--green-dark);
}

.callout-amber {
  background: var(--amber-soft);
  border-color: #eddcb5;
  color: #7a4c07;
}

.callout-blue {
  background: var(--blue-soft);
  border-color: #c9ddf3;
  color: #235488;
}

/* Segmented links */
.seg {
  display: inline-flex;
  background: #e9efeb;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}

.seg a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #52635a;
}

.seg a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.6);
}

.seg a.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Items editor */
.items-table td {
  padding: 7px 6px;
}

.items-table .remove-cell {
  width: 38px;
  text-align: center;
}

.remove-row {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #ecc5c1;
  background: #fff;
  color: var(--red);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.remove-row:hover {
  background: var(--red-soft);
}

.total-line {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  font-size: 16px;
  padding: 12px 4px 0;
}

.total-line strong {
  font-size: 20px;
}

.item-amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Standalone status page */
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { max-width: 430px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.login-card .btn { margin-top: 12px; }
/* Error page */
.error-wrap {
  max-width: 520px;
  margin: 8vh auto;
  text-align: center;
}

.error-code {
  font-size: 74px;
  font-weight: 800;
  color: #cfe0d6;
  line-height: 1;
}

/* Misc */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 18px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 18px; }
.text-right { text-align: right; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.mono { font-variant-numeric: tabular-nums; }

.hide-sm { display: table-cell; }

/* Overview */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(270px, 1fr); gap: 16px; margin-bottom: 16px; }
.balance-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 236px;
  padding: clamp(22px, 2.4vw, 38px);
  border-radius: 19px;
  color: #fbfff8;
  background: #10251c;
}
.balance-hero::before, .balance-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.balance-hero::before { background: url('glass-loop.webp') no-repeat 75% 47% / cover; }
.balance-hero::after { background: linear-gradient(90deg, #0d231bf5 4%, #10271de8 28%, #10271d5c 59%, transparent 85%); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.hero-copy h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 550; letter-spacing: -.01em; }
.hero-copy h2 .icon { color: var(--lime); width: 18px; height: 18px; }
.balance-value { max-width: 100%; margin-top: 12px; font-size: clamp(34px, 3.8vw, 66px); line-height: 1.1; font-weight: 540; letter-spacing: -.058em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.balance-value.loss { color: #ffcebb; }
.hero-note { margin-top: 7px; color: #d3ded3; font-size: 12px; }
.hero-link { display: inline-flex; align-items: center; gap: 12px; border-radius: 7px; color: #1f3a24; background: var(--lime); font-size: 13px; font-weight: 650; padding: 8px 12px; margin-top: 22px; }
.hero-link:hover { background: #dbffa5; text-decoration: none; }
.hero-link .icon, .section-link .icon, .overview-panels a .icon { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.hero-link:hover .icon, .section-link:hover .icon, .overview-panels a:hover .icon { transform: translateX(2px); }
.accounts-panel, .metric { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.accounts-panel { padding: 18px 22px 10px; }
.accounts-panel .card-head { margin: 0 0 6px; }
.accounts, .account dd { margin: 0; }
.account { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 10px; padding: 7px 0; border-top: 1px solid #edf0e9; }
.account:first-child { border: 0; }
.account dt, .metric-label, .section-link, .overview-panels .card-head a { display: flex; align-items: center; gap: 9px; }
.account dt { font-size: 13px; color: #46534a; }
.account dd { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 650; margin-left: auto; overflow-wrap: anywhere; }
.account-icon, .metric-icon, .empty-icon { display: inline-grid; place-items: center; flex: none; border-radius: 9px; }
.account-icon { width: 28px; height: 28px; }
.account-icon .icon { width: 16px; height: 16px; }
.cash, .mint { background: #e5f0df; color: #3c6344; }
.card_tbank, .sand { background: #f9edd4; color: #876622; }
.card_sber { background: #e4f1ed; color: #327362; }
.bank, .blue { background: #e8edf5; color: #536884; }
.overview-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.metric { padding: 17px 20px; }
.metric-label { color: #4e5b51; font-weight: 550; font-size: 13px; }
.metric-icon { width: 30px; height: 30px; }
.metric-icon .icon { width: 17px; height: 17px; }
.metric strong { display: block; margin-top: 11px; font-size: clamp(23px,2.1vw,34px); line-height: 1.15; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.overview-panels { align-items: stretch; margin-bottom: 18px; }
.overview-panels > .card { margin-bottom: 0; min-width: 0; }
.overview-panels .card-head { margin-bottom: 12px; }
.overview-empty { display: flex; align-items: center; gap: 13px; background: #f6f8f2; border-radius: 11px; padding: 17px 14px; }
.empty-icon { width: 39px; height: 39px; color: #687b62; background: #e7eddf; }
.overview-empty strong { display: block; font-size: 14px; font-weight: 580; }
.overview-empty a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; margin-top: 4px; }

/* Navigation and feedback */
.flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flash-close { width: 28px; height: 28px; color: inherit; }
.flash-close .icon { width: 15px; height: 15px; }
.section-search { width: min(470px, calc(100vw - 32px)); max-height: 76dvh; padding: 0; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 24px 80px #10251640; color: var(--ink); }
.section-search::backdrop { background: rgb(15 31 22 / 40%); }
.search-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.search-head input[type="search"] { padding: 4px 0; background: transparent; border: none; box-shadow: none; min-height: 36px; font-size: 16px; }
.search-results { display: grid; gap: 2px; padding: 8px; max-height: 59dvh; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.search-results strong { font-weight: 550; }
.search-results small { margin-left: auto; color: var(--muted); }
.search-results a:hover, .search-results a:focus-visible { background: var(--green-soft); text-decoration: none; }
.search-results [hidden] { display: none; }
.search-empty { color: var(--muted); padding: 12px; }
body.drawer-open { overflow: hidden; }

/* Sign in */
.auth-body { background: #f7f8f3; }
.auth-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; padding: 18px; }
.auth-visual { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 4vw, 68px); display: flex; flex-direction: column; justify-content: space-between; border-radius: 23px; color: white; background: #10251c; }
.auth-visual::before, .auth-visual::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.auth-visual::before { background: url('glass-loop.webp') no-repeat 66% center / cover; }
.auth-visual::after { background: linear-gradient(180deg, #11271bb0, transparent 26%, transparent 48%, #091d14ed); }
.auth-visual .brand { color: white; }
.auth-visual .brand-mark { background: var(--lime); color: #233e28; }
.auth-visual .wordmark small { color: #d5e7cc; }
.auth-caption { margin: 0; font-size: clamp(30px, 3.4vw, 60px); line-height: 1.08; letter-spacing: -.055em; font-weight: 560; }
.auth-caption span { color: var(--lime); }
.auth-form-panel { display: grid; place-items: center; padding: 48px 32px; }
.auth-form { width: 100%; max-width: 365px; }
.auth-form h1 { font-size: clamp(36px,3.8vw,55px); }
.auth-form .subtitle { color: var(--muted); margin: 11px 0 30px; font-size: 15px; }
.auth-form .field { margin-bottom: 18px; }
.auth-form input { min-height: 49px; padding: 12px 14px; font-size: 16px; }
.password-field { position: relative; }
.password-field input { padding-right: 50px; }
.password-toggle { position: absolute; top: 50%; right: 3px; transform: translateY(-50%); width: 44px; height: 44px; }
.password-toggle .icon:last-child, .password-toggle[aria-pressed=true] .icon:first-child { display: none; }
.password-toggle[aria-pressed=true] .icon:last-child { display: block; }
.auth-submit { width: 100%; margin-top: 5px; min-height: 48px; }
.auth-submit .icon { margin-left: 4px; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.login-foot .icon { width: 14px; height: 14px; }

@keyframes enter-view { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .content > .page-head, .auth-form { animation: enter-view .24s var(--ease) both; }
  .overview-grid, dialog[open] { animation: enter-view .26s var(--ease) both; }
  .flash { animation: enter-view .18s var(--ease) both; }
  .item-row.new-row, .material-row.new-row { animation: enter-view .20s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (min-width: 981px) and (max-width: 1200px) {
  .sidebar { flex-basis: 210px; width: 210px; padding: 0 12px; }
  .grid-2:not(.overview-panels), .grid-2.equal:not(.overview-panels) { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .sidebar { position: fixed; left: 0; top: 0; width: min(290px, 87vw); transform: translateX(-105%); visibility: hidden; transition: transform .24s var(--ease), visibility 0s .24s; }
  .sidebar.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .menu-btn, .drawer-close { display: inline-grid; width: 44px; height: 44px; }
  .overlay { display: block; position: fixed; inset: 0; background: #11291b63; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 35; }
  .overlay.show { opacity: 1; pointer-events: auto; }
  .topbar { padding: 0 18px; min-height: 58px; }
  .nav-link { min-height: 44px; }
  .content { padding: 24px 20px 55px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2:not(.overview-panels), .grid-2.equal:not(.overview-panels) { grid-template-columns: minmax(0, 1fr); }
  .overview-grid { grid-template-columns: minmax(0,1.4fr) minmax(245px,1fr); }
  .search-trigger, .side-actions a, .side-actions .link-btn { min-height: 44px; }
}
@media (max-width: 760px) {
  .overview-grid, .grid-2.overview-panels { grid-template-columns: minmax(0, 1fr); }
  .overview-grid { display: contents; }
  .content:has(.overview-grid) { display: flex; flex-direction: column; }
  .overview-head, .content:has(.overview-grid) > .flashes { order: -4; }
  .balance-hero { order: -3; margin-bottom: 12px; min-height: 214px; }
  .overview-metrics { order: -2; gap: 8px; margin-bottom: 12px; }
  .accounts-panel { order: -1; margin-bottom: 14px; }
  .metric { padding: 12px; }
  .metric-label { gap: 6px; font-size: 12px; }
  .metric-icon { width: 24px; height: 24px; }
  .metric strong { font-size: 21px; }
  .auth-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr; padding: 10px; }
  .auth-visual { min-height: 165px; padding: 18px 22px; border-radius: 16px; }
  .auth-visual::before { background-size: cover; background-position: 70% 45%; }
  .auth-visual::after { background: linear-gradient(90deg,#0d241cef 5%, #10281d99 52%,transparent); }
  .auth-caption { font-size: 26px; }
  .auth-form-panel { align-items: start; padding: 32px 16px; }
  .auth-form { max-width: 440px; }
}
@media (max-width: 600px) {
  .content { padding: 20px 14px 48px; }
  .topbar { padding: 0 10px; gap: 4px; }
  .top-tools { gap: 5px; }
  .crumb a, .crumb > .icon, .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { justify-content: center; width: 44px; border-color: transparent; background: transparent; }
  .topbar-date { font-size: 12px; }
  .page-head { align-items: flex-start; gap: 12px; margin-bottom: 16px; }
  .page-head .subtitle { font-size: 13px; }
  .head-actions { flex-wrap: wrap; }
  .btn, .btn-sm, .hero-link { min-height: 44px; }
  .card, .accounts-panel { padding: 16px; }
  .card-head { gap: 9px; }
  .overview-metrics { gap: 6px; }
  .metric { padding: 10px 8px; border-radius: 12px; }
  .metric-label { flex-direction: column; align-items: flex-start; min-height: 44px; }
  .metric strong { font-size: clamp(16px,4vw,22px); }
  .hero-link { margin-top: 17px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .filters .field, .filters .field.grow { min-width: 0; width: 100%; max-width: 100% !important; }
  .filters { align-items: stretch; }
  input:not([type=checkbox]), select, textarea, .inline-form input, .inline-form select { font-size: 16px; }
  .hide-sm { display: none !important; }
  .wallet-row { grid-template-columns: minmax(0,1fr); }
  .stat { padding: 13px; min-width: 0; }
  .stat-value, .wallet-card strong { white-space: normal; overflow-wrap: anywhere; }
  .stat-grid, .grid-2 { gap: 10px; }
  .reminder-main { min-width: min(220px,100%); }
  .reminder-actions { width: 100%; }
  .stack-item { flex-wrap: wrap; }
  .items-table { min-width: 500px; }
}
.items-table .item-row td:nth-child(2) { width: 130px; }
.items-table .item-row td:nth-child(3) { width: 140px; }
.items-table .item-amount { width: 120px; }
.items-table .material-row td:nth-child(2) { width: 180px; }
@media (max-width: 600px) {
  .items-table { display: block; min-width: 0; }
  .items-table thead { clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; }
  .items-table tbody { display: grid; gap: 12px; }
  .items-table tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9f4; }
  .items-table tr td, .items-table .item-row td:nth-child(n), .items-table .material-row td:nth-child(n) { display: block; width: auto; padding: 0; border: 0; }
  .items-table td:first-child { grid-column: 1 / -1; }
  .items-table [data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 550; text-align: left; }
  .items-table .material-row td:nth-child(2), .items-table .item-row .item-amount { grid-column: 1 / -1; }
  .items-table .item-row .item-amount { display: flex; align-items: baseline; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--line); }
  .items-table .remove-cell { position: absolute; top: 0; right: 3px; }
  .remove-row { min-width: 44px; min-height: 34px; background: transparent; border: none; }
}
.client-filter-toggle { display: none; }
.client-filter-options { display: contents; }
.client-name { min-width: 140px; }
@media (max-width: 600px) {
  .metric { display: flex; flex-direction: column; }
  .metric strong { margin-top: auto; padding-top: 9px; }
  .items-table .item-row td.item-amount { display: flex; }
  .client-filters.enhanced { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .enhanced .client-filter-toggle { display: inline-flex; }
  .client-filter-options { grid-column: 1 / -1; }
  .enhanced .client-filter-options { display: grid; gap: 12px; }
  .enhanced .client-filter-toggle[aria-expanded=false] + .client-filter-options { display: none; }
  .client-list, .client-list tbody { display: block; }
  .client-list thead { clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; }
  .client-list tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 6px; padding: 14px 0; border-top: 1px solid var(--line); }
  .client-list tr:first-child { border-top: 0; padding-top: 0; }
  .client-list tr:last-child { padding-bottom: 0; }
  .client-list td { padding: 0; border: 0; white-space: normal; }
  .client-name { grid-row: 1; grid-column: 1; min-width: 0; overflow-wrap: anywhere; }
  .client-status { grid-row: 1; grid-column: 2; text-align: right; }
  .client-phone { grid-row: 2; grid-column: 1; }
  .client-next { grid-row: 2; grid-column: 2; text-align: right; }
  .client-list [data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
}

/* Form controls share a baseline in both filter bars and document forms. */
:root { --control-height: 44px; --control-border: #b7c5b9; }
.field-widget { display: inline-grid; position: relative; vertical-align: middle; min-width: 0; max-width: 100%; }
.field > .field-widget, .items-table .field-widget { width: 100%; }
.field-widget > [hidden] { display: none !important; }
.choice-trigger, .field-widget input.date-text {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: var(--control-height);
  min-height: var(--control-height);
  border: 1px solid var(--control-border);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  transition: border-color .16s, box-shadow .16s;
}
.choice-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }
.choice-trigger > .icon, .calendar-trigger .icon { width: 16px; height: 16px; color: #536959; }
.choice-trigger > .icon { transition: transform .16s var(--ease); }
.choice-trigger[aria-expanded=true] > .icon { transform: rotate(180deg); }
.choice-caption { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.choice-trigger:hover, .date-widget:hover input { border-color: #8ba18e; }
.choice-trigger:focus-visible, .choice-trigger[aria-expanded=true], .date-widget:focus-within input {
  outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px #245c451c;
}
.choice-trigger:disabled { background: #f2f5f2; color: var(--muted); cursor: not-allowed; }
.choice-trigger[aria-invalid=true], .date-widget input[aria-invalid=true] { border-color: var(--red); }
.field-error { color: var(--red); font-size: 12px; margin-top: 4px; white-space: normal; }
.field-widget input.date-text { padding-right: 41px; font-variant-numeric: tabular-nums; }
.date-text::placeholder { color: var(--muted); }
.calendar-trigger {
  position: absolute; right: 2px; top: 2px; width: 38px; height: calc(var(--control-height) - 4px);
  display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; cursor: pointer;
}
.calendar-trigger:hover, .calendar-trigger[aria-expanded=true] { background: #eef4ea; }
.filters .btn, .filters input:not([type=hidden]), .filters select { min-height: var(--control-height); }
.filters > .field:has(.date-widget) { width: 150px; }
.filters > .field:has(.select-widget):not(.grow) { min-width: 145px; }
.filters .field.grow { min-width: min(185px,100%); }
.inline-form .date-widget { width: 140px; }
.inline-form .select-widget { min-width: 116px; max-width: min(230px,100%); }
.inline-form .field-widget { --control-height: 36px; }
.inline-form .choice-trigger, .inline-form .field-widget .date-text { font-size: 13px; }
td .select-widget { min-width: 110px; }
.field-panel {
  position: fixed; z-index: 60; overflow: auto; overscroll-behavior: contain;
  box-sizing: border-box; border: 1px solid #cfdacd; border-radius: 12px;
  background: var(--card); color: var(--ink);
  box-shadow: 0 14px 36px #19342324, 0 2px 6px #1934230c;
}
@media (prefers-reduced-motion: no-preference) {
  .field-panel, .confirm-dialog[open] { animation: enter-view .14s var(--ease); }
}
.choice-panel { padding: 4px; }
.choice-option {
  display: flex; justify-content: space-between; align-items: center; gap: 9px;
  padding: 9px 10px; min-height: 36px; border-radius: 7px; font-size: 14px; cursor: pointer;
}
.choice-option span { overflow-wrap: anywhere; }
.choice-option[aria-selected=true] { color: #245439; font-weight: 600; }
.choice-option.current, .choice-option:not([aria-disabled=true]):hover { background: #edf4e8; }
.choice-option .icon { width: 16px; height: 16px; }
.choice-option[aria-disabled=true] { color: #79857c; cursor: not-allowed; }
.calendar-panel { padding: 12px; font-variant-numeric: tabular-nums; }
.calendar-head, .calendar-footer { display: flex; align-items: center; gap: 4px; }
.calendar-head { margin-bottom: 10px; }
.calendar-title { margin-right: auto; padding-left: 5px; font-size: 15px; }
.calendar-title::first-letter { text-transform: uppercase; }
.calendar-nav, .calendar-day, .calendar-footer button {
  background: transparent; border: 0; border-radius: 7px; font: inherit; color: var(--ink); cursor: pointer;
}
.calendar-nav { width: 32px; height: 32px; display: grid; place-items: center; }
.calendar-nav .icon { width: 16px; height: 16px; }
.calendar-nav.previous .icon { transform: rotate(180deg); }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; text-align: center; }
.calendar-week { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.calendar-day { position: relative; min-height: 33px; font-size: 14px; padding: 0; }
.calendar-day.outside { color: var(--muted); }
.calendar-day[aria-current=date]::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; left: calc(50% - 2px); bottom: 3px; background: currentColor; }
.calendar-panel button:not(:disabled):hover { background: #eaf2e4; }
.calendar-panel .calendar-day[aria-pressed=true] { background: var(--green); color: white; }
.calendar-day[aria-pressed=true]:hover { color: var(--green-dark); }
.calendar-panel button:disabled { opacity: .4; cursor: default; }
.calendar-footer { margin-top: 9px; border-top: 1px solid var(--line); padding-top: 8px; }
.calendar-footer button { color: var(--green); padding: 7px 10px; font-size: 13px; font-weight: 600; }
.calendar-footer .calendar-today { margin-left: auto; background: var(--green-soft); }
.confirm-dialog { width: min(400px,calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); box-shadow: 0 20px 70px #112c2430; }
.confirm-dialog::backdrop { background: #132d224f; }
.confirm-dialog p { margin: 12px 0; color: var(--muted); line-height: 1.55; }
.confirm-dialog .form-actions { justify-content: flex-end; }
.confirm-danger { background: var(--red); }
.confirm-danger:hover { background: #832d29; }

/* Operation journals */
.material-lines { display: grid; gap: 3px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.material-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.material-lines li span { min-width: 0; overflow-wrap: anywhere; }
.material-lines strong { font-weight: 550; white-space: nowrap; color: #394b3e; font-variant-numeric: tabular-nums; }
.more-materials { margin-top: 4px; }
.more-materials summary {
  display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 12px;
  font-weight: 600; cursor: pointer; list-style: none; border-radius: 5px; padding: 3px 0;
}
.more-materials summary::-webkit-details-marker { display: none; }
.more-materials summary .icon { width: 13px; height: 13px; }
.more-materials[open] summary .icon { transform: rotate(180deg); }
.more-materials:not([open]) .when-open, .more-materials[open] .when-closed { display: none; }
.more-materials[open] .material-lines { margin-top: 4px; }
.record-wrap { container: records / inline-size; }
.record-table th { font-size: 11px; }
.record-table td { vertical-align: top; padding-block: 14px; }
.record-table .num { letter-spacing: -.015em; }
.record-table .material-cell { min-width: 160px; max-width: 32ch; font-size: 13px; line-height: 1.55; }
.record-table .tools-heading, .record-tools { width: 1%; }
.record-actions, .table-actions { display: flex; align-items: center; gap: 6px; }
.table-actions { flex-wrap: wrap; gap: 6px 12px; }
.record-action {
  display: inline-grid; place-items: center; flex: none; width: 33px; height: 33px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--green); cursor: pointer;
}
.record-action .icon { width: 15px; height: 15px; }
.record-action:hover { background: var(--green-soft); border-color: #b4c9b0; }
.record-action.destructive { color: var(--red); }
.record-action.destructive:hover { background: var(--red-soft); border-color: #e2bcb5; }
.payment-form { margin-top: 3px; }
.payment-undo { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; padding: 3px 0; cursor: pointer; }
.payment-undo:hover { color: var(--red); text-decoration: underline; }
@container records (max-width: 820px) {
  .record-table, .record-table tbody { display: block; }
  .record-table thead { clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; }
  .record-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .record-table tr:first-child { padding-top: 0; }
  .record-table tr:last-child { padding-bottom: 0; border: 0; }
  .record-table td { display: block; width: auto; min-width: 0; border: 0; padding: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .record-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
  .record-table .material-cell { grid-column: 1/-1; max-width: none; min-width: 0; }
  .record-table .record-tools { justify-self: end; align-self: end; }
  .record-tools::before { display: none !important; }
  .record-table td[data-label="Действия"]:has(.table-actions) { grid-column: 1/-1; }
  .record-table .inline-form { white-space: normal; }
}
@media (max-width: 600px) {
  .filters > .field:has(.date-widget), .filters > .field:has(.select-widget):not(.grow) { width: 100%; min-width: 0; }
  .inline-form .field-widget { --control-height: 44px; }
  .field-widget input.date-text, .choice-trigger, .inline-form .choice-trigger, .inline-form .field-widget .date-text { font-size: 16px; }
  .record-action { width: 44px; height: 44px; }
  .choice-option { min-height: 44px; }
  .calendar-day { min-height: 36px; }
}
.wallet-card.ledger-wallet { display: grid; align-content: start; gap: 5px; }
.ledger-wallet .wallet-balance { font-size: 21px; line-height: 1.25; letter-spacing: -.03em; overflow-wrap: anywhere; white-space: normal; font-variant-numeric: tabular-nums; }
.ledger-wallet dl { display: grid; gap: 5px; margin: 6px 0 0; border-top: 1px solid var(--line); padding-top: 9px; font-size: 12px; }
.ledger-wallet dl div { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ledger-wallet dt { color: var(--muted); }
.ledger-wallet dd { margin: 0 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .filters[method=get]:has(.date-widget) { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; align-items: end; }
  .filters[method=get]:has(.date-widget) > .field { min-width: 0; }
  .filters[method=get]:has(.date-widget) > .spacer { display: none; }
  .filters[method=get]:has(.date-widget) > :is(.seg,.small) { grid-column: 1/-1; }
  .filters[method=get] .field-widget input.date-text { padding-left: 9px; padding-right: 31px; }
  .filters[method=get] .calendar-trigger { width: 29px; }
}
.wallet-card.ledger-wallet { justify-content: stretch; }
.recent-wrap { container: activity / inline-size; }
@container activity (max-width: 550px) {
  .recent-table, .recent-table tbody { display: block; }
  .recent-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
  .recent-table tr:first-child { border: 0; }
  .recent-table td { min-width: 0; padding: 0; border: 0; }
  .recent-table td:nth-child(1) { grid-column: 1; grid-row: 2; align-self: center; color: var(--muted); font-size: 12px; }
  .recent-table td:nth-child(2) { grid-column: 1; grid-row: 1; overflow-wrap: anywhere; }
  .recent-table td:nth-child(3) { grid-column: 2; grid-row: 1; font-weight: 600; }
  .recent-table td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
}
@container records (max-width: 820px) {
  .record-table .hide-sm { display: block !important; }
}
