:root {
  --ink: #101820;
  --ink-soft: #26323c;
  --muted: #71808c;
  --muted-2: #9aa6af;
  --line: #e4e9ed;
  --line-strong: #d3dbe1;
  --paper: #f5f7f8;
  --white: #ffffff;
  --teal: #17b897;
  --teal-deep: #087e6c;
  --teal-soft: #e2f7f1;
  --blue: #4779e8;
  --blue-soft: #eaf0ff;
  --amber: #dc9a32;
  --amber-soft: #fff4dc;
  --red: #d65f63;
  --red-soft: #fcebed;
  --purple: #7b62c5;
  --purple-soft: #f0edfb;
  --shadow: 0 10px 30px rgba(16, 24, 32, .06);
  --shadow-lg: 0 22px 60px rgba(16, 24, 32, .16);
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, #app { min-height: 100%; margin: 0; }
body { min-width: 320px; overflow-x: hidden; background: var(--paper); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(71, 121, 232, .24);
  outline-offset: 2px;
}
a { color: inherit; text-decoration: none; }

.icon { width: 17px; height: 17px; stroke-width: 1.9; flex: 0 0 auto; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 26px; height: 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Shared controls */
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--teal); border-color: var(--teal); }
.button.primary:hover { background: #109d83; border-color: #109d83; }
.button.secondary { color: var(--ink); background: var(--white); border-color: var(--line-strong); }
.button.secondary:hover { border-color: var(--teal); color: var(--teal-deep); }
.button.ghost { color: var(--muted); background: transparent; border-color: transparent; }
.button.ghost:hover { color: var(--ink); background: #eef2f4; }
.button.danger { color: #ad3d45; background: var(--red-soft); border-color: #f6cdd0; }
.button.compact { min-height: 32px; padding: 0 10px; font-size: 12px; }
.icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: all .18s ease;
}
.icon-button:hover { color: var(--ink); background: #eef2f4; }
.icon-button.bordered { border-color: var(--line-strong); background: var(--white); }
.icon-button.bordered:hover { color: var(--teal-deep); border-color: var(--teal); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.pill.success { color: #087e6c; background: var(--teal-soft); }
.pill.warning { color: #9a6815; background: var(--amber-soft); }
.pill.danger { color: #a94750; background: var(--red-soft); }
.pill.info { color: #4267bb; background: var(--blue-soft); }
.pill.neutral { color: #63717b; background: #eef1f3; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eyebrow {
  margin: 0 0 5px;
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.page-title { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 800; }
.page-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.mono { font-family: "Segoe UI", ui-monospace, monospace; }

/* Admin shell */
.admin-shell { min-height: 100vh; display: flex; background: var(--paper); }
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 248px;
  display: flex;
  flex-direction: column;
  padding: 24px 14px 16px;
  color: #d9e3e8;
  background: var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 25px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--teal);
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 800;
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { color: #fff; font-size: 15px; font-weight: 800; }
.brand-copy span { color: #7d909b; font-size: 10px; }
.tenant-switcher {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  margin-bottom: 24px;
  color: #e3edf0;
  text-align: left;
  background: #192630;
  border: 1px solid #2a3944;
  border-radius: 6px;
}
.tenant-avatar { width: 28px; height: 28px; display: grid; place-items: center; color: #0f4d44; background: #98e5d4; border-radius: 5px; font-size: 12px; font-weight: 800; }
.tenant-copy { min-width: 0; display: grid; gap: 2px; flex: 1; }
.tenant-copy strong { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tenant-copy span { color: #80929c; font-size: 10px; }
.tenant-switcher .icon { color: #81939d; width: 14px; }
.nav-section-label { padding: 0 12px 8px; color: #667985; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.sidebar-nav { display: grid; gap: 3px; }
.nav-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  color: #91a3ad;
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  transition: color .18s ease, background .18s ease;
}
.nav-item:hover { color: #fff; background: #1a2933; }
.nav-item.active { color: #fff; background: #1d403d; box-shadow: inset 3px 0 0 var(--teal); }
.nav-item.active .icon { color: #72ddc5; }
.nav-item .icon { width: 18px; color: #718590; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; color: #fff; background: #b9555e; border-radius: 999px; font-size: 10px; }
.sidebar-spacer { flex: 1; }
.sidebar-status { display: flex; align-items: center; gap: 9px; padding: 13px 12px; margin: 12px 0; border-top: 1px solid #263741; border-bottom: 1px solid #263741; }
.status-light { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(23,184,151,.12); }
.sidebar-status div { display: grid; gap: 2px; }
.sidebar-status span { color: #728590; font-size: 10px; }
.sidebar-status strong { color: #d8e4e8; font-size: 11px; }
.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 9px 10px; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; color: #245b52; background: #a7e7da; border-radius: 50%; font-size: 11px; font-weight: 800; }
.sidebar-user-copy { min-width: 0; display: grid; gap: 2px; flex: 1; }
.sidebar-user-copy strong { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy span { color: #728590; font-size: 10px; }
.sidebar-user-menu { color: #778b95; }
.main-shell { width: calc(100% - 248px); min-width: 0; margin-left: 248px; }
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 36px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mobile-menu { display: none; }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.crumb strong { color: var(--ink); font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.date-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.date-chip .icon { width: 15px; }
.topbar-divider { width: 1px; height: 24px; margin: 0 5px; background: var(--line); }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; background: var(--red); border: 2px solid #fff; border-radius: 50%; }
.profile-trigger { display: flex; align-items: center; gap: 8px; padding: 4px 7px 4px 4px; color: var(--ink); background: transparent; border: 0; border-radius: 6px; }
.profile-trigger:hover { background: #f0f3f4; }
.profile-trigger .avatar { width: 32px; height: 32px; }
.profile-trigger-copy { display: grid; gap: 1px; text-align: left; }
.profile-trigger-copy strong { font-size: 12px; }
.profile-trigger-copy span { color: var(--muted); font-size: 10px; }
.profile-trigger > .icon { width: 14px; color: var(--muted); }
.page-content { max-width: 1600px; padding: 32px 36px 48px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading-actions { display: flex; align-items: center; gap: 8px; }

/* Dashboard */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card { min-height: 130px; padding: 18px 19px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 0 rgba(16,24,32,.01); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; }
.kpi-icon.teal { color: var(--teal-deep); background: var(--teal-soft); }
.kpi-icon.blue { color: #4166bd; background: var(--blue-soft); }
.kpi-icon.amber { color: #9a6815; background: var(--amber-soft); }
.kpi-icon.purple { color: #6b54b3; background: var(--purple-soft); }
.kpi-value { margin: 13px 0 4px; font-family: "DM Sans", sans-serif; font-size: 25px; font-weight: 700; line-height: 1; }
.kpi-foot { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.trend-up { color: var(--teal-deep); font-weight: 700; }
.trend-down { color: var(--red); font-weight: 700; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .85fr); gap: 18px; align-items: start; }
.payment-net-panel { margin-bottom: 18px; overflow: hidden; }
.payment-net-today-label { display: flex; align-items: center; gap: 7px; padding: 10px 19px; color: var(--muted); background: #f4fbf9; border-bottom: 1px solid var(--line); font-size: 11px; }
.payment-net-today-label .icon { width: 15px; color: var(--teal-deep); }
.payment-net-today-label strong { color: var(--ink-soft); font-size: 12px; }
.payment-net-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line); }
.payment-net-metric { min-width: 0; padding: 18px 19px; border-right: 1px solid var(--line); }
.payment-net-metric:last-child { border-right: 0; }
.payment-net-metric > span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.payment-net-metric > strong { display: block; margin: 9px 0 5px; font-family: "DM Sans", sans-serif; font-size: 24px; line-height: 1.15; }
.payment-net-metric > small { color: var(--muted); font-size: 11px; }
.payment-net-metric.fee > strong { color: #bd565e; }
.payment-net-metric.net > strong { color: var(--teal-deep); }
.payment-net-filter { display: flex; align-items: end; gap: 10px; padding: 13px 18px; background: #fafbfb; border-bottom: 1px solid var(--line); }
.payment-net-filter .field { width: 168px; gap: 5px; }
.payment-net-filter .field input { min-height: 34px; padding-right: 9px; background: var(--white); }
.payment-net-filter-actions { display: flex; align-items: center; gap: 7px; }
.payment-net-table .today-row { background: #f4fbf9; }
.payment-net-table .fee-amount { color: #bd565e; }
.payment-net-table .net-amount { color: var(--teal-deep); font-weight: 800; }
.payment-net-table .payment-net-empty-row td { height: 88px; color: var(--muted); text-align: center; }
.payment-net-date { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 400; }
.payment-net-pagination .icon-button { width: 32px; height: 32px; }
.payment-net-note { display: flex; align-items: flex-start; gap: 8px; padding: 13px 19px; color: var(--muted); background: #fafbfb; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.6; }
.payment-net-note .icon { width: 16px; min-width: 16px; margin-top: 1px; color: var(--teal-deep); }
.payment-net-unavailable { padding: 22px; }
.stack { display: grid; gap: 18px; min-width: 0; }
.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.panel-header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.panel-heading { min-width: 0; }
.panel-heading h2 { margin: 0; font-size: 15px; font-weight: 800; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-actions { display: flex; align-items: center; gap: 7px; }
.range-tabs { display: flex; gap: 2px; padding: 3px; background: #f1f4f5; border-radius: 5px; }
.range-tab { min-height: 26px; padding: 0 8px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; font-size: 10px; font-weight: 700; }
.range-tab.active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(16,24,32,.08); }
.chart-wrap { padding: 16px 19px 10px; }
.chart-summary { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.chart-summary strong { font-family: "DM Sans", sans-serif; font-size: 24px; }
.chart-summary span { color: var(--teal-deep); font-size: 11px; font-weight: 700; }
.chart { width: 100%; height: 208px; display: block; overflow: visible; }
.chart-grid-line { stroke: #edf1f3; stroke-width: 1; }
.chart-area { fill: rgba(23,184,151,.10); }
.chart-line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: #fff; stroke: var(--teal); stroke-width: 2; }
.chart-label { fill: #94a0a8; font-family: "DM Sans", sans-serif; font-size: 10px; }
.chart-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.legend-line { width: 16px; height: 2px; background: var(--teal); }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { padding: 10px 19px; color: #95a0a8; font-size: 10px; font-weight: 700; text-align: left; background: #fafbfb; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 12px 19px; color: #34414a; font-size: 12px; border-bottom: 1px solid #eff2f3; vertical-align: middle; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table th:last-child, .mini-table td:last-child { text-align: right; }
.game-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.game-badge { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 6px; font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 800; }
.game-badge.teal { background: #188c7a; }
.game-badge.blue { background: #5379d5; }
.game-badge.amber { background: #c18732; }
.game-badge.purple { background: #7861b5; }
.game-cell-copy { min-width: 0; display: grid; gap: 2px; }
.game-cell-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.game-cell-copy span { color: var(--muted); font-size: 10px; }
.amount { font-family: "DM Sans", sans-serif; font-weight: 700; }
.activity-list { padding: 3px 19px 8px; }
.activity-item { display: flex; gap: 11px; padding: 14px 0; border-bottom: 1px solid #eff2f3; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; }
.activity-icon.teal { color: var(--teal-deep); background: var(--teal-soft); }
.activity-icon.blue { color: #4267bd; background: var(--blue-soft); }
.activity-icon.amber { color: #9a6815; background: var(--amber-soft); }
.activity-copy { min-width: 0; display: grid; gap: 4px; }
.activity-copy strong { color: #293640; font-size: 12px; font-weight: 700; }
.activity-copy span { color: var(--muted); font-size: 10px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 16px 19px; }
.quick-action { min-height: 68px; display: flex; align-items: center; gap: 10px; padding: 11px; color: var(--ink); text-align: left; background: #fafbfb; border: 1px solid var(--line); border-radius: 6px; }
.quick-action:hover { border-color: var(--teal); background: #f6fcfa; }
.quick-action .icon-wrap { width: 30px; height: 30px; display: grid; place-items: center; color: var(--teal-deep); background: var(--teal-soft); border-radius: 5px; }
.quick-action strong { display: block; font-size: 11px; }
.quick-action span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

/* Tables and section pages */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.filter-tabs { display: flex; align-items: center; gap: 3px; overflow-x: auto; }
.filter-tab { min-height: 30px; padding: 0 10px; color: var(--muted); background: transparent; border: 0; border-radius: 5px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.filter-tab:hover { color: var(--ink); background: #f0f3f4; }
.filter-tab.active { color: var(--teal-deep); background: var(--teal-soft); }
.search-box { width: 210px; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 10px; color: var(--muted); background: #fafbfb; border: 1px solid var(--line-strong); border-radius: 5px; }
.search-box .icon { width: 15px; }
.search-box input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }
.search-box input::placeholder { color: #a0abb2; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th { height: 41px; padding: 0 18px; color: #94a0a8; background: #fafbfb; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; text-align: left; white-space: nowrap; }
.data-table td { padding: 14px 18px; color: #3e4b54; border-bottom: 1px solid #eff2f3; font-size: 12px; vertical-align: middle; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdfd; }
.data-table th:last-child, .data-table td:last-child { text-align: right; }
.table-main { display: grid; gap: 3px; }
.table-main strong { color: var(--ink); font-size: 12px; font-weight: 700; }
.table-main span { color: var(--muted); font-size: 10px; }
.link-code { display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px; color: var(--teal-deep); background: #effaf7; border: 1px solid #d6f1ea; border-radius: 4px; font-family: "DM Sans", monospace; font-size: 11px; font-weight: 700; }
.action-row { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; }
.empty-state { display: grid; place-items: center; gap: 7px; min-height: 190px; padding: 30px; color: var(--muted); text-align: center; }
.empty-state .empty-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted-2); background: #f0f3f4; border-radius: 7px; }
.empty-state strong { color: var(--ink-soft); font-size: 13px; }
.empty-state span { font-size: 11px; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.pagination-actions { display: flex; align-items: center; gap: 5px; }
.page-number { min-width: 28px; height: 28px; display: grid; place-items: center; color: var(--teal-deep); background: var(--teal-soft); border-radius: 5px; font-weight: 700; }
.section-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.section-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sub-card { padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.sub-card h3 { margin: 0; font-size: 14px; font-weight: 800; }
.sub-card > p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.metric-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 18px; }
.metric-row strong { font-family: "DM Sans", sans-serif; font-size: 26px; }
.metric-row span { color: var(--muted); font-size: 11px; }
.progress { height: 7px; overflow: hidden; margin-top: 13px; background: #edf1f2; border-radius: 99px; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.progress.blue > span { background: var(--blue); }
.progress.amber > span { background: var(--amber); }
.card-list { display: grid; gap: 8px; margin-top: 17px; }
.card-list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eff2f3; }
.card-list-row:last-child { border-bottom: 0; }
.card-list-row > span:first-child { color: var(--muted); font-size: 11px; }
.card-list-row > strong { color: var(--ink); font-size: 12px; text-align: right; }
.game-card { position: relative; padding: 17px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.game-card.is-disabled { background: #f8fafc; }
.game-card.is-disabled .game-badge { filter: grayscale(1); opacity: .68; }
.game-card-header { display: flex; align-items: flex-start; gap: 11px; }
.game-card-header .game-badge { width: 38px; height: 38px; font-size: 12px; }
.game-card-title { min-width: 0; flex: 1; }
.game-card-title h3 { overflow: hidden; margin: 0; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.game-card-title p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.game-card-menu { margin: -6px -7px 0 0; }
.game-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 15px 0 13px; margin-top: 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-card-stats div { display: grid; gap: 4px; }
.game-card-stats span { color: var(--muted); font-size: 10px; }
.game-card-stats strong { font-family: "DM Sans", sans-serif; font-size: 15px; }
.game-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; }
.health { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-deep); font-size: 10px; font-weight: 700; }
.health.offline { color: var(--red); }
.health .dot { width: 6px; height: 6px; }

/* Settlement */
.balance-card { min-height: 176px; padding: 21px; color: #fff; background: var(--ink); border-radius: 8px; }
.balance-card .eyebrow { color: #7bdcc7; }
.balance-card h2 { margin: 3px 0 0; font-family: "DM Sans", sans-serif; font-size: 32px; font-weight: 700; }
.balance-card p { margin: 8px 0 20px; color: #91a4ae; font-size: 11px; }
.balance-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.balance-footer span { color: #91a4ae; font-size: 11px; }
.balance-footer strong { color: #d8f8f1; font-family: "DM Sans", sans-serif; font-size: 14px; }
.settlement-status { padding: 17px; background: #f8fbfa; border: 1px solid #dcefe9; border-radius: 8px; }
.settlement-status-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.settlement-status h3 { margin: 0; font-size: 13px; }
.settlement-status p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.settlement-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 19px; }
.settlement-step { position: relative; display: grid; justify-items: center; gap: 7px; color: var(--muted); font-size: 10px; text-align: center; }
.settlement-step:not(:last-child)::after { content: ""; position: absolute; top: 11px; left: calc(50% + 14px); width: calc(100% - 28px); height: 1px; background: #cfe7e1; }
.settlement-step .step-icon { z-index: 1; width: 23px; height: 23px; display: grid; place-items: center; color: var(--teal-deep); background: #d9f4ed; border: 4px solid #f8fbfa; border-radius: 50%; }
.settlement-step.current { color: var(--ink); font-weight: 700; }
.settlement-step.current .step-icon { color: #fff; background: var(--teal); }

/* Bridge */
.bridge-card { display: flex; align-items: center; gap: 15px; padding: 17px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.bridge-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #4167bc; background: var(--blue-soft); border-radius: 7px; }
.bridge-copy { min-width: 0; flex: 1; }
.bridge-copy h3 { overflow: hidden; margin: 0; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.bridge-copy p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.bridge-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; }
.bridge-meta strong { color: var(--ink-soft); font-family: "DM Sans", sans-serif; }
.capability-list { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 190px; }
.capability { min-width: 58px; min-height: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 7px; border-radius: 4px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.capability .icon { width: 12px; height: 12px; }
.capability.ready { color: #087e6c; background: var(--teal-soft); }
.capability.warning { color: #9a6815; background: var(--amber-soft); }
.capability.offline { color: #63717b; background: #eef1f3; }
.zone-view-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 7px;
  margin-bottom: 14px;
  background: #e9eef1;
  border: 1px solid #dce3e7;
  border-radius: 8px;
}
.zone-view-tab {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
}
.zone-view-tab:hover { color: var(--ink); background: rgba(255,255,255,.58); }
.zone-view-tab.active { color: var(--ink); background: #fff; border-color: #d7e0e4; box-shadow: 0 2px 7px rgba(16,24,32,.06); }
.zone-view-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #4166bd; background: var(--blue-soft); border-radius: 6px; }
.zone-view-tab.active .zone-view-icon { color: var(--teal-deep); background: var(--teal-soft); }
.zone-view-tab > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.zone-view-tab strong { color: inherit; font-size: 12px; }
.zone-view-tab small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.zone-view-tab b { min-width: 24px; height: 24px; display: grid; place-items: center; color: var(--ink-soft); background: #f4f6f7; border-radius: 50%; font-size: 10px; }
.zone-view-tab.active b { color: var(--teal-deep); background: var(--teal-soft); }
.zone-view-panel { overflow: hidden; }
.zone-view-total { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.zone-system-status { margin-top: 18px; }
.zone-system-status .compact-list { padding: 2px 19px 11px; margin-top: 0; }
.role-query-panel { position: relative; overflow: visible; }
.role-query-form {
  display: grid;
  grid-template-columns: minmax(220px, .95fr) minmax(170px, .7fr) minmax(260px, 1.15fr) auto;
  align-items: end;
  gap: 12px;
  padding: 17px 19px 19px;
  border-bottom: 1px solid var(--line);
}
.role-filter-field { min-width: 0; display: grid; gap: 7px; }
.role-filter-field > span:first-child { color: #45535c; font-size: 11px; font-weight: 700; }
.role-filter-field select, .role-picker-trigger, .role-search-input {
  width: 100%;
  height: 40px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}
.role-filter-field select { padding: 0 10px; outline: 0; font-size: 12px; }
.role-filter-field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,184,151,.12); }
.role-zone-picker { position: relative; }
.role-picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; text-align: left; }
.role-picker-trigger:hover { border-color: #aebcc5; }
.role-picker-trigger > span { min-width: 0; display: flex; align-items: center; gap: 8px; }
.role-picker-trigger strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.role-picker-trigger .icon { width: 15px; color: var(--muted); }
.role-zone-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 310px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}
.role-zone-option-list { max-height: 260px; overflow-y: auto; padding: 5px; }
.role-zone-option {
  position: relative;
  min-height: 49px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 4px;
  cursor: pointer;
}
.role-zone-option.all { min-height: 52px; padding: 8px 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
.role-zone-option:hover { background: #f3f7f7; }
.role-option-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.role-option-check { width: 18px; height: 18px; display: grid; place-items: center; color: transparent; background: #fff; border: 1px solid #bcc7ce; border-radius: 4px; }
.role-option-check .icon { width: 13px; height: 13px; }
.role-option-input:checked + .role-option-check { color: #fff; background: var(--teal); border-color: var(--teal); }
.role-option-input:focus-visible + .role-option-check { outline: 3px solid rgba(71, 121, 232, .24); outline-offset: 2px; }
.role-option-copy { min-width: 0; display: grid; gap: 3px; }
.role-option-copy strong { overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.role-option-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.role-zone-menu-empty { display: block; padding: 20px; color: var(--muted); text-align: center; font-size: 11px; }
.role-search-input { display: flex; align-items: center; gap: 7px; padding: 0 10px; }
.role-search-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,184,151,.12); }
.role-search-input .icon { width: 15px; color: var(--muted); }
.role-search-with-mode select {
  width: 116px;
  height: 26px;
  flex: 0 0 auto;
  padding: 0 22px 0 0;
  color: var(--ink-soft);
  background-color: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  font-size: 11px;
}
.role-search-input input { width: 100%; min-width: 0; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 12px; }
.role-search-input input::placeholder { color: #9aa6af; }
.role-query-submit { min-width: 92px; height: 40px; }
.role-zone-errors { display: flex; align-items: flex-start; gap: 9px; padding: 11px 18px; color: #805d1c; background: #fff9ed; border-bottom: 1px solid #f0dfb5; }
.role-zone-errors > .icon { width: 16px; margin-top: 1px; }
.role-zone-errors div { min-width: 0; display: grid; gap: 3px; }
.role-zone-errors strong { font-size: 11px; }
.role-zone-errors span { font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.role-query-state { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 30px; color: var(--muted); text-align: center; }
.role-query-state .empty-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #86949d; background: #eef2f4; border-radius: 7px; }
.role-query-state > .icon { width: 24px; height: 24px; color: var(--teal); }
.role-query-state strong { color: var(--ink-soft); font-size: 13px; }
.role-query-state span:not(.empty-icon) { max-width: 520px; font-size: 11px; line-height: 1.6; }
.role-query-state.error .empty-icon { color: var(--red); background: var(--red-soft); }
.role-results-scroll { max-height: 580px; }
.role-results-table { min-width: 1420px; }
.role-results-table tbody tr:hover { background: #fbfdfd; }
.role-account { overflow-wrap: anywhere; }
.point-balance { display: inline-block; min-width: 76px; color: #087e6c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.point-balance.loading { color: var(--muted); font-weight: 600; }
.player-detail-toolbar { align-items: flex-end; }
.player-detail-filters { align-items: flex-end; flex-wrap: wrap; }
.player-detail-filters label { min-width: 142px; display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.player-detail-filters select { width: 100%; height: 34px; padding: 0 30px 0 9px; color: var(--ink-soft); background: #fafbfb; border: 1px solid var(--line-strong); border-radius: 5px; outline: 0; font-size: 11px; }
.player-detail-filters select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,184,151,.12); }
.player-detail-table { min-width: 1080px; }
.account-results-table { min-width: 1180px; }
.order-manual-points-button { white-space: nowrap; }
.api-box { padding: 14px; margin-top: 17px; color: #c8d8df; background: #18252e; border-radius: 6px; }
.api-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.api-box-head span { color: #8da2ad; font-size: 10px; }
.api-box code { display: block; overflow: auto; color: #b6eedf; font-family: "DM Sans", monospace; font-size: 11px; line-height: 1.7; white-space: pre; }

/* Form / modal */
.modal-backdrop { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(9, 18, 24, .56); }
.modal {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.modal.wide { width: min(760px, 100%); }
.modal.zone-wide { width: min(1120px, 100%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 17px; font-weight: 800; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.modal-body { padding: 20px 22px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; background: #fafbfb; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.zone-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zone-form-grid .span-2 { grid-column: span 2; }
.zone-type-field { display: flex; align-items: center; gap: 20px; }
.zone-type-field > strong { color: var(--ink); font-size: 13px; }
.db-version-control { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.db-version-control label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 12px; font-weight: 700; cursor: pointer; }
.db-version-control input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
.field .mysql-connection-mode-control { min-height: 38px; align-content: center; gap: 20px; }
.field .mysql-connection-mode-control label { flex: 0 0 auto; white-space: nowrap; }
.admin-shell .field .mysql-connection-mode-control input[type="radio"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
.admin-shell .field .mysql-connection-mode-control input[type="radio"]:focus { box-shadow: none; }
.form-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 0 10px; margin-top: 18px; border-top: 1px solid var(--line); }
.form-section-title:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.form-section-title strong { color: var(--ink); font-size: 13px; }
.form-section-title span { color: var(--muted); font-size: 10px; text-align: right; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field > span { color: #45535c; font-size: 11px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: 0;
  font-size: 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 82px; padding: 10px 11px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,184,151,.12); }
.field-help { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.5; }
.settlement-qr-upload { min-height: 76px; display: grid; align-items: center; padding: 10px 12px; background: #f8fafb; border: 1px dashed #b8c8ce; border-radius: 6px; cursor: pointer; }
.settlement-qr-upload:hover { background: #f3f8f7; border-color: var(--teal); }
.settlement-qr-upload > input { position: absolute; width: 1px; min-height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.settlement-qr-upload-empty, .settlement-qr-upload-preview { min-width: 0; display: flex; align-items: center; gap: 11px; }
.settlement-qr-upload-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--teal-deep); background: var(--teal-soft); border-radius: 6px; }
.settlement-qr-upload-empty > span:last-child, .settlement-qr-upload-preview > span { min-width: 0; display: grid; gap: 3px; }
.settlement-qr-upload-empty strong, .settlement-qr-upload-preview strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.settlement-qr-upload-empty small, .settlement-qr-upload-preview small { color: var(--muted); font-size: 10px; font-weight: 400; }
.settlement-qr-upload-preview img { width: 54px; height: 54px; flex: 0 0 auto; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.settlement-qr-link { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; color: var(--teal-deep); background: #f1faf8; border: 1px solid #cde8e1; border-radius: 5px; font-size: 10px; font-weight: 700; }
.settlement-qr-link:hover { color: #075d51; background: #e6f6f2; border-color: #9fd2c5; }
.settlement-qr-link .icon { width: 13px; height: 13px; }
.settlement-review { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 15px; align-items: stretch; }
.settlement-qr-review { min-height: 170px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 9px; color: var(--teal-deep); background: #f8fafb; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; font-weight: 700; }
.settlement-qr-review:hover { background: #f1faf8; border-color: #9fd2c5; }
.settlement-qr-review img { width: 128px; height: 128px; object-fit: contain; background: #fff; }
.settlement-qr-review span { display: inline-flex; align-items: center; gap: 5px; }
.settlement-qr-review .icon { width: 13px; height: 13px; }
.settlement-qr-missing { min-height: 170px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); background: #f8fafb; border: 1px dashed var(--line-strong); border-radius: 6px; font-size: 10px; }
.settlement-qr-missing .icon { width: 24px; height: 24px; }
.settlement-qr-full { display: grid; justify-items: center; gap: 15px; }
.settlement-qr-full img { width: min(360px, 100%); aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.settlement-qr-full > div { display: grid; gap: 4px; text-align: center; }
.settlement-qr-full strong { color: var(--ink); font-size: 18px; }
.settlement-qr-full span { max-width: 420px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.link-zone-picker { position: relative; }
.link-zone-picker > summary { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 11px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; cursor: pointer; font-size: 12px; list-style: none; }
.link-zone-picker > summary::-webkit-details-marker { display: none; }
.link-zone-picker[open] > summary { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,184,151,.12); }
.link-zone-picker[open] > summary .icon { transform: rotate(180deg); }
.link-zone-options { max-height: 230px; display: grid; gap: 5px; padding: 7px; margin-top: 6px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 26px rgba(16, 31, 40, .12); }
.link-zone-option { min-height: 48px; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; align-items: center; padding: 7px 9px; border-radius: 4px; cursor: pointer; }
.link-zone-option:hover { background: #f3f8f7; }
.link-zone-option input { position: absolute; width: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.link-zone-check { width: 18px; height: 18px; display: grid; place-items: center; color: transparent; background: #fff; border: 1px solid #bdc9ce; border-radius: 4px; }
.link-zone-check .icon { width: 12px; height: 12px; }
.link-zone-option input:checked + .link-zone-check { color: #fff; background: var(--teal); border-color: var(--teal); }
.link-zone-option > span:last-child { min-width: 0; display: grid; gap: 2px; }
.link-zone-option strong { color: var(--ink); font-size: 11px; }
.link-zone-option small, .link-zone-empty { color: var(--muted); font-size: 10px; line-height: 1.45; }
.link-zone-empty { display: block; padding: 12px; text-align: center; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.option-check { min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 11px; color: var(--ink-soft); background: #f8fafb; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; font-weight: 600; }
.option-check input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--teal); box-shadow: none; }
.zone-option-list { display: grid; gap: 8px; }
.option-check.detailed { min-height: 50px; align-items: flex-start; padding: 9px 11px; }
.option-check.detailed > input { flex: 0 0 auto; margin-top: 2px; }
.option-check.detailed > span { min-width: 0; display: grid; gap: 3px; }
.option-check.detailed strong { color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.option-check.detailed small { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.45; }
.option-with-config { display: grid; gap: 7px; }
.option-dependent { padding: 12px; background: #f5f8f9; border-left: 3px solid #55a894; }
.option-dependent[hidden] { display: none; }
.option-dependent .field { max-width: 280px; }
.recharge-config-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.recharge-config-fieldset[hidden] { display: none; }
.recharge-type-control { width: min(520px, 100%); }
.recharge-item-editor { display: grid; gap: 10px; margin-top: 12px; }
.recharge-package-list { display: grid; gap: 14px; margin-bottom: 12px; }
.recharge-package-editor { min-width: 0; padding: 14px 16px; background: #f6f9f8; border: 0; border-left: 3px solid #68a99a; border-radius: 4px; }
.recharge-package-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 11px; }
.recharge-package-heading > div { display: grid; gap: 2px; }
.recharge-package-heading strong { color: var(--ink); font-size: 13px; }
.recharge-package-heading span { color: var(--muted); font-size: 10px; }
.recharge-package-fields { margin-top: 12px; }
.recharge-item-editor-head,
.recharge-item-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) minmax(130px, 1fr) 90px 36px; gap: 8px; align-items: center; }
.recharge-item-editor-head { padding: 5px 5px 2px; color: var(--muted); font-size: 9px; font-weight: 700; }
.recharge-item-row { min-height: 52px; padding: 7px 5px; background: rgba(255,255,255,.76); border-top: 1px solid #e1e8e5; }
.recharge-item-name { min-width: 0; display: grid; gap: 3px; }
.recharge-item-name strong { overflow: hidden; color: #263a35; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.recharge-item-name small { color: #7a8984; font-size: 9px; }
.recharge-item-id { min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.recharge-item-id span { color: #87938f; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.recharge-item-id strong { overflow: hidden; color: #45605a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.recharge-item-quantity { min-width: 0; display: grid; gap: 2px; }
.recharge-item-quantity > span { display: none; color: var(--muted); font-size: 8px; }
.recharge-item-quantity input { width: 100%; min-width: 0; height: 34px; padding: 0 9px; color: var(--ink); background: #fff; border: 1px solid #ccd7d2; border-radius: 4px; outline: 0; font-size: 11px; }
.recharge-item-quantity input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,184,151,.1); }
.recharge-item-row .icon-button { width: 36px; height: 36px; }
.recharge-catalog-empty { padding: 14px; color: var(--muted); text-align: center; background: #fff; border: 1px dashed #cbd6d1; border-radius: 5px; font-size: 10px; }
.recharge-catalog-empty[hidden] { display: none; }
.recharge-catalog-picker { display: grid; gap: 9px; padding: 11px; background: #fff; border: 1px solid #d4ded9; border-radius: 5px; }
.recharge-catalog-picker[hidden] { display: none; }
.recharge-catalog-search { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(220px, 1fr) max-content; gap: 8px; }
.recharge-catalog-search select,
.recharge-catalog-search input { width: 100%; min-width: 0; min-height: 38px; }
.recharge-catalog-results { max-height: 240px; display: grid; overflow-y: auto; border-top: 1px solid #e1e7e4; }
.recharge-catalog-results > span { padding: 14px 4px 4px; color: var(--muted); font-size: 10px; }
.recharge-catalog-results > .error-text { color: var(--red); }
.recharge-catalog-results > button { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) max-content 18px; gap: 10px; align-items: center; padding: 9px 4px; color: var(--ink); text-align: left; background: transparent; border: 0; border-bottom: 1px solid #edf1ef; cursor: pointer; }
.recharge-catalog-results > button:hover { background: #f2f8f5; }
.recharge-catalog-results > button > span { min-width: 0; display: grid; gap: 2px; }
.recharge-catalog-results b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.recharge-catalog-results small { color: var(--muted); font-size: 9px; }
.recharge-catalog-results strong { color: #566661; font-size: 10px; }
.recharge-catalog-results .icon { width: 15px; color: var(--teal-deep); }
.x64-config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.x64-config-grid .field { max-width: none; }
.icon-button.danger-icon { color: #b24750; }
.icon-button.danger-icon:hover { color: #962f3a; background: #fff1f2; border-color: #efc6ca; }
.confirm-delete { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
.confirm-delete-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #b24750; background: #fff1f2; border-radius: 6px; }
.confirm-delete strong { color: var(--ink); font-size: 13px; }
.confirm-delete p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.register-code-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); border-radius: 6px; }
.register-code-summary span { min-width: 0; display: grid; gap: 3px; padding: 13px 15px; border-right: 1px solid var(--line); }
.register-code-summary span:last-child { border-right: 0; }
.register-code-summary b { color: var(--ink); font-size: 18px; }
.register-code-summary small { color: var(--muted); font-size: 10px; }
.generated-code-block { margin: 0 0 18px; }
.generated-code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.generated-code-head > div { min-width: 0; display: grid; gap: 3px; }
.generated-code-head strong { color: var(--ink); font-size: 12px; }
.generated-code-head span { color: var(--muted); font-size: 10px; }
.generated-code-block textarea { width: 100%; min-height: 180px; padding: 11px; resize: vertical; color: #173f42; background: #f1faf8; border: 1px solid #cde8e1; border-radius: 5px; outline: 0; font-family: Consolas, monospace; font-size: 11px; line-height: 1.6; }
.register-code-table { min-width: 660px; }
.register-code-detail-table { min-width: 850px; }
.register-code-value { color: #173f42; font-family: Consolas, monospace; font-size: 11px; font-weight: 700; white-space: nowrap; }
.register-code-legacy { margin-bottom: 14px; }
.zone-gift-option { width: min(360px, 100%); margin-top: 18px; }
.payment-channel-panel { margin-bottom: 18px; }
.payment-channel-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 19px 10px; }
.payment-channel-option {
  min-width: 0;
  min-height: 70px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  color: var(--muted);
  text-align: left;
  background: #fafbfb;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  cursor: pointer;
}
.payment-channel-option:disabled { cursor: not-allowed; opacity: .68; }
.payment-channel-option:hover { color: var(--ink); border-color: #a9bac5; }
.payment-channel-option.active { color: var(--ink); background: #f5f8ff; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.payment-channel-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #4267bb; background: var(--blue-soft); border-radius: 6px; }
.payment-channel-icon.amber { color: #956414; background: var(--amber-soft); }
.payment-channel-option > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.payment-channel-option strong { color: inherit; font-size: 12px; }
.payment-channel-option small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.payment-channel-contact { display: flex; align-items: center; gap: 7px; padding: 1px 19px 16px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.payment-channel-contact .icon { width: 14px; }
.payment-config-layout { align-items: start; }
.payment-code-side-panel { position: sticky; top: 18px; }
.payment-config-form { display: grid; gap: 15px; padding: 18px 20px 20px; }
.payment-type-field { min-width: 0; padding: 0; border: 0; }
.payment-type-field legend { padding: 0; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.payment-type-options { display: flex; flex-wrap: wrap; gap: 9px; }
.payment-type-options label { min-width: 132px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--ink-soft); background: #f7fafb; border: 1px solid var(--line-strong); border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 700; }
.payment-type-options label:has(input:checked) { color: var(--teal-deep); background: var(--teal-soft); border-color: #9fd2c5; }
.payment-type-options input { width: 16px; min-height: 16px; accent-color: var(--teal); }
.secret-input { position: relative; display: block; }
.secret-input input { padding-right: 43px; }
.secret-input .icon-button { position: absolute; top: 1px; right: 1px; width: 36px; height: 36px; }
.payment-protocol-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.payment-protocol-strip span { min-width: 0; display: grid; gap: 3px; padding: 10px; color: var(--muted); border-right: 1px solid var(--line); font-size: 10px; }
.payment-protocol-strip span:last-child { border-right: 0; }
.payment-protocol-strip b { color: var(--ink-soft); font-size: 10px; }
.payment-form-actions { display: flex; align-items: center; gap: 8px; }
.payment-status-notice { margin: 2px 19px 17px; }
.payment-callback-body { padding: 0 19px 12px; }
.payment-config-list { padding: 3px 22px 10px; margin-top: 0; }
.compact-list { padding-top: 5px; margin-top: 8px; }
.wrap-value { max-width: 300px; overflow-wrap: anywhere; }
.warning-notice { color: #805d1c; background: #fff9ed; border-color: #f0dfb5; }
.button:disabled, .icon-button:disabled { cursor: wait; opacity: .58; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.switch-copy { display: grid; gap: 3px; }
.switch-copy strong { color: var(--ink); font-size: 12px; }
.switch-copy span { color: var(--muted); font-size: 10px; }
.switch { position: relative; width: 39px; height: 22px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; }
.switch-track { position: absolute; inset: 0; background: #dbe2e5; border-radius: 99px; transition: background .18s ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .18s ease; }
.switch input:checked + .switch-track { background: var(--teal); }
.switch input:checked + .switch-track::after { transform: translateX(17px); }
.secret-field { position: relative; }
.secret-field input { padding-right: 38px; }
.secret-field .icon-button { position: absolute; right: 1px; bottom: 1px; width: 34px; height: 36px; }
.notice-box { display: flex; gap: 9px; padding: 11px 12px; color: #66747d; background: #f5f8f9; border: 1px solid var(--line); border-radius: 5px; font-size: 10px; line-height: 1.6; }
.notice-box .icon { color: var(--blue); width: 15px; margin-top: 1px; }
.modal-error { margin: 12px 0 0; color: #b24750; font-size: 11px; }
.qr-layout { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; }
.qr-box { width: 150px; height: 150px; display: grid; place-items: center; padding: 11px; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; }
.qr-grid { width: 126px; height: 126px; display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr); gap: 0; }
.qr-cell { background: #fff; }
.qr-cell.dark { background: #101820; }
.link-preview { display: grid; gap: 8px; }
.link-preview > span { color: var(--muted); font-size: 10px; }
.link-preview code { overflow-wrap: anywhere; padding: 10px; color: var(--teal-deep); background: #f1faf8; border: 1px solid #d8f0e9; border-radius: 5px; font-family: "DM Sans", monospace; font-size: 11px; line-height: 1.5; }

/* Player portal */
.player-shell { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; color: #f7f3e8; background: #101d1e url('assets/player-portal-bg.jpg') center 22% / cover fixed no-repeat; }
.player-shell::before { content: ""; position: fixed; z-index: -1; inset: 0; background: rgba(8, 18, 20, .68); }
.player-topbar { position: relative; z-index: 3; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); color: #dbe9ec; background: rgba(8, 18, 20, .76); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); }
.player-brand { display: flex; align-items: center; gap: 10px; }
.player-brand .brand-mark { width: 32px; height: 32px; color: #153936; background: #d9b66f; font-size: 15px; }
.player-brand strong { color: #fff; font-size: 14px; }
.player-brand span { margin-left: 7px; color: #aebdc0; font-size: 11px; }
.player-top-actions { display: flex; align-items: center; gap: 8px; }
.player-top-actions .button.ghost { color: #d5dfdf; border-color: rgba(255,255,255,.18); }
.player-top-actions .button.ghost:hover { color: #fff; background: rgba(255,255,255,.1); }
.player-main { position: relative; z-index: 1; width: min(1240px, 100%); min-height: calc(100dvh - 118px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, 510px); gap: 70px; align-items: center; padding: 36px 24px 30px; margin: 0 auto; }
.player-intro { max-width: 580px; padding: 20px 0; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.player-game-emblem { width: 70px; height: 70px; display: grid; place-items: center; margin-bottom: 22px; color: #173b37; background: #d9b66f; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; box-shadow: 0 16px 42px rgba(0,0,0,.28); font-size: 22px; font-weight: 800; }
.player-kicker { margin: 0 0 9px; color: #e6c987; font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.player-intro h1 { max-width: 620px; margin: 0; color: #fff; font-size: 42px; line-height: 1.18; letter-spacing: 0; }
.player-intro-copy { margin: 13px 0 0; color: #d8e1df; font-size: 13px; }
.player-intro-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; max-width: 520px; padding: 0; margin: 30px 0 0; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); border-radius: 7px; box-shadow: 0 18px 42px rgba(0,0,0,.2); backdrop-filter: blur(10px); }
.player-intro-meta > div { min-width: 0; display: grid; gap: 6px; padding: 15px 17px; background: rgba(9,24,25,.6); }
.player-intro-meta dt { color: #aabbb9; font-size: 10px; }
.player-intro-meta dd { overflow: hidden; margin: 0; color: #fff; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.player-live-dot { width: 7px; height: 7px; display: inline-block; margin-right: 6px; background: #58d5a3; border-radius: 50%; box-shadow: 0 0 0 4px rgba(88,213,163,.13); }
.player-console { min-width: 0; overflow: hidden; color: var(--ink); background: rgba(250, 248, 242, .96); border: 1px solid rgba(255,255,255,.52); border-radius: 8px; box-shadow: 0 28px 70px rgba(0,0,0,.38); backdrop-filter: blur(18px); }
.player-console-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px 15px; border-bottom: 1px solid #d9ddd9; }
.player-console-header > div { min-width: 0; display: grid; gap: 4px; }
.player-console-header > div > span { color: #74817e; font-size: 10px; font-weight: 700; }
.player-console-header h2 { margin: 0; color: #172725; font-size: 18px; line-height: 1.25; }
.player-channel { max-width: 150px; display: inline-flex; align-items: center; gap: 6px; overflow: hidden; padding: 6px 8px; color: #49615e; background: #e7ece7; border-radius: 5px; font-family: "DM Sans", sans-serif; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.player-channel .icon { width: 13px; }
.player-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 5px; margin: 16px 22px 0; background: #e6e9e5; border-radius: 6px; }
.player-tab { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #667572; background: transparent; border: 0; border-radius: 4px; font-size: 12px; font-weight: 700; }
.player-tab .icon { width: 15px; }
.player-tab.active { color: #173b37; background: #fff; box-shadow: 0 2px 7px rgba(16,24,32,.1); }
.player-console-body { padding: 19px 22px 22px; }
.player-form { display: grid; gap: 13px; }
.player-external-purchase { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px; border:1px solid #d7c17c; border-radius:6px; background:#fff9e9; }
.player-external-purchase div { display:grid; gap:4px; }
.player-external-purchase span { color:#667177; font-size:11px; line-height:1.6; }
@media (max-width:620px) { .player-external-purchase { align-items:stretch; flex-direction:column; } }
.player-field { min-width: 0; display: grid; gap: 6px; }
.player-field > span { color: #455653; font-size: 11px; font-weight: 700; }
.player-field input, .player-field select { width: 100%; min-width: 0; min-height: 42px; padding: 0 12px; color: #172725; background: rgba(255,255,255,.94); border: 1px solid #c6cfca; border-radius: 5px; outline: 0; font-size: 12px; }
.player-field input::placeholder { color: #8e9a97; }
.player-field input:focus, .player-field select:focus { border-color: #927233; box-shadow: 0 0 0 3px rgba(182,142,68,.14); }
.player-item-bundle { display: grid; overflow: hidden; border: 1px solid #d5ddd8; border-radius: 5px; background: rgba(255,255,255,.72); }
.player-item-bundle > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 9px 11px; border-bottom: 1px solid #e4e9e6; }
.player-item-bundle > div:last-child { border-bottom: 0; }
.player-item-bundle span { min-width: 0; overflow-wrap: anywhere; color: #455653; font-size: 11px; }
.player-item-bundle strong { flex: 0 0 auto; color: #172725; font-size: 11px; }
.player-package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.player-package-card { min-width: 0; min-height: 138px; max-height: 228px; display: grid; grid-template-rows: auto minmax(0, 1fr); align-content: start; gap: 10px; padding: 13px; color: #263733; text-align: left; background: rgba(255,255,255,.86); border: 1px solid #c7d2cd; border-radius: 6px; cursor: pointer; }
.player-package-card:hover { border-color: #8ba69e; background: #fff; }
.player-package-card.active { border-color: #2e8f7d; box-shadow: 0 0 0 2px rgba(46,143,125,.14); }
.player-package-head { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #e1e7e4; }
.player-package-head strong { min-width: 0; overflow-wrap: anywhere; color: #172725; font-size: 14px; line-height: 1.4; }
.player-package-head b { flex: 0 0 auto; color: #8b641b; font-size: 16px; }
.player-package-items { min-height: 0; max-height: 112px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; align-content: start; padding-right: 3px; overflow-y: auto; scrollbar-width: thin; }
.player-package-items > span { min-width: 0; display: flex; align-items: baseline; gap: 3px; color: #465854; font-size: 12px; line-height: 1.4; }
.player-package-items em { min-width: 0; overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.player-package-items i { flex: 0 0 auto; color: #223632; font-size: 12px; font-style: normal; font-weight: 700; }
.player-package-fixed { color: #586964; font-size: 11px; line-height: 1.5; }
.player-bag-confirm { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; color: #614916; background: #fff8e8; border-left: 3px solid #c79532; border-radius: 4px; cursor: pointer; }
.player-bag-confirm input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--teal-deep); }
.player-bag-confirm > span { min-width: 0; display: grid; gap: 3px; }
.player-bag-confirm strong { color: #4a390f; font-size: 13px; line-height: 1.4; }
.player-bag-confirm small { color: #806a3a; font-size: 11px; line-height: 1.55; }
.player-role-query { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px; align-items: center; }
.player-role-query small { min-width: 0; color: #65736f; font-size: 10px; line-height: 1.45; }
.player-role-query .error-text { color: #a33d3d; }
.item-recharge-notice { border-left-color: #b68e44; }
.player-money-input { min-width: 0; display: flex; align-items: center; color: #667572; background: rgba(255,255,255,.94); border: 1px solid #c6cfca; border-radius: 5px; }
.player-money-input > span { flex: 0 0 auto; padding-left: 12px; font-family: "DM Sans", sans-serif; font-weight: 700; }
.player-money-input input { border: 0; background: transparent; box-shadow: none; }
.player-money-input:focus-within { border-color: #927233; box-shadow: 0 0 0 3px rgba(182,142,68,.14); }
.player-custom-amount small { color: #788783; font-size: 10px; }
.player-field-inline { display: flex; gap: 8px; }
.player-field-inline input { flex: 1; }
.role-status { display: flex; align-items: center; gap: 7px; padding: 9px 11px; color: var(--teal-deep); background: var(--teal-soft); border-radius: 5px; font-size: 11px; }
.player-register-code { padding: 10px 11px; background: #f5f8f8; border: 1px solid #cbd3ce; border-radius: 5px; }
.player-captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 8px; }
.player-captcha-visual { position: relative; width: 160px; height: 42px; overflow: hidden; padding: 0; background: #f3eee3; border: 1px solid #c6cfca; border-radius: 5px; }
.player-captcha-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-captcha-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #315f58; }
.player-captcha-placeholder .icon { width: 17px; }
.player-captcha-refresh { position: absolute; z-index: 2; right: 4px; bottom: 4px; width: 20px; height: 20px; display: grid; place-items: center; color: #fff; background: rgba(15,35,35,.72); border-radius: 4px; opacity: 0; transition: opacity .15s ease; }
.player-captcha-refresh .icon { width: 12px; }
.player-captcha-visual:hover .player-captcha-refresh, .player-captcha-visual:focus-visible .player-captcha-refresh { opacity: 1; }
.player-captcha-status { color: #a44747; font-size: 10px; }
.amount-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amount-option { min-height: 50px; display: grid; place-items: center; gap: 1px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; }
.amount-option strong { font-family: "DM Sans", sans-serif; font-size: 14px; }
.amount-option span { color: var(--muted); font-size: 9px; }
.amount-option:hover { border-color: #927233; }
.amount-option.active { color: #6e511b; background: #fbf5e7; border-color: #b38a42; box-shadow: inset 0 0 0 1px #b38a42; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pay-method { min-height: 45px; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; text-align: left; font-size: 11px; font-weight: 700; }
.pay-method:hover { border-color: #927233; }
.pay-method.active { color: #173b37; background: #edf4ef; border-color: #52796f; }
.pay-logo { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 800; }
.pay-logo.alipay { color: #2777d6; background: #e6f1ff; }
.pay-logo.wechat { color: #168b60; background: #e6f8ef; }
.pay-logo.qq { color: #2568a8; background: #e8f5fb; }
.player-console .button.primary { color: #17312f; background: #d9b66f; border-color: #d9b66f; }
.player-console .button.primary:hover { background: #e4c785; border-color: #e4c785; }
.player-submit { width: 100%; min-height: 45px; margin-top: 2px; font-size: 13px; }
.player-console-footer { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px; color: #6f7d79; background: rgba(231,234,229,.72); border-top: 1px solid #d9ddd9; font-size: 10px; }
.player-console-footer span { min-width: 0; display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-console-footer .icon { width: 13px; color: #315f58; }
.player-shell .modal { color: var(--ink); }
.player-order-list { display: grid; gap: 8px; }
.player-order-item { display: grid; gap: 9px; padding: 11px 12px; background: #f7f9f8; border: 1px solid var(--line); border-radius: 6px; }
.player-order-id { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.player-order-id > span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.player-order-id > strong { min-width: 0; color: var(--ink); font-size: 10px; overflow-wrap: anywhere; text-align: right; }
.player-order-details { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.player-order-details > span:first-child { min-width: 0; overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.player-order-details > strong { color: var(--ink); font-size: 12px; }
.player-footer { position: relative; z-index: 1; min-height: 50px; display: grid; place-items: center; padding: 14px 20px; color: rgba(235,241,239,.72); background: rgba(8,18,20,.5); text-align: center; font-size: 10px; }
.player-state-main { position: relative; z-index: 1; min-height: calc(100dvh - 118px); display: grid; place-items: center; padding: 30px 18px; }
.player-state-console { width: min(430px, 100%); display: grid; place-items: center; gap: 10px; padding: 38px 30px; text-align: center; }
.player-state-console h1 { margin: 3px 0 0; color: #172725; font-size: 20px; }
.player-state-console p { margin: 0; color: #6f7d79; font-size: 11px; line-height: 1.6; }
.player-state-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #315f58; background: #e4ede8; border-radius: 8px; }
.player-state-icon .icon { width: 22px; }

/* Login */
.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(500px, 1.2fr) minmax(420px, .8fr); background: #fff; }
.login-scene { position: relative; min-height: 100%; overflow: hidden; color: #fff; background: #15242b url('assets/player-wuxia-bg-v2.jpg') center / cover no-repeat; }
.login-scene-overlay { position: absolute; inset: 0; background: rgba(10, 24, 31, .82); }
.login-brand { position: absolute; z-index: 1; top: 42px; left: 7%; display: flex; align-items: center; gap: 12px; }
.login-brand .brand-mark { width: 38px; height: 38px; }
.login-brand .brand-copy strong { color: #fff; font-size: 15px; }
.login-brand .brand-copy span { color: #8ea4ae; }
.login-scene-copy { position: absolute; z-index: 1; left: 7%; bottom: 58px; max-width: 560px; }
.login-scene-copy > p { margin: 0 0 14px; color: #75d9c3; font-family: "Segoe UI", sans-serif; font-size: 11px; font-weight: 700; }
.login-scene-copy h1 { margin: 0 0 28px; font-size: 38px; line-height: 1.32; letter-spacing: 0; }
.login-signal { display: flex; align-items: center; gap: 9px; color: #b7c7cd; font-size: 11px; }
.login-signal .status-light { width: 7px; height: 7px; }
.login-main { position: relative; display: grid; place-items: center; padding: 42px; background: #f7f9fa; }
.login-card { width: min(410px, 100%); padding: 36px; background: #fff; border: 1px solid #dfe6e9; border-radius: 8px; box-shadow: 0 20px 54px rgba(21, 38, 47, .1); }
.login-mobile-brand { display: none; }
.login-kicker { margin: 0 0 10px; color: var(--teal-deep); font-size: 11px; font-weight: 800; }
.login-card h2 { margin: 0; font-size: 26px; line-height: 1.25; }
.login-card .login-intro { margin: 8px 0 26px; color: var(--muted); font-size: 12px; }
.login-form { display: grid; gap: 17px; }
.login-field { display: grid; gap: 7px; }
.login-field > span { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.login-input { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 13px; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; transition: border-color .18s ease, box-shadow .18s ease; }
.login-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23, 184, 151, .12); }
.login-input > .icon { width: 18px; color: #8b99a2; }
.login-input input { min-width: 0; flex: 1; height: 46px; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; }
.login-input input::placeholder { color: #a8b2b8; }
.login-input button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: #81909a; background: transparent; border: 0; border-radius: 4px; }
.login-input button:hover { color: var(--ink); background: #f0f4f5; }
.login-submit { width: 100%; min-height: 48px; margin-top: 3px; font-size: 13px; }
.login-error { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; margin: -8px 0 17px; color: #a23e47; background: var(--red-soft); border: 1px solid #f3cdd0; border-radius: 6px; font-size: 11px; line-height: 1.55; }
.login-error .icon { width: 16px; margin-top: 1px; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 21px; color: #89969e; font-size: 10px; }
.login-security .icon { width: 14px; color: var(--teal-deep); }
.login-copyright { position: absolute; bottom: 24px; margin: 0; color: #9aa6ad; font-size: 10px; }
.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.app-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 13px; color: var(--muted); background: #f7f9fa; }
.app-loading > span { color: var(--teal); }
.app-loading strong { font-size: 12px; }
.security-summary { display: flex; align-items: flex-start; gap: 13px; padding: 21px; }
.security-summary-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--teal-deep); background: var(--teal-soft); border-radius: 6px; }
.security-summary strong { font-size: 13px; }
.security-summary p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.panel-footer-line { padding: 0 21px 21px; }
.compact-empty { padding: 24px 18px; }
.public-error-panel { max-width: 720px; margin: 80px auto 0; }

/* Online item delivery and tenant reset */
.online-delivery-bridge-panel, .online-delivery-search-panel { margin-bottom: 16px; }
.online-delivery-search-form { grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.4fr) auto; }
.online-delivery-query { min-width: 260px; }
.online-delivery-no-parameters { grid-column: 1 / -1; min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 11px 12px; color: #276354; background: #f0f8f5; border: 1px solid #cce6dc; border-radius: 6px; font-size: 11px; font-weight: 700; }
.online-delivery-no-parameters .icon { width: 17px; flex: 0 0 auto; }
.online-delivery-risk { display: flex; align-items: flex-start; gap: 10px; padding: 12px; margin-top: 15px; color: #8c333c; background: #fff5f5; border: 1px solid #f0cdd1; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 700; line-height: 1.55; }
.online-delivery-risk input { width: 16px; height: 16px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #a33d47; }
.online-delivery-risk span { display: flex; align-items: flex-start; gap: 7px; }
.online-delivery-risk .icon { width: 16px; flex: 0 0 auto; }
.tenant-reset-panel { overflow: hidden; border-color: #efc9cd; }
.tenant-reset-heading { display: flex; align-items: flex-start; gap: 14px; padding: 22px; background: #fff7f7; border-bottom: 1px solid #f2d7da; }
.tenant-reset-heading h2 { margin: 0; color: #802f38; font-size: 16px; }
.tenant-reset-heading p { margin: 6px 0 0; color: #7a5a5d; font-size: 11px; line-height: 1.65; }
.tenant-reset-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; color: #a33d47; background: #f8dfe2; border-radius: 6px; }
.tenant-reset-icon .icon { width: 21px; height: 21px; }
.tenant-reset-counts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tenant-reset-counts > div { min-width: 0; display: grid; gap: 5px; padding: 18px 16px; border-right: 1px solid var(--line); }
.tenant-reset-counts > div:last-child { border-right: 0; }
.tenant-reset-counts span { color: var(--muted); font-size: 10px; }
.tenant-reset-counts strong { color: var(--ink); font-size: 20px; }
.tenant-reset-scope { display: grid; gap: 13px; padding: 21px 22px; }
.tenant-reset-scope > div { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.tenant-reset-scope .icon { width: 17px; color: #a33d47; }
.tenant-reset-scope strong { display: block; color: var(--ink-soft); }
.tenant-reset-action { display: flex; justify-content: flex-end; padding: 0 22px 22px; }
.danger-notice { display: flex; align-items: flex-start; gap: 11px; padding: 13px; color: #7d343c; background: #fff3f4; border: 1px solid #efc9cd; border-radius: 6px; }
.danger-notice > .icon { width: 19px; flex: 0 0 auto; }
.danger-notice > div { display: grid; gap: 4px; }
.danger-notice strong { font-size: 12px; }
.danger-notice span { color: #805b5f; font-size: 10px; line-height: 1.6; }

/* Toast and dropdown */
.toast-region { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 250px; display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; color: #fff; background: #23333c; border-radius: 6px; box-shadow: var(--shadow-lg); font-size: 11px; animation: toast-in .22s ease both; }
.toast.success { background: #126a5a; }
.toast.error { background: #a9444d; }
.toast .icon { width: 16px; margin-top: 1px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.profile-menu { position: fixed; z-index: 80; width: 190px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg); }
.profile-menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 9px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 4px; text-align: left; font-size: 11px; }
.profile-menu button:hover { background: #f1f5f5; }

@media (max-width: 1180px) {
  .sidebar { width: 220px; }
  .main-shell { width: calc(100% - 220px); margin-left: 220px; }
  .topbar { padding: 0 24px; }
  .page-content { padding: 27px 24px 42px; }
  .content-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr); }
}
@media (max-width: 960px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .section-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-main { width: min(700px, 100%); grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .player-intro { max-width: none; padding-bottom: 0; }
  .player-intro h1 { font-size: 34px; }
  .player-intro-meta { max-width: none; margin-top: 22px; }
  .zone-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-query-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .online-delivery-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .online-delivery-search-form .role-query-submit { grid-column: 1 / -1; }
  .tenant-reset-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tenant-reset-counts > div:nth-child(3) { border-right: 0; }
  .tenant-reset-counts > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .role-query-submit { width: 100%; }
}
@media (max-width: 720px) {
  .payment-net-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-net-metric { border-bottom: 1px solid var(--line); }
  .payment-net-metric:nth-child(2n) { border-right: 0; }
  .payment-net-metric:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .payment-net-panel .panel-header { align-items: flex-start; flex-direction: column; }
  .payment-net-filter { flex-wrap: wrap; }
  .payment-net-filter .field { flex: 1 1 180px; width: auto; }
  .payment-net-filter-actions { flex: 1 1 100%; }
  .sidebar { width: 248px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .admin-shell.menu-open .sidebar { transform: translateX(0); }
  .admin-shell.menu-open::after { content: ""; position: fixed; z-index: 20; inset: 0; background: rgba(9,18,24,.42); }
  .main-shell { width: 100%; margin-left: 0; }
  .topbar { height: 62px; padding: 0 15px; }
  .mobile-menu { display: inline-flex; }
  .crumb { display: none; }
  .date-chip { display: none; }
  .topbar-divider { display: none; }
  .profile-trigger-copy { display: none; }
  .page-content { padding: 23px 15px 36px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 15px; margin-bottom: 18px; }
  .page-heading-actions { justify-content: flex-start; }
  .page-title { font-size: 21px; }
  .kpi-grid { gap: 9px; }
  .kpi-card { min-height: 116px; padding: 14px; }
  .kpi-value { font-size: 22px; }
  .kpi-foot { display: block; line-height: 1.5; }
  .panel-header, .toolbar { align-items: flex-start; flex-direction: column; padding: 14px; }
  .panel-actions, .toolbar-left, .toolbar-right { width: 100%; }
  .toolbar-right .search-box { flex: 1; width: auto; }
  .mini-table th, .mini-table td { padding-left: 14px; padding-right: 14px; }
  .quick-actions { grid-template-columns: 1fr; padding: 12px 14px 14px; }
  .section-grid-2, .section-grid-3 { grid-template-columns: 1fr; }
  .player-topbar { height: 60px; padding: 0 15px; }
  .player-brand span { display: none; }
  .player-shell { background-attachment: scroll; background-position: 33% center; }
  .player-main { min-height: auto; gap: 18px; padding: 23px 14px 34px; }
  .player-intro { padding: 6px 4px 0; }
  .player-game-emblem { width: 52px; height: 52px; margin-bottom: 15px; font-size: 17px; }
  .player-kicker { margin-bottom: 6px; }
  .player-intro h1 { font-size: 29px; }
  .player-intro-copy { margin-top: 8px; }
  .player-intro-meta { margin-top: 17px; }
  .player-intro-meta > div { padding: 11px 10px; }
  .player-console-header { min-height: 70px; padding: 15px 16px 13px; }
  .player-tabs { margin: 13px 16px 0; }
  .player-console-body { padding: 16px; }
  .player-console-footer { padding-right: 16px; padding-left: 16px; }
  .player-order-id { display: grid; gap: 4px; }
  .player-order-id > strong { text-align: left; }
  .player-order-details { grid-template-columns: minmax(0, 1fr) auto; }
  .player-order-details > span:first-child { grid-column: 1 / -1; }
  .amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-role-query { grid-template-columns: 1fr; }
  .player-package-grid { grid-template-columns: 1fr; }
  .player-role-query .button { width: 100%; }
  .recharge-item-row { grid-template-columns: minmax(0, 1fr) 76px 36px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .recharge-item-name { grid-column: 1 / -1; }
  .recharge-item-quantity > span { display: block; }
  .recharge-catalog-search { grid-template-columns: 1fr; }
  .recharge-catalog-search .button { width: 100%; }
  .option-grid { grid-template-columns: 1fr; }
  .zone-form-grid { grid-template-columns: 1fr; }
  .zone-form-grid .span-2 { grid-column: auto; }
  .x64-config-grid { grid-template-columns: 1fr; }
  .register-code-summary { grid-template-columns: 1fr; }
  .register-code-summary span { border-right: 0; border-bottom: 1px solid var(--line); }
  .register-code-summary span:last-child { border-bottom: 0; }
  .generated-code-head { align-items: flex-start; }
  .zone-type-field { align-items: flex-start; flex-direction: column; gap: 9px; }
  .payment-channel-options { grid-template-columns: 1fr; padding: 14px; }
  .payment-channel-contact { padding: 0 14px 14px; }
  .payment-protocol-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-protocol-strip span:nth-child(2) { border-right: 0; }
  .payment-protocol-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .payment-form-actions .button { flex: 1; }
  .form-section-title { align-items: flex-start; flex-direction: column; gap: 3px; }
  .wrap-value { max-width: 210px; }
  .settlement-review { grid-template-columns: 1fr; }
  .settlement-qr-review, .settlement-qr-missing { min-height: 160px; }
  .zone-view-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .zone-view-tab { min-width: 210px; scroll-snap-align: start; }
  .role-query-form { grid-template-columns: 1fr; padding: 14px; }
  .online-delivery-search-form { grid-template-columns: 1fr; }
  .online-delivery-query { min-width: 0; }
  .tenant-reset-heading { padding: 18px 15px; }
  .tenant-reset-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tenant-reset-counts > div { border-bottom: 1px solid var(--line); }
  .tenant-reset-counts > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .tenant-reset-counts > div:nth-child(even) { border-right: 0; }
  .tenant-reset-counts > div:nth-last-child(-n+2) { border-bottom: 0; }
  .tenant-reset-scope { padding: 18px 15px; }
  .tenant-reset-action { padding: 0 15px 18px; }
  .tenant-reset-action .button { width: 100%; }
  .role-zone-menu { width: 100%; min-width: 0; }
  .role-query-state { min-height: 220px; padding: 26px 16px; }
  .role-zone-errors { padding: 11px 14px; }
  .player-detail-filters { display: grid; grid-template-columns: 1fr; }
  .player-detail-filters label { width: 100%; }
  .qr-layout { grid-template-columns: 1fr; justify-items: center; }
  .qr-layout .link-preview { width: 100%; }
  .bridge-card { width: 100%; min-width: 0; flex-wrap: wrap; gap: 10px; }
  .bridge-card .bridge-copy { flex: 1 1 calc(100% - 54px); }
  .bridge-card .bridge-meta { width: 100%; margin-left: 52px; justify-content: flex-start; flex-wrap: wrap; }
  .bridge-card > .button { margin-left: 52px; }
  .login-shell { display: block; background: #f7f9fa; }
  .login-scene { display: none; }
  .login-main { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 15px 64px; }
  .login-card { width: min(430px, 100%); padding: 27px 20px; }
  .login-mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 31px; }
  .login-mobile-brand .brand-mark { width: 32px; height: 32px; }
  .login-mobile-brand strong { font-size: 14px; }
  .login-card h2 { font-size: 23px; }
  .login-copyright { bottom: 20px; }
  .toast-region { right: 12px; bottom: 12px; left: 12px; }
  .toast { min-width: 0; }
}
@media (max-width: 430px) {
  .payment-net-kpis { grid-template-columns: 1fr; }
  .payment-net-today-label { align-items: flex-start; flex-wrap: wrap; }
  .payment-net-today-label span { flex-basis: 100%; padding-left: 22px; }
  .payment-net-metric { border-right: 0; }
  .payment-net-metric:last-child { grid-column: auto; }
  .payment-net-filter .field { flex-basis: 100%; }
  .payment-net-filter-actions .button { flex: 1; }
  .payment-net-pagination { align-items: flex-start; gap: 8px; }
  .topbar-right { gap: 2px; }
  .kpi-card { padding: 12px; }
  .kpi-label { font-size: 10px; }
  .kpi-icon { width: 28px; height: 28px; }
  .kpi-value { font-size: 19px; }
  .kpi-foot { font-size: 10px; }
  .amount-option { min-height: 46px; }
  .player-top-actions .button { padding-right: 8px; padding-left: 8px; }
  .player-intro-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .player-intro-meta dt { font-size: 9px; }
  .player-intro-meta dd { font-size: 10px; }
  .player-captcha-row { grid-template-columns: 1fr; }
  .player-captcha-visual { width: 100%; }
  .pay-method { justify-content: center; gap: 5px; padding: 0 7px; }
}

/* Console palette aligned with the admin navigation reference */
.admin-shell {
  --ink: #101820;
  --ink-soft: #26323c;
  --muted: #71808c;
  --muted-2: #9aa6af;
  --line: #e4e9ed;
  --line-strong: #d3dbe1;
  --paper: #f5f7f8;
  --white: #ffffff;
  --teal: #17b897;
  --teal-deep: #087e6c;
  --teal-soft: #e2f7f1;
  --blue: #4779e8;
  --blue-soft: #eaf0ff;
  --amber: #4779e8;
  --amber-soft: #eaf0ff;
  --purple: #7b62c5;
  --purple-soft: #f0edfb;
  --console-sidebar: #101820;
  --console-sidebar-panel: #192630;
  --console-sidebar-line: #2a3944;
  --console-sidebar-active: #1d403d;
  --console-sidebar-text: #91a3ad;
  --console-sidebar-muted: #667985;
  --console-sidebar-icon: #718590;
  --console-accent-bright: #72ddc5;
  --console-accent-pale: #98e5d4;
  --shadow: 0 10px 30px rgba(16, 24, 32, .06);
  --shadow-lg: 0 22px 60px rgba(16, 24, 32, .16);
  color: var(--ink);
  background: var(--paper);
}
.admin-shell button:focus-visible,
.admin-shell input:focus-visible,
.admin-shell select:focus-visible,
.admin-shell textarea:focus-visible {
  outline-color: rgba(23, 184, 151, .24);
}
.admin-shell .sidebar {
  width: 264px;
  padding: 22px 15px 14px;
  color: #d9e3e8;
  background: var(--console-sidebar);
  border-right: 1px solid var(--console-sidebar-line);
  box-shadow: 12px 0 38px rgba(16, 24, 32, .12);
}
.admin-shell.agent-shell .sidebar { background: var(--console-sidebar); }
.admin-shell .brand { gap: 12px; padding: 1px 10px 22px; }
.admin-shell .brand-mark {
  width: 40px;
  height: 40px;
  color: #101820;
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  font-size: 17px;
}
.admin-shell .brand-copy { gap: 3px; }
.admin-shell .brand-copy strong { color: #fff; font-size: 15px; }
.admin-shell .brand-copy span { color: #7d909b; font-size: 9px; }
.admin-shell .tenant-switcher {
  padding: 11px 10px;
  margin-bottom: 19px;
  color: #e3edf0;
  background: var(--console-sidebar-panel);
  border-color: var(--console-sidebar-line);
  border-radius: 7px;
}
.admin-shell .tenant-avatar {
  width: 31px;
  height: 31px;
  color: #0f4d44;
  background: var(--console-accent-pale);
  border-radius: 5px;
}
.admin-shell .tenant-copy strong { color: #fff; }
.admin-shell .tenant-copy span { color: #80929c; line-height: 1.35; }
.admin-shell .tenant-switcher .icon { color: #81939d; }
.admin-shell .sidebar-menu {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 2px 8px 0;
  scrollbar-color: rgba(23, 184, 151, .24) transparent;
  scrollbar-width: thin;
}
.admin-shell .sidebar-menu::-webkit-scrollbar { width: 4px; }
.admin-shell .sidebar-menu::-webkit-scrollbar-thumb { background: rgba(23, 184, 151, .24); border-radius: 99px; }
.admin-shell .nav-group + .nav-group { margin-top: 16px; }
.admin-shell .nav-section-label {
  padding: 0 11px 7px;
  color: var(--console-sidebar-muted);
  font-size: 9px;
  letter-spacing: .08em;
}
.admin-shell .sidebar-nav { gap: 3px; }
.admin-shell .nav-item {
  min-height: 40px;
  gap: 10px;
  padding: 0 11px;
  color: var(--console-sidebar-text);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
}
.admin-shell .nav-item .icon { color: var(--console-sidebar-icon); }
.admin-shell .nav-item:hover {
  color: #fff;
  background: #1a2933;
  border-color: #263741;
}
.admin-shell .nav-item:hover .icon { color: var(--console-accent-bright); }
.admin-shell .nav-item.active {
  color: #fff;
  background: var(--console-sidebar-active);
  border-color: transparent;
  box-shadow: inset 3px 0 0 var(--teal);
}
.admin-shell .nav-item.active .icon { color: var(--console-accent-bright); }
.admin-shell .nav-badge {
  color: #fff;
  background: #9c4d53;
  border: 2px solid rgba(255, 255, 255, .72);
}
.admin-shell .sidebar-status {
  padding: 12px 10px;
  margin: 7px 0 4px;
  border-top-color: rgba(255, 255, 255, .09);
  border-bottom-color: rgba(255, 255, 255, .09);
}
.admin-shell .status-light {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(23, 184, 151, .12);
}
.admin-shell .sidebar-status span { color: #728590; }
.admin-shell .sidebar-status strong { color: #d8e4e8; }
.admin-shell .sidebar-user { padding: 9px 10px 4px; }
.admin-shell .avatar { color: #245b52; background: #a7e7da; }
.admin-shell .sidebar-user-copy strong { color: #fff; }
.admin-shell .sidebar-user-copy span { color: #728590; }
.admin-shell .sidebar-user-menu { color: #778b95; }
.admin-shell .main-shell {
  width: calc(100% - 264px);
  margin-left: 264px;
  background: var(--paper);
}
.admin-shell .topbar {
  position: sticky;
  z-index: 18;
  top: 0;
  height: 70px;
  padding: 0 34px;
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(16, 24, 32, .03);
  backdrop-filter: blur(14px);
}
.admin-shell .crumb { color: var(--muted); }
.admin-shell .crumb .icon { color: #a8b3bb; }
.admin-shell .crumb strong { color: var(--ink); }
.admin-shell .mobile-workspace-title { display: none; }
.admin-shell .date-chip { color: #74817e; }
.admin-shell .topbar-divider { background: #dfe3de; }
.admin-shell .notification-button:hover { color: var(--teal-deep); background: #eef2f4; }
.admin-shell .notification-dot { background: #b9555e; border-color: #fff; }
.admin-shell .profile-trigger { border: 1px solid transparent; border-radius: 6px; }
.admin-shell .profile-trigger:hover { background: #eef2f4; border-color: var(--line); }
.admin-shell .profile-trigger .avatar { width: 32px; height: 32px; }
.admin-shell .page-content {
  width: 100%;
  max-width: 1640px;
  padding: 31px 34px 50px;
}
.admin-shell.agent-shell .page-content { max-width: 1500px; }
.admin-shell .page-heading { gap: 28px; margin-bottom: 24px; }
.admin-shell .eyebrow {
  margin-bottom: 6px;
  color: var(--teal-deep);
  font-size: 10px;
  letter-spacing: .06em;
}
.admin-shell .page-title { color: var(--ink); font-size: 25px; line-height: 1.22; }
.admin-shell .page-subtitle { margin-top: 7px; color: var(--muted); font-size: 12px; }
.admin-shell .page-heading-actions { flex-wrap: wrap; }
.admin-shell .button {
  min-height: 39px;
  border-radius: 6px;
  padding-right: 15px;
  padding-left: 15px;
  box-shadow: none;
}
.admin-shell .button:hover { transform: translateY(-1px); }
.admin-shell .button.primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}
.admin-shell .button.primary:hover { color: #fff; background: #109d83; border-color: #109d83; }
.admin-shell .button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
}
.admin-shell .button.secondary:hover { color: var(--teal-deep); background: #fff; border-color: var(--teal); }
.admin-shell .button.ghost { color: var(--muted); }
.admin-shell .button.ghost:hover { color: var(--ink); background: #eef2f4; }
.admin-shell .button.danger { color: #903f45; background: #fff1f2; border-color: #efc6ca; }
.admin-shell .icon-button { color: var(--muted); border-radius: 6px; }
.admin-shell .icon-button:hover { color: var(--teal-deep); background: #eef2f4; }
.admin-shell .icon-button.bordered { background: #fff; border-color: var(--line-strong); }
.admin-shell .icon-button.bordered:hover { color: var(--teal-deep); border-color: var(--teal); }
.admin-shell .kpi-grid { gap: 13px; margin-bottom: 17px; }
.admin-shell .kpi-card {
  min-height: 134px;
  padding: 18px 19px 17px;
  background: #fff;
  border-color: var(--line);
  border-radius: 7px;
  box-shadow: 0 7px 20px rgba(16, 24, 32, .045);
}
.admin-shell .kpi-card:hover { border-color: #c9d3da; box-shadow: 0 10px 26px rgba(16, 24, 32, .07); }
.admin-shell .kpi-label { color: var(--muted); font-size: 11px; }
.admin-shell .kpi-icon { width: 34px; height: 34px; border: 1px solid transparent; border-radius: 6px; }
.admin-shell .kpi-icon.teal { color: var(--teal-deep); background: var(--teal-soft); border-color: #ccefe6; }
.admin-shell .kpi-icon.amber { color: #4267bb; background: var(--blue-soft); border-color: #dbe5ff; }
.admin-shell .kpi-icon.blue { color: #4267bb; background: var(--blue-soft); border-color: #dbe5ff; }
.admin-shell .kpi-icon.purple { color: #6c55b4; background: var(--purple-soft); border-color: #e1daf6; }
.admin-shell .pill.warning,
.admin-shell .activity-icon.amber,
.admin-shell .capability.warning,
.admin-shell .payment-channel-icon.amber { color: #4267bb; background: var(--blue-soft); }
.admin-shell .game-badge.amber { background: var(--blue); }
.admin-shell .health.warning { color: #4267bb; }
.admin-shell .kpi-value { margin-top: 15px; color: var(--ink); font-size: 26px; }
.admin-shell .kpi-foot { color: var(--muted); }
.admin-shell .trend-up { color: var(--teal-deep); }
.admin-shell .panel,
.admin-shell .sub-card,
.admin-shell .game-card,
.admin-shell .bridge-card {
  background: #fff;
  border-color: var(--line);
  border-radius: 7px;
  box-shadow: 0 7px 22px rgba(16, 24, 32, .04);
}
.admin-shell .content-grid,
.admin-shell .stack,
.admin-shell .section-grid-2 { gap: 17px; }
.admin-shell .panel-header {
  min-height: 68px;
  padding: 16px 19px;
  background: #fafbfb;
  border-bottom-color: var(--line);
  border-radius: 7px 7px 0 0;
}
.admin-shell .panel-heading h2 { color: var(--ink); font-size: 14px; }
.admin-shell .panel-heading p { color: var(--muted); }
.admin-shell .range-tabs,
.admin-shell .filter-tabs {
  padding: 4px;
  background: #f1f4f5;
  border-radius: 6px;
}
.admin-shell .filter-tabs { gap: 2px; }
.admin-shell .range-tab,
.admin-shell .filter-tab { color: var(--muted); border-radius: 4px; }
.admin-shell .range-tab.active,
.admin-shell .filter-tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 7px rgba(16, 24, 32, .1);
}
.admin-shell .chart-grid-line { stroke: #edf1f3; }
.admin-shell .chart-area { fill: rgba(23, 184, 151, .12); }
.admin-shell .chart-line { stroke: var(--teal); }
.admin-shell .chart-point { fill: #fff; stroke: var(--teal); }
.admin-shell .legend-line { background: var(--teal); }
.admin-shell .quick-actions { gap: 8px; }
.admin-shell .quick-action {
  min-height: 82px;
  padding: 11px;
  background: #fafbfb;
  border-color: var(--line);
  border-radius: 6px;
}
.admin-shell .quick-action:hover { background: #f6fcfa; border-color: var(--teal); }
.admin-shell .quick-action .icon-wrap { color: var(--teal-deep); background: var(--teal-soft); }
.admin-shell .quick-action strong { color: var(--ink-soft); }
.admin-shell .activity-icon.teal,
.admin-shell .activity-icon.green { color: var(--teal-deep); background: var(--teal-soft); }
.admin-shell .toolbar { padding: 13px 18px; background: #fafbfb; border-bottom-color: var(--line); }
.admin-shell .search-box {
  height: 36px;
  color: var(--muted);
  background: #fff;
  border-color: var(--line-strong);
  border-radius: 5px;
}
.admin-shell .search-box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23, 184, 151, .12); }
.admin-shell .mini-table th,
.admin-shell .data-table th {
  color: #6d7c87;
  background: #f4f6f7;
  border-bottom-color: var(--line);
}
.admin-shell .mini-table td,
.admin-shell .data-table td {
  color: #3e4b54;
  border-bottom-color: #eff2f3;
}
.admin-shell .mini-table tbody tr:hover,
.admin-shell .data-table tbody tr:hover,
.admin-shell .role-results-table tbody tr:hover { background: #fbfdfd; }
.admin-shell .table-main strong { color: var(--ink); }
.admin-shell .amount { color: var(--teal-deep); }
.admin-shell .link-code {
  color: var(--teal-deep);
  background: #effaf7;
  border-color: #d6f1ea;
}
.admin-shell .pagination { border-top-color: var(--line); }
.admin-shell .page-number { color: var(--teal-deep); background: var(--teal-soft); }
.admin-shell .empty-state .empty-icon,
.admin-shell .role-query-state .empty-icon { color: var(--teal-deep); background: var(--teal-soft); }
.admin-shell .empty-state strong,
.admin-shell .role-query-state strong { color: var(--ink-soft); }
.admin-shell .progress { background: #edf1f2; }
.admin-shell .progress > span { background: var(--teal); }
.admin-shell .progress.amber > span { background: var(--blue); }
.admin-shell .card-list-row { border-bottom-color: #eff2f3; }
.admin-shell .game-card-stats { border-color: var(--line); }
.admin-shell .game-badge { border-radius: 6px; }
.admin-shell .balance-card {
  color: #fff;
  background: #101820;
  border: 1px solid #2a3944;
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(16, 24, 32, .16);
}
.admin-shell .balance-card .eyebrow { color: var(--console-accent-bright); }
.admin-shell .balance-card p,
.admin-shell .balance-footer span { color: #91a3ad; }
.admin-shell .balance-footer strong { color: var(--console-accent-bright); }
.admin-shell .settlement-status { background: #fafbfb; border-color: var(--line); border-radius: 7px; }
.admin-shell .settlement-step:not(:last-child)::after { background: #d3dbe1; }
.admin-shell .settlement-step .step-icon { color: var(--teal-deep); background: var(--teal-soft); border-color: #fafbfb; }
.admin-shell .settlement-step.current .step-icon { color: #fff; background: var(--teal); }
.admin-shell .bridge-icon { color: var(--teal-deep); background: var(--teal-soft); }
.admin-shell .zone-view-tabs { background: #f1f4f5; border-color: var(--line); }
.admin-shell .zone-view-tab:hover { background: rgba(255, 255, 255, .58); }
.admin-shell .zone-view-tab.active { background: #fff; border-color: var(--line-strong); box-shadow: 0 2px 7px rgba(16, 24, 32, .09); }
.admin-shell .zone-view-icon { color: #4267bb; background: var(--blue-soft); }
.admin-shell .zone-view-tab.active .zone-view-icon { color: var(--teal-deep); background: var(--teal-soft); }
.admin-shell .role-filter-field > span:first-child,
.admin-shell .field label,
.admin-shell .field > span { color: var(--ink-soft); }
.admin-shell .role-filter-field select,
.admin-shell .role-picker-trigger,
.admin-shell .role-search-input,
.admin-shell .player-detail-filters select,
.admin-shell .field input,
.admin-shell .field select,
.admin-shell .field textarea {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
  border-radius: 5px;
}
.admin-shell .role-filter-field select:focus,
.admin-shell .role-search-input:focus-within,
.admin-shell .player-detail-filters select:focus,
.admin-shell .field input:focus,
.admin-shell .field select:focus,
.admin-shell .field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 184, 151, .13);
}
.admin-shell .role-zone-menu { border-color: var(--line-strong); border-radius: 6px; box-shadow: var(--shadow-lg); }
.admin-shell .role-zone-option:hover { background: #f3f7f7; }
.admin-shell .role-option-input:checked + .role-option-check { color: #fff; background: var(--teal); border-color: var(--teal-deep); }
.admin-shell .role-option-input:focus-visible + .role-option-check { outline-color: rgba(23, 184, 151, .24); }
.admin-shell .role-zone-errors { color: #8c333c; background: #fff5f5; border-bottom-color: #f0cdd1; }
.admin-shell .api-box { color: #d9e3e8; background: #101820; border: 1px solid #2a3944; }
.admin-shell .api-box code { color: var(--console-accent-bright); }
.admin-shell .modal-backdrop { background: rgba(16, 24, 32, .62); backdrop-filter: blur(3px); }
.admin-shell .modal {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 76px rgba(16, 24, 32, .3);
}
.admin-shell .modal-header { padding: 20px 22px 17px; background: #fafbfb; border-bottom-color: var(--line); }
.admin-shell .modal-header h2 { color: var(--ink); }
.admin-shell .modal-footer { background: #f5f7f8; border-top-color: var(--line); }
.admin-shell .form-section-title { border-top-color: var(--line); }
.admin-shell .db-version-control input { accent-color: var(--teal); }
.admin-shell .switch input:checked + .switch-track { background: var(--teal); }
.admin-shell .notice-box { color: #63717b; background: #f5f8f9; border-color: var(--line); }
.admin-shell .notice-box .icon { color: var(--teal-deep); }
.admin-shell .notice-box.warning-notice { color: #4267bb; background: var(--blue-soft); border-color: #dbe5ff; }
.admin-shell .notice-box.warning-notice .icon { color: #4267bb; }
.admin-shell .link-preview code { color: var(--teal-deep); background: #effaf7; border-color: #d6f1ea; }
.admin-shell .profile-menu {
  top: 68px;
  right: 28px;
  width: 204px;
  padding: 7px;
  background: #fff;
  border-color: var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-lg);
}
.admin-shell .profile-menu button { color: var(--ink-soft); border-radius: 5px; }
.admin-shell .profile-menu button:hover { color: var(--ink); background: #eef2f4; }
.admin-shell .toast.success { background: var(--teal-deep); }
.admin-shell .toast.error { background: #9b474d; }

/* Shared sign-in surface */
.login-scene { background-color: #101820; }
.login-scene-overlay { background: rgba(16, 24, 32, .9); }
.login-brand .brand-mark,
.login-mobile-brand .brand-mark { color: #101820; background: #17b897; }
.login-scene-copy > p { color: #72ddc5; }
.login-main { background: #f5f7f8; }
.login-card { background: #fff; border-color: #e4e9ed; box-shadow: 0 24px 64px rgba(16, 24, 32, .12); }
.login-kicker { color: #087e6c; }
.login-card h2 { color: #101820; }
.login-input { border-color: #d3dbe1; }
.login-input:focus-within { border-color: #17b897; box-shadow: 0 0 0 3px rgba(23, 184, 151, .13); }
.login-submit.button.primary { color: #fff; background: #17b897; border-color: #17b897; }
.login-submit.button.primary:hover { color: #fff; background: #109d83; border-color: #109d83; }
.login-security .icon { color: #087e6c; }

@media (max-width: 1180px) {
  .admin-shell .sidebar { width: 230px; }
  .admin-shell .main-shell { width: calc(100% - 230px); margin-left: 230px; }
  .admin-shell .topbar { padding-right: 24px; padding-left: 24px; }
  .admin-shell .page-content { padding: 27px 24px 44px; }
}

@media (max-width: 920px) {
  .login-shell { display: block; background: #f5f7f8; }
  .login-scene { display: none; }
  .login-main { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 15px 64px; }
  .login-card { width: min(430px, 100%); padding: 27px 20px; }
  .login-mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 31px; }
  .login-mobile-brand .brand-mark { width: 32px; height: 32px; }
  .login-mobile-brand strong { font-size: 14px; }
  .login-card h2 { font-size: 23px; }
  .login-copyright { bottom: 20px; }
}

@media (max-width: 720px) {
  .admin-shell .sidebar {
    width: min(278px, calc(100vw - 44px));
    transform: translateX(-100%);
    box-shadow: 18px 0 48px rgba(16, 24, 32, .28);
  }
  .admin-shell.menu-open .sidebar { transform: translateX(0); }
  .admin-shell.menu-open::after { background: rgba(16, 24, 32, .54); backdrop-filter: blur(2px); }
  .admin-shell .main-shell { width: 100%; margin-left: 0; }
  .admin-shell .topbar { height: 62px; padding: 0 14px; }
  .admin-shell .topbar-left { gap: 9px; }
  .admin-shell .mobile-workspace-title { min-width: 0; display: grid; gap: 1px; }
  .admin-shell .mobile-workspace-title strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .admin-shell .mobile-workspace-title span { color: var(--muted); font-size: 9px; }
  .admin-shell .page-content { padding: 22px 14px 34px; }
  .admin-shell .page-heading { gap: 14px; margin-bottom: 18px; }
  .admin-shell .page-heading-actions { width: 100%; }
  .admin-shell .page-heading-actions .button { flex: 1 1 auto; }
  .admin-shell .page-title { font-size: 22px; }
  .admin-shell .kpi-grid { gap: 9px; }
  .admin-shell .kpi-card { min-height: 120px; padding: 14px; }
  .admin-shell .panel-header,
  .admin-shell .toolbar { padding: 14px; }
  .admin-shell .form-grid { grid-template-columns: 1fr; }
  .admin-shell .profile-menu { top: 59px; right: 11px; }
  .admin-shell .modal-header,
  .admin-shell .modal-body,
  .admin-shell .modal-footer { padding-right: 16px; padding-left: 16px; }
  .login-shell { background: #f5f7f8; }
}

@media (max-width: 430px) {
  .admin-shell .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell .kpi-card { min-height: 112px; padding: 12px; }
  .admin-shell .kpi-label { font-size: 10px; }
  .admin-shell .kpi-icon { width: 30px; height: 30px; }
  .admin-shell .kpi-value { font-size: 19px; overflow-wrap: anywhere; }
  .admin-shell .kpi-foot { font-size: 10px; }
  .admin-shell .page-heading-actions { display: flex; }
  .admin-shell .modal-footer { align-items: stretch; flex-direction: column; }
  .admin-shell .modal-footer .button { width: 100%; }
}

/* Platform, announcements and agent subscriptions */
.admin-shell.platform-shell .sidebar { background: var(--console-sidebar); }
.admin-shell.platform-shell .page-content { max-width: 1640px; }
.subscription-topbar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 6px 0 11px;
  color: var(--ink-soft);
  background: #f5f7f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.subscription-topbar > .icon { width: 17px; height: 17px; color: var(--teal-deep); }
.subscription-topbar > span { min-width: 88px; display: grid; gap: 1px; text-align: left; }
.subscription-topbar small { color: var(--muted); font-size: 8px; }
.subscription-topbar strong { color: var(--ink); font-size: 11px; }
.subscription-topbar b {
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: #fff;
  background: var(--teal);
  border-radius: 5px;
  font-size: 10px;
}
.subscription-topbar:hover { background: #eefaf7; border-color: var(--teal); }
.announcement-strip {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 15px;
  margin-bottom: 17px;
  padding: 13px 15px;
  background: #101820;
  border: 1px solid #2a3944;
  border-radius: 7px;
  box-shadow: 0 9px 25px rgba(16, 24, 32, .12);
}
.announcement-strip-title { display: flex; align-items: center; gap: 11px; color: #fff; }
.announcement-strip-title > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #101820;
  background: var(--teal);
  border-radius: 6px;
}
.announcement-strip-title > span .icon { width: 17px; height: 17px; }
.announcement-strip-title div { min-width: 0; display: grid; gap: 3px; }
.announcement-strip-title strong { font-size: 12px; }
.announcement-strip-title small { color: #91a3ad; font-size: 9px; }
.announcement-strip-list { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.announcement-strip-item {
  min-width: 0;
  height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  color: #e3edf0;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 5px;
  cursor: pointer;
}
.announcement-strip-item:hover { background: rgba(255, 255, 255, .09); border-color: rgba(23, 184, 151, .42); }
.announcement-strip-item > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; text-align: left; }
.announcement-strip-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.announcement-strip-item small { color: #91a3ad; font-size: 8px; }
.announcement-strip-item > .icon { width: 14px; color: #b9c7cf; }
.platform-stat-row { margin-bottom: 17px; }
.platform-overview-grid { grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); }
.platform-health-band,
.subscription-summary-band,
.security-status-panel {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  background: #101820;
  border: 1px solid #2a3944;
  border-radius: 7px;
  color: #fff;
  box-shadow: 0 10px 26px rgba(16, 24, 32, .11);
}
.platform-health-band > span,
.subscription-summary-icon,
.security-status-panel > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #101820;
  background: var(--teal);
  border-radius: 6px;
}
.platform-health-band > div,
.security-status-panel > div { min-width: 0; display: grid; gap: 3px; }
.platform-health-band strong,
.security-status-panel strong { font-size: 12px; }
.platform-health-band small,
.security-status-panel small,
.security-status-panel p { color: #91a3ad; font-size: 9px; }
.platform-health-band .button { margin-left: auto; color: #e3edf0; }
.notice-history { display: grid; }
.notice-history > button {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eff2f3;
  cursor: pointer;
}
.notice-history > button:last-child { border-bottom: 0; }
.notice-history > button:hover { background: #fbfdfd; }
.notice-history > button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; text-align: left; }
.notice-history strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.notice-history small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.compact-history > button { padding: 11px 16px; }
.modal-notice-history { max-height: 470px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; }
.announcement-table-copy { max-width: 420px; }
.announcement-table-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement-reader { display: grid; gap: 17px; }
.announcement-reader > .pill { justify-self: start; }
.announcement-reader > div { color: var(--ink-soft); font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.subscription-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 17px;
  margin-bottom: 17px;
}
.subscription-admin-grid > .panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.subscription-config-form,
.subscription-channel-form {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  padding: 18px 19px;
}
.update-manifest-form { padding: 18px 19px 0; }
.subscription-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.subscription-action-row .button { min-width: 112px; }
.subscription-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.subscription-price-grid label {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.subscription-price-grid label > span { color: var(--muted); font-size: 10px; }
.subscription-price-grid label > strong { min-width: 0; display: flex; align-items: baseline; color: var(--ink); }
.subscription-price-grid i { color: var(--teal-deep); font-size: 11px; font-style: normal; }
.subscription-price-grid input {
  min-width: 0;
  width: 100%;
  padding: 0 0 0 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: 700 19px/1.2 inherit;
}
.subscription-orders-panel { margin-top: 0; }
.subscription-summary-band { margin-bottom: 17px; padding: 19px 21px; }
.subscription-summary-band > div { min-width: 0; display: grid; gap: 3px; }
.subscription-summary-band small { color: #91a3ad; font-size: 9px; }
.subscription-summary-band strong { font-size: 14px; }
.subscription-summary-band p { margin: 2px 0 0; color: #b9c7cf; font-size: 10px; }
.subscription-summary-date { margin-left: auto; color: var(--console-accent-bright); font: 700 18px/1.1 inherit; }
.subscription-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 17px;
}
.subscription-plan {
  position: relative;
  min-height: 226px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 7px 22px rgba(16, 24, 32, .04);
}
.subscription-plan.recommended { border-color: var(--teal); box-shadow: 0 10px 28px rgba(23, 184, 151, .1); }
.plan-badge { position: absolute; top: 13px; right: 13px; padding: 4px 8px; color: #fff; background: var(--teal); border-radius: 4px; font-size: 8px; }
.plan-period { color: var(--teal-deep); font-size: 11px; font-weight: 700; }
.subscription-plan > strong { margin-top: 17px; color: var(--ink); font-size: 29px; }
.subscription-plan > strong small { margin-right: 3px; color: var(--teal-deep); font-size: 12px; }
.subscription-plan > p { margin: 8px 0 20px; color: var(--muted); font-size: 10px; }
.subscription-plan > .button { width: 100%; margin-top: auto; }
.subscription-payment-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.subscription-payment-choice label { cursor: pointer; }
.subscription-payment-choice input { position: absolute; opacity: 0; pointer-events: none; }
.subscription-payment-choice span {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink-soft);
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.subscription-payment-choice input:checked + span { color: var(--teal-deep); background: var(--teal-soft); border-color: var(--teal); box-shadow: 0 0 0 2px rgba(23, 184, 151, .1); }
.subscription-checkout { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 14px 16px; background: #f5f7f8; border-radius: 6px; }
.subscription-checkout span { color: var(--muted); font-size: 11px; }
.subscription-checkout strong { color: var(--ink); font-size: 20px; }
.coupon-management-panel { margin-top: 0; }
.coupon-table { min-width: 1080px; }
.coupon-table .coupon-days { color: var(--teal-deep); white-space: nowrap; }
.toolbar-caption { color: var(--muted); font-size: 10px; }
.coupon-redeem-panel { margin-bottom: 17px; }
.coupon-redeem-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; padding: 18px 19px 15px; }
.coupon-redeem-form .button { min-width: 132px; }
.coupon-gate-redeem { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 14px 16px; background: #f7f9fa; border: 1px solid var(--line); border-radius: 6px; }
.coupon-gate-redeem > div { min-width: 0; display: grid; gap: 4px; }
.coupon-gate-redeem strong { color: var(--ink); font-size: 12px; }
.coupon-gate-redeem span { color: var(--muted); font-size: 10px; }
.coupon-code-reveal { display: grid; gap: 14px; padding: 18px; text-align: center; background: #f7f9fa; border: 1px solid var(--line); border-radius: 6px; }
.coupon-code-reveal-label { color: var(--muted); font-size: 10px; }
.coupon-code-reveal code { overflow-wrap: anywhere; color: var(--teal-deep); font: 800 22px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 1px; }
.coupon-code-reveal p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.updates-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 17px; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 11px; }
.check-row input { width: 16px; height: 16px; accent-color: var(--teal); }
.security-grid { gap: 13px; }
.security-status-panel { min-height: 126px; align-items: flex-start; }
.security-status-panel > div { align-self: center; }
.security-status-panel p { margin: 3px 0 0; line-height: 1.6; }
.truncate-hash { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ai-overview-band {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 15px;
  margin: 0 0 17px;
  padding: 16px 19px;
  color: #fff;
  background: #101820;
  border: 1px solid #2a3944;
  border-radius: 7px;
  box-shadow: 0 10px 26px rgba(16, 24, 32, .1);
  cursor: pointer;
  text-align: left;
}
.ai-overview-band:hover { border-color: rgba(23, 184, 151, .65); background: #14212a; }
.ai-overview-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #101820;
  background: var(--teal);
  border-radius: 6px;
}
.ai-overview-copy { min-width: 0; display: grid; gap: 2px; }
.ai-overview-copy small { color: var(--console-accent-bright); font-size: 9px; font-weight: 700; }
.ai-overview-copy strong { font-size: 14px; }
.ai-overview-copy span { overflow: hidden; color: #91a3ad; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ai-overview-metric { min-width: 90px; display: grid; gap: 1px; text-align: right; }
.ai-overview-metric b { color: #fff; font-size: 23px; }
.ai-overview-metric small { color: #91a3ad; font-size: 9px; }
.ai-overview-band > .icon { width: 18px; color: #91a3ad; }
.ai-account-table { min-width: 1080px; }
.ai-account-cell { display: flex; align-items: center; gap: 10px; }
.ai-account-cell > span:last-child { min-width: 0; display: grid; gap: 3px; }
.ai-account-cell strong { overflow: hidden; max-width: 220px; color: var(--ink); font-size: 12px; text-overflow: ellipsis; }
.ai-account-cell small { color: var(--muted); font-size: 10px; }
.ai-account-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border: 1px solid #c9ece3;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}
.ai-account-avatar.admin { color: #4267bb; background: var(--blue-soft); border-color: #dbe5ff; }
.ai-account-avatar.large { width: 46px; height: 46px; font-size: 15px; }
.ai-account-search { width: 240px; }
.ai-pagination-page { min-width: 58px; color: var(--ink-soft); text-align: center; }
.ai-error-state .button { margin-top: 5px; }
.ai-registration-status {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
  padding: 19px 21px;
  color: #fff;
  background: #101820;
  border: 1px solid #2a3944;
  border-radius: 7px;
}
.ai-registration-status > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #101820; background: #91a3ad; border-radius: 6px; }
.ai-registration-status.enabled > span:first-child { background: var(--teal); }
.ai-registration-status > div { min-width: 0; display: grid; gap: 3px; }
.ai-registration-status small { color: #91a3ad; font-size: 9px; }
.ai-registration-status strong { font-size: 14px; }
.ai-registration-status p { margin: 0; color: #b9c7cf; font-size: 10px; }
.ai-registration-status > .pill { margin-left: auto; }
.ai-registration-panel { max-width: 840px; }
.ai-registration-fields { display: grid; gap: 18px; padding: 8px 21px 21px; }
.ai-registration-fields .switch-row { padding: 13px 0 18px; border-bottom: 1px solid var(--line); }
.ai-validity-input { max-width: 280px; display: grid; grid-template-columns: minmax(0, 1fr) 46px; }
.ai-validity-input input { border-radius: 5px 0 0 5px; }
.ai-validity-input > span { display: grid; place-items: center; color: var(--muted); background: #f5f7f8; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 5px 5px 0; font-size: 11px; }
.ai-registration-updated { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; color: var(--muted); font-size: 10px; }
.ai-registration-updated strong { color: var(--ink-soft); font-size: 11px; }
.ai-account-detail { display: grid; gap: 15px; }
.ai-account-detail-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.ai-account-detail-head > div { min-width: 0; display: grid; gap: 3px; }
.ai-account-detail-head strong { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; }
.ai-account-detail-head span { color: var(--muted); font-size: 10px; }
.ai-account-notes { align-items: flex-start; }
.ai-account-notes strong { max-width: 330px; white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .subscription-topbar > span { display: none; }
  .platform-overview-grid,
  .subscription-admin-grid,
  .updates-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .announcement-strip { grid-template-columns: 1fr; }
  .announcement-strip-list { grid-template-columns: 1fr; }
  .subscription-plan-grid { grid-template-columns: 1fr; }
  .subscription-plan { min-height: 192px; }
}

@media (max-width: 720px) {
  .subscription-topbar { height: 38px; padding: 0 5px; }
  .subscription-topbar > .icon { display: none; }
  .subscription-topbar b { height: 28px; padding: 0 9px; }
  .announcement-strip { padding: 12px; }
  .subscription-price-grid { grid-template-columns: 1fr; }
  .coupon-redeem-form { grid-template-columns: 1fr; }
  .coupon-redeem-form .button { width: 100%; }
  .coupon-gate-redeem { align-items: stretch; flex-direction: column; }
  .coupon-gate-redeem .button { width: 100%; }
  .subscription-summary-band { align-items: flex-start; padding: 16px; }
  .subscription-summary-date { font-size: 14px; }
  .subscription-config-form,
  .subscription-channel-form { padding: 15px 14px; }
  .update-manifest-form { padding: 15px 14px 0; }
  .security-grid { grid-template-columns: 1fr; }
  .ai-account-panel .toolbar { align-items: stretch; }
  .ai-account-panel .toolbar-left,
  .ai-account-panel .toolbar-right { width: 100%; overflow-x: auto; }
  .ai-account-panel .filter-tabs { flex: 0 0 auto; }
  .ai-account-search { width: 100%; min-width: 210px; }
  .ai-registration-panel { max-width: none; }
}

@media (max-width: 430px) {
  .subscription-topbar { display: none; }
  .announcement-strip-item { height: auto; min-height: 48px; padding-top: 7px; padding-bottom: 7px; }
  .subscription-payment-choice { grid-template-columns: 1fr; }
  .subscription-summary-date { display: none; }
  .platform-health-band { align-items: flex-start; flex-wrap: wrap; }
  .platform-health-band .button { width: 100%; margin-left: 0; }
  .ai-overview-band { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px; }
  .ai-overview-metric { display: none; }
  .ai-registration-status { align-items: flex-start; padding: 16px; }
  .ai-registration-status > .pill { display: none; }
  .ai-registration-fields { padding-right: 14px; padding-left: 14px; }
  .ai-account-detail-head { grid-template-columns: auto minmax(0, 1fr); }
  .ai-account-detail-head > .pill { grid-column: 1 / -1; justify-self: start; }
}

/* Batch operations, online delivery catalog, and platform registration control */
.online-delivery-flow { display: flex; flex-direction: column; gap: 16px; }
.online-delivery-flow > * { margin-bottom: 0; }
.online-delivery-page.batch-focused > .page-heading,
.online-delivery-page.batch-focused > .online-delivery-luoyang-alert.page-alert { display: none; }
.online-delivery-flow.batch-focused .online-delivery-search-panel { order: 1; }
.online-delivery-flow.batch-focused .online-delivery-batch-panel { order: 2; }
.online-delivery-flow.batch-focused .online-delivery-bridge-panel { order: 3; }
.online-delivery-flow.batch-focused .online-delivery-bridge-panel > .table-scroll,
.online-delivery-flow.batch-focused .online-delivery-search-panel > .role-query-form,
.online-delivery-flow.batch-focused .online-delivery-search-panel > .role-zone-errors,
.online-delivery-flow.batch-focused .online-delivery-search-panel > .table-scroll { display: none; }
.online-delivery-flow.batch-focused .online-delivery-batch-targets { display: none; }
.online-delivery-context-summary { display: flex; align-items: center; gap: 9px; padding: 10px 19px 12px; color: var(--muted); border-top: 1px solid var(--line); }
.online-delivery-context-summary > .icon { width: 16px; color: var(--teal-deep); flex: 0 0 auto; }
.online-delivery-context-summary > span { min-width: 0; display: grid; gap: 2px; }
.online-delivery-context-summary strong { color: var(--ink-soft); font-size: 12px; }
.online-delivery-context-summary small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.online-delivery-preview-note { display: flex; align-items: center; gap: 8px; padding: 10px 19px; color: var(--muted); background: #f7f9fa; border-bottom: 1px solid var(--line); font-size: 11px; }
.online-delivery-preview-note > .icon { width: 14px; color: var(--teal-deep); }
.online-delivery-focused-toolbar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-top: 1px solid var(--line); }
.online-delivery-focused-search { min-width: 0; height: 38px; display: flex; flex: 1; align-items: center; gap: 7px; padding: 0 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; }
.online-delivery-focused-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23, 184, 151, .12); }
.online-delivery-focused-search > .icon { width: 14px; flex: 0 0 auto; color: var(--muted); }
.online-delivery-focused-search input { min-width: 0; width: 100%; height: 36px; padding: 0; background: transparent; border: 0; outline: 0; font-size: 12px; }
.online-delivery-focused-toolbar > .icon-button { width: 38px; height: 38px; flex: 0 0 38px; }
.online-delivery-focused-toolbar > .online-delivery-focused-toolbar-refresh { min-width: 92px; height: 38px; flex: 0 0 auto; justify-content: center; gap: 5px; }
.online-delivery-focused-toolbar > .online-delivery-focused-toolbar-refresh > .icon { width: 14px; }
.online-delivery-focused-toolbar > .online-delivery-focused-toolbar-refresh:disabled { color: var(--teal-deep); background: #eef8f5; border-color: #bfe7dc; opacity: .9; }
.online-delivery-focused-meta { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 7px 14px; color: var(--muted); background: #f7faf9; border-top: 1px solid var(--line); font-size: 11px; }
.online-delivery-focused-meta > .icon { width: 14px; color: var(--teal-deep); }
.online-delivery-focused-meta > b { margin-left: auto; color: #9a6513; font-size: 11px; }
.online-delivery-focused-meta > small { margin-left: auto; color: var(--muted); font-size: 10px; }
.online-delivery-focused-meta > .online-delivery-focused-refresh { min-height: 28px; margin-left: 8px; padding: 0 8px; gap: 5px; font-size: 11px; white-space: nowrap; }
.online-delivery-focused-meta > .online-delivery-focused-refresh > .icon { width: 13px; }
.online-delivery-focused-notice { display: flex; align-items: flex-start; gap: 7px; padding: 8px 14px; color: #805717; background: #fff8e9; border-top: 1px solid #ecd8ad; font-size: 11px; line-height: 1.5; }
.online-delivery-focused-notice > .icon { width: 14px; flex: 0 0 auto; margin-top: 1px; }
.online-delivery-focused-selection-bar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; }
.online-delivery-focused-selection-bar .check-row { margin: 0; font-size: 11px; }
.online-delivery-focused-selection-bar strong { color: var(--teal-deep); font-size: 13px; }
.online-delivery-focused-selection-bar b { font-weight: 600; }
.online-delivery-focused-content { min-height: 0; display: flex; flex: 1; }
.online-delivery-focused-content > * { width: 100%; }
.online-delivery-focused-roles { min-height: 270px; max-height: 480px; display: grid; align-content: start; padding: 5px 0; overflow-y: auto; border-top: 1px solid var(--line); }
.online-delivery-focused-role { min-width: 0; min-height: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.online-delivery-focused-role:hover { background: #f7faf9; }
.online-delivery-focused-role.selected { background: #f0faf7; }
.online-delivery-focused-role.disabled { cursor: not-allowed; opacity: .62; }
.online-delivery-focused-role.disabled:hover { background: transparent; }
.online-delivery-focused-role:last-child { border-bottom: 0; }
.online-delivery-focused-role > input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
.online-delivery-focused-role > span { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 7px; row-gap: 2px; }
.online-delivery-focused-role > span > .icon { grid-row: 1 / 3; width: 15px; color: var(--teal-deep); }
.online-delivery-focused-role strong,
.online-delivery-focused-role small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-delivery-focused-role strong { color: var(--ink); font-size: 13px; }
.online-delivery-focused-role small { color: var(--muted); font-size: 11px; }
.online-delivery-focused-empty { min-height: 250px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 18px; color: var(--muted); font-size: 11px; text-align: center; }
.online-delivery-focused-empty > .icon { width: 20px; }
.online-delivery-focused-state { min-height: 270px; display: flex; flex: 1; align-items: center; justify-content: center; flex-direction: column; gap: 9px; padding: 24px; color: var(--muted); font-size: 12px; text-align: center; }
.online-delivery-focused-state > .icon { width: 20px; }
.online-delivery-focused-state.error { color: #a94750; }
.online-delivery-focused-state.error strong { max-width: 230px; line-height: 1.6; }
.login-registration-closed { margin: 0 0 22px; padding: 11px 12px; color: #76531b; background: var(--amber-soft); border: 1px solid #f0d9ad; border-radius: 6px; font-size: 11px; line-height: 1.6; }
.platform-registration-control { max-width: 900px; }
.settings-control-body { padding: 6px 21px 18px; }
.settings-updated-at { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 15px; margin-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }
.settings-updated-at strong { color: var(--ink-soft); font-size: 11px; text-align: right; }

.online-delivery-selection-bar { min-height: 52px; display: flex; align-items: center; gap: 16px; padding: 9px 19px; background: #f7faf9; border-bottom: 1px solid var(--line); }
.online-delivery-selection-bar .check-row { margin: 0; }
.online-delivery-selection-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.online-delivery-selection-count strong { color: var(--teal-deep); font-size: 15px; }
.online-delivery-selection-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.online-delivery-check-cell { width: 62px; text-align: center; }
.online-delivery-check-cell input { width: 16px; height: 16px; accent-color: var(--teal); }
.online-delivery-zone-live { display: flex; align-items: center; gap: 10px; }
.online-delivery-zone-live > strong { color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.online-delivery-target-summary,
.online-delivery-batch-target-context { display: flex; align-items: center; gap: 9px; padding: 10px 19px; color: var(--muted); background: #f7faf9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.online-delivery-target-summary > .icon,
.online-delivery-batch-target-context > .icon { width: 16px; flex: 0 0 auto; color: var(--teal-deep); }
.online-delivery-target-summary > span,
.online-delivery-batch-target-context > span { min-width: 0; display: grid; gap: 2px; }
.online-delivery-target-summary small,
.online-delivery-batch-target-context small { color: var(--muted); font-size: 10px; }
.online-delivery-zone-identity { min-width: 0; display: grid; gap: 2px; }
.online-delivery-zone-identity strong { overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.online-delivery-zone-identity small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.online-delivery-row-actions { flex-wrap: wrap; gap: 6px; }
.online-delivery-row-delivery { color: #fff; }
.online-delivery-zone-address { display: block; margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 10px; }

.online-delivery-luoyang-alert { display: flex; align-items: center; gap: 12px; padding: 13px 15px; color: #6d4b13; background: var(--amber-soft); border: 1px solid #efd7a7; border-radius: 6px; }
.online-delivery-luoyang-alert > .icon { width: 20px; color: #aa741c; }
.online-delivery-luoyang-alert > div { min-width: 0; display: grid; gap: 3px; }
.online-delivery-luoyang-alert strong { color: #66450f; font-size: 13px; }
.online-delivery-luoyang-alert span { font-size: 12px; line-height: 1.6; }
.online-delivery-luoyang-alert > b { margin-left: auto; padding-left: 14px; color: #7c5514; border-left: 1px solid #dfc58f; font-size: 12px; white-space: nowrap; }
.online-delivery-luoyang-alert.page-alert { margin-bottom: 16px; }
.online-delivery-luoyang-alert.modal-alert { align-items: flex-start; margin-top: 15px; }
.luoyang-online-count { display: grid; gap: 2px; }
.luoyang-online-count strong { color: var(--teal-deep); font-size: 17px; line-height: 1; }
.luoyang-online-count span { color: var(--muted); font-size: 11px; }

.online-delivery-batch-panel { margin-bottom: 16px; overflow: visible; border-color: #b9ddd4; scroll-margin-top: 78px; }
.online-delivery-batch-header { position: sticky; top: 70px; z-index: 5; background: #fff; box-shadow: 0 1px 0 var(--line); }
.online-delivery-batch-header-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.online-delivery-batch-header-actions .button { white-space: nowrap; }
.online-delivery-batch-submit { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.online-delivery-batch-submit.primary { color: #fff; background: var(--teal); }
.online-delivery-batch-submit.primary:hover { background: var(--teal-deep); }
.online-delivery-batch-submit.danger { color: #fff; background: var(--red); }
.online-delivery-batch-submit.danger:hover { background: #8f303a; }
.online-delivery-batch-submit:disabled { cursor: not-allowed; opacity: .6; }
.online-delivery-batch-submit .icon { width: 14px; }

@media (min-width: 1051px) {
  .online-delivery-flow.batch-focused { display: grid; grid-template-columns: minmax(270px, .42fr) minmax(0, 1fr); grid-template-rows: auto minmax(420px, 1fr); align-items: stretch; }
  .online-delivery-flow.batch-focused .online-delivery-bridge-panel { grid-column: 1; grid-row: 1; }
  .online-delivery-flow.batch-focused .online-delivery-search-panel { min-height: 0; display: flex; grid-column: 1; grid-row: 2; flex-direction: column; margin-bottom: 0; overflow: hidden; }
  .online-delivery-flow.batch-focused .online-delivery-focused-roles { min-height: 0; max-height: none; flex: 1; }
  .online-delivery-flow.batch-focused .online-delivery-focused-state { min-height: 0; }
  .online-delivery-flow.batch-focused .online-delivery-batch-panel { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
}

@media (max-width: 1050px) {
  .recharge-item-editor-head { display: none; }
  .recharge-item-row { grid-template-columns: minmax(0, 1fr) minmax(110px, .8fr) 80px 36px; }
  .online-delivery-flow.batch-focused .online-delivery-bridge-panel { display: none; }
}
.online-delivery-batch-targets { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 13px 19px; background: #f7faf9; border-bottom: 1px solid var(--line); }
.online-delivery-batch-targets > span { min-width: 150px; display: grid; gap: 2px; padding: 7px 9px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.online-delivery-batch-targets strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.online-delivery-batch-targets small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.online-delivery-batch-targets em { color: var(--muted); font-size: 12px; font-style: normal; }
.online-delivery-batch-panel > .online-delivery-luoyang-alert { margin: 15px 19px 0; }
.online-delivery-page.batch-focused .online-delivery-batch-panel > .online-delivery-luoyang-alert { padding: 9px 12px; margin: 10px 19px 0; }
.online-delivery-page.batch-focused .online-delivery-batch-panel > .online-delivery-luoyang-alert span { display: none; }
.online-delivery-batch-form { padding: 16px 19px 19px; }
.online-delivery-batch-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--line); }
.online-delivery-batch-actions > span { color: var(--muted); font-size: 12px; }

.online-delivery-catalog { grid-column: 1 / -1; display: grid; gap: 11px; padding: 13px; background: #f7f9fa; border: 1px solid var(--line); border-radius: 6px; }
.online-delivery-catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.online-delivery-catalog-heading > span { color: var(--ink-soft); font-size: 13px; font-weight: 800; }
.online-delivery-catalog-heading small { color: var(--muted); font-size: 11px; text-align: right; }
.online-delivery-catalog-toolbar { display: grid; grid-template-columns: auto minmax(220px, 1fr); gap: 10px; }
.segmented-control { display: inline-flex; padding: 3px; background: #e9eef0; border-radius: 6px; }
.segmented-control > button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.segmented-control > button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(16, 24, 32, .09); }
.segmented-control .icon { width: 14px; }
.online-delivery-catalog-search { min-width: 0; height: 40px; display: flex; align-items: center; gap: 7px; padding-left: 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; }
.online-delivery-catalog-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23, 184, 151, .12); }
.online-delivery-catalog-search > .icon { width: 15px; color: var(--muted); }
.online-delivery-catalog-search input { min-width: 0; flex: 1; height: 38px; padding: 0; background: transparent; border: 0; outline: 0; font-size: 13px; }
.online-delivery-catalog-search .icon-button { width: 38px; height: 38px; border-width: 0 0 0 1px; border-radius: 0 4px 4px 0; }
.online-delivery-catalog-source { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.online-delivery-catalog-source .icon { width: 14px; }
.online-delivery-catalog-delivery-bar { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(110px, .38fr) auto; align-items: end; gap: 9px; padding: 9px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.online-delivery-catalog-delivery-bar > label { min-width: 0; display: grid; gap: 5px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.online-delivery-catalog-delivery-bar input { min-width: 0; width: 100%; height: 36px; padding: 0 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; outline: 0; font-size: 13px; }
.online-delivery-catalog-delivery-bar input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23, 184, 151, .12); }
.online-delivery-catalog-delivery-bar .online-delivery-batch-submit { min-height: 36px; }
.online-delivery-catalog-results { max-height: 224px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow-y: auto; }
.online-delivery-catalog-result { min-width: 0; min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.online-delivery-catalog-result:hover, .online-delivery-catalog-result.active { border-color: var(--teal); background: #f0faf7; }
.online-delivery-catalog-result > span { min-width: 0; display: grid; gap: 2px; }
.online-delivery-catalog-result strong, .online-delivery-catalog-result small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-delivery-catalog-result strong { color: var(--ink); font-size: 13px; }
.online-delivery-catalog-result small { color: var(--muted); font-size: 11px; }
.online-delivery-catalog-result b { color: var(--teal-deep); font-size: 12px; }
.online-delivery-catalog-state { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; color: var(--muted); background: #fff; border: 1px dashed var(--line-strong); border-radius: 5px; font-size: 12px; }
.online-delivery-catalog-state.error { color: #a94750; background: #fff7f7; border-color: #efc9cd; }
.online-delivery-catalog-selected { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.online-delivery-catalog-selected > .icon { width: 15px; color: var(--teal-deep); }
.online-delivery-catalog-selected strong { color: var(--ink); }
.online-delivery-catalog-selected b { margin-left: auto; color: var(--teal-deep); font-size: 12px; }
.online-delivery-catalog-pagination { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.online-delivery-catalog-pagination strong { color: var(--ink-soft); }
.online-delivery-catalog-pagination-actions { display: flex; align-items: center; gap: 9px; }
.online-delivery-catalog-page-jump { height: 32px; display: flex; align-items: center; gap: 6px; color: var(--ink-soft); white-space: nowrap; }
.online-delivery-catalog-page-jump input { width: 64px; height: 32px; padding: 0 7px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; outline: 0; font-size: 12px; text-align: center; }
.online-delivery-catalog-page-jump input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23, 184, 151, .12); }
.online-delivery-catalog-page-buttons { display: flex; gap: 5px; }
.online-delivery-catalog-pagination .icon-button { width: 32px; height: 32px; }
.online-delivery-record-counts { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.online-delivery-record-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }

.role-query-header-actions { display: flex; align-items: center; gap: 12px; }
.role-batch-panel { padding: 16px 19px 18px; background: #f7f9fa; border-bottom: 1px solid var(--line); }
.role-batch-heading, .role-batch-heading > div { display: flex; align-items: center; gap: 10px; }
.role-batch-heading { justify-content: space-between; }
.role-batch-heading > div > .icon { width: 34px; height: 34px; padding: 8px; color: var(--teal-deep); background: var(--teal-soft); border-radius: 6px; }
.role-batch-heading span { display: grid; gap: 2px; }
.role-batch-heading strong { font-size: 12px; }
.role-batch-heading small { color: var(--muted); font-size: 9px; }
.role-batch-scope { display: flex; align-items: center; gap: 8px; padding: 10px 0 13px; margin: 11px 0 13px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; }
.role-batch-scope .icon { width: 15px; color: #4267bb; }
.role-batch-scope strong { color: var(--ink); }
.role-batch-scope small { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-batch-form { display: grid; grid-template-columns: minmax(300px, 1.3fr) minmax(150px, .55fr) minmax(200px, .8fr) auto; align-items: end; gap: 12px; }
.role-batch-target { min-width: 0; padding: 0; margin: 0; border: 0; }
.role-batch-target legend { padding: 0 0 7px; color: #45535c; font-size: 11px; font-weight: 700; }
.segmented-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.segmented-choice label { min-width: 0; cursor: pointer; }
.segmented-choice input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-choice label > span { min-height: 46px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 7px; padding: 7px 9px; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; }
.segmented-choice input:checked + span { background: #edf9f5; border-color: var(--teal); box-shadow: 0 0 0 2px rgba(23, 184, 151, .1); }
.segmented-choice .icon { grid-row: 1 / 3; width: 16px; color: var(--teal-deep); }
.segmented-choice strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.segmented-choice small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.role-batch-confirm { grid-column: 1 / -2; display: flex; align-items: center; gap: 8px; color: #7d343c; font-size: 10px; font-weight: 700; cursor: pointer; }
.role-batch-confirm input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); }
.role-batch-result { display: grid; gap: 11px; padding: 12px; margin-top: 14px; background: #eff9f6; border: 1px solid #c7e7de; border-radius: 6px; }
.role-batch-result.partial { background: #fff8e9; border-color: #ecd8ad; }
.role-batch-result > div:first-child { display: flex; align-items: flex-start; gap: 9px; }
.role-batch-result > div:first-child > .icon { width: 17px; color: var(--teal-deep); }
.role-batch-result.partial > div:first-child > .icon { color: #a36c15; }
.role-batch-result > div:first-child span { display: grid; gap: 3px; }
.role-batch-result strong { font-size: 11px; }
.role-batch-result small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.role-batch-result-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.role-batch-result-zones > span { min-width: 0; display: grid; gap: 2px; padding: 7px 8px; background: #fff; border-left: 3px solid var(--teal); }
.role-batch-result-zones > span.failed { border-left-color: var(--red); }
.role-batch-result-zones b, .role-batch-result-zones small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1050px) {
  .role-batch-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-batch-target { grid-column: 1 / -1; }
  .role-batch-confirm { grid-column: 1 / 2; }
  .role-batch-form > .button { justify-self: stretch; }
}

@media (max-width: 720px) {
  .recharge-item-row { grid-template-columns: minmax(0, 1fr) 76px 36px; }
  .recharge-item-name { grid-column: 1 / -1; }
  .recharge-item-quantity > span { display: block; }
  .online-delivery-selection-bar { align-items: flex-start; flex-wrap: wrap; padding: 11px 14px; }
  .online-delivery-selection-actions { width: 100%; margin-left: 0; }
  .online-delivery-selection-actions .button { flex: 1; }
  .online-delivery-zone-live { align-items: flex-start; flex-direction: column; }
  .online-delivery-luoyang-alert { align-items: flex-start; flex-wrap: wrap; }
  .online-delivery-luoyang-alert > b { width: 100%; padding: 8px 0 0 32px; margin-left: 0; border-top: 1px solid #dfc58f; border-left: 0; }
  .online-delivery-batch-targets { padding: 11px 14px; }
  .online-delivery-batch-targets > span { flex: 1 1 140px; }
  .online-delivery-batch-panel > .online-delivery-luoyang-alert { margin: 13px 14px 0; }
  .online-delivery-batch-form { padding: 14px; }
  .online-delivery-batch-form .form-grid { grid-template-columns: 1fr; }
  .online-delivery-batch-form .field.full, .online-delivery-catalog { grid-column: 1; }
  .online-delivery-catalog-toolbar { grid-template-columns: 1fr; }
  .online-delivery-catalog-delivery-bar { grid-template-columns: minmax(0, 1fr) minmax(100px, .45fr); }
  .online-delivery-catalog-delivery-bar .online-delivery-batch-submit { grid-column: 1 / -1; width: 100%; }
  .segmented-control { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .online-delivery-catalog-results { grid-template-columns: 1fr; }
  .online-delivery-catalog-pagination { align-items: flex-start; flex-direction: column; }
  .online-delivery-catalog-pagination-actions { width: 100%; justify-content: space-between; }
  .online-delivery-batch-actions { align-items: stretch; flex-direction: column; }
  .online-delivery-batch-actions .button { width: 100%; }
  .online-delivery-batch-panel { scroll-margin-top: 66px; }
  .online-delivery-batch-header { top: 58px; }
  .online-delivery-batch-header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .online-delivery-batch-header-actions .online-delivery-batch-submit { order: -1; }
  .online-delivery-context-summary { padding-right: 14px; padding-left: 14px; }
  .online-delivery-context-summary small { white-space: normal; }
  .online-delivery-focused-meta { align-items: flex-start; flex-wrap: wrap; }
  .online-delivery-focused-meta > span { min-width: 0; flex: 1 1 140px; }
  .online-delivery-focused-meta > b,
  .online-delivery-focused-meta > small { margin-left: auto; }
  .online-delivery-focused-meta > .online-delivery-focused-refresh { margin-left: auto; }
  .online-delivery-focused-roles { min-height: 220px; max-height: 360px; }
  .online-delivery-record-counts { justify-content: flex-start; }
  .online-delivery-record-actions { width: 100%; justify-content: flex-start; }
  .role-query-header-actions { width: 100%; justify-content: space-between; }
  .role-batch-panel { padding: 14px; }
  .role-batch-scope { align-items: flex-start; flex-wrap: wrap; }
  .role-batch-scope small { width: 100%; margin-left: 23px; white-space: normal; }
  .role-batch-form { grid-template-columns: 1fr; }
  .role-batch-target, .role-batch-confirm { grid-column: 1; }
  .role-batch-form > .button { width: 100%; }
  .role-batch-result-zones { grid-template-columns: 1fr; }
  .settings-control-body { padding-right: 14px; padding-left: 14px; }
}

@media (max-width: 420px) {
  .online-delivery-focused-toolbar > .online-delivery-focused-toolbar-refresh { min-width: 38px; width: 38px; padding: 0; }
  .online-delivery-focused-toolbar > .online-delivery-focused-toolbar-refresh > span { display: none; }
}

@media (max-width: 430px) {
  .segmented-choice { grid-template-columns: 1fr; }
  .online-delivery-catalog-heading { align-items: flex-start; flex-direction: column; }
  .online-delivery-catalog-heading small { text-align: left; }
  .online-delivery-catalog-delivery-bar { grid-template-columns: 1fr; }
  .online-delivery-catalog-delivery-bar .online-delivery-batch-submit { grid-column: 1; }
}

/* Unified readable type scale for the platform and agent workspaces. */
:root {
  --font-sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

.admin-shell {
  font-size: 14px;
  line-height: 1.55;
}

.admin-shell :where(p, label, td, th, li, dt, dd) {
  font-size: 14px !important;
  line-height: 1.55;
}

.admin-shell :where(small) {
  font-size: 12px !important;
  line-height: 1.45;
}

.admin-shell .brand-copy strong { font-size: 17px !important; }
.admin-shell .brand-copy span { font-size: 11px !important; }
.admin-shell .tenant-avatar { font-size: 14px !important; }
.admin-shell .tenant-copy strong { font-size: 14px !important; }
.admin-shell .tenant-copy span { font-size: 12px !important; }
.admin-shell .nav-section-label { font-size: 12px !important; }
.admin-shell .nav-item { font-size: 14px !important; }
.admin-shell .nav-badge { font-size: 12px !important; }
.admin-shell .sidebar-status span { font-size: 12px !important; }
.admin-shell .sidebar-status strong { font-size: 13px !important; }
.admin-shell .sidebar-user-copy strong { font-size: 14px !important; }
.admin-shell .sidebar-user-copy span { font-size: 12px !important; }
.admin-shell .crumb,
.admin-shell .date-chip { font-size: 13px !important; }
.admin-shell .profile-trigger-copy strong { font-size: 14px !important; }
.admin-shell .profile-trigger-copy span { font-size: 12px !important; }
.admin-shell .mobile-workspace-title strong { font-size: 14px !important; }
.admin-shell .mobile-workspace-title span { font-size: 12px !important; }

.admin-shell .eyebrow { font-size: 12px !important; }
.admin-shell .page-title { font-size: 28px !important; line-height: 1.25; }
.admin-shell .page-subtitle { font-size: 15px !important; line-height: 1.55; }
.admin-shell .button { font-size: 14px !important; }
.admin-shell .button.compact { font-size: 13px !important; }
.admin-shell .pill { font-size: 12px !important; }

.admin-shell .kpi-label { font-size: 14px !important; }
.admin-shell .kpi-value { font-size: 30px !important; line-height: 1.1; }
.admin-shell .kpi-foot { font-size: 13px !important; line-height: 1.45; }
.admin-shell .panel-heading h2 { font-size: 17px !important; }
.admin-shell .panel-heading p { font-size: 13px !important; line-height: 1.5; }
.admin-shell .range-tab,
.admin-shell .filter-tab { font-size: 13px !important; }
.admin-shell .chart-summary strong { font-size: 28px !important; }
.admin-shell .chart-summary span,
.admin-shell .chart-legend { font-size: 13px !important; }
.admin-shell .chart-label { font-size: 12px !important; }

.admin-shell .mini-table th,
.admin-shell .data-table th { font-size: 13px !important; }
.admin-shell .mini-table td,
.admin-shell .data-table td {
  font-size: 14px !important;
  line-height: 1.5;
  padding-top: 16px;
  padding-bottom: 16px;
}
.admin-shell .table-main strong { font-size: 14px !important; }
.admin-shell .table-main span { font-size: 12px !important; }
.admin-shell .link-code { font-size: 12px !important; }
.admin-shell .pagination { font-size: 13px !important; }
.admin-shell .sub-card h3 { font-size: 16px !important; }
.admin-shell .sub-card > p { font-size: 13px !important; }
.admin-shell .metric-row strong { font-size: 28px !important; }
.admin-shell .metric-row span { font-size: 13px !important; }
.admin-shell .card-list-row > span:first-child { font-size: 13px !important; }
.admin-shell .card-list-row > strong { font-size: 14px !important; }
.admin-shell .game-card-title h3 { font-size: 15px !important; }
.admin-shell .game-card-title p,
.admin-shell .game-card-stats span,
.admin-shell .health { font-size: 12px !important; }
.admin-shell .game-card-stats strong { font-size: 17px !important; }
.admin-shell .balance-card h2 { font-size: 34px !important; }
.admin-shell .balance-card p,
.admin-shell .balance-footer span { font-size: 13px !important; }
.admin-shell .balance-footer strong { font-size: 16px !important; }
.admin-shell .settlement-status h3 { font-size: 15px !important; }
.admin-shell .settlement-status p { font-size: 13px !important; }
.admin-shell .settlement-step { font-size: 12px !important; }
.admin-shell .bridge-copy h3 { font-size: 15px !important; }
.admin-shell .bridge-copy p,
.admin-shell .bridge-meta { font-size: 12px !important; }
.admin-shell .capability { font-size: 12px !important; }

.admin-shell .role-filter-field > span:first-child,
.admin-shell .field label,
.admin-shell .field > span,
.admin-shell .player-detail-filters label { font-size: 13px !important; }
.admin-shell .role-filter-field select,
.admin-shell .role-picker-trigger,
.admin-shell .role-search-input input,
.admin-shell .player-detail-filters select,
.admin-shell .field input,
.admin-shell .field select,
.admin-shell .field textarea { font-size: 14px !important; }
.admin-shell .field-help { font-size: 12px !important; }
.admin-shell .option-check,
.admin-shell .option-check.detailed strong { font-size: 13px !important; }
.admin-shell .option-check.detailed small { font-size: 12px !important; }
.admin-shell .notice-box,
.admin-shell .modal-error { font-size: 13px !important; }
.admin-shell .modal-header h2 { font-size: 20px !important; }
.admin-shell .modal-header p { font-size: 13px !important; }
.admin-shell .form-section-title strong,
.admin-shell .zone-type-field > strong { font-size: 15px !important; }
.admin-shell .form-section-title span { font-size: 12px !important; }
.admin-shell .api-box code { font-size: 13px !important; }
.admin-shell .toast { font-size: 13px !important; }
.admin-shell .profile-menu button { font-size: 13px !important; }
.admin-shell .empty-state strong,
.admin-shell .role-query-state strong { font-size: 15px !important; }
.admin-shell .empty-state span,
.admin-shell .role-query-state span:not(.empty-icon) { font-size: 13px !important; }

/* Small inline annotations in overview cards should follow the same scale. */
.admin-shell [style*="font-size:10px"],
.admin-shell [style*="font-size: 10px"] { font-size: 13px !important; }
.admin-shell [style*="font-size:11px"],
.admin-shell [style*="font-size: 11px"] { font-size: 13px !important; }

/* The sign-in surface is part of the same product and uses the same family. */
.login-shell { font-family: var(--font-sans); font-size: 15px; line-height: 1.55; }
.login-scene-copy > p,
.login-kicker { font-size: 13px !important; }
.login-scene-copy h1 { font-size: 42px !important; }
.login-signal { font-size: 13px !important; }
.login-card h2 { font-size: 30px !important; }
.login-card .login-intro { font-size: 15px !important; }
.login-field > span { font-size: 14px !important; }
.login-input input { font-size: 15px !important; }
.login-submit { font-size: 15px !important; }
.login-error { font-size: 13px !important; }
.login-security,
.login-copyright { font-size: 12px !important; }

@media (max-width: 720px) {
  .admin-shell .page-title { font-size: 24px !important; }
  .admin-shell .page-subtitle { font-size: 14px !important; }
  .admin-shell .kpi-value { font-size: 25px !important; }
  .admin-shell .panel-heading h2 { font-size: 16px !important; }
  .admin-shell .mini-table td,
  .admin-shell .data-table td { padding-top: 14px; padding-bottom: 14px; }
  .login-scene-copy h1 { font-size: 34px !important; }
  .login-card h2 { font-size: 27px !important; }
}

@media (max-width: 430px) {
  .admin-shell .kpi-label { font-size: 13px !important; }
  .admin-shell .kpi-value { font-size: 22px !important; }
  .admin-shell .kpi-foot { font-size: 12px !important; }
}
