:root {
  color-scheme: light;
  --ink: #0a1f44;
  --ink-2: #102b5c;
  --muted: #5c6d89;
  --line: #d9e4f3;
  --line-strong: #c6d7ed;
  --blue: #1768e8;
  --blue-dark: #0b4db8;
  --cyan: #20b8e9;
  --green: #137a55;
  --amber: #9a6500;
  --soft: #f3f7fc;
  --soft-2: #eaf2fb;
  --card: #ffffff;
  --danger: #c0392b;
  --ok: #137a55;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f6f9fd 0%, #edf4fb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}

.portal-body {
  min-width: 768px;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.entry {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 14% 18%, rgba(32, 184, 233, .18), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 46%, #f7fbff 100%);
}

.entry-shell {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .85fr);
  gap: 28px;
  align-items: stretch;
}

.entry-panel {
  min-height: 520px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  color: white;
  background:
    linear-gradient(160deg, rgba(10, 31, 68, .94), rgba(15, 73, 161, .9)),
    linear-gradient(45deg, rgba(32, 184, 233, .3), transparent);
  box-shadow: 0 24px 70px rgba(10, 31, 68, .18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.entry-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 48px solid rgba(255, 255, 255, .08);
}

.entry-panel .brand,
.entry-panel h1,
.entry-panel .eyebrow {
  color: white;
  position: relative;
  z-index: 1;
}

.entry-panel p:not(.eyebrow) {
  max-width: 470px;
  color: rgba(255, 255, 255, .76);
  position: relative;
  z-index: 1;
}

.entry-panel h1 {
  font-size: clamp(40px, 5vw, 68px);
  max-width: 560px;
}

.admin-entry .entry-panel {
  background:
    linear-gradient(160deg, rgba(9, 22, 45, .96), rgba(28, 45, 80, .94)),
    linear-gradient(45deg, rgba(23, 104, 232, .28), transparent);
}

.entry-card, .card {
  width: min(100%, 620px);
  min-width: 0;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(10, 31, 68, .08);
}

.entry-card.compact {
  width: 100%;
  align-self: center;
  padding: 34px;
  border-radius: 22px;
}

.entry-card.compact h2 {
  font-size: 28px;
  line-height: 1.08;
  margin-bottom: 8px;
}

.entry-card.compact .muted {
  margin: 0 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}

.brand span {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: url("assets/c-capital-mark.svg") center / contain no-repeat;
  box-shadow: 0 10px 22px rgba(23, 104, 232, .22);
  display: inline-block;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1; margin: 0 0 16px; }
h2 { margin: 0 0 16px; line-height: 1.15; }
p { color: var(--muted); line-height: 1.7; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.primary, .secondary {
  border: 0;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
}
.primary { color: white; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.secondary { color: var(--ink); background: white; border: 1px solid var(--line); }
.full { width: 100%; }

.form { display: grid; gap: 14px; margin-top: 20px; }
.form.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.form-section legend {
  padding: 0 6px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.form-section .wide {
  grid-column: 1 / -1;
}

.admin-record-form > .primary {
  justify-self: start;
}
.hidden { display: none !important; }
.mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 480px);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}
.mode-switch button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}
.mode-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 22px rgba(23, 104, 232, .18);
}
.form label { display: grid; gap: 8px; font-weight: 700; color: var(--muted); }
.form label small,
.field-help {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.field-help.error {
  color: var(--danger);
}

.form input, .form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
}
.form button { grid-column: 1 / -1; }
.form-note {
  grid-column: 1 / -1;
  margin: 0;
}
.transfer-review {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.transfer-review div {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}

.transfer-review span,
.transfer-review strong {
  display: block;
}

.transfer-review span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.transfer-review strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 18px;
  overflow-wrap: anywhere;
}
.optional-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}
.optional-group h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}
.optional-group h3 span {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #e9f2ff;
  font-size: 11px;
  text-transform: uppercase;
}
.entry-card.compact .form {
  gap: 16px;
}
.entry-card.compact .form input {
  min-height: 48px;
  border-radius: 12px;
  background: #fbfdff;
}
.entry-card.compact .primary,
.entry-card.compact .secondary {
  min-height: 48px;
}

.muted { font-size: 14px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 76px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.workspace {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 80px;
}
.hero {
  margin-bottom: 24px;
}
.grid {
  display: grid;
  min-width: 0;
  gap: 18px;
  margin-bottom: 18px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-summary {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.admin-summary-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.admin-summary-card {
  margin-bottom: 0;
}
.admin-summary-card strong {
  font-size: 34px;
}
.admin-action-required {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 31, 68, .05);
}
.admin-action-required .card-head {
  margin-bottom: 12px;
}
.admin-alert-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.admin-alert-list button {
  min-width: 0;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  text-align: left;
  cursor: pointer;
}
.admin-alert-list button:hover {
  border-color: rgba(23, 104, 232, .45);
  background: #f4f8ff;
}
.admin-alert-list span {
  display: inline-grid;
  min-width: 34px;
  height: 28px;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--blue);
  font-weight: 900;
}
.admin-alert-list strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
.admin-alert-list small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}
.admin-review-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: start;
}
.card { width: 100%; padding: 24px; border-radius: 16px; }
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card-head h2 {
  margin-bottom: 0;
}
.card-head .eyebrow {
  margin-bottom: 6px;
}
.metric {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.metric strong {
  display: block;
  min-width: 0;
  margin-top: 6px;
  font-size: 30px;
  overflow-wrap: anywhere;
}
.metric span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.metric small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.beneficiary-card strong {
  font-size: 22px;
}

.beneficiary-summary {
  font-weight: 800;
}

.beneficiary-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.beneficiary-primary div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.beneficiary-primary dt,
.beneficiary-intermediary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.beneficiary-primary dd,
.beneficiary-intermediary dd {
  margin: 5px 0 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.beneficiary-primary dd {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.beneficiary-primary .wide-field {
  grid-column: 1 / -1;
}

.beneficiary-intermediary {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.beneficiary-intermediary .intermediary-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.beneficiary-intermediary div:not(.intermediary-title) {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.beneficiary-intermediary dd {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}
.detail-list div {
  display: grid;
  grid-template-columns: minmax(0, 118px) minmax(0, 1fr);
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.detail-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}
.inline-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
}
.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfdff;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
tbody tr:hover {
  background: #f8fbff;
}
.transaction-row {
  cursor: pointer;
}
.transaction-row:focus-visible,
.transaction-row.active {
  outline: 2px solid rgba(23, 104, 232, .45);
  outline-offset: -2px;
  background: #f8fbff;
}
.activity-table-wrap table {
  min-width: 1020px;
}
.date-cell {
  min-width: 150px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.account-cell {
  min-width: 190px;
}
.account-cell strong,
.account-cell small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-cell strong {
  color: var(--ink);
  font-size: 13px;
}
.account-cell small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.ledger-after-cell {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  background: #e9f2ff;
  color: var(--blue);
}
.status.failed { background: #fff0ed; color: var(--danger); }
.status.settled { background: #e8f8f1; color: var(--ok); }
.status.processing { background: #e9f2ff; color: var(--blue-dark); }
.status.pending-review { background: #eef4ff; color: #315fbd; }
.status.request-info { background: #fff8e1; color: var(--amber); }
.status.rejected { background: #fff0ed; color: var(--danger); }
.status.pending-refund,
.status.refunded,
.status.returned { background: #fff8e1; color: var(--amber); }
.movement {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}
.movement::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}
.movement.inbound,
.amount.inbound { color: var(--green); }
.movement.internal { color: var(--blue-dark); }
.movement.payout,
.amount.payout { color: var(--ink); }
.amount {
  font-weight: 800;
  white-space: nowrap;
}
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions button { min-height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: white; cursor: pointer; }
.row-actions button:hover {
  border-color: rgba(23, 104, 232, .5);
  color: var(--blue-dark);
  background: #f8fbff;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100% - 40px));
  padding: 14px 16px;
  border-radius: 12px;
  color: white;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 18, 44, .48);
}

.confirm-overlay[hidden] {
  display: none;
}

.confirm-dialog {
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(5, 18, 44, .24);
}

.confirm-dialog h2 {
  margin: 4px 0 10px;
  font-size: 28px;
}

.confirm-dialog p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.confirm-note {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.confirm-note[hidden] {
  display: none;
}

.confirm-note textarea {
  width: 100%;
  resize: vertical;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fbfdff;
}

.confirm-note textarea:focus {
  outline: 2px solid rgba(23, 104, 232, .22);
  border-color: rgba(23, 104, 232, .5);
}

.char-counter {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.confirm-actions button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.confirm-actions button.secondary {
  background: #fff;
  color: var(--ink);
}

.confirm-actions button.danger {
  background: var(--danger);
  border-color: var(--danger);
}

.portal-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  background: linear-gradient(180deg, #eef4fb, #f7faff);
}

.portal-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background:
    linear-gradient(180deg, rgba(5, 25, 58, .98), rgba(11, 55, 118, .98)),
    linear-gradient(135deg, rgba(32, 184, 233, .2), transparent);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portal-sidebar .brand {
  color: #fff;
}

.portal-brand {
  padding: 4px 6px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.portal-nav {
  display: grid;
  gap: 7px;
}

.portal-nav button {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  padding: 0 12px;
  color: rgba(255, 255, 255, .78);
  background: transparent;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.nav-icon,
.action-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  color: #dff3ff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12);
}

.portal-nav button.active,
.portal-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .13);
}

.portal-nav button.active .nav-icon,
.portal-nav button:hover .nav-icon {
  color: #06234f;
  background: #dff3ff;
}

.portal-sidebar [data-logout] {
  margin-top: auto;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
}

.portal-main {
  min-width: 0;
  padding: 30px;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.portal-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 8px;
}

.page-subtitle {
  max-width: 760px;
  margin: 0;
  font-size: 15px;
}

.user-chip {
  min-width: 246px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 30px rgba(10, 31, 68, .05);
}

.user-chip strong,
.user-chip span {
  display: block;
}

.user-chip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.user-chip .chip-label {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-section {
  display: none;
}

.portal-section.active {
  display: block;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.summary-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 31, 68, .06);
}

.summary-card::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(23, 104, 232, .12), rgba(32, 184, 233, .18));
}

.summary-card.highlight {
  color: #fff;
  border-color: transparent;
  background:
    linear-gradient(135deg, #09265a, #1768e8 70%, #20b8e9);
}

.summary-card.highlight span,
.summary-card.highlight small {
  color: rgba(255, 255, 255, .78);
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  overflow-wrap: anywhere;
}

.summary-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.quick-actions button {
  min-width: 0;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(10, 31, 68, .05);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.quick-actions button:hover,
.quick-actions button.active {
  border-color: rgba(23, 104, 232, .36);
  box-shadow: 0 14px 34px rgba(23, 104, 232, .1);
}

.quick-actions .action-icon {
  width: 40px;
  height: 40px;
  grid-row: span 2;
  color: var(--blue-dark);
  background: #e9f2ff;
  border-color: #d8e7ff;
}

.quick-actions strong,
.quick-actions small {
  min-width: 0;
  display: block;
}

.quick-actions strong {
  color: var(--ink);
  font-size: 15px;
}

.quick-actions small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.admin-quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audit-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.audit-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.audit-item summary {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(180px, .7fr);
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.audit-item summary::-webkit-details-marker {
  display: none;
}

.audit-item summary span,
.audit-item summary small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.audit-item summary strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}

.audit-item summary em {
  grid-column: 2 / -1;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.audit-detail {
  margin: 0;
  padding: 0 14px 14px;
}

.audit-count {
  margin: 10px 0 0;
}

.request-review-card {
  gap: 9px;
}

.request-review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
}

.section-intro p {
  max-width: 560px;
  margin: 0;
  font-size: 14px;
}

.wide-card {
  width: 100%;
}

.compact-table table {
  min-width: 430px;
  table-layout: auto;
}

.compact-table th,
.compact-table td {
  padding: 10px 6px;
  white-space: nowrap;
}

.compact-table .date-cell {
  min-width: 116px;
  font-size: 12px;
}

.compact-table .amount {
  font-size: 13px;
}

.compact-table .status {
  padding: 4px 7px;
  font-size: 11px;
}

.request-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.request-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr);
  gap: 14px;
  align-items: start;
}

.request-item div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.account-filter-bar {
  margin-bottom: 14px;
}

.account-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.account-row {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: 52px minmax(0, 1.3fr) minmax(120px, .7fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.account-row:hover,
.account-row.active {
  border-color: rgba(23, 104, 232, .45);
  background: #f8fbff;
  box-shadow: 0 12px 28px rgba(23, 104, 232, .08);
}

.account-row-currency {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 38px;
  border-radius: 12px;
  color: var(--blue-dark);
  background: #e9f2ff;
  font-size: 12px;
  font-weight: 900;
}

.account-row-main,
.account-row-main strong,
.account-row-main small,
.account-row-balance {
  min-width: 0;
}

.account-row-main strong,
.account-row-main small {
  display: block;
  overflow-wrap: anywhere;
}

.account-row-main strong {
  color: var(--ink);
  font-size: 14px;
}

.account-row-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.account-row-balance {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.account-row-balance small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.balance-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.balance-snapshot div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.balance-snapshot dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.balance-snapshot dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.balance-snapshot-wide {
  margin-bottom: 14px;
}

.account-detail-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.beneficiary-filter-bar {
  margin-bottom: 14px;
}

.beneficiary-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.beneficiary-row {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: 52px minmax(0, 1.3fr) minmax(130px, .7fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.beneficiary-row:hover,
.beneficiary-row.active {
  border-color: rgba(23, 104, 232, .45);
  background: #f8fbff;
  box-shadow: 0 12px 28px rgba(23, 104, 232, .08);
}

.beneficiary-row-meta {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.beneficiary-detail-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.account-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.account-detail-head h3 {
  margin: 10px 0 4px;
  color: var(--ink);
  font-size: 18px;
}

.account-detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.account-detail-head strong {
  color: var(--ink);
  font-size: 20px;
  white-space: nowrap;
}

.account-detail-grid {
  margin-top: 0;
}

.request-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}

.request-item small {
  color: var(--muted);
}

.admin-user-grid {
  grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr);
}

.admin-user-list,
.admin-user-detail,
.admin-account-list,
.admin-mini-list {
  display: grid;
  gap: 10px;
}

.admin-user-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.admin-user-item:hover,
.admin-user-item.selected {
  border-color: rgba(23, 104, 232, .45);
  background: #f8fbff;
}

.admin-user-item strong {
  font-size: 16px;
}

.admin-user-item small {
  color: var(--muted);
  line-height: 1.45;
}

.admin-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}

.admin-account-row small {
  color: var(--muted);
}

.admin-account-row span {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--blue-dark);
  font-weight: 900;
  white-space: nowrap;
}

.admin-mini-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.admin-mini-list button:hover {
  border-color: rgba(23, 104, 232, .45);
  background: #f8fbff;
}

.admin-mini-list span,
.admin-mini-list small {
  color: var(--muted);
  font-size: 12px;
}

.admin-mini-list strong {
  overflow-wrap: anywhere;
}

.admin-mini-list em {
  grid-row: 1 / span 3;
  grid-column: 2;
  align-self: center;
  color: var(--blue-dark);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(10, 31, 68, .05);
  cursor: pointer;
}

.review-card.selected,
tr.selected {
  outline: 2px solid rgba(23, 104, 232, .28);
  border-color: rgba(23, 104, 232, .45);
  background: #f8fbff;
}

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

.review-card h3 {
  margin: 5px 0 4px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.review-card .detail-list {
  margin-bottom: 12px;
}

.review-note {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 111, 235, 0.18);
  border-radius: 8px;
  background: #f4f8ff;
  color: var(--ink);
}

.review-note.compact {
  padding: 10px 12px;
}

.review-note strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--blue);
}

.review-note span {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.review-note small {
  color: var(--muted);
  font-size: 12px;
}

.review-timeline {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.review-timeline.compact {
  padding: 12px;
}

.review-timeline h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
}

.review-timeline ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
}

.review-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: -12px;
  width: 1px;
  background: #d8e4f5;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border: 3px solid #dceaff;
  border-radius: 999px;
  background: var(--blue);
}

.review-timeline strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.review-timeline small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.review-timeline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.supporting-documents-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(34, 160, 107, 0.22);
  border-radius: 12px;
  background: #f7fffb;
}

.supporting-documents-panel strong {
  color: var(--ink);
}

.supporting-documents-panel p,
.supporting-documents-panel small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.supporting-documents-panel a {
  color: var(--blue-dark);
  font-weight: 850;
}

.supporting-documents-panel label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.copy-field input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.copy-field button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(23, 104, 232, 0.3);
  border-radius: 10px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 850;
  cursor: pointer;
}

.response-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(31, 111, 235, 0.18);
  border-radius: 12px;
  background: #fff;
}

.response-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.response-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
}

.response-form textarea:focus {
  outline: 2px solid rgba(23, 104, 232, .22);
  border-color: rgba(23, 104, 232, .5);
}

.response-form button {
  justify-self: start;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.admin-detail-card {
  position: sticky;
  top: 96px;
}

.admin-transaction-detail {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.admin-transaction-detail h3 {
  margin: 5px 0 4px;
  overflow-wrap: anywhere;
}

.admin-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(31, 111, 235, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

.admin-detail-hero p {
  margin: 0;
  color: var(--muted);
}

.admin-detail-status-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.admin-detail-status-stack small {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.admin-review-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-review-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-review-panel-head span {
  color: var(--ink);
  font-weight: 900;
}

.admin-review-panel-head strong {
  color: var(--blue-dark);
  white-space: nowrap;
}

.admin-review-panel-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

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

.admin-detail-grid .wide {
  grid-column: 1 / -1;
}

.admin-guidance-note,
.large-note {
  margin-top: 0;
}

.large-note span {
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.response-received-panel {
  border-color: rgba(34, 160, 107, 0.25);
  background: #f7fffb;
}

.user-response-note {
  border-color: rgba(34, 160, 107, 0.22);
  background: #f3fff9;
}

.muted-panel {
  border-style: dashed;
  background: #fbfdff;
}

.admin-action-group {
  display: grid;
  gap: 10px;
}

.admin-action-group > strong,
.admin-secondary-actions summary {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.admin-primary-actions button:first-child {
  border-color: rgba(23, 104, 232, 0.35);
  background: var(--blue);
  color: #fff;
}

.admin-primary-actions button:first-child:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.admin-secondary-actions {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-secondary-actions summary {
  cursor: pointer;
}

.danger-action {
  color: var(--danger);
}

.admin-detail-actions {
  margin-top: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 16px;
  margin: 8px 0 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
}

.filter-bar label {
  display: grid;
  flex: 1 1 138px;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-bar label:last-of-type {
  flex: 2 1 260px;
}

.filter-bar input,
.filter-bar select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
}

.filter-bar button {
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 40px;
  white-space: nowrap;
}

.status.pending {
  background: #fff8e1;
  color: #8a5a00;
}

.status.approved {
  background: #e8f8f1;
  color: var(--ok);
}

.status.rejected {
  background: #fff0ed;
  color: var(--danger);
}

.transaction-card-list {
  display: none;
  gap: 12px;
}

.transaction-card {
  min-width: 0;
  cursor: pointer;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(10, 31, 68, .05);
}

.transaction-card:focus-visible,
.transaction-card.active {
  outline: 2px solid rgba(23, 104, 232, .45);
  border-color: rgba(23, 104, 232, .45);
  background: #f8fbff;
}

.transaction-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.transaction-card-head span:first-child {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.transaction-card-head strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.transaction-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.transaction-card dl div {
  display: grid;
  grid-template-columns: minmax(0, 104px) minmax(0, 1fr);
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.transaction-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.transaction-card dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.transaction-detail-panel {
  min-width: 0;
  margin: 14px 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 10px 28px rgba(10, 31, 68, .05);
}

.transaction-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.transaction-detail-head h3 {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 22px;
  overflow-wrap: anywhere;
}

.transaction-detail-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.transaction-detail-amount {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 160px;
}

.transaction-detail-amount strong {
  font-size: 22px;
}

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

.account-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.account-currency {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #e9f2ff;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .admin-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-alert-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-review-grid,
  .admin-user-grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
  .admin-detail-card {
    position: static;
  }
  .portal-body .grid.two {
    grid-template-columns: 1fr;
  }
  .transaction-detail-head {
    display: grid;
  }
  .transaction-detail-amount {
    justify-items: start;
    min-width: 0;
  }
  .transaction-detail-grid {
    grid-template-columns: 1fr;
  }
  .activity-table-wrap {
    display: none;
  }
  .transaction-card-list {
    display: grid;
  }
}

@media (max-width: 820px) {
  .entry-shell, .grid.two, .form.compact, .summary-grid, .portal-body { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .entry { padding: 18px; }
  .entry-panel {
    min-height: 260px;
    padding: 28px;
  }
  .entry-panel h1 { font-size: 38px; }
  h1 { font-size: 36px; }
  .topbar { padding: 0 16px; }
  .portal-sidebar {
    position: static;
    height: auto;
    gap: 14px;
    padding: 16px;
  }
  .portal-brand {
    padding: 0 2px 12px;
  }
  .portal-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 100%;
    overflow: visible;
  }
  .portal-nav button {
    min-height: 40px;
    padding: 0 10px;
    grid-template-columns: 26px minmax(0, 1fr);
    justify-items: stretch;
    gap: 5px;
    text-align: left;
    white-space: normal;
    font-size: 13px;
  }
  .nav-icon {
    width: 26px;
    height: 24px;
    border-radius: 8px;
    font-size: 9px;
  }
  .portal-sidebar [data-logout] {
    margin-top: 0;
  }
  .portal-main {
    width: 100%;
    min-width: 0;
    padding: 16px;
  }
  .portal-header {
    align-items: stretch;
    flex-direction: column;
  }
  .page-subtitle {
    font-size: 14px;
  }
  .user-chip {
    width: 100%;
    min-width: 0;
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .admin-quick-actions {
    grid-template-columns: 1fr;
  }
  .admin-summary-cards,
  .admin-alert-list {
    grid-template-columns: 1fr;
  }
  .quick-actions button {
    min-height: auto;
  }
  .audit-item summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .request-item {
    grid-template-columns: 1fr;
  }
  .request-review-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-intro {
    display: block;
  }
  .section-intro p {
    margin-top: 8px;
  }
  .card {
    padding: 18px;
    border-radius: 14px;
  }
  .card-head {
    gap: 8px;
  }
  .summary-card {
    padding: 16px;
  }
  .summary-card strong {
    font-size: 24px;
  }
  .metric {
    padding: 14px;
  }
  .metric strong {
    font-size: 24px;
  }
  .detail-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .detail-list dd {
    font-size: 12px;
  }
  .account-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .beneficiary-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .account-row-balance,
  .account-row .status,
  .beneficiary-row-meta,
  .beneficiary-row .status {
    grid-column: 2;
  }
  .account-detail-head {
    display: grid;
  }
  .account-detail-head strong {
    white-space: normal;
  }
  .balance-snapshot {
    grid-template-columns: 1fr;
  }
  .beneficiary-primary {
    grid-template-columns: 1fr;
  }
  .beneficiary-intermediary div:not(.intermediary-title) {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .filter-bar {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .transfer-review {
    grid-template-columns: 1fr;
  }
  .optional-group {
    grid-template-columns: 1fr;
  }
  .activity-table-wrap {
    display: none;
  }
  .transaction-card-list {
    display: grid;
  }
  .transaction-card dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .transaction-detail-head {
    display: grid;
  }
  .transaction-detail-amount {
    justify-items: start;
    min-width: 0;
  }
  .transaction-detail-grid {
    grid-template-columns: 1fr;
  }
  .compact-table table {
    min-width: 420px;
  }
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: auto;
  }
}
