.records-page {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.record-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.record-heading h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -.04em;
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.record-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.record-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.billing-heading {
  display: grid;
  gap: clamp(24px, 3.8vw, 44px);
  padding: clamp(24px, 3.5vw, 48px);
  border-radius: 24px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.billing-heading.is-invoices {
  background: var(--surface-alt);
}

.billing-heading .record-heading {
  align-items: flex-end;
}

.billing-heading .record-heading h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}

.billing-heading .record-heading p {
  max-width: 54ch;
  margin-top: 14px;
}

.billing-heading .record-heading .btn {
  min-height: 46px;
  padding-inline: 20px;
}

.record-tabs {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #e8e8e8;
}

.record-tabs a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
}

.record-tabs a:hover {
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
}

.record-tabs a[aria-current="page"] {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.record-list-content { min-width: 0; }
.record-panel { min-width: 0; }

.record-list-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.record-count {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--subtle);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.record-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 0 0 22px;
}

.record-panel-top h2,
.record-contact h2,
.record-dialog-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.record-panel-top h2 { scroll-margin-block-start: calc(var(--topbar-height, 64px) + 16px); }

.record-results .empty-state {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  min-height: 280px;
  align-content: center;
}

.record-results .empty-state strong { font-size: 18px; }

.record-search,
.record-select,
.record-password {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.record-search { width: 280px; }

.record-search > .icon,
.record-select > .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.record-search .input,
.record-select .input {
  min-height: 42px;
  border-radius: var(--radius-pill);
  padding-inline: 40px 14px;
  background: var(--subtle);
  border: 1.5px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  transition: all .15s ease;
}

.record-search .input:hover,
.record-select .input:hover {
  background: #ececec;
}

.record-search .input:focus,
.record-select .input:focus {
  background: var(--surface);
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 1px var(--ink);
}

.record-search .input {
  padding-inline-end: 36px;
}

.record-search input::-webkit-search-cancel-button {
  display: none;
}

.record-select .input {
  appearance: none;
  cursor: pointer;
  padding-inline-end: 36px;
}

.record-select > .icon:last-child {
  left: auto;
  right: 13px;
}

.record-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
}

.record-icon-button {
  display: inline-grid;
  width: 36px;
  min-height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .1s ease;
}

.record-icon-button:hover:not(:disabled) {
  background: var(--subtle);
  color: var(--ink);
}

.record-icon-button:disabled {
  opacity: .45;
  cursor: default;
}

.record-icon-button.record-clear {
  min-width: 30px;
  min-height: 30px;
}

.record-icon-button[hidden],
.record-pagination[hidden],
.record-pagination nav[hidden] {
  display: none;
}

.record-table-scroll {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.record-table-scroll:focus-visible {
  outline-offset: -2px;
}

.record-table {
  width: 100%;
  color: var(--muted);
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.record-table-invoices { min-width: 755px; }
.record-table-client-invoices { min-width: 635px; }

.record-table thead {
  background: var(--surface);
  color: var(--ink);
}

.record-table th {
  padding: 14px 18px;
  border-bottom: 2px solid #000000;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}

.record-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-subtle);
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.record-table tr > :first-child { padding-inline-start: 24px; }
.record-table tr > :last-child { padding-inline-end: 24px; }
.record-table tbody tr { transition: background-color .15s ease; }
.record-table tbody tr:hover { background: #f8f8f8; }

.record-row-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 39px;
  width: fit-content;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

a.record-row-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.record-file-icon,
.record-avatar,
.record-dialog-icon,
.record-balance-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #000000;
  color: #ffffff;
}

.record-avatar {
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
}

.record-table-name { color: var(--ink); font-weight: 550; }
.record-invoice-link, .record-table-date, .record-table-number { white-space: nowrap; }
.record-table-number, .record-pagination { font-variant-numeric: tabular-nums; }
.record-table-number, .record-table-action { text-align: right; }
.record-table td.record-table-number { color: var(--ink); font-weight: 750; }
.record-table td.record-table-action { width: 1%; }

.record-role {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--ink);
  font-weight: 500;
}

.record-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 8px 24px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.record-pagination nav { display: flex; gap: 6px; }
.record-pagination .record-icon-button { background: var(--subtle); border-radius: 50%; }
.record-pagination .record-icon-button:hover:not(:disabled) { background: #e2e2e2; color: #000000; }

.record-loading {
  display: flex;
  min-height: 268px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 500;
}

.record-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--line);
  border-top-color: var(--action);
  border-radius: 50%;
  animation: record-spin .7s linear infinite;
}

@keyframes record-spin { to { transform: rotate(360deg); } }

.record-back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  transition: color .15s ease;
}

.record-back:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.record-dialog {
  width: min(540px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-modal);
}

.record-dialog::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }

.record-dialog-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.record-dialog-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.record-dialog-head h2 { font-size: 22px; font-weight: 750; letter-spacing: -.03em; }

.record-dialog-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #000000;
  color: #ffffff;
}

.record-dialog-head .record-icon-button { margin-inline-start: auto; }

.record-dialog-content {
  display: grid;
  gap: 18px;
  padding: 24px 28px;
}

.record-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.record-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.record-form-field { min-width: 0; }
.record-form-field .input {
  min-height: 46px;
  background: var(--subtle);
}

.record-form-field .input:focus { background: var(--surface); }
.record-form-field textarea { resize: none; }
.record-form-field [aria-invalid="true"] { border-color: var(--red); }

.record-field-help {
  color: var(--muted);
  font-size: 12px;
}

[aria-invalid="true"] + .record-field-help { color: var(--red); }

.record-form-error {
  padding: 10px 14px;
  border: 1px solid #f5ccd2;
  border-radius: 8px;
  color: var(--red);
  background: #fff5f6;
  font-size: 13px;
  font-weight: 500;
}

.record-password .input { padding-inline-end: 42px; }

.record-password > .record-icon-button {
  position: absolute;
  top: 30px;
  right: 6px;
}

.record-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (prefers-reduced-motion: reduce) {
  .record-spinner { animation: none; }
}

.record-panel--directory .record-panel-top,
.record-panel--team .record-panel-top {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.record-panel--directory .record-search { width: 355px; max-width: 100%; }

.record-panel--directory .record-search .input,
.record-panel--team .record-search .input {
  border: 1px solid var(--line);
  background: var(--surface);
}

.record-panel--directory .record-search .input:hover,
.record-panel--team .record-search .input:hover { border-color: #000000; }

.record-panel--directory .record-list-label h2,
.record-panel--team .record-list-label h2,
.record-panel--ledger .record-list-label h2 { font-size: 24px; font-weight: 750; letter-spacing: -.03em; }

.client-directory-grid,
.record-team-roster {
  padding: 0;
  margin: 0;
  list-style: none;
}

.client-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.client-directory-grid li { min-width: 0; }

.client-card {
  display: flex;
  min-height: 225px;
  height: 100%;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s cubic-bezier(0.16, 1, 0.3, 1), transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.client-card:hover {
  border-color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.client-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.client-card .record-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #000000;
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
}

.client-card-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--ink);
  transition: all .2s ease;
}

.client-card:hover .client-card-arrow {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
  transform: scale(1.05);
}

.client-card h3 {
  margin: 18px 0 12px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.client-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.client-card dl > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.client-card dt { padding-top: 2px; }
.client-card dd { margin: 0; overflow-wrap: anywhere; }
.client-card-unfilled { color: var(--muted); font-size: 13.5px; }

.client-directory-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr);
  min-height: 270px;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.client-directory-empty > div:first-child {
  align-self: center;
  padding: clamp(28px, 5vw, 64px);
}

.client-directory-empty h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.client-directory-empty p {
  max-width: 40ch;
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.client-directory-icon {
  position: relative;
  display: grid;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #000000;
  color: #ffffff;
}

.client-directory-icon::before,
.client-directory-icon::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: clamp(150px, 18vw, 250px);
  aspect-ratio: 1;
  border: 1px solid #333333;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.client-directory-icon::before { scale: 1.42; transform-origin: top left; }
.client-directory-icon .icon { position: relative; z-index: 1; stroke-width: 1.35; }

.record-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.record-filter-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--subtle);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: all .15s ease;
}

.record-filter-buttons button:hover:not([aria-pressed="true"]) {
  background: #e5e5e5;
}

.record-filter-buttons button[aria-pressed="true"] {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

.record-filter-buttons strong {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  padding-inline: 5px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .08);
  color: currentColor;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.record-filter-buttons button[aria-pressed="true"] strong {
  background: rgba(255, 255, 255, .25);
  color: #ffffff;
}

.record-panel--ledger .record-filter-buttons { margin-bottom: 26px; }

.record-panel--ledger .record-results,
.record-panel--history .record-results {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.record-panel--ledger .record-table th,
.record-panel--history .record-table th { border-top: 0; }
.record-table tbody tr:last-child td { border-bottom: 0; }

.record-panel--team {
  display: grid;
  grid-template-columns: minmax(170px, .24fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3vw, 38px);
}

.record-panel--team .record-filter-buttons {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.record-panel--team .record-filter-buttons button {
  border-color: transparent;
  border-radius: 10px;
}

.record-panel--team .record-filter-buttons button:hover:not([aria-pressed="true"]) {
  background: var(--subtle);
}

.record-team-roster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.record-team-roster li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(215px, .55fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 85px;
  padding: 16px 20px;
  transition: background-color .15s ease;
}

.record-team-roster li:hover { background: #f8f8f8; }
.record-team-roster li + li { border-top: 1px solid var(--line); }

.record-team-identity,
.record-team-access {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.record-team-identity .record-avatar { width: 44px; height: 44px; font-size: 14px; }
.record-team-identity strong { display: block; font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
.record-team-username { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.record-team-access { justify-content: space-between; }
.record-team-access .record-role { font-size: 13px; font-weight: 500; }
.record-team-edit { border-color: var(--line); border-radius: 50%; }

.record-client-layout {
  display: grid;
  grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3vw, 44px);
}

.record-client-sidebar {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.record-client-identity {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 28px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.record-client-identity h1 {
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.record-client-identity .record-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #000000;
  color: #ffffff;
  font-size: 22px;
  font-weight: 750;
}

.record-contact { padding: 26px; }
.record-contact dl { display: grid; gap: 16px; margin: 18px 0 0; }
.record-contact-field dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 550; }
.record-contact-field dd { margin: 4px 0 0 26px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }

.record-client-finance {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.record-client-finance-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.record-client-finance-top h2 {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -.035em;
}

.record-balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.record-balance {
  position: relative;
  display: grid;
  justify-items: start;
  min-width: 0;
  min-height: 155px;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.record-balance:hover {
  border-color: #000000;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.record-balance.is-paid {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.record-balance.is-paid:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.record-balance-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
  border-radius: 10px;
}

.record-balance.is-paid .record-balance-icon {
  background: #222222;
  color: #5cdba0;
}

.record-balance.is-unpaid .record-balance-icon {
  background: #fff3d6;
  color: var(--amber);
}

.record-balance-title, .record-balance-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.record-balance.is-paid .record-balance-title,
.record-balance.is-paid .record-balance-count {
  color: #b3b3b3;
}

.record-balance strong {
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.record-balance strong small {
  font-size: .48em;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.record-balance-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .15s ease;
}

.record-balance:hover .record-balance-arrow {
  transform: scale(1.08);
}

.record-balance.is-paid .record-balance-arrow {
  border-color: #333333;
  color: #ffffff;
}

.record-panel--history .record-panel-top { padding-bottom: 16px; }
.record-panel--history .record-search { width: 220px; }

@media (max-width: 1000px) {
  .client-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-team-roster li { grid-template-columns: minmax(0, 1fr) auto; }
  .record-team-identity { grid-column: 1; grid-row: 1; }
  .record-team-access { grid-column: 1; grid-row: 2; justify-content: flex-start; margin-inline-start: 58px; }
  .record-team-edit { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 760px) {
  .record-client-layout, .record-panel--team { grid-template-columns: minmax(0, 1fr); }
  .record-panel--team .record-filter-buttons { display: flex; }
  .record-contact dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .records-page { gap: 22px; }
  .record-heading h1 { font-size: clamp(32px, 9vw, 42px); }
  .record-heading p { margin-top: 6px; font-size: 14px; }
  .billing-heading .record-heading p { margin-top: 10px; }
  .record-filters { flex-wrap: wrap; width: 100%; }
  .record-search { width: auto; flex: 1 1 145px; }
  .record-select { flex: 0 1 auto; }
  .record-table tr > :first-child { padding-inline-start: 14px; }
  .record-table tr > :last-child { padding-inline-end: 14px; }
  .record-client-identity, .record-contact { padding: 18px; }
  .record-form-grid { grid-template-columns: 1fr; }
  .record-dialog-head, .record-dialog-content, .record-dialog-footer { padding-inline: 16px; }
  .client-directory-grid, .client-directory-empty { grid-template-columns: 1fr; }
  .client-directory-icon { min-height: 135px; }
  .client-directory-icon .icon { width: 55px; height: 55px; }
  .record-filter-buttons button { min-height: 35px; padding-inline: 10px; }
  .record-panel--ledger .record-filter-buttons { margin-bottom: 18px; }
  .record-team-roster li { padding-inline: 14px; }
  .record-balance { padding: 14px; }
  .record-balance-arrow { inset: 14px 14px auto auto; }
}

@media (prefers-reduced-motion: reduce) {
  .client-card, .client-card-arrow { transition: none; }
}

.record-invoice-cards { display: none; }
