/* MrIvory panel — holding-page tokens (--soon-*) plus panel aliases (--rdp-*) */
:root {
  --soon-teal: #214344;
  --soon-orange: #ff4e2f;
  --soon-cream: #fdf4ef;
  --soon-green: #a7d6c0;
  --soon-ink: #1c2424;
  --soon-muted: #5f6b6b;
  --soon-quiet: #7a8686;
  --soon-line: #e8dfd8;
  --soon-on-teal: #c5d4d2;
  --soon-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rdp-bg: #fdf4ef;
  --rdp-bg-2: #f7efe9;
  --rdp-card: #ffffff;
  --rdp-card-2: #f6f1ed;
  --rdp-accent: #ff4e2f;
  --rdp-accent-deep: #e63e22;
  --rdp-accent-soft: rgba(255, 78, 47, 0.12);
  --rdp-text: #1c2424;
  --rdp-muted: #5f6b6b;
  --rdp-quiet: #7a8686;
  --rdp-gold: #d5ddd9;
  --rdp-mint: #e7f5ee;
  --rdp-mint-text: #214344;
  --rdp-apricot: #eef6f2;
  --rdp-apricot-text: #214344;
  --rdp-err: #d92d20;
  --rdp-err-bg: #fdecea;
  --rdp-line: #e8dfd8;
  --rdp-shadow: 0 10px 28px rgba(33, 67, 68, 0.08);
  --rdp-shadow-sm: 0 2px 10px rgba(33, 67, 68, 0.06);
  --rdp-radius: 12px;
  --rdp-radius-sm: 8px;
  --rdp-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rdp-side: #214344;
  --rdp-side-text: #ffffff;
  --rdp-side-muted: #c5d4d2;
  --rdp-side-active: #a7d6c0;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  margin: 0;
  font-family: var(--rdp-font);
  background: var(--rdp-bg);
  color: var(--rdp-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.rdp-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.rdp-card {
  width: 100%;
  max-width: 440px;
  background: var(--rdp-card);
  border: 0;
  border-radius: var(--rdp-radius);
  padding: 32px 28px;
  box-shadow: var(--rdp-shadow);
}

.rdp-banner {
  display: inline-flex;
  align-items: center;
  background: var(--rdp-accent-soft);
  color: var(--rdp-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 5px 8px;
  border-radius: 99px;
  border: 1px solid var(--rdp-accent);
  margin-bottom: 16px;
  white-space: nowrap;
  max-width: 100%;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.rdp-sub { margin: 0 0 20px; color: var(--rdp-muted); font-size: 16px; }

.rdp-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 22px; }
.rdp-meta dt { color: var(--rdp-muted); }
.rdp-meta dd { margin: 0; font-weight: 550; }

label {
  display: block;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 550;
  color: var(--rdp-text);
}

input[type=text], input[type=password], input[type=email], input[type=number],
input[type=tel], input[type=date], input[type=file], select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  min-height: 48px;
  border: 0;
  border-radius: var(--rdp-radius-sm);
  background: #ffffff;
  color: var(--rdp-text);
  font-size: 16px;
  font-family: inherit;
  box-shadow: inset 0 0 0 1px #d0d5d4;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--rdp-accent), 0 0 0 4px var(--rdp-accent-soft);
  background: #ffffff;
}

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

.rdp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

button, .rdp-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px 18px;
  min-height: 48px;
  border: 0;
  border-radius: var(--rdp-radius-sm);
  background: var(--rdp-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

button:hover, .rdp-btn:hover { background: var(--rdp-accent-deep); }
button:focus-visible, .rdp-btn:focus-visible, .rdp-btn-ghost:focus-visible,
.rdp-icon-btn:focus-visible, a:focus-visible, .rdp-nav a:focus-visible,
.rdp-menu:focus-visible, .rdp-who a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--rdp-accent);
  outline-offset: 2px;
}

.rdp-note { font-size: 13px; color: var(--rdp-muted); margin-top: 16px; line-height: 1.5; }
.muted { color: var(--rdp-muted); font-size: 13px; }

.rdp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rdp-table th { text-align: left; color: var(--rdp-muted); padding: 6px 10px 6px 0; vertical-align: top; font-weight: 550; white-space: nowrap; overflow-wrap: normal; }
.rdp-table td { padding: 6px 0; overflow-wrap: anywhere; word-break: normal; }

.rdp-shell { min-height: 100vh; padding: 36px 20px 56px; }
.rdp-top { max-width: 960px; margin: 0 auto 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rdp-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--rdp-text);
  text-decoration: none;
  line-height: 1.2;
}
.rdp-lockup span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rdp-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
}
.rdp-wordmark {
  display: block;
  max-width: min(220px, calc(100vw - 48px));
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 14px;
  border-radius: 10px;
}
.rdp-brand, .rdp-side-brand, .rdp-onboard-brand, .rdp-auth-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.rdp-auth-brand { margin: 0 0 18px; }

.rdp-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
@media (max-width: 720px) { .rdp-grid { grid-template-columns: 1fr; } }
.rdp-wide { max-width: none; }
h2 { margin: 0 0 12px; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.rdp-price { font-size: 36px; margin: 8px 0 18px; font-weight: 700; letter-spacing: -0.03em; }
.rdp-api { margin: 0; padding-left: 18px; color: var(--rdp-muted); font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.8; }

a { color: var(--rdp-accent); }
.rdp-err { color: var(--rdp-err); font-weight: 550; }

.rdp-app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}
html:has(body.rdp-desk) {
  height: 100%;
  overflow: hidden;
}
body.rdp-desk {
  height: 100%;
  overflow: hidden;
}
body.rdp-desk .rdp-app {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.rdp-side {
  width: 260px;
  background: var(--rdp-side);
  border-right: 0;
  padding: 18px 14px 36px;
  flex-shrink: 0;
  color: var(--rdp-side-text);
  box-shadow: none;
  grid-column: 1;
  grid-row: 1 / -1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
}
.rdp-side-brand {
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--rdp-side-text);
}
.rdp-side .rdp-lockup { color: var(--rdp-side-text); }
.rdp-side-brand .rdp-mark { border-radius: 8px; background: #fff; }
.rdp-side-merch { color: var(--rdp-side-muted); font-size: 13px; margin: 8px 0 18px; font-weight: 550; }
.rdp-side .rdp-banner { margin-bottom: 8px; }
.rdp-nav { display: flex; flex-direction: column; gap: 8px; }
.rdp-nav-group { display: flex; flex-direction: column; gap: 2px; }
.rdp-nav-label {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rdp-side-muted);
  margin: 10px 8px 4px;
  font-weight: 700;
}
.rdp-nav a {
  color: var(--rdp-side-text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: normal;
}
.rdp-nav-text {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.35;
  visibility: visible;
  opacity: 1;
}
.rdp-side .rdp-nav a .rdp-nav-text { color: #ffffff; }
.rdp-side .rdp-nav a.active .rdp-nav-text { color: var(--rdp-side); }
.rdp-side .rdp-nav-drop > a.active .rdp-nav-text { color: #ffffff; }
.rdp-side .rdp-nav-label .rdp-nav-text { color: #c5d4d2; }
.rdp-side .rdp-nav-drop[open] > summary.rdp-nav-label .rdp-nav-text { color: var(--rdp-side-active); }
.rdp-nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--rdp-side-text); box-shadow: none; }
.rdp-nav a.active {
  background: var(--rdp-side-active);
  color: var(--rdp-side);
  box-shadow: none;
  font-weight: 700;
}
.rdp-nav-drop > a.active {
  background: transparent;
  color: var(--rdp-side-text);
  font-weight: 700;
}
.rdp-nav-drop > summary.rdp-nav-label {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rdp-side-muted);
}
.rdp-nav-drop[open] > summary.rdp-nav-label {
  background: rgba(167, 214, 192, 0.18);
  color: var(--rdp-side-active);
}
.rdp-nav-drop[open] > summary.rdp-nav-label::after { color: var(--rdp-side-muted); }

.rdp-main {
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
.rdp-main-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--rdp-line);
  background: var(--rdp-bg);
  grid-column: 2;
  grid-row: 1;
}
.rdp-main-top .rdp-lockup,
.rdp-main-top .rdp-side-brand { margin: 0; color: var(--rdp-text); }
.rdp-main-title { font-size: 18px; flex: 1; font-weight: 650; letter-spacing: -0.02em; color: var(--rdp-text); }
.rdp-who { font-size: 13px; color: var(--rdp-muted); display: flex; gap: 10px; align-items: center; margin-left: auto; }
.rdp-who > .rdp-who-email {
  background: #eef4f3;
  color: var(--rdp-side);
  padding: 6px 12px;
  border-radius: 99px;
  font-weight: 600;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rdp-who a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 99px;
  background: #ffffff;
  color: var(--rdp-side);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--rdp-gold);
  font-weight: 600;
}
.rdp-menu {
  display: none;
  width: auto;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 8px 12px;
  background: #ffffff;
  color: var(--rdp-side);
  box-shadow: inset 0 0 0 1px var(--rdp-gold);
  border-radius: var(--rdp-radius-sm);
}
.rdp-menu:hover { background: var(--rdp-card-2); color: var(--rdp-side); }
.rdp-scrim { display: none; }
.rdp-content { padding: 24px 32px 56px; max-width: 1180px; }

.rdp-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 20px; }
.rdp-metric {
  background: var(--rdp-card);
  border: 0;
  border-radius: var(--rdp-radius);
  padding: 16px 16px 14px;
  box-shadow: inset 0 0 0 1px var(--rdp-line), var(--rdp-shadow-sm);
}
.rdp-metric-label { color: var(--rdp-muted); font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.rdp-metric-val { font-size: 24px; margin: 4px 0; font-weight: 700; letter-spacing: -0.03em; }
.rdp-metric-sub { color: var(--rdp-muted); font-size: 12px; }

.rdp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--rdp-card);
  border-radius: var(--rdp-radius);
  box-shadow: var(--rdp-shadow-sm);
}
.rdp-filters label { margin: 0; }
.rdp-filters button, .rdp-btn, .rdp-btn-ghost { width: auto; padding: 10px 16px; margin: 0; }
.rdp-btn-ghost {
  background: #ffffff;
  border: 1px solid var(--rdp-gold);
  color: var(--rdp-text);
  border-radius: var(--rdp-radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-shadow: none;
  font-weight: 600;
}
.rdp-btn-ghost:hover { background: var(--rdp-card-2); }
.rdp-btn { display: inline-flex; text-decoration: none; text-align: center; }

.rdp-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overflow-wrap: normal;
  word-break: normal;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: var(--rdp-radius);
  background: var(--rdp-card);
  box-shadow: var(--rdp-shadow-sm);
}
.rdp-grid-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  overflow-wrap: normal;
  word-break: normal;
}
.rdp-grid-table th, .rdp-grid-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--rdp-line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.rdp-grid-table th {
  color: var(--rdp-muted);
  background: #faf7f4;
  position: sticky;
  top: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.rdp-grid-table td { color: var(--rdp-text); }
.rdp-grid-table tbody tr:last-child td { border-bottom: 0; }
.rdp-grid-table tbody tr:hover td { background: #f3faf6; }
.rdp-grid-table tfoot td {
  font-weight: 650;
  background: #eef4f3;
  border-top: 2px solid var(--rdp-side);
  color: var(--rdp-side);
}

.rdp-form { max-width: 640px; }
.rdp-form button { width: auto; }

.rdp-card-lite {
  background: var(--rdp-card);
  border: 0;
  border-radius: var(--rdp-radius);
  padding: 24px 22px;
  margin: 14px 0;
  box-shadow: inset 0 0 0 1px var(--rdp-line), var(--rdp-shadow-sm);
}
.rdp-ubo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.rdp-ubo-title { margin: 0; font-size: 18px; }
.rdp-ubo-card .rdp-ubo-remove[hidden] { display: none; }
#add-ubo { margin: 4px 0 8px; }

.rdp-check { display: flex; align-items: center; gap: 10px; margin: 8px 0; min-height: 44px; }

.rdp-ms-field { margin: 0 0 16px; }
.rdp-ms-label { display: block; font-size: 14px; font-weight: 550; color: var(--rdp-text); }
.rdp-ms { margin-top: 6px; }
.rdp-ms-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 8px 40px 8px 12px;
  background: #ffffff;
  border-radius: var(--rdp-radius-sm);
  box-shadow: inset 0 0 0 1px #d0d5d4;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.rdp-ms-summary::-webkit-details-marker { display: none; }
.rdp-ms-summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--rdp-muted);
  border-bottom: 2px solid var(--rdp-muted);
  transform: rotate(45deg);
}
.rdp-ms[open] .rdp-ms-summary {
  box-shadow: inset 0 0 0 2px var(--rdp-accent), 0 0 0 4px var(--rdp-accent-soft);
}
.rdp-ms[open] .rdp-ms-summary::after { transform: rotate(225deg); margin-top: -2px; }
.rdp-ms-placeholder { color: var(--rdp-muted); font-weight: 500; }
.rdp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rdp-mint);
  color: var(--rdp-mint-text);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.rdp-chip-primary {
  background: var(--rdp-side);
  color: #ffffff;
}
.rdp-chip-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.rdp-ms-panel {
  margin-top: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 10px 12px 8px;
  background: #ffffff;
  border-radius: var(--rdp-radius-sm);
  box-shadow: inset 0 0 0 1px var(--rdp-line), var(--rdp-shadow-sm);
}
.rdp-ms-search {
  width: 100%;
  margin: 0 0 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--rdp-radius-sm);
  background: var(--rdp-bg-2);
  box-shadow: inset 0 0 0 1px #d0d5d4;
  font-size: 15px;
  font-family: inherit;
}
.rdp-ms-opt { margin: 2px 0; padding: 4px 6px; border-radius: 8px; }
.rdp-ms-opt:hover { background: var(--rdp-apricot); }
.rdp-ms-code { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--rdp-side); }
.rdp-inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rdp-inline button { width: auto; margin: 0; padding: 10px 14px; font-size: 14px; box-shadow: none; }
.rdp-wide-input { width: 100%; }

.rdp-flash { padding: 12px 14px; border-radius: 16px; margin-bottom: 14px; }
.rdp-flash.ok { background: var(--rdp-mint); color: var(--rdp-mint-text); box-shadow: none; }
.rdp-flash.err { background: var(--rdp-err-bg); color: var(--rdp-err); box-shadow: none; }

.rdp-kyc-banner {
  background: var(--rdp-card);
  border: 0;
  border-radius: var(--rdp-radius);
  padding: 20px 18px;
  margin-bottom: 18px;
  box-shadow: var(--rdp-shadow-sm);
}
.rdp-row-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.rdp-steps { padding-left: 20px; color: var(--rdp-muted); font-size: 14px; }
.rdp-steps .active { color: var(--rdp-text); font-weight: 650; }

.rdp-invoice { max-width: 560px; }
.rdp-logo { max-height: 48px; }
.rdp-invoice .rdp-logo {
  display: block;
  max-height: 64px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  margin: 0 0 16px;
}
.rdp-logo-card {
  background: var(--rdp-card);
  border-radius: var(--rdp-radius);
  padding: 24px 22px;
  margin: 0 0 22px;
  max-width: 640px;
  box-shadow: inset 0 0 0 1px var(--rdp-line), var(--rdp-shadow-sm);
}
.rdp-logo-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.rdp-logo-card-copy .rdp-note { margin-top: 4px; }
.rdp-logo-stage { margin: 16px 0 18px; }
.rdp-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  max-width: 280px;
  padding: 18px 22px;
  background:
    linear-gradient(180deg, #fffaf6 0%, var(--rdp-card-2) 100%);
  border-radius: var(--rdp-radius-sm);
  box-shadow: inset 0 0 0 1px var(--rdp-line);
}
.rdp-logo-preview img {
  max-height: 72px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
}
.rdp-logo-preview-empty {
  color: var(--rdp-muted);
  font-size: 13px;
  font-weight: 550;
}
.rdp-logo-form input[type="file"] {
  display: block;
  width: 100%;
  padding: 12px 12px;
  margin-top: 8px;
  border-radius: var(--rdp-radius-sm);
  background: var(--rdp-card-2);
  box-shadow: inset 0 0 0 1px var(--rdp-line);
  font-size: 14px;
}
.rdp-logo-form .rdp-row-btns { margin-top: 8px; }
.rdp-qr img { background: #fff; padding: 10px; border-radius: 14px; box-shadow: var(--rdp-shadow-sm); }
.rdp-auth-wrap {
  background:
    linear-gradient(180deg, rgba(167, 214, 192, 0.18) 0%, transparent 42%),
    var(--rdp-bg);
}
.rdp-auth {
  max-width: 420px;
  padding: 36px 32px 28px;
}
.rdp-auth h1 {
  margin: 0 0 8px;
  font-size: 26px;
}
.rdp-auth .rdp-sub {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
}
.rdp-auth .rdp-banner { display: inline-flex; margin-bottom: 16px; }
.rdp-auth .rdp-lockup { display: flex; width: fit-content; }
.rdp-auth-foot {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rdp-line);
  color: var(--rdp-muted);
  font-size: 13px;
}
.rdp-auth-foot a { font-weight: 650; }
.rdp-pw-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.rdp-pw-wrap input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin-top: 0;
}
.rdp-pw-wrap .rdp-pw-toggle {
  width: auto;
  min-width: 4.5rem;
  margin-top: 0;
  flex: 0 0 auto;
}

fieldset {
  border: 0;
  border-radius: var(--rdp-radius-sm);
  margin: 0 0 12px;
  padding: 0;
}

.rdp-req { color: var(--rdp-err); }
.rdp-hint { display: block; font-size: 12px; color: var(--rdp-muted); font-weight: normal; margin-top: 2px; }
.rdp-field-err { display: block; color: var(--rdp-err); font-size: 12px; font-weight: 550; margin-top: 4px; }
label.rdp-field-invalid input,
label.rdp-field-invalid textarea {
  border-color: var(--rdp-err);
}
.rdp-section-head { display: flex; align-items: center; gap: 8px; margin: 20px 0 8px; }
.rdp-section-head h2 { margin: 0; font-size: 18px; }
.rdp-verify-row {
  margin: 16px 0 8px;
  padding: 12px 14px;
  background: var(--rdp-card-2);
  border-radius: var(--rdp-radius-sm);
}
.rdp-verify-row p { margin: 0 0 6px; }
.rdp-verify-row p:last-child { margin-bottom: 0; }
.rdp-col-picker { margin: 0 0 14px; }
.rdp-col-picker summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 600; }
.rdp-col-picker-list { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 0 12px; }

.rdp-dt-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.rdp-dt-toolbar label { margin: 0; }
.rdp-dt-toolbar .rdp-col-picker { margin: 0; }
.rdp-pager { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 4px; color: var(--rdp-muted); font-size: 13px; }
.rdp-pager button { width: auto; min-height: 40px; padding: 8px 12px; background: #ffffff; color: var(--rdp-text); border: 1px solid var(--rdp-gold); }
.rdp-row-actions { display: inline-flex; gap: 6px; align-items: center; }
.rdp-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; min-height: 40px; padding: 0; margin: 0;
  background: #ffffff; color: var(--rdp-text);
  border: 1px solid var(--rdp-gold); border-radius: var(--rdp-radius-sm);
  text-decoration: none; cursor: pointer; font-size: 16px; line-height: 1;
}
.rdp-icon-btn:hover { background: var(--rdp-card-2); }
.rdp-modal {
  background: var(--rdp-card); color: var(--rdp-text);
  border: 0; border-radius: var(--rdp-radius);
  padding: 22px 20px;
  width: min(520px, calc(100vw - 32px));
  max-width: min(520px, calc(100vw - 32px));
  height: fit-content;
  max-height: 90vh;
  max-height: min(90vh, calc(100dvh - 32px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: var(--rdp-shadow);
  /* Top-layer when showModal(); position:fixed keeps the open-attribute fallback above the iPad drawer/header. */
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  left: max(16px, env(safe-area-inset-left, 0px));
  margin: auto;
  z-index: 100;
}
.rdp-modal::backdrop { background: rgba(0,0,0,0.6); }
.rdp-modal .rdp-row-btns { margin-top: 12px; }

.rdp-onboard-shell { min-height: 100vh; }
.rdp-onboard-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rdp-line);
  background: #ffffff;
}
.rdp-onboard-brand { font-size: 20px; letter-spacing: -0.03em; }
.rdp-onboard-later { margin-left: auto; }
.rdp-onboard { max-width: 680px; margin: 0 auto; padding: 12px 16px 96px; }
.rdp-progress { font-size: 14px; color: var(--rdp-muted); margin: 0 0 8px; font-weight: 600; }
.rdp-progress-bar { height: 10px; background: #e7f0ed; border-radius: 99px; overflow: hidden; margin-bottom: 22px; box-shadow: none; }
.rdp-progress-bar > span { display: block; height: 100%; background: var(--rdp-accent); border-radius: 99px; }
.rdp-onboard h1 { font-size: 30px; margin: 0 0 10px; }
.rdp-onboard .rdp-form { max-width: none; }
.rdp-onboard-actions { display: flex; gap: 12px; margin-top: 24px; }
.rdp-onboard-actions a, .rdp-onboard-actions button {
  min-height: 48px;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  text-decoration: none;
}

.rdp-checklist { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 12px; }
.rdp-checklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  min-height: 56px;
  background: var(--rdp-card);
  border: 0;
  border-radius: var(--rdp-radius);
  box-shadow: var(--rdp-shadow-sm);
  font-weight: 550;
}

.rdp-pill { font-size: 12px; letter-spacing: 0; text-transform: none; padding: 6px 10px; border-radius: 99px; font-weight: 650; }
.rdp-pill.due { background: var(--rdp-accent-soft); color: var(--rdp-accent); box-shadow: none; }
.rdp-pill.done { background: var(--rdp-mint); color: var(--rdp-mint-text); box-shadow: none; }

.rdp-status-hero {
  background: var(--rdp-card);
  border: 0;
  border-radius: var(--rdp-radius);
  padding: 28px 24px;
  box-shadow: var(--rdp-shadow);
}
.rdp-status-hero.review { border-color: var(--rdp-gold); }
.rdp-status-hero.complete { border-color: var(--rdp-gold); }
.rdp-status-hero.restricted { border-color: var(--rdp-accent); }

.rdp-next { margin: 8px 0 0; padding-left: 20px; color: var(--rdp-muted); line-height: 1.6; }
.rdp-onboard input, .rdp-onboard select, .rdp-onboard textarea { min-height: 48px; font-size: 16px; }
.rdp-onboard .rdp-check { min-height: 48px; padding: 8px 0; }
.rdp-onboard .rdp-ms-opt { min-height: 40px; padding: 4px 6px; }
.rdp-onboard .rdp-ms-opt input[type=checkbox] { min-height: 18px; width: 18px; }
.rdp-onboard .rdp-ms-search { min-height: 40px; }
.rdp-onboard .rdp-help-btn { min-height: 22px; width: 22px; font-size: 13px; }

.rdp-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 10px;
}
.rdp-section-head h2 { margin: 0; font-size: 18px; }
.rdp-help { position: relative; display: inline-block; vertical-align: middle; }
.rdp-help-btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border-radius: 99px;
  background: var(--rdp-side);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}
.rdp-help-btn::-webkit-details-marker { display: none; }
.rdp-help[open] .rdp-help-btn {
  background: var(--rdp-accent);
}
.rdp-help-pop {
  position: absolute;
  z-index: 12;
  left: 0;
  top: calc(100% + 8px);
  width: min(360px, 86vw);
  padding: 12px 14px;
  background: #ffffff;
  color: var(--rdp-text);
  border-radius: var(--rdp-radius-sm);
  box-shadow: var(--rdp-shadow), inset 0 0 0 1px var(--rdp-line);
}
.rdp-help-pop strong { display: block; margin: 0 0 4px; font-size: 13px; }
.rdp-help-pop p { margin: 0; color: var(--rdp-muted); font-size: 13px; font-weight: 450; line-height: 1.45; }
.rdp-yn { margin: 0 0 16px; }
.rdp-yn-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 6px;
}
.rdp-yn select { width: 100%; }
.rdp-onboard-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, var(--rdp-bg) 28%);
  padding: 16px 0 10px;
}

.rdp-nav-drop { display: flex; flex-direction: column; gap: 4px; }
.rdp-nav-drop > summary.rdp-nav-label {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin: 6px 0 2px;
  border-radius: 8px;
  user-select: none;
  color: var(--rdp-side-text);
}
.rdp-nav-drop > summary.rdp-nav-label::-webkit-details-marker { display: none; }
.rdp-nav-drop > summary.rdp-nav-label::marker { content: ""; }
.rdp-nav-drop > summary.rdp-nav-label::after {
  content: "›";
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: var(--rdp-side-muted);
}
.rdp-nav-drop[open] > summary.rdp-nav-label::after { content: "›"; transform: rotate(90deg); }
.rdp-nav-drop > summary.rdp-nav-label:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--rdp-side-text);
  box-shadow: none;
}
.rdp-nav-drop[open] > summary.rdp-nav-label:hover {
  background: var(--rdp-side-active);
  color: var(--rdp-side);
}
.rdp-nav-drop > a { margin-left: 8px; }

/* iPad / tablet (≤1180): drawer + scrollable page, not a squeezed 260px sticky sidebar */
@media (max-width: 1180px) {
  body.rdp-desk { height: auto; overflow: auto; }
  body.rdp-desk .rdp-app { height: auto; max-height: none; overflow: visible; }
  html:has(body.rdp-desk) { height: auto; overflow: auto; }
  .rdp-app { display: block; }
  .rdp-main, .rdp-main-top, .rdp-side { grid-column: auto; grid-row: auto; }
  .rdp-main { overflow: visible; }
  .rdp-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 300px);
    z-index: 50;
    transform: translateX(-105%);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 16px max(36px, env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    display: block;
    background: var(--rdp-side);
    box-shadow: var(--rdp-shadow);
    transition: transform 0.22s ease;
    -webkit-overflow-scrolling: touch;
  }
  .rdp-side.open { transform: translateX(0); }
  .rdp-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(58, 36, 31, 0.28);
    border: 0;
    margin: 0;
    padding: 0;
    width: auto;
    min-height: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .rdp-side.open ~ .rdp-scrim,
  .rdp-scrim:not([hidden]) { display: block; }
  body:has(.rdp-side.open) { overflow: hidden; }
  .rdp-side-brand { margin-bottom: 10px; font-size: 20px; }
  .rdp-side-merch { display: block; }
  .rdp-nav {
    flex-direction: column;
    overflow: visible;
    gap: 14px;
  }
  .rdp-nav-group, .rdp-nav-drop { flex-direction: column; gap: 4px; }
  .rdp-nav-label { display: flex; }
  .rdp-nav-drop > summary.rdp-nav-label { min-height: 48px; }
  .rdp-nav a {
    white-space: normal;
    border-radius: 8px;
    background: transparent;
    padding: 10px 12px;
    min-height: 48px;
    box-shadow: none;
  }
  .rdp-nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--rdp-side-text); box-shadow: none; }
  .rdp-nav a.active { background: var(--rdp-side-active); color: var(--rdp-side); box-shadow: none; }
  .rdp-nav-drop > a.active { background: transparent; color: var(--rdp-side-text); }
  .rdp-menu { display: inline-flex; }
  .rdp-metrics { grid-template-columns: 1fr 1fr; }
  .rdp-who > .rdp-who-email { display: none; }
  .rdp-content { padding: 8px 14px 48px; }
  .rdp-main-top {
    padding: 12px 14px;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    flex-wrap: wrap;
    row-gap: 8px;
    position: sticky;
    top: 0;
    z-index: 30;
  }
  .rdp-nav a, .rdp-nav-drop > summary, .rdp-menu, .rdp-btn, .rdp-btn-ghost, .rdp-filters button, .rdp-form button, .rdp-inline button {
    min-height: 48px;
  }
  .rdp-icon-btn { width: 48px; min-height: 48px; }
  .rdp-lang select, .rdp-tz-summary, .rdp-who a { min-height: 48px; }
  input, select, textarea { font-size: 16px; }
}

@media (max-width: 1180px) {
  .rdp-wrap {
    align-items: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: max(28px, env(safe-area-inset-top, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
  }
  .rdp-auth, .rdp-card {
    width: min(440px, 100%);
    max-width: 100%;
  }
  .rdp-auth input, .rdp-auth select,
  .rdp-card input, .rdp-card select, .rdp-card textarea,
  .rdp-pw-toggle {
    font-size: 16px;
    min-height: 48px;
  }
}
@media (max-width: 520px) {
  .rdp-metrics { grid-template-columns: 1fr; }
  .rdp-row { grid-template-columns: 1fr; }
  .rdp-onboard { padding: 8px 12px 120px; }
  .rdp-onboard h1 { font-size: 26px; }
  .rdp-onboard-top { padding: 12px; }
  .rdp-form { max-width: none; }
  .rdp-card { padding: 26px 20px; }
  .rdp-wrap {
    padding: 20px 12px;
    padding-top: max(20px, env(safe-area-inset-top, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
  }
}

@media print {
  .rdp-side, .rdp-menu, .rdp-scrim, .rdp-who, .rdp-filters, .rdp-col-picker, .rdp-dt-toolbar, .rdp-pager, .rdp-icon-btn, .rdp-modal, .rdp-banner, .rdp-kyc-banner, .rdp-onboard-later { display: none !important; }
  .rdp-app { display: block; }
  body.rdp-desk, body.rdp-desk .rdp-app, .rdp-main { height: auto !important; max-height: none !important; overflow: visible !important; }
  .rdp-main-top { border: 0; background: transparent; }
  body { background: #fff; color: #111; }
  .rdp-grid-table th, .rdp-grid-table td { border: 1px solid #333; color: #111; background: #fff; }
  a { color: #111; }
}

.rdp-card, .rdp-content, .rdp-main, .docs-main { overflow-wrap: anywhere; }
.rdp-card h1, .rdp-onboard h1 { overflow-wrap: anywhere; }
.rdp-table-wrap, .rdp-grid-table, .rdp-grid-table th, .rdp-grid-table td,
.docs-table-wrap, .docs-table, .docs-table th {
  overflow-wrap: normal;
  word-break: normal;
}
html, body { max-width: 100%; }
body { overflow-x: hidden; }

@media (max-width: 800px) {
  .rdp-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .rdp-filters label,
  .rdp-filters button,
  .rdp-filters .rdp-btn,
  .rdp-filters .rdp-btn-ghost,
  .rdp-filters a {
    width: 100%;
  }
  .rdp-col-picker summary { width: 100%; }
  .rdp-dt-toolbar { flex-direction: column; align-items: stretch; }
  .rdp-dt-toolbar label, .rdp-dt-toolbar .rdp-btn-ghost, .rdp-dt-toolbar a, .rdp-dt-toolbar .rdp-col-picker, .rdp-dt-toolbar .rdp-col-picker summary { width: 100%; }
  .rdp-row-btns { flex-direction: column; align-items: stretch; }
  .rdp-row-btns > a, .rdp-row-btns > button { width: 100%; }
  .rdp-form button, .rdp-form .rdp-btn, .rdp-form .rdp-btn-ghost { width: 100%; }
}

@media (max-width: 640px) {
  .rdp-lockup { font-size: 18px; gap: 8px; }
  .rdp-mark { width: 28px; height: 28px; }
  button, .rdp-btn, .rdp-btn-ghost, .docs-panel, .docs-nav a {
    min-height: 48px;
  }
  input, select, textarea { min-height: 48px; font-size: 16px; }
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--rdp-text);
  caret-color: var(--rdp-text);
  box-shadow: 0 0 0 1000px #ffffff inset, inset 0 0 0 1px var(--rdp-gold);
  transition: background-color 9999s ease-out 0s;
}
input[type=date]::-webkit-calendar-picker-indicator { filter: none; opacity: 0.7; }

input[type=checkbox], input[type=radio] { accent-color: var(--rdp-accent); }

.rdp-setup { display: flex; gap: 22px; align-items: flex-start; margin-top: 8px; }
.rdp-setup-tabs { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.rdp-setup-tabs a {
  display: block; padding: 10px 12px; min-height: 44px; text-decoration: none;
  color: var(--rdp-text); border-left: 3px solid transparent; border-radius: 0 8px 8px 0;
}
.rdp-setup-tabs a.active { border-left-color: var(--rdp-accent); background: var(--rdp-card); color: var(--rdp-accent); }
.rdp-setup-body { flex: 1; min-width: 0; }
.rdp-setup-body .rdp-form { max-width: none; }
.rdp-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; }
.rdp-form-row label { margin: 0; }
.rdp-panel {
  background: var(--rdp-card); border: 0; border-radius: var(--rdp-radius);
  padding: 18px 18px 16px; margin: 14px 0; box-shadow: var(--rdp-shadow-sm);
}
.rdp-panel h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: -0.02em; }
.rdp-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rdp-bars { display: flex; flex-direction: column; gap: 8px; }
.rdp-bar { display: grid; grid-template-columns: 140px 1fr minmax(72px, max-content); gap: 10px; align-items: center; font-size: 13px; }
.rdp-bar b { text-align: right; white-space: normal; line-height: 1.3; }
.rdp-legend div span:last-child { text-align: right; white-space: normal; }
.rdp-bar i { display: block; height: 10px; background: var(--rdp-side-active); border-radius: 99px; min-width: 0; }
.rdp-pie {
  width: 160px; height: 160px; border-radius: 50%; margin: 8px auto 16px;
  box-shadow: inset 0 0 0 18px var(--rdp-card);
  background: conic-gradient(var(--rdp-side-active) 0deg, var(--rdp-side) 120deg, var(--rdp-accent) 240deg, var(--rdp-card-2) 360deg);
}
.rdp-legend { font-size: 13px; }
.rdp-legend div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--rdp-line); }
.rdp-empty { text-align: center; color: var(--rdp-muted); padding: 36px 16px; }
.rdp-empty strong { display: block; color: var(--rdp-text); font-size: 16px; margin-bottom: 6px; }
.rdp-empty p { margin: 0; font-size: 13px; }
.rdp-grid-table td.rdp-empty-cell { white-space: normal; text-align: center; padding: 28px 16px; }
.rdp-toggle { width: auto; min-height: 36px; padding: 6px 10px; font-size: 13px; }
.rdp-note-banner {
  background: var(--rdp-apricot); color: var(--rdp-apricot-text);
  border: 0; border-radius: var(--rdp-radius-sm);
  padding: 12px 14px; margin: 0 0 16px; font-size: 14px;
}
.rdp-note-banner .rdp-banner-link {
  color: var(--rdp-accent);
  text-decoration: underline;
  font-weight: 700;
}
.rdp-note-banner .rdp-download-form {
  display: flex;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  text-decoration: none;
}
@media (max-width: 1180px) {
  .rdp-setup { flex-direction: column; }
  .rdp-setup-tabs { width: 100%; }
  .rdp-setup-tabs a { min-height: 48px; }
  .rdp-panels { grid-template-columns: 1fr; }
  .rdp-bar { grid-template-columns: 1fr; }
}

.rdp-main, .rdp-content { min-width: 0; max-width: 100%; }
.rdp-content { overflow-x: hidden; }
.rdp-panels, .rdp-legend, .rdp-bar, .rdp-setup, .rdp-setup-body { min-width: 0; max-width: 100%; }
@media (max-width: 420px) {
  .rdp-banner { font-size: 10px; padding: 4px 6px; }
  .rdp-content { overflow-x: hidden; }
  .rdp-table-wrap { overflow-x: auto; }
}

/* —— UI polish (same brand tokens) —— */
.rdp-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--rdp-accent);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--rdp-radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.rdp-skip:focus { top: 12px; }

.rdp-page-head { margin: 4px 0 22px; max-width: 52rem; }
.rdp-page-head h1 {
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -0.035em;
}
.rdp-page-lead { margin: 0; color: var(--rdp-muted); font-size: 15px; line-height: 1.55; max-width: 62ch; }

.rdp-badge, .rdp-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  padding: 4px 10px;
  border-radius: 99px;
  line-height: 1.3;
  white-space: nowrap;
}
.rdp-badge-ready, .rdp-badge-ok, .rdp-status-captured, .rdp-status-approved, .rdp-status-paid, .rdp-status-accepted {
  background: var(--rdp-mint); color: var(--rdp-mint-text);
}
.rdp-badge-partial, .rdp-badge-warn, .rdp-status-enrolled, .rdp-status-pending {
  background: var(--rdp-apricot); color: var(--rdp-apricot-text);
}
.rdp-badge-stub, .rdp-badge-muted { background: var(--rdp-card-2); color: var(--rdp-muted); }
.rdp-badge-err, .rdp-status-declined, .rdp-status-failed, .rdp-status-rejected {
  background: var(--rdp-err-bg); color: var(--rdp-err);
}

.rdp-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
}
.rdp-id code,
.rdp-id .rdp-id-link {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--rdp-card-2);
  padding: 3px 8px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.rdp-id .rdp-id-link {
  color: var(--rdp-side);
  text-decoration: none;
  font-weight: 650;
  display: inline-block;
}
.rdp-id .rdp-id-link:hover { color: var(--rdp-accent); text-decoration: underline; }
.rdp-id-full code,
.rdp-id-full .rdp-id-link {
  max-width: none;
  overflow: visible;
  text-overflow: unset;
  word-break: break-all;
}
.rdp-id .rdp-icon-btn { width: 32px; min-height: 32px; font-size: 13px; }

.rdp-btn-sm, .rdp-inline .rdp-btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
  width: auto;
}

.rdp-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
}
.rdp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rdp-switch-ui {
  width: 44px;
  height: 26px;
  border-radius: 99px;
  background: var(--rdp-gold);
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px #c5d0cd;
}
.rdp-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--rdp-shadow-sm);
  transition: transform 0.16s ease;
}
.rdp-switch input:checked + .rdp-switch-ui { background: var(--rdp-side-active); box-shadow: none; }
.rdp-switch input:checked + .rdp-switch-ui::after { transform: translateX(18px); }
.rdp-switch input:focus-visible + .rdp-switch-ui { outline: 2px solid var(--rdp-accent); outline-offset: 2px; }

.rdp-proc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
  align-items: stretch;
}
.rdp-proc-card {
  background: var(--rdp-card);
  border-radius: var(--rdp-radius);
  padding: 16px 16px 14px;
  box-shadow: var(--rdp-shadow-sm);
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-self: stretch;
  gap: 8px;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  scroll-margin-top: 16px;
}
#processor-management { scroll-margin-top: 16px; }
.rdp-proc-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 3.2em;
  gap: 10px;
}
.rdp-proc-card h3 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.rdp-proc-id { margin: 0; color: var(--rdp-muted); font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.rdp-proc-card .rdp-form { max-width: none; }
.rdp-proc-card details { margin-top: 4px; }
.rdp-proc-card details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--rdp-muted);
  min-height: 36px;
  display: flex;
  align-items: center;
}
.rdp-proc-connect { margin-top: 6px; }
.rdp-proc-creds { margin: 8px 0 0; }
.rdp-proc-creds .rdp-note { font-size: 12px; line-height: 1.45; }
.rdp-proc-creds input[type="password"] {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

.rdp-create-fold {
  background: var(--rdp-card);
  border-radius: var(--rdp-radius);
  padding: 4px 16px 12px;
  margin: 0 0 20px;
  box-shadow: var(--rdp-shadow-sm);
}
.rdp-create-fold > summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  min-height: 48px;
  display: flex;
  align-items: center;
  list-style: none;
}
.rdp-create-fold > summary::-webkit-details-marker { display: none; }
.rdp-create-fold > summary::after {
  content: "New";
  margin-left: auto;
  font-size: 12px;
  font-weight: 650;
  color: #ffffff;
  background: var(--rdp-accent);
  padding: 4px 10px;
  border-radius: 99px;
}
.rdp-create-fold[open] > summary::after { content: "Close"; background: var(--rdp-side); }

.rdp-upload-card {
  background: var(--rdp-card);
  border-radius: var(--rdp-radius);
  padding: 18px 16px;
  margin: 12px 0 18px;
  box-shadow: var(--rdp-shadow-sm), inset 0 0 0 1px var(--rdp-line);
}
.rdp-upload-card label { margin-bottom: 10px; }

.rdp-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 960px;
}
.rdp-profile-grid section h2 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.rdp-profile-dl { display: grid; gap: 10px; margin: 0; }
.rdp-profile-dl dt { color: var(--rdp-muted); font-size: 12px; font-weight: 600; }
.rdp-profile-dl dd { margin: 0; font-weight: 550; }

.rdp-pay-amount { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.rdp-pay-trust {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--rdp-mint);
  color: var(--rdp-mint-text);
  border-radius: var(--rdp-radius-sm);
  font-size: 13px;
}
.rdp-pay-trust p { margin: 0; }

.rdp-filters.rdp-is-loading button[type=submit] { opacity: 0.7; pointer-events: none; }
.rdp-filters.rdp-is-loading button[type=submit]::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid #ffffff;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rdp-spin 0.6s linear infinite;
}
@keyframes rdp-spin { to { transform: rotate(360deg); } }

.rdp-skel {
  display: block;
  height: 12px;
  background: linear-gradient(90deg, var(--rdp-card-2), #ffffff, var(--rdp-card-2));
  background-size: 200% 100%;
  animation: rdp-shimmer 1.2s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes rdp-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.rdp-status-hero.complete { box-shadow: var(--rdp-shadow-sm), inset 0 0 0 2px var(--rdp-side-active); }
.rdp-status-hero.review { box-shadow: var(--rdp-shadow-sm), inset 0 0 0 2px var(--rdp-gold); }
.rdp-status-hero.restricted { box-shadow: var(--rdp-shadow-sm), inset 0 0 0 2px var(--rdp-accent); }

.rdp-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}
.rdp-steps li {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--rdp-card);
  color: var(--rdp-muted);
  box-shadow: var(--rdp-shadow-sm);
}
.rdp-steps li.active { background: var(--rdp-accent-soft); color: var(--rdp-accent); font-weight: 650; }
.rdp-steps li.done { background: var(--rdp-mint); color: var(--rdp-mint-text); }

.rdp-kyc-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rdp-kyc-banner p { margin: 0; flex: 1 1 220px; }

.rdp-nav a:focus-visible { outline-color: #ffffff; }

@media (max-width: 1180px) {
  .rdp-content { padding: 16px 14px 48px; }
  .rdp-page-head h1 { font-size: 22px; }
  .rdp-proc-grid { grid-template-columns: 1fr; }
}

.rdp-banner-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0 0 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--rdp-side-text);
  border: 1px solid rgba(167, 214, 192, 0.5);
  border-radius: 10px;
  white-space: normal;
  max-width: 100%;
  overflow: visible;
  text-transform: none;
  letter-spacing: 0;
}
.rdp-banner-side strong {
  color: var(--rdp-side-active);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rdp-banner-side span { color: var(--rdp-side-muted); font-size: 12px; font-weight: 500; }

.rdp-dash { max-width: none; }
.rdp-dash .rdp-page-head { margin-bottom: 10px; }
.rdp-dash-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rdp-filters-compact {
  padding: 8px 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
}
.rdp-actions-quiet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.rdp-text-link {
  background: none;
  color: var(--rdp-side);
  font-weight: 600;
  min-height: auto;
  padding: 0;
  margin: 0;
  width: auto;
  box-shadow: none;
  text-decoration: none;
  display: inline;
}
.rdp-text-link:hover { background: none; color: var(--rdp-accent); text-decoration: underline; }
.rdp-metrics { grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; }
.rdp-metric { padding: 10px 12px; }
.rdp-metric-sub:empty { display: none; }
.rdp-metric-primary { background: var(--rdp-card); box-shadow: var(--rdp-shadow); }
.rdp-metric-primary .rdp-metric-val { font-size: 30px; }

.rdp-toolbar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.rdp-link-btn {
  background: none;
  color: var(--rdp-muted);
  border: 0;
  box-shadow: none;
  min-height: 32px;
  padding: 4px 0;
  margin: 0;
  width: auto;
  font-size: 13px;
  font-weight: 600;
}
.rdp-link-btn:hover { background: none; color: var(--rdp-text); text-decoration: underline; }
.rdp-more summary {
  cursor: pointer;
  color: var(--rdp-muted);
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.rdp-more summary::-webkit-details-marker { display: none; }
.rdp-more[open] summary { color: var(--rdp-text); }
.rdp-th-sort { cursor: pointer; user-select: none; }
.rdp-th-sort:hover { color: var(--rdp-accent); }
.rdp-th-sort[data-sort="asc"]::after { content: " ▲"; font-size: 10px; margin-left: 4px; }
.rdp-th-sort[data-sort="desc"]::after { content: " ▼"; font-size: 10px; margin-left: 4px; }
.rdp-grid-table th, .rdp-grid-table td { padding: 10px 12px; }
.rdp-grid-table tbody tr:nth-child(even) td { background: #faf7f4; }
.rdp-grid-table tbody tr:hover td { background: #f3faf6; }

.rdp-modal { max-width: min(520px, calc(100vw - 32px)); width: min(520px, calc(100vw - 32px)); }
.rdp-modal .rdp-form { max-width: none; }
.rdp-dl-box {
  background: var(--rdp-card);
  border-radius: var(--rdp-radius);
  padding: 14px 16px;
  margin: 12px 0;
  box-shadow: var(--rdp-shadow-sm);
}
.rdp-dl-box .rdp-btn { width: auto; }
.rdp-profile-save { max-width: none; }
.rdp-profile-save .rdp-row-btns { margin-top: 8px; }
.rdp-row-btns > button,
.rdp-row-btns > .rdp-btn { width: auto; margin-top: 0; }
.rdp-proc-card.is-current { box-shadow: var(--rdp-shadow-sm), inset 0 0 0 2px var(--rdp-side-active); }
.rdp-proc-card.is-off { opacity: 0.7; }
.rdp-proc-manage { margin-top: 8px; }
.rdp-proc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.rdp-proc-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  color: var(--rdp-text);
  border-radius: var(--rdp-radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px var(--rdp-line);
}
.rdp-proc-step-n {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rdp-mint);
  color: var(--rdp-mint-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.rdp-proc-hint { margin: 0; font-size: 13px; color: var(--rdp-muted); }
.rdp-proc-card {
  box-shadow: inset 0 0 0 1px var(--rdp-line), var(--rdp-shadow-sm);
}
.rdp-proc-card .rdp-badge,
.rdp-proc-card form { align-self: flex-start; }
.rdp-proc-body { min-height: 0; }
.rdp-proc-actions {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 4px;
}
.rdp-proc-card:has(.rdp-proc-use) .rdp-proc-actions {
  display: grid;
  grid-template-rows: 36px auto;
  align-items: start;
  justify-items: start;
  margin-top: 0;
}
.rdp-proc-use {
  min-height: 36px;
  display: flex;
  align-items: center;
}
.rdp-proc-use > p { margin: 0; }
.rdp-proc-connect-slot { min-height: 36px; width: 100%; }
.rdp-proc-actions > p { margin: 0; min-height: 36px; display: flex; align-items: center; }
.rdp-proc-actions .rdp-btn,
.rdp-proc-actions button[type="submit"] { width: auto; min-width: 11.5rem; margin-top: 0; }
.rdp-proc-search { display: block; margin: 0 0 14px; max-width: 420px; }
.rdp-proc-search input[type="search"] {
  width: 100%;
  min-height: 48px;
  margin-top: 0;
}
.rdp-proc-empty { margin: 8px 0 16px; color: var(--rdp-muted); font-size: 14px; }
.rdp-proc-card[hidden] { display: none !important; }
.rdp-proc-connect summary {
  color: var(--rdp-side);
}
.rdp-acq-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.rdp-acq-toggle .rdp-switch { margin: 0; }
.rdp-acq-back { margin: 0 0 8px; }
.rdp-acq-detail {
  max-width: 720px;
}
.rdp-acq-detail .rdp-form { max-width: none; }
.rdp-acq-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.rdp-acq-meta .rdp-proc-id { margin: 0 0 6px; }
.rdp-acq-section {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rdp-line);
}
.rdp-acq-section-first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.rdp-acq-section h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--rdp-side);
}
.rdp-acq-form .rdp-row-btns { margin-top: 18px; }
@media (max-width: 1180px) {
  .rdp-acq-detail { max-width: none; }
  .rdp-acq-toggle { flex-wrap: wrap; min-height: 48px; }
  .rdp-acq-form .rdp-row-btns { flex-wrap: wrap; }
  .rdp-tz-opt, .rdp-find-opt, .rdp-tz-search { min-height: 44px; }
}
.rdp-btn, button[type="submit"] {
  transition: transform 120ms ease, filter 120ms ease;
}
.rdp-btn:hover, button[type="submit"]:hover {
  filter: brightness(1.04);
}
.rdp-empty { animation: rdp-fade 280ms ease; }
@keyframes rdp-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.rdp-onboard { padding: 8px 16px 80px; }
.rdp-onboard h1 { font-size: 26px; margin: 0 0 6px; }
.rdp-status-hero { padding: 18px 16px; }
.rdp-kyc-banner { padding: 12px 14px; margin-bottom: 12px; }
.rdp-kyc-banner p { margin: 0; }

@media (max-width: 1100px) {
  .rdp-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rdp-metric-primary { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .rdp-dash-tools { flex-direction: column; align-items: stretch; }
  .rdp-metrics { grid-template-columns: 1fr 1fr; }
  .rdp-metric-primary { grid-column: 1 / -1; }
  .rdp-proc-steps { grid-template-columns: 1fr; }
  .rdp-auth { padding: 28px 22px 22px; }
}

/* —— Ledger desk (Mr Ivory original product chrome) —— */
.rdp-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rdp-side);
}
.rdp-page-head .rdp-kicker { color: var(--rdp-side); }
.rdp-content {
  background:
    linear-gradient(180deg, rgba(33, 67, 68, 0.045) 0%, transparent 140px);
}
.rdp-side-brand {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(167, 214, 192, 0.35);
}
.rdp-side-merch {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  background: rgba(167, 214, 192, 0.14);
  color: var(--rdp-side-active);
  border-radius: 99px;
  font-size: 12px;
}
.rdp-banner-side {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(167, 214, 192, 0.45);
}
.rdp-auth {
  position: relative;
  overflow: hidden;
  padding-left: 36px;
}
.rdp-auth::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--rdp-side);
}
.rdp-metric-primary {
  box-shadow: inset 4px 0 0 var(--rdp-side), var(--rdp-shadow);
}
.rdp-grid-table th {
  background: #eef4f3;
  color: var(--rdp-side);
}
.rdp-ledger {
  background: var(--rdp-card);
  border-radius: var(--rdp-radius);
  box-shadow: var(--rdp-shadow-sm);
  overflow: hidden;
  margin: 0 0 8px;
}
.rdp-ledger .rdp-table-wrap {
  box-shadow: none;
  border-radius: 0;
}
.rdp-ledger .rdp-col-picker,
.rdp-ledger .rdp-dt-toolbar {
  padding: 10px 14px 0;
  margin-bottom: 0;
}
.rdp-ledger .rdp-pager {
  padding: 4px 14px 12px;
  margin: 0;
}
.rdp-filters.rdp-desk-filter {
  box-shadow: none;
  border: 1px solid var(--rdp-line);
  margin-bottom: 0;
  border-radius: var(--rdp-radius) var(--rdp-radius) 0 0;
  background: #eef4f3;
}
.rdp-filters.rdp-desk-filter + .rdp-ledger,
.rdp-filters.rdp-desk-filter + .rdp-note + .rdp-ledger {
  border-radius: 0 0 var(--rdp-radius) var(--rdp-radius);
  box-shadow: var(--rdp-shadow-sm);
}
.rdp-filters + .rdp-dt-toolbar {
  background: var(--rdp-card);
  padding: 12px 16px 0;
  margin-bottom: 0;
  border-left: 1px solid var(--rdp-line);
  border-right: 1px solid var(--rdp-line);
}
.rdp-filters + .rdp-dt-toolbar + .rdp-ledger {
  border-radius: 0 0 var(--rdp-radius) var(--rdp-radius);
}
.rdp-empty {
  padding: 48px 20px;
}
.rdp-empty strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.rdp-onboard-top {
  background: var(--rdp-side);
  color: var(--rdp-side-text);
  border-bottom: 0;
}
.rdp-onboard-top .rdp-lockup,
.rdp-onboard-brand { color: var(--rdp-side-text); }
.rdp-onboard-top .rdp-mark { background: #ffffff; border-radius: 8px; }
.rdp-onboard-top .rdp-banner {
  background: rgba(167, 214, 192, 0.16);
  color: var(--rdp-side-active);
  border-color: rgba(167, 214, 192, 0.55);
}
.rdp-onboard-later {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.rdp-onboard-later:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.rdp-status-hero {
  position: relative;
  padding-left: 28px;
}
.rdp-status-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--rdp-side);
  border-radius: var(--rdp-radius) 0 0 var(--rdp-radius);
}
.rdp-status-hero.complete::before { background: var(--rdp-side-active); }
.rdp-status-hero.restricted::before { background: var(--rdp-accent); }
.rdp-status-hero.review::before { background: var(--rdp-gold); }
.rdp-kyc-banner {
  box-shadow: inset 4px 0 0 var(--rdp-accent), var(--rdp-shadow-sm);
}
.rdp-kyc-banner .rdp-kicker { margin-bottom: 4px; color: var(--rdp-accent); }
.rdp-steps {
  gap: 8px;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--rdp-line);
  margin-bottom: 20px;
}
.rdp-steps li {
  box-shadow: inset 0 0 0 1px var(--rdp-line);
}
.rdp-steps li.active {
  background: var(--rdp-side);
  color: #ffffff;
  box-shadow: none;
}
.rdp-steps li.done {
  box-shadow: none;
}
.rdp-modal {
  padding: 0 0 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.rdp-modal h2 {
  background: var(--rdp-side);
  color: #ffffff;
  margin: 0 0 16px;
  padding: 16px 22px;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
  border-radius: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}
.rdp-modal > *:not(h2) {
  margin-left: max(22px, env(safe-area-inset-left, 0px));
  margin-right: max(22px, env(safe-area-inset-right, 0px));
}
.rdp-modal#rdp-confirm {
  padding: 22px 20px;
  padding-bottom: max(22px, env(safe-area-inset-bottom, 0px));
}
.rdp-modal#rdp-confirm > * {
  margin-left: 0;
  margin-right: 0;
}
/* iPad / phone: near-full-screen sheet so Create/Edit plan is fully reachable */
@media (max-width: 1180px) {
  .rdp-modal {
    width: min(560px, calc(100vw - 16px));
    max-width: min(560px, calc(100vw - 16px));
  }
}
@media (max-width: 820px) {
  .rdp-modal {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: 92vh;
    max-height: min(92vh, calc(100dvh - 16px));
  }
}
.rdp-bar i {
  background: linear-gradient(90deg, var(--rdp-side) 0%, var(--rdp-side-active) 100%);
  height: 12px;
}
.rdp-legend div:first-child {
  font-weight: 700;
  color: var(--rdp-side);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom-color: var(--rdp-side);
}
.rdp-flash {
  box-shadow: inset 4px 0 0 currentColor;
}
.rdp-sub-hero p { margin: 0 0 8px; }
.rdp-toolbar .rdp-btn { min-width: 140px; }
.rdp-who a[href="/docs"] {
  background: var(--rdp-side);
  color: #ffffff;
  box-shadow: none;
}
.rdp-who a[href="/docs"]:hover { filter: brightness(1.06); }
.rdp-who a[href="/pgui/jsp/logout"] { color: var(--rdp-side); }
.rdp-click-row { cursor: pointer; }
.rdp-click-row:focus-visible { outline: 2px solid var(--rdp-side-active); outline-offset: -2px; }
.rdp-sale-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.rdp-txn-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: var(--rdp-card);
  border-radius: var(--rdp-radius);
  padding: 22px 22px 18px;
  box-shadow: inset 4px 0 0 var(--rdp-side), var(--rdp-shadow);
  margin: 0 0 16px;
}
.rdp-txn-hero-id { margin: 0 0 6px; font-size: 18px; }
.rdp-txn-hero-sub { margin: 0; color: var(--rdp-muted); font-size: 14px; }
.rdp-txn-hero-right { text-align: right; }
.rdp-txn-hero-amt {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--rdp-side);
  margin-bottom: 6px;
}
.rdp-txn-hero-note { margin: 8px 0 0; font-size: 13px; color: var(--rdp-muted); }
.rdp-txn-actions { margin: 0 0 16px; }
.rdp-txn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rdp-txn-panel {
  background: var(--rdp-card);
  border-radius: var(--rdp-radius);
  padding: 18px 18px 14px;
  box-shadow: inset 0 0 0 1px var(--rdp-line), var(--rdp-shadow-sm);
}
.rdp-txn-panel h2 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rdp-side);
}
.rdp-txn-dl {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 8px 16px;
  margin: 0;
}
.rdp-txn-dl dt { color: var(--rdp-muted); font-size: 13px; }
.rdp-txn-dl dd { margin: 0; font-weight: 550; word-break: break-word; }

.rdp-ok { color: var(--rdp-side); font-weight: 600; }
.rdp-callout {
  padding: 14px 16px;
  border-radius: 10px;
  margin: 0 0 18px;
  border: 1px solid rgba(33, 67, 68, 0.16);
  background: #fff;
  line-height: 1.45;
}
.rdp-callout-warn {
  background: #fff8f1;
  border-color: rgba(255, 78, 47, 0.28);
}
.rdp-remit-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.rdp-remit-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(33, 67, 68, 0.1);
  color: var(--rdp-muted);
  font-size: 13px;
}
.rdp-remit-steps li.is-current {
  border-color: var(--rdp-side);
  color: var(--rdp-ink);
  box-shadow: inset 0 0 0 1px var(--rdp-side);
}
.rdp-remit-steps li.is-done { color: var(--rdp-side); }
.rdp-remit-step-n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rdp-side);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.rdp-remit-rails {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 18px;
}
.rdp-remit-rail {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(33, 67, 68, 0.14);
  background: #fff;
  cursor: pointer;
}
.rdp-remit-rail input { position: absolute; opacity: 0; pointer-events: none; }
.rdp-remit-rail-k {
  display: block;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.rdp-remit-rail span:last-child { color: var(--rdp-muted); font-size: 13px; line-height: 1.4; }
.rdp-remit-rail:has(input:checked),
.rdp-remit-rail.is-on {
  border-color: var(--rdp-side);
  box-shadow: inset 0 0 0 1px var(--rdp-side);
}
.rdp-remit-form:has([name=instrument][value=wallet]:checked) .rdp-remit-bank,
.rdp-remit-form.is-wallet .rdp-remit-bank { display: none; }
.rdp-remit-form:has([name=instrument][value=bank]:checked) .rdp-remit-wallet,
.rdp-remit-form.is-bank .rdp-remit-wallet { display: none; }
.rdp-remit-form { max-width: 860px; }
.rdp-remit-quote,
.rdp-remit-status,
.rdp-remit-creds,
.rdp-remit-recent {
  margin-bottom: 18px;
}
.rdp-remit-quote header,
.rdp-remit-status header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rdp-remit-quote h2,
.rdp-remit-status h2,
.rdp-remit-creds h2,
.rdp-remit-recent h2 { margin: 0 0 10px; font-size: 18px; }

.rdp-bank-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.rdp-bank-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(33, 67, 68, 0.14);
  font-size: 12px;
  font-weight: 650;
  color: var(--rdp-side);
}
.rdp-bank-chip.is-soon { color: var(--rdp-muted); font-weight: 550; }
.rdp-bank-chip-soon {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rdp-accent, #ff4e2f);
}
.rdp-bank-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.rdp-bank-steps li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(33, 67, 68, 0.1);
  color: var(--rdp-muted);
  font-size: 13px;
  text-decoration: none;
  min-height: 44px;
}
.rdp-bank-steps li.is-current a {
  border-color: var(--rdp-side);
  color: var(--rdp-ink);
  box-shadow: inset 0 0 0 1px var(--rdp-side);
}
.rdp-bank-steps li.is-done a { color: var(--rdp-side); }
.rdp-bank-step-n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rdp-side);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}
.rdp-bank-form,
.rdp-bank-recent,
.rdp-bank-events-card,
.rdp-bank-return {
  margin-bottom: 18px;
  max-width: 860px;
}
.rdp-bank-form h2,
.rdp-bank-recent h2,
.rdp-bank-events-card h2 { margin: 0 0 10px; font-size: 18px; }
.rdp-bank-events { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rdp-bank-events li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rdp-bank-event-type { font-size: 13px; color: var(--rdp-muted); }
.rdp-bank-funding { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }

.rdp-einv-manage { margin-top: 8px; }
.rdp-einv-manage h2 { margin-top: 0; }
.rdp-einv-creds input[type="password"],
.rdp-einv-card input[type="password"] {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}
.rdp-einv-seller { margin-top: 14px; }
.rdp-einv-seller > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  min-height: 40px;
  display: flex;
  align-items: center;
  color: var(--rdp-side);
}
.rdp-einv-panel,
.rdp-einv-card {
  background: var(--rdp-card);
  border-radius: var(--rdp-radius);
  padding: 18px 16px 16px;
  box-shadow: var(--rdp-shadow-sm);
  margin: 18px 0;
}
.rdp-einv-panel header,
.rdp-einv-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.rdp-einv-panel h3,
.rdp-einv-card h3 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
.rdp-einv-panel-off { box-shadow: var(--rdp-shadow-sm), inset 0 0 0 1px rgba(33, 67, 68, 0.12); }
.rdp-einv-submit { margin: 12px 0 4px; font-weight: 650; }
.rdp-einv-tracks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rdp-einv-errors { margin: 8px 0 0; padding-left: 18px; color: var(--rdp-err, #9b1c1c); }
.rdp-einv-err { margin: 4px 0 0; color: var(--rdp-err, #9b1c1c); font-size: 12px; max-width: 28ch; }
.rdp-einv-card { margin: 0; }
@media (max-width: 1180px) {
  .rdp-auth { padding-left: 28px; }
  .rdp-ledger .rdp-col-picker,
  .rdp-ledger .rdp-dt-toolbar { padding-left: 12px; padding-right: 12px; }
  .rdp-txn-grid { grid-template-columns: 1fr; }
  .rdp-txn-hero { flex-direction: column; }
  .rdp-txn-hero-right { text-align: left; }
  .rdp-remit-rails,
  .rdp-remit-steps,
  .rdp-bank-steps,
  .rdp-bank-funding { grid-template-columns: 1fr; }
}

.rdp-switch.is-disabled { opacity: 0.55; cursor: not-allowed; }
.rdp-switch.is-disabled input { cursor: not-allowed; }
.rdp-method-manage { margin-top: 8px; }
.rdp-method-list { display: grid; gap: 12px; margin: 16px 0; }
.rdp-method-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--rdp-radius);
  box-shadow: inset 0 0 0 1px var(--rdp-line), var(--rdp-shadow-sm);
  background: var(--rdp-card);
}
.rdp-method-row .rdp-switch { grid-column: 1; }
.rdp-method-row .rdp-badge { justify-self: end; }
.rdp-method-meta {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: var(--rdp-muted);
  line-height: 1.45;
}
.rdp-method-row.is-wired { box-shadow: inset 0 0 0 2px var(--rdp-side-active), var(--rdp-shadow-sm); }
.rdp-pay-methods { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.rdp-pay-method {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px var(--rdp-line);
}
.rdp-pay-method.is-on { background: var(--rdp-side-active); color: #fff; box-shadow: none; }

.rdp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rdp-support {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  font-family: var(--rdp-font);
}
.rdp-support-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--rdp-side);
  color: #fff;
  font: 650 14px/1 var(--rdp-font);
  box-shadow: 0 12px 28px rgba(33, 67, 68, 0.28);
  cursor: pointer;
}
.rdp-support-bubble:hover { background: #1a3536; }
.rdp-support-bubble:focus-visible {
  outline: 3px solid var(--rdp-accent);
  outline-offset: 3px;
}
.rdp-support-bubble-icon { display: inline-flex; }
.rdp-support-unread {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rdp-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rdp-support-unread[hidden],
.rdp-support[data-open="1"] .rdp-support-unread { display: none !important; }
.rdp-support-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: min(380px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  background: var(--rdp-card);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(33, 67, 68, 0.22);
  overflow: hidden;
}
.rdp-support-panel[hidden] { display: none; }
.rdp-support-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  background: var(--rdp-side);
  color: #fff;
}
.rdp-support-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rdp-side-muted);
}
.rdp-support-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.rdp-support-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--rdp-side-active);
}
.rdp-support-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.rdp-support-close:hover { background: rgba(255,255,255,0.1); }
.rdp-support-close:focus-visible { outline: 2px solid var(--rdp-accent); outline-offset: 2px; }
.rdp-support-msgs {
  flex: 1;
  overflow: auto;
  padding: 14px 14px 8px;
  background: var(--rdp-bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rdp-support-empty {
  margin: auto;
  max-width: 28ch;
  text-align: center;
  color: var(--rdp-muted);
  font-size: 14px;
}
.rdp-support-empty p { margin: 0 0 8px; }
.rdp-support-msg {
  max-width: 86%;
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: var(--rdp-shadow-sm);
}
.rdp-support-msg.is-mine {
  align-self: flex-end;
  background: var(--rdp-side);
  color: #fff;
}
.rdp-support-msg.is-theirs {
  align-self: flex-start;
  background: #fff;
  color: var(--rdp-text);
}
.rdp-support-from {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 650;
  opacity: 0.75;
}
.rdp-support-text { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.rdp-support-hint {
  margin: 0;
  padding: 6px 14px 0;
  font-size: 11px;
  color: var(--rdp-quiet);
  background: var(--rdp-card);
}
.rdp-support-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  padding: 10px 12px 12px;
  background: var(--rdp-card);
}
.rdp-support-form textarea {
  width: 100%;
  min-height: 44px;
  max-height: 96px;
  resize: none;
  border: 1px solid var(--rdp-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: 14px/1.4 var(--rdp-font);
  background: var(--rdp-bg);
  color: var(--rdp-text);
}
.rdp-support-form textarea:focus-visible {
  outline: 2px solid var(--rdp-side);
  outline-offset: 1px;
}
.rdp-support-send {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--rdp-accent);
  color: #fff;
  font: 650 14px/1 var(--rdp-font);
  cursor: pointer;
}
.rdp-support-send:hover { background: var(--rdp-accent-deep); }
.rdp-support-send:focus-visible { outline: 3px solid var(--rdp-side); outline-offset: 2px; }
@media (max-width: 520px) {
  .rdp-support { right: 12px; bottom: 12px; }
  .rdp-support-panel { width: calc(100vw - 24px); height: min(70vh, 520px); }
}

.rdp-main,
.rdp-side,
.rdp-support-msgs {
  scrollbar-width: auto;
  scrollbar-color: #214344 #e8dfd8;
}
.rdp-main::-webkit-scrollbar,
.rdp-side::-webkit-scrollbar,
.rdp-support-msgs::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}
.rdp-main::-webkit-scrollbar-track,
.rdp-side::-webkit-scrollbar-track,
.rdp-support-msgs::-webkit-scrollbar-track {
  background: #e8dfd8;
}
.rdp-side::-webkit-scrollbar-track {
  background: #1a3536;
}
.rdp-main::-webkit-scrollbar-thumb,
.rdp-side::-webkit-scrollbar-thumb,
.rdp-support-msgs::-webkit-scrollbar-thumb {
  background: #214344;
  border-radius: 8px;
  border: 3px solid #e8dfd8;
}
.rdp-side::-webkit-scrollbar-thumb {
  background: #a7d6c0;
  border-color: #1a3536;
}
.rdp-main::-webkit-scrollbar-thumb:hover,
.rdp-support-msgs::-webkit-scrollbar-thumb:hover {
  background: #1a3536;
}

.rdp-rate-schemes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}
.rdp-rate-scheme {
  margin: 0;
  padding: 16px 16px 12px;
  border-radius: var(--rdp-radius-sm);
  box-shadow: inset 0 0 0 1px var(--rdp-line);
  background: var(--rdp-card);
  min-width: 0;
}
.rdp-rate-scheme h3,
.rdp-rate-scheme h4 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.rdp-rate-scheme-head { margin: 0 0 10px; }
.rdp-rate-scheme-meta {
  margin: 0;
  color: var(--rdp-muted);
  font-size: 12px;
  font-weight: 600;
}
.rdp-rate-card .rdp-form-row { margin: 0; }
.rdp-rate-profile h2,
.rdp-rate-card h3 { color: var(--rdp-text); }
.rdp-rate-paytype { margin: 18px 0; }
.rdp-rate-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px 12px;
  min-width: 0;
}
.rdp-rate-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  margin: 0;
  white-space: normal;
}
.rdp-rate-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rdp-muted);
  white-space: normal;
  overflow-wrap: anywhere;
}
.rdp-rate-field-fixed .rdp-rate-field-label,
.rdp-rate-field-pct .rdp-rate-field-label { letter-spacing: 0.01em; }
.rdp-rate-field input[type="number"],
.rdp-rate-grid input[type="number"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  min-height: 44px;
  padding: 8px 10px;
}
.rdp-rate-intl {
  margin: 12px 0 0;
  min-height: 40px;
  white-space: normal;
}
.rdp-rate-form,
.rdp-rate-form.rdp-form,
form.rdp-form:has(.rdp-rate-card) {
  max-width: none;
}
.rdp-rate-products,
.rdp-rate-merchant-fees {
  margin: 12px 0 18px;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}
.rdp-rate-products-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}
.rdp-rate-products-table th,
.rdp-rate-products-table td {
  padding: 10px 12px;
  text-align: start;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  border-bottom: 1px solid var(--rdp-line);
}
.rdp-rate-products-table thead th {
  color: var(--rdp-side);
  background: #eef4f3;
  font-size: 12px;
  font-weight: 700;
}
.rdp-rate-products-table .rdp-rate-prod-name {
  width: 34%;
  font-weight: 650;
  color: var(--rdp-text);
}
.rdp-rate-products-table .rdp-rate-field {
  margin: 0;
  min-width: 0;
}
.rdp-rate-products-table input[type="number"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.rdp-rate-card .rdp-grid-table th,
.rdp-rate-card .rdp-grid-table td {
  white-space: normal;
}
@media (max-width: 720px) {
  .rdp-rate-products-table,
  .rdp-rate-products-table thead,
  .rdp-rate-products-table tbody,
  .rdp-rate-products-table tr,
  .rdp-rate-products-table th,
  .rdp-rate-products-table td {
    display: block;
    width: 100%;
  }
  .rdp-rate-products-table thead { display: none; }
  .rdp-rate-products-table tr {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: var(--rdp-radius-sm);
    box-shadow: inset 0 0 0 1px var(--rdp-line);
    background: var(--rdp-card);
  }
  .rdp-rate-products-table th,
  .rdp-rate-products-table td {
    border: 0;
    padding: 6px 0;
  }
  .rdp-rate-products-table .rdp-rate-prod-name { width: auto; }
}
.rdp-rate-grid-wrap { overflow-x: auto; }
.rdp-rate-card .rdp-table-wrap { max-width: 100%; }
.rdp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rdp-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  max-width: none;
}
.rdp-lang-label { margin: 0; font-weight: 600; }
.rdp-lang select {
  width: auto;
  min-width: 7.5rem;
  max-width: 11rem;
  margin-top: 0;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 99px;
  background: #eef4f3;
  color: var(--rdp-side);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}
.rdp-lang select:focus {
  box-shadow: inset 0 0 0 2px var(--rdp-accent), 0 0 0 4px var(--rdp-accent-soft);
}
.rdp-auth .rdp-lang { margin: 0 0 14px; }
.rdp-who { flex-wrap: wrap; margin-inline-start: auto; }
html[lang="ar"] body {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", Arial, var(--rdp-font);
}
html[dir="rtl"] .rdp-app {
  grid-template-columns: minmax(0, 1fr) 260px;
}
html[dir="rtl"] .rdp-side { grid-column: 2; }
html[dir="rtl"] .rdp-main,
html[dir="rtl"] .rdp-main-top { grid-column: 1; }
html[dir="rtl"] .rdp-nav-drop > a { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .rdp-setup-tabs a {
  border-left: 0;
  border-right: 3px solid transparent;
  border-radius: 8px 0 0 8px;
}
html[dir="rtl"] .rdp-setup-tabs a.active { border-right-color: var(--rdp-accent); }
html[dir="rtl"] .rdp-auth { padding-left: 28px; padding-right: 36px; }
html[dir="rtl"] .rdp-auth::before { left: auto; right: 0; }
html[dir="rtl"] .rdp-metric-primary { box-shadow: inset -4px 0 0 var(--rdp-side), var(--rdp-shadow); }
@media (max-width: 1180px) {
  html[dir="rtl"] .rdp-app { grid-template-columns: none; }
  html[dir="rtl"] .rdp-side,
  html[dir="rtl"] .rdp-main,
  html[dir="rtl"] .rdp-main-top { grid-column: auto; }
  html[dir="rtl"] .rdp-side {
    left: auto;
    right: 0;
    transform: translateX(105%);
    padding-left: 16px;
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  html[dir="rtl"] .rdp-side.open { transform: translateX(0); }
}

.rdp-tz { position: relative; margin: 0; }
.rdp-tz-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 4px 4px 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--rdp-side);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.rdp-tz-summary::-webkit-details-marker { display: none; }
.rdp-tz[open] .rdp-tz-summary { background: #eef4f3; }
.rdp-tz-label { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdp-tz-clock { display: inline-flex; color: var(--rdp-side); }
.rdp-tz-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 4px);
  z-index: 60;
  width: min(260px, 86vw);
  background: #fff;
  border: 1px solid var(--rdp-line, #e8dfd8);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(33, 67, 68, 0.16);
  padding: 0;
  overflow: hidden;
}
.rdp-tz-search-lab { display: block; margin: 0; border-bottom: 1px solid var(--rdp-line, #e8dfd8); }
.rdp-tz-search {
  width: 100%;
  min-height: 36px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
}
.rdp-tz-search:focus { outline: none; box-shadow: inset 0 0 0 2px var(--rdp-accent, #ff4e2f); }
.rdp-tz-list {
  max-height: 220px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.rdp-tz-opt {
  width: 100%;
  text-align: start;
  background: #fff;
  color: var(--rdp-side);
  border: 0;
  border-radius: 0;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  min-height: 34px;
}
.rdp-tz-opt:hover { background: #fdf4ef; }
.rdp-tz-opt[aria-current="true"] {
  background: #214344;
  color: #fff;
}
.rdp-dash-tools .rdp-filters-compact { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.rdp-dash-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 10px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  max-width: none;
}
.rdp-dash-dates, .rdp-dash-picks {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.rdp-dash-dates label, .rdp-dash-picks label { margin: 0; }
.rdp-dash-dates input[type="date"] { margin-top: 0; min-width: 9.5rem; }
.rdp-find { position: relative; margin: 0; min-width: 14rem; }
.rdp-find-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  min-width: 14rem;
  max-width: 20rem;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--rdp-side);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--rdp-line, #e8dfd8);
}
.rdp-find-summary::-webkit-details-marker { display: none; }
.rdp-find-summary::after { content: "▾"; color: var(--rdp-muted); font-size: 11px; }
.rdp-find-drop[open] .rdp-find-summary { box-shadow: inset 0 0 0 2px var(--rdp-side); }
.rdp-find-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 4px);
  z-index: 50;
  width: min(280px, 86vw);
  background: #fff;
  border: 1px solid var(--rdp-line, #e8dfd8);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(33, 67, 68, 0.16);
  overflow: hidden;
}
.rdp-find-search-lab { display: block; margin: 0; border-bottom: 1px solid var(--rdp-line, #e8dfd8); }
.rdp-find-q {
  width: 100%;
  min-height: 36px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  padding: 8px 12px;
  font-size: 13px;
}
.rdp-find-q:focus { outline: none; box-shadow: inset 0 0 0 2px var(--rdp-accent, #ff4e2f); }
.rdp-find-list { max-height: 220px; overflow: auto; display: flex; flex-direction: column; }
.rdp-find-opt {
  width: 100%;
  text-align: start;
  background: #fff;
  color: var(--rdp-side);
  border: 0;
  border-radius: 0;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  min-height: 34px;
}
.rdp-find-opt:hover { background: #fdf4ef; }
.rdp-find-opt[aria-current="true"] { background: #214344; color: #fff; }
@media (max-width: 1180px) {
  .rdp-dash-filters { flex-direction: column; align-items: stretch; }
  .rdp-dash-picks, .rdp-find, .rdp-find-summary { width: 100%; max-width: none; }
}

/* Hosted checkout / Completing payment / response — all viewports */
.rdp-pay-page {
  width: 100%;
}
.rdp-pay-amount {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--rdp-side);
}
.rdp-wait-dots {
  display: flex;
  gap: 0.35rem;
  margin: 1.1rem 0 1.4rem;
  align-items: center;
}
.rdp-wait-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--rdp-side);
  opacity: 0.25;
  animation: rdp-wait-pulse 1s ease-in-out infinite;
}
.rdp-wait-dot:nth-child(2) { animation-delay: 0.15s; }
.rdp-wait-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes rdp-wait-pulse {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}
.rdp-pay-cta,
.rdp-pay-page button[type="submit"],
.rdp-pay-page .rdp-btn {
  width: 100%;
}
.rdp-pay-result {
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.rdp-pay-result .rdp-table {
  min-width: 100%;
}
.rdp-pay-result .rdp-table th {
  padding-right: 16px;
}

/* Phone (≤768): iPhone Safari + Android Chrome. Tablet drawer stays at ≤1180. */
@media (max-width: 768px) {
  .rdp-main-top {
    align-items: center;
    row-gap: 10px;
  }
  .rdp-main-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rdp-who {
    flex: 1 1 100%;
    width: 100%;
    margin-inline-start: 0;
    justify-content: flex-start;
    gap: 8px;
  }
  .rdp-who a,
  .rdp-lang select,
  .rdp-tz-summary {
    min-height: 44px;
  }
  .rdp-tz-label { display: none; }
  .rdp-lang select {
    min-width: 0;
    max-width: 9rem;
    width: auto;
  }
  .rdp-content {
    padding: 10px 12px calc(88px + env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .rdp-page-head { max-width: none; }
  .rdp-page-head h1 { font-size: 22px; }
  .rdp-toolbar {
    justify-content: stretch;
    flex-wrap: wrap;
  }
  .rdp-toolbar .rdp-btn,
  .rdp-toolbar .rdp-btn-ghost {
    width: 100%;
    min-width: 0;
  }
  .rdp-dash-dates {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .rdp-dash-dates label,
  .rdp-dash-dates input,
  .rdp-dash-dates button,
  .rdp-dash-dates .rdp-btn {
    width: 100%;
  }
  .rdp-dash-dates input[type="date"] { min-width: 0; }
  .rdp-form-row { grid-template-columns: 1fr; }
  .rdp-method-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .rdp-method-row .rdp-badge { justify-self: start; }
  .rdp-actions-quiet .rdp-text-link,
  .rdp-text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .rdp-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .rdp-grid-table th:first-child,
  .rdp-grid-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--rdp-card);
    box-shadow: 1px 0 0 var(--rdp-line);
  }
  .rdp-grid-table th:first-child {
    background: #eef4f3;
    z-index: 3;
    top: 0;
  }
  .rdp-grid-table tbody tr:hover td:first-child { background: #f3faf6; }
  .rdp-support {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  .rdp-support-panel {
    width: calc(100vw - 24px);
    height: min(70vh, calc(100dvh - 88px));
  }
  .rdp-pay-page .rdp-card h1 { font-size: 24px; }
  .rdp-pay-cta,
  .rdp-pay-page button[type="submit"],
  .rdp-pay-page .rdp-btn {
    width: 100%;
    min-height: 48px;
  }
  button,
  .rdp-btn,
  .rdp-btn-ghost,
  .rdp-filters button,
  .rdp-form button {
    touch-action: manipulation;
  }
}

@media (max-width: 390px) {
  .rdp-main-title { font-size: 16px; }
  .rdp-page-head h1,
  .rdp-auth h1,
  .rdp-pay-page .rdp-card h1 { font-size: 22px; }
  .rdp-card { padding: 22px 16px; }
  .rdp-who a { padding: 0 10px; }
}

html[dir="rtl"] .rdp-support {
  right: auto;
  left: max(12px, env(safe-area-inset-left, 0px));
}
@media (max-width: 768px) {
  html[dir="rtl"] .rdp-who { margin-inline-end: 0; }
  html[dir="rtl"] .rdp-grid-table th:first-child,
  html[dir="rtl"] .rdp-grid-table td:first-child {
    left: auto;
    right: 0;
    box-shadow: -1px 0 0 var(--rdp-line);
  }
  html[dir="rtl"] .rdp-support {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: auto;
  }
}
