:root { color-scheme: dark; background: #0d1117; color: #e6edf3; }
body { background: #0d1117; color: #e6edf3; }
[hidden] { display: none !important; }
.sidebar, .topbar, .panel, .mobile-nav { background: #161b22; border-color: #30363d; }
.brand, .page-heading h1, .top-crumb strong, .section-title h2 { color: #e6edf3; }
.brand strong, .eyebrow, a, .nav-item.active, .mobile-nav button.active { color: #ed9ca8; }
.brand-mark { background: #a51d30; color: #fff; }
.brand-mark span { color: #efb6bd; }
.nav-item, .mobile-nav button { color: #a4afbd; }
.nav-item:hover, .nav-item.active, .mobile-nav button.active { background: #491e27; }
.sidebar-profile { border-color: #30363d; }
.panel { margin-bottom: 18px; }
.platform-toolbar, .platform-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.platform-toolbar label { display: grid; gap: 5px; font-size: 13px; }
.merchant-toolbar { align-items: end; gap: 12px; }
.merchant-toolbar label { min-width: 180px; color: #c9d1d9; }
.merchant-toolbar label:first-child { flex: 1 1 260px; }
.merchant-toolbar label:nth-child(2) { flex: 0 1 190px; }
.merchant-toolbar input, .merchant-toolbar select, .merchant-toolbar button { box-sizing: border-box; height: 40px; }
.merchant-toolbar input, .merchant-toolbar select { width: 100%; }
.merchant-toolbar button { min-width: 100px; padding: 8px 14px; border-radius: 8px; }
.withdrawal-toolbar { align-items: end; gap: 12px; }
.withdrawal-toolbar label { min-width: 190px; color: #c9d1d9; }
.withdrawal-toolbar select, .withdrawal-toolbar button { box-sizing: border-box; height: 40px; min-width: 104px; padding: 8px 14px; border-radius: 8px; }
.withdrawal-toolbar select { background: #0d1117; color: #e6edf3; border: 1px solid #3d4652; }
.withdrawal-toolbar .platform-button.secondary { min-width: 100px; }
.identity-filter { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.identity-filter label { display: grid; gap: 6px; min-width: 190px; color: #c9d1d9; font-size: 13px; }
.identity-filter select, .identity-filter .platform-button { box-sizing: border-box; height: 40px; min-width: 128px; padding: 9px 14px; border-radius: 8px; font: inherit; }
.identity-filter select { background: #0d1117; color: #e6edf3; border: 1px solid #3d4652; }
.identity-filter .platform-button.secondary { min-width: 100px; }
.platform-table { overflow-x: auto; }
.platform-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.platform-table th, .platform-table td { text-align: left; padding: 12px; border-bottom: 1px solid #30363d; }
.platform-table th { color: #a4afbd; white-space: nowrap; }
.platform-table small { display: block; color: #a4afbd; margin-top: 5px; }
.platform-table code { overflow-wrap: anywhere; }
.platform-button, .platform-toolbar button { background: #a51d30; color: #fff; border: 1px solid #a51d30; padding: 9px 14px; border-radius: 8px; font: inherit; cursor: pointer; }
.platform-button.secondary { background: transparent; color: #ed9ca8; }
.platform-button:disabled { opacity: .5; cursor: not-allowed; }
.platform-toolbar input, .platform-toolbar select, .platform-form input, .platform-form textarea,
.local-form-panel input, .local-form-panel textarea, .local-form-panel select { background: #0d1117; color: #e6edf3; border: 1px solid #30363d; padding: 10px; border-radius: 8px; font: inherit; }
.platform-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-form label { display: grid; gap: 6px; font-size: 13px; }
.platform-form .full { grid-column: 1 / -1; }
.platform-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.platform-metrics strong { display: block; color: #ed9ca8; font-size: 25px; margin-top: 10px; }
.platform-error { color: #ffb4b4; }
.platform-status { text-transform: capitalize; }
.platform-status.completed, .platform-status.active, .platform-status.verified { color: #3ecf8e; }
.platform-status.approved, .platform-status.paid { color: #3ecf8e; }
.platform-status.rejected, .platform-status.failed, .platform-status.suspended { color: #ffb4b4; }
.platform-policy textarea { min-height: 220px; }
.platform-withdrawal select { background: #0d1117; color: #e6edf3; border: 1px solid #30363d; padding: 10px; border-radius: 8px; }
.platform-status.pending { color: #c9d1d9; }
.admin-settings { display: grid; gap: 12px; }
.admin-settings .settings-folder { background: #161b22; border: 1px solid #30363d; border-radius: 12px; }
.admin-settings .settings-folder > summary { color: #e6edf3; padding: 18px 20px; }
.admin-settings .settings-folder > summary small { color: #a4afbd; }
.admin-settings .settings-folder-content { padding: 0 16px 1px; }
.admin-settings .settings-folder-content > .panel { background: #161b22; border-color: #30363d; }
.admin-settings .platform-form label { color: #c9d1d9; }
.admin-settings .platform-form input,
.admin-settings .platform-form textarea,
.admin-settings .platform-form select { background: #0d1117; color: #e6edf3; border-color: #3d4652; }
.admin-settings .platform-form input[type="checkbox"] { accent-color: #a51d30; }
.admin-settings .settings-folder-content > .panel > p { color: #a4afbd; }
.admin-settings .settings-folder-content > .panel > p.platform-error,
.admin-settings .settings-folder-content > .panel > p[role="alert"] { color: #ffb4b4; }
.app-shell .staff-warning { background: #24171b; border-color: #54232d; color: #e6aab2; }
.app-shell .staff-actor select { background: #0d1117; border-color: #30363d; color: #e6edf3; }
.app-shell .staff-person { background: #161b22; color: #e6edf3; border-color: #30363d; }
.app-shell .staff-person:hover, .app-shell .staff-person.selected { background: #27171c; border-color: #71303b; }
.app-shell .staff-avatar { background: #311a20; color: #ed9ca8; }
.app-shell .staff-person-copy small, .app-shell .permission-row small { color: #a4afbd; }
.app-shell .selected-header { border-color: #30363d; }
.app-shell .permission-row, .app-shell .approval-row { border-color: #30363d; }
.app-shell .staff-actor p, .app-shell .selected-header p, .app-shell .permission-heading p,
.app-shell .approval-row p, .app-shell .approval-row small { color: #a4afbd; }
.app-shell .role-explainer, .app-shell .readonly-note { background: #0d1117; color: #c9d1d9; border: 1px solid #30363d; }
.app-shell .approval-button.secondary { background: #161b22; color: #ed9ca8; border-color: #71303b; }
.app-shell .approval-button:disabled { background: #21262d; border-color: #30363d; color: #8b949e; }
.identity-detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.identity-detail-heading h2 { margin: 0; }
.identity-detail-heading .eyebrow { margin-bottom: 6px; }
.identity-detail-meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px 14px; align-items: center; margin: 20px 0; padding: 14px; background: #0d1117; border: 1px solid #30363d; border-radius: 10px; }
.identity-detail-meta > span, .identity-detail-field dt, .identity-decision-meta dt { color: #a4afbd; font-size: 12px; }
.identity-detail-meta code, .identity-detail-meta time { overflow-wrap: anywhere; font-size: 12px; }
.identity-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.identity-detail-field { min-width: 0; padding: 14px; background: #0d1117; border: 1px solid #30363d; border-radius: 10px; }
.identity-detail-field dt, .identity-decision-meta dt { text-transform: capitalize; }
.identity-detail-field dd, .identity-decision-meta dd { margin: 7px 0 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.identity-decision { margin: 20px 0; padding: 18px; background: #131920; border: 1px solid #30363d; border-radius: 12px; }
.identity-decision h3 { margin: 0; font-size: 15px; }
.identity-decision > div > p { color: #a4afbd; font-size: 12px; }
.identity-decision-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
.identity-decision-meta > div { min-width: 0; padding: 12px; background: #0d1117; border: 1px solid #30363d; border-radius: 9px; }
.identity-attestation { display: flex !important; align-items: flex-start; gap: 10px !important; line-height: 1.5; }
.identity-attestation input { flex: 0 0 auto; margin: 2px 0 0; accent-color: #a51d30; }
.platform-muted { color: #a4afbd; font-size: 13px; }
.platform-empty { padding: 24px; text-align: center; }
.login-view .login-eyebrow { color: #ed9ca8; }
.login-view .login-submit { background: #a51d30; border-color: #a51d30; color: #fff; }
.login-view .login-submit:hover:not(:disabled) { background: #851525; }
.login-view .remember input { accent-color: #a51d30; }
.login-view input:focus-visible, .login-view button:focus-visible { outline-color: #ef9fac; }
.platform-refresh { margin-left: auto; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #ef9fac; outline-offset: 3px; }
@media (max-width: 760px) {
  .platform-metrics, .platform-form { grid-template-columns: 1fr; }
  .merchant-toolbar { align-items: stretch; }
  .merchant-toolbar label, .merchant-toolbar label:first-child, .merchant-toolbar label:nth-child(2),
  .merchant-toolbar button { flex: 1 1 100%; width: 100%; }
  .withdrawal-toolbar { align-items: stretch; }
  .withdrawal-toolbar label, .withdrawal-toolbar select, .withdrawal-toolbar button { width: 100%; }
  .identity-filter { align-items: stretch; }
  .identity-filter label, .identity-filter select, .identity-filter .platform-button { width: 100%; }
  .identity-detail-grid, .identity-decision-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-detail-meta { grid-template-columns: 1fr; gap: 6px; }
  .mobile-nav { overflow-x: auto; justify-content: flex-start; }
  .mobile-nav button { min-width: 78px; }
}
@media (max-width: 460px) {
  .identity-detail-grid, .identity-decision-meta { grid-template-columns: 1fr; }
}
