* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--md-bg);
  color: var(--md-text);
  font-family: var(--md-font);
  font-size: var(--md-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
.ex-page-title,
.ex-profile-name,
.ex-card-head h2,
.ex-game-card h2,
.ex-page-head h1,
.ex-modal-head h2 {
  font-family: var(--md-font);
  font-weight: var(--md-heading-weight);
  letter-spacing: 0.02em;
}

body {
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.ex-app {
  min-height: 100dvh;
}

.ex-screen {
  width: 100%;
  padding: 16px;
}

.ex-screen--center {
  display: grid;
  min-height: 100dvh;
  place-items: center;
}

.md-elevated {
  box-shadow: none;
}

.ex-login-card {
  width: min(430px, 100%);
  padding: 32px;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface);
}

.ex-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 0;
  background: #1f242c;
  border: 1px solid rgba(212, 162, 76, 0.45);
  color: var(--md-primary);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ex-brand-mark--small {
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 0;
  font-size: 14px;
}

.ex-page-title {
  margin: 0 0 8px;
  font-size: var(--md-title-lg);
}

.ex-body-muted {
  margin: 0 0 24px;
  color: var(--md-text-muted);
  line-height: 1.55;
}

.ex-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 0;
  background: var(--md-surface-2);
}

.ex-auth-tab {
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--md-text-muted);
  cursor: pointer;
  font-weight: 500;
}

.ex-auth-tab.on {
  background: var(--md-surface-3);
  color: var(--md-primary);
}

.ex-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.ex-label {
  color: var(--md-text-muted);
  font-size: var(--md-label);
  font-weight: 500;
}

.ex-input,
.ex-select,
.ex-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(232, 184, 74, 0.22);
  border-radius: 0;
  outline: none;
  background: linear-gradient(180deg, #1c1f26 0%, #16191f 100%);
  color: var(--md-text);
}

.ex-textarea {
  min-height: 72px;
  resize: vertical;
}

.ex-input:focus,
.ex-select:focus,
.ex-textarea:focus {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 2px rgba(232, 184, 74, 0.22);
}

.ex-btn {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--md-primary);
  cursor: pointer;
  font-weight: 600;
}

.ex-btn:hover {
  background: var(--md-primary-container);
  border-color: rgba(232, 184, 74, 0.28);
}

.ex-btn-filled {
  width: 100%;
  border-color: transparent;
  background: #d4a24c;
  color: var(--md-on-primary);
  box-shadow: none;
}

.ex-btn-filled:hover {
  background: #e0b050;
}

.ex-btn-inline {
  width: auto;
  min-width: 120px;
  padding-inline: 16px;
}

.ex-btn-accent {
  border-color: rgba(94, 207, 154, 0.35);
  background: var(--md-accent-soft);
  color: var(--md-accent);
}

.ex-btn-accent:hover {
  background: rgba(94, 207, 154, 0.28);
}

.ex-btn-danger {
  color: var(--md-error);
}

.ex-btn-danger-soft {
  border-color: rgba(232, 137, 125, 0.35);
  background: var(--md-danger-soft);
  color: var(--md-error);
}

.ex-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--md-text-muted);
  font-size: 12px;
}

.ex-status.err {
  color: var(--md-error);
}

.ex-text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--md-primary);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.ex-dashboard {
  min-height: 100dvh;
  padding-top: 64px;
  padding-left: 0;
}

.ex-global-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 18px 8px 16px;
  border-bottom: 1px solid var(--md-outline);
  background: rgba(19, 19, 20, 0.92);
  backdrop-filter: none;
}

.ex-global-balance {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
  max-width: min(420px, calc(100vw - 420px));
}

.ex-global-balance-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ex-global-balance-label.is-owe {
  color: #ff5c6c;
}

.ex-global-balance-label.is-overpaid {
  color: #7dff9a;
}

.ex-global-balance-label.is-settled {
  color: var(--md-text-muted);
}

.ex-global-pay-btn[hidden] {
  display: none;
}

.ex-global-pay-btn {
  flex: 0 0 auto;
  min-width: 64px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 92, 108, 0.55);
  background: #1a0d10;
  color: #ff8a96;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.ex-global-pay-btn:hover {
  background: #2a1218;
  color: #ffb0b8;
  border-color: rgba(255, 92, 108, 0.85);
}

.ex-global-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--md-text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.ex-brand-home {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(212, 162, 76, 0.45);
  background: #1f242c;
  color: var(--md-primary);
}

.ex-brand-home svg {
  display: block;
}

.ex-game-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ex-game-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--md-text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.ex-game-switch.on {
  background: var(--md-surface-2);
  color: var(--md-text);
}

.ex-global-actions {
  --ex-top-cube: 52px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-left: auto;
}

/* `display: inline-flex` would otherwise beat the HTML `hidden` attribute
   (same specificity as the UA [hidden] rule), so DEMO would show for everyone. */
.ex-topbar-store[hidden],
.ex-topbar-demo[hidden] {
  display: none !important;
}

.ex-topbar-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: var(--ex-top-cube);
  padding: 0 14px;
  border: 1px solid var(--line, #242424);
  background: var(--deep, #0a0a0a);
  color: #e8d27a;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.ex-topbar-store svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.ex-topbar-store:hover {
  border-color: rgba(212, 162, 76, 0.55);
  background: #14161c;
  color: var(--md-primary, #f0c96b);
}

.ex-topbar-demo {
  color: #9d9d9d;
}

.ex-topbar-demo.is-demo-on {
  color: #061206;
  background: #7dff9a;
  border-color: #7dff9a;
}

.ex-topbar-demo.is-demo-on:hover {
  color: #061206;
  background: #63e884;
  border-color: #63e884;
}

.ex-avatar-button,
.ex-side-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(212, 162, 76, 0.35);
  border-radius: 0;
  background: #232831;
  color: var(--md-primary);
  font-weight: 700;
}

.ex-avatar-button {
  cursor: pointer;
  box-sizing: border-box;
  width: var(--ex-top-cube);
  height: var(--ex-top-cube);
  flex: 0 0 var(--ex-top-cube);
  border: 1px solid var(--line, #242424);
  background: var(--deep, #0a0a0a);
  color: #e8d27a;
}

.ex-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: var(--ex-top-cube);
  max-width: min(240px, 42vw);
  padding: 0 12px 0 14px;
  border: 1px solid var(--line, #242424);
  background: var(--deep, #0a0a0a);
  color: var(--md-text);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.ex-account-chip:hover,
.ex-profile-menu.open .ex-account-chip {
  border-color: rgba(232, 210, 122, 0.45);
  background: #121212;
}

.ex-account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f3f3f3;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ex-account-chip .ex-gear-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
  color: #e8d27a;
}

.ex-avatar-button .ex-gear-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.ex-profile-menu {
  position: relative;
}

.ex-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: grid;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--md-outline-strong);
  border-radius: 0;
  background: rgba(28, 30, 34, 0.98);
  box-shadow: none;
}

.ex-profile-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--md-text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: left;
}

.ex-profile-dropdown button:hover {
  background: var(--md-surface-2);
}

.ex-profile-dropdown button.is-danger {
  color: #e08a80;
}

.ex-profile-dropdown button.is-danger:hover {
  background: rgba(217, 119, 108, 0.14);
}

.ex-icon-rail {
  display: none !important;
}

.ex-rail-button,
.ex-icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--md-text-muted);
  cursor: pointer;
}

.ex-rail-button:hover,
.ex-icon-button:hover {
  background: var(--md-surface-2);
  color: var(--md-text);
}

.ex-rail-button.on {
  background: var(--md-primary-container);
  color: var(--md-primary);
}

.ex-rail-button svg,
.ex-nav-icon svg,
.ex-mobile-nav-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ex-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100dvh - 64px);
}

.ex-side-panel {
  position: sticky;
  top: 64px;
  display: flex;
  width: 220px;
  min-width: 0;
  max-width: 220px;
  height: calc(100dvh - 64px);
  flex-direction: column;
  padding: 22px 0 12px;
  border-right: 1px solid var(--md-outline);
  background: #171718;
  overflow: hidden;
}

.ex-side-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-width: thin;
}

.ex-side-nav-label {
  align-self: stretch;
  margin: 18px 0 6px;
  padding: 0 14px;
  overflow: hidden;
  color: var(--md-text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ex-side-nav-label:first-child {
  margin-top: 0;
}

.ex-side-nav-admin {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(232, 210, 122, 0.24);
  background: linear-gradient(180deg, rgba(232, 210, 122, 0.07) 0%, transparent 56px);
}

.ex-side-nav-label--admin {
  margin-top: 0;
  color: #e8d27a;
}

.ex-side-nav-button--admin:not(.on) {
  color: rgba(232, 210, 122, 0.72);
}

.ex-side-nav-button--admin:not(.on):hover {
  color: #e8d27a;
}

.ex-side-nav-button--admin.on {
  background: rgba(232, 210, 122, 0.16);
  color: #f0e4a8;
}

.ex-side-nav-button--control:not(.on) {
  color: var(--gold);
}

.ex-side-nav-button--control.on {
  background: rgba(232, 210, 122, 0.28);
  box-shadow: inset 0 0 0 1px rgba(232, 210, 122, 0.55);
  color: #ffe08a;
}

.ex-plain-link {
  display: inline;
  width: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.ex-plain-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

button.ex-people-key-tag {
  cursor: pointer;
}

.ex-wallet-addr {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ex-wallet-addr code {
  font-size: 11px;
  word-break: break-all;
}

/* Referral desk mirrors the Admin block, in the private track's purple. */
.ex-side-nav-referral {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(192, 132, 252, 0.24);
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.07) 0%, transparent 56px);
}

.ex-side-nav-label--referral {
  margin-top: 0;
  color: #c084fc;
}

.ex-side-nav-button--referral:not(.on) {
  color: rgba(192, 132, 252, 0.72);
}

.ex-side-nav-button--referral:not(.on):hover {
  color: #c084fc;
}

.ex-side-nav-button--referral.on {
  background: rgba(192, 132, 252, 0.16);
  color: #d4aaff;
}

.ex-side-nav-button--doom:not(.on) {
  color: rgba(255, 107, 107, 0.85);
}

.ex-side-nav-button--doom:not(.on):hover {
  color: #ff6b6b;
}

.ex-side-nav-button--doom.on {
  background: rgba(255, 59, 59, 0.16);
  color: #ff8a8a;
}

.ex-side-nav-button {
  display: flex;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--md-text-muted);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.ex-side-nav-button > span:not(.ex-nav-icon):not(.ex-nav-badge):not(.ex-nav-count):not(.ex-nav-locked) {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-nav-locked {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.58);
  opacity: 1;
}

.ex-nav-locked svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.ex-side-nav-button.on .ex-nav-locked,
.ex-side-nav-group.is-locked .ex-side-nav-button.on .ex-nav-locked {
  color: rgba(0, 0, 0, 0.52);
}

.ex-side-nav-group {
  margin-bottom: 10px;
}

.ex-side-nav-group.is-locked .ex-side-nav-sublabel,
.ex-side-nav-group.is-locked .ex-side-nav-button {
  color: var(--md-text-dim);
}

.ex-side-nav-sublabel {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 14px 2px;
  color: var(--md-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ex-side-nav-sublabel > span:not(.ex-nav-icon):not(.ex-nav-locked) {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-side-nav-sub {
  display: flex;
  flex-direction: column;
}

.ex-side-nav-button--sub {
  min-height: 32px;
  padding-left: 28px;
  font-size: 12px;
}

.ex-side-nav-button:hover {
  background: var(--md-surface);
  color: var(--md-text);
}

.ex-side-nav-button.on {
  background: var(--md-primary-container);
  color: var(--md-primary);
  font-weight: 600;
}

.ex-nav-icon {
  display: grid;
  width: 22px;
  flex: 0 0 22px;
  place-items: center;
}

.ex-nav-count {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 0;
  background: var(--md-surface-2);
  font-size: 12px;
}

.ex-content {
  min-width: 0;
  padding: 24px clamp(18px, 3vw, 48px) 48px;
}

.ex-mobile-heading {
  display: none;
}

.ex-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 18px;
  margin-bottom: 12px;
  color: var(--md-text-dim);
  font-size: 12px;
}

.ex-breadcrumbs strong {
  color: var(--md-text-muted);
  font-weight: 500;
}

.ex-page {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
}

.ex-page-loading,
.ex-empty-state {
  display: grid;
  min-height: 280px;
  place-items: center;
  border-radius: 0;
  background: var(--md-surface);
  color: var(--md-text-muted);
}

.ex-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ex-page-head h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
}

.ex-page-head p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--md-text-muted);
  line-height: 1.5;
}

.ex-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.ex-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ex-home-script-section {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

/* ---- Two-track separation: public % earnings vs private paid access ----
   The split is stated once, at the top, as a two-up band with a single
   shared seam. Below it each track owns a full-width zone, so neither
   column can run out of content and leave dead space. ------------------- */

.ex-track-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 26px;
  border: 1px solid var(--md-outline);
  background: var(--md-surface-2);
}

.ex-track-half {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 16px;
  border-top: 3px solid var(--track-accent);
}

.ex-track-half--public {
  --track-accent: #e8d27a;
}

.ex-track-half--private {
  --track-accent: #c084fc;
  border-left: 1px solid var(--md-outline);
  background: rgba(192, 132, 252, 0.04);
}

.ex-track-kicker {
  color: var(--track-accent, var(--md-text-muted));
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ex-track-half h2 {
  margin: 0;
  color: var(--md-text);
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: 0.04em;
}

.ex-track-half p {
  max-width: 46ch;
  margin: 0;
  color: var(--md-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Facts row sits on the band's bottom edge and carries the CTA on its right,
   so the half needs no extra footer strip under it. */
.ex-track-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--md-outline);
}

.ex-track-fact {
  display: grid;
  gap: 5px;
  padding-right: 22px;
}

.ex-track-fact + .ex-track-fact {
  padding-left: 22px;
  border-left: 1px solid var(--md-outline);
}

.ex-track-fact span {
  color: var(--md-text-dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-track-fact strong {
  color: var(--md-text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.ex-track-half--public .ex-track-fact:first-child strong {
  color: #e8d27a;
}

.ex-track-half--private .ex-track-fact:nth-child(2) strong {
  color: #c084fc;
}

.ex-track-half-cta {
  min-width: 150px;
  margin-left: auto;
}

.ex-btn.ex-btn--public {
  border: 1px solid rgba(232, 210, 122, 0.45) !important;
  background: #16120a !important;
  color: #e8d27a !important;
}

.ex-btn.ex-btn--public:hover {
  border-color: #e8d27a !important;
  background: #1d1810 !important;
  color: #ffe08a !important;
}

/* ---- Private storefront: configuration left, order summary right ------- */

/* `.ex-card` clips its overflow, which would kill the sticky summary. */
.ex-card.ex-store-card {
  overflow: visible;
}

/* Summary is a fixed rail: it only holds label/value pairs, so letting it
   grow with the viewport just adds empty space. */
.ex-store-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.ex-store-config {
  display: grid;
  min-width: 0;
  gap: 22px;
  padding: 18px;
}

.ex-store-step {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.ex-store-step-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ex-store-step-num {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #c084fc;
  font-size: 11px;
}

.ex-store-step-head h3 {
  margin: 0;
  color: var(--md-text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ex-store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ex-store-product {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--md-outline);
  background: var(--md-surface-2);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.ex-private-art {
  display: flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--md-outline);
  background: var(--md-surface-3);
}

.ex-private-art .ex-game-thumb,
.ex-private-art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ex-store-product:hover {
  border-color: rgba(192, 132, 252, 0.45);
}

.ex-store-product.is-on {
  border-color: #c084fc;
  background: rgba(192, 132, 252, 0.09);
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.22);
}

.ex-store-product.is-locked {
  cursor: default;
  opacity: 0.45;
}

.ex-store-product.is-nfs {
  opacity: 0.78;
}

.ex-store-product.is-nfs .ex-store-product-flag {
  color: #f07178;
}

.ex-store-product-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.ex-store-product-copy strong {
  overflow: hidden;
  color: var(--md-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-store-product-copy span {
  color: var(--md-text-dim);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ex-store-product-flag {
  position: absolute;
  top: 7px;
  right: 9px;
  color: var(--md-text-dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Term ladder: 2 hours → lifetime, priced per term ------------------ */

.ex-term-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ex-term-grid.is-single {
  grid-template-columns: minmax(180px, 280px);
}

.ex-store-nfs-note {
  padding: 16px 14px;
  border: 1px dashed rgba(240, 113, 120, 0.45);
  color: #f07178;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-term {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 11px 12px 12px;
  border: 1px solid var(--md-outline);
  background: var(--md-surface-2);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.ex-term:hover {
  border-color: rgba(192, 132, 252, 0.45);
}

.ex-term.is-on {
  border-color: #c084fc;
  background: rgba(192, 132, 252, 0.1);
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.22);
}

.ex-term-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ex-term-label {
  overflow: hidden;
  color: var(--md-text);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ex-term.is-on .ex-term-label {
  color: #c084fc;
}

/* Short code (2H, 1W, INF) so the ladder scans at a glance. */
.ex-term-badge {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid var(--md-outline-strong);
  color: var(--md-text-dim);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.ex-term.is-on .ex-term-badge {
  border-color: rgba(192, 132, 252, 0.55);
  color: #c084fc;
}

.ex-term-price {
  color: var(--md-text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ex-term.is-on .ex-term-price {
  color: #d4aaff;
}

.ex-term-rate {
  color: var(--md-text-dim);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.ex-term-tag {
  margin-top: 2px;
  color: #7dff9a;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-term.is-lifetime .ex-term-tag {
  color: #e8d27a;
}

/* Two stacked lines so a label and its value can never collide. */
.ex-store-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ex-store-option {
  display: grid;
  min-width: 112px;
  min-height: 48px;
  gap: 4px;
  padding: 8px 13px;
  align-content: center;
  border: 1px solid var(--md-outline);
  background: var(--md-surface-2);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.ex-store-option:hover {
  border-color: rgba(192, 132, 252, 0.45);
}

.ex-store-option.is-on {
  border-color: #c084fc;
  background: rgba(192, 132, 252, 0.09);
}

.ex-store-option-label {
  color: var(--md-text);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ex-store-option.is-on .ex-store-option-label {
  color: #c084fc;
}

.ex-store-option-sub {
  color: var(--md-text-dim);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.ex-store-coins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ex-store-coin {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 8px;
  border: 1px solid var(--md-outline);
  background: var(--md-surface-2);
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.ex-store-coin:hover {
  border-color: rgba(192, 132, 252, 0.45);
}

.ex-store-coin.is-on {
  border-color: #c084fc;
  background: rgba(192, 132, 252, 0.09);
}

.ex-store-coin .ex-pay-asset-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
}

.ex-store-coin .ex-pay-asset-icon img {
  width: 20px;
  height: 20px;
}

.ex-store-coin-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.ex-store-coin-copy strong {
  color: var(--md-text);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.ex-store-coin-copy span {
  color: var(--md-text-dim);
  font-size: 10px;
}

.ex-store-summary {
  min-width: 0;
  border-left: 1px solid var(--md-outline);
  background: var(--md-surface-2);
}

.ex-store-summary-inner {
  position: sticky;
  top: 64px;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.ex-store-summary-title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--md-outline);
  color: var(--md-text-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ex-store-sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ex-store-sum-row span {
  color: var(--md-text-dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-store-sum-row strong {
  color: var(--md-text);
  font-size: 12px;
  text-align: right;
}

.ex-store-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--md-outline-strong);
}

.ex-store-total span {
  color: var(--md-text-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ex-store-total strong {
  color: #c084fc;
  font-size: clamp(20px, 2.4vw, 26px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ex-store-buy {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
}

.ex-store-summary-note {
  margin: 10px 0 0;
  color: var(--md-text-dim);
  font-size: 10px;
  line-height: 1.6;
}

/* Violet primary for paid surfaces. Green stays reserved for success, and
   example.cube.css pins .ex-btn-filled green with !important, so this needs
   two classes to win the cascade. */
.ex-btn.ex-btn--private {
  border: 1px solid #c084fc !important;
  background: #c084fc !important;
  color: #0a0a0a !important;
  font-weight: 400 !important;
}

.ex-btn.ex-btn--private:hover {
  border-color: #d4aaff !important;
  background: #d4aaff !important;
  color: #0a0a0a !important;
}

.ex-btn.ex-btn--private:disabled {
  border-color: var(--md-outline-strong) !important;
  background: #161018 !important;
  color: #6b6b6b !important;
  cursor: default;
}

.ex-mini-button.ex-mini-button--private {
  min-width: 74px;
  border: 1px solid rgba(192, 132, 252, 0.45) !important;
  color: #c084fc !important;
}

.ex-mini-button.ex-mini-button--private:hover:not(:disabled) {
  border-color: #c084fc !important;
  background: rgba(192, 132, 252, 0.12) !important;
  color: #d4aaff !important;
}

.ex-mini-button.ex-mini-button--private:disabled {
  border-color: var(--md-outline) !important;
  color: var(--md-text-dim) !important;
  cursor: default;
}

/* The stock empty state reserves 280px, which reads as a hole in a short
   section. */
.ex-empty-state--compact {
  min-height: 0;
  padding: 22px 18px;
  border: 1px dashed var(--md-outline);
  background: var(--md-surface-2);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Two classes and !important, because example.cube.css pins every .ex-card
   border. */
.ex-card.ex-private-key-card {
  border-top: 2px solid rgba(192, 132, 252, 0.55) !important;
}

/* Countdown block in the key card head: time left over the exact expiry. */
.ex-private-left {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.ex-private-left strong {
  color: var(--md-text-dim);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ex-private-left.is-on strong {
  color: #c084fc;
}

.ex-private-left.is-lifetime strong {
  color: #e8d27a;
}

.ex-private-left > span {
  color: var(--md-text-dim);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ex-private-grant-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

/* `.ex-field` ships a 16px bottom margin; with `align-items: end` that margin
   is what lines up with the row bottom, dropping the button below the inputs. */
.ex-private-grant-form .ex-field {
  margin-bottom: 0;
}

/* Match the 40px field height from the cube theme, which wins with
   `!important` and would otherwise leave the button visibly thinner. */
.ex-private-grant-form .ex-btn {
  min-height: 40px;
}

.ex-table--private .ex-private-key-hint,
.ex-table--private-logs code {
  color: var(--md-text-muted);
  font-size: 11px;
}

.ex-table--private .ex-row-actions {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .ex-store-checkout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ex-store-summary {
    border-top: 1px solid var(--md-outline);
    border-left: 0;
  }

  .ex-store-summary-inner {
    position: static;
  }

  .ex-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ex-term-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ex-track-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .ex-track-half--private {
    border-top: 3px solid var(--track-accent);
    border-left: 0;
  }

  .ex-track-half-cta {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .ex-store-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ex-term-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ex-store-config,
  .ex-store-summary-inner {
    padding: 16px;
  }

  .ex-track-fact {
    padding-right: 16px;
  }

  .ex-track-fact + .ex-track-fact {
    padding-left: 16px;
  }
}

.ex-home-script-section-head h2 {
  margin: 0;
  color: var(--md-text);
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0.04em;
}

.ex-game-card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ex-gifter-card .ex-gifter-key-btn {
  min-height: 36px;
  padding: 8px 14px;
}

.ex-game-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 18px;
  min-height: 148px;
  padding: 18px 18px 18px 20px;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--game-color) 10%, transparent), transparent 42%),
    var(--md-surface);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.ex-game-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--game-color);
  opacity: 0.9;
}

.ex-game-card:hover {
  border-color: color-mix(in srgb, var(--game-color) 45%, var(--md-outline));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--game-color) 16%, transparent), transparent 48%),
    var(--md-surface-2);
}

.ex-game-card.is-locked {
  cursor: pointer;
  opacity: 0.72;
}

.ex-game-card-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.ex-game-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ex-game-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ex-game-card-product {
  display: inline-block;
  width: fit-content;
  color: var(--md-text-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid color-mix(in srgb, var(--game-color) 45%, transparent);
  padding-bottom: 2px;
}

.ex-game-card-icon {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--game-color) 35%, var(--md-outline));
  border-radius: 0;
  background: var(--game-soft, var(--md-surface-2));
}

.ex-game-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.ex-rail-button .ex-game-thumb,
.ex-side-nav-button .ex-game-thumb,
.ex-mobile-nav-button .ex-game-thumb {
  width: 22px;
  height: 22px;
  border-radius: 0;
}

.ex-game-card h2 {
  margin: 0;
  min-width: 0;
  color: var(--game-color);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.ex-game-card-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
}

.ex-game-card-stats.is-locked {
  gap: 4px;
}

.ex-game-card-stat {
  display: grid;
  gap: 2px;
}

.ex-game-card-stat-label {
  color: var(--md-text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-game-card-stat-value {
  color: var(--md-text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.ex-game-card-stat-value.is-money {
  color: var(--md-success);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
}

.ex-game-card-stats.is-locked .ex-game-card-stat-value {
  color: var(--md-text-dim);
  font-size: 14px;
  font-weight: 400;
}

.ex-script-video {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  width: min(46%, 280px);
  min-height: 112px;
  aspect-ratio: 16 / 9;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--game-color) 28%, var(--md-outline));
  background: #0a0a0a;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.ex-script-video-frame,
.ex-script-video-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #0a0a0a;
}

.ex-script-video-stub {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 8px;
  color: var(--md-text-muted);
  text-align: center;
}

.ex-script-video-stub strong {
  color: var(--md-text);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ex-script-video-stub span:last-child {
  font-size: 10px;
  letter-spacing: 0.04em;
}

.ex-script-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  translate: -50% -50%;
  border: 1px solid color-mix(in srgb, var(--game-color) 55%, var(--md-outline));
  background: color-mix(in srgb, var(--game-color) 22%, rgba(0, 0, 0, 0.45));
  clip-path: polygon(38% 28%, 38% 72%, 72% 50%);
  box-shadow: inset 0 0 0 9px color-mix(in srgb, var(--game-color) 18%, transparent);
  pointer-events: none;
}

.ex-script-video.is-stub .ex-script-video-play {
  position: static;
  translate: none;
}

.ex-script-video.is-stub:hover,
.ex-script-video:hover {
  border-color: color-mix(in srgb, var(--game-color) 55%, var(--md-outline));
}

.ex-home-stats {
  margin-top: 28px;
}

.ex-home-stats-head {
  margin-bottom: 14px;
}

.ex-home-stats-head h2 {
  margin: 0;
  color: var(--md-text);
  font-size: var(--md-title-lg);
  letter-spacing: 0.06em;
}

.ex-home-stats-head p {
  margin: 6px 0 0;
  color: var(--md-text-muted);
  font-size: 13px;
}

.ex-home-stats .ex-metric-grid {
  margin-bottom: 0;
}

.ex-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.ex-metric-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ex-table--compact th,
.ex-table--compact td {
  padding: 10px 14px;
}

.ex-table--compact {
  min-width: 0;
}

.ex-metric {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  padding: 18px 20px;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface);
}

.ex-metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--md-text-muted);
  font-size: var(--md-label);
  font-weight: 500;
}

.ex-metric-value {
  display: block;
  margin-top: 14px;
  color: var(--metric-color);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.tone-amber {
  --metric-color: #d4a24c;
}

.tone-green {
  --metric-color: #6f9f78;
}

.tone-steel {
  --metric-color: #9aa7b5;
}

.tone-gold {
  --metric-color: #c9a45c;
}

.tone-blue {
  --metric-color: #7a91a8;
}

.tone-slate {
  --metric-color: #9aa7b5;
}

.tone-teal {
  --metric-color: #5f9e8c;
}

.tone-violet {
  --metric-color: #9aa7b5;
}

.tone-pink {
  --metric-color: #5f9e8c;
}

.tone-purple {
  --metric-color: #c084fc;
}

/* ---- Referral desk ---- */

.ex-metric-grid--referral {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ex-card.ex-referral-card {
  border-top: 1px solid rgba(192, 132, 252, 0.35);
}

.ex-card.ex-referral-owe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-top: 2px solid rgba(212, 162, 76, 0.55);
  background: linear-gradient(180deg, rgba(212, 162, 76, 0.08), rgba(0, 0, 0, 0));
}

.ex-referral-owe-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ex-referral-owe-label {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8d27a;
}

.ex-referral-owe-sub {
  font-size: 12px;
  color: var(--md-text-dim, #9aa1ac);
}

.ex-referral-owe-amount {
  font-size: 30px;
  font-weight: 800;
  color: #f0c96b;
}

.ex-referral-explain {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.ex-referral-explain-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--md-text-muted);
  font-size: 12px;
}

.ex-referral-explain-row strong {
  color: #c084fc;
  font-size: 14px;
}

.ex-referral-explain-note {
  color: var(--md-text-dim);
  font-size: 11px;
}

.ex-referral-settle {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 18px 16px;
}

.ex-referral-settle-amount {
  display: grid;
  gap: 4px;
}

.ex-referral-settle-amount span {
  color: var(--md-text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-referral-settle-amount strong {
  color: #c084fc;
  font-size: 22px;
}

.ex-referral-settle-actions {
  display: flex;
  gap: 8px;
}

.ex-referral-create-form {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) 120px minmax(150px, auto) 130px auto;
  gap: 12px;
  align-items: end;
}

.ex-key-length-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ex-referral-create-form .ex-field {
  margin-bottom: 0;
}

.ex-referral-create-form .ex-btn {
  min-height: 40px;
}

.ex-referral-key-picks {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 40px;
}

.ex-referral-key-picks .ex-check {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--md-text-muted);
  font-size: 12px;
}

.ex-referral-key-cell {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

/* In the referral table the expiry tag doubles as the re-time button. */
.ex-referral-key-cell button.ex-people-key-tag {
  padding: 2px 4px;
  border: 1px dashed rgba(192, 132, 252, 0.4);
  background: none;
  font: inherit;
  cursor: pointer;
}

.ex-referral-key-cell button.ex-people-key-tag:hover {
  border-color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
}

.ex-referral-house-tag {
  padding: 2px 6px;
  border: 1px solid rgba(232, 210, 122, 0.45);
  color: #e8d27a;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ex-referral-percent {
  width: 74px;
  min-height: 30px;
  padding: 4px 6px;
  text-align: center;
}

.ex-table--referral td {
  vertical-align: middle;
}

.ex-referral-detail {
  margin: 0 18px 18px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  background: var(--md-surface-2);
}

.ex-referral-detail-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--md-outline);
}

.ex-referral-detail-head h3 {
  margin: 0;
  color: #c084fc;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ex-referral-detail .ex-secret-list {
  margin: 12px;
}

.ex-referral-detail-note {
  margin: 0 12px 12px;
  color: var(--md-text-dim);
  font-size: 12px;
}

.ex-ref-edit-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 2px;
}

.ex-ref-edit-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ex-ref-edit-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ex-ref-edit-inline .ex-input {
  flex: 1 1 auto;
}

.ex-ref-edit-game {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--md-border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
}

.ex-ref-edit-game-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ex-ref-edit-game-head span {
  color: var(--md-text-dim);
  font-size: 12px;
}

.ex-ref-edit-game-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .ex-referral-create-form {
    grid-template-columns: 1fr;
  }
}

.ex-hits-more {
  margin: 0;
  min-height: 28px;
  color: var(--md-text-dim);
  font-size: 13px;
  text-align: center;
}

.ex-hits-scroll {
  max-height: calc(100dvh - 210px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface);
  -webkit-overflow-scrolling: touch;
}

.ex-hits-scroll--tight {
  max-height: calc(100dvh - 190px);
}

.ex-table--dense th,
.ex-table--dense td {
  padding: 7px 12px;
}

.ex-table--dense th:first-child,
.ex-table--dense td:first-child {
  padding-left: 14px;
}

.ex-table--dense th:last-child,
.ex-table--dense td:last-child {
  padding-right: 14px;
}

.ex-items-cell {
  line-height: 1.35;
  word-break: break-word;
}

.ex-table:not(.ex-table--feed) .ex-items-cell {
  max-width: none;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

.ex-table td.ex-items-cell,
.ex-table th.ex-items-cell {
  text-align: left;
  white-space: normal;
  padding-right: 16px;
}

.ex-table--catalog {
  min-width: 0;
  table-layout: fixed;
}

.ex-table--catalog th,
.ex-table--catalog td {
  padding: 6px 10px;
}

.ex-table--catalog th:nth-child(1),
.ex-table--catalog td:nth-child(1) {
  width: 36%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-table--catalog th:nth-child(2),
.ex-table--catalog td:nth-child(2) {
  width: 44%;
  color: var(--md-text-dim);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-table--catalog th:last-child,
.ex-table--catalog td:last-child {
  width: 20%;
  text-align: right;
  white-space: nowrap;
  padding-right: 14px;
}

.ex-table--feed {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.ex-table--feed col.ex-feed-col-time {
  width: 44px;
}

.ex-table--feed col.ex-feed-col-user {
  width: 17%;
}

.ex-table--feed col.ex-feed-col-items {
  width: auto;
}

.ex-table--feed col.ex-feed-col-amt {
  width: 74px;
}

.ex-table--feed col.ex-feed-col-del {
  width: 54px;
}

.ex-feed-time {
  color: var(--md-text-dim);
  font-size: 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ex-feed-user {
  max-width: 0;
}

.ex-feed-user-clip {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--md-text);
}

.ex-table--feed .ex-items-cell {
  color: var(--md-text-dim);
  font-size: 11px;
  max-width: 0;
  overflow: hidden;
  padding-right: 10px;
}

.ex-feed-items-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}

.ex-table--feed .ex-money {
  padding-right: 10px;
  font-size: 12px;
  white-space: nowrap;
}

.ex-chart-sub {
  margin: 4px 0 0;
  color: var(--md-text-dim);
  font-size: 12px;
}

.ex-earnings-legend,
.ex-earn-legend-item {
  display: none !important;
}

.ex-chart-loading {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 220px;
  color: var(--md-text-muted);
  font-size: 13px;
}

.ex-earnings-panel.is-earn-loading {
  cursor: progress;
}

.ex-earnings-panel.is-earn-loading .ex-earnings-controls,
.ex-earnings-panel.is-earn-loading .ex-chart-periods,
.ex-earnings-panel.is-earn-loading .ex-earnings-user-wrap {
  pointer-events: none;
  opacity: 0.72;
}

.ex-earnings-panel.is-earn-loading [data-earn-chart] {
  pointer-events: none;
}

.ex-chart-wrap[data-earn-metric="income"] .ex-chart-active {
  fill: #6f9f78;
}

.ex-chart-wrap[data-earn-metric="payouts"] .ex-chart-active {
  fill: #5b9fd4;
}

.ex-chart-wrap[data-earn-metric="commission"] .ex-chart-active {
  fill: #e8d27a;
}

.ex-chart-tip-rows {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  min-width: 160px;
  overflow: visible;
}

.ex-chart-tip-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.ex-chart-tip-row i {
  width: 8px;
  height: 8px;
  border-radius: 0;
}

.ex-chart-tip-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--md-text);
}

.ex-chart-tip-row strong {
  color: var(--md-success);
  font-variant-numeric: tabular-nums;
}

.ex-chart-tip-foot {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--md-text-dim);
  font-size: 11px;
}

.ex-chart-tip-more {
  margin-top: 4px;
  color: var(--md-text-dim);
  font-size: 11px;
  font-style: italic;
}

.ex-earnings-dates {
  display: none;
}

.ex-table--feed th:nth-child(2),
.ex-table--feed td:nth-child(2) {
  overflow: hidden;
}

.ex-table--feed th:last-child,
.ex-table--feed td:last-child {
  text-align: right;
  white-space: nowrap;
}

.ex-overview-earnings {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 340px);
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
  --earn-controls-height: 78px;
}

.ex-overview-earnings--solo {
  grid-template-columns: minmax(0, 1fr);
}

.ex-overview-earnings > .ex-card {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ex-overview-earnings > .ex-earnings-panel {
  min-width: 0;
}

.ex-overview-earnings > .ex-income-pie-card.is-paired {
  align-self: stretch;
}

.ex-overview-earnings .ex-earnings-controls {
  min-height: var(--earn-controls-height);
  box-sizing: border-box;
}

.ex-overview-earnings-spacer {
  flex: 0 0 auto;
  min-height: var(--earn-controls-height);
  padding: 0 16px 10px;
  box-sizing: border-box;
}

.ex-overview-earnings .ex-income-pie-body {
  flex: 1 1 auto;
  justify-content: center;
}

.ex-overview-earnings .ex-chart-wrap,
.ex-overview-earnings .ex-chart-wrap.is-large {
  flex: 0 0 auto;
  height: 320px;
  min-height: 320px;
  max-height: 320px;
}

.ex-overview-lb {
  width: 100%;
  margin-top: 16px;
}

.ex-overview-lb > .ex-card {
  width: 100%;
  max-width: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ex-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.ex-highlights-grid > .ex-card {
  min-height: 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ex-hl-scrollable .ex-card-head {
  align-items: flex-end;
  gap: 10px;
}

.ex-hl-count {
  margin: 4px 0 0;
  color: var(--md-text-dim);
  font-size: 12px;
}

.ex-hl-scrollable {
  min-height: 0;
}

.ex-hl-scrollable .ex-hl-scroll,
.ex-best-hits-wrap.ex-hl-scroll {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 292px;
  max-height: 292px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ex-hl-sentinel {
  flex: 0 0 1px;
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.ex-highlights-grid .ex-table-wrap.ex-best-hits-wrap {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
}

.ex-highlights-grid .ex-table--hl {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.ex-highlights-grid .ex-table--hl col.ex-feed-col-time {
  width: 32px;
}

.ex-highlights-grid .ex-table--hl col.ex-feed-col-user {
  width: 18%;
}

.ex-highlights-grid .ex-table--hl col.ex-feed-col-amt {
  width: 56px;
}

.ex-highlights-grid .ex-table--hl col.ex-feed-col-del {
  width: 44px;
}

.ex-highlights-grid .ex-table--hl col.ex-feed-col-items {
  width: auto;
}

.ex-highlights-grid .ex-table--hl th,
.ex-highlights-grid .ex-table--hl td {
  padding: 6px 8px;
  vertical-align: top;
}

.ex-highlights-grid .ex-table--hl th:first-child,
.ex-highlights-grid .ex-table--hl td:first-child {
  padding-left: 10px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--md-text-dim);
}

.ex-highlights-grid .ex-table--hl th:last-child,
.ex-highlights-grid .ex-table--hl td:last-child {
  padding-right: 6px;
  padding-left: 2px;
  text-align: right;
}

.ex-highlights-grid .ex-table--hl td:nth-child(2) strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-highlights-grid .ex-table--hl .ex-items-cell {
  max-width: 0;
  overflow: hidden;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
  font-size: 12px;
  color: var(--md-text-muted);
  line-height: 1.35;
}

.ex-highlights-grid .ex-table--hl .ex-money {
  font-size: 12px;
  white-space: nowrap;
  padding-right: 4px;
  padding-left: 2px;
}

.ex-highlights-grid .ex-table--hl .ex-row-actions {
  width: 44px;
  padding: 4px 2px 4px 0;
  white-space: nowrap;
  overflow: visible;
}

.ex-highlights-grid .ex-table--hl .ex-row-actions .ex-mini-button {
  padding: 3px 5px;
  font-size: 9px;
  letter-spacing: 0.03em;
  min-width: 0;
}

.ex-hl-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--md-surface);
  box-shadow: 0 1px 0 var(--md-outline);
}

.ex-overview-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.ex-overview-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.ex-overview-split > .ex-card {
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.ex-overview-side .ex-card {
  flex: 1 1 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.ex-server-day-top {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  height: var(--ex-top-cube, 52px);
  min-height: var(--ex-top-cube, 52px);
  min-width: 0;
  max-width: min(420px, 46vw);
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--line, #242424);
  background: var(--deep, #0a0a0a);
  overflow: hidden;
}

.ex-server-day-top-ring {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

.ex-server-day-top-ring svg {
  width: 34px;
  height: 34px;
  transform: rotate(-90deg);
}

.ex-server-day-track,
.ex-server-day-fill {
  fill: none;
  stroke-width: 3.5;
}

.ex-server-day-track {
  stroke: #242424;
}

.ex-server-day-fill {
  stroke: #e8d27a;
  stroke-linecap: butt;
  transition: stroke-dashoffset 400ms ease;
}

.ex-server-day-top-ring strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 400;
  color: #e8d27a;
  white-space: nowrap;
}

.ex-server-day-top-main {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.ex-server-day-top-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-server-day-top-label {
  color: #9d9d9d;
}

.ex-server-day-badge {
  color: #f3f3f3;
}

.ex-server-day-top-reset {
  margin-left: auto;
  color: #9d9d9d;
  font-variant-numeric: tabular-nums;
}

.ex-server-day-bar {
  height: 3px;
  background: #1c1c1c;
  overflow: hidden;
}

.ex-server-day-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #e8d27a;
}

.ex-server-day-top-money {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 2px;
  font-size: 10px;
  color: #9d9d9d;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
}

.ex-server-day-top-money strong {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 400;
}

.ex-server-day-top-ring strong,
.ex-server-day-badge,
.ex-server-day-top-reset,
.ex-server-day-top-money strong {
  font-family: Consolas, "Courier New", monospace;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

@media (max-width: 900px) {
  .ex-server-day-top {
    display: none;
  }
}

.ex-income-pie-card {
  margin-top: 0;
}

.ex-income-pie-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4px 18px 18px;
}

.ex-income-pie-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  flex: 0 0 auto;
  margin: 0;
  overflow: visible;
}

.ex-income-pie-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ex-income-pie-slice {
  transform-box: view-box;
  transform-origin: 60px 60px;
  cursor: pointer;
  stroke: none;
  stroke-width: 0;
  transition: transform 180ms cubic-bezier(0.2, 0.85, 0.25, 1);
  will-change: transform;
}

.ex-income-pie-tip {
  margin: 0;
  min-height: 2.6em;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--md-outline);
  background: #101318;
  color: var(--md-text-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.ex-income-pie-tip strong {
  color: #e8d27a;
}

.ex-card-head--lb {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.ex-table-search-form {
  margin: 0;
  margin-left: auto;
  display: block;
  width: min(260px, 100%);
  min-width: 140px;
}

.ex-table-search-form .ex-input {
  width: 100%;
  margin-left: 0;
}

.ex-lb-search {
  width: min(220px, 100%);
  min-width: 140px;
  margin-left: auto;
  padding: 7px 10px;
  font-size: 12px;
}

.ex-table-search-form .ex-lb-search {
  width: 100%;
  min-width: 0;
  margin-left: 0;
}

.ex-lb-wrap {
  flex: 1 1 auto;
  display: block;
  overflow: auto;
  max-height: min(68vh, 720px);
  min-height: 0;
  padding: 0 8px 12px;
}

.ex-table--lb tr[data-route] {
  cursor: pointer;
}

.ex-table--lb tr[data-route]:hover td {
  background: rgba(232, 210, 122, 0.06);
}

.ex-table--lb th,
.ex-table--lb td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--md-outline);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.ex-table--lb th {
  color: var(--md-text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background: #111;
  z-index: 1;
}

.ex-table--lb .ex-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ex-table--lb tr.is-less-tax td:first-child {
  box-shadow: inset 3px 0 0 #e8d27a;
}

.ex-table--lb tr.is-scam td {
  background: rgba(255, 26, 26, 0.08);
}

.ex-table--lb tr.is-scam td:first-child {
  box-shadow: inset 3px 0 0 #ff1a1a;
}

.ex-scam-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ex-scam-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid #ff6666;
  background: #ff1a1a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ex-scam-pulse 1.4s ease-in-out infinite;
}

@keyframes ex-scam-pulse {
  0%,
  100% {
    box-shadow: 0 0 6px rgba(255, 26, 26, 0.35);
    background: #ff1a1a;
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 26, 26, 0.85);
    background: #ff3333;
  }
}

.ex-lt-name .ex-scam-wrap {
  margin-left: 6px;
}

.ex-lt-history-name .ex-scam-wrap {
  margin-left: 6px;
}

.ex-lb-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.ex-lb-medal {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
}

.ex-lb-name {
  font-weight: 600;
  color: var(--md-text);
}

.ex-lb-name.is-gold {
  color: #e8d27a;
}

.ex-lb-name.is-silver {
  color: #c8c8c8;
}

.ex-lb-name.is-bronze {
  color: #d4a574;
}

.ex-less-tax {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
}

.ex-less-tax-badge {
  padding: 2px 6px;
  border: 1px solid rgba(232, 210, 122, 0.45);
  background: rgba(120, 80, 20, 0.35);
  color: #e8d27a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ex-lt-prize {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1a1a;
  color: #c8c8c8;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.ex-lt-prize--1 {
  color: #e8d27a;
  border-color: rgba(232, 210, 122, 0.4);
}

.ex-lt-prize--2 {
  color: #b8e0b0;
  border-color: rgba(125, 255, 154, 0.3);
}

.ex-lt-prize--3 {
  color: #9ec8ff;
  border-color: rgba(142, 200, 255, 0.35);
}

.ex-online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #3a3a3a;
  vertical-align: middle;
}

.ex-online-dot.on {
  background: #f3f3f3;
}

.ex-balance-due {
  color: #ff8585;
  font-weight: 700;
  white-space: nowrap;
}

.ex-balance-overpaid {
  color: #7dff9a;
  font-weight: 700;
  white-space: nowrap;
}

.ex-balance-ok {
  color: var(--md-text-dim);
  white-space: nowrap;
}

.ex-lb-seen {
  color: var(--md-text-muted);
  white-space: nowrap;
}

.ex-rel-online {
  color: var(--md-text);
}

.ex-section-block {
  margin-bottom: 14px;
}

.ex-section-label {
  margin: 0 0 8px 2px;
  color: var(--md-text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.ex-access-full {
  width: 100%;
  margin-top: 16px;
}

.ex-access-full .ex-access-card,
.ex-access-full .ex-card {
  width: 100%;
}

.ex-script-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.ex-script-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 100%;
  height: 100%;
  margin-top: 0 !important;
}

.ex-script-card .ex-card-head.ex-script-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
}

.ex-script-card-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ex-script-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--md-outline);
  background: var(--game-soft, #12151b);
}

.ex-script-card-icon .ex-game-thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ex-script-card-copy {
  min-width: 0;
}

.ex-script-card-copy h2 {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.25;
}

.ex-script-card-copy p {
  margin: 4px 0 0;
  min-height: 1.2em;
}

.ex-script-card .ex-card-head {
  flex: 0 0 auto;
}

.ex-script-snippet-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 96px;
  margin: 0 18px 12px;
}

.ex-script-snippet {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 14px 16px;
  min-height: 96px;
  height: 96px;
  overflow: auto;
  border: 1px solid var(--md-outline);
  background: #12151b;
  color: #e8d27a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  box-sizing: border-box;
}

.ex-script-snippet.is-masked {
  color: #b8bec8;
}

.ex-script-snippet.is-stub {
  color: #8b909a;
}

.ex-script-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface-2);
  color: var(--md-text-muted);
  cursor: pointer;
  flex: 0 0 34px;
  vertical-align: middle;
}

.ex-script-reveal svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
  pointer-events: none;
}

.ex-script-reveal:hover {
  color: var(--md-primary);
  background: var(--md-surface);
}

.ex-script-reveal.is-on {
  color: var(--md-primary);
  border-color: rgba(212, 162, 76, 0.35);
}

.ex-script-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 0 18px 18px;
}

.ex-script-card-foot .ex-mini-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ex-profile-game-switch {
  flex-wrap: wrap;
}

.ex-access-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--game-soft);
}

.ex-access-tile--text {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-height: 64px;
}

.ex-access-tile-icon {
  grid-row: span 2;
}

.ex-access-tile strong {
  color: var(--md-text);
  font-size: 15px;
}

.ex-access-tile-status {
  color: var(--md-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.ex-access-tile-status.on {
  color: var(--game-color);
}

.ex-row-actions {
  width: 1%;
  white-space: nowrap;
}

.ex-cut-cell {
  max-width: 220px;
}

.ex-cut-code {
  display: block;
  overflow: hidden;
  color: #e8d27a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-commission {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px 14px;
  border: 1px solid var(--md-outline);
  background: var(--md-surface-2);
  min-width: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.ex-commission-top {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ex-commission-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-commission-hint {
  display: block;
  margin: 0;
  color: var(--md-text-dim);
  font-size: 11px;
  line-height: 1.35;
}

.ex-commission-hint code {
  color: var(--md-primary);
  font-family: Consolas, "Courier New", monospace;
}

.ex-formula-chart-label {
  color: var(--md-text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-commission-input {
  width: 100%;
  max-width: none;
  min-height: 44px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.ex-formula-chart-compact {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--md-outline);
  background: #0b0d11;
  min-width: 0;
  overflow: hidden;
}

.ex-formula-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ex-formula-chart-head-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1 1 180px;
}

.ex-formula-chart-head-main .ex-formula-readout {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-formula-chart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--md-text-muted);
}

.ex-formula-chart-controls label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ex-formula-chart-controls select,
.ex-formula-chart-controls input[type="number"] {
  width: auto;
  min-width: 0;
  padding: 4px 6px;
  font-size: 11px;
}

.ex-formula-chart-controls input[type="number"] {
  width: 72px;
}

.ex-formula-chart-canvas {
  min-height: 108px;
  max-height: 108px;
  overflow: hidden;
  position: relative;
}

.ex-formula-chart-compact canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 108px;
  max-height: 108px;
  pointer-events: none;
}

.ex-formula-slider-row {
  display: block;
  position: relative;
  z-index: 1;
}

.ex-formula-slider {
  width: 100%;
  height: 22px;
  margin: 0;
  accent-color: var(--md-primary);
  background: linear-gradient(
    to right,
    rgba(232, 184, 74, 0.55) 0%,
    rgba(232, 184, 74, 0.55) var(--pct, 0%),
    rgba(255, 255, 255, 0.08) var(--pct, 0%)
  );
  border-radius: 999px;
}

.ex-formula-readout {
  color: #7dff9a;
  font-size: 11px;
  font-family: Consolas, "Courier New", monospace;
  white-space: nowrap;
}

.ex-formula-hint {
  margin: 0;
  color: var(--md-text-dim);
  font-size: 10px;
}

.ex-cookie-tools {
  margin-top: 16px;
}

.ex-cookie-tools .ex-card-head {
  align-items: flex-start;
}

.ex-cookie-tools .ex-cookie-refresh-layout {
  padding: 0 14px 14px;
}

.ex-cookie-refresh-layout--compact {
  gap: 12px;
  align-items: stretch;
}

.ex-cookie-tools .ex-cookie-refresh-pane-head,
.ex-cookie-refresh-pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 18px;
  flex: 0 0 auto;
}

.ex-cookie-tools .ex-cookie-refresh-pane-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.ex-cookie-tools .ex-cookie-refresh-pane--paste,
.ex-cookie-tools .ex-cookie-refresh-pane--vault {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.ex-cookie-tools .ex-cookie-refresh-input {
  flex: 0 0 auto;
  min-height: 104px;
  height: 104px;
  max-height: 104px;
  resize: none;
}

.ex-cookie-tools .ex-cookie-refresh-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ex-cookie-tools .ex-cookie-refresh-toolbar .ex-period-bar {
  flex-wrap: nowrap;
}

.ex-cookie-tools .ex-cookie-refresh-toolbar .ex-btn-inline {
  min-height: 34px;
  align-self: stretch;
  padding-inline: 16px;
}

.ex-cookie-tools .ex-cookie-refresh-status,
.ex-cookie-tools .ex-cookie-refresh-pane-foot,
.ex-cookie-refresh-pane-foot {
  flex: 0 0 auto;
  min-height: 1.2em;
  margin: 0;
}

.ex-cookie-tools .ex-cookie-refresh-vault--compact {
  flex: 0 0 auto;
  height: 240px;
  min-height: 240px;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
}

.ex-cookie-refresh-row {
  align-items: center;
}

.ex-cookie-refresh-row .ex-row-actions {
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex-direction: row;
  white-space: nowrap;
}

.ex-cookie-refresh-vault--compact {
  height: 240px;
  min-height: 240px;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
}

.ex-people-table-card {
  margin-top: 16px;
}

.ex-people-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  scrollbar-gutter: stable;
}
.ex-people-cookies {
  min-width: 0;
  max-width: 100%;
}
.ex-people-cookies-meta {
  max-width: 100%;
  overflow: hidden;
}

.ex-table--people {
  width: 100%;
  min-width: 1280px;
  table-layout: fixed;
}

.ex-table--people .ex-people-col-name {
  width: 11%;
}

.ex-table--people .ex-people-col-due {
  width: 72px;
}

.ex-table--people .ex-people-col-mm2,
.ex-table--people .ex-people-col-adopt {
  width: 108px;
}

.ex-table--people .ex-people-mm2-col,
.ex-table--people .ex-people-adopt-col {
  overflow: hidden;
  vertical-align: top;
}

.ex-table--people .ex-people-col-tax {
  width: 12%;
}

.ex-table--people .ex-people-col-cookies {
  width: 22%;
}

.ex-table--people .ex-people-col-pay,
.ex-table--people .ex-people-col-hits,
.ex-table--people .ex-people-col-inv,
.ex-table--people .ex-people-col-hwid,
.ex-table--people .ex-people-col-edit,
.ex-table--people .ex-people-col-del {
  width: 68px;
}

.ex-table--people th.ex-people-action-th,
.ex-table--people .ex-row-actions {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  padding-inline: 6px;
  text-align: center;
  vertical-align: middle;
}

.ex-table--people th.ex-people-action-th {
  white-space: nowrap;
}

.ex-table--people th.ex-people-action-th:last-child,
.ex-table--people td.ex-row-actions:last-child {
  text-align: center;
  padding-right: 14px;
}

.ex-table--people .ex-row-actions .ex-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-inline: 4px;
  font-size: 10px;
}

.ex-table--people th,
.ex-table--people td {
  padding: 7px 8px;
  vertical-align: middle;
}

.ex-table--people .ex-people-name strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-people-keys {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  white-space: nowrap;
}

.ex-people-key-tag {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ex-people-key-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.ex-people-key-btn {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--md-text-dim, #9a9aab);
  font: inherit;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-people-key-btn:hover {
  color: var(--md-text, #eee);
  background: rgba(255, 255, 255, 0.12);
}

.ex-edit-key-field {
  margin-top: 10px;
}

.ex-edit-key-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ex-edit-key-row .ex-input {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.ex-people-key-tag.is-no-access {
  color: var(--md-text-dim);
}

.ex-people-key-tag.is-lifetime {
  color: #7dff9a;
  font-weight: 600;
}

.ex-people-key-tag.is-date {
  color: var(--md-text);
}

.ex-people-key-tag.is-expired {
  color: var(--md-error, #ff8585);
  font-weight: 600;
}

.ex-people-key-sep,
.ex-people-cookie-sep {
  color: var(--md-text-dim);
}

.ex-people-cookies {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 11px;
}

.ex-people-cookies-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.ex-people-cookies-btns {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.ex-people-cookies-btns .ex-mini-button {
  padding-inline: 6px;
  font-size: 10px;
}

.ex-mini-button.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.ex-cookie-reveal-loading {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 180px;
  padding: 28px 16px;
  place-content: center;
  color: var(--md-text-muted);
  font-size: 13px;
  text-align: center;
}

.ex-cookie-reveal-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--md-primary, #7dff9a);
  border-radius: 50%;
  animation: ex-cookie-spin 0.8s linear infinite;
}

@keyframes ex-cookie-spin {
  to {
    transform: rotate(360deg);
  }
}

.ex-people-cut {
  display: block;
  overflow: hidden;
  color: #e8d27a;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-people-updated {
  color: var(--md-text-dim);
  font-size: 11px;
}

.ex-people-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.ex-people-menu {
  position: relative;
  flex: 0 0 auto;
}

.ex-people-menu-btn {
  min-width: 30px;
  padding-inline: 8px;
  font-size: 16px;
  line-height: 1;
}

.ex-people-menu-pop {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  min-width: 132px;
  padding: 4px;
  border: 1px solid var(--md-outline);
  background: #171718;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.ex-people-menu-pop.hidden {
  display: none;
}

.ex-people-menu-pop button {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--md-text);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.ex-people-menu-pop button:hover {
  background: var(--md-surface);
  color: var(--md-primary);
}

.ex-people-due-summary {
  display: inline-block;
  margin-left: 6px;
  color: #e8d27a;
  font-size: 13px;
}

.ex-people-due-summary strong {
  font-variant-numeric: tabular-nums;
}

.ex-people-due-col {
  min-width: 72px;
}

.ex-people-due {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ex-people-due--due {
  color: #e8d27a;
}

.ex-people-due--over {
  color: #7dff9a;
  font-weight: 500;
  font-size: 12px;
}

.ex-people-due--zero {
  color: var(--md-text-muted);
  font-weight: 400;
}

.ex-table--people .ex-people-tax-col,
.ex-table--people .ex-cut-cell {
  overflow: hidden;
}

.ex-table--people .ex-row-actions {
  white-space: nowrap;
}

.ex-table--people .ex-mini-button--due-pay {
  min-width: 0;
  padding-inline: 8px;
  border-color: rgba(232, 210, 122, 0.45);
  color: #e8d27a;
  font-weight: 600;
}

.ex-table--people .ex-mini-button--danger {
  min-width: 0;
  padding-inline: 8px;
  border-color: rgba(232, 100, 100, 0.55);
  background: rgba(120, 24, 24, 0.55);
  color: #ff8f8f;
  font-weight: 700;
}

.ex-table--people .ex-mini-button--danger:hover {
  background: rgba(160, 32, 32, 0.75);
  color: #ffc0c0;
}

.ex-table--people .ex-mini-button--on-desk {
  min-width: 0;
  padding-inline: 8px;
  border-color: rgba(192, 132, 252, 0.55);
  background: rgba(76, 29, 149, 0.45);
  color: #d8b4fe;
  font-weight: 600;
}

.ex-table--people .ex-mini-button--on-desk:hover {
  background: rgba(109, 40, 217, 0.65);
  color: #ede9fe;
}

.ex-formula-sample.is-bad {
  grid-template-columns: 1fr;
  color: var(--md-error, #ff8585);
}

.ex-modal-card--wide {
  width: min(960px, 100%);
  max-height: min(90dvh, 820px);
}

.ex-modal-card--inspect {
  width: min(1080px, 100%);
  max-height: min(92dvh, 860px);
}

.ex-modal-card--inspect.ex-modal-card--pay,
.ex-modal-card--inspect.ex-modal-card--sheet {
  width: min(1440px, 98vw);
  max-height: min(94dvh, 940px);
  display: flex;
  flex-direction: column;
}

.ex-modal-card--pay .ex-person-inspect,
.ex-modal-card--sheet .ex-person-inspect {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.ex-modal-card--pay .ex-grant-actions {
  display: none;
}

.ex-payout-desk {
  display: grid;
  gap: 16px;
}

.ex-payout-desk-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

.ex-payout-zone {
  border: 1px solid var(--md-outline);
  background: #111;
  padding: 16px 18px;
  min-width: 0;
}

.ex-payout-zone-label {
  margin: 0 0 8px;
  color: var(--md-text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-payout-zone-copy {
  margin: 0 0 14px;
  color: var(--md-text-muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 46ch;
}

.ex-payout-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.ex-payout-person {
  flex: 1 1 240px;
  margin: 0;
  max-width: 360px;
}

.ex-payout-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ex-payout-stat-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ex-payout-stat-grid .ex-metric {
  margin: 0;
}

.ex-payout-zone--history {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.ex-payout-zone--history .ex-hits-scroll {
  flex: 1 1 auto;
  min-height: 240px;
}

.ex-payout-desk--compact {
  gap: 10px;
}

.ex-payout-desk-head {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.ex-payout-desk--compact .ex-payout-desk-action {
  border: 1px solid var(--md-outline);
  background: #111;
  padding: 12px 14px;
  min-width: 0;
}

.ex-payout-desk--compact .ex-payout-desk-action .ex-payout-zone-label {
  margin-bottom: 6px;
}

.ex-payout-desk--compact .ex-payout-action-row {
  gap: 8px;
}

.ex-payout-desk--compact .ex-payout-person {
  flex: 1 1 160px;
  max-width: none;
}

.ex-payout-zone--history-compact {
  min-height: 220px;
  padding: 12px 14px;
}

.ex-payout-zone--history-compact .ex-hits-scroll {
  min-height: 160px;
}

.ex-payout-history-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.ex-payout-history-split .ex-payout-zone--history-compact {
  min-height: 280px;
}

.ex-payout-history-split .ex-payout-zone--history-compact .ex-hits-scroll {
  min-height: 220px;
}

.ex-payout-savings {
  border: 1px solid var(--md-outline);
  background: #111;
  padding: 12px 14px;
  min-width: 0;
}

.ex-payout-savings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ex-payout-savings-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ex-payout-savings-sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--md-text-dim);
  line-height: 1.35;
}

.ex-payout-savings-pct {
  border: 1px solid var(--md-outline);
  background: #0a0a0a;
  padding: 6px 10px;
  text-align: center;
  min-width: 72px;
  flex-shrink: 0;
}

.ex-payout-savings-pct span {
  display: block;
  font-size: 9px;
  color: var(--md-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ex-payout-savings-pct strong {
  display: block;
  font-size: 16px;
  color: #7dff9a;
  font-weight: 700;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.ex-payout-savings-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.ex-payout-savings-stat {
  border: 1px solid var(--md-outline);
  background: #0c0c0c;
  padding: 8px 10px;
  min-height: 62px;
}

.ex-payout-savings-stat span {
  display: block;
  font-size: 9px;
  color: var(--md-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.ex-payout-savings-stat strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
  color: var(--md-text);
  font-variant-numeric: tabular-nums;
}

.ex-payout-savings-stat em {
  display: block;
  font-size: 9px;
  color: #666;
  font-style: normal;
  margin-top: 3px;
}

.ex-payout-savings-stat.is-ok strong {
  color: #7dff9a;
}

.ex-payout-savings-stat.is-due strong {
  color: #ff7a7a;
}

.ex-payout-savings-bar-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--md-text-dim);
  margin-bottom: 5px;
}

.ex-payout-savings-bar-labels strong {
  color: var(--md-text);
  font-weight: 600;
}

.ex-payout-savings-track {
  width: 100%;
  height: 26px;
  border: 1px solid var(--md-outline);
  background: #090909;
  display: flex;
  overflow: hidden;
  margin-bottom: 10px;
}

.ex-payout-savings-track.is-empty span {
  display: block;
  width: 100%;
  height: 100%;
}

.ex-payout-savings-seg {
  height: 100%;
  min-width: 2px;
  flex-shrink: 0;
}

.ex-payout-savings-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ex-payout-savings-pane {
  min-width: 0;
}

.ex-payout-savings-list {
  max-height: min(52vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-color: #3d3d3d #121212;
  scrollbar-width: thin;
}

.ex-payout-savings-pane-title {
  font-size: 9px;
  color: var(--md-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.ex-payout-savings-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 11px;
  border-bottom: 1px solid #1a1a1a;
}

.ex-payout-savings-row:last-child {
  border-bottom: none;
}

.ex-payout-savings-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.ex-payout-savings-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-payout-savings-amt {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.ex-payout-savings-amt.is-paid {
  color: #7dff9a;
}

.ex-payout-savings-amt.is-due {
  color: #ff7a7a;
}

.ex-payout-savings-empty,
.ex-payout-savings-more {
  font-size: 10px;
  color: var(--md-text-dim);
  padding: 4px 0;
}

.ex-table-wrap--payouts {
  min-width: 0;
}

.ex-table--payouts {
  width: 100%;
  table-layout: fixed;
}

.ex-table--payouts col.ex-payout-col-time {
  width: 13%;
}

.ex-table--payouts col.ex-payout-col-user {
  width: 19%;
}

.ex-table--payouts col.ex-payout-col-items {
  width: 40%;
}

.ex-table--payouts col.ex-payout-col-amt {
  width: 18%;
}

.ex-table--payouts col.ex-payout-col-del {
  width: 10%;
}

.ex-table--payouts:not(:has(col.ex-payout-col-del)) col.ex-payout-col-items {
  width: 48%;
}

.ex-table--payouts:not(:has(col.ex-payout-col-del)) col.ex-payout-col-amt {
  width: 20%;
}

.ex-table--payouts th,
.ex-table--payouts td {
  padding: 7px 10px;
  vertical-align: middle;
}

.ex-table--payouts th:first-child,
.ex-table--payouts td:first-child {
  padding-left: 12px;
}

.ex-table--payouts th:last-child,
.ex-table--payouts td:last-child {
  padding-right: 12px;
}

.ex-table--payouts .ex-items-cell {
  padding-right: 12px;
}

.ex-table--payouts .ex-money {
  text-align: right;
  padding-right: 8px;
}

.ex-table--payouts .ex-row-actions {
  text-align: center;
  padding-inline: 4px 8px;
}

@media (max-width: 1100px) {
  .ex-payout-desk-head {
    grid-template-columns: 1fr;
  }

  .ex-payout-savings-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ex-payout-history-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .ex-payout-savings-split {
    grid-template-columns: 1fr;
  }
}

.ex-adopt-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ex-adopt-attrs-tier,
.ex-adopt-attrs-potion {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-attr-btn {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--md-outline-strong);
  background: #0d0d0d;
  color: var(--md-text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ex-attr-btn.is-reg.on {
  border-color: #c8c8c8;
  background: #ececec;
  color: #111;
}

.ex-attr-btn.is-neon.on {
  border-color: #5eead4;
  background: #0f3d38;
  color: #5eead4;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.25);
}

.ex-attr-btn.is-mega.on {
  border-color: #c084fc;
  background: #2a1540;
  color: #e9d5ff;
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.3);
}

.ex-attr-btn.is-fly.on {
  border-color: #7dd3fc;
  background: #0b2a3d;
  color: #7dd3fc;
}

.ex-attr-btn.is-ride.on {
  border-color: #fdba74;
  background: #3a220c;
  color: #fdba74;
}

.ex-attr-btn:hover:not(.on) {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--md-text);
}

.ex-hit-variant-actions {
  margin-top: 10px;
}

.ex-pay-desk {
  display: flex;
  flex-direction: column;
  height: min(82dvh, 820px);
  min-height: 560px;
  border-top: 1px solid var(--md-outline);
  background: #101010;
}

.ex-pay-desk--wide {
  min-height: 620px;
}

.ex-pay-hero {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.2fr) minmax(280px, 1.4fr);
  gap: 16px 20px;
  align-items: end;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #141414 0%, #101010 100%);
}

.ex-pay-hero--compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  align-items: stretch;
  background: #121212;
}

.ex-pay-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.ex-pay-hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}

.ex-pay-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.ex-pay-chip span {
  color: var(--md-text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ex-pay-chip strong {
  color: var(--md-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.ex-pay-chip.is-due strong {
  color: #e8d27a;
}

.ex-pay-cash-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 8px 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.ex-pay-cash-inline span {
  color: var(--md-text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ex-pay-cash-inline .ex-input {
  width: 84px;
  min-height: 30px;
  padding: 4px 8px;
}

.ex-pay-game-bar--inline {
  width: auto;
  flex-shrink: 0;
}

.ex-pay-game-bar--inline .ex-chip-btn {
  flex: 0 0 auto;
  min-width: 72px;
}

.ex-pay-game-lock {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101010;
  color: var(--md-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ex-pay-hero-main {
  min-width: 0;
}

.ex-pay-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ex-pay-metric {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.ex-pay-metric span {
  color: var(--md-text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-pay-metric strong {
  color: var(--md-text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.ex-pay-hero-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ex-pay-cash-field {
  margin: 0;
}

.ex-pay-cash-field .ex-input {
  width: 100%;
}

.ex-pay-kicker {
  margin-bottom: 6px;
  color: var(--md-text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-pay-person {
  display: block;
  font-size: 18px;
  color: var(--md-text);
}

.ex-pay-meta-line {
  margin-top: 4px;
  color: var(--md-text-muted);
  font-size: 12px;
}

.ex-pay-game-bar {
  width: 100%;
  flex-shrink: 0;
}

.ex-pay-game-bar .ex-chip-btn {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
}

.ex-pay-body {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.ex-pay-selected {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: #0c0c0c;
}

.ex-pay-panel-head {
  padding: 8px 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ex-pay-cart {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px 12px 12px;
}

.ex-pay-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121212;
}

.ex-pay-cart-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ex-pay-cart-row strong {
  display: block;
  font-size: 12px;
}

.ex-pay-cart-row span {
  color: var(--md-text-dim);
  font-size: 11px;
}

.ex-pay-cart-line {
  color: var(--md-success, #7dff9a);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ex-pay-catalog {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #111;
}

.ex-pay-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ex-pay-toolbar .ex-input[type="search"] {
  flex: 1 1 260px;
  min-width: 220px;
}

.ex-pay-inv-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  align-content: start;
}

.ex-pay-inv-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151515;
}

.ex-pay-inv-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: #181818;
}

.ex-pay-inv-card.is-picked {
  border-color: rgba(232, 210, 122, 0.45);
  background: rgba(232, 210, 122, 0.08);
}

.ex-pay-inv-card-top {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ex-pay-inv-card-top strong {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ex-pay-inv-card-top span {
  color: var(--md-text-dim);
  font-size: 10px;
}

.ex-pay-inv-card-foot {
  display: flex;
  justify-content: flex-start;
}

.ex-pay-qty-input {
  width: 42px;
  min-height: 28px;
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0d0d;
  color: var(--md-text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.ex-pay-qty-input::-webkit-outer-spin-button,
.ex-pay-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ex-pay-tag {
  color: var(--md-primary);
  font-style: normal;
  font-weight: 700;
}

.ex-pay-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px 16px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--md-outline);
  background: #0a0a0a;
}

.ex-pay-checkout-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ex-pay-checkout-total {
  display: grid;
  gap: 2px;
  justify-items: end;
  min-width: 120px;
}

.ex-pay-checkout-total span {
  color: var(--md-text-dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-pay-checkout-total strong {
  color: #7dff9a;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.ex-pay-submit {
  min-width: 180px;
  white-space: nowrap;
}

.ex-pay-due-delta {
  font-size: 12px;
  color: var(--md-text-muted);
}

.ex-pay-due-delta.is-due {
  color: #e8d27a;
}

.ex-pay-due-delta.is-over {
  color: #7dff9a;
}

.ex-pay-due-delta.is-ok {
  color: #c8c8c8;
}

.ex-pay-examples {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0e0e0e;
}

.ex-pay-examples--inline {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  min-width: 0;
}

.ex-pay-examples-label {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  min-width: 52px;
  color: var(--md-text-dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ex-pay-examples-label em {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #e8d27a;
}

.ex-pay-examples--inline .ex-pay-examples-track {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.ex-pay-examples--inline .ex-pay-example {
  flex: 0 0 auto;
  width: min(168px, 28vw);
  padding: 6px 10px;
  gap: 2px;
}

.ex-pay-examples--inline .ex-pay-example strong {
  font-size: 12px;
}

.ex-pay-examples--inline .ex-pay-example span {
  font-size: 10px;
  line-height: 1.25;
}

.ex-pay-examples--wide .ex-pay-examples-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ex-pay-more {
  grid-column: 1 / -1;
  padding: 10px 8px 4px;
  text-align: center;
  color: var(--md-text-dim);
  font-size: 11px;
}

.ex-inv-wide {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.ex-inv-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

@media (max-width: 1100px) {
  .ex-pay-hero:not(.ex-pay-hero--compact) {
    grid-template-columns: 1fr 1fr;
  }

  .ex-pay-hero--compact .ex-pay-hero-strip {
    margin-left: 0;
    width: 100%;
  }

  .ex-pay-hero-controls {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    align-items: end;
  }

  .ex-pay-examples--wide .ex-pay-examples-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ex-payout-desk-top,
  .ex-payout-desk-head,
  .ex-pay-body {
    grid-template-columns: 1fr;
  }

  .ex-pay-desk,
  .ex-pay-desk--wide {
    height: auto;
    min-height: 0;
  }

  .ex-pay-selected {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ex-pay-inv-list {
    max-height: min(52vh, 520px);
  }

  .ex-pay-checkout {
    grid-template-columns: 1fr;
  }

  .ex-pay-checkout-total {
    justify-items: start;
  }

  .ex-pay-submit {
    width: 100%;
  }

  .ex-modal-card--inspect.ex-modal-card--pay,
  .ex-modal-card--inspect.ex-modal-card--sheet {
    width: min(100vw - 16px, 100%);
  }
}

.ex-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 0;
  background: var(--md-error);
  color: #1a0c0a;
  font-size: 10px;
  font-weight: 800;
}

.ex-ops-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ex-ops-tab {
  padding: 9px 14px;
  border: 1px solid var(--md-outline-strong);
  border-radius: 0;
  background: var(--md-surface-2);
  color: var(--md-text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
}

.ex-ops-tab.on {
  border-color: rgba(232, 184, 74, 0.45);
  background: rgba(232, 184, 74, 0.12);
  color: var(--md-text);
  box-shadow: none;
}

.ex-ops-meta {
  margin: 0 0 12px;
  color: var(--md-text-muted);
  font-size: 13px;
}

.ex-ops-list {
  display: grid;
  gap: 10px;
}

.ex-ops-card {
  padding: 12px 14px;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: linear-gradient(180deg, #1a1d24 0%, #14171c 100%);
}

.ex-ops-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ex-ops-sum {
  font-size: 13px;
  font-weight: 600;
  color: var(--md-text);
}

.ex-ops-sum .up {
  color: var(--md-accent);
}

.ex-ops-sum .down {
  color: var(--md-error);
}

.ex-ops-card-meta {
  margin-top: 4px;
  color: var(--md-text-dim);
  font-size: 11px;
}

.ex-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-ops-actions .ex-mini-button.on-deploy {
  border-color: rgba(94, 207, 154, 0.45);
  color: var(--md-accent);
  background: var(--md-accent-soft);
}

.ex-ops-diff {
  margin-top: 10px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--md-outline);
  border-radius: 0;
}

.ex-ops-diff table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ex-ops-diff th,
.ex-ops-diff td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--md-outline);
  text-align: left;
}

.ex-ops-diff .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ex-cookie-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .ex-cookie-layout,
  .ex-edit-top {
    grid-template-columns: 1fr;
  }

  .ex-modal-card--wide {
    width: min(100%, 560px);
  }
}

.ex-cookie-pane {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface-2);
}

.ex-cookie-refresh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 0 14px 14px;
  align-items: stretch;
}

.ex-cookie-refresh-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ex-cookie-refresh-pane-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.ex-cookie-refresh-pane-label {
  color: var(--md-text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ex-cookie-refresh-pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 18px;
  flex: 0 0 auto;
}

.ex-cookie-refresh-input {
  flex: 1 1 auto;
  min-height: 180px;
  resize: vertical;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.ex-cookie-refresh-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.ex-cookie-refresh-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 12px;
  color: var(--md-text-muted);
}

.ex-cookie-refresh-status.ok {
  color: var(--md-accent, #5ecf9a);
}

.ex-cookie-refresh-status.err {
  color: var(--md-error, #e08a80);
}

.ex-cookie-refresh-pane-foot {
  flex: 0 0 auto;
  min-height: 1.2em;
  margin: 0;
}

.ex-cookie-refresh-vault {
  flex: 0 0 auto;
  height: 320px;
  min-height: 320px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--md-outline);
  background: #0d0f13;
}

.ex-cookie-refresh-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  min-height: 46px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--md-outline);
  min-width: 0;
  box-sizing: border-box;
}

.ex-cookie-refresh-row:last-child {
  border-bottom: 0;
}

.ex-cookie-refresh-row-main {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.ex-cookie-refresh-row-main strong {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.ex-cookie-refresh-row-main span,
.ex-cookie-refresh-row-id {
  display: block;
  margin-top: 1px;
  color: var(--md-text-dim);
  font-size: 10px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.ex-cookie-refresh-row .ex-row-actions,
.ex-cookie-refresh-row .ex-cookie-refresh-actions {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: flex-end;
  justify-self: end;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  margin-left: auto;
  white-space: nowrap;
}

.ex-cookie-refresh-row .ex-row-actions .ex-mini-button,
.ex-cookie-refresh-row .ex-cookie-refresh-actions .ex-mini-button {
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .ex-cookie-refresh-layout {
    grid-template-columns: 1fr;
  }
}

.ex-cookie-vault {
  max-height: min(52vh, 480px);
  overflow: auto;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: #0d0f13;
}

.ex-cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--md-outline);
}

.ex-cookie-row:last-child {
  border-bottom: 0;
}

.ex-cookie-row strong {
  display: block;
  font-size: 13px;
}

.ex-cookie-row span {
  color: var(--md-text-dim);
  font-size: 11px;
}

.ex-best-hit-loot {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ex-hits-scroll .ex-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ex-hits-scroll .ex-empty-state {
  min-height: 180px;
  border: 0;
  border-radius: 0;
}

.ex-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  align-items: stretch;
}

.ex-dashboard-grid--lb {
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 300px);
}

.ex-dashboard-grid > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ex-dashboard-grid .ex-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ex-best-hits-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 8px 12px;
}

.ex-best-hits-wrap.ex-hl-scroll {
  height: 292px;
  max-height: 292px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ex-best-hits-wrap.ex-hl-scroll > .ex-best-hits {
  overflow: visible;
  max-height: none;
}

.ex-best-hit-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.ex-best-hit-del {
  padding: 3px 6px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.ex-best-hits {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 0 12px 14px;
}

.ex-best-hit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 8px;
  border-radius: 0;
}

.ex-best-hit:hover {
  background: var(--md-surface-2);
}

.ex-best-hit-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ex-best-hit-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-best-hit-meta {
  color: var(--md-text-dim);
  font-size: 12px;
}

.ex-best-hit-loot {
  overflow: hidden;
  color: var(--md-text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-best-hit-amount {
  color: #7dcea0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ex-achievements--items {
  margin-top: 8px;
}

.ex-achievement--item {
  border: 1px solid rgba(201, 132, 74, 0.35);
}

.ex-card {
  overflow: hidden;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface);
}

.ex-card + .ex-card {
  margin-top: 16px;
}

.ex-script-grid > .ex-card + .ex-card,
.ex-access-grid > .ex-access-tile + .ex-access-tile,
.ex-overview-earnings > .ex-card + .ex-card,
.ex-highlights-grid > .ex-card + .ex-card {
  margin-top: 0;
}

.ex-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex: 0 0 auto;
  padding: 16px 18px 10px;
}

.ex-card-head h2 {
  margin: 0;
  font-size: var(--md-title-md);
}

.ex-card-head p {
  margin: 4px 0 0;
  color: var(--md-text-muted);
  font-size: var(--md-label);
}

.ex-referral-grant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(192, 132, 252, 0.32);
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.12), rgba(12, 12, 12, 0.4) 42%, rgba(12, 12, 12, 0.2));
}

.ex-referral-grant-copy {
  min-width: 0;
  flex: 1 1 220px;
}

.ex-referral-grant-copy h2 {
  margin: 0;
  color: #d4aaff;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ex-referral-grant-copy p {
  max-width: 42ch;
  margin: 6px 0 0;
  color: var(--md-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.ex-referral-grant-form {
  display: flex;
  flex: 1 1 340px;
  gap: 0;
  align-items: stretch;
  max-width: 460px;
  margin: 0 0 0 auto;
}

.ex-referral-grant-form .ex-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border-right: 0;
}

.ex-referral-grant-form .ex-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .ex-referral-grant-form {
    max-width: none;
    margin-left: 0;
  }
}

.ex-chart-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.ex-chart-card .ex-card-head {
  align-items: center;
}

.ex-chart-wrap {
  position: relative;
  flex: 0 0 auto;
  height: 260px;
  min-height: 260px;
  max-height: 260px;
  padding: 4px 10px 6px 2px;
  overflow: hidden;
  cursor: crosshair;
}

.ex-chart-wrap.is-large {
  height: 320px;
  min-height: 320px;
  max-height: 320px;
}

.ex-earnings-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 0 16px 10px;
}

.ex-earnings-controls .ex-chip-btn {
  font-size: 12px;
}

.ex-earnings-user-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--md-text-dim);
  font-size: 12px;
}

.ex-earnings-user-wrap.hidden {
  display: none;
}

.ex-earnings-user-wrap select {
  min-width: 140px;
  max-width: 200px;
  height: 32px;
  border: 1px solid var(--md-outline-strong);
  border-radius: 0;
  background: var(--md-surface-2);
  color: var(--md-text);
  font: inherit;
  font-size: 12px;
  padding: 0 8px;
}

.ex-earnings-dates {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.ex-earnings-dates input[type="date"] {
  height: 32px;
  border: 1px solid var(--md-outline-strong);
  border-radius: 0;
  background: var(--md-surface-2);
  color: var(--md-text);
  font: inherit;
  font-size: 12px;
  padding: 0 8px;
}

.ex-period-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-chart {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ex-overview-hits {
  max-height: none;
}

.ex-overview-hits .ex-list {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ex-chart-guide {
  stroke: rgba(212, 162, 76, 0.45);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  pointer-events: none;
}

.ex-chart-active {
  fill: var(--md-primary);
  stroke: var(--md-surface);
  stroke-width: 2;
  pointer-events: none;
}

.ex-chart-dot.on {
  r: 5;
}

.ex-chart-grid {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.ex-chart-axis {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.25;
}

.ex-chart-tick {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
}

.ex-chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ex-chart-label {
  fill: var(--md-text-muted, #9a9a9a);
  font-size: 13px;
  font-family: var(--md-font);
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(8, 8, 8, 0.65);
  stroke-width: 2.5px;
  stroke-linejoin: round;
}

.ex-chart-label-y {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.ex-chart-label-x {
  font-size: 12px;
}

.ex-chart-area {
  opacity: 0.12;
}

.ex-chart-dot {
  stroke: var(--md-surface);
  stroke-width: 2;
}

.ex-chart-tooltip {
  position: fixed;
  z-index: 120;
  min-width: 180px;
  max-width: min(320px, calc(100vw - 16px));
  max-height: none;
  padding: 12px 14px 11px;
  border: 1px solid var(--md-outline-strong);
  border-radius: 0;
  background: rgba(32, 33, 35, 0.97);
  box-shadow: none;
  color: var(--md-text);
  font-family: var(--md-font);
  line-height: 1.2;
  pointer-events: none;
  transform: none;
  text-align: left;
}

.ex-chart-tip-date {
  margin: 0 0 6px;
  color: var(--md-text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ex-chart-tip-value {
  margin: 0;
  color: var(--md-text);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.ex-table-wrap {
  overflow-x: auto;
}

.ex-highlights-grid .ex-table-wrap {
  overflow-x: hidden;
}

.ex-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.ex-hits-scroll .ex-table,
.ex-card > .ex-table-wrap > .ex-table:not(.ex-table--catalog):not(.ex-table--feed):not(.ex-table--lb) {
  min-width: 640px;
}

.ex-table th,
.ex-table td {
  padding: 14px 20px;
  border-top: 1px solid var(--md-outline);
  text-align: left;
  vertical-align: middle;
  user-select: text;
}

.ex-table th:last-child,
.ex-table td:last-child {
  padding-right: 28px;
  text-align: right;
  white-space: nowrap;
}

.ex-table th:first-child,
.ex-table td:first-child {
  padding-left: 24px;
  white-space: nowrap;
}

.ex-table th {
  color: var(--md-text-muted);
  font-size: 14px;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
}

.ex-table tbody tr {
  transition: background 120ms ease;
}

.ex-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.ex-money {
  color: var(--md-success);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ex-money--blue {
  color: var(--md-primary);
}

.ex-money--pos {
  color: var(--md-success) !important;
}

.ex-money--neg {
  color: var(--md-error) !important;
}

.ex-money--warn {
  color: var(--md-warn) !important;
}

.ex-money--income {
  color: #e8d27a;
}

.ex-th-income {
  color: #e8d27a;
}

.ex-th-owe {
  color: var(--md-error);
}

.ex-th-earn {
  color: var(--md-success);
}

.ex-rank {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 0;
  background: var(--md-surface-2);
  color: var(--md-text-muted);
  font-size: 11px;
  font-weight: 700;
}

.ex-rank.top {
  background: rgba(253, 214, 99, 0.14);
  color: #fdd663;
}

.ex-list {
  display: grid;
}

.ex-mobile-only-list {
  display: none;
}

.ex-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--md-outline);
}

.ex-list-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-list-meta {
  color: var(--md-text-muted);
  font-size: 13px;
}

.ex-list-amount {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--md-success);
  font-weight: 700;
}

.ex-profile-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface);
}

.ex-profile-avatar {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(212, 162, 76, 0.35);
  border-radius: 0;
  background: #232831;
  color: var(--md-primary);
  font-size: 28px;
  font-weight: 700;
}

.ex-profile-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--md-title-lg);
}

.ex-title-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 0;
  background: var(--md-primary-container);
  color: var(--md-primary);
  font-size: 12px;
  font-weight: 600;
}

.ex-profile-hero p {
  margin: 5px 0 0;
  color: var(--md-text-muted);
}

.ex-locked-card {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  padding: 18px 20px;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface);
  color: var(--md-text-muted);
}

.ex-locked-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 0;
  background: var(--md-surface-2);
  color: var(--md-text-dim);
}

.ex-locked-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ex-role-chip {
  padding: 7px 11px;
  border-radius: 0;
  background: var(--md-primary-container);
  color: var(--md-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.ex-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ex-achievement {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 0;
  background: var(--md-surface-2);
  color: var(--md-text-muted);
  font-size: 11px;
}

.ex-achievement em {
  font-style: normal;
  color: var(--md-text-dim);
  font-variant-numeric: tabular-nums;
}

.ex-achievement.on {
  background: var(--md-primary-container);
  color: var(--md-primary);
}

.ex-achievement.on em {
  color: var(--md-primary);
}

.ex-wealth-card {
  min-height: 370px;
  padding-bottom: 18px;
}

.ex-wealth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 0;
  background: var(--md-surface-2);
}

.ex-wealth-tab {
  padding: 6px 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--md-text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.ex-wealth-tab.on {
  background: var(--md-surface-3);
  color: var(--wealth-color, var(--md-primary));
}

.ex-vault {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: end center;
  padding: 20px 16px 12px;
}

.ex-wealth-stack {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 180px;
  width: 100%;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px;
  touch-action: none;
}

.ex-wealth-item {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  user-select: none;
  cursor: grab;
  transform: rotate(var(--rot, 0deg)) translateY(calc(var(--shift, 0px) * -1));
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  transition: transform 80ms ease;
}

.ex-wealth-item img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  object-fit: contain;
}

.ex-wealth-item.dragging {
  cursor: grabbing;
  z-index: 5;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
}

.ex-wealth-item--bill {
  width: clamp(96px, 15vw, 140px);
}

.ex-wealth-item--bar {
  width: clamp(84px, 13vw, 120px);
}

.ex-wealth-item--knife {
  width: clamp(52px, 9vw, 72px);
}

.ex-wealth-readout {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  text-align: center;
}

.ex-wealth-readout strong {
  display: block;
  color: var(--wealth-color);
  font-size: 26px;
}

.ex-wealth-readout span {
  display: block;
  margin-top: 3px;
  color: var(--md-text-muted);
  font-size: 11px;
}

.ex-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.ex-form-span {
  grid-column: 1 / -1;
}

.ex-entitlement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.ex-entitlement-card {
  display: flex;
  flex-direction: column;
  min-height: 132px;
  padding: 14px 16px;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface-2);
}

.ex-entitlement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.ex-game-enable {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  position: relative;
  z-index: 2;
}

.ex-game-enable-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid var(--game-color, var(--md-primary));
  background: transparent;
  box-shadow: inset 0 0 0 0 var(--game-color, var(--md-primary));
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.ex-game-enable.is-on .ex-game-enable-mark {
  background: var(--game-color, var(--md-primary));
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.35);
}

.ex-game-enable-label {
  line-height: 1.2;
}

.ex-game-enable-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.ex-duration {
  display: grid;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 0;
}

.ex-duration-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-chip-btn {
  padding: 7px 10px;
  border: 1px solid rgba(110, 182, 255, 0.22);
  border-radius: 0;
  background: var(--md-accent-2-soft);
  color: var(--md-text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.ex-chip-btn:hover {
  color: var(--md-text);
  border-color: rgba(110, 182, 255, 0.45);
}

.ex-chip-btn.on {
  border-color: var(--md-primary);
  background: var(--md-primary-container);
  color: var(--md-primary);
}

.ex-duration-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid var(--md-outline);
}

.ex-duration-custom.hidden {
  display: none;
}

.ex-duration-custom .ex-field {
  margin: 0;
}

.ex-expiry-tag {
  color: var(--md-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ex-expiry-tag.is-lifetime {
  color: var(--md-success);
  font-weight: 600;
}

.ex-expiry-tag.is-expired {
  color: var(--md-error);
  font-weight: 600;
}

.ex-person-form {
  padding: 0 18px 18px;
}

.ex-person-create-card {
  margin-bottom: 16px;
}

.ex-person-form--compact {
  padding: 14px;
}

.ex-person-create-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
  align-items: stretch;
  isolation: isolate;
}

.ex-person-create-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  position: relative;
  z-index: 0;
  overflow: hidden;
  contain: layout paint;
}

.ex-person-create-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.ex-person-create-head p {
  margin: 4px 0 0;
  color: var(--md-text-muted);
  font-size: 12px;
}

.ex-person-username-field {
  margin: 0;
}

.ex-person-username-field .ex-input {
  padding: 8px 10px;
}

.ex-person-tax-box {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.ex-person-create-access {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--md-outline);
  background: var(--md-surface-2);
  position: relative;
  z-index: 5;
  isolation: isolate;
}

.ex-person-create-section-label {
  color: var(--md-text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ex-person-create-submit {
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  padding: 8px 12px;
  position: relative;
  z-index: 1;
}

.ex-person-form--compact .ex-commission {
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
}

.ex-person-form--compact .ex-commission-top {
  gap: 6px;
}

.ex-person-form--compact .ex-commission-presets {
  gap: 4px;
}

.ex-person-form--compact .ex-commission-presets .ex-chip-btn {
  padding: 4px 8px;
  font-size: 11px;
}

.ex-person-form--compact .ex-commission-input {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.35;
  resize: none;
}

.ex-person-form--compact .ex-commission-hint {
  font-size: 10px;
  line-height: 1.25;
}

.ex-person-form--compact .ex-formula-chart-compact {
  gap: 6px;
  padding: 8px 10px;
}

.ex-person-form--compact .ex-formula-chart-head {
  gap: 6px;
}

.ex-person-form--compact .ex-formula-chart-label {
  font-size: 11px;
}

.ex-person-form--compact .ex-formula-chart-controls {
  gap: 6px;
  font-size: 12px;
}

.ex-person-form--compact .ex-formula-chart-controls select,
.ex-person-form--compact .ex-formula-chart-controls input[type="number"] {
  padding: 4px 6px;
  font-size: 12px;
}

.ex-person-form--compact .ex-formula-chart-canvas,
.ex-person-form--compact .ex-formula-chart-canvas--sm {
  min-height: 88px;
  max-height: 88px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.ex-person-form--compact .ex-formula-chart-compact {
  pointer-events: none;
  overflow: hidden;
  max-width: 100%;
}

.ex-person-form--compact .ex-formula-chart-controls,
.ex-person-form--compact .ex-formula-slider-row,
.ex-person-form--compact .ex-commission-top,
.ex-person-form--compact .ex-commission-presets {
  pointer-events: auto;
}

.ex-person-form--compact .ex-formula-chart-compact canvas {
  height: 88px;
  max-height: 88px;
  pointer-events: none;
}

.ex-person-form--compact .ex-formula-chart-head-main .ex-formula-readout {
  font-size: 12px;
}

.ex-entitlement-grid--compact {
  gap: 8px;
  flex: 1 1 auto;
  grid-template-columns: 1fr;
}

.ex-entitlement-grid--compact .ex-entitlement-card {
  min-height: 0;
  padding: 10px 12px;
}

.ex-entitlement-grid--compact .ex-entitlement-head {
  margin-bottom: 8px;
}

.ex-entitlement-grid--compact .ex-duration {
  gap: 6px;
}

.ex-entitlement-grid--compact .ex-duration .ex-label {
  font-size: 10px;
}

.ex-entitlement-grid--compact .ex-chip-btn {
  padding: 5px 8px;
  font-size: 11px;
}

.ex-person-basics {
  display: grid;
  grid-template-columns: minmax(220px, 320px);
  gap: 0;
  align-items: start;
  margin-bottom: 14px;
}

.ex-person-basics > .ex-field {
  margin: 0;
  max-width: none;
}

.ex-person-basics .ex-commission {
  margin-top: 0;
  margin-bottom: 0;
  min-width: 0;
}

.ex-person-form > .ex-commission {
  margin-bottom: 16px;
}

.ex-person-form .ex-form-span .ex-btn-filled {
  width: 100%;
  max-width: none;
}

.ex-edit-commission .ex-commission {
  margin-bottom: 0;
  padding: 12px 14px 14px;
}

.ex-edit-commission .ex-commission-input {
  min-height: 48px;
}

.ex-grant-form {
  display: grid;
  gap: 14px;
}

.ex-grant-form--edit {
  gap: 12px;
  position: relative;
}

.ex-grant-form--edit .ex-entitlement-grid {
  position: relative;
  z-index: 6;
  isolation: isolate;
  pointer-events: auto;
}

.ex-grant-form--edit .ex-entitlement-card,
.ex-grant-form--edit .ex-game-enable {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.ex-grant-form--edit .ex-grant-actions {
  position: relative;
  z-index: 6;
}

.ex-edit-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ex-edit-commission {
  margin: 0;
  position: relative;
  z-index: 0;
  overflow: hidden;
  max-width: 100%;
  contain: layout paint;
  isolation: isolate;
  /* Chart/canvas used to overflow and steal clicks from MM2/Adopt toggles below. */
  pointer-events: none;
}

.ex-edit-commission .ex-commission {
  max-width: 100%;
  overflow: hidden;
}

.ex-edit-commission .ex-formula-chart-compact,
.ex-edit-commission .ex-formula-chart-canvas,
.ex-edit-commission canvas {
  pointer-events: none !important;
  overflow: hidden;
  max-width: 100%;
}

.ex-edit-commission .ex-commission-input,
.ex-edit-commission .ex-formula-chart-controls,
.ex-edit-commission .ex-formula-slider-row,
.ex-edit-commission .ex-commission-top,
.ex-edit-commission .ex-commission-presets,
.ex-edit-commission input,
.ex-edit-commission button,
.ex-edit-commission select,
.ex-edit-commission label {
  pointer-events: auto;
}

.ex-grant-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.ex-grant-actions .ex-btn-filled {
  width: auto;
  min-width: 120px;
}

.ex-user-edit-save-log {
  margin-top: 4px;
  max-height: 220px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--ex-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--ex-mono, monospace);
  font-size: 11px;
  line-height: 1.55;
}

.ex-user-edit-save-log:not(.hidden) {
  display: block;
}

.ex-save-log-line {
  color: var(--ex-muted);
}

.ex-save-log-line.is-pending {
  color: var(--ex-text);
}

.ex-save-log-line.is-ok {
  color: #7dff9a;
}

.ex-save-log-line.is-warn {
  color: #ffd27a;
}

.ex-save-log-line.is-err {
  color: #ff7ab0;
}

.ex-save-log-line.is-muted {
  color: rgba(255, 255, 255, 0.45);
}

.ex-save-log-line.is-stage {
  color: var(--ex-gold);
  font-weight: 600;
  margin-top: 6px;
}

.ex-save-log-line.is-stage:first-child {
  margin-top: 0;
}

.ex-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.ex-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  cursor: pointer;
  accent-color: var(--md-primary);
  pointer-events: auto;
}

.ex-admin-users {
  display: grid;
  gap: 10px;
}

.ex-admin-user {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface);
}

.ex-user-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ex-user-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-user-sub {
  margin-top: 4px;
  color: var(--md-text-muted);
  font-size: 11px;
}

.ex-game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-game-badge {
  padding: 5px 8px;
  border-radius: 0;
  background: var(--game-soft);
  color: var(--game-color);
  font-size: 10px;
  font-weight: 700;
}

.ex-user-actions {
  display: flex;
  gap: 4px;
}

.ex-mini-button {
  padding: 7px 10px;
  border: 0;
  border-radius: 0;
  background: var(--md-surface-2);
  color: var(--md-text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.ex-mini-button:hover {
  color: var(--md-primary);
}

.ex-mini-button:disabled {
  opacity: 0.35;
  cursor: default;
  color: var(--md-text-dim);
}

.ex-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.58);
}

.ex-mobile-nav,
.ex-toast-region {
  display: none;
}

.ex-toast {
  padding: 12px 14px;
  border: 1px solid var(--md-outline-strong);
  border-radius: 0;
  background: var(--md-surface-2);
  box-shadow: none;
  color: var(--md-text);
  font-size: 12px;
}

.ex-modal-card--confirm {
  width: min(420px, 100%);
}

.ex-confirm-message {
  margin: 12px 0 18px;
  color: var(--md-text-dim);
  line-height: 1.45;
  font-size: 14px;
}

.ex-confirm-actions {
  justify-content: flex-end;
}

.ex-btn-danger {
  background: #c44b5a !important;
  border-color: #c44b5a !important;
  color: #fff !important;
}

.ex-btn-danger:hover {
  filter: brightness(1.08);
}

.ex-modal:has(.ex-modal-card--confirm) {
  z-index: 280;
}

.ex-secret-row--cookie {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.ex-secret-row--cookie .ex-cookie-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-secret-row--cookie .ex-mini-button--danger {
  margin-left: auto;
}

.ex-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  padding: 16px;
  place-items: center;
  background: rgba(0, 0, 0, 0.66);
}

.ex-modal-card {
  width: min(520px, 100%);
  max-height: 85dvh;
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--md-outline-strong);
  border-radius: 0;
  background: var(--md-surface);
  box-shadow: none;
}

.ex-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ex-modal-head h2 {
  margin: 0;
}

.ex-secret-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.ex-secret-row {
  padding: 12px;
  border-radius: 0;
  background: var(--md-surface-2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.ex-secret-row span,
.ex-secret-row code {
  display: block;
}

.ex-secret-row span {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--md-text-muted);
  font-size: 11px;
}

.ex-secret-row code {
  overflow-wrap: anywhere;
  word-break: break-all;
  min-width: 0;
  max-width: 100%;
  color: var(--md-primary);
  user-select: all;
}
.ex-secret-list {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.ex-secret-row .ex-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .ex-global-bar {
    grid-template-columns: 210px minmax(0, 1fr) auto;
  }

  .ex-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .ex-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ex-metric-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ex-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .ex-overview-earnings,
  .ex-overview-split,
  .ex-highlights-grid {
    grid-template-columns: 1fr;
  }

  .ex-overview-split > .ex-card,
  .ex-overview-side .ex-card {
    min-height: 0;
  }

  .ex-access-grid {
    grid-template-columns: 1fr;
  }

  .ex-script-grid {
    grid-template-columns: 1fr;
  }

  .ex-overview-hits {
    max-height: none;
  }

  .ex-overview-hits .ex-list {
    max-height: 360px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .ex-login-card {
    padding: 24px 20px;
    border-radius: 0;
  }

  .ex-dashboard {
    padding: 0;
  }

  .ex-global-bar {
    position: sticky;
    grid-template-columns: 1fr auto;
    min-height: 58px;
    padding: 8px 14px;
  }

  .ex-global-balance {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    margin-left: auto;
    margin-right: 8px;
    max-width: none;
    gap: 8px;
  }

  .ex-global-balance-label {
    font-size: 11px;
  }

  .ex-global-pay-btn {
    min-width: 52px;
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .ex-global-brand span:last-child,
  .ex-chip,
  .ex-game-switcher,
  .ex-icon-rail {
    display: none;
  }

  .ex-account-chip {
    max-width: min(150px, 46vw);
    padding: 0 10px;
    gap: 8px;
  }

  .ex-topbar-store {
    padding: 0 10px;
  }

  .ex-topbar-store span {
    display: none;
  }

  .ex-account-name {
    font-size: 11px;
  }

  .ex-workspace {
    display: block;
    min-height: calc(100dvh - 58px);
  }

  .ex-side-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: min(320px, 86vw);
    height: 100dvh;
    padding: 24px 0 16px;
    box-shadow: none;
    transform: translateX(-105%);
    transition: transform 190ms ease;
  }

  .ex-side-panel.open {
    transform: translateX(0);
  }

  .ex-content {
    padding: 14px 14px 24px;
  }

  .ex-mobile-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
  }

  .ex-mobile-heading > div {
    display: grid;
  }

  .ex-mobile-heading span {
    color: var(--md-text-dim);
    font-size: 12px;
    text-transform: uppercase;
  }

  .ex-mobile-heading strong {
    margin-top: 2px;
    font-size: 18px;
    font-weight: var(--md-heading-weight);
  }

  .ex-breadcrumbs {
    display: none;
  }

  .ex-page-head {
    display: block;
    margin-bottom: 16px;
  }

  .ex-page-head h1 {
    font-size: 25px;
  }

  .ex-page-actions {
    margin-top: 13px;
  }

  .ex-game-grid,
  .ex-form-grid,
  .ex-entitlement-grid,
  .ex-person-basics,
  .ex-person-create-grid {
    grid-template-columns: 1fr;
  }

  .ex-person-create-access {
    order: 0;
  }

  .ex-person-create-main {
    order: 1;
  }

  .ex-formula-chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ex-formula-chart-controls {
    width: 100%;
  }

  .ex-formula-readout {
    font-size: 10px;
  }

  .ex-table--people .ex-row-actions {
    max-width: none;
  }

  .ex-income-pie-body {
    padding-inline: 14px;
  }

  .ex-income-pie-wrap {
    width: 200px;
    height: 200px;
  }

  .ex-game-card {
    flex-direction: column;
    min-height: 0;
    gap: 14px;
    padding: 14px;
  }

  .ex-script-video {
    width: 100%;
    max-width: none;
    min-height: 0;
    align-self: stretch;
  }

  .ex-game-card-icon {
    width: 44px;
    height: 44px;
  }

  .ex-game-card h2 {
    font-size: 16px;
  }

  .ex-game-card-stat-value.is-money {
    font-size: 22px;
  }

  .ex-home-stats {
    margin-top: 22px;
  }

  .ex-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ex-metric-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ex-metric {
    min-height: 96px;
    padding: 14px;
  }

  .ex-metric-value {
    font-size: 26px;
  }

  .ex-chart-wrap {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    padding-inline: 2px;
  }

  .ex-chart-wrap.is-large {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
  }

  .ex-overview-earnings .ex-chart-wrap,
  .ex-overview-earnings .ex-chart-wrap.is-large {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
  }

  .ex-table-wrap {
    display: none;
  }

  .ex-person-inspect .ex-table-wrap,
  .ex-observer-body.ex-table-wrap,
  .ex-observer-body .ex-table-wrap,
  .ex-best-hits-wrap.ex-table-wrap,
  .ex-lb-wrap.ex-table-wrap {
    display: block;
  }

  .ex-mobile-only-list {
    display: grid;
  }

  .ex-list-row {
    padding: 13px 15px;
  }

  .ex-profile-hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .ex-profile-avatar {
    width: 58px;
    height: 58px;
    border-radius: 0;
    font-size: 23px;
  }

  .ex-profile-hero h1 {
    font-size: 22px;
  }

  .ex-role-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .ex-admin-user {
    grid-template-columns: 1fr;
  }

  .ex-user-actions {
    justify-content: flex-start;
  }

  .ex-mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--md-outline);
    background: rgba(30, 31, 32, 0.96);
    backdrop-filter: none;
  }

  .ex-mobile-nav-button {
    display: grid;
    min-width: 0;
    gap: 3px;
    justify-items: center;
    padding: 7px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--md-text-muted);
    cursor: pointer;
    font-size: 10px;
  }

  .ex-mobile-nav-button.on {
    background: var(--md-primary-container);
    color: var(--md-primary);
  }

  .ex-toast-region {
    position: fixed;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 95;
    display: grid;
    gap: 8px;
  }
}

.ex-secret-row code {
  word-break: break-all;
  font-size: 12px;
}

.ex-pay-examples-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ex-pay-examples-head span {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--md-text-dim);
}

.ex-pay-example {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--md-outline);
  background: var(--md-surface);
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.ex-pay-example:hover {
  border-color: var(--md-primary, #7dffa8);
  background: rgba(125, 255, 168, 0.06);
}

.ex-pay-example strong {
  font-size: 13px;
}

.ex-pay-example span {
  color: var(--md-text-dim);
  font-size: 11px;
  line-height: 1.35;
}

.ex-pay-example em {
  color: var(--md-primary);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.ex-pay-desk .ex-pay-inv-list {
  margin-top: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ex-person-inspect .ex-table {
  min-width: 0;
  width: 100%;
}

.ex-inventory-modal-wrap {
  max-height: min(68vh, 640px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
}

.ex-table--inventory {
  table-layout: fixed;
  width: 100%;
  min-width: 760px;
}
}

.ex-table--inventory th:nth-child(1),
.ex-table--inventory td:nth-child(1) {
  width: 38%;
}

.ex-table--inventory th:nth-child(2),
.ex-table--inventory td:nth-child(2) {
  width: 14%;
  color: var(--md-text-dim);
  font-size: 11px;
  text-transform: capitalize;
}

.ex-table--inventory th:nth-child(3),
.ex-table--inventory td:nth-child(3) {
  width: 12%;
}

.ex-table--inventory th:nth-child(4),
.ex-table--inventory td:nth-child(4),
.ex-table--inventory th:nth-child(5),
.ex-table--inventory td:nth-child(5) {
  width: 18%;
  text-align: right;
  white-space: nowrap;
}

.ex-person-hits-scroll {
  max-height: min(62vh, 560px);
  overflow: auto;
}

.ex-person-hits-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--md-surface);
  box-shadow: 0 1px 0 var(--md-outline);
}

.ex-table--person-hits {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}

.ex-table--person-hits col.ex-feed-col-time {
  width: 40px;
}

.ex-table--person-hits col.ex-feed-col-amt {
  width: 56px;
}

.ex-table--person-hits col.ex-feed-col-del {
  width: 44px;
}

.ex-table--person-hits col.ex-feed-col-items {
  width: auto;
}

.ex-table--person-hits th,
.ex-table--person-hits td {
  padding: 6px 8px;
  vertical-align: middle;
}

.ex-table--person-hits th:first-child,
.ex-table--person-hits td:first-child {
  padding-left: 10px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--md-text-dim);
}

.ex-table--person-hits th:last-child,
.ex-table--person-hits td:last-child {
  padding-right: 6px;
  padding-left: 2px;
  text-align: right;
}

.ex-table--person-hits .ex-items-cell {
  max-width: 0;
  overflow: hidden;
  font-size: 12px;
  color: var(--md-text-muted);
  line-height: 1.35;
}

.ex-table--person-hits .ex-money {
  font-size: 12px;
  white-space: nowrap;
  padding-right: 4px;
  padding-left: 2px;
}

.ex-table--person-hits .ex-row-actions {
  width: 44px;
  padding: 4px 2px 4px 0;
  white-space: nowrap;
}

.ex-table--person-hits .ex-row-actions .ex-mini-button {
  padding: 3px 5px;
  font-size: 9px;
  letter-spacing: 0.03em;
  min-width: 0;
}

.ex-person-inspect .ex-table-wrap:not(.ex-person-hits-scroll) .ex-items-cell {
  white-space: normal;
  overflow: hidden;
}

.ex-section-label {
  margin: 0 0 8px;
  color: var(--md-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ex-section-block {
  margin-bottom: 4px;
}

.ex-owner-ops-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.ex-owner-ops-form .ex-field {
  margin: 0;
  min-width: 0;
}

.ex-owner-ops-form .ex-owner-ops-person {
  flex: 1 1 220px;
  max-width: 320px;
}

.ex-owner-ops-form .ex-input {
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 220px;
  width: 100%;
}

.ex-owner-ops-form .ex-owner-ops-person .ex-input {
  max-width: none;
}

.ex-hit-creator {
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.ex-hit-creator-form {
  display: grid;
  gap: 12px;
  padding: 0 16px 4px;
}

.ex-hit-creator-basics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.ex-hit-creator-basics .ex-field {
  flex: 1 1 220px;
  margin: 0;
}

.ex-hit-mode {
  display: flex;
  gap: 6px;
  padding-bottom: 2px;
}

.ex-hit-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.ex-hit-catalog-toolbar .ex-input {
  flex: 1 1 220px;
  min-width: 160px;
}

.ex-hit-loot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.9fr);
  gap: 12px;
  margin-top: 10px;
}

.ex-hit-catalog,
.ex-hit-selected {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface-2);
}

.ex-hit-catalog {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 6px;
}

.ex-hit-catalog-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(72px, 0.9fr) auto auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--md-text);
  text-align: left;
  cursor: pointer;
}

.ex-hit-catalog-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-hit-catalog-item span,
.ex-hit-catalog-item em,
.ex-hit-catalog-item i {
  color: var(--md-text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.ex-hit-catalog-item .ex-hit-key {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.85;
}

.ex-hit-catalog-item .ex-money {
  color: var(--md-success, #7dff9a);
  white-space: nowrap;
}

.ex-hit-catalog-item:hover,
.ex-hit-catalog-item.on {
  background: var(--md-primary-container);
}

.ex-hit-selected-wrap {
  min-width: 0;
}

.ex-hit-selected-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--md-text-muted);
  font-size: 13px;
}

.ex-hit-selected {
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.ex-hit-picked {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 0;
  background: var(--md-surface);
}

.ex-hit-picked-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ex-hit-picked-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-hit-picked-main span,
.ex-hit-picked-line {
  color: var(--md-text-muted);
  font-size: 12px;
}

.ex-hit-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ex-hit-qty em {
  min-width: 1.4em;
  text-align: center;
  font-style: normal;
  font-weight: 650;
}

.ex-pay-qty .ex-mini-button {
  min-width: 28px;
  padding-inline: 6px;
}

.ex-hit-variant-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface-2);
}

.ex-hit-variant-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ex-hit-variant-head span {
  color: var(--md-text-muted);
  font-size: 12px;
}

.ex-hit-variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
}

.ex-hit-variant {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 8px 6px;
  border: 1px solid var(--md-outline);
  border-radius: 0;
  background: var(--md-surface);
  color: var(--md-text);
  cursor: pointer;
}

.ex-hit-variant span,
.ex-hit-variant em {
  color: var(--md-text-muted);
  font-size: 11px;
  font-style: normal;
}

.ex-hit-variant:hover,
.ex-hit-variant.on {
  border-color: rgba(232, 184, 74, 0.45);
  background: var(--md-primary-container);
}

@media (max-width: 900px) {
  .ex-hit-loot-layout {
    grid-template-columns: 1fr;
  }
}

.ex-observer-search {
  width: min(260px, 100%);
}

.ex-observer-body {
  max-height: min(72vh, 780px);
  overflow: auto;
}

.ex-observer-body .ex-table {
  min-width: 0;
}

.ex-values-observer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.ex-values-observer-table th,
.ex-values-observer-table td {
  padding: 4px 8px;
  border-bottom: 1px solid #161616;
  white-space: nowrap;
}

.ex-values-observer-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #111;
  color: #9d9d9d;
  font-size: 10px;
  text-transform: uppercase;
}

.ex-values-observer-table th.sticky-col,
.ex-values-observer-table td.sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #0d0d0d;
  box-shadow: 1px 0 0 #242424;
}

.ex-values-observer-table th.sticky-col {
  z-index: 3;
}

.ex-values-observer-table td.num {
  text-align: right;
  color: #e8d27a;
}

.ex-values-observer-table td.zero {
  color: #555;
}

.ex-values-observer-table tr:hover td {
  background: #101010;
}

.ex-values-observer-more td {
  padding: 10px 8px;
  color: var(--md-text-dim);
  font-size: 11px;
  text-align: center;
  background: #0d0d0d;
  border-bottom: none;
}

.ex-values-observer-table--adopt {
  --adopt-hdr-row1: 30px;
  border-collapse: separate;
  border-spacing: 0;
}

.ex-values-observer-table--adopt th.sticky-col,
.ex-values-observer-table--adopt td.sticky-col {
  max-width: 110px;
  min-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-values-observer-table--adopt th.kind-col,
.ex-values-observer-table--adopt td.kind-col {
  max-width: 120px;
  min-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #777;
  font-size: 10px;
}

.ex-values-observer-table--adopt thead tr.group-row th {
  top: 0;
  z-index: 4;
  height: var(--adopt-hdr-row1);
  min-height: var(--adopt-hdr-row1);
  padding: 0 6px;
  box-sizing: border-box;
  line-height: var(--adopt-hdr-row1);
  font-size: 12px;
  text-align: center;
  text-transform: none;
  border-bottom: none;
  vertical-align: middle;
}

.ex-values-observer-table--adopt thead tr.potion-row th {
  top: var(--adopt-hdr-row1);
  z-index: 3;
  padding: 0 4px;
  height: 26px;
  min-height: 26px;
  box-sizing: border-box;
  line-height: 26px;
  font-size: 11px;
  text-align: center;
  text-transform: none;
  border-bottom: 1px solid #333;
  border-top: 1px solid #2a2a2a;
}

.ex-values-observer-table--adopt thead tr.group-row th.sticky-col,
.ex-values-observer-table--adopt thead tr.group-row th.kind-col {
  z-index: 6;
  vertical-align: middle;
  text-align: left;
  line-height: 1.2;
  padding: 6px 8px;
  background: #111;
  box-shadow: 1px 0 0 #242424, 0 1px 0 #111;
}

.ex-values-observer-table--adopt th.grp-reg,
.ex-values-observer-table--adopt th.col-reg {
  color: #d6d6d6;
  background: #171717;
}

.ex-values-observer-table--adopt thead tr.potion-row th.col-reg {
  background: #171717;
  box-shadow: 0 -8px 0 0 #171717, inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ex-values-observer-table--adopt th.grp-neon,
.ex-values-observer-table--adopt th.col-neon {
  color: #8fd0ff;
  background: #0d1722;
}

.ex-values-observer-table--adopt thead tr.potion-row th.col-neon {
  background: #0d1722;
  box-shadow: 0 -8px 0 0 #0d1722, inset 0 1px 0 rgba(143, 208, 255, 0.08);
}

.ex-values-observer-table--adopt th.grp-mega,
.ex-values-observer-table--adopt th.col-mega {
  color: #e8d27a;
  background: #19140a;
}

.ex-values-observer-table--adopt thead tr.potion-row th.col-mega {
  background: #19140a;
  box-shadow: 0 -8px 0 0 #19140a, inset 0 1px 0 rgba(232, 210, 122, 0.08);
}

.ex-values-observer-table--adopt thead tr.group-row th.grp-reg {
  box-shadow: 0 1px 0 0 #171717;
}

.ex-values-observer-table--adopt thead tr.group-row th.grp-neon {
  box-shadow: 0 1px 0 0 #0d1722;
}

.ex-values-observer-table--adopt thead tr.group-row th.grp-mega {
  box-shadow: 0 1px 0 0 #19140a;
}

.ex-values-observer-table--adopt td.col-reg {
  background: rgba(255, 255, 255, 0.015);
}

.ex-values-observer-table--adopt td.col-neon {
  background: rgba(100, 180, 255, 0.045);
}

.ex-values-observer-table--adopt td.col-mega {
  background: rgba(232, 210, 122, 0.055);
}

.ex-values-observer-table--adopt td.num {
  min-width: 64px;
  padding: 6px 6px 10px;
}

.ex-values-observer-table--adopt .adopt-obs-val {
  display: block;
  line-height: 1.2;
}

.ex-values-observer-table--adopt .adopt-obs-usd {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #7dff9a;
  opacity: 0.9;
}

.ex-values-observer-table--adopt td.zero .adopt-obs-usd {
  display: none;
}

.ex-cookie-status.ok {
  color: var(--md-accent);
}

.ex-cookie-status.mixed {
  color: var(--md-primary);
}

.ex-cookie-status.bad {
  color: var(--md-error);
}

.ex-cookie-status.empty {
  color: var(--md-text-dim);
}

.ex-secret-masked {
  letter-spacing: 0.08em;
}

@media (max-width: 400px) {
  .ex-metric-grid {
    grid-template-columns: 1fr;
  }

  .ex-metric {
    min-height: 100px;
  }
}

/* Less tax event */
.ex-lt-card {
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(70, 240, 168, 0.08) 0%, transparent 55%),
    var(--md-surface);
}

.ex-lt-headbar {
  align-items: center;
}

.ex-lt-countdown {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(70, 240, 168, 0.35);
  background: rgba(10, 40, 28, 0.55);
  color: #8af0c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ex-lt-prize-inline {
  color: #8af0c8;
  font-weight: 700;
}

.ex-lt-board {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ex-lt-empty,
.ex-lt-soon {
  padding: 28px 16px;
  border: 1px dashed var(--md-outline);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  color: var(--md-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ex-lt-soon {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.ex-lt-soon-tag {
  color: #8af0c8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ex-lt-soon-timer {
  font-size: 24px;
  font-weight: 800;
  color: var(--md-text);
  font-variant-numeric: tabular-nums;
}

.ex-lt-soon-sub b {
  color: var(--md-text);
}

.ex-lt-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(58px, auto) 92px;
  gap: 12px;
  align-items: end;
  padding: 0 2px 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--md-text-dim);
}

.ex-lt-head span:nth-child(3),
.ex-lt-head span:nth-child(4) {
  text-align: right;
}

.ex-lt-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(58px, auto) 92px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--md-outline);
  background: rgba(255, 255, 255, 0.02);
}

.ex-lt-rank-1 {
  border-color: rgba(232, 210, 122, 0.45);
  background: rgba(120, 80, 20, 0.12);
}

.ex-lt-rank-2 {
  border-color: rgba(200, 200, 200, 0.35);
}

.ex-lt-rank-3 {
  border-color: rgba(212, 165, 116, 0.35);
}

.ex-lt-rank {
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  color: #8af0c8;
}

.ex-lt-rank-1 .ex-lt-rank {
  color: #e8d27a;
}

.ex-lt-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ex-lt-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.ex-lt-name {
  font-weight: 700;
  color: var(--md-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.ex-lt-hits {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--md-text-dim);
  text-transform: uppercase;
}

.ex-lt-meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ex-lt-meter-fill {
  display: block;
  height: 100%;
  min-width: 3px;
  background: linear-gradient(90deg, rgba(70, 240, 168, 0.75), rgba(58, 166, 200, 0.55));
}

.ex-lt-rank-1 .ex-lt-meter-fill {
  background: linear-gradient(90deg, #e8d27a, #c9844a);
}

.ex-lt-prize {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border: 1px solid var(--md-outline);
  color: var(--md-text-muted);
}

.ex-lt-prize--1 {
  border-color: rgba(232, 210, 122, 0.55);
  color: #e8d27a;
}

.ex-lt-prize--2 {
  border-color: rgba(200, 200, 200, 0.45);
  color: #c8c8c8;
}

.ex-lt-prize--3 {
  border-color: rgba(212, 165, 116, 0.45);
  color: #d4a574;
}

.ex-lt-amt {
  text-align: right;
  font-weight: 800;
  color: #8af0c8;
  font-variant-numeric: tabular-nums;
}

.ex-lt-rank-1 .ex-lt-amt {
  color: #e8d27a;
}

.ex-lt-history {
  padding: 0 16px 16px;
}

.ex-lt-history-panel {
  margin-top: 10px;
  border: 1px solid var(--md-outline);
  background: rgba(0, 0, 0, 0.2);
  max-height: 280px;
  overflow: auto;
}

.ex-lt-history-week + .ex-lt-history-week {
  border-top: 1px solid var(--md-outline);
}

.ex-lt-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-text-dim);
}
.ex-lt-history-count {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8af0c8;
  white-space: nowrap;
}

.ex-lt-history-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
}
.ex-lt-history-row + .ex-lt-history-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ex-lt-history-medal {
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.ex-lt-history-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ex-lt-history-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.ex-lt-history-place {
  color: var(--md-text-dim);
}

.ex-lt-history-name {
  font-weight: 600;
  color: var(--md-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.ex-lt-history-amt {
  color: #8af0c8;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Hall of retards */
.ex-hor-card {
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 8% 0%, rgba(232, 210, 122, 0.1) 0%, transparent 55%),
    var(--md-surface);
}

.ex-hor-headbar {
  align-items: flex-end;
}

.ex-hor-empty {
  margin: 0 16px 16px;
  padding: 32px 16px;
  text-align: center;
  color: var(--md-text-muted);
  font-size: 12px;
  line-height: 1.5;
  border: 1px dashed var(--md-outline);
  background: rgba(232, 210, 122, 0.04);
}

.ex-hor-empty code {
  color: #e8d27a;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

.ex-hor-stage {
  --ex-hor-card-h: 512px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 0 16px 16px;
  min-width: 0;
  min-height: 280px;
}

.ex-hor-top3 {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
  align-items: flex-start;
}

.ex-hor-king {
  position: relative;
  flex: 0 0 280px;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px 12px;
  border: 2px solid rgba(232, 210, 122, 0.55);
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 210, 122, 0.18) 0%, transparent 62%),
    linear-gradient(180deg, rgba(28, 22, 8, 0.95) 0%, rgba(8, 8, 8, 0.98) 100%);
  text-align: center;
  height: var(--ex-hor-card-h);
  max-height: var(--ex-hor-card-h);
  overflow: hidden;
  box-sizing: border-box;
}

.ex-hor-king-banner {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8d27a;
}

.ex-hor-king-avatar-wrap {
  width: 88px;
  height: 88px;
  margin: 4px auto 0;
  border: 2px solid rgba(232, 210, 122, 0.45);
  overflow: hidden;
  flex-shrink: 0;
}

.ex-hor-king-avatar-wrap img,
.ex-hor-runner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ex-hor-king-name,
.ex-hor-runner-name {
  display: block;
  font-weight: 700;
  color: var(--md-text);
  text-decoration: none;
}

.ex-hor-king-name:hover,
.ex-hor-runner-name:hover {
  color: #e8d27a;
}

.ex-hor-king-amt,
.ex-hor-runner-amt {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
  color: #8af0c8;
}

.ex-hor-king-meta,
.ex-hor-runner-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--md-text-dim);
}

.ex-hor-hitters {
  margin-top: 4px;
  font-size: 11px;
  color: var(--md-text-muted);
}

.ex-hor-hit-sep {
  opacity: 0.6;
}

.ex-hor-loot-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin-top: 6px;
  overflow: hidden;
}

.ex-hor-loot {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 11px;
  max-height: 100%;
  overflow: auto;
}

.ex-hor-loot li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ex-hor-loot-empty {
  font-size: 11px;
  color: var(--md-text-dim);
}

.ex-hor-runners-wrap {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: var(--ex-hor-card-h);
}

.ex-hor-runners {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: var(--ex-hor-card-h);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 210, 122, 0.35) rgba(255, 255, 255, 0.05);
}

.ex-hor-runners::-webkit-scrollbar {
  height: 7px;
}

.ex-hor-runners::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
}

.ex-hor-runners::-webkit-scrollbar-thumb {
  background: rgba(232, 210, 122, 0.32);
  border-radius: 99px;
}

.ex-hor-runner {
  position: relative;
  flex: 0 0 248px;
  width: 248px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 14px 10px;
  border: 1px solid var(--md-outline);
  background: rgba(255, 255, 255, 0.02);
  height: var(--ex-hor-card-h);
  max-height: var(--ex-hor-card-h);
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}

.ex-hor-top3 .ex-hor-runner {
  flex: 0 0 248px;
  width: 248px;
}

.ex-hor-runner--2 {
  border-color: rgba(200, 200, 200, 0.35);
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 200, 216, 0.1) 0%, transparent 58%),
    rgba(255, 255, 255, 0.02);
}

.ex-hor-runner--3 {
  border-color: rgba(212, 165, 116, 0.35);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 137, 90, 0.1) 0%, transparent 58%),
    rgba(255, 255, 255, 0.02);
}

.ex-hor-runner-medal {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 16px;
  line-height: 1;
}

.ex-hor-runner-rank {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--md-text-dim);
  text-transform: uppercase;
}

.ex-hor-runner-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ex-hor-runner-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--md-outline);
  overflow: hidden;
}

.ex-hor-runner-info {
  min-width: 0;
  flex: 1 1 auto;
}

@media (max-width: 1100px) {
  .ex-hor-stage {
    flex-direction: column;
  }

  .ex-hor-runners-wrap {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .ex-hor-top3 {
    flex-direction: column;
    width: 100%;
  }

  .ex-hor-king,
  .ex-hor-top3 .ex-hor-runner {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
  }
}

@media (max-width: 860px) {
  .ex-lt-head,
  .ex-lt-row {
    grid-template-columns: 30px minmax(0, 1fr) auto 72px;
    gap: 8px;
  }
}

/* —— Pay wallets / Admin wallet editor —— */
.ex-pay-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ex-line) 80%, transparent);
  background: color-mix(in srgb, var(--ex-panel) 88%, transparent);
}

.ex-pay-balance.is-owe {
  border-color: color-mix(in srgb, #ff5a6a 45%, var(--ex-line));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #ff5a6a 14%, var(--ex-panel)),
    var(--ex-panel)
  );
}

.ex-pay-balance.is-overpaid {
  border-color: color-mix(in srgb, #3ecf8e 40%, var(--ex-line));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #3ecf8e 12%, var(--ex-panel)),
    var(--ex-panel)
  );
}

.ex-pay-balance-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.ex-pay-balance-amount {
  display: block;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ex-pay-balance.is-owe .ex-pay-balance-amount {
  color: #ff6b78;
}

.ex-pay-balance.is-overpaid .ex-pay-balance-amount {
  color: #3ecf8e;
}

.ex-pay-game-block {
  margin: 0;
}

.ex-pay-game-block--foot {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid #242424;
}

.ex-pay-game-block--foot .ex-pay-panel-title {
  margin-bottom: 6px;
}

.ex-pay-game-picker {
  display: flex;
  gap: 6px;
  width: 100%;
}

.ex-pay-game-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #0b0b0b;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ex-pay-game-tile:hover {
  border-color: #555;
  background: #101010;
}

.ex-pay-game-tile.is-on {
  border-color: #70ff99;
  background: color-mix(in srgb, #70ff99 8%, #0b0b0b);
}

.ex-pay-game-tile.is-owe {
  border-color: color-mix(in srgb, #ff5a6a 40%, #2a2a2a);
}

.ex-pay-game-tile.is-owe.is-on {
  border-color: #ff5a6a;
  background: color-mix(in srgb, #ff5a6a 10%, #0b0b0b);
}

.ex-pay-game-tile.is-overpaid {
  border-color: color-mix(in srgb, #3ecf8e 35%, #2a2a2a);
}

.ex-pay-game-tile-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}

.ex-pay-game-tile-copy {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.ex-pay-game-tile-copy strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.ex-pay-game-tile-copy small {
  font-size: 10px;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-pay-game-tile .ex-pay-selected-mark {
  display: none;
}

.ex-pay-fill-due {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--ex-accent, #5b8cff) 85%, #fff);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.ex-pay-fill-due:hover {
  text-decoration: underline;
}

.ex-pay-game-hint {
  margin: 10px 0 0;
  font-size: 12px;
  opacity: 0.72;
}

.ex-invoice-game {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  opacity: 0.72;
}

.ex-pay-balance p {
  margin: 0;
  max-width: 34ch;
  color: var(--ex-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ex-pay-wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ex-pay-wallet-card .ex-card-head {
  margin-bottom: 10px;
}

.ex-pay-network-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ex-pay-network-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ex-bg) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--ex-line) 70%, transparent);
}

.ex-pay-network-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ex-pay-network-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.ex-pay-network-address {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.35;
  word-break: break-all;
  color: var(--ex-text);
}

.ex-pay-tracking-card {
  margin-top: 4px;
}

.ex-pay-create {
  margin-bottom: 18px;
}

.ex-pay-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.ex-pay-step-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}

.ex-pay-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}

.ex-pay-asset-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 12px 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ex-line) 80%, transparent);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--ex-bg) 35%, transparent),
    color-mix(in srgb, var(--ex-panel) 80%, transparent)
  );
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.ex-pay-asset-tile:hover {
  border-color: color-mix(in srgb, #3ecf8e 40%, var(--ex-line));
  transform: translateY(-1px);
}

.ex-pay-asset-tile.is-on {
  border-color: color-mix(in srgb, #3ecf8e 60%, var(--ex-line));
  background: linear-gradient(
    160deg,
    color-mix(in srgb, #3ecf8e 16%, var(--ex-panel)),
    var(--ex-panel)
  );
  box-shadow: 0 0 0 1px color-mix(in srgb, #3ecf8e 25%, transparent);
}

.ex-pay-asset-tile strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.ex-pay-asset-tile span {
  font-size: 0.72rem;
  opacity: 0.65;
}

.ex-pay-network-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ex-pay-net-chip {
  min-width: 72px;
  justify-content: center;
}

.ex-pay-create-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ex-pay-amount-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ex-pay-amount-input {
  flex: 1;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.ex-pay-create-submit {
  width: 100%;
  margin-top: 6px;
  min-height: 46px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.ex-pay-empty {
  opacity: 0.85;
}

.ex-section-title {
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.ex-invoice-section {
  margin-bottom: 18px;
}

.ex-invoice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.ex-invoice-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.ex-invoice-card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ex-invoice-card-brand > .ex-pay-asset-icon {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  font-size: 24px;
}

.ex-invoice-card.is-focus {
  border-color: color-mix(in srgb, #3ecf8e 35%, var(--ex-line));
}

.ex-invoice-card.is-live {
  border-color: color-mix(in srgb, #5ad0ff 40%, var(--ex-line));
  background: linear-gradient(
    145deg,
    color-mix(in srgb, #5ad0ff 8%, var(--ex-panel)),
    var(--ex-panel)
  );
}

.ex-invoice-card.is-paid {
  border-color: color-mix(in srgb, #3ecf8e 45%, var(--ex-line));
}

.ex-invoice-card.is-dead {
  opacity: 0.72;
}

.ex-invoice-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ex-invoice-card-titles {
  min-width: 0;
}

.ex-invoice-card-titles h3 {
  margin: 5px 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.ex-invoice-card-titles h3 span {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
  opacity: 0.9;
  background: color-mix(in srgb, var(--ex-bg) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--ex-line) 70%, transparent);
}

.ex-invoice-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 16px 14px 18px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, #3ecf8e 12%, transparent), transparent 55%),
    color-mix(in srgb, var(--ex-bg) 70%, #111);
  border: 1px solid color-mix(in srgb, #3ecf8e 32%, var(--ex-line));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
  border-left: 3px solid #3ecf8e;
}

.ex-invoice-hero-usd {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #70ff99;
  text-shadow: 0 0 18px rgb(62 207 142 / 22%);
  font-variant-numeric: tabular-nums;
  opacity: 1;
}

.ex-invoice-hero-crypto {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.ex-invoice-hero-crypto strong {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #70ff99;
  text-shadow: 0 0 18px rgb(62 207 142 / 22%);
}

.ex-invoice-hero-crypto span {
  font-size: 0.85rem;
  font-weight: 800;
  color: #3ecf8e;
  opacity: 0.9;
}

.ex-invoice-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--ex-line) 72%, transparent);
  background: color-mix(in srgb, var(--ex-bg) 42%, transparent);
}

.ex-invoice-panel-label {
  color: #d6d6d6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ex-invoice-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8d27a;
}

.ex-invoice-card.is-live .ex-invoice-status {
  color: #5ad0ff;
}

.ex-invoice-card.is-paid .ex-invoice-status {
  color: #3ecf8e;
}

.ex-invoice-card.is-dead .ex-invoice-status {
  color: var(--ex-muted);
}

.ex-invoice-timer {
  min-width: 124px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: right;
  background: color-mix(in srgb, var(--ex-bg) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--ex-line) 70%, transparent);
}

.ex-invoice-timer-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #cfcfcf;
  opacity: 1;
}

.ex-invoice-timer-value {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8d27a;
}

.ex-invoice-timer.is-wait .ex-invoice-timer-value {
  color: #5ad0ff;
  display: block;
  text-align: right;
}

.ex-invoice-timer.is-wait .ex-invoice-timer-value em {
  font-style: normal;
  font-size: inherit;
  opacity: 1;
}

.ex-invoice-inf {
  display: none;
}

.ex-invoice-timer.is-expired .ex-invoice-timer-value {
  color: #ff6b78;
}

.ex-invoice-extend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, #e8d27a 45%, var(--ex-line));
  border-radius: 0;
  background: color-mix(in srgb, #e8d27a 12%, transparent);
  color: #e8d27a;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.ex-invoice-extend:hover:not(:disabled) {
  background: color-mix(in srgb, #e8d27a 22%, transparent);
  border-color: color-mix(in srgb, #e8d27a 70%, var(--ex-line));
}

.ex-invoice-extend:disabled,
.ex-invoice-extend.is-cd {
  cursor: not-allowed;
  opacity: 0.55;
  color: #cfcfcf;
  border-color: color-mix(in srgb, var(--ex-line) 80%, transparent);
  background: color-mix(in srgb, var(--ex-bg) 50%, transparent);
}

@keyframes ex-invoice-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.ex-invoice-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ex-pay-copy {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ex-line) 70%, transparent);
  background: color-mix(in srgb, var(--ex-bg) 55%, transparent);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.ex-pay-copy:hover {
  border-color: color-mix(in srgb, #3ecf8e 45%, var(--ex-line));
  background: color-mix(in srgb, #3ecf8e 8%, var(--ex-bg));
}

.ex-pay-copy:active {
  transform: scale(0.992);
}

.ex-pay-copy.is-accent {
  border-color: color-mix(in srgb, #3ecf8e 40%, var(--ex-line));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #3ecf8e 12%, var(--ex-bg)),
    color-mix(in srgb, var(--ex-bg) 70%, transparent)
  );
}

.ex-pay-copy.is-accent:hover {
  border-color: color-mix(in srgb, #3ecf8e 60%, var(--ex-line));
}

.ex-pay-copy.is-copied {
  border-color: color-mix(in srgb, #3ecf8e 60%, var(--ex-line));
  background: color-mix(in srgb, #3ecf8e 14%, var(--ex-bg));
}

.ex-pay-copy.is-copy-fail {
  border-color: color-mix(in srgb, #ff6b78 55%, var(--ex-line));
}

.ex-pay-copy-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfcfcf;
  opacity: 1;
}

.ex-pay-copy-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-all;
  color: #f2f2f2;
}

.ex-pay-copy-action {
  flex-shrink: 0;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--ex-panel) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--ex-line) 75%, transparent);
}

.ex-pay-copy.is-copied .ex-pay-copy-action {
  color: #3ecf8e;
  border-color: color-mix(in srgb, #3ecf8e 45%, var(--ex-line));
}

.ex-invoice-hint {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ex-muted);
  background: color-mix(in srgb, var(--ex-bg) 45%, transparent);
}

.ex-invoice-hint em {
  font-style: normal;
  color: #e8d27a;
}

.ex-invoice-row,
.ex-invoice-tx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label action"
    "value action";
  gap: 4px 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border-radius: 10px;
  background: #0a0a0a;
  border: 1px solid #2f2f2f;
}

.ex-invoice-row span,
.ex-invoice-tx span,
.ex-invoice-tx .ex-pay-copy-label {
  grid-area: label;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cfcfcf;
  opacity: 1;
}

.ex-invoice-row code,
.ex-invoice-tx code,
.ex-invoice-tx .ex-pay-copy-value {
  grid-area: value;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  word-break: break-all;
  color: #f2f2f2;
}

.ex-invoice-tx .ex-pay-copy-action,
.ex-invoice-tx > .ex-mini-button {
  grid-area: action;
  align-self: center;
  text-decoration: none;
}

.ex-invoice-tx .ex-pay-copy-action.is-static {
  opacity: 0.55;
  pointer-events: none;
}

.ex-invoice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ex-invoice-actions .ex-mini-button.is-refresh {
  border-color: rgba(58, 168, 255, 0.45);
  color: #9fd6ff;
}

.ex-invoice-actions .ex-mini-button.is-refresh:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ex-invoice-conf.is-idle {
  opacity: 0.7;
}

.ex-invoice-conf span {
  font-size: 0.8rem;
  opacity: 0.75;
}

.ex-invoice-conf-bar {
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ex-line) 70%, transparent);
  overflow: hidden;
}

.ex-invoice-conf-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3ecf8e, #7dffb3);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.ex-invoice-card.is-live .ex-invoice-conf-bar i {
  background: linear-gradient(90deg, #3aa8ff, #7de0ff);
}

@media (max-width: 720px) {
  .ex-pay-copy,
  .ex-invoice-row,
  .ex-invoice-tx {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "value"
      "action";
  }

  .ex-pay-copy-action,
  .ex-invoice-tx .ex-pay-copy-action {
    justify-self: start;
  }

  .ex-invoice-card-head {
    flex-direction: column;
  }

  .ex-invoice-timer {
    width: 100%;
    text-align: left;
  }

  .ex-invoice-timer.is-wait .ex-invoice-timer-value {
    justify-content: flex-start;
  }
}

.ex-wallet-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: none;
}

.ex-wallet-editor-intro {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #242424;
  background: #0b0b0b;
  color: #9a9a9a;
  font-size: 13px;
  line-height: 1.45;
}

.ex-wallet-editor-intro p {
  margin: 0;
}

.ex-wallet-editor-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.ex-wallet-group {
  margin: 0;
  padding: 14px;
  border: 1px solid #242424;
  background: #0a0a0a;
}

.ex-wallet-group-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1f1f1f;
}

.ex-wallet-group-head .ex-pay-asset-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.ex-wallet-group-titles {
  min-width: 0;
}

.ex-wallet-group-titles strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ex-wallet-group-titles span {
  display: block;
  margin-top: 2px;
  color: #8f8f8f;
  font-size: 12px;
}

.ex-wallet-group-count {
  color: #707070;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ex-wallet-network-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.ex-wallet-network-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid #222;
  border-radius: 10px;
  background: #0d0d0d;
  cursor: text;
}

.ex-wallet-network-row.is-filled {
  border-color: color-mix(in srgb, #3ecf8e 28%, #2a2a2a);
  background: color-mix(in srgb, #3ecf8e 5%, #0d0d0d);
}

.ex-wallet-net-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ex-wallet-net-chip strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ex-wallet-net-chip span {
  color: #8f8f8f;
  font-size: 11px;
}

.ex-wallet-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}

.ex-wallet-net-state {
  min-width: 34px;
  color: #666;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.ex-wallet-network-row.is-filled .ex-wallet-net-state {
  color: #70ff99;
}

.ex-wallet-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  position: sticky;
  bottom: 12px;
  padding-top: 4px;
}

.ex-inviter-wallets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.ex-inviter-wallet-group {
  height: 100%;
}

.ex-inviter-wallet-row {
  display: grid;
  grid-template-columns: minmax(92px, 130px) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #222;
  border-radius: 10px;
  background: #0d0d0d;
}

.ex-inviter-wallet-address {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--md-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

@media (max-width: 720px) {
  .ex-inviter-wallet-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ex-inviter-wallet-row .ex-wallet-net-chip {
    grid-column: 1 / -1;
  }
}

/* Payment UI v4 */
.ex-pay-shell {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.ex-pay-shell .ex-pay-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 13px 16px;
  border-radius: 10px;
}

.ex-pay-shell .ex-pay-balance-kicker {
  margin: 0;
}

.ex-pay-shell .ex-pay-balance-amount {
  font-size: 1.08rem;
}

.ex-pay-create {
  margin: 0 auto 22px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.ex-pay-create-head,
.ex-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ex-pay-create-head {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #242424;
}

.ex-pay-create-head h2,
.ex-section-heading h2 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ex-pay-create-head > span,
.ex-section-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--ex-line) 82%, transparent);
  border-radius: 999px;
  color: var(--ex-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.ex-pay-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
}

.ex-pay-method-panel,
.ex-pay-amount-panel {
  min-width: 0;
  padding: 14px;
}

.ex-pay-amount-panel {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #242424;
  background: #0a0a0a;
}

.ex-pay-panel-title {
  margin-bottom: 8px;
  color: var(--ex-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ex-pay-shell .ex-pay-asset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ex-pay-shell .ex-pay-asset-tile {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 6px;
  padding: 5px 9px 5px 5px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  text-align: left;
  background: #0b0b0b;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ex-pay-shell .ex-pay-asset-tile:hover {
  border-color: #555;
  background: #101010;
  transform: none;
}

.ex-pay-asset-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  overflow: hidden;
  border-radius: 50%;
  background: #161616;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.ex-pay-asset-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ex-pay-asset-icon.is-usdt,
.ex-pay-asset-icon.is-usdc,
.ex-pay-asset-icon.is-btc,
.ex-pay-asset-icon.is-eth,
.ex-pay-asset-icon.is-ltc,
.ex-pay-asset-icon.is-sol,
.ex-pay-asset-icon.is-trx {
  background: transparent;
  box-shadow: none;
}

.ex-pay-asset-copy {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-pay-shell .ex-pay-asset-copy strong {
  font-size: 0.72rem;
  line-height: 1;
}

.ex-pay-shell .ex-pay-asset-copy small {
  display: none;
}

.ex-pay-selected-mark {
  position: absolute;
  top: 7px;
  right: 7px;
  display: none;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #70ff99;
  color: #071109;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.ex-pay-shell .ex-pay-asset-tile.is-on {
  border: 1px solid #70ff99;
  padding: 5px 9px 5px 5px;
  background: #0d1710;
  box-shadow: 0 0 0 1px rgb(112 255 153 / 18%);
}

.ex-pay-shell .ex-pay-asset-tile.is-on .ex-pay-selected-mark {
  display: none;
}

.ex-pay-shell .ex-pay-asset-tile.is-on .ex-pay-asset-icon {
  box-shadow: none;
}

.ex-pay-method-panel > .ex-pay-control {
  margin-top: 8px;
}

.ex-pay-control {
  margin-top: 0;
}

.ex-pay-control > label {
  display: block;
  margin-bottom: 8px;
  color: var(--ex-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ex-pay-shell .ex-pay-network-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-pay-shell .ex-pay-net-chip {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #0b0b0b;
  text-align: left;
}

.ex-pay-shell .ex-pay-net-chip strong {
  display: block;
  font-size: 0.72rem;
  line-height: 1;
}

.ex-pay-shell .ex-pay-net-chip span {
  display: block;
  color: var(--ex-muted);
  font-size: 0.58rem;
  line-height: 1;
}

.ex-pay-shell .ex-pay-net-chip.on {
  border: 1px solid #70ff99;
  padding: 5px 9px;
  background: #0d1710;
  color: inherit;
  box-shadow: 0 0 0 1px rgb(112 255 153 / 14%);
}

.ex-pay-shell .ex-pay-net-chip.on span {
  color: var(--ex-muted);
}

.ex-pay-amount-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ex-pay-amount-head label {
  color: var(--ex-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ex-pay-amount-head span {
  color: #e8d27a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.ex-pay-amount-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.42fr);
  overflow: hidden;
  border: 1px solid #343434;
  border-radius: 11px;
  background: #080808;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ex-pay-amount-box:focus-within {
  border-color: #70ff99;
  box-shadow: 0 0 0 3px rgb(112 255 153 / 10%);
}

.ex-pay-amount-entry {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 64px;
}

.ex-pay-currency-prefix {
  display: flex;
  align-items: center;
  padding-left: 18px;
  color: #70ff99;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.55rem;
  font-weight: 700;
}

.ex-pay-shell .ex-pay-amount-input {
  width: 100%;
  min-width: 0;
  height: 64px;
  padding: 0 14px 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ex-text);
  box-shadow: none;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.ex-pay-shell .ex-pay-amount-input::-webkit-inner-spin-button,
.ex-pay-shell .ex-pay-amount-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.ex-pay-amount-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 76px;
  padding: 12px 16px;
  border-left: 1px solid #2a2a2a;
  background: #0d0d0d;
}

.ex-pay-amount-result span {
  margin-bottom: 6px;
  color: var(--ex-muted);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ex-pay-amount-result strong {
  overflow: hidden;
  color: #e8d27a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-pay-amount-panel .ex-pay-control {
  margin-top: 0;
}

.ex-pay-amount-panel .ex-pay-amount-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.ex-pay-amount-panel .ex-pay-amount-box {
  grid-template-columns: 1fr;
}

.ex-pay-amount-panel .ex-pay-amount-entry {
  min-height: 88px;
}

.ex-pay-amount-panel .ex-pay-amount-input {
  height: 88px;
}

.ex-pay-amount-panel .ex-pay-amount-result {
  min-height: 65px;
  border-top: 1px solid #2a2a2a;
  border-left: 0;
}

.ex-pay-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
  margin-bottom: 18px;
}

.ex-pay-presets button {
  min-width: 58px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  background: #0b0b0b;
  color: var(--ex-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.65rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ex-pay-presets button:hover,
.ex-pay-presets button.is-on {
  border-color: #70ff99;
  background: #0d1710;
  color: #70ff99;
}

.ex-pay-shell .ex-pay-create-submit {
  min-height: 50px;
  margin-top: auto;
  border-radius: 10px;
  font-size: 0.8rem;
}

.ex-invoice-active {
  margin: 0 0 22px;
}

.ex-invoice-active > .ex-section-heading {
  margin: 0 0 9px;
}

.ex-pay-shell .ex-invoice-grid {
  display: block;
}

.ex-pay-shell .ex-invoice-card {
  width: 100%;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #0c0c0c;
  border: 1px solid #2a2a2a;
}

.ex-pay-shell .ex-invoice-card.is-focus {
  border-color: color-mix(in srgb, #e8d27a 30%, #2a2a2a);
}

.ex-pay-shell .ex-invoice-card-head {
  padding: 0 0 12px;
  border-bottom: 1px solid #232323;
}

.ex-pay-shell .ex-invoice-card-titles h3 {
  font-size: 1rem;
}

.ex-pay-shell .ex-invoice-hero {
  padding: 14px 16px 14px 18px;
  border-radius: 10px;
}

.ex-pay-shell .ex-invoice-hero-crypto strong,
.ex-pay-shell .ex-invoice-hero-usd {
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.ex-pay-shell .ex-invoice-panel {
  gap: 9px;
  padding: 11px;
  border-color: #2a2a2a;
  background: #101010;
}

.ex-pay-shell .ex-invoice-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ex-pay-shell .ex-invoice-tx {
  grid-column: 1 / -1;
}

.ex-pay-shell .ex-pay-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label action"
    "value action";
  gap: 4px 10px;
  min-height: 72px;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid #2f2f2f;
  background: #0a0a0a;
}

.ex-pay-shell .ex-pay-copy.is-accent {
  border-color: color-mix(in srgb, #3ecf8e 45%, #2f2f2f);
  background: linear-gradient(135deg, rgb(62 207 142 / 10%), #0a0a0a 70%);
}

.ex-pay-shell .ex-pay-copy-label {
  grid-area: label;
  font-size: 0.72rem;
  font-weight: 800;
  color: #cfcfcf;
  letter-spacing: 0.08em;
}

.ex-pay-shell .ex-pay-copy-value {
  grid-area: value;
  font-weight: 700;
  color: #f4f4f4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-pay-shell .ex-invoice-tx .ex-pay-copy-value {
  white-space: normal;
  word-break: break-all;
}

.ex-pay-shell .ex-pay-copy.is-accent .ex-pay-copy-value {
  color: #70ff99;
  font-weight: 800;
}

.ex-pay-shell .ex-pay-copy-action {
  grid-area: action;
  align-self: center;
  min-width: 64px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #161616;
  border: 1px solid #3a3a3a;
  font-weight: 800;
}

.ex-chain-monitor {
  padding: 14px 15px;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  background: #101010;
  box-shadow: inset 0 0 0 1px #1c1c1c;
}

.ex-chain-monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.ex-chain-monitor-head > span {
  color: #cfcfcf;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-chain-monitor-head > strong {
  font-size: 0.78rem;
}

.ex-chain-monitor-head > strong.is-success {
  color: #70ff99;
}

.ex-chain-monitor-head > strong.is-found {
  color: #6dcfff;
}

.ex-chain-monitor-head > strong.is-missing {
  color: #e8d27a;
}

.ex-chain-monitor-head > strong.is-error {
  color: #ff6877;
}

.ex-chain-monitor-head > strong.is-queued {
  color: var(--ex-muted);
}

.ex-chain-monitor-stats {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.ex-chain-monitor-stats > div {
  min-width: 0;
}

.ex-chain-monitor-stats span {
  display: block;
  margin-bottom: 4px;
  color: #c8c8c8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ex-chain-monitor-stats strong {
  display: block;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-chain-monitor .ex-invoice-conf-bar {
  height: 5px;
}

.ex-pay-history {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.ex-pay-history > .ex-section-heading {
  padding: 15px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--ex-line) 68%, transparent);
}

.ex-pay-history-list {
  display: flex;
  flex-direction: column;
}

.ex-pay-history-row {
  display: grid;
  grid-template-columns: minmax(80px, 0.7fr) minmax(130px, 1.3fr) 90px 110px 80px 28px;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 10px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--ex-line) 54%, transparent);
  font-size: 0.74rem;
}

.ex-pay-history-row:last-child {
  border-bottom: 0;
}

.ex-pay-history-asset {
  font-weight: 700;
}

.ex-pay-history-asset small {
  display: block;
  margin-top: 3px;
  color: var(--ex-muted);
  font-size: 0.58rem;
}

.ex-pay-history-status {
  font-weight: 700;
  text-transform: uppercase;
}

.ex-pay-history-status.is-paid {
  color: #70ff99;
}

.ex-pay-history-status.is-dead {
  color: var(--ex-muted);
}

.ex-pay-history-row time {
  color: var(--ex-muted);
}

.ex-pay-history-row a {
  color: #6dcfff;
  font-weight: 700;
  text-decoration: none;
}

/* Full-width payment workspace */
.ex-pay-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.ex-pay-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.75fr);
  gap: 14px;
  align-items: stretch;
  width: 100%;
}

.ex-pay-create-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ex-pay-create-column .ex-pay-create {
  width: 100%;
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ex-pay-create-column .ex-pay-checkout-grid {
  grid-template-columns: 1fr;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.ex-pay-create-column .ex-pay-amount-panel {
  flex: 1 1 auto;
  border-top: 1px solid #242424;
  border-left: 0;
  display: flex;
  flex-direction: column;
}

.ex-pay-create-column .ex-pay-amount-panel .ex-pay-amount-head {
  align-items: center;
  flex-direction: row;
}

.ex-pay-create-column .ex-pay-amount-panel .ex-pay-amount-box {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr);
}

.ex-pay-create-column .ex-pay-amount-panel .ex-pay-amount-result {
  min-height: 64px;
  border-top: 0;
  border-left: 1px solid #2a2a2a;
}

.ex-pay-create-column .ex-pay-create-submit {
  margin-top: 12px;
}

.ex-pay-create-column .ex-pay-game-block--foot {
  margin-top: auto;
}

.ex-pay-shell .ex-pay-create-head h2,
.ex-pay-invoice-browser-head h2 {
  font-size: 16px;
}


.ex-pay-shell .ex-pay-panel-title,
.ex-pay-invoice-browser-group > h3 {
  font-size: 12px;
}

.ex-pay-shell .ex-pay-asset-copy strong {
  font-size: 12px;
}

.ex-pay-shell .ex-pay-asset-copy small {
  display: none;
}

.ex-pay-shell .ex-pay-control > label,
.ex-pay-shell .ex-pay-amount-head label {
  font-size: 12px;
}

.ex-pay-shell .ex-pay-net-chip strong {
  font-size: 13px;
}

.ex-pay-shell .ex-pay-net-chip span {
  font-size: 10px;
}

.ex-pay-shell .ex-pay-amount-head span {
  font-size: 12px;
}

.ex-pay-shell .ex-pay-amount-input {
  font-size: clamp(26px, 2.2vw, 34px);
}

.ex-pay-shell .ex-pay-amount-result span {
  font-size: 11px;
}

.ex-pay-shell .ex-pay-amount-result strong {
  font-size: 14px;
}

.ex-pay-shell .ex-pay-presets button {
  min-width: 66px;
  height: 36px;
  font-size: 12px;
}

.ex-pay-shell .ex-pay-create-submit {
  min-height: 46px;
  font-size: 14px;
  transition: filter 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
}

.ex-pay-shell .ex-pay-create-submit:not(:disabled):hover {
  filter: brightness(1.08);
}

.ex-pay-shell .ex-pay-create-submit:not(:disabled):active {
  transform: translateY(1px);
}

.ex-pay-shell .ex-pay-create-submit.is-loading {
  cursor: wait;
  opacity: 0.78;
}

.ex-pay-shell .ex-pay-create-submit:disabled:not(.is-loading) {
  border-color: #2b2b2b;
  background: #202020;
  color: #777;
  cursor: not-allowed;
  filter: none;
}

.ex-pay-invoice-browser {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  min-height: 100%;
  max-height: calc(100dvh - 140px);
  align-self: stretch;
  padding: 0;
  overflow: hidden;
}

.ex-pay-invoice-browser-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #242424;
}

.ex-pay-invoice-browser-head h2 {
  margin: 0;
  text-transform: uppercase;
}

.ex-pay-invoice-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
}

.ex-pay-invoice-tab {
  appearance: none;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9a9a9a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.ex-pay-invoice-tab:hover {
  color: #e8e8e8;
}

.ex-pay-invoice-tab.is-on {
  background: #161616;
  color: #70ff99;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #3ecf8e 35%, #2a2a2a);
}

.ex-pay-invoice-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ex-pay-invoice-browse-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(140px, 1.1fr) auto auto;
  align-items: center;
  gap: 12px 16px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #2f2f2f;
  border-radius: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, #3ecf8e 7%, transparent), transparent 48%),
    #0b0b0b;
}

.ex-pay-invoice-browse-row:last-child {
  margin-bottom: 0;
}

.ex-pay-invoice-browse-row.is-paid {
  border-color: color-mix(in srgb, #3ecf8e 35%, #2f2f2f);
  border-left: 3px solid #70ff99;
}

.ex-pay-invoice-browse-row.is-dead {
  border-left: 3px solid #555;
  background: #0b0b0b;
  opacity: 0.88;
}

.ex-pay-invoice-browse-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ex-pay-invoice-browse-row > .ex-pay-asset-icon,
.ex-pay-invoice-browse-brand > .ex-pay-asset-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 18px;
}

.ex-pay-invoice-browse-titles {
  min-width: 0;
}

.ex-pay-invoice-browse-titles strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.ex-pay-invoice-browse-titles em {
  font-style: normal;
  font-weight: 700;
  color: #9a9a9a;
  font-size: 0.82em;
}

.ex-pay-invoice-browse-titles time {
  display: block;
  margin-top: 5px;
  color: #a8a8a8;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ex-pay-invoice-browse-amounts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ex-pay-invoice-browse-usd {
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #70ff99;
  text-shadow: 0 0 16px rgb(62 207 142 / 18%);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ex-pay-invoice-browse-crypto {
  color: #9adfb4;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-pay-invoice-browse-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.ex-pay-invoice-browse-game,
.ex-pay-invoice-browse-conf {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #333;
  background: #121212;
  color: #d8d8d8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ex-pay-invoice-browse-conf {
  color: #b5b5b5;
}

.ex-pay-invoice-browse-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  flex-shrink: 0;
  justify-self: end;
}

.ex-pay-invoice-browse-status {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 0;
  border: 1px solid #333;
  color: #9a9a9a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ex-pay-invoice-browse-row.is-paid .ex-pay-invoice-browse-status {
  color: #70ff99;
  border-color: color-mix(in srgb, #3ecf8e 45%, #333);
  background: rgb(62 207 142 / 10%);
}

.ex-pay-invoice-browse-row.is-dead .ex-pay-invoice-browse-status {
  color: #b0b0b0;
}

.ex-pay-invoice-browse-tx,
.ex-pay-invoice-browse-side a {
  color: #6dcfff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ex-pay-invoice-browse-tx:hover,
.ex-pay-invoice-browse-side a:hover {
  border-bottom-color: color-mix(in srgb, #6dcfff 55%, transparent);
}

/* legacy one-line history markup (if any cached HTML) */
.ex-pay-invoice-browse-main {
  min-width: 0;
}

.ex-pay-invoice-browse-main strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.ex-pay-invoice-browse-main strong em {
  font-style: normal;
  font-weight: 700;
  color: #9a9a9a;
  font-size: 0.78em;
}

.ex-pay-invoice-browse-main strong > span {
  font-weight: 600;
  color: #8f8f8f;
  font-size: 11px;
}

.ex-pay-invoice-browse-amount-line {
  display: block;
  margin-top: 2px;
  color: #bdbdbd;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-pay-invoice-browser-scroll {
  min-height: 0;
  flex: 1 1 auto;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #3d3d3d #101010;
  scrollbar-width: thin;
}

.ex-pay-invoice-browser-group + .ex-pay-invoice-browser-group {
  margin-top: 18px;
}

.ex-pay-invoice-browser-group > h3 {
  margin: 0 0 9px;
  color: var(--ex-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ex-pay-invoice-browser .ex-invoice-card {
  margin: 0 0 10px;
  padding: 16px;
}

.ex-pay-invoice-browser .ex-invoice-rows {
  grid-template-columns: 1fr;
}

.ex-pay-invoice-browser .ex-pay-copy-value {
  white-space: normal;
}

.ex-pay-invoice-browser .ex-invoice-status {
  font-size: 11px;
}

.ex-pay-invoice-browser .ex-invoice-card-titles h3 {
  font-size: 15px;
}

.ex-pay-invoice-browser .ex-invoice-timer-label,
.ex-pay-invoice-browser .ex-pay-copy-label,
.ex-pay-invoice-browser .ex-chain-monitor-stats span,
.ex-pay-invoice-browser .ex-chain-monitor-head > span,
.ex-pay-invoice-browser .ex-invoice-panel-label {
  font-size: 11px;
  font-weight: 800;
  color: #cfcfcf;
  opacity: 1;
}

.ex-pay-invoice-browser .ex-pay-copy-value,
.ex-pay-invoice-browser .ex-chain-monitor-stats strong,
.ex-pay-invoice-browser .ex-chain-monitor-head > strong {
  font-size: 13px;
  font-weight: 700;
}

.ex-pay-invoice-browser .ex-pay-copy.is-accent .ex-pay-copy-value {
  color: #70ff99;
  font-weight: 800;
}

.ex-pay-invoice-browser-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--ex-muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .ex-pay-workspace {
    grid-template-columns: 1fr;
  }

  .ex-pay-invoice-browser {
    position: static;
    height: auto;
    min-height: 0;
    max-height: min(70dvh, 520px);
  }
}

@media (max-width: 720px) {
  .ex-pay-shell {
    padding-bottom: 180px;
  }

  .ex-pay-game-picker {
    flex-wrap: wrap;
  }

  .ex-pay-checkout-grid {
    grid-template-columns: 1fr;
  }

  .ex-pay-invoice-browse-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .ex-pay-invoice-browse-brand {
    grid-column: 1 / 2;
  }

  .ex-pay-invoice-browse-side {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .ex-pay-invoice-browse-amounts {
    grid-column: 1 / -1;
  }

  .ex-pay-invoice-browse-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ex-pay-method-panel,
  .ex-pay-amount-panel {
    padding: 16px;
  }

  .ex-pay-amount-panel {
    border-top: 1px solid #242424;
    border-left: 0;
  }

  .ex-pay-create-column .ex-pay-amount-panel .ex-pay-amount-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ex-pay-create-column .ex-pay-amount-panel .ex-pay-amount-box {
    grid-template-columns: 1fr;
  }

  .ex-pay-create-column .ex-pay-amount-panel .ex-pay-amount-result {
    min-height: 65px;
    border-top: 1px solid #2a2a2a;
    border-left: 0;
  }

  .ex-pay-invoice-browser {
    height: auto;
    min-height: 0;
    max-height: min(65dvh, 480px);
  }

  .ex-pay-shell .ex-pay-asset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  .ex-pay-shell .ex-pay-asset-tile {
    flex: 0 0 auto;
    min-height: 0;
  }

  .ex-pay-shell .ex-pay-network-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ex-pay-amount-box {
    grid-template-columns: 1fr;
  }

  .ex-pay-amount-result {
    min-height: 60px;
    border-top: 1px solid #2a2a2a;
    border-left: 0;
  }

  .ex-pay-amount-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .ex-pay-shell .ex-invoice-rows,
  .ex-chain-monitor-stats {
    grid-template-columns: 1fr;
  }

  .ex-pay-history-row {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .ex-pay-history-row > :nth-child(3),
  .ex-pay-history-row > :nth-child(5),
  .ex-pay-history-row > :nth-child(6) {
    display: none;
  }

  .ex-pay-shell .ex-pay-balance {
    align-items: flex-start;
    flex-direction: column;
  }

  .ex-wallet-group-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ex-wallet-group-count {
    grid-column: 2;
  }

  .ex-wallet-network-row {
    grid-template-columns: 1fr auto;
  }

  .ex-wallet-net-chip {
    grid-column: 1 / -1;
  }

  .ex-pay-network-row {
    flex-direction: column;
  }

  .ex-pay-network-row .ex-mini-button {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Extension keys (Wheel of Names / Dice) */
.ex-ext-keys-create {
  display: flex;
  gap: 8px;
  padding: 0 18px 14px;
}
.ex-ext-keys-create .ex-input {
  flex: 1 1 auto;
  min-width: 0;
}
.ex-ext-keys-wrap {
  margin: 0 18px 18px;
  overflow-x: auto;
  max-width: calc(100% - 36px);
}
.ex-ext-key-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
}
.ex-ext-rename-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.ex-ext-rename-wrap .ex-input {
  flex: 1 1 auto;
  min-width: 90px;
  padding: 4px 8px;
  min-height: 0;
}

/* ---- Public shop: the storefront a visitor sees with no account ----- */

.ex-btn.ex-login-shop {
  width: 100%;
  margin-top: 18px;
}

.ex-edit-anon {
  margin-top: 12px;
  font-weight: 500;
  color: var(--md-text-muted);
}

.ex-edit-anon input {
  accent-color: #c084fc;
}

.ex-shop-screen {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
  padding: 0;
}

.ex-shop-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--md-outline);
  background: var(--md-surface);
}

.ex-shop-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* The login card gives this mark a bottom margin; in the bar it has to sit on
   the baseline of the brand text instead. */
.ex-shop-brand .ex-brand-mark {
  width: 30px;
  height: 30px;
  margin: 0;
  font-size: 15px;
}

.ex-shop-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.ex-shop-orders {
  display: grid;
  gap: 14px;
}

.ex-shop-track-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ex-shop-track-row .ex-input {
  flex: 1 1 220px;
}

.ex-shop-order-total {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.ex-shop-pay {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.ex-shop-note {
  margin: 10px 0 0;
  color: var(--md-text-muted);
  font-size: var(--md-label);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .ex-shop-bar {
    padding: 10px 14px;
  }

  .ex-shop-page {
    padding: 14px;
  }
}
