/* ZD PROD all-page design foundation. Preserve existing business layout states. */
html body.zd-ui-refresh[data-zd-ui-family] {
  --zd-ui-page:var(--v9-page,#090e14);
  --zd-ui-surface:var(--v9-surface,#121a23);
  --zd-ui-raised:var(--v9-soft,#18232e);
  --zd-ui-ink:var(--v9-ink,#edf1f5);
  --zd-ui-body:var(--v9-body,#c2ccd5);
  --zd-ui-muted:var(--v9-muted,#aab6c2);
  --zd-ui-line:var(--v9-line,#34414e);
  --zd-ui-gold:var(--v9-brand-deep,#dfbc77);
  --zd-ui-gold-soft:var(--v9-brand-soft,rgba(223,188,119,.1));
  --zd-ui-radius:16px; --zd-ui-gap:16px;
  color:var(--zd-ui-body)!important;
  font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif!important;
  font-size:14px!important;line-height:1.65!important;
  -webkit-font-smoothing:antialiased;
}
body.zd-ui-refresh :is(h1,h2,h3,h4) { line-height:1.35;letter-spacing:0;text-wrap:balance; }
body.zd-ui-refresh :is(p,.desc,.detail,.subtitle,.hint) { overflow-wrap:break-word; }
body.zd-ui-refresh :is(.card-title,.section-title,.page-title) { letter-spacing:0!important; }
body.zd-ui-refresh :is(.amount,.price,.value,td,th) { font-variant-numeric:tabular-nums; }
body.zd-ui-refresh :is(main,section,article,.card,.panel,.form-group,.form-row,.grid,.row) { min-width:0; }
body.zd-ui-refresh :is(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline:2px solid var(--zd-ui-gold)!important;outline-offset:3px!important;
}
body.zd-ui-refresh :is(a,button,[role="button"]) { touch-action:manipulation; }
body.zd-ui-refresh [hidden] { display:none!important; }
body.zd-ui-refresh:not([data-zd-ui-family="messages"]) :is(.site-bottom-nav,.bottom-nav) { z-index:900!important; }
body.zd-ui-refresh:not([data-zd-ui-family="messages"]) :is(.overlay,.login-overlay,.qq-modal,.video-modal,.agreement-modal,.delta-detail-overlay,.practice-entry-modal,.account-entry-modal,.customer-service-modal) { z-index:1100!important; }
body.zd-ui-refresh :is(button,a,input,select,textarea) { -webkit-tap-highlight-color:rgba(223,188,119,.18); }
body.zd-ui-refresh:not([data-zd-ui-family="messages"]) :is(button,.btn,a.button,[role="button"]):not([class*="slider"]):not([class*="captcha"]):not(.piece) {
  min-height:44px;line-height:1.45;font-family:inherit;
  transition:border-color .15s ease,background-color .15s ease,color .15s ease,box-shadow .15s ease;
}
body.zd-ui-refresh:not([data-zd-ui-family="messages"]) :is(input,select,textarea):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="image"]) {
  min-height:44px;font-family:inherit;line-height:1.5;
}
body.zd-ui-refresh:not([data-zd-ui-family="messages"]) :is(label,.form-label,.field-label) { line-height:1.55; }
body.zd-ui-refresh :is(.empty,.no-data,.empty-state) { line-height:1.75;overflow-wrap:anywhere; }
body.zd-ui-refresh .zd-ui-table-scroll { max-width:100%;overflow:auto;overscroll-behavior-x:contain;scrollbar-gutter:stable; }
body.zd-ui-refresh .zd-ui-table-scroll>table { margin-bottom:0; }
body.zd-ui-refresh .zd-ui-table-scroll:focus-visible { outline-offset:2px!important; }
body.zd-ui-refresh :is(.modal-card,.modal-box,dialog) { scroll-padding-block:16px; }
body.zd-ui-refresh :is(.modal-card,.modal-box,dialog) :is(input,select,textarea,button,a) { scroll-margin-block:18px; }
body.zd-ui-refresh[data-zd-ui-embedded="1"] { --zd-ui-embedded:1; }
@media(max-width:760px) {
  body.zd-ui-refresh:not([data-zd-ui-family="messages"]) :is(input,select,textarea):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]) { font-size:16px!important; }
  body.zd-ui-refresh .zd-ui-table-scroll { border-radius:12px; }
}
@media(prefers-reduced-motion:reduce) {
  body.zd-ui-refresh *,body.zd-ui-refresh *::before,body.zd-ui-refresh *::after {
    animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;scroll-behavior:auto!important;
  }
}
@media print {
  body.zd-ui-refresh { color:#111!important;background:#fff!important;font-size:11pt!important; }
  body.zd-ui-refresh .zd-ui-table-scroll { overflow:visible!important;max-height:none!important; }
  body.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav) { display:none!important; }
}

/* PROD all-page public design pass. Additive layer; business/visibility rules stay authoritative. */
body.zd-ui-refresh[data-zd-ui-family^="public-"] :where(.subtitle,.hint,.muted,.note,.form-hint,.form-label,.binding-intro,.binding-note,.withdraw-hint,.payment-note,.media-retention-note) {
  color: var(--zd-ui-muted,#aab6c2);
  line-height: 1.75;
}
body.zd-ui-refresh[data-zd-ui-family^="public-"] :where(.wrap,.shell,.portal,.binding-wrap,.settings-wrap,.title-shell,.club-shell,.wallet-rental-shell) {
  min-width: 0;
}
body.zd-ui-refresh[data-zd-ui-family^="public-"] :where(.back,.binding-back,.settings-back,.title-back,.club-back,.wr-back) {
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  color: var(--zd-ui-gold,#dfbc77);
  text-underline-offset: 4px;
}
body.zd-ui-refresh[data-zd-ui-family^="public-"] :where(.back,.binding-back,.settings-back,.title-back,.club-back) {
  display: inline-flex;
  gap: 6px;
}
body.zd-ui-refresh[data-zd-ui-family^="public-"] :where(.btn,.button,.submit,.binding-button,.settings-primary,.settings-danger,.confirm-btn,.cancel-btn,.refresh,.mock-pay,.wr-button) {
  min-height: 44px;
  line-height: 1.45;
  font-weight: 700;
  border-radius: 11px;
  transition-property: background-color,border-color,color,opacity,transform;
  transition-duration: 160ms;
}
body.zd-ui-refresh[data-zd-ui-family^="public-"] :where(.empty,.loading,.draft-empty,.placeholder-card,.channel-state) {
  color: var(--zd-ui-muted,#aab6c2);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family^="public-"] :where(.field input,.field select,.field textarea,.form-input,.form-select,.binding-input,.settings-field,.search input,.invite input,.add input,.creator-income-controls select) {
  min-width: 0;
  min-height: 46px;
  color: var(--zd-ui-ink,#edf1f5);
  background-color: var(--zd-ui-raised,#18232e);
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  border-radius: 10px;
  font-family: inherit;
  line-height: 1.5;
}
body.zd-ui-refresh[data-zd-ui-family^="public-"] :where(.field input,.field select,.field textarea,.form-input,.form-select,.binding-input,.settings-field,.search input,.invite input,.add input)::placeholder {
  color: var(--zd-ui-muted,#aab6c2);
  opacity: .85;
}
body.zd-ui-refresh[data-zd-ui-family^="public-"] :where(.status,.msg,.message,.binding-result,.settings-msg) {
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* The existing two-column game catalogue and its character artwork remain the visual anchor. */
body.zd-ui-refresh[data-zd-ui-family="public-home"] :where(.practice-nav,.portal) {
  max-width: 1120px;
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] .practice-brand {
  color: var(--zd-ui-ink,#edf1f5);
  font-size: 17px;
  letter-spacing: .01em;
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] :where(.practice-mode-toggle,.practice-actions a) {
  min-height: 44px;
  border-radius: 11px;
  font-size: 13px;
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] :where(.portal-hero,.portal-card) {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  background: var(--zd-ui-surface,#121a23);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] .portal h1 {
  color: var(--zd-ui-ink,#edf1f5);
  font-size: clamp(24px,4.5vw,34px);
  line-height: 1.35;
  letter-spacing: .01em;
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] .portal h2 {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.4;
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] :where(.portal p,.portal-card span,.bc-hall-description) {
  color: var(--zd-ui-muted,#aab6c2);
  font-size: 13px;
  line-height: 1.7;
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] :where(.portal-tag,.practice-campaign-kicker,.home-first-visit-kicker) {
  color: var(--zd-ui-gold,#dfbc77);
  font-size: 12px;
  letter-spacing: .035em;
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] .order-card {
  min-width: 0;
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  background: var(--zd-ui-surface,#121a23);
  box-shadow: none;
  transition-property: border-color,background-color;
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] .order-card h3 {
  color: var(--zd-ui-ink,#edf1f5);
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] :where(.order-price,.price-list span) {
  color: var(--zd-ui-gold,#dfbc77);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] :where(.practice-categories button,.practice-search-clear,.portal-action,.practice-campaign-cta,.home-first-visit-choice,.home-first-visit-close) {
  min-height: 44px;
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] .practice-search input {
  min-height: 44px;
  font-size: 15px;
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] :where(.home-first-visit-card,.practice-entry-modal-panel) {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  background-color: var(--zd-ui-surface,#121a23);
}
body.zd-ui-refresh[data-zd-ui-family="public-home"] :where(.home-first-visit-rules,.home-first-visit-choice) {
  font-size: 13px;
  line-height: 1.7;
}

/* Account workspace: preserve fixed shell/iframe and transaction expansion geometry. */
body.zd-ui-refresh[data-zd-ui-family="public-account"] :where(.account-header,.nav-bar) {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
}
body.zd-ui-refresh[data-zd-ui-family="public-account"] :where(.account-brand,.logo) {
  color: var(--zd-ui-ink,#edf1f5);
  font-size: 17px;
}
body.zd-ui-refresh[data-zd-ui-family="public-account"] :where(.account-contact,.account-switch button,.filter-toggle,.filter-reset,.top-nav-action,.customer-service-trigger) {
  min-height: 44px;
  font-size: 13px;
}
body.zd-ui-refresh[data-zd-ui-family="public-account"] .account-switch {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  background: var(--zd-ui-surface,#121a23);
  box-shadow: none;
}
body.zd-ui-refresh[data-zd-ui-family="public-account"] .account-tutorial {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  background: var(--zd-ui-surface,#121a23);
}
body.zd-ui-refresh[data-zd-ui-family="public-account"] .account-tutorial-kicker {
  color: var(--zd-ui-gold,#dfbc77);
  font-size: 12px;
  letter-spacing: .025em;
}
body.zd-ui-refresh[data-zd-ui-family="public-account"] .account-tutorial p {
  color: var(--zd-ui-muted,#aab6c2);
  font-size: 12px;
  line-height: 1.65;
}
body.zd-ui-refresh[data-zd-ui-family="public-account"] :where(.account-tip,.count,.card-meta,.meta-item,.lc-meta,.lc-label,.info-label) {
  color: var(--zd-ui-muted,#aab6c2);
  font-size: 12px;
  line-height: 1.6;
}
body.zd-ui-refresh[data-zd-ui-family="public-account"] :where(.account-card,.listing-card) {
  min-width: 0;
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  background-color: var(--zd-ui-surface,#121a23);
  box-shadow: none;
}
body.zd-ui-refresh[data-zd-ui-family="public-account"] :where(.card-title,.lc-code,.detail-code) {
  color: var(--zd-ui-ink,#edf1f5);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-account"] :where(.info-value,.lc-val,.lc-total,.total-price,.detail-grid,.delta-detail-grid) {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-account"] :where(.detail-close,.delta-detail-close,.agreement-modal-close,.account-contact-close,.start-pay,.delta-pay-button,.pay-btn) {
  min-height: 44px;
  min-width: 44px;
}
body.zd-ui-refresh[data-zd-ui-family="public-account"] :where(.detail-section,.delta-pay-breakdown,.pay-breakdown,.agreement-box,.account-contact-card p) {
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* Rental forms retain their existing step, quote, keyboard and action-dock behavior. */
body.zd-ui-refresh[data-zd-ui-family="public-publish"] :where(.publish-flow-heading,.publish-saas-heading) {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  color: var(--zd-ui-ink,#edf1f5);
}
body.zd-ui-refresh[data-zd-ui-family="public-publish"] :where(.publish-saas-title,.publish-flow-heading h2) {
  font-size: clamp(24px,4.8vw,32px);
  line-height: 1.35;
}
body.zd-ui-refresh[data-zd-ui-family="public-publish"] :where(.publish-flow-kicker,.publish-flow-progress,.publish-saas-steps li,.publish-saas-quota,.publish-flow-review-detail,.publish-media-intro,.publish-media-slot p,.form-hint,.quote-usage) {
  font-size: 13px;
  line-height: 1.7;
}
body.zd-ui-refresh[data-zd-ui-family="public-publish"] :where(.card,.publish-media-slot,.publish-flow-panel) {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  background-color: var(--zd-ui-surface,#121a23);
  box-shadow: none;
}
body.zd-ui-refresh[data-zd-ui-family="public-publish"] :where(.card-title,.accessory-heading,.publish-media-slot-head strong) {
  color: var(--zd-ui-ink,#edf1f5);
  font-size: 16px;
  line-height: 1.5;
}
body.zd-ui-refresh[data-zd-ui-family="public-publish"] :where(.form-label,.publish-media-required,.publish-media-optional,.small,.plan-fee-rate) {
  font-size: 13px;
  line-height: 1.65;
}
body.zd-ui-refresh[data-zd-ui-family="public-publish"] :where(.btn-opt,.main-tab,.publish-flow-help,.publish-media-picker,.publish-media-selection button,.publish-saas-review-edit) {
  min-height: 44px;
  padding-block: 10px;
  font-size: 13px;
}
body.zd-ui-refresh[data-zd-ui-family="public-publish"] :where(.publish-flow-review-amount,.quote-preview .amount) {
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-publish"] :where(.publish-flow-panel,.agreement-modal-card,.modal-card,.modal-box) {
  overscroll-behavior: contain;
}
body.zd-ui-refresh[data-zd-ui-family="public-publish"] :where(.region-search-results,.publish-flow-notice,.publish-media-selection,.quote-preview .detail) {
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* Profile and authentication: identity first, grouped destinations second. */
body.zd-ui-refresh[data-zd-ui-family="public-profile"] .profile-header {
  border-bottom-color: var(--zd-ui-line,rgba(223,188,119,.19));
  background: linear-gradient(120deg,#18211f,var(--zd-ui-surface,#121a23) 66%);
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] .profile-name {
  font-size: 21px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] .profile-qq {
  color: var(--zd-ui-muted,#aab6c2);
  font-size: 13px;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] :is(#settings-button,#header-mode-button) {
  min-height: 44px;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] :where(.card,.profile-feature-entry,.center-entry,.listing-card,.mode-dialog-card) {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  background-color: var(--zd-ui-surface,#121a23);
  box-shadow: none;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] :where(.card-title,.profile-feature-card .card-title) {
  color: var(--zd-ui-muted,#aab6c2);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .01em;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] .profile-feature-card .card-title::after {
  content: none;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] .profile-feature-entry small {
  color: var(--zd-ui-muted,#aab6c2);
  font-size: 12px;
  line-height: 1.6;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] :where(.center-entry,.profile-feature-entry strong,.game-role-entry) {
  color: var(--zd-ui-ink,#edf1f5);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] :where(.order-flow-item,.listing-detail,.title-rules,.login-options-note,.login-options,.accounting-wallet-note,.accounting-wallet-mini,.accounting-wallet-rail-label) {
  font-size: 12px;
  line-height: 1.65;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] :where(.mode-dialog-close,.order-detail-tab,.progress-tab,.game-choice button,.account-flow-filter,.binding-button,.settings-entry) {
  min-height: 44px;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] .mode-dialog-close {
  min-width: 44px;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] :where(.settings-muted,.ui-theme-note,.account-switcher-subtitle,.account-switcher-count,.account-switcher-meta,.account-switcher-note) {
  font-size: 12px;
  line-height: 1.65;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] .settings-card-title {
  color: var(--zd-ui-ink,#edf1f5);
  font-size: 16px;
  line-height: 1.5;
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] :where(.settings-card,.account-switcher-panel,.binding-card) {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  background-color: var(--zd-ui-surface,#121a23);
}
body.zd-ui-refresh[data-zd-ui-family="public-profile"] :where(.settings-entry,.account-switcher-current,.account-switcher-copy,.binding-state,.account-switcher-flow) {
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-auth"] :where(.card,.login-box,.modal-box) {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  background-color: var(--zd-ui-surface,#121a23);
}
body.zd-ui-refresh[data-zd-ui-family="public-auth"] :where(.form-label,.login-options,.login-options-note,.agreement-consent,.mode-switch) {
  color: var(--zd-ui-muted,#aab6c2);
  font-size: 13px;
  line-height: 1.75;
}
body.zd-ui-refresh[data-zd-ui-family="public-auth"] :where(.login-options label,.agreement-consent) {
  min-height: 44px;
}

/* Wallet finance colors remain meaningful: available green, rent gold, deposit blue. */
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] :where(.topbar h1,.wr-header h1) {
  font-size: 21px;
  line-height: 1.4;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] :where(.asset-card,.withdraw-card,.details-card,.worker-wallet-panel,.wr-card,.forecast-card) {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  box-shadow: none;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] :where(.withdraw-card,.details-card,.worker-wallet-panel,.wr-card) {
  background-color: var(--zd-ui-surface,#121a23);
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .asset-head span {
  font-size: 12px;
  color: #b0c7b9;
  letter-spacing: .02em;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] :where(.asset-main > span,.source-box > span,.withdraw-rule,.withdraw-hint,.payment-note,.payment-head span,.payment-method-title small,.payment-qr,.payment-choice legend,.ledger-copy span,.ledger-amount small,.worker-wallet-note,.wr-help,.wr-live,.wr-intro p,.wr-amount-label,.creator-order-reference time,.creator-order-amount small) {
  color: var(--zd-ui-muted,#aab6c2);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] :where(.asset-main strong,.source-box b,.ledger-amount,.worker-deposit-card strong,.creator-income-stats strong,.creator-income-withdraw strong,.wr-total dd,.wr-payment-summary strong) {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .asset-main > strong {
  color: var(--asset,#64d59a) !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .source-box b {
  color: var(--rent,#e7bb6b) !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .source-box.deposit b {
  color: var(--deposit,#67c7d5) !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .source-box.cloud b {
  color: var(--cloud,#78d5e4) !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .source-box.worker b {
  color: var(--asset,#64d59a) !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .source-box.creator b {
  color: #f1b85b !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .source-box.club b {
  color: #dab570 !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .source-box.incentive b {
  color: #83c9d5 !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .source-box.cashback b {
  color: #f58d84 !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .withdraw-button {
  border-color: transparent !important;
  background: var(--asset,#64d59a) !important;
  color: #0c2119 !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .asset-main strong > span {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .source-box b > span {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .source-box b {
  font-size: 17px;
  line-height: 1.45;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] :where(.payment-method-title b,.ledger-copy b,.payment-choice label,.payment-upload,.payment-delete,.worker-wallet-filter,.creator-income-caption,.creator-income-count) {
  font-size: 13px;
  line-height: 1.55;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] :where(.payment-upload,.payment-delete,.payment-choice label,.tab,.withdraw-all,.worker-wallet-actions button,.creator-text-button,.creator-income-controls select,.creator-income-controls .btn,.creator-income-withdraw .btn,.wr-text-button) {
  min-height: 44px;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .payment-delete {
  min-width: 44px;
  max-width: none;
  flex: 0 0 auto;
  padding-inline: 9px;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .ledger-amount {
  font-size: 15px;
  line-height: 1.55;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .ledger-copy b {
  white-space: normal;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .ledger-copy span {
  white-space: normal;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .ledger-row {
  grid-template-columns: 36px minmax(0,1fr) auto;
  gap: 10px;
  padding-block: 16px;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] :where(.wr-costs dd,.wr-payment-summary strong) {
  font-family: inherit;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .wr-text-button {
  font-size: 13px !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] :where(.wr-input-row,.money-input) {
  gap: 8px;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] :where(.money-input input,.wr-input-row input) {
  min-width: 0;
}

/* Worker dashboards and user order records use the same calmer operational rhythm. */
body.zd-ui-refresh[data-zd-ui-family="public-worker"] :where(.order,.team,.worker,.status) {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
}
body.zd-ui-refresh[data-zd-ui-family="public-worker"] :where(.order,.worker) {
  padding: 18px;
  border-radius: 16px;
  background: var(--zd-ui-surface,#121a23);
  box-shadow: none;
}
body.zd-ui-refresh[data-zd-ui-family="public-worker"] :where(.order-top,.topline) {
  gap: 12px;
}
body.zd-ui-refresh[data-zd-ui-family="public-worker"] :where(.order-top b,.role-name,.name) {
  color: var(--zd-ui-ink,#edf1f5);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-worker"] :where(.detail,.subtitle,.team,.tag,.code,.hint,.step) {
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-worker"] :where(.detail,.subtitle,.hint,.code) {
  color: var(--zd-ui-muted,#aab6c2);
}
body.zd-ui-refresh[data-zd-ui-family="public-worker"] :where(.order .action,.order .claim,.order .copy-owner-id,.order .invite button,.team button,.worker-game-switch button,.field select,.submit) {
  min-height: 44px;
  font-size: 13px;
  border-radius: 10px;
}
body.zd-ui-refresh[data-zd-ui-family="public-worker"] :where(.badge,.status) {
  font-size: 12px;
  line-height: 1.6;
}
body.zd-ui-refresh[data-zd-ui-family="public-worker"] .invite input {
  width: 100%;
}
body.zd-ui-refresh[data-zd-ui-family="public-worker"] .invite {
  gap: 10px;
}
body.zd-ui-refresh[data-zd-ui-family="public-order"] :where(.order,.card,.modal-card,.package,.summary) {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  background-color: var(--zd-ui-surface,#121a23);
  box-shadow: none;
}
body.zd-ui-refresh[data-zd-ui-family="public-order"] :where(.order,.card) {
  border-radius: 16px;
}
body.zd-ui-refresh[data-zd-ui-family="public-order"] :where(.detail,.order-intro,.order-rules,.summary,.filter,.state,.order-id,.adult,.warn,.media-retention-note) {
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-order"] :where(.detail,.order-intro,.order-rules,.order-id) {
  color: var(--zd-ui-muted,#aab6c2);
}
body.zd-ui-refresh[data-zd-ui-family="public-order"] :where(.filter,.refund,.pay,.search button,.confirm-btn,.cancel-btn,.order-action-bar button,.actions a,.modal-actions button) {
  min-height: 44px;
}
body.zd-ui-refresh[data-zd-ui-family="public-order"] :where(.package,.addon) {
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-order"] :where(.price,.amount,.summary b,.order-action-bar strong) {
  font-variant-numeric: tabular-nums;
}
body.zd-ui-refresh[data-zd-ui-family="public-order"] .modal-card {
  overscroll-behavior: contain;
}

/* Guide, agreements, roles, appreciation and partner workspace. */
body.zd-ui-refresh[data-zd-ui-family="public-content"] :where(.hero,.section,.card,.notice,.role,.club-card,.channel-card,.title-reward-card) {
  border-color: var(--zd-ui-line,rgba(223,188,119,.19));
  box-shadow: none;
}
body.zd-ui-refresh[data-zd-ui-family="public-content"] :where(.section,.card,.role,.club-card,.channel-card,.title-reward-card) {
  background-color: var(--zd-ui-surface,#121a23);
}
body.zd-ui-refresh[data-zd-ui-family="public-content"] :where(.hero p,.step span,.faq p,.notice,.detail,.date,.title-note,.title-reward-rules,.club-footnote,.club-rule-pills,.ap-hint,.ap-subtle) {
  color: var(--zd-ui-muted,#aab6c2);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-content"] :where(.kicker,.tag,.club-kicker,.club-eyebrow,.ap-eyebrow,.hero-kicker) {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .035em;
}
body.zd-ui-refresh[data-zd-ui-family="public-content"] :where(.quick a,.actions a,.add button,.role button,.club-button,.club-choice,.club-form input,.club-form select,.club-form button,.ap-tabs button,.ap-sort select,.ap-category-filters button,.ap-pagination button) {
  min-height: 44px;
}
body.zd-ui-refresh[data-zd-ui-family="public-content"] :where(.role-name,.title,.club-hero h1,.channel-card h1) {
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="public-content"] .faq summary {
  min-height: 44px;
  line-height: 1.65;
  padding-block: 8px;
}
body.zd-ui-refresh[data-zd-ui-family="public-content"] :where(.club-stats strong,.title-amount,.title-track-amount) {
  font-variant-numeric: tabular-nums;
}

@media (hover:hover) {
  body.zd-ui-refresh[data-zd-ui-family="public-home"] .order-card:hover {
    border-color: var(--zd-ui-gold,#dfbc77);
    background-color: var(--zd-ui-raised,#18232e);
  }
  body.zd-ui-refresh[data-zd-ui-family^="public-"] :where(.back,.binding-back,.settings-back,.club-back,.title-back):hover {
    color: var(--zd-ui-ink,#edf1f5);
  }
}

@media (max-width:899px) {
  /* Profile actions precede the header in the legacy DOM. Reserve their own row. */
  html.profile-authenticated body.zd-ui-refresh[data-zd-ui-family="public-profile"] .profile-header {
    padding-top: calc(76px + env(safe-area-inset-top,0px));
    padding-bottom: 22px;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-profile"] #settings-button {
    top: calc(16px + env(safe-area-inset-top,0px));
    right: 16px;
    width: 76px;
    min-height: 44px;
    padding: 10px 9px;
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.6;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-profile"] #header-mode-button {
    top: calc(16px + env(safe-area-inset-top,0px));
    right: 100px;
    min-width: 112px;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.6;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-profile"] .profile-header :is(.profile-name,.profile-qq) {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

@media (max-width:600px) {
  body.zd-ui-refresh[data-zd-ui-family^="public-"] :where(.field input,.field select,.field textarea,.form-input,.form-select,.binding-input,.settings-field,.search input,.invite input,.add input,.practice-search input,.creator-income-controls select) {
    font-size: 16px;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-home"] .portal .order-card h3 {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-home"] .portal .price-list span {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-home"] .portal .bc-hall-description {
    font-size: 12px;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-account"] .account-tutorial p {
    font-size: 12px;
    line-height: 1.65;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-account"] .account-tutorial h2 {
    font-size: 15px;
    line-height: 1.45;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .withdraw-rule {
    flex-wrap: wrap;
    gap: 5px 12px;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .money-input {
    padding-inline: 11px;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .withdraw-all {
    flex: 0 0 auto;
    font-size: 13px;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-worker"] :where(.order,.worker) {
    padding: 16px;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-worker"] .order-top {
    flex-wrap: wrap;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-worker"] .order-top>b {
    min-width: 0;
    flex: 1 1 150px;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-worker"] .invite {
    flex-wrap: wrap;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-worker"] .invite input {
    flex: 1 1 150px;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-worker"] .invite button {
    flex: 0 1 auto;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-profile"] .profile-feature-entry {
    padding-inline: 12px;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-profile"] .center-entry {
    padding-inline: 7px;
    font-size: 13px;
  }
}

@media (max-width:360px) {
  body.zd-ui-refresh[data-zd-ui-family="public-home"] .practice-brand {
    font-size: 15px;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-home"] .practice-mode-toggle {
    padding-inline: 10px;
    font-size: 12px;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .ledger-row {
    grid-template-columns: 32px minmax(0,1fr);
  }
  body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .ledger-amount {
    grid-column: 2;
    text-align: left;
  }
  body.zd-ui-refresh[data-zd-ui-family="public-profile"] .order-flow-item span:last-child {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ZD PROD: dense, readable staff and finance work surfaces. No business visibility rules. */
body.zd-ui-refresh[data-zd-ui-family="admin"] {
  --zda-page: var(--zd-ui-page, var(--v9-page, #0e1116));
  --zda-surface: var(--zd-ui-surface, var(--v9-surface, #171c23));
  --zda-raised: var(--zd-ui-raised, var(--v9-soft, #202630));
  --zda-ink: var(--zd-ui-ink, var(--v9-ink, #f3eee3));
  --zda-body: var(--zd-ui-body, var(--v9-body, #d7dbe2));
  --zda-muted: var(--zd-ui-muted, var(--v9-muted, #b5bdc9));
  --zda-line: var(--zd-ui-line, var(--v9-line, #3a414c));
  --zda-gold: var(--zd-ui-gold, var(--v9-brand, #e2bd77));
  --zda-gold-soft: var(--zd-ui-gold-soft, var(--v9-brand-soft, #30291e));
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
}

body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.wrap, .staff-shell, .reset-shell, .or-shell, .risk-shell, .cm-shell, .bp-shell, .dep-page, .skin-wrap, .peer-page, .club-shell, .manual-shell) {
  min-width: 0;
  max-width: 1360px;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-card, .bc-legacy, .panel, .or-panel, .risk-panel, .cm-card, .dep-card, .skin-card, .bp-detail, .creator-records-section, .online-panel, .history-panel, .staff-tip, .usage-card, .action-card, .card, .history-card) {
  min-width: 0;
  border-color: var(--zda-line);
  border-radius: 12px;
  background-color: var(--zda-surface);
  box-shadow: none;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-head, .or-heading, .risk-heading, .cm-head, .cm-section-head, .dep-head, .skin-head, .peer-head, .bp-page-title, .panel-head, .ledger-head, .account-head) {
  min-width: 0;
  gap: 14px;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-head, .or-heading, .risk-heading, .cm-head, .dep-head, .skin-head, .peer-head) h1 {
  color: var(--zda-ink);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.or-eyebrow, .risk-eyebrow, .cm-caption, .manual-eyebrow, .skin-brand, .staff-kicker, .kicker) {
  color: var(--zda-gold);
  letter-spacing: .035em;
  line-height: 1.6;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.or-intro, .risk-intro, .intro, .bc-note, .cm-help, .skin-hint, .dep-help, .help, .staff-tip, .creator-records-notice, .manual-note) {
  color: var(--zda-muted);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* A quiet header and a compact business menu retain the existing game identities. */
body.zd-ui-refresh[data-zd-ui-family="admin"] .staff-head {
  padding: 24px;
  border-color: var(--zda-line);
  border-top: 2px solid var(--zda-gold);
  border-radius: 12px;
  background: var(--zda-surface);
  box-shadow: none;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] .staff-head h1 { font-size: clamp(25px, 2.6vw, 32px); }
body.zd-ui-refresh[data-zd-ui-family="admin"] .staff-head p { color: var(--zda-muted); font-size: 14px; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .staff-grid { gap: 12px; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .staff-card { min-height: 154px; padding: 20px; border-radius: 12px; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .staff-card strong { margin-top: 28px; font-size: 21px; line-height: 1.45; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .staff-card span { margin-top: 7px; line-height: 1.75; font-size: 13px; }
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.online-item, .history-item) { min-width: 0; padding: 14px 10px; border-radius: 8px; }
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.online-value, .history-value) { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; white-space: normal; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .history-value {
  max-width: 100%;
  font-size: clamp(16px, 4.6vw, 21px);
  line-height: 1.35;
  white-space: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.online-label, .history-label) { font-size: 12px; line-height: 1.6; color: var(--zda-muted); }

/* Controls keep their existing financial/status colors and disabled behavior. */
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(button, .btn, .btn-opt, .bp-button, .or-button, .risk-button, .dep-button, .cm-back, .skin-close, .manual-back) {
  min-height: 44px;
  touch-action: manipulation;
  font-family: inherit;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select:not([multiple]), textarea) {
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  font-family: inherit;
  line-height: 1.5;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(input, select, textarea, button, a, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--zda-gold);
  outline-offset: 3px;
  scroll-margin-block: 90px 110px;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-primary, .bp-primary, .cm-primary, .dep-save, .skin-primary) {
  color: #17130b;
  border-color: var(--zda-gold);
  background: var(--zda-gold);
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.or-button, .risk-button):not(.secondary):not(.danger) {
  color: #17130b;
  background: var(--zda-gold);
  border-color: var(--zda-gold);
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.or-tabs button[aria-pressed="true"], .risk-tabs button[aria-pressed="true"], .cm-tabs button.active) {
  color: var(--zda-gold);
  border-color: var(--zda-gold);
  background: var(--zda-gold-soft);
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.or-tabs, .risk-tabs, .cm-tabs, .main-tabs, .tab-bar, .skin-tabs, .queue-tabs, .manual-filter) {
  max-width: 100%;
  scroll-padding-inline: 8px;
  scrollbar-width: thin;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.tab-bar a, .main-tab, .cm-nav a, .club-bottom-nav a, .creator-records-nav a) {
  min-height: 44px;
  align-content: center;
  line-height: 1.55;
}

/* Keep complete tables as tables. Horizontal scrolling stays in the containing region. */
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-scroll, .table-wrap, .dep-table-scroll, .mp-scroll, .pd-scroll, .ub-scroll, .bp-table-scroll, .sqb-fee-scroll, .dealer-finance-scroll, .zd-funds-scroll, [data-zd-ui-scroll]) {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--zda-muted) var(--zda-surface);
  scroll-padding-inline: 12px;
  border-radius: 8px;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(th, td) {
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-scroll, .table-wrap, .dep-table-scroll, .mp-scroll, .pd-scroll, .ub-scroll, .sqb-fee-scroll, .dealer-finance-scroll, .zd-funds-scroll) th {
  background: var(--zda-raised);
  color: var(--zda-ink);
  font-size: 12px;
  font-weight: 650;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] [data-zd-ui-scroll] .acc-table { min-width: 560px; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .acc-table :is(th, td) { padding: 10px 8px; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .acc-table .btn-opt { min-width: 44px; min-height: 44px; font-size: 12px; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .acc-table input[type="number"] { min-width: 64px; font-size: 14px; }
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-filters, .or-filters, .risk-filters, .bp-filters, .bp-query, .peer-toolbar, .ledger-controls) > * { min-width: 0; }
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-metrics, .bf-components, .bf-allocation-grid, .pricing-grid, .pd-grid, .dep-grid, .cm-grid, .risk-facts, .or-facts) > * { min-width: 0; }
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-metrics b, .pd-metrics strong, .bp-amount, .or-money, .cm-rate, .detail-amount strong, .manual-summary b, .total strong) {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
/* The existing primary metric has an opaque gold gradient; all of its text needs dark ink. */
body.zd-ui-refresh[data-zd-ui-family="admin"] .metric.primary :is(span, strong, small, b) {
  color: #17120a !important;
}

/* No display/open-state changes: native dialogs and drawers keep the original lifecycle. */
/* Ordinary navigation stays below business overlays. The dedicated business menu keeps its own higher layer. */
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bottom-nav, .site-bottom-nav, .zd-boss-nav) { z-index: 900 !important; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .drawer-mask { z-index: 1000; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .drawer { z-index: 1001; }
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.overlay, .qq-modal, .video-modal) { z-index: 1100; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .modal-mask,
body.zd-ui-refresh[data-zd-ui-family="admin"] #manual-modal { z-index: 1200; }
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.toast, .error-banner) { z-index: 1300; }
body.zd-ui-refresh[data-zd-ui-family="admin"] dialog {
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overscroll-behavior: contain;
  overflow-y: auto;
  scroll-padding-block: 84px 24px;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.or-dialog-head, .risk-dialog-head, .cm-dialog-head) {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-block: 4px 12px;
  background: var(--zda-surface);
  box-shadow: 0 -28px 0 var(--zda-surface), 0 6px 0 var(--zda-surface);
  border-bottom: 1px solid var(--zda-line);
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.or-dialog-head, .risk-dialog-head, .cm-dialog-head) h2 { min-width: 0; overflow-wrap: anywhere; }
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.or-dialog-head, .risk-dialog-head, .cm-dialog-head) > button { flex: 0 0 auto; min-width: 44px; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .drawer { height: 100vh; height: 100dvh; max-width: 100vw; }
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.drawer-head, .drawer-actions) { flex-shrink: 0; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .drawer-body { min-height: 0; overscroll-behavior: contain; scroll-padding-block: 16px; }
body.zd-ui-refresh[data-zd-ui-family="admin"] .drawer-head .close { flex: 0 0 44px; width: 44px; height: 44px; }
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.modal-box, .qq-modal .modal-box, .modal-mask .modal) {
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overscroll-behavior: contain;
  overflow-y: auto;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.or-row, .risk-account, .history-card, .listing-card, .manual-row, .cm-card, .dep-explanation) { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-head, .cm-head, .cm-section-head, .dep-head, .skin-head, .peer-head, .panel-head, .ledger-head) { flex-wrap: wrap; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-filters, .or-filters, .risk-filters, .bp-filters, .peer-toolbar, .ledger-controls) { flex-wrap: wrap; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.or-filters, .risk-filters) > :is(.or-field, .risk-field) { flex: 1 1 180px; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-filters, .bp-filters) > label { flex: 1 1 145px; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) { font-size: 16px; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-card, .bc-legacy, .panel, .or-panel, .risk-panel, .cm-card, .dep-card, .skin-card) { padding: 16px; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] .staff-head { padding: 20px 18px; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] .staff-card { min-height: 138px; padding: 18px; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] .staff-card strong { margin-top: 23px; font-size: 20px; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.online-grid, .history-grid) { gap: 9px; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] .bp-query input[type="month"] { height: 44px; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] .bp-basis label > span { height: auto; min-height: 44px; }
}

@media (max-width: 420px) {
  body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.bc-head, .or-heading, .risk-heading, .cm-head) { gap: 10px; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.or-heading, .risk-heading) { flex-wrap: wrap; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.or-heading, .risk-heading) > button { margin-top: 0; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] :is(.online-title, .history-title, .or-list-meta, .risk-list-summary) { flex-wrap: wrap; gap: 6px; }
  body.zd-ui-refresh[data-zd-ui-family="admin"] .bf-allocation-grid { grid-template-columns: minmax(0, 1fr); }
}

/* PROD finance uses its own backdrop, review modal and primary total classes. */
body.zd-ui-refresh[data-zd-ui-family="admin"] .drawer-backdrop {
  z-index: 1000 !important;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] #review-modal {
  z-index: 1200 !important;
}
body.zd-ui-refresh[data-zd-ui-family="admin"] .total.primary :is(span,small) {
  color: #20170b !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] :is(.method-name span,.method-note,.fee-row,.source-box small) {
  font-size: 12px !important;
  line-height: 1.65 !important;
}
body.zd-ui-refresh[data-zd-ui-family="public-wallet"] .method-name b {
  font-size: 13px !important;
}

/* Shared PROD bottom navigation. Role entries and visibility remain authoritative. */
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) {
  --zd-nav-ink: #dfbc77;
  --zd-nav-muted: #aab6c2;
  box-sizing: border-box !important;
  position: fixed !important;
  inset: auto 0 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: calc(68px + env(safe-area-inset-bottom,0px)) !important;
  min-height: calc(68px + env(safe-area-inset-bottom,0px)) !important;
  margin: 0 !important;
  transform: none !important;
  border: 0 !important;
  gap: 2px !important;
  padding: 0 6px env(safe-area-inset-bottom,0px) !important;
  border-color: rgba(223,188,119,.2) !important;
  border-radius: 16px 16px 0 0 !important;
  background: rgba(14,20,27,.98) !important;
  box-shadow: inset 0 1px 0 rgba(223,188,119,.2),0 -6px 24px rgba(0,0,0,.2) !important;
  backdrop-filter: blur(16px);
  overflow: visible !important;
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > :is(a,button[data-staff-business-trigger]):not([hidden]) {
  position: relative !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  height: 68px !important;
  min-height: 68px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 34px 1px 8px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--zd-nav-muted) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-align: center !important;
  white-space: nowrap !important;
  transform: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: rgba(223,188,119,.14);
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > :is(a,button[data-staff-business-trigger]) > em:not([hidden]) {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: 12px !important;
  font-style: normal !important;
  line-height: 16px !important;
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > :is(a.active,a[data-boss-business-trigger][aria-expanded="true"],button[data-staff-business-trigger].active,button[data-staff-business-trigger][aria-expanded="true"]) {
  color: var(--zd-nav-ink) !important;
  background: rgba(223,188,119,.1) !important;
  box-shadow: inset 0 0 0 1px rgba(223,188,119,.17) !important;
  font-weight: 750 !important;
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > :is(a,button[data-staff-business-trigger]):focus-visible {
  outline: 2px solid var(--zd-nav-ink) !important;
  outline-offset: -3px !important;
}
/* The original span/i elements remain in place for role changes and badge selectors. */
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > :is(a,button[data-staff-business-trigger]) > span:not([hidden]):not(.zd-user-message-dot):not(.zd-worker-order-dot):not(.zd-account-progress-dot) {
  position: absolute !important;
  top: 11px !important;
  left: 50% !important;
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: var(--zd-nav-fallback-size,22px) !important;
  line-height: 22px !important;
  color: inherit !important;
  transform: translateX(-50%) !important;
  filter: none !important;
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > :is(a,button[data-staff-business-trigger]) > span:not([hidden]):not(.zd-user-message-dot):not(.zd-worker-order-dot):not(.zd-account-progress-dot)::before {
  content: var(--zd-nav-mask-content,none);
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--zd-nav-symbol,none) center / contain no-repeat;
  mask: var(--zd-nav-symbol,none) center / contain no-repeat;
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > :is(a[href="/"],a[href="/home"],a[href="/accounts"],a[href="/account-hall"],a[href="/practice"],a[href="/worker/order-details"],a[href="/messages"],a[href="/profile"],a[href="/staff/"],a[href="/staff"],button[data-staff-business-trigger]) {
  --zd-nav-fallback-size: 0px;
  --zd-nav-mask-content: "";
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > :is(a[href="/"],a[href="/home"]) {
  --zd-nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1Z'/%3E%3C/svg%3E");
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > :is(a[href="/accounts"],a[href="/account-hall"],a[href="/practice"]) {
  --zd-nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='15' height='17' rx='2'/%3E%3Cpath d='M5 7H3v14h13M9 8h7M9 12h7M9 16h4'/%3E%3C/svg%3E");
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > a[href="/worker/order-details"] {
  --zd-nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V2h6v2M9 10h6M9 14h6M9 18h3'/%3E%3C/svg%3E");
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > a[href="/messages"] {
  --zd-nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v12H9l-5 4V4Z'/%3E%3Cpath d='M8 8h8M8 12h5'/%3E%3C/svg%3E");
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > a[href="/profile"] {
  --zd-nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E");
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > :is(a[href="/staff/"],a[href="/staff"]) {
  --zd-nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='11' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='18' width='7' height='3' rx='1'/%3E%3C/svg%3E");
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > button[data-staff-business-trigger] {
  --zd-nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M9 3v18M15 3v18M3 9h18M3 15h18'/%3E%3C/svg%3E");
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > a.nav-publish > i:not([hidden]) {
  position: absolute !important;
  top: -8px !important;
  left: 50% !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 3px solid #10171f !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg,#e4c17f,#bd9451) !important;
  color: #20170b !important;
  font-size: 24px !important;
  font-style: normal !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  transform: translateX(-50%) !important;
  box-shadow: 0 3px 8px rgba(0,0,0,.22) !important;
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > a.nav-worker-orders > i { font-size: 20px !important; }
/* The 11px / min-height 23px textual notice keeps its existing type and sizing. */
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > a > span.zd-user-message-dot { top: -13px !important; }
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > a > :is(.zd-worker-order-dot,.zd-account-progress-dot) {
  top: 8px !important;
  left: calc(50% + 5px) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.25) !important;
}
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) [hidden] { display: none !important; }
@media (max-width:359px) {
  html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) { gap: 0 !important; padding-inline: 0 !important; }
}
@media (min-width:900px) {
  html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) { left: 50% !important; right: auto !important; bottom: 16px !important; width: calc(100% - 48px) !important; max-width: 900px !important; transform: translateX(-50%) !important; border-radius: 17px !important; }
}
@media (max-width:899px) {
  body.zd-ui-refresh:not([data-zd-ui-family="messages"]):not([data-zd-ui-embedded="1"]):has(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) {
    padding-bottom: calc(92px + env(safe-area-inset-bottom,0px)) !important;
  }
}
@media (hover:hover) {
  html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) > :is(a,button[data-staff-business-trigger]):hover {
    color: var(--zd-nav-ink) !important;
  }
}

/* Keep the existing mask as the sole drawing inside a known navigation icon.
   ui-v9.js may replace its emoji with a nested .v9-icon > svg after mode repair. */
html body.zd-ui-refresh.zd-ui-refresh :is(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"])
  > :is(a[href="/"],a[href="/home"],a[href="/accounts"],a[href="/account-hall"],a[href="/practice"],a[href="/worker/order-details"],a[href="/messages"],a[href="/profile"],a[href="/staff/"],a[href="/staff"],button[data-staff-business-trigger])
  > span:not(.zd-user-message-dot):not(.zd-worker-order-dot):not(.zd-account-progress-dot)
  :is(.v9-icon,svg) {
  display: none !important;
}

@media (min-width:900px) {
  body.zd-ui-refresh:not([data-zd-ui-family="messages"]):not([data-zd-ui-embedded="1"]):has(.site-bottom-nav,.bottom-nav,[id="zd-boss-bottom-nav"]) { padding-bottom: calc(112px + env(safe-area-inset-bottom,0px)) !important; }
}

/* Storefront palette only: no geometry, navigation visibility or status-color overrides. */
@media screen {
 html body.zd-ui-refresh[data-zd-ui-family^="public-"] {
  --v9-page:#101113;--v9-surface:#1b1c1f;--v9-soft:#252526;
  --v9-ink:#f3f1eb;--v9-body:#d7d3ca;--v9-muted:#bdb9b0;
  --v9-line:#494338;--v9-brand-deep:#e1c083;--v9-brand-soft:rgba(225,192,131,.10);
  --zd-ui-page:#101113;--zd-ui-surface:#1b1c1f;--zd-ui-raised:#252526;
  --zd-ui-ink:#f3f1eb;--zd-ui-body:#d7d3ca;--zd-ui-muted:#bdb9b0;
  --zd-ui-line:#494338;--zd-ui-gold:#e1c083;--zd-ui-gold-soft:rgba(225,192,131,.10);
  background-color:var(--zd-ui-page)!important;
 }
 html body.resource-market.zd-ui-refresh[data-zd-ui-family^="public-"] {
  --bg:#101113;--panel:#1b1c1f;--soft:#252526;--line:#494338;
  --text:#f3f1eb;--muted:#bdb9b0;--gold:#e1c083;
 }
}
