:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --line: #d7dde5;
  --line-strong: #b8c2cf;
  --text: #17202a;
  --muted: #667085;
  --primary: #0a6fbd;
  --primary-strong: #075896;
  --accent: #f59e0b;
  --teal: #0f766e;
  --purple: #7c3aed;
  --success: #0f8a5f;
  --warning: #a35f00;
  --danger: #b42318;
  --sidebar: #322822;
  --sidebar-active: #3c8dbc;
  --sidebar-text: #b8c7ce;
  --topbar: #eb144c;
  --mui-blue: #1976d2;
  font-family: "Noto Sans SC", "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #edf3f8;
}

.login-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.13);
  display: grid;
  gap: 16px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.login-brand strong {
  display: block;
  font-size: 20px;
}

.login-brand small {
  color: var(--muted);
}

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 64px minmax(0, 1fr);
}

.sidebar {
  background: var(--sidebar);
  color: #e5edf5;
  padding: 0;
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  background: var(--topbar);
  border-bottom: 0;
  min-height: 50px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #e5edf5;
  color: #1f2933;
  font-weight: 800;
}

.brand small {
  display: block;
  color: #a9b8c9;
  margin-top: 2px;
}

.app-shell.sidebar-collapsed .brand div,
.app-shell.sidebar-collapsed .nav-group-title,
.app-shell.sidebar-collapsed .nav-button {
  display: none;
}

nav {
  display: grid;
  gap: 0;
  padding-bottom: 18px;
}

.nav-group {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-group-title {
  padding: 10px 16px 5px;
  color: #8fa4b8;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.nav-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--sidebar-text);
  text-align: left;
  padding: 11px 16px 11px 28px;
  border-radius: 0;
  cursor: pointer;
  font-size: 13.5px;
  min-height: 42px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nav-button.home-link {
  padding-left: 18px;
  font-weight: 700;
}

.nav-button:hover,
.nav-button.active {
  background: rgba(60, 141, 188, 0.92);
  color: #fff;
  box-shadow: inset 4px 0 0 var(--topbar);
}

.workspace {
  min-width: 0;
  padding: 0 0 40px;
}

.global-header {
  height: 50px;
  background: var(--topbar);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0 24px 0 8px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left,
.header-right,
.header-switch-row,
.header-menu-wrap {
  display: flex;
  align-items: center;
}

.header-left,
.header-right {
  gap: 12px;
}

.header-switch-row {
  gap: 7px;
  min-width: 92px;
}

.header-icon,
.header-text-button,
.header-outline,
.header-avatar {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border-radius: 4px;
  min-height: 31px;
  font-size: 13.5px;
  font-weight: 600;
}

.header-icon {
  width: 40px;
  border: 0;
  font-size: 20px;
  padding: 0;
}

.header-text-button {
  border: 0;
  min-width: 64px;
}

.header-outline {
  min-width: 65px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.92);
}

.header-avatar {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  padding: 0;
}

.header-menu-wrap {
  position: relative;
}

.header-popover {
  position: absolute;
  right: 0;
  top: 40px;
  min-width: 120px;
  padding: 8px;
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  box-shadow: rgb(158, 158, 158) 1px 1px 1px 0;
  z-index: 80;
}

.account-popover {
  min-width: 160px;
}

.language-popover {
  min-width: 104px;
  padding: 0;
}

.header-popover button {
  width: 100%;
  min-height: 30px;
  border: 0;
  color: var(--mui-blue);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.header-popover button:hover,
.header-popover button.active {
  background: #eef6ff;
}

.header-popover .danger-text {
  color: #d32f2f;
}

.popover-title,
.account-card {
  display: grid;
  gap: 2px;
  padding: 4px 8px 8px;
  color: #334155;
  font-size: 12px;
}

.popover-title {
  font-weight: 700;
}

.account-card span,
.account-card small,
.online-row span {
  color: var(--muted);
}

.online-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 8px;
  border-top: 1px solid #eef2f6;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.tab-strip {
  height: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 8px;
  display: flex;
  align-items: flex-end;
}

.page-tab {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #334155;
}

.page-tab.active {
  color: var(--primary);
  box-shadow: inset 0 -3px 0 var(--primary);
}

.tab-close {
  color: #8a98aa;
  font-size: 16px;
  line-height: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 16px 22px 12px;
  background: var(--bg);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 22px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 15px;
}

p {
  margin: 6px 0 0;
  color: var(--muted);
}

.topbar-actions,
.toolbar,
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar.compact {
  gap: 6px;
}

.toolbar.compact button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.bulk-summary {
  display: grid;
  gap: 2px;
  min-width: 180px;
}

.bulk-toolbar select {
  width: min(280px, 100%);
}

.withdraw-control-panel {
  margin: 0 22px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.currency-tabs {
  display: flex;
  gap: 12px;
  min-height: 32px;
  padding: 0 0 0 0;
  border-bottom: 1px solid var(--line);
}

.currency-tabs button {
  min-width: 70px;
  min-height: 30px;
  margin: 0 0 -1px 0;
  border-radius: 8px 8px 0 0;
  border: 1px solid #ccc;
  background: #ddd;
  color: #111;
  font-size: 13px;
}

.currency-tabs button.active {
  background: var(--sidebar-active);
  border-color: var(--sidebar-active);
  color: #fff;
  font-weight: 700;
  box-shadow: rgba(0, 0, 0, 0.2) 0 3px 1px -2px, rgba(0, 0, 0, 0.14) 0 2px 2px 0, rgba(0, 0, 0, 0.12) 0 1px 5px 0;
}

.withdraw-control-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.8fr) minmax(360px, 1.2fr);
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
}

.withdraw-control-left,
.withdraw-filter-switches {
  display: grid;
  gap: 8px;
}

.withdraw-control-title,
.local-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.withdraw-control-title strong,
.local-switch strong {
  color: var(--text);
}

.withdraw-limit-list {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  background: #fffaf0;
  font-size: 12.5px;
}

.withdraw-limit-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.withdraw-limit-list small {
  color: var(--muted);
}

.link-warning {
  border: 0;
  color: #ff9100;
  background: transparent;
  padding: 0 4px;
  min-height: 24px;
}

.link-warning:hover {
  border-color: transparent;
  background: #fff7ed;
}

.form-actions.full {
  grid-column: 1 / -1;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  min-height: 32px;
  padding: 0 12px;
  cursor: pointer;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

button:hover {
  border-color: var(--primary);
}

button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

button.primary:hover {
  background: var(--primary-strong);
}

button.secondary {
  background: #edf2f7;
  color: #1f3b57;
}

button.danger {
  color: var(--danger);
  border-color: #e5b5b1;
}

button.icon-button {
  width: 36px;
  padding: 0;
  font-size: 22px;
}

.grid {
  display: grid;
  gap: 14px;
}

.metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 22px 14px;
}

.metrics.no-margin {
  margin: 0;
}

.metric,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric {
  padding: 12px 14px;
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(60, 141, 188, 0.08), #fff 44%);
}

.metric:nth-child(2n) {
  border-left-color: var(--teal);
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.08), #fff 44%);
}

.metric:nth-child(3n) {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), #fff 44%);
}

.metric:nth-child(4n) {
  border-left-color: var(--purple);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), #fff 44%);
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 19px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.panel {
  padding: 14px;
  margin: 0 22px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.panel-header h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quick-links,
.switch-grid,
.doc-grid,
.checkbox-grid {
  display: grid;
  gap: 12px;
}

.quick-links {
  grid-template-columns: repeat(auto-fit, minmax(170px, max-content));
}

.notice-list {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  line-height: 1.7;
}

.notice-list li {
  margin: 4px 0;
}

.code-block {
  display: block;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #c9d7e8;
  border-radius: 6px;
  background: #f7fbff;
  color: #102a43;
  font-size: 12px;
  line-height: 1.45;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  min-height: 0;
  font-weight: 650;
}

.link-button:hover {
  border-color: transparent;
  text-decoration: underline;
}

.route-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.route-chips code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafc;
  color: #344054;
  font-size: 11px;
}

.doc-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.doc-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.doc-list {
  margin: 0 0 12px 20px;
  color: var(--muted);
}

.doc-list li {
  margin: 6px 0;
}

.checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.check-item input {
  width: 18px;
  min-height: 18px;
}

.switch-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-weight: 500;
}

.switch-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
}

.switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  min-height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
}

.slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

.mini-switch {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
}

.mini-switch.inline {
  width: 58px;
  height: 34px;
}

.mini-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  min-height: 0;
  cursor: pointer;
}

.mini-slider {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 7px;
  height: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.42);
  transition: background 0.16s ease;
}

.mini-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: -3px;
  top: -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.2) 0 2px 1px -1px, rgba(0, 0, 0, 0.14) 0 1px 1px 0, rgba(0, 0, 0, 0.12) 0 1px 3px 0;
  transition: transform 0.16s ease, background 0.16s ease;
}

.mini-switch input:checked + .mini-slider {
  background: var(--mui-blue);
}

.mini-switch input:checked + .mini-slider::before {
  transform: translateX(20px);
  background: var(--mui-blue);
}

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

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 12px;
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--text);
}

.filter-panel {
  margin: 0 22px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px 14px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #2d3748;
  font-weight: 650;
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  min-height: 32px;
  padding: 7px 9px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(10, 111, 189, 0.18);
  border-color: var(--primary);
}

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

.batch-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.batch-steps div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  color: #344054;
  font-size: 13px;
}

.batch-steps.file div:first-child,
.batch-steps.text div:nth-child(3),
.batch-steps.rows div:nth-child(2) {
  border-color: rgba(10, 111, 189, 0.35);
  background: #f1f8fd;
}

.batch-steps strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
}

.batch-form {
  align-items: end;
}

.batch-entry-panel textarea {
  min-height: 170px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.batch-upload {
  display: grid;
  gap: 12px;
}

.file-drop {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 130px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}

.file-drop:hover {
  border-color: var(--primary);
  background: #f3f8fc;
}

.file-drop input {
  display: none;
}

.file-drop strong {
  color: var(--text);
  font-size: 15px;
}

.batch-row-entry {
  display: grid;
  grid-template-columns: 120px 140px minmax(160px, 1fr) minmax(200px, 1fr) 120px minmax(150px, 1fr) 110px;
  gap: 12px;
  align-items: end;
}

.row-entry-action {
  align-self: end;
}

.subtle-panel {
  background: #fbfdff;
}

.notice-panel {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #b7d8f6;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  background: #f3f9ff;
}

.notice-panel span {
  color: var(--muted);
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.compact-list li {
  margin: 6px 0;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.table-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fbfdff;
  color: #344054;
  font-size: 12px;
}

.table-wrap + .table-summary {
  margin-top: -1px;
}

.table-meta {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fbfdff;
  font-size: 12px;
}

.pagination-bar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.pagination-bar select {
  min-height: 28px;
  padding: 0 22px 0 8px;
  font-size: 12px;
}

.pagination-bar button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
  table-layout: auto;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 5px 7px;
  vertical-align: top;
  font-size: 11.5px;
  line-height: 1.32;
  max-width: 240px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

th {
  background: #f3f7fb;
  color: #24384a;
  font-weight: 750;
  white-space: nowrap;
}

td button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11.5px;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
  background: #edf2f7;
}

.status.enabled,
.status.success {
  color: var(--success);
  background: #e7f6ef;
}

.status.pending {
  color: var(--warning);
  background: #fff4df;
}

.status.failed,
.status.disabled {
  color: var(--danger);
  background: #fbe9e7;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal-backdrop.hidden,
.hidden {
  display: none;
}

.modal-panel {
  width: min(1040px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  border: 1px solid var(--line);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

#modal-body {
  padding: 20px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #17202a;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  max-width: 420px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  background: #101828;
  color: #e6edf5;
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
}

.muted {
  color: var(--muted);
}

@media (max-width: 640px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .metrics,
  .form-grid,
  .filter-grid,
  .batch-steps,
  .batch-row-entry {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  .global-header {
    position: static;
    height: auto;
    min-height: 50px;
    flex-wrap: wrap;
    padding: 8px;
  }

  .header-left,
  .header-right {
    flex-wrap: wrap;
    gap: 8px;
  }

  .withdraw-control-grid {
    grid-template-columns: 1fr;
  }
}
