@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;700;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --dash-bg: #0b0e11;
  --dash-bg-sandbox: #2a2207;
  --dash-sidebar: #0d0f13;
  --dash-panel: #121519;
  --dash-panel-2: #14181d;
  --dash-panel-3: #0f1216;
  --dash-line: #1e2329;
  --dash-line-2: #2b3139;
  --dash-text: #eaecef;
  --dash-muted: #848e9c;
  --dash-dim: #5e6673;
  --dash-soft: #b7bdc6;
  --dash-yellow: #fcd535;
  --dash-yellow-2: #f0b90b;
  --dash-green: #02c076;
  --dash-red: #f6465d;
  --dash-blue: #6078ff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--dash-bg);
}

body {
  margin: 0;
  background: var(--dash-bg);
  color: var(--dash-text);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body[data-dashboard-ready] {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--dash-yellow);
}

::selection {
  background: var(--dash-yellow);
  color: var(--dash-bg);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-thumb {
  background: var(--dash-line-2);
  border-radius: 6px;
}

.overview-shell,
.collection-shell,
.payout-shell,
.exchange-shell,
.ledger-chain-shell,
.reconcile-shell,
.api-keys-shell,
.risk-shell,
.team-shell,
.ticket-shell,
.merchant-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--dash-bg);
}

.overview-sidebar,
.collection-sidebar,
.payout-sidebar,
.exchange-sidebar,
.ledger-sidebar,
.chain-sidebar,
.reconcile-sidebar,
.api-keys-sidebar,
.risk-sidebar,
.team-sidebar,
.tickets-sidebar,
.merchant-sidebar,
.dashboard-sidebar {
  width: 236px;
  flex: 0 0 236px;
  height: 100vh;
  overflow: hidden;
  background: var(--dash-sidebar);
  border-right: 1px solid var(--dash-line);
  display: flex;
  flex-direction: column;
}

.dashboard-brand {
  padding: 22px 22px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--dash-line);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  background: linear-gradient(135deg, var(--dash-yellow), var(--dash-yellow-2));
  color: var(--dash-bg);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 900;
}

.brand-glyph {
  width: 17px;
  height: 17px;
  background: var(--dash-bg);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.brand-glyph::after {
  display: block;
  width: 7px;
  height: 7px;
  margin: 5px;
  background: var(--dash-yellow);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  content: "";
}

.dashboard-edition {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid var(--dash-line-2);
  border-radius: 5px;
  color: var(--dash-muted);
  font-size: 10.5px;
}

.dashboard-merchant-switch {
  position: relative;
  padding: 12px;
  border-bottom: 1px solid var(--dash-line);
}

.dashboard-org-button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--dash-panel-2);
  color: var(--dash-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  text-align: left;
}

.dashboard-org-button[aria-expanded="true"] {
  border-color: var(--dash-line-2);
}

.dashboard-avatar,
.dashboard-user-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 700;
}

.dashboard-avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(240, 185, 11, .16);
  color: var(--dash-yellow);
  font-size: 12.5px;
}

.dashboard-org-meta,
.dashboard-user-meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.dashboard-org-name,
.dashboard-user-name {
  overflow: hidden;
  color: var(--dash-text);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-org-role,
.dashboard-user-email {
  overflow: hidden;
  color: var(--dash-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-org-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% - 4px);
  right: 12px;
  left: 12px;
  overflow: hidden;
  border: 1px solid var(--dash-line-2);
  border-radius: 11px;
  background: #181c22;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}

.dashboard-org-menu[hidden] {
  display: none;
}

.dashboard-org-title {
  padding: 9px 13px 7px;
  color: var(--dash-dim);
  font-size: 11px;
}

.dashboard-org-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  background: transparent;
  color: var(--dash-text);
  cursor: pointer;
  padding: 9px 13px;
  text-align: left;
}

.dashboard-org-item:hover,
.route-list a:hover {
  filter: brightness(1.25);
}

.route-list {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  padding: 14px 17px;
}

.route-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 202px;
  min-height: 42px;
  border-radius: 9px;
  color: var(--dash-muted);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 11px;
  transition: all .12s;
}

.route-glyph {
  width: 19px;
  flex: 0 0 19px;
  color: currentColor;
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.route-label {
  min-width: 0;
  flex: 1;
}

.route-list a b {
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  background: var(--dash-red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 19px;
  text-align: center;
}

.route-list a[aria-current="page"] {
  background: rgba(240, 185, 11, .12);
  color: var(--dash-yellow);
  font-weight: 700;
}

.dashboard-user-card {
  padding: 14px;
  border-top: 1px solid var(--dash-line);
}

.dashboard-user-inner {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 10px;
  background: var(--dash-panel-2);
  padding: 9px;
}

.dashboard-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dash-line-2);
  color: var(--dash-text);
  font-size: 14px;
}

.overview-main,
.collection-main,
.payout-main,
.exchange-main,
.ledger-main,
.chain-main,
.reconcile-main,
.api-keys-main,
.risk-main,
.team-main,
.tickets-main,
.merchant-main,
.dashboard-main {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--dash-bg-sandbox);
}

.overview-main,
.collection-main,
.payout-main,
.exchange-main,
.ledger-main,
.chain-main,
.reconcile-main,
.api-keys-main,
.risk-main,
.team-main,
.tickets-main,
.merchant-main {
  display: flex;
  flex-direction: column;
}

.dashboard-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  border-bottom: 1px solid var(--dash-line);
  background: var(--dash-bg-sandbox);
  padding: 0 30px;
}

.dashboard-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dashboard-titlebar h1 {
  margin: 0;
  color: var(--dash-text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.dashboard-env-toggle {
  display: flex;
  align-items: center;
  border: 1px solid rgba(240, 185, 11, .5);
  border-radius: 9px;
  background: var(--dash-panel-2);
  padding: 3px;
}

.dashboard-env-option {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--dash-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
}

.dashboard-env-option[aria-pressed="true"] {
  background: var(--dash-yellow);
  color: var(--dash-bg);
}

.dashboard-env-option:focus-visible {
  outline: 2px solid var(--dash-yellow);
  outline-offset: 2px;
}

.dashboard-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 230px;
  border: 1px solid var(--dash-line-2);
  border-radius: 9px;
  background: var(--dash-panel-2);
  color: var(--dash-muted);
  font-size: 13.5px;
  padding: 8px 13px;
}

.search-glyph {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid var(--dash-muted);
  border-radius: 50%;
}

.search-glyph::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--dash-muted);
  transform: rotate(45deg);
  content: "";
}

.dashboard-node-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dash-green);
  box-shadow: 0 0 8px var(--dash-green);
}

.dashboard-node-label {
  color: var(--dash-muted);
  font-size: 13px;
}

.dashboard-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--dash-line-2);
  border-radius: 10px;
  background: var(--dash-panel-2);
  font-size: 16px;
}

.dashboard-bell::after {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dash-red);
  content: "";
}

.dashboard-sandbox-strip,
.sandbox-banner,
.summary-panel {
  border-bottom: 1px solid rgba(240, 185, 11, .3);
  background: repeating-linear-gradient(-45deg, rgba(240, 185, 11, .1), rgba(240, 185, 11, .1) 14px, rgba(240, 185, 11, .04) 14px, rgba(240, 185, 11, .04) 28px);
}

.dashboard-sandbox-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 30px;
}

.dashboard-sandbox-strip[hidden] {
  display: none;
}

.dashboard-sandbox-strip strong {
  border-radius: 6px;
  background: var(--dash-yellow);
  color: var(--dash-bg);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
}

.dashboard-sandbox-strip span {
  color: var(--dash-text);
  font-size: 13.5px;
}

.dashboard-sandbox-strip a {
  margin-left: auto;
  color: var(--dash-yellow);
  font-size: 13px;
  font-weight: 600;
}

.sandbox-banner,
.summary-panel {
  margin: 14px;
  border: 1px solid rgba(240, 185, 11, .24);
  border-radius: 10px;
  padding: 13px;
}

.sandbox-banner h1,
.summary-panel h1 {
  margin: 5px 0;
  color: var(--dash-text);
  font-size: 15px;
}

.sandbox-banner p,
.summary-panel p {
  margin: 0;
  color: var(--dash-soft);
  font-size: 12px;
  line-height: 1.6;
}

.topline {
  display: none;
}

.section-block,
.merchant-form,
.review-panel {
  background: var(--dash-panel);
  border: 1px solid var(--dash-line-2);
  border-radius: 16px;
  overflow: hidden;
  padding: 20px 24px;
}

.overview-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
.collection-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
.payout-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
.exchange-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
.ledger-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
.chain-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
.reconcile-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
.api-keys-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
.risk-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
.team-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
.tickets-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
.merchant-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip) {
  margin: 0 30px 22px;
}

.overview-main > .dashboard-design-content,
.collection-main > .dashboard-design-content,
.payout-main > .dashboard-design-content,
.exchange-main > .dashboard-design-content,
.ledger-main > .dashboard-design-content,
.chain-main > .dashboard-design-content,
.reconcile-main > .dashboard-design-content,
.api-keys-main > .dashboard-design-content,
.risk-main > .dashboard-design-content,
.team-main > .dashboard-design-content,
.tickets-main > .dashboard-design-content,
.merchant-main > .dashboard-design-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 26px 30px;
}

.collection-main > .dashboard-design-content {
  gap: 22px;
  padding: 26px 30px;
}

.overview-main > .dashboard-design-content > *,
.collection-main > .dashboard-design-content > *,
.payout-main > .dashboard-design-content > *,
.exchange-main > .dashboard-design-content > *,
.ledger-main > .dashboard-design-content > *,
.chain-main > .dashboard-design-content > *,
.reconcile-main > .dashboard-design-content > *,
.api-keys-main > .dashboard-design-content > *,
.risk-main > .dashboard-design-content > *,
.team-main > .dashboard-design-content > *,
.tickets-main > .dashboard-design-content > *,
.merchant-main > .dashboard-design-content > * {
  margin: 0;
}

.overview-main > .dashboard-sandbox-strip + *,
.collection-main > .dashboard-sandbox-strip + *,
.payout-main > .dashboard-sandbox-strip + *,
.exchange-main > .dashboard-sandbox-strip + *,
.ledger-main > .dashboard-sandbox-strip + *,
.chain-main > .dashboard-sandbox-strip + *,
.reconcile-main > .dashboard-sandbox-strip + *,
.api-keys-main > .dashboard-sandbox-strip + *,
.risk-main > .dashboard-sandbox-strip + *,
.team-main > .dashboard-sandbox-strip + *,
.tickets-main > .dashboard-sandbox-strip + *,
.merchant-main > .dashboard-sandbox-strip + * {
  margin-top: 26px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.merchant-form h2,
.review-panel h3 {
  margin: 2px 0 0;
  color: var(--dash-text);
  font-size: 17px;
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  color: var(--dash-muted);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: none;
}

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

.notice,
.status-box,
.empty-state {
  border: 1px solid rgba(240, 185, 11, .24);
  border-radius: 9px;
  background: rgba(240, 185, 11, .07);
  color: var(--dash-soft);
  font-size: 13px;
  line-height: 1.6;
  padding: 11px 13px;
}

.notice[hidden],
.totp-notice[hidden] {
  display: none;
}

.status-box:empty {
  display: none;
}

.control-grid,
.field-grid,
.batch-meta,
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

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

label span {
  color: var(--dash-muted);
  font-size: 12.5px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--dash-line-2);
  border-radius: 9px;
  outline: none;
  background: var(--dash-panel-3);
  color: var(--dash-text);
  font: 13.5px "Noto Sans SC", system-ui, sans-serif;
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(252, 213, 53, .65);
}

button,
.secondary-action,
.quick-actions a {
  border: 0;
  border-radius: 9px;
  background: var(--dash-yellow);
  color: var(--dash-bg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 18px;
}

button:hover,
.secondary-action:hover,
.quick-actions a:hover {
  filter: brightness(1.08);
}

.secondary-action,
.icon-action {
  border: 1px solid var(--dash-line-2);
  background: var(--dash-panel-2);
  color: var(--dash-text);
}

.icon-action {
  min-width: 38px;
  padding: 10px;
}

.quick-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.balance-grid,
.activity-list,
.address-list,
.deposit-list,
.batch-list,
.batch-detail,
.failed-items,
.payout-detail,
.api-key-list,
.risk-layout,
.team-layout,
.ticket-layout {
  display: grid;
  gap: 12px;
}

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

.balance-card,
.activity-row,
.address-card,
.address-row,
.deposit-row,
.batch-card,
.batch-row,
.detail-card,
.failed-row,
.payout-card,
.payout-row,
.api-key-card,
.api-key-row,
.risk-card,
.whitelist-row,
.limit-row,
.member-row,
.invite-row,
.session-row,
.ticket-row,
.message-card,
.bill-row,
.line-row,
.data-row,
.quote-card,
.exchange-row,
.document-box {
  border: 1px solid var(--dash-line-2);
  border-radius: 12px;
  background: var(--dash-panel-3);
  padding: 14px;
}

.balance-card h3 {
  margin: 0 0 10px;
  color: var(--dash-muted);
  font-size: 13.5px;
}

.balance-amount {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.balance-meta,
.activity-meta {
  color: var(--dash-dim);
  font-size: 12px;
}

.activity-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 14px;
}

.activity-row:hover,
.address-row:hover,
.deposit-row:hover,
.batch-card:hover,
.batch-row:hover,
.payout-row:hover,
.api-key-row:hover,
.whitelist-row:hover,
.member-row:hover,
.invite-row:hover,
.session-row:hover,
.bill-row:hover,
.line-row:hover,
.data-row:hover,
.exchange-row:hover,
.ticket-row:hover {
  background: var(--dash-panel-2);
}

.activity-type,
.network-pill,
.pill,
.status-pill,
.review-label {
  width: max-content;
  max-width: 100%;
  border-radius: 6px;
  background: rgba(240, 185, 11, .12);
  color: var(--dash-yellow);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
}

.activity-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.address-row {
  display: grid;
  grid-template-columns: minmax(120px, .24fr) minmax(0, 1fr) minmax(92px, .14fr);
  align-items: center;
  gap: 12px;
}

.deposit-row,
.batch-row,
.payout-row,
.bill-row,
.data-row,
.exchange-row {
  display: grid;
  align-items: center;
  gap: 14px;
}

.deposit-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, .2fr) minmax(170px, .28fr);
}

.batch-row,
.payout-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, .3fr) minmax(120px, .3fr) minmax(110px, .22fr);
}

.bill-row {
  grid-template-columns: minmax(150px, .2fr) minmax(0, 1fr) repeat(3, minmax(120px, .16fr));
  width: 100%;
  color: var(--dash-text);
  text-align: left;
}

.bill-row[aria-current="true"],
.ticket-row[aria-current="true"] {
  border-color: rgba(252, 213, 53, .65);
}

.line-row,
.data-row {
  grid-template-columns: minmax(150px, .22fr) minmax(0, 1fr) minmax(140px, .18fr) minmax(130px, .18fr);
}

.exchange-row {
  grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1.5fr) minmax(110px, .8fr) minmax(96px, .6fr);
}

.member-row,
.invite-row,
.session-row,
.api-key-row,
.whitelist-row,
.limit-row,
.ticket-row,
.message-card,
.detail-card,
.failed-row {
  display: grid;
  gap: 10px;
}

.api-key-row,
.whitelist-row,
.limit-row,
.member-row,
.invite-row,
.session-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.address-main,
.deposit-main,
.batch-title,
.detail-main,
.payout-main-text,
.key-main,
.member-main,
.invite-main,
.session-main,
.ticket-mainline,
.bill-main,
.row-main,
.row-cell {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.address-text,
.address-title,
.deposit-title,
.batch-title,
.failed-title,
.payout-title,
.key-title,
.member-title,
.session-title,
.ticket-subject,
.bill-title,
.line-title,
.row-title,
.source-link,
.tx-link,
.exchange-title {
  overflow-wrap: anywhere;
  color: var(--dash-text);
  font-weight: 800;
}

.address-meta,
.deposit-meta,
.deposit-subrow,
.detail-meta,
.failed-meta,
.payout-meta,
.key-public,
.key-meta,
.key-detail,
.member-meta,
.invite-meta,
.session-meta,
.ticket-meta,
.message-body,
.message-meta,
.bill-meta,
.line-meta,
.row-meta,
.row-subline,
.exchange-flow,
.exchange-note,
.quote-meta {
  overflow-wrap: anywhere;
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.55;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.quote-card {
  display: grid;
  gap: 12px;
}

.quote-metric,
.metric {
  display: grid;
  gap: 4px;
  border-radius: 10px;
  background: var(--dash-panel-2);
  padding: 12px;
}

.quote-metric span:first-child,
.metric-label {
  color: var(--dash-muted);
  font-size: 12px;
}

.quote-metric span:last-child,
.metric-value {
  color: var(--dash-text);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.quote-actions,
.toolbar,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.quote-actions {
  margin-top: 12px;
}

.countdown,
.last-admin-note {
  color: var(--dash-muted);
  font-size: 12px;
}

.message-card[data-author="merchant"] {
  border-color: rgba(240, 185, 11, .35);
}

.message-card[data-author="admin"] {
  border-color: rgba(96, 120, 255, .35);
}

.activity-title,
code {
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-status {
  justify-self: end;
  color: var(--dash-green);
  font-size: 12px;
}

.batch-entry-list,
.merchant-form,
.document-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.design-stack,
.design-grid,
.design-panel,
.design-route-intro,
.stats-grid,
.kyb-warning,
.route-tabs,
.summary-panel {
  min-width: 0;
}

.design-stack,
.design-grid {
  display: grid;
  gap: 18px;
}

.design-overview {
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: stretch;
}

.two-col {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
}

.design-panel,
.hero-balance-card,
.design-route-intro,
.stats-grid article,
.kyb-warning,
.route-tabs {
  border: 1px solid var(--dash-line-2);
  border-radius: 16px;
  background: var(--dash-panel);
}

.hero-balance-card {
  border: 0;
}

.design-panel {
  overflow: hidden;
  padding: 24px;
}

.design-panel h2,
.hero-balance-head,
.design-route-intro strong {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.design-panel > h2 {
  margin-bottom: 18px;
}

.design-panel p,
.design-route-intro p,
.kyb-warning p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 14px;
  line-height: 1.65;
}

.design-panel-head,
.design-route-intro,
.kyb-warning,
.route-tabs,
.endpoint-row,
.secret-row,
.toolbar,
.hero-balance-head,
.hero-balance-actions,
.legend,
.chart-days {
  display: flex;
  align-items: center;
  gap: 12px;
}

.design-panel-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.design-panel-head p {
  margin-top: 2px;
  font-size: 13px;
}

.design-panel-head a {
  color: var(--dash-yellow);
  font-size: 13px;
  font-weight: 600;
}

.design-route-intro {
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
}

.design-route-intro p {
  max-width: 780px;
  line-height: normal;
}

.design-route-intro p strong {
  color: var(--dash-text);
  font-size: 14px;
  font-weight: 600;
}

.design-route-intro button,
.full-action {
  flex: 0 0 auto;
}

.design-route-intro button {
  padding: 11px 20px;
}

.chain-route-intro .chain-chip {
  font-weight: 400;
  padding: 7px 14px;
}

.chain-route-intro .chain-chip.active {
  font-weight: 600;
}

.payout-main .design-route-intro .secondary-action {
  box-sizing: border-box;
  width: 94px;
  padding: 11px 18px;
  font-weight: 600;
}

.ledger-main .design-route-intro .secondary-action {
  align-self: center;
  box-sizing: border-box;
  width: 86px;
  padding: 8px 16px;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 18.5px;
  white-space: nowrap;
}

.hero-balance-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(135deg, var(--dash-yellow-2), var(--dash-yellow));
  color: var(--dash-bg);
}

.hero-balance-card::after {
  position: absolute;
  top: -42px;
  right: -32px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .42), transparent 62%);
  content: "";
}

.hero-balance-head {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  justify-content: space-between;
  color: rgba(11, 14, 17, .72);
  font-size: 14px;
  font-weight: 600;
}

.hero-balance-head span:last-child {
  border-radius: 6px;
  background: rgba(11, 14, 17, .14);
  color: var(--dash-bg);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
}

.hero-balance-amount {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-balance-amount span {
  font-size: 22px;
}

.hero-balance-actions {
  position: relative;
  z-index: 1;
  margin-top: 20px;
}

.hero-balance-actions a {
  border-radius: 9px;
  background: var(--dash-bg);
  color: var(--dash-yellow);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
}

.hero-balance-actions a:last-child {
  background: rgba(11, 14, 17, .12);
  color: var(--dash-bg);
}

.design-overview > .design-balance-grid {
  display: contents;
}

.design-overview .balance-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 16px;
  background: var(--dash-panel);
}

.design-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.design-card-head h3 {
  color: var(--dash-muted);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 900;
}

.stat-icon.collect {
  background: rgba(2, 192, 118, .14);
  color: var(--dash-green);
}

.stat-icon.payout {
  background: rgba(240, 185, 11, .14);
  color: var(--dash-yellow);
}

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

.balance-meta span {
  color: var(--dash-dim);
}

.design-overview .balance-card .balance-meta {
  margin: 31px 0 0;
  font-size: 13px;
  line-height: 30.5px;
}

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

.stats-grid article {
  border-radius: 14px;
  padding: 20px;
}

.stats-grid span {
  display: block;
  color: var(--dash-muted);
  font-size: 13.5px;
  margin-bottom: 10px;
}

.stats-grid strong {
  color: var(--dash-yellow);
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
}

.stats-grid .stat-green {
  color: var(--dash-green);
}

.stats-grid .stat-text {
  color: var(--dash-text);
}

.route-actions {
  display: flex;
  gap: 10px;
}

.route-copy {
  color: var(--dash-muted);
  font-size: 14px;
}

.exchange-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
}

.exchange-input-card {
  border: 1px solid var(--dash-line-2);
  border-radius: 12px;
  background: var(--dash-panel-3);
  padding: 16px 18px;
}

.exchange-form-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exchange-input-card > div:first-child,
.exchange-input-card > div:last-child,
.exchange-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.exchange-input-card > div:first-child {
  margin-bottom: 10px;
}

.exchange-input-card > div:last-child {
  align-items: center;
}

.exchange-input-card input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--dash-text);
  font: 700 28px "Space Grotesk", sans-serif;
  padding: 0;
}

.exchange-input-card select {
  flex: 0 0 auto;
  width: auto;
  max-width: 190px;
  border-radius: 9px;
  background: var(--dash-panel-2);
  color: var(--dash-text);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 12px;
}

.exchange-input-card span,
.exchange-input-card small,
.exchange-meta span {
  color: var(--dash-muted);
  font-size: 12.5px;
}

.exchange-input-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
}

.exchange-input-card b,
.exchange-meta b {
  color: var(--dash-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.exchange-form-panel > button {
  display: block;
  width: 100%;
  margin-top: 4px;
  border-radius: 11px;
  font-size: 15px;
  padding: 14px;
}

.exchange-meta {
  flex-direction: column;
  display: flex;
  gap: 9px;
  font-size: 13px;
  padding: 2px 2px 0;
}

.ledger-balance-panel {
  padding: 0;
}

.ledger-balance-panel .design-panel-head {
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--dash-line);
}

.exchange-ledger-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--dash-panel-2);
}

.exchange-ledger-list b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(240, 185, 11, .12);
  color: var(--dash-yellow);
  flex: 0 0 34px;
  font-size: 15px;
  font-weight: 900;
}

.exchange-ledger-list .coin-green {
  background: rgba(2, 192, 118, .16);
  color: var(--dash-green);
}

.exchange-ledger-list .coin-blue {
  background: rgba(96, 120, 255, .16);
  color: #6078ff;
}

.exchange-ledger-list .coin-orange {
  background: rgba(240, 162, 74, .16);
  color: #f0a24a;
}

.exchange-ledger-list span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.exchange-ledger-list small {
  color: var(--dash-dim);
  font-size: 12px;
}

.exchange-ledger-list em {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.exchange-row-static {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1fr 1fr .95fr .85fr .85fr 92px;
  column-gap: 14px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--dash-panel-2);
  font-size: 13.5px;
}

.exchange-row-static > span:first-child,
.exchange-row-static > span:nth-child(n+3):nth-child(-n+6) {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.exchange-row-static > span:nth-child(2) {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
}

.exchange-row-static > span:nth-child(2) span {
  color: var(--dash-text);
  font-weight: 600;
  white-space: nowrap;
}

.exchange-row-static > span:nth-child(2) span:nth-of-type(2) {
  color: var(--dash-green);
}

.exchange-row-static > span:nth-child(2) small,
.exchange-row-static > span:nth-child(2) i {
  color: var(--dash-dim);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.exchange-row-static > span:nth-child(n+3):nth-child(-n+6),
.exchange-row-static > span:last-child {
  text-align: right;
}

.table-head.exchange-head {
  column-gap: 14px;
}

.table-head.exchange-head > span:nth-child(n+3):nth-child(-n+6),
.table-head.exchange-head > span:last-child {
  text-align: right;
}

.status-filters {
  display: flex;
  gap: 8px;
}

.status-filters span {
  border-radius: 8px;
  background: var(--dash-panel-3);
  color: var(--dash-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 14px;
}

.status-filters .active {
  background: rgba(240, 185, 11, .12);
  color: var(--dash-yellow);
}

.legend {
  color: var(--dash-soft);
  font-size: 13px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.legend .green {
  background: var(--dash-green);
}

.legend .yellow {
  background: var(--dash-yellow);
}

.trend-chart {
  display: block;
  width: 100%;
  height: 220px;
  overflow: visible;
}

.trend-chart line {
  stroke: var(--dash-line);
  stroke-width: 1;
}

.trend-chart .collect-line,
.trend-chart .payout-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-chart .collect-line {
  stroke: var(--dash-green);
}

.trend-chart .payout-line {
  stroke: var(--dash-yellow);
}

.chart-days {
  justify-content: space-between;
  margin-top: 12px;
  color: var(--dash-dim);
  font-size: 12px;
}

.trend-panel .chart-days {
  margin-top: 13.055px;
}

.quick-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.quick-list a {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--dash-line-2);
  border-radius: 11px;
  background: var(--dash-panel-3);
  padding: 14px;
}

.quick-list a:hover {
  border-color: var(--dash-yellow);
}

.quick-list b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(240, 185, 11, .14);
  color: var(--dash-yellow);
}

.quick-list span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0;
}

.quick-list strong {
  color: var(--dash-text);
  font-size: 14.5px;
  font-weight: 600;
}

.quick-list small {
  color: var(--dash-muted);
  font-size: 12.5px;
}

.quick-list i {
  color: var(--dash-dim);
  font-style: normal;
}

.design-table-panel {
  padding: 0;
}

.ledger-main .design-table-panel,
.chain-main .design-table-panel {
  overflow: hidden;
}

.chain-route-intro {
  background: transparent;
  border: 0;
  border-radius: 0;
  justify-content: space-between;
  padding: 0;
}

.chain-chip-row {
  display: flex;
  gap: 8px;
}

.chain-chip {
  background: #14181d;
  border: 1px solid var(--dash-line-2);
  border-radius: 8px;
  color: var(--dash-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  line-height: 18.5px;
  padding: 7px 14px;
}

.chain-chip.active {
  background: var(--dash-yellow);
  color: #0b0e11;
  font-weight: 600;
}

.design-table-panel .design-panel-head {
  margin: 0;
  padding: 20px 24px;
  border-bottom: 1px solid var(--dash-line);
}

.design-table-panel form,
.design-panel form {
  margin-bottom: 16px;
}

.table-head {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--dash-line);
  background: var(--dash-panel-3);
  color: var(--dash-dim);
  font-size: 12.5px;
  padding: 13px 24px;
}

.recent-head {
  grid-template-columns: 96px 1.4fr 1fr 1fr 1fr 110px;
}

.design-table-body .activity-row {
  grid-template-columns: 96px 1.4fr 1fr 1fr 1fr 110px;
  gap: 0;
  height: 66px;
  min-height: 66px;
  border: 0;
  border-bottom: 1px solid var(--dash-panel-2);
  border-radius: 0;
  background: transparent;
  padding: 15px 24px;
  font-size: 13.5px;
}

.collection-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr 110px;
  align-items: center;
  gap: 0;
  padding: 15px 24px;
  border-bottom: 1px solid var(--dash-panel-2);
  font-size: 13.5px;
  transition: background .1s;
}

.collection-row:hover {
  background: var(--dash-panel-2);
}

.collection-row > span:nth-child(3) {
  color: var(--dash-soft);
}

.collection-row > span:nth-child(4),
.collection-row > span:nth-child(6) {
  text-align: right;
}

.collection-row .mono-id,
.collection-row .amount-green {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
}

.collection-row .mono-id {
  color: var(--dash-soft);
  font-size: 12.5px;
}

.collection-row .amount-green {
  color: var(--dash-green);
}

.collection-row .time-muted {
  color: var(--dash-muted);
  font-size: 12.5px;
}

.payout-row-static {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1fr 1fr 1fr 120px;
  align-items: center;
  gap: 0;
  padding: 15px 24px;
  border-bottom: 1px solid var(--dash-panel-2);
  font-size: 13.5px;
  transition: background .1s;
}

.payout-row-static:hover {
  background: var(--dash-panel-2);
}

.payout-row-static > span:nth-child(3) {
  color: var(--dash-soft);
}

.payout-row-static > span:nth-child(4),
.payout-row-static > span:nth-child(6) {
  text-align: right;
}

.payout-row-static .mono-id,
.payout-row-static .amount-yellow {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
}

.payout-row-static .mono-id {
  color: var(--dash-soft);
  font-size: 12.5px;
}

.payout-row-static .amount-yellow {
  color: var(--dash-yellow);
}

.payout-row-static .time-muted {
  color: var(--dash-muted);
  font-size: 12.5px;
}

.activity-row > span:nth-child(4),
.activity-row > span:nth-child(6) {
  text-align: right;
}

.activity-amount {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
}

.design-table-body .activity-title {
  display: block;
  width: max-content;
  max-width: 100%;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 19.5px;
}

.design-table-body .activity-main {
  display: block;
  gap: normal;
  justify-self: start;
  width: 100%;
  max-width: 100%;
}

.design-table-body .activity-main .activity-meta {
  display: block;
  min-width: 79.203px;
  width: max-content;
  line-height: 15.5px;
}

.design-table-body .activity-meta {
  font-size: 12px;
}

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

.activity-amount.warning {
  color: var(--dash-yellow);
}

.activity-type.collect {
  background: rgba(2, 192, 118, .14);
  color: var(--dash-green);
}

.activity-type.payout {
  background: rgba(240, 185, 11, .14);
  color: var(--dash-yellow);
}

.activity-status.success {
  background: rgba(2, 192, 118, .12);
  color: var(--dash-green);
}

.design-table-body .activity-status {
  justify-self: end;
  margin-right: 0;
  transform: translateY(.5px);
  border-radius: 6px;
  font-weight: 400;
  line-height: 17.5px;
  padding: 3px 10px;
}

.activity-status.pending {
  background: rgba(240, 185, 11, .12);
  color: var(--dash-yellow);
}

.activity-status.failed {
  background: rgba(246, 70, 93, .12);
  color: var(--dash-red);
}

.book-row-static,
.chain-row-static,
.reconcile-row-static,
.team-row-static,
.session-row-static,
.ticket-row-static {
  align-items: center;
  border-bottom: 1px solid var(--dash-border-soft);
  color: var(--dash-muted);
  display: grid;
  gap: 16px;
  min-height: 64px;
  padding: 14px 24px;
}

.book-row-static {
  grid-template-columns: 92px 1fr 1fr 1.2fr 1.5fr;
}

.chain-row-static {
  grid-template-columns: 88px 1.5fr 1fr 1fr 1fr 100px;
}

.chain-row-static {
  border-bottom-color: #14181d;
  cursor: pointer;
  font-size: 13.5px;
  gap: 0;
  min-height: 0;
  padding: 14px 24px;
  transition: background .1s;
}

.chain-row-static:hover {
  background: rgba(255, 255, 255, .02);
}

.reconcile-row-static {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 120px;
}

.reconcile-row-static {
  border-bottom-color: #14181d;
  gap: 0;
  min-height: 0;
  padding: 15px 24px;
  font-size: 13.5px;
  transition: background .1s;
}

.reconcile-row-static:hover {
  background: rgba(255, 255, 255, .02);
}

.reconcile-head span:nth-child(2),
.reconcile-head span:nth-child(3),
.reconcile-head span:nth-child(4),
.reconcile-head span:nth-child(6),
.reconcile-row-static > span:nth-child(2),
.reconcile-row-static > span:nth-child(3),
.reconcile-row-static > span:nth-child(4),
.reconcile-row-static > .reconcile-export-link {
  text-align: right;
}

.reconcile-row-static > span:nth-child(2),
.reconcile-row-static > span:nth-child(3),
.reconcile-row-static > span:nth-child(4) {
  font-family: "JetBrains Mono", monospace;
}

.reconcile-row-static > span:nth-child(2) {
  color: var(--dash-green);
}

.reconcile-row-static > span:nth-child(3),
.reconcile-row-static > .reconcile-export-link {
  color: var(--dash-yellow);
}

.reconcile-row-static > span:nth-child(4) {
  color: var(--dash-soft);
}

.reconcile-row-static .status-pill {
  font-size: 12px;
  font-weight: 400;
  line-height: 17.5px;
  padding: 3px 10px;
}

.reconcile-row-static .status-pill[data-state="reconciled"] {
  background: rgba(2, 192, 118, .12);
  color: var(--dash-green);
}

.reconcile-export-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 18.5px;
  padding: 0;
}

.team-row-static {
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
}

.session-row-static {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.ticket-row-static {
  grid-template-columns: 136px 1fr 56px 68px 104px;
}

.book-row-static strong,
.chain-row-static strong,
.reconcile-row-static strong,
.team-row-static strong,
.session-row-static strong,
.ticket-row-static strong {
  color: var(--dash-text);
}

.tickets-main > .dashboard-design-content {
  gap: 22px;
}

.ticket-route-intro {
  padding: 0;
}

.ticket-route-intro p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 14px;
  line-height: normal;
}

.ticket-route-intro button {
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 18.5px;
  padding: 8px 16px;
}

.ticket-design-panel {
  overflow: hidden;
  border: 1px solid var(--dash-line-2);
  border-radius: 16px;
  background: var(--dash-panel);
  padding: 0;
}

.ticket-head {
  grid-template-columns: 136px 1fr 56px 68px 104px;
  gap: 14px;
  background: #0f1216;
  border-bottom: 1px solid var(--dash-line);
  color: var(--dash-dim);
  font-size: 12.5px;
  padding: 13px 24px;
}

.ticket-head span:nth-child(5) {
  text-align: right;
}

.ticket-row-static {
  border-bottom-color: #14181d;
  cursor: pointer;
  font-size: 13.5px;
  gap: 14px;
  min-height: 0;
  padding: 14px 24px;
  transition: background .1s;
}

.ticket-row-static:hover {
  background: rgba(255, 255, 255, .02);
}

.ticket-row-static code {
  color: var(--dash-yellow);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.ticket-row-static strong {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-weight: 400;
}

.ticket-row-static strong small {
  color: var(--dash-dim);
  font-size: 11.5px;
}

.ticket-row-static > small {
  color: var(--dash-muted);
  font-size: 12.5px;
  text-align: right;
}

.ticket-priority,
.ticket-row-static .status-pill {
  border-radius: 6px;
  display: inline-flex;
  justify-self: start;
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  padding: 3px 9px;
}

.ticket-priority-high {
  background: rgba(246, 70, 93, .12);
  color: var(--dash-red);
}

.ticket-priority-medium {
  background: rgba(96, 120, 255, .12);
  color: var(--dash-blue);
}

.ticket-priority-low {
  background: rgba(132, 142, 156, .14);
  color: var(--dash-soft);
}

.ticket-row-static .status-pill[data-state="pending"],
.ticket-row-static .status-pill[data-state="pending_admin"] {
  background: rgba(240, 185, 11, .12);
  color: var(--dash-yellow);
}

.ticket-row-static .status-pill[data-state="open"] {
  background: rgba(132, 142, 156, .14);
  color: var(--dash-soft);
}

.ticket-row-static .status-pill[data-state="closed"],
.ticket-row-static .status-pill[data-state="resolved"] {
  background: rgba(2, 192, 118, .12);
  color: var(--dash-green);
}

.ticket-row-static .status-pill[data-state="pending_merchant"] {
  background: rgba(96, 120, 255, .12);
  color: var(--dash-blue);
}

.chain-row-static code {
  color: var(--dash-subtle);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}

.chain-row-static code a {
  color: inherit;
  text-decoration: none;
}

.chain-row-static > span:nth-child(3) {
  color: var(--dash-subtle);
}

.chain-row-static > strong:nth-child(4) {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-align: right;
}

.chain-row-static > span:nth-child(5) {
  color: var(--dash-muted);
  font-size: 12.5px;
}

.chain-row-static > span:nth-child(6) {
  color: var(--dash-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-align: right;
}

.chain-type {
  border-radius: 6px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  padding: 3px 9px;
}

.chain-type-inbound {
  background: rgba(2, 192, 118, .14);
  color: var(--dash-green);
}

.chain-type-outbound {
  background: rgba(240, 185, 11, .14);
  color: var(--dash-yellow);
}

.book-row-static small,
.team-row-static small,
.session-row-static small,
.ticket-row-static small {
  color: var(--dash-muted);
  font-size: 13px;
}

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

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

.positive-pill {
  background: rgba(2, 192, 118, .14);
  color: var(--dash-green);
}

.yellow-pill {
  background: rgba(240, 185, 11, .14);
  color: var(--dash-yellow);
}

.pagination-static {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 20px 24px 0;
}

.pagination-static span {
  align-items: center;
  background: #14181d;
  border-radius: 8px;
  color: var(--dash-muted);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  min-width: 36px;
}

.pagination-static .active {
  background: var(--dash-yellow);
  color: #0b0e11;
}

.chain-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
}

.chain-footer > span {
  color: var(--dash-dim);
  font-size: 13px;
}

.chain-footer .pagination-static {
  gap: 6px;
  padding: 0;
}

.chain-footer .pagination-static span {
  border-radius: 8px;
  font-size: 13px;
  height: 32px;
  min-width: 32px;
  width: 32px;
}

.api-card-static,
.doc-row-static {
  align-items: center;
  background: rgba(11, 14, 17, .42);
  border: 1px solid var(--dash-border-soft);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.api-card-static strong,
.doc-row-static strong {
  color: var(--dash-text);
}

.api-card-static small,
.doc-row-static em {
  color: var(--dash-muted);
  font-style: normal;
  margin: 6px 0 0;
}

.risk-route-intro {
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
}

.risk-route-intro p {
  color: #848e9c;
  font-size: 14px;
  line-height: 20px;
}

.risk-design-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr .9fr;
}

.risk-rules-panel,
.risk-limits-panel {
  background: #121519;
  border: 1px solid #2b3139;
  border-radius: 16px;
}

.risk-rules-panel {
  overflow: hidden;
  padding: 0;
}

.risk-rules-panel > h2 {
  border-bottom: 1px solid #1e2329;
  font-size: 16px;
  font-weight: 700;
  line-height: 22.5px;
  padding: 18px 22px;
}

.risk-limits-panel {
  padding: 22px;
}

.risk-limits-panel > h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 22.5px;
  margin-bottom: 18px;
}

.risk-rules-panel .design-list,
.risk-limits-panel .design-list {
  gap: 0;
}

.risk-rule-row {
  align-items: center;
  border-bottom: 1px solid #14181d;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 17px 22px;
}

.risk-rule-row:last-child {
  border-bottom: 0;
}

.risk-rule-row > div {
  flex: 1;
}

.risk-rule-row strong {
  color: var(--dash-text);
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 20.5px;
}

.risk-rule-row p {
  color: #848e9c;
  font-size: 12.5px;
  line-height: 17.5px;
  margin: 3px 0 0;
}

.switch-static {
  background: #2b3139;
  border-radius: 13px;
  flex-shrink: 0;
  height: 25px;
  min-width: 44px;
  position: relative;
  width: 44px;
}

.switch-static i {
  background: #fff;
  border-radius: 50%;
  display: block;
  height: 19px;
  left: 3px;
  position: absolute;
  top: 3px;
  transform: translateX(0);
  width: 19px;
}

.switch-static.on {
  background: var(--dash-green);
}

.switch-static.on i {
  transform: translateX(19px);
}

.risk-limit-row {
  margin-bottom: 18px;
}

.risk-limit-row div {
  flex: 1;
}

.risk-limit-row > div > :first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.risk-limit-row span {
  color: #b7bdc6;
  font-size: 13.5px;
  line-height: 19px;
}

.risk-limit-row strong {
  color: var(--dash-yellow);
  float: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 19px;
}

.risk-limit-row em {
  background: #14181d;
  border-radius: 3px;
  display: block;
  height: 6px;
  overflow: hidden;
}

.risk-limit-row em i {
  background: linear-gradient(90deg, #f0b90b, #fcd535);
  border-radius: 3px;
  display: block;
  height: 100%;
}

.risk-limit-row b {
  display: none;
}

.risk-limits-panel .full-action {
  width: 100%;
  margin-top: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #0b0e11;
  background: var(--dash-yellow);
  padding: 12px;
  border-radius: 9px;
}

.api-card-static {
  min-height: 82px;
  justify-content: flex-start;
}

.api-design-key-list {
  gap: 14px;
}

.api-design-key-list .api-card-static {
  background: #121519;
  border: 1px solid #2b3139;
  border-radius: 14px;
  gap: 16px;
  padding: 20px 22px;
}

.api-key-icon {
  align-items: center;
  background: rgba(240, 185, 11, .12);
  border-radius: 10px;
  display: flex;
  flex: 0 0 40px;
  font-size: 16px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.api-key-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.api-key-main > span {
  align-items: center;
  display: flex;
  gap: 10px;
}

.api-key-main em {
  background: rgba(240, 185, 11, .12);
  border-radius: 6px;
  color: var(--dash-yellow);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  padding: 2px 9px;
}

.api-key-main code {
  color: var(--dash-muted);
  font-family: var(--dash-mono);
  font-size: 13px;
  margin-top: 5px;
}

.api-design-key-list .api-card-static small {
  color: #5e6673;
  font-size: 12.5px;
  margin: 0;
  text-align: right;
}

.api-key-actions {
  display: flex;
  gap: 8px;
}

.api-key-actions button {
  background: #14181d;
  border: 1px solid #2b3139;
  border-radius: 7px;
  color: #b7bdc6;
  cursor: pointer;
  font-size: 12.5px;
  padding: 6px 12px;
}

.api-key-actions button + button {
  background: rgba(246, 70, 93, .1);
  border-color: transparent;
  color: #f6465d;
}

.api-integration-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr .85fr;
}

.api-method-panel {
  border-radius: 16px;
  overflow: hidden;
}

.api-method-panel .design-panel-head {
  border-bottom: 1px solid #1e2329;
  margin: 0;
  padding: 18px 22px;
}

.api-method-panel .design-panel-head h2 {
  font-size: 16px;
}

.api-method-panel .endpoint-method-list {
  gap: 0;
  padding: 6px 0;
}

.api-method-panel .endpoint-method-list article {
  align-items: center;
  border-bottom: 1px solid #14181d;
  display: flex;
  gap: 14px;
  padding: 11px 22px;
}

.api-method-panel .endpoint-method-list article > span {
  border-radius: 5px;
  flex: 0 0 52px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 0;
  text-align: center;
}

.api-method-panel .endpoint-method-list strong {
  color: var(--dash-yellow);
  display: block;
  font-family: var(--dash-mono);
  font-size: 13px;
  font-weight: 500;
}

.api-method-panel .endpoint-method-list p {
  color: var(--dash-muted);
  font-size: 12px;
  margin-top: 2px;
}

.api-method-panel .endpoint-method-list [data-group="chain"] > span,
.api-method-panel .endpoint-method-list [data-group="account"] > span {
  background: rgba(96, 120, 255, .14);
  color: #6078ff;
}

.api-method-panel .endpoint-method-list [data-group="address"] > span {
  background: rgba(2, 192, 118, .14);
  color: var(--dash-green);
}

.api-method-panel .endpoint-method-list [data-group="payout"] > span {
  background: rgba(240, 185, 11, .14);
  color: var(--dash-yellow);
}

.api-method-panel .endpoint-method-list [data-group="exchange"] > span {
  background: rgba(177, 140, 255, .14);
  color: #b18cff;
}

.api-method-panel .endpoint-method-list [data-group="flow"] > span {
  background: rgba(132, 142, 156, .16);
  color: #b7bdc6;
}

.api-side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.api-side-card {
  background: var(--dash-panel);
  border: 1px solid #2b3139;
  border-radius: 14px;
  padding: 18px 20px;
}

.api-endpoint-card > div {
  align-items: center;
  display: flex;
  gap: 9px;
  margin-bottom: 8px;
}

.api-endpoint-card span,
.api-webhook-card p {
  color: var(--dash-muted);
  font-size: 13px;
}

.api-endpoint-card em {
  background: var(--dash-yellow);
  border-radius: 5px;
  color: #0b0e11;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  padding: 2px 8px;
}

.api-endpoint-card em[data-environment="production"] {
  background: var(--dash-green);
}

.api-endpoint-card code {
  background: #14181d;
  border-radius: 8px;
  color: var(--dash-yellow);
  display: block;
  font-family: var(--dash-mono);
  font-size: 13px;
  padding: 11px 14px;
}

.api-endpoint-card p {
  color: #5e6673;
  font-size: 12px;
  line-height: 1.55;
  margin: 9px 0 0;
}

.api-webhook-card h2 {
  font-size: 15px;
  margin-bottom: 6px;
}

.api-webhook-card p {
  line-height: 1.6;
  margin-bottom: 12px;
}

.api-card-static code,
.team-row-static code {
  color: var(--dash-muted);
}

.team-main > .dashboard-design-content {
  gap: 22px;
}

.team-route-intro {
  padding: 0;
}

.team-route-intro p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 14px;
  line-height: normal;
}

.team-design-panel {
  overflow: hidden;
  border: 1px solid var(--dash-line-2);
  border-radius: 16px;
  background: var(--dash-panel);
}

.team-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--dash-border-soft);
  padding: 16px 24px;
}

.team-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
}

.team-panel-head button {
  border: 0;
  border-radius: 9px;
  background: var(--dash-yellow);
  color: var(--dash-bg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
  padding: 8px 16px;
}

.team-panel-head .team-danger-action {
  border: 1px solid rgba(246, 70, 93, .3);
  background: rgba(246, 70, 93, .1);
  color: var(--dash-red);
  font-weight: 400;
}

.team-table-head,
.team-row-static,
.member-row,
.session-row-static,
.session-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #14181d;
  padding: 14px 24px;
  font-size: 13.5px;
}

.team-table-head {
  grid-template-columns: 1fr 96px 76px 150px 48px;
  border-bottom-color: var(--dash-border-soft);
  background: #0f1216;
  color: var(--dash-dim);
  font-size: 12.5px;
  padding: 12px 24px;
}

.team-row-static,
.member-row {
  grid-template-columns: 1fr 96px 76px 150px 48px;
  min-height: 0;
}

.member-row[data-editing="true"] {
  grid-template-columns: 1fr 130px 130px 48px;
}

.member-row[data-editing="true"] .member-last,
.member-row[data-editing="true"] .team-totp-on,
.member-row[data-editing="true"] .team-totp-off {
  display: none;
}

.session-row-static,
.session-row {
  grid-template-columns: 1fr 116px 60px 96px 48px;
  min-height: 0;
}

.team-design-list > :last-child {
  border-bottom: 0;
}

.team-row-static > span:first-child,
.member-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.team-row-static strong,
.member-main strong {
  overflow-wrap: anywhere;
  color: var(--dash-text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: normal;
}

.team-row-static small,
.member-main small {
  overflow-wrap: anywhere;
  color: var(--dash-dim);
  font-size: 12px;
  line-height: normal;
}

.team-role-pill {
  border-radius: 6px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  padding: 3px 10px;
}

.team-role-admin {
  background: rgba(240, 185, 11, .12);
  color: var(--dash-yellow);
}

.team-role-finance {
  background: rgba(96, 120, 255, .12);
  color: #6078ff;
}

.team-role-operator {
  background: rgba(2, 192, 118, .12);
  color: var(--dash-green);
}

.team-totp-on,
.team-totp-off,
.member-last,
.session-row-static > span,
.session-row > span {
  color: var(--dash-muted);
  font-size: 12.5px;
  line-height: normal;
}

.team-totp-on {
  color: var(--dash-green);
}

.team-totp-off {
  color: var(--dash-red);
}

.session-row-static > span:first-child,
.session-row > span:first-child {
  color: var(--dash-text);
  font-size: 13.5px;
}

.session-row-static code,
.session-row code {
  color: var(--dash-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}

.team-row-static button,
.member-row button,
.session-row-static button,
.session-row button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  line-height: normal;
  padding: 0;
  text-align: right;
}

.team-row-static button,
.member-row button {
  color: var(--dash-muted);
}

.session-row-static button,
.session-row button {
  color: var(--dash-red);
}

.session-row button:disabled {
  cursor: default;
  opacity: .55;
}

.team-invite-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 88px;
  gap: 14px;
  border-bottom: 1px solid var(--dash-border-soft);
  padding: 14px 24px;
}

.team-invite-form[hidden] {
  display: none;
}

.webhook-list,
.endpoint-method-list {
  display: grid;
  gap: 10px;
}

.webhook-list {
  gap: 0;
}

.webhook-list span {
  align-items: center;
  color: #b7bdc6;
  display: flex;
  font-family: var(--dash-mono);
  font-size: 12.5px;
  gap: 8px;
  padding: 7px 0;
}

.webhook-list span::before {
  background: var(--dash-green);
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.endpoint-method-list article {
  align-items: center;
  border-bottom: 1px solid var(--dash-border-soft);
  display: grid;
  gap: 16px;
  grid-template-columns: 120px 200px 1fr;
  padding: 14px 0;
}

.endpoint-method-list span {
  color: var(--dash-yellow);
}

.endpoint-method-list strong {
  color: var(--dash-text);
}

.endpoint-method-list p {
  color: var(--dash-muted);
  margin: 0;
}

.collect-head,
.payout-head,
.chain-head {
  grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr 110px;
}

.chain-head {
  background: #0f1216;
  grid-template-columns: 88px 1.5fr 1fr 1fr 1fr 100px;
}

.chain-head > span:nth-child(4),
.chain-head > span:nth-child(6) {
  text-align: right;
}

.exchange-head {
  grid-template-columns: 1.1fr 1.5fr 1fr 1fr .95fr .85fr .85fr 92px;
}

.ledger-head {
  grid-template-columns: 60px 1fr 104px 112px 116px;
  gap: 14px;
}

.ledger-head > span:nth-child(3),
.ledger-head > span:nth-child(4),
.ledger-head > span:nth-child(5) {
  text-align: right;
}

.ledger-row {
  display: grid;
  grid-template-columns: 60px 1fr 104px 112px 116px;
  align-items: center;
  gap: 14px;
  min-height: 61px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--dash-panel-2);
  color: var(--dash-muted);
  font-size: 13.5px;
}

.ledger-row:hover {
  background: var(--dash-panel-2);
}

.ledger-category {
  width: max-content;
  max-width: 100%;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 17.5px;
  padding: 3px 9px;
}

.ledger-category-deposit {
  background: rgba(2, 192, 118, .12);
  color: var(--dash-green);
}

.ledger-category-fee {
  background: rgba(240, 185, 11, .12);
  color: var(--dash-yellow);
}

.ledger-category-payout {
  background: rgba(246, 70, 93, .12);
  color: var(--dash-red);
}

.ledger-category-exchange {
  background: rgba(96, 120, 255, .12);
  color: var(--dash-blue);
}

.ledger-category-refund {
  background: rgba(132, 142, 156, .14);
  color: var(--dash-soft);
}

.ledger-amount,
.ledger-balance,
.ledger-source-time {
  justify-self: end;
  text-align: right;
}

.ledger-amount {
  width: 100%;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  font-weight: 600;
}

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

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

.ledger-balance {
  color: var(--dash-text);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  font-weight: 400;
}

.ledger-source-time {
  color: var(--dash-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 15.5px;
}

.ledger-source-time small {
  color: var(--dash-muted);
  font-size: 11px;
}

.ledger-source-time .source-link {
  color: var(--dash-yellow);
  font-size: 11.5px;
}

.reconcile-head {
  grid-template-columns: repeat(5, 1fr) 120px;
}

.design-table-body {
  gap: 0;
}

.design-table-body > * {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  border-color: var(--dash-panel-2);
}

.design-list {
  gap: 10px;
}

.endpoint-row code,
.secret-row code {
  flex: 1;
  border-radius: 8px;
  background: var(--dash-panel-2);
  color: var(--dash-yellow);
  padding: 11px 14px;
}

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

.method-grid span {
  border-radius: 8px;
  background: var(--dash-panel-3);
  color: var(--dash-yellow);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  padding: 10px 12px;
}

.design-panel .blue-note {
  border: 1px solid rgba(96, 120, 255, .22);
  border-radius: 9px;
  background: rgba(96, 120, 255, .06);
  color: #8b93a7;
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 13px;
}

.exchange-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -6px auto;
  border: 1px solid var(--dash-line-2);
  border-radius: 9px;
  background: var(--dash-panel-2);
  color: var(--dash-yellow);
}

.kyb-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border-color: rgba(240, 185, 11, .28);
  border-radius: 12px;
  background: rgba(240, 185, 11, .07);
}

.kyb-warning span {
  font-size: 14px;
}

.kyb-warning span,
.kyb-warning b {
  color: var(--dash-yellow);
}

.merchant-main .two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merchant-form {
  padding: 22px 24px;
  gap: 15px;
}

.merchant-form h2 {
  margin: 0;
  font-size: 15px;
}

.merchant-form input {
  padding: 10px 12px;
}

body[data-merchant-screen="kyb"] .merchant-save-action {
  display: none;
}

.document-box {
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.doc-row-static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--dash-line-2);
  border-radius: 10px;
  background: var(--dash-panel-3);
}

.doc-row-static span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--dash-text);
  font-size: 13.5px;
}

.doc-row-static strong {
  color: var(--dash-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 400;
}

.doc-row-static em {
  color: var(--dash-green);
  font-size: 12.5px;
  font-style: normal;
}

.doc-row-static em[data-state="missing"] {
  color: var(--dash-red);
}

.route-tabs {
  justify-content: flex-start;
  padding: 10px;
}

.route-tabs a,
.route-tabs span {
  border-radius: 8px;
  background: var(--dash-panel-3);
  color: var(--dash-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
}

.route-tabs a[aria-current="page"] {
  background: var(--dash-yellow);
  color: var(--dash-bg);
}

.review-panel dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 16px;
}

body[data-dashboard-mobile] {
  overflow: auto;
}

body[data-dashboard-constrained] {
  overflow: auto;
}

body[data-dashboard-constrained] .overview-shell,
body[data-dashboard-constrained] .collection-shell,
body[data-dashboard-constrained] .payout-shell,
body[data-dashboard-constrained] .exchange-shell,
body[data-dashboard-constrained] .ledger-chain-shell,
body[data-dashboard-constrained] .reconcile-shell,
body[data-dashboard-constrained] .api-keys-shell,
body[data-dashboard-constrained] .risk-shell,
body[data-dashboard-constrained] .team-shell,
body[data-dashboard-constrained] .ticket-shell,
body[data-dashboard-constrained] .merchant-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
}

body[data-dashboard-constrained] .overview-sidebar,
body[data-dashboard-constrained] .collection-sidebar,
body[data-dashboard-constrained] .payout-sidebar,
body[data-dashboard-constrained] .exchange-sidebar,
body[data-dashboard-constrained] .ledger-sidebar,
body[data-dashboard-constrained] .chain-sidebar,
body[data-dashboard-constrained] .reconcile-sidebar,
body[data-dashboard-constrained] .api-keys-sidebar,
body[data-dashboard-constrained] .risk-sidebar,
body[data-dashboard-constrained] .team-sidebar,
body[data-dashboard-constrained] .tickets-sidebar,
body[data-dashboard-constrained] .merchant-sidebar,
body[data-dashboard-constrained] .dashboard-sidebar {
  width: 100%;
  max-width: 100vw;
  height: auto;
  max-height: none;
  flex: 0 0 auto;
  overflow: visible;
  border-right: 0;
  border-bottom: 1px solid var(--dash-line);
}

body[data-dashboard-constrained] .dashboard-brand {
  padding: 14px 16px 12px;
}

body[data-dashboard-constrained] .dashboard-merchant-switch {
  padding: 10px 16px;
}

body[data-dashboard-constrained] .dashboard-org-button {
  max-width: 100%;
}

body[data-dashboard-constrained] .route-list {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
  max-width: 100vw;
  padding: 10px 16px 14px;
  scroll-padding: 16px;
  -webkit-overflow-scrolling: touch;
}

body[data-dashboard-constrained] .route-list a {
  flex: 0 0 auto;
  min-height: 38px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  padding: 9px 12px;
}

body[data-dashboard-constrained] .dashboard-user-card {
  display: none;
}

body[data-dashboard-constrained] .overview-main,
body[data-dashboard-constrained] .collection-main,
body[data-dashboard-constrained] .payout-main,
body[data-dashboard-constrained] .exchange-main,
body[data-dashboard-constrained] .ledger-main,
body[data-dashboard-constrained] .chain-main,
body[data-dashboard-constrained] .reconcile-main,
body[data-dashboard-constrained] .api-keys-main,
body[data-dashboard-constrained] .risk-main,
body[data-dashboard-constrained] .team-main,
body[data-dashboard-constrained] .tickets-main,
body[data-dashboard-constrained] .merchant-main {
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
  margin: 0;
  padding: 0;
}

body[data-dashboard-constrained] .dashboard-topbar {
  position: static;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

body[data-dashboard-constrained] .dashboard-top-actions,
body[data-dashboard-constrained] .dashboard-titlebar {
  width: 100%;
  flex-wrap: wrap;
}

body[data-dashboard-constrained] .dashboard-search {
  width: 100%;
}

body[data-dashboard-constrained] .dashboard-sandbox-strip {
  align-items: flex-start;
  flex-direction: column;
  padding: 12px 16px;
}

body[data-dashboard-constrained] .dashboard-sandbox-strip a {
  margin-left: 0;
}

body[data-dashboard-constrained] .overview-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
body[data-dashboard-constrained] .collection-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
body[data-dashboard-constrained] .payout-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
body[data-dashboard-constrained] .exchange-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
body[data-dashboard-constrained] .ledger-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
body[data-dashboard-constrained] .chain-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
body[data-dashboard-constrained] .reconcile-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
body[data-dashboard-constrained] .api-keys-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
body[data-dashboard-constrained] .risk-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
body[data-dashboard-constrained] .team-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
body[data-dashboard-constrained] .tickets-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
body[data-dashboard-constrained] .merchant-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip) {
  margin-right: 16px;
  margin-left: 16px;
}

body[data-dashboard-constrained] .design-overview,
body[data-dashboard-constrained] .two-col,
body[data-dashboard-constrained] .stats-grid,
body[data-dashboard-constrained] .method-grid,
body[data-dashboard-constrained] .api-integration-grid {
  grid-template-columns: 1fr;
}

body[data-dashboard-constrained] .api-design-key-list .api-card-static,
body[data-dashboard-mobile] .api-design-key-list .api-card-static {
  align-items: flex-start;
  flex-wrap: wrap;
}

body[data-dashboard-constrained] .hero-balance-card {
  min-height: 0;
}

body[data-dashboard-constrained] .hero-balance-amount {
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 30px;
}

body[data-dashboard-constrained] .hero-balance-amount span {
  font-size: 19px;
}

body[data-dashboard-constrained] .design-table-panel {
  overflow-x: auto;
}

body[data-dashboard-constrained] .table-head,
body[data-dashboard-constrained] .design-table-body {
  min-width: 760px;
}

@media (max-width: 1200px) {
  body[data-dashboard-ready] {
    overflow: auto;
  }
}

body[data-dashboard-mobile] .overview-shell,
body[data-dashboard-mobile] .collection-shell,
body[data-dashboard-mobile] .payout-shell,
body[data-dashboard-mobile] .exchange-shell,
body[data-dashboard-mobile] .ledger-chain-shell,
body[data-dashboard-mobile] .reconcile-shell,
body[data-dashboard-mobile] .api-keys-shell,
body[data-dashboard-mobile] .risk-shell,
body[data-dashboard-mobile] .team-shell,
body[data-dashboard-mobile] .ticket-shell,
body[data-dashboard-mobile] .merchant-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
}

body[data-dashboard-mobile] .overview-sidebar,
body[data-dashboard-mobile] .collection-sidebar,
body[data-dashboard-mobile] .payout-sidebar,
body[data-dashboard-mobile] .exchange-sidebar,
body[data-dashboard-mobile] .ledger-sidebar,
body[data-dashboard-mobile] .chain-sidebar,
body[data-dashboard-mobile] .reconcile-sidebar,
body[data-dashboard-mobile] .api-keys-sidebar,
body[data-dashboard-mobile] .risk-sidebar,
body[data-dashboard-mobile] .team-sidebar,
body[data-dashboard-mobile] .tickets-sidebar,
body[data-dashboard-mobile] .merchant-sidebar,
body[data-dashboard-mobile] .dashboard-sidebar {
  width: 100%;
  max-width: 100vw;
  height: auto;
  max-height: none;
  flex: 0 0 auto;
  overflow: visible;
  border-right: 0;
  border-bottom: 1px solid var(--dash-line);
}

body[data-dashboard-mobile] .dashboard-brand {
  padding: 14px 16px 12px;
}

body[data-dashboard-mobile] .dashboard-merchant-switch {
  padding: 10px 16px;
}

body[data-dashboard-mobile] .dashboard-org-button {
  max-width: 100%;
}

body[data-dashboard-mobile] .route-list {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
  max-width: 100vw;
  padding: 10px 16px 14px;
  scroll-padding: 16px;
  -webkit-overflow-scrolling: touch;
}

body[data-dashboard-mobile] .route-list a {
  flex: 0 0 auto;
  min-height: 38px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  padding: 9px 12px;
}

body[data-dashboard-mobile] .dashboard-user-card {
  display: none;
}

body[data-dashboard-mobile] .exchange-layout {
  grid-template-columns: 1fr;
}

body[data-dashboard-mobile] .overview-main,
body[data-dashboard-mobile] .collection-main,
body[data-dashboard-mobile] .payout-main,
body[data-dashboard-mobile] .exchange-main,
body[data-dashboard-mobile] .ledger-main,
body[data-dashboard-mobile] .chain-main,
body[data-dashboard-mobile] .reconcile-main,
body[data-dashboard-mobile] .api-keys-main,
body[data-dashboard-mobile] .risk-main,
body[data-dashboard-mobile] .team-main,
body[data-dashboard-mobile] .tickets-main,
body[data-dashboard-mobile] .merchant-main {
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
  margin: 0;
  padding: 0;
}

@media (max-width: 920px) {
  body[data-dashboard-ready] {
    overflow: auto;
  }

  .overview-shell,
  .collection-shell,
  .payout-shell,
  .exchange-shell,
  .ledger-chain-shell,
  .reconcile-shell,
  .api-keys-shell,
  .risk-shell,
  .team-shell,
  .ticket-shell,
  .merchant-shell {
    display: flex;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    height: auto;
    overflow-x: clip;
    overflow-y: visible;
    flex-direction: column;
  }

  .overview-sidebar,
  .collection-sidebar,
  .payout-sidebar,
  .exchange-sidebar,
  .ledger-sidebar,
  .chain-sidebar,
  .reconcile-sidebar,
  .api-keys-sidebar,
  .risk-sidebar,
  .team-sidebar,
  .tickets-sidebar,
  .merchant-sidebar,
  .dashboard-sidebar {
    width: 100%;
    max-width: 100vw;
    height: auto;
    max-height: none;
    flex: 0 0 auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--dash-line);
  }

  .dashboard-brand {
    padding: 14px 16px 12px;
  }

  .dashboard-merchant-switch {
    padding: 10px 16px;
  }

  .route-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 0;
    max-width: 100vw;
    max-height: none;
    padding: 10px 16px 14px;
    scroll-padding: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .route-list a {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    padding: 9px 12px;
  }

  .dashboard-user-card {
    display: none;
  }

  .overview-main,
  .collection-main,
  .payout-main,
  .exchange-main,
  .ledger-main,
  .chain-main,
  .reconcile-main,
  .api-keys-main,
  .risk-main,
  .team-main,
  .tickets-main,
  .merchant-main {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    height: auto;
    overflow-x: clip;
    overflow-y: visible;
    margin: 0;
    padding: 0;
  }

  .dashboard-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .dashboard-top-actions,
  .dashboard-titlebar {
    width: 100%;
    flex-wrap: wrap;
  }

  .dashboard-search {
    width: 100%;
  }

  .dashboard-sandbox-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }

  .dashboard-sandbox-strip a {
    margin-left: 0;
  }

  .overview-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
  .collection-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
  .payout-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
  .exchange-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
  .ledger-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
  .chain-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
  .reconcile-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
  .api-keys-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
  .risk-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
  .team-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
  .tickets-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip),
  .merchant-main > :not(.dashboard-topbar):not(.dashboard-sandbox-strip) {
    margin-right: 16px;
    margin-left: 16px;
  }

  .control-grid,
  .field-grid,
  .batch-meta,
  .quick-actions,
  .balance-grid,
  .batch-entry-row {
    grid-template-columns: 1fr;
  }

  .section-block,
  .merchant-form,
  .review-panel {
    border-radius: 12px;
    padding: 16px;
  }

  .activity-row {
    grid-template-columns: 1fr;
  }

  .activity-status {
    justify-self: start;
  }
}
