@charset "UTF-8";

.admin-theme-switch {
  width: 112px;
  height: 28px;
  flex: 0 0 112px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 5px;
  background: rgba(19, 28, 72, .22);
}

.admin-header-status {
  width: 382px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 14px 0 8px;
  transform: none;
}

.admin-header-meta {
  min-width: 145px;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.admin-header-clock { width: auto; transform: none; }

.admin-theme-switch button {
  min-width: 0;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 3px;
  padding: 0 5px;
  color: rgba(255, 255, 255, .8);
  background: transparent;
  font-family: "Youth", "Jeju Gothic", sans-serif;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.admin-theme-switch button i { font-size: 10px; }
.admin-theme-switch button.active { color: #2d416c; background: #f3f6fb; }
.admin-theme-switch button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

body.login-page :where(button, input[type="button"], input[type="submit"], input[type="reset"]),
body[class*="admin-"] :where(button, input[type="button"], input[type="submit"], input[type="reset"], [role="button"], .store-segment-control label) {
  font-weight: 400 !important;
}

html:not([data-admin-theme="night"]) .admin-tree-item.active { color: #a44700; }
html:not([data-admin-theme="night"]) .admin-customer-list-body .admin-customer-row.active { color: #a44700; }
html:not([data-admin-theme="night"]) :where(.admin-order-refresh-number, body.admin-shop-embed .refresh-badge) {
  color: #fff;
  border-color: #5f9f61;
  background: #2d7d32;
}
html:not([data-admin-theme="night"]) :where(
  .admin-biz-file-toolbar button[data-file-delete],
  .admin-company-staff-detail-actions button.delete,
  .admin-company-action-button.delete,
  .admin-company-staff-state-badge.inactive,
  .admin-company-pay-register-actions button.delete-mode,
  .admin-company-pay-delete,
  .admin-staff-image-toolbar button.delete,
  .admin-notice-attach-item button,
  .admin-notice-actions button.danger,
  .admin-menu-image-actions button.danger,
  body.admin-shop-embed :where(.button_business, .button_relaxation, .button_order_amount, .button_regular, .button_price_delivery, .button_order_donation, .button_red_small),
  body.admin-shop-embed :where(.store-tab.active, .store-segment-control label.active)
) {
  color: #c2185b;
}
html:not([data-admin-theme="night"]) body.admin-shop-embed .coupon-line-status.active { color: #a63d00; }
html:not([data-admin-theme="night"]) body.admin-shop-embed .coupon-line-status.upcoming { color: #9a4200; }
html:not([data-admin-theme="night"]) body.admin-shop-embed :where(.payment-label, .button_green_small) { color: #2f7835; }

html[data-admin-theme="night"] {
  color-scheme: dark;
  --admin-ink: #edf0f2;
  --admin-muted: #adb5bc;
  --admin-line: #3d444a;
  --admin-soft: #282d31;
  --admin-white: #1e2225;
  --admin-blue: #b9aa96;
  --admin-navy: #8c7c68;
  --admin-pink: #dc7891;
  --admin-green: #65b99b;
  --admin-orange: #dfa75e;
  --admin-shadow: 0 14px 34px rgba(0, 0, 0, .3);
  --admin-night-page: #141719;
  --admin-night-surface: #1e2225;
  --admin-night-elevated: #252a2e;
  --admin-night-soft: #2a3034;
  --admin-night-input: #171a1d;
  --admin-night-line: #3d444a;
  --admin-night-line-soft: #343a3f;
  --admin-night-text: #edf0f2;
  --admin-night-muted: #adb5bc;
  --admin-night-blue-soft: #343832;
  --admin-night-orange-soft: #453522;
  --admin-night-green-soft: #203c34;
  --admin-night-red-soft: #452a30;
}

html[data-admin-theme="night"],
html[data-admin-theme="night"] body {
  color: var(--admin-night-text);
  background: var(--admin-night-page) !important;
}

html[data-admin-theme="night"] body.admin-page {
  background: var(--admin-night-page) !important;
}

html[data-admin-theme="night"] .admin-brand { background: #23282d; }
html[data-admin-theme="night"] .admin-topbar { background: #252a2e; box-shadow: 0 4px 16px rgba(0, 0, 0, .32); }
html[data-admin-theme="night"] .admin-topbar-main { background: #393d39; }
html[data-admin-theme="night"] .admin-main-nav button { border-color: #69747f; background: rgba(255, 255, 255, .07); }
html[data-admin-theme="night"] .admin-main-nav button.active { color: #f3eee7; border-color: #827361; background: #665a4d; }
html[data-admin-theme="night"] .admin-main-nav button.active i { color: #f3eee7; }
html[data-admin-theme="night"] .admin-settle-view-switch { border-color: #74808a; background: #252b31; }
html[data-admin-theme="night"] .admin-settle-view-switch::before { background: #665a4d; box-shadow: none; }
html[data-admin-theme="night"] .admin-main-nav .admin-settle-view-switch button.active { color: #f3eee7; }
html[data-admin-theme="night"] .admin-settle-cash-gift input {
  color: #eee9e2;
  border-color: #68737c;
  background: #252b31;
}
html[data-admin-theme="night"] .admin-settle-cash-gift input::placeholder { color: #aaa39a; }
html[data-admin-theme="night"] .admin-settle-cash-gift input:focus { border-color: #aa987f; box-shadow: 0 0 0 2px rgba(170, 152, 127, .2); }
html[data-admin-theme="night"] .admin-main-nav .admin-settle-cash-gift button {
  color: #f3eee7;
  border-color: #827361;
  background: #665a4d;
}
html[data-admin-theme="night"] .admin-theme-switch { border-color: #74808a; background: #252b31; }
html[data-admin-theme="night"] .admin-theme-switch button.active { color: #f3eee7; background: #665a4d; }

html[data-admin-theme="night"] :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-input) !important;
  box-shadow: none;
}

html[data-admin-theme="night"] :where(input, textarea)::placeholder { color: #858e96; opacity: 1; }
html[data-admin-theme="night"] :where(input, select, textarea):focus { border-color: #a8957d !important; box-shadow: 0 0 0 2px rgba(168, 149, 125, .2) !important; }
html[data-admin-theme="night"] :where(input, textarea):read-only { color: #c2c8cd !important; background: #202428 !important; }
html[data-admin-theme="night"] option { color: var(--admin-night-text); background: var(--admin-night-input); }

html[data-admin-theme="night"] :where(
  .admin-tree-panel,
  .admin-detail-panel,
  .admin-rider-directory,
  .admin-order-grid-wrap,
  .admin-order-table-wrap,
  .admin-settle-grid-wrap,
  .admin-customer-list-panel,
  .admin-customer-detail-panel,
  .admin-notice-list-panel,
  .admin-notice-editor,
  .admin-menu-image-list-panel,
  .admin-menu-image-editor,
  .admin-rider-map-shell,
  .admin-rider-map-panel,
  .admin-setting-pane,
  .admin-map-pane,
  .admin-setting-subframe-host,
  .admin-call-register-panel,
  .admin-confirm-panel,
  .admin-dialog-panel,
  .admin-staff-modal-card,
  .admin-shared-datetime-picker
) {
  color: var(--admin-night-text);
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-surface) !important;
  box-shadow: var(--admin-shadow);
}

/* Command controls keep the same readable weight in every state and theme. */
:where(button, input[type="button"], input[type="submit"], input[type="reset"], [role="button"]) {
  font-weight: 400 !important;
}

html[data-admin-theme="night"] :where(.admin-tree-panel, .admin-detail-panel)::after { border-color: #464e55; }
html[data-admin-theme="night"] .admin-frame-host,
html[data-admin-theme="night"] .admin-section-frame,
html[data-admin-theme="night"] .admin-setting-subframe,
html[data-admin-theme="night"] .admin-setting-subframe-page,
html[data-admin-theme="night"] .admin-frame-page { background: transparent !important; }
html[data-admin-theme="night"] .admin-detail-head { border-color: var(--admin-night-line); background: var(--admin-night-surface); }
html[data-admin-theme="night"] .admin-detail-head p { color: var(--admin-night-muted); }
html[data-admin-theme="night"] .admin-detail-body { background: var(--admin-night-surface); }

html[data-admin-theme="night"] [class*="admin-"][class*="-filter"],
html[data-admin-theme="night"] [class*="admin-"][class*="-toolbar"],
html[data-admin-theme="night"] [class*="admin-"][class*="-board"],
html[data-admin-theme="night"] [class*="admin-"][class*="-wrap"],
html[data-admin-theme="night"] [class*="admin-"][class*="-header"]:not(.admin-topbar):not(.admin-order-row),
html[data-admin-theme="night"] [class*="admin-"][class*="-head"]:not(.admin-topbar):not(.admin-order-row),
html[data-admin-theme="night"] [class*="admin-"][class*="-card"]:not(button),
html[data-admin-theme="night"] [class*="admin-"][class*="-box"]:not(button) {
  color: var(--admin-night-text);
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
}

html[data-admin-theme="night"] [class*="admin-"][class*="-row"]:not(button):not(.admin-detail-title-row):not(.admin-staff-form-row) {
  color: var(--admin-night-text);
  border-color: var(--admin-night-line-soft) !important;
  background: var(--admin-night-surface) !important;
  background-image: none !important;
}

html[data-admin-theme="night"] [class*="admin-"][class*="-row"].head,
html[data-admin-theme="night"] [class*="admin-"][class*="-row"][class*="header"] {
  color: #d8dfe5;
  background: #2e3439 !important;
}

html[data-admin-theme="night"] [class*="admin-"][class*="-row"]:hover:not(.head),
html[data-admin-theme="night"] .admin-tree-item:hover { color: #dce8f8; background: #2a3541 !important; }
html[data-admin-theme="night"] [class*="admin-"][class*="-row"].expanded,
html[data-admin-theme="night"] [class*="admin-"][class*="-row"].active,
html[data-admin-theme="night"] [class*="admin-"][class*="-row"].selected,
html[data-admin-theme="night"] .admin-tree-item.active { color: #f0c47f; background: var(--admin-night-orange-soft) !important; }

html[data-admin-theme="night"] .admin-tree-rank,
html[data-admin-theme="night"] .admin-tree-balance,
html[data-admin-theme="night"] .admin-search-result,
html[data-admin-theme="night"] .admin-rider-directory-title,
html[data-admin-theme="night"] .admin-rider-directory-title strong,
html[data-admin-theme="night"] .admin-rider-directory-title > span { color: var(--admin-night-muted); }
html[data-admin-theme="night"] .admin-tree-item.notice-target-single:not(.active) { color: #a9c5ef; border-color: #496589; background: var(--admin-night-blue-soft); }
html[data-admin-theme="night"] .admin-tree-item.notice-target-group:not(.active) { color: #a9dec7; border-color: #477460; background: var(--admin-night-green-soft); }
html[data-admin-theme="night"] .admin-rider-directory-body .admin-rider-directory-row.notice-target-group { color: #a9dec7; background: var(--admin-night-green-soft); box-shadow: inset 3px 0 0 #6fbf95; }
html[data-admin-theme="night"] .admin-rider-directory-body .admin-rider-directory-row.notice-target-single { color: #a9c5ef; background: var(--admin-night-blue-soft); box-shadow: inset 3px 0 0 #7ea4d8; }

html[data-admin-theme="night"] .admin-stat-card { color: var(--admin-night-text); border-color: var(--admin-night-line); background: var(--admin-night-elevated); }
html[data-admin-theme="night"] .admin-order-status-board,
html[data-admin-theme="night"] .admin-order-counts > div,
html[data-admin-theme="night"] .admin-settle-filter,
html[data-admin-theme="night"] .admin-settle-mode-tabs button:not(.active),
html[data-admin-theme="night"] .admin-settle-rider-type-button:not(.active),
html[data-admin-theme="night"] .admin-settle-cate-button:not(.active),
html[data-admin-theme="night"] .admin-company-tab:not(.active),
html[data-admin-theme="night"] .admin-customer-tabs button:not(.active),
html[data-admin-theme="night"] .admin-tree-tabs button:not(.active) {
  color: #c1c8ce;
  border-color: var(--admin-night-line);
  background: var(--admin-night-elevated);
}

html[data-admin-theme="night"] .admin-order-quick button,
html[data-admin-theme="night"] .admin-settle-quick button,
html[data-admin-theme="night"] .admin-customer-history-quick button { color: #c5ccd2; background: #30363b; }
html[data-admin-theme="night"] .admin-order-counts strong { color: #a9c7f0; }
html[data-admin-theme="night"] .admin-order-row > div.vat,
html[data-admin-theme="night"] .admin-customer-history-row > div.vat {
  color: #ffc46b !important;
}
html[data-admin-theme="night"] .admin-order-row > div.total,
html[data-admin-theme="night"] .admin-customer-history-row > div.total {
  color: #ffe27a !important;
}
html[data-admin-theme="night"] .admin-order-grid-wrap.loading::after { color: #d8dde1; border-color: var(--admin-night-line); background: rgba(37, 42, 46, .96); }

html[data-admin-theme="night"] .admin-order-detail-row { border-color: #604d32 !important; background: #2a241c !important; }
html[data-admin-theme="night"] .admin-order-detail-row > div,
html[data-admin-theme="night"] .admin-order-detail-row > div.seq,
html[data-admin-theme="night"] .admin-order-manager-card { color: var(--admin-night-text); border-color: #4a4f53 !important; background: #24282b !important; }
html[data-admin-theme="night"] .admin-order-detail-row :where(strong, b) { color: var(--admin-night-text); }
html[data-admin-theme="night"] .admin-order-detail-row :where(em, span) { color: var(--admin-night-muted); }
html[data-admin-theme="night"] .admin-payment-approval-copy::after { color: #fff; background: #111416; }
html[data-admin-theme="night"] .admin-call-menu-picker-title > i { color: #fff !important; }
html[data-admin-theme="night"] .admin-call-menu-picker-title strong { font-weight: 400 !important; }

html[data-admin-theme="night"] :where(
  .admin-order-empty,
  .admin-notice-attach-empty,
  .admin-customer-info-panel p,
  .admin-customer-history-panel p,
  .admin-customer-detail-empty,
  .admin-notice-empty
) {
  color: #c9d0d6 !important;
}

html[data-admin-theme="night"] .admin-notice-send {
  color: var(--admin-night-text);
  border-color: var(--admin-night-line);
  background: #23282c;
}

html[data-admin-theme="night"] .admin-notice-send-row > span { color: var(--admin-night-muted); }
html[data-admin-theme="night"] .admin-notice-send-hint { color: #9db6e8; }
html[data-admin-theme="night"] .admin-notice-send-hint.is-warn { color: #efc784; }

html[data-admin-theme="night"] .admin-settle-status { color: #f0c984; border-color: #69552f; background: #3b3120; }
html[data-admin-theme="night"] .admin-settle-target-chip.count { color: #e8afc0; border-color: #674653; background: #3c2930; }
html[data-admin-theme="night"] .admin-settle-total.add { color: #efc784; border-color: #6a5531; background: #3c3221; }
html[data-admin-theme="night"] .admin-settle-total.profit { color: #a9dfc8; border-color: #406b5a; background: #243a32; }
html[data-admin-theme="night"] .admin-settle-detail-row,
html[data-admin-theme="night"] .admin-cash-detail-row,
html[data-admin-theme="night"] .admin-customer-detail-row { color: var(--admin-night-text); border-color: var(--admin-night-line); background: #23272a; }

html[data-admin-theme="night"] :where(.admin-address-results, .admin-search-results, .admin-select-results) { color: var(--admin-night-text); border-color: var(--admin-night-line); background: var(--admin-night-elevated); box-shadow: var(--admin-shadow); }
html[data-admin-theme="night"] .admin-detail-head .admin-address-results .admin-address-result { color: var(--admin-night-text); border-color: var(--admin-night-line-soft); background: var(--admin-night-elevated); }
html[data-admin-theme="night"] .admin-detail-head .admin-address-results .admin-address-result:hover { background: #303a44; }

html[data-admin-theme="night"] .admin-company-tabs,
html[data-admin-theme="night"] .admin-customer-tabs,
html[data-admin-theme="night"] .admin-rider-tabs { border-color: var(--admin-night-line); background: #202427; }
html[data-admin-theme="night"] .admin-company-tab.active,
html[data-admin-theme="night"] .admin-customer-tabs button.active,
html[data-admin-theme="night"] .admin-rider-tabs button.active { color: #fff; border-color: #7397d4; background: #526f9f; }
html[data-admin-theme="night"] .admin-setting-subframe-host { box-shadow: none; }
html[data-admin-theme="night"] .admin-setting-subframe { background: var(--admin-night-surface); }
html[data-admin-theme="night"] .admin-map-frame,
html[data-admin-theme="night"] .admin-rider-map-stage { border-color: var(--admin-night-line); background: #20272b; }

html[data-admin-theme="night"] .admin-confirm-modal,
html[data-admin-theme="night"] .admin-dialog-layer,
html[data-admin-theme="night"] .admin-staff-modal { background: rgba(5, 7, 8, .7); }
html[data-admin-theme="night"] .admin-confirm-copy h3,
html[data-admin-theme="night"] .admin-confirm-copy p,
html[data-admin-theme="night"] .admin-dialog-message,
html[data-admin-theme="night"] .admin-staff-modal-title { color: var(--admin-night-text); }
html[data-admin-theme="night"] .admin-confirm-actions,
html[data-admin-theme="night"] .admin-dialog-actions,
html[data-admin-theme="night"] .admin-staff-modal-head,
html[data-admin-theme="night"] .admin-staff-modal-actions { border-color: var(--admin-night-line); background: #252a2e; }
html[data-admin-theme="night"] .admin-confirm-actions .cancel,
html[data-admin-theme="night"] .admin-dialog-actions button:not(.primary),
html[data-admin-theme="night"] .admin-staff-modal-actions .close { color: #d4d9dd; border-color: #4b535a; background: #343a3f; }
html[data-admin-theme="night"] .admin-shared-datetime-time,
html[data-admin-theme="night"] .admin-shared-datetime-calendar { color: var(--admin-night-text); border-color: var(--admin-night-line); background: #24292d; }

html[data-admin-theme="night"] .admin-notice-list-panel,
html[data-admin-theme="night"] .admin-notice-table,
html[data-admin-theme="night"] .admin-notice-table-body,
html[data-admin-theme="night"] .admin-notice-row,
html[data-admin-theme="night"] .admin-notice-detail { color: var(--admin-night-text); border-color: var(--admin-night-line); background: var(--admin-night-surface); }
html[data-admin-theme="night"] .admin-notice-row:hover,
html[data-admin-theme="night"] .admin-notice-row.selected { background: var(--admin-night-blue-soft); }
html[data-admin-theme="night"] .admin-notice-date { color: #9aa3ad; }
html[data-admin-theme="night"] .admin-notice-title-wrap span { color: var(--admin-night-text); }
html[data-admin-theme="night"] .admin-notice-grade { color: #c7cfd5; border-color: #465058; background: #2a3034; }
html[data-admin-theme="night"] .admin-notice-grade.live { color: #a5d9bc; border-color: #496856; background: #233b31; }
html[data-admin-theme="night"] .admin-notice-grade.all { color: #f0ca8d; border-color: #79633f; background: #443624; }
html[data-admin-theme="night"] .admin-inquiry-row,
html[data-admin-theme="night"] .admin-inquiry-detail,
html[data-admin-theme="night"] .admin-inquiry-question textarea,
html[data-admin-theme="night"] .admin-inquiry-answer textarea { color: var(--admin-night-text); border-color: var(--admin-night-line); background: var(--admin-night-surface); }
html[data-admin-theme="night"] .admin-inquiry-row.head { background: var(--admin-night-blue-soft); }
html[data-admin-theme="night"] .admin-inquiry-row:hover,
html[data-admin-theme="night"] .admin-inquiry-row.active { background: var(--admin-night-blue-soft); }
html[data-admin-theme="night"] .admin-inquiry-question textarea { background: var(--admin-night-blue-soft); }
html[data-admin-theme="night"] .admin-inquiry-meta dt { color: var(--admin-night-muted); }
html[data-admin-theme="night"] .admin-inquiry-meta { background: var(--admin-night-blue-soft); }

html[data-admin-theme="night"] body.login-page,
html[data-admin-theme="night"] .login-shell { background: #141719 !important; }
html[data-admin-theme="night"] .login-panel { color: var(--admin-night-text); border-color: var(--admin-night-line); background: var(--admin-night-surface); box-shadow: var(--admin-shadow); }
html[data-admin-theme="night"] .login-panel :where(label, h1) { color: var(--admin-night-text); }

html[data-admin-theme="night"] body.store-frame-page,
html[data-admin-theme="night"] body.store-frame-page :where(.manage-shell, .manage-main, .manage-content, .store-manage-content, .store-manage-view, .store-frame-shell, .store-manage-frame-stack) {
  color: var(--admin-night-text);
  background: var(--admin-night-page) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .manage-modal-panel,
  .manage-modal-body,
  .store-manage-section,
  .store-admin-inline-form,
  .store-admin-inline-grid,
  .store-info-card,
  .store-operation-card,
  .store-env-card,
  .coupon-list-section,
  .coupon-form-surface,
  .coupon-card,
  .advertisement-section-header,
  .advertisement-summary-card,
  .advertisement-flag-card,
  .advertisement-pay-box,
  .advertisement-pay-message
) {
  color: var(--admin-night-text);
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-surface) !important;
  background-image: none !important;
  box-shadow: none;
}

html[data-admin-theme="night"] body.store-frame-page :where(.store-field, .store-info-row, .store-operation-row, .store-env-row, .coupon-row, .advertisement-row) {
  color: var(--admin-night-text);
  border-color: var(--admin-night-line-soft) !important;
  background: var(--admin-night-elevated) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(.ghost-button, .text-button, .toggle-chip, .store-tab):not(.active) { color: #d2d7db; border-color: var(--admin-night-line); background: var(--admin-night-elevated); }
html[data-admin-theme="night"] body.store-frame-page :where(.store-tab.active, .coupon-search-toggle.active, .coupon-search-toggle[aria-pressed="true"]) { color: #fff; border-color: #7397d4; background: #526f9f; background-image: none; }
html[data-admin-theme="night"] body.advertisement-page {
  --advertisement-surface: #1e2225;
  --advertisement-surface-strong: #282d31;
  --advertisement-border: #454c52;
  --advertisement-border-strong: #4e6077;
  --advertisement-text: #edf0f2;
  --advertisement-subtle: #adb5bc;
  --advertisement-accent: #e08373;
  --advertisement-accent-soft: #432d29;
  --advertisement-blue: #7ca3df;
  --advertisement-blue-soft: #28384d;
  --advertisement-success: #70c08a;
  --advertisement-success-soft: #263b2c;
  --advertisement-grid-line: #2c3237;
}

/* Complete the night palette for operational panels that retain day colors. */
html[data-admin-theme="night"] :where(
  .admin-customer-info-panel,
  .admin-customer-list,
  .admin-customer-history-panel,
  .admin-customer-history-pages,
  .admin-customer-pager,
  .admin-notice-pager,
  .admin-notice-editor-area,
  .admin-notice-attach-list,
  .admin-notice-target-panel
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] :where(
  .admin-customer-info-panel,
  .admin-customer-list,
  .admin-customer-history-panel,
  .admin-customer-history-pages
) :where(strong, b, label) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] :where(
  .admin-customer-info-panel button:not(.active),
  .admin-customer-pager button,
  .admin-notice-pager button,
  .admin-settle-pager button,
  .admin-settle-date-button,
  .admin-map-center-copy
) {
  color: #cbd2d8 !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] :where(.admin-customer-pager button, .admin-notice-pager button, .admin-settle-pager button):disabled {
  color: #77818a !important;
  background: #202427 !important;
}

html[data-admin-theme="night"] :where(
  .admin-notice-segment,
  .admin-settle-target-chip,
  .admin-settle-total
) {
  color: #d5dbe0 !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
}

html[data-admin-theme="night"] .admin-notice-target-remove,
html[data-admin-theme="night"] .admin-notice-editor button.danger {
  color: #efb0b5 !important;
  border-color: #805056 !important;
  background: var(--admin-night-red-soft) !important;
}

html[data-admin-theme="night"] :where(
  .admin-settle-manual-payout button,
  .admin-notice-target-actions button
):disabled {
  color: #7f8992 !important;
  border-color: var(--admin-night-line) !important;
  background: #202427 !important;
  opacity: 1;
}

html[data-admin-theme="night"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-admin-theme="night"] ::-webkit-scrollbar-track { background: #171a1d; }
html[data-admin-theme="night"] ::-webkit-scrollbar-thumb { border: 2px solid #171a1d; border-radius: 8px; background: #4b535a; }
html[data-admin-theme="night"] ::selection { color: #fff; background: #5779ad; }

/* Settlement uses a quiet warm-neutral palette in night mode. */
html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-topbar-main {
  background: #393a38;
}

html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-main-nav > button.active {
  color: #f3eee7;
  border-color: #827361;
  background: #665a4d;
}

html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-main-nav > button.active i {
  color: #f3eee7;
}

html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-settle-view-switch::before,
html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-theme-switch button.active {
  background: #665a4d;
}

html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-main-nav .admin-settle-view-switch button.active,
html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-theme-switch button.active {
  color: #f3eee7;
  border-color: #827361;
  background: #665a4d;
}

html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] #adminSearchButton,
html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-tree-tabs button.active {
  color: #f4eee7;
  border-color: #786a5c;
  background: #786a5c;
}

html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] :where(#adminSearchPrevButton, #adminSearchNextButton) {
  background: #555957;
}

html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] #adminResetButton {
  background: #70726d;
}

html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-tree-item[data-level="store"] .admin-tree-icon {
  color: #b8a68f;
}

html[data-admin-theme="night"] body.admin-settle-page {
  --admin-blue: #a8957d;
  --admin-navy: #7b6e60;
}

html[data-admin-theme="night"] body.admin-settle-page :where(.admin-settle-period > span, .admin-settle-search > span, .admin-settle-filter em, .admin-settle-manual-payout-target) {
  color: #aaa8a2;
}

html[data-admin-theme="night"] body.admin-settle-page :where(input, select, textarea):focus,
html[data-admin-theme="night"] body.admin-settle-page .admin-settle-date-input.is-calendar-open {
  border-color: #a8957d !important;
  box-shadow: 0 0 0 2px rgba(168, 149, 125, .2) !important;
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-mode-tabs button.active {
  color: #f4eee7;
  border-color: #786a5c;
  background: #665a4e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

html[data-admin-theme="night"] body.admin-settle-page :where(
  .admin-settle-mode-tabs button,
  .admin-settle-cate-button,
  .admin-settle-rider-type-button
):hover:not(.active) {
  color: #e4d7c8;
  border-color: #71665b;
  background: #35322e;
}

html[data-admin-theme="night"] body.admin-settle-page :where(
  .admin-settle-cate-button.active,
  .admin-settle-rider-type-button.active
) {
  color: #ece6df;
  border-color: #5f5952;
  background: #45423e;
}

html[data-admin-theme="night"] body.admin-settle-page :where(
  .admin-settle-cate-button.active,
  .admin-settle-rider-type-button.active
):hover {
  color: #f4eee7;
  border-color: #786a5c;
  background: #5f554a;
  box-shadow: 0 0 0 2px rgba(168, 149, 125, .14);
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-grid-row.head {
  color: #f0ece7;
  background: linear-gradient(180deg, #575550, #474642) !important;
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-grid-cell.plus,
html[data-admin-theme="night"] body.admin-settle-page .admin-settle-order-detail-row .feeinfo span.ledger.plus b,
html[data-admin-theme="night"] body.admin-settle-page .admin-settle-rider-summary b.is-positive {
  color: #a9c4ae;
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-grid-cell.strong,
html[data-admin-theme="night"] body.admin-settle-page .admin-settle-order-detail-row :where(
  .admin-settle-order-menu-amount,
  .admin-settle-manager-amount
),
html[data-admin-theme="night"] body.admin-settle-page .admin-settle-order-detail-row .feeinfo span.total b {
  color: #d6bea0;
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-grid-body .admin-settle-grid-row.has-order-detail:hover {
  color: #e2d5c5;
  background: #302e2a !important;
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-payment-status button.active {
  border-color: #786a5c;
  background: #342f2a !important;
  box-shadow: inset 0 0 0 1px rgba(168, 149, 125, .18);
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-payment-status button.active b {
  color: #d6bea0;
}

html[data-admin-theme="night"] body.admin-settle-page ::selection {
  color: #fff;
  background: #786a5c;
}

/* Night audit: cover late-loaded store, notice, terms and delivery modules. */
html[data-admin-theme="night"] :where(
  .admin-company-tab.active,
  .admin-customer-tabs button.active,
  .admin-rider-tabs button.active,
  .admin-tree-tabs button.active,
  body.store-frame-page .store-tab.active,
  body.store-frame-page .coupon-search-toggle.active,
  body.store-frame-page .coupon-toggle-button.active
) {
  color: #f4eee7 !important;
  border-color: #8c7965 !important;
  background: #6c5e50 !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-search-toggle:not(.active),
  .coupon-toggle-button:not(.active),
  .coupon-toggle-group,
  .store-biz-time-row,
  .store-biz-mini-button:not(.active),
  .store-env-control-card,
  .store-env-discount-card,
  .store-env-stepper-value,
  .store-env-discount-item,
  .manage-empty,
  .manage-empty.compact
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-label,
  .coupon-name,
  .coupon-period-text,
  .coupon-line-meta,
  .store-env-control-label,
  .store-env-discount-item,
  .store-env-discount-item span,
  .store-biz-time-row strong
) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .store-biz-mini-button.active,
  .store-env-discount-item.selected
) {
  color: #eadccc !important;
  border-color: #8c7965 !important;
  background: #3d3933 !important;
  background-image: none !important;
}

html[data-admin-theme="night"] .admin-terms-mail {
  border-left-color: var(--admin-night-line) !important;
  background: transparent !important;
}

html[data-admin-theme="night"] .admin-terms-mail-row {
  border-bottom-color: var(--admin-night-line) !important;
  color: var(--admin-night-text) !important;
  background: transparent !important;
}

html[data-admin-theme="night"] :where(
  .admin-terms-editor,
  .admin-terms-use-toggle,
  .admin-toggle-buttons,
  .admin-delivery-source-panel,
  .admin-delivery-source-list,
  .admin-delivery-source-row
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] :where(
  .admin-terms-editor label span,
  .admin-terms-status,
  .admin-delivery-base-actions label,
  .admin-delivery-controls label,
  .admin-delivery-controls em,
  .admin-settle-grid-cell.etc
) {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] :where(
  .admin-delivery-source-open,
  .admin-delivery-controls button.draw-start,
  .admin-delivery-controls button.draw-end,
  .admin-delivery-controls button.delete,
  .admin-delivery-source-head button
) {
  color: #dedbd5 !important;
  border-color: #555d53 !important;
  background: #30352f !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] :where(
  .admin-notice-filter > span,
  .admin-notice-cell.muted,
  .admin-notice-reply-icon,
  .admin-notice-editor label,
  .admin-notice-target-row span
) {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] :where(
  .admin-notice-target-badge.system,
  .admin-notice-target-badge.head,
  .admin-notice-target-badge.agency,
  .admin-notice-target-badge.branch,
  .admin-notice-target-badge.team,
  .admin-notice-target-badge.cust,
  .admin-notice-target-badge.member,
  .admin-notice-target-badge.store,
  .admin-notice-target-badge.biz,
  .admin-notice-target-badge.rider
) {
  color: #e5e1da !important;
  border: 1px solid #555d53 !important;
  background: #30352f !important;
}

html[data-admin-theme="night"] :where(
  .admin-notice-filter button:not(:disabled),
  .admin-notice-editor button:not(.danger):not(:disabled),
  .admin-notice-target-actions button:not(:disabled)
) {
  color: #e5e1da !important;
  border-color: #555d53 !important;
  background: #30352f !important;
}

html[data-admin-theme="night"] .admin-settle-manual-payout-status.warning {
  color: #e1c28f !important;
}

html[data-admin-theme="night"] body.admin-settle-page :where(
  .admin-settle-grid-cell.etc,
  .admin-settle-order-detail-row span:not(.plus):not(.minus),
  .admin-settle-manual-payout-status:not(.success):not(.error)
) {
  color: #bbb7b0 !important;
}

html[data-admin-theme="night"] body.admin-card-register-page {
  --bg: var(--admin-night-page);
  --sheet: var(--admin-night-surface);
  --ink: var(--admin-night-text);
  --muted: var(--admin-night-muted);
  --line: var(--admin-night-line);
  --ghost: var(--admin-night-elevated);
  background: var(--admin-night-page) !important;
  background-image: none !important;
}

html[data-admin-theme="night"] body.admin-card-register-page main[data-id="page"],
html[data-admin-theme="night"] body.admin-card-register-page .notice-panel {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-surface) !important;
  background-image: none !important;
  box-shadow: var(--admin-shadow) !important;
}

html[data-admin-theme="night"] body.admin-card-register-page :where(
  .customer-type,
  .customer-type span,
  .saved-card,
  .saved-card-toggle,
  .saved-card-delete,
  .notice-cancel,
  .notice-icon
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.admin-card-register-page :where(
  .notice-title,
  .notice-body,
  .saved-card-name,
  .field label
) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] body.admin-card-register-page .merchant-card-policy-note {
  color: #e1c28f !important;
  border-color: #75613a !important;
  background: #3d3423 !important;
}

html[data-admin-theme="night"] :where(#adminSearchPrevButton, #adminSearchNextButton) {
  color: #e5e1da !important;
  border-color: #555d53 !important;
  background: #4a4f49 !important;
}

html[data-admin-theme="night"] .admin-settle-pager > span,
html[data-admin-theme="night"] .admin-settle-pager > span :where(b, em) {
  color: #bbb7b0 !important;
}

html[data-admin-theme="night"] .admin-tree-balance.low,
html[data-admin-theme="night"] .admin-tree-item.active .admin-tree-balance.low,
html[data-admin-theme="night"] .admin-tree-item .admin-tree-balance.low {
  color: #ff918a !important;
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-filter :where(#settleSearchButton, #adminRefreshButton, #settleExcelButton) {
  color: #fff !important;
  background: #6f6253 !important;
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-filter :where(#settleSearchButton, #adminRefreshButton, #settleExcelButton):hover {
  background: #7d705f !important;
}

/* Final night pass for desktop management subpages. */
html[data-admin-theme="night"] :where(
  .admin-notice-list-head,
  .admin-notice-editor-head,
  .admin-notice-target-head,
  .admin-notice-table,
  .admin-notice-pager,
  .admin-notice-segment,
  .admin-notice-target-box,
  .admin-notice-editor-area
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-surface) !important;
  background-image: none !important;
}

html[data-admin-theme="night"] :where(
  .admin-notice-list-head strong,
  .admin-notice-list-head span,
  .admin-notice-list-head b,
  .admin-notice-list-head em,
  .admin-notice-editor-head strong,
  .admin-notice-target-head strong,
  .admin-notice-pager span,
  .admin-notice-pager b,
  .admin-notice-pager em
) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] :where(
  [data-notice-reply-button],
  .admin-notice-pager button,
  .admin-notice-segment button:not(.active),
  .admin-notice-target-actions button
) {
  color: #e5e1da !important;
  border-color: #555d53 !important;
  background: #30352f !important;
  background-image: none !important;
}

html[data-admin-theme="night"] :where(
  .admin-notice-segment button.active,
  .admin-notice-filter button.primary,
  .admin-notice-actions button.primary
) {
  color: #f4eee7 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
  background-image: none !important;
}

html[data-admin-theme="night"] .admin-call-register-message.error {
  color: #ff918a !important;
}

html[data-admin-theme="night"] body.admin-card-register-page button[data-id="scan"] {
  color: #e9ddcd !important;
  border-color: #665b4e !important;
  background: #3b352e !important;
}

html[data-admin-theme="night"] body.admin-card-register-page button[data-id="submit"] {
  color: #fff !important;
  background: #a6534d !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .manage-shell,
  .manage-content,
  .store-manage-content,
  .store-section-body
) {
  color: var(--admin-night-text) !important;
  background: var(--admin-night-page) !important;
  background-image: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .store-section,
  .store-section-head,
  .store-admin-inline-field,
  .store-admin-image-head,
  .store-admin-image-box,
  .store-biz-time-row,
  .store-biz-time-head,
  .store-biz-time-body,
  .store-biz-holiday-item,
  .store-env-control-card,
  .store-env-discount-card,
  .store-env-discount-item,
  .store-env-stepper-value,
  .coupon-search-card,
  .coupon-list-head,
  .coupon-list-section,
  .coupon-row,
  .advertisement-summary-card,
  .advertisement-flag-card
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .store-admin-inline-field,
  .store-admin-inline-field > span,
  .store-admin-image-title-stack,
  .store-image-size-text,
  .store-biz-time-row,
  .store-biz-time-row strong,
  .store-env-control-label,
  .store-env-unit,
  .coupon-label,
  .coupon-name,
  .coupon-period-text,
  .coupon-line-meta,
  .coupon-date-separator,
  #couponAmountUnit,
  .advertisement-summary-card span
) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .store-image-size-text,
  .store-env-unit,
  .coupon-line-meta,
  .coupon-date-separator,
  #couponAmountUnit,
  .advertisement-summary-card span
) {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-search-toggle.active,
  .coupon-toggle-button.active,
  .store-admin-toggle-buttons button.active,
  .store-biz-mini-button.active,
  .store-env-discount-item.selected,
  [aria-pressed="true"]
) {
  color: #f3eee7 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .action-button.accent,
  .ghost-button,
  .store-env-discount-delete
) {
  color: #e5e1da !important;
  border-color: #555d53 !important;
  background: #30352f !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page .action-button.accent {
  color: #fff !important;
  border-color: #6f6253 !important;
  background: #6f6253 !important;
}

html[data-admin-theme="night"] body.admin-frame-page #adminRefreshButton {
  color: #e5e1da !important;
  border-color: #555d53 !important;
  background: #4b4f49 !important;
}

html[data-admin-theme="night"] .admin-notice-page :where(
  .admin-notice-option-title > span,
  .admin-notice-editor-options.line > span,
  .admin-notice-field > span,
  .admin-notice-field.conts > span
) {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] .admin-delivery-page :where(
  .admin-delivery-head button,
  .admin-delivery-source-head button,
  .admin-delivery-controls button,
  button.save
) {
  color: #fff !important;
  border-color: #6f6253 !important;
  background: #6f6253 !important;
  background-image: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .store-biz-select-row > span,
  .store-env-count-note,
  .coupon-total-count
) {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .admin-toggle-buttons button:not(.active),
  .store-admin-toggle-buttons button:not(.active),
  .coupon-search-toggle:not(.active),
  .coupon-toggle-button:not(.active)
) {
  color: #c8cdd0 !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
}

/* Keep selected navigation controls distinct without a day-theme glare. */
html[data-admin-theme="night"] .admin-main-nav > button.active,
html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-main-nav > button.active,
html[data-admin-theme="night"] .admin-theme-switch button.active,
html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-theme-switch button.active {
  color: #f3eee7 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
}

html[data-admin-theme="night"] .admin-main-nav > button.active i,
html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-main-nav > button.active i {
  color: #f3eee7 !important;
}

html[data-admin-theme="night"] .admin-settle-view-switch::before,
html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-settle-view-switch::before {
  background: #665a4d !important;
}

html[data-admin-theme="night"] .admin-main-nav .admin-settle-view-switch button.active,
html[data-admin-theme="night"] body.admin-page[data-admin-section="settle"] .admin-main-nav .admin-settle-view-switch button.active {
  color: #f3eee7 !important;
  border-color: transparent !important;
  background: transparent !important;
}

/* Hidden and dynamically opened admin surfaces must already carry the night palette. */
html[data-admin-theme="night"] :where(
  .admin-rider-directory-title,
  .admin-rider-directory-row,
  .admin-rider-directory-row.head
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
}

html[data-admin-theme="night"] .admin-rider-directory-row.head {
  color: var(--admin-night-muted) !important;
  background: var(--admin-night-soft) !important;
}

/* Keep grid cell separators as quiet as each row's horizontal divider. */
html[data-admin-theme="night"] [class*="admin-"][class*="-row"] > :where(div, span, th, td),
html[data-admin-theme="night"] .admin-order-table :where(th, td) {
  border-left-color: var(--admin-night-line-soft) !important;
  border-right-color: var(--admin-night-line-soft) !important;
}

html[data-admin-theme="night"] .admin-rider-directory-row.admin-rider-directory-row > span {
  border-right-color: var(--admin-night-line) !important;
}

html[data-admin-theme="night"] .admin-rider-directory-row.admin-rider-directory-row.head > span {
  border-right-color: var(--admin-night-line-soft) !important;
}

html[data-admin-theme="night"] .admin-settle-payment-finance-groups .admin-settle-payment-detail-items + .admin-settle-payment-detail-items {
  border-left-color: var(--admin-night-line-soft) !important;
}

html[data-admin-theme="night"] body.admin-settle-page :where(
  .admin-settle-payment-detail-line.menu,
  .admin-settle-payment-detail-line.meta > span,
  .admin-settle-payment-detail-line.card,
  .admin-settle-payment-detail-line.finance
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-payment-detail-line.meta > span.address {
  background: var(--admin-night-green-soft) !important;
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-payment-detail-line.meta > span.memo {
  background: var(--admin-night-orange-soft) !important;
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-payment-detail-line :where(strong, b) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] body.admin-settle-page .admin-settle-payment-detail-line em {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] :where(
  .admin-call-receive-panel,
  .admin-call-receive-frames
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-surface) !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] :where(
  .admin-store-ad-chip,
  .admin-store-ad-chip.cash,
  .admin-store-ad-chip.fee
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
}

html[data-admin-theme="night"] .admin-store-ad-chip.cash {
  color: #e8c58e !important;
  border-color: #6a5531 !important;
  background: #3c3221 !important;
}

html[data-admin-theme="night"] :where(
  .admin-staff-auth-line,
  .admin-staff-image-preview
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
}

html[data-admin-theme="night"] .admin-staff-auth-line :where(span, label) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] .admin-staff-image-toolbar button.delete {
  color: #ffaaa4 !important;
  border-color: #704a4a !important;
  background: #442e2e !important;
}

html[data-admin-theme="night"] .admin-settle-rider-summary > span,
html[data-admin-theme="night"] .admin-settle-payment-metrics span,
html[data-admin-theme="night"] .admin-settle-payment-status button {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
}

html[data-admin-theme="night"] .admin-settle-rider-summary .delivery-total {
  background: #30342f !important;
}

html[data-admin-theme="night"] .admin-settle-rider-summary .income {
  background: var(--admin-night-green-soft) !important;
}

html[data-admin-theme="night"] .admin-settle-rider-summary .expense {
  background: var(--admin-night-red-soft) !important;
}

html[data-admin-theme="night"] .admin-settle-rider-summary .profit {
  background: #38333f !important;
}

html[data-admin-theme="night"] :where(
  #adminRiderMapRefresh,
  .admin-rider-map-message,
  .admin-rider-map-missing-list
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: rgba(37, 42, 46, .96) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] .admin-rider-map-missing-list strong {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] :where(
  #adminOrderSearchButton,
  #adminCustomerSearchButton,
  .admin-customer-search-row button,
  .admin-order-refresh-number
) {
  color: #fff !important;
  border-color: #827361 !important;
  background: #665a4d !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] :where(
  .admin-staff-field > span,
  .admin-staff-image-title,
  .admin-customer-list-head strong,
  .admin-customer-info-head strong,
  .admin-rider-map-head strong,
  #adminRiderMapScope,
  .admin-rider-map-summary b
) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] :where(
  .admin-settle-rider-summary > span > em,
  .admin-settle-rider-summary > span > b,
  .admin-settle-total > em,
  .admin-settle-total > b,
  .admin-settle-payment-metrics span > em,
  .admin-settle-payment-metrics span > b,
  .admin-settle-payment-status button > em,
  .admin-settle-payment-status button > b
) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] .admin-settle-rider-summary > span > em {
  color: var(--admin-night-muted) !important;
}

/* Final night pass for deferred admin and embedded store-setting surfaces. */
html[data-admin-theme="night"] :where(
  #adminAddButton,
  #adminTermsReloadButton,
  .admin-delivery-source-title
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] :where(
  #adminNoticeTotal,
  .admin-notice-pager span,
  .admin-notice-list-head > span,
  .admin-notice-target-head > span
) {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  label,
  label > span,
  .store-admin-inline-field,
  .store-admin-inline-field > span,
  .store-parking-inline-field,
  .store-env-delivery-field > span,
  .store-env-delivery-unit,
  .store-admin-image-title-stack,
  .store-single-image-title,
  #storeEnvDeliveryModalTitle,
  .manage-modal-head h3,
  .manage-modal-header h3,
  .store-segment-group > span
) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] :where(
  .manage-modal-head,
  .manage-modal-header,
  .manage-modal-actions,
  .store-admin-inline-actions,
  .store-address-search-results,
  .store-image-preview-wrap,
  .store-file-name,
  .store-image-empty,
  .advertisement-search-results,
  .advertisement-pay-message,
  .advertisement-period-time-badge,
  #flagPayAllMessage
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .icon-button,
  .manage-modal-head button,
  .manage-modal-header button,
  .manage-modal-actions button,
  .store-env-delivery-draw-start,
  .store-env-delivery-draw-end
) {
  color: #e5e1da !important;
  border-color: #555d53 !important;
  background: #30352f !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .store-env-delivery-map,
  .store-segment-control label
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
}

/* Advertisement cards embedded in the desktop admin retain legacy day colors. */
html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page :where(
  .advertisement-section-title,
  .advertisement-total-count,
  .admin-legacy-flag-shell,
  .admin-legacy-flag-create-title
) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-flag-list {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: #181c1f !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015) !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-flag-summary-row {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line-soft) !important;
  background: var(--admin-night-elevated) !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-flag-summary-row span {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-flag-summary-row i,
html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-flag-summary-row strong {
  color: #e4b879 !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-flag-card {
  color: var(--admin-night-text) !important;
  border-color: #485057 !important;
  background: #252a2e !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18) !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-flag-line {
  color: #d9dee2 !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-flag-line .period-end {
  color: #e2bb80 !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-badge.orange {
  color: #e8bc7b !important;
  border-color: #765a34 !important;
  background: #453522 !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-badge.blue {
  color: #e1e5e8 !important;
  border-color: #596269 !important;
  background: #33393e !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-badge.green {
  color: #a9dec7 !important;
  border-color: #477460 !important;
  background: #203c34 !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-button.blue {
  color: #e2e6e9 !important;
  border-color: #5b646b !important;
  background: #33393e !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-button.green {
  color: #a9dec7 !important;
  border-color: #477460 !important;
  background: #203c34 !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-button.red {
  color: #e9b0bd !important;
  border-color: #744b56 !important;
  background: #452a30 !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page :where(
  .admin-legacy-button,
  .admin-legacy-pay-all,
  .advertisement-flag-page-button,
  .advertisement-section-header-actions .action-button
):focus-visible {
  outline: 2px solid #c9ad86 !important;
  outline-offset: 1px;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page :where(
  .admin-legacy-button,
  .advertisement-flag-page-button,
  .advertisement-section-header-actions .action-button
):hover:not(:disabled) {
  filter: brightness(1.14);
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page :where(
  .admin-legacy-button,
  .admin-legacy-pay-all
):disabled {
  color: #7f8991 !important;
  border-color: #3f464c !important;
  background: #252a2e !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-pay-all {
  color: #f8eef1 !important;
  border-color: #835363 !important;
  background: #704452 !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .advertisement-flag-page-button {
  color: #d7dce0 !important;
  border-color: #4b535a !important;
  background: #2d3337 !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .advertisement-flag-page-button.active {
  color: #f4eee6 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .advertisement-flag-page-button:disabled {
  color: #788188 !important;
  border-color: #3e454b !important;
  background: #24292d !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .advertisement-section-header-actions .action-button {
  color: #e3e7ea !important;
  border-color: #545d64 !important;
  background: #30363b !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .advertisement-section-header-actions .action-button.accent {
  color: #f4eee6 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
}

html[data-admin-theme="night"] body.admin-shop-embed.advertisement-page .admin-legacy-flag-empty {
  color: #d9c5cb !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
}

/* Operational audit: deferred controls and overlays must not retain day surfaces. */
html[data-admin-theme="night"] :where(
  .admin-detail-search .admin-map-center-coordinate,
  .admin-settle-balance-flow-items > span,
  .admin-settle-date-picker,
  .admin-settle-date-picker-action:not(.primary),
  .admin-terms-tabs button:not(.active),
  .admin-setting-form,
  .admin-biz-address-line,
  .admin-company-pay-detail,
  .admin-company-rep-button:not(.active),
  .admin-delivery-item:not(.selected),
  .admin-company-tax-body,
  .admin-staff-image-path,
  .admin-customer-detail-tabs button:not(.active),
  .admin-rider-list,
  .admin-rider-toggle-group button:not(.active),
  .admin-rider-detail-actions,
  .admin-rider-special-add,
  .admin-rider-setting-page .admin-rider-tax-rate::after,
  .admin-rider-setting-page .admin-rider-picker-control button,
  .admin-menu-image-mode-tabs button:not(.active),
  .admin-menu-image-thumb > span,
  .admin-menu-image-manage button,
  .admin-menu-image-pager,
  .admin-menu-image-pager button,
  .admin-menu-image-preview
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] :where(
  .admin-company-pay-register-frame,
  .admin-menu-image-thumb > img,
  .admin-menu-image-preview img
) {
  background: var(--admin-night-surface) !important;
}

html[data-admin-theme="night"] :where(
  .admin-settle-balance-flow-items b,
  .admin-biz-address-line-text,
  .admin-company-table td,
  .admin-company-pay-detail-field > span,
  .admin-menu-image-pager span,
  .admin-menu-image-upload-actions span
) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] :where(
  .admin-settle-balance-flow-items em,
  .admin-biz-address-line-placeholder,
  .admin-staff-image-path,
  .admin-menu-image-preview div
) {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] .admin-company-table th {
  color: var(--admin-night-muted) !important;
  border-color: var(--admin-night-line-soft) !important;
  background: var(--admin-night-soft) !important;
}

html[data-admin-theme="night"] .admin-company-table tbody tr:hover {
  background: #2a3541 !important;
}

html[data-admin-theme="night"] :where(
  .admin-terms-tabs button.active,
  .admin-customer-detail-tabs button.active,
  .admin-rider-toggle-group button.active,
  .admin-menu-image-mode-tabs button.active
) {
  color: #f4eee7 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] :where(
  .admin-terms-tabs button:not(.active),
  .admin-customer-detail-tabs button:not(.active),
  .admin-rider-toggle-group button:not(.active),
  .admin-menu-image-mode-tabs button:not(.active),
  .admin-menu-image-manage button,
  .admin-menu-image-pager button,
  .admin-rider-setting-page .admin-rider-picker-control button
):hover {
  color: #e4d7c8 !important;
  border-color: #71665b !important;
  background: #35322e !important;
}

html[data-admin-theme="night"] .admin-company-rep-button.active {
  color: #a9dec7 !important;
  border-color: #477460 !important;
  background: var(--admin-night-green-soft) !important;
}

html[data-admin-theme="night"] .admin-delivery-item.selected {
  color: #f0c47f !important;
  border-color: #78613c !important;
  background: var(--admin-night-orange-soft) !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] :where(
  .admin-customer-order-status.wait,
  .admin-call-receive-state.ready,
  .admin-call-register-state.ready
) {
  color: #f0c984 !important;
  background: #3b3120 !important;
}

html[data-admin-theme="night"] .admin-menu-image-upload-actions button#menuImageClearFileButton {
  color: #efb0b5 !important;
  border-color: #805056 !important;
  background: var(--admin-night-red-soft) !important;
}

html[data-admin-theme="night"] .admin-settle-date-picker::after {
  border-color: var(--admin-night-line-soft) !important;
}

html[data-admin-theme="night"] :where(
  .admin-settle-date-picker-title,
  .admin-settle-date-cell
) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] .admin-settle-date-picker-weekdays,
html[data-admin-theme="night"] .admin-settle-date-cell.is-adjacent {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] .admin-settle-date-cell {
  border-color: transparent !important;
  background: var(--admin-night-soft) !important;
}

html[data-admin-theme="night"] .admin-settle-date-cell:hover {
  color: #dce8f8 !important;
  border-color: #60758d !important;
  background: #2a3541 !important;
}

html[data-admin-theme="night"] .admin-settle-date-cell.is-today {
  color: #f0c984 !important;
  border-color: #75613a !important;
  background: #3d3423 !important;
}

html[data-admin-theme="night"] .admin-settle-date-cell.is-selected {
  color: #f4eee7 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
}

html[data-admin-theme="night"] .admin-rider-map-marker {
  color: var(--admin-night-text) !important;
  border-color: #69747f !important;
  background: rgba(37, 42, 46, .97) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .3) !important;
}

html[data-admin-theme="night"] .admin-rider-map-marker::after {
  background: var(--admin-night-elevated) !important;
}

html[data-admin-theme="night"] .admin-rider-map-marker.live { color: #a9dec7 !important; border-color: #477460 !important; }
html[data-admin-theme="night"] .admin-rider-map-marker.stale { color: #f0c984 !important; border-color: #75613a !important; }
html[data-admin-theme="night"] .admin-rider-map-marker.store { color: #e9b097 !important; border-color: #855947 !important; }
html[data-admin-theme="night"] .admin-rider-map-marker.selected { color: #c4d3ef !important; border-color: #7189af !important; }
html[data-admin-theme="night"] .admin-rider-map-marker :where(i, em) { color: inherit !important; }

/* The order editor is rendered dynamically after load, so every state needs an explicit night surface. */
html[data-admin-theme="night"] body.admin-call-receive-page,
html[data-admin-theme="night"] body.admin-call-receive-page :where(
  .admin-call-receive-editor,
  .admin-call-receive-body,
  .admin-call-register-host,
  .admin-call-register-shell,
  .admin-call-register-scroll
) {
  color: var(--admin-night-text) !important;
  background: var(--admin-night-page) !important;
  background-image: none !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page :where(
  .admin-call-receive-panel,
  .admin-call-receive-frames,
  .admin-call-receive-frame,
  .admin-call-receive-field,
  .admin-call-receive-section,
  .admin-call-receive-total-item,
  .admin-call-history,
  .admin-call-rider-view,
  .admin-call-payment-view,
  .admin-call-register-address-results,
  .admin-call-register-menu-pane,
  .admin-call-register-cart-pane,
  .admin-call-payment-summary,
  .admin-call-payment-grid,
  .admin-call-menu-picker,
  .admin-call-dialog
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page :where(
  .admin-call-receive-head,
  .admin-call-receive-section h2,
  .admin-call-history-head,
  .admin-call-register-stores,
  .admin-call-register-viewbar,
  .admin-call-rider-view-head,
  .admin-call-register-footer,
  .admin-call-register-statusbar,
  .admin-call-menu-picker > header,
  .admin-call-menu-picker-body,
  .admin-call-menu-picker > footer
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page :where(
  .admin-call-receive-tab-item:not(.active),
  .admin-call-receive-reload,
  .admin-call-register-stores button:not(.active),
  .admin-call-register-payment-readonly > strong,
  .admin-call-register-segment span,
  .admin-call-register-origin,
  .admin-call-register-pickup-note,
  .admin-call-register-search-results button,
  .admin-call-register-customer-addresses,
  .admin-call-register-customer-addresses button,
  .admin-call-register-menu-grid > button,
  .admin-call-register-qty,
  .admin-call-register-qty button,
  .admin-call-register-qty b,
  .admin-call-register-toggle,
  .admin-call-register-benefit-grid label,
  .admin-call-register-benefit-readonly,
  .admin-call-register-coupon-use label span,
  .admin-call-register-viewtabs,
  .admin-call-register-viewtabs button:not(.active),
  .admin-call-rider-card:not(.selected),
  .admin-call-payment-field > span,
  .admin-call-payment-field > strong,
  .admin-call-menu-picker fieldset,
  .admin-call-menu-picker fieldset label,
  .admin-call-menu-picker-quantity,
  .admin-call-menu-picker-quantity-controls > button:not(.active),
  .admin-call-menu-picker > header .admin-call-menu-picker-icon-close,
  .admin-call-menu-picker > footer .admin-call-menu-picker-cancel,
  .admin-call-dialog footer button:not(.primary)
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page :where(
  .admin-call-receive-field strong,
  .admin-call-receive-info-row strong,
  .admin-call-receive-total-item strong,
  .admin-call-history-head strong,
  .admin-call-history-row > p,
  .admin-call-register-section-title > strong,
  .admin-call-register-origin strong,
  .admin-call-register-cart-heading > strong,
  .admin-call-payment-summary strong,
  .admin-call-payment-field > strong,
  .admin-call-register-statusbar > strong,
  .admin-call-menu-picker-title strong,
  .admin-call-menu-picker legend,
  .admin-call-menu-picker-quantity > strong
) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page :where(
  .admin-call-receive-field span,
  .admin-call-receive-total-item span,
  .admin-call-receive-menu-row span,
  .admin-call-receive-info-row span,
  .admin-call-history-head em,
  .admin-call-history-meta time,
  .admin-call-history-row > small,
  .admin-call-register-section-title > span,
  .admin-call-register-phone > span,
  .admin-call-register-address-search > span:first-child,
  .admin-call-register-address-basic label > span,
  .admin-call-register-address-detail label > span,
  .admin-call-register-requests label > span,
  .admin-call-register-cart-options,
  .admin-call-register-totals small,
  .admin-call-payment-summary small,
  .admin-call-payment-summary strong em,
  .admin-call-register-lock-message
) {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page :where(
  .admin-call-register-viewtabs button.active,
  .admin-call-register-segment input:checked + span
) {
  color: #f4eee7 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
  background-image: none !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page :where(
  .admin-call-register-menu-grid > button,
  .admin-call-register-search-results button,
  .admin-call-register-customer-addresses button,
  .admin-call-register-qty button,
  .admin-call-menu-picker fieldset label,
  .admin-call-menu-picker-quantity-controls > button:not(.active)
):hover:not(:disabled) {
  color: #e4d7c8 !important;
  border-color: #71665b !important;
  background: #35322e !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page .admin-call-rider-card.selected {
  color: #a9dec7 !important;
  border-color: #477460 !important;
  background: var(--admin-night-green-soft) !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page .admin-call-register-remove {
  color: #efb0b5 !important;
  border-color: #805056 !important;
  background: var(--admin-night-red-soft) !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page .admin-call-register-remove:hover:not(:disabled) {
  color: #ffd7da !important;
  border-color: #986067 !important;
  background: #563139 !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page .admin-call-payment-field {
  border-color: var(--admin-night-line-soft) !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page .admin-call-dialog header {
  color: #f4eee7 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page :where(
  .admin-call-register-shell.is-busy::after,
  .admin-call-register-active.is-busy::after
) {
  background: rgba(5, 7, 8, .48) !important;
}

/* Embedded store settings keep their layout, but all deferred content follows the admin night palette. */
html[data-admin-theme="night"] body.store-frame-page :where(
  .store-image-box,
  .store-info-item,
  .store-schedule-card,
  .store-metric-card,
  .store-delivery-group,
  .store-amount-box,
  .store-tile:not(.active),
  .badge:not(.hidden):not(.age19),
  .image-preview,
  .shop-sidebar,
  .sidebar-toggle,
  .coupon-empty,
  .coupon-page-button:not(.active),
  .advertisement-flag-state:not(.active):not(.expired):not(.pending),
  .advertisement-flag-no-anchor,
  .advertisement-flag-grid-label,
  .advertisement-flag-area-no-cell,
  .advertisement-modal-close,
  .advertisement-map.is-unavailable
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page .store-help-card {
  color: #a9dec7 !important;
  border-color: #477460 !important;
  background: var(--admin-night-green-soft) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .store-env-delivery-manage-actions .store-env-delivery-delete,
  .badge.hidden,
  .badge.age19,
  .coupon-line-show.hidden
) {
  color: #efb0b5 !important;
  border-color: #805056 !important;
  background: var(--admin-night-red-soft) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .store-tile.active,
  .coupon-page-button.active
) {
  color: #f4eee7 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-line-discount,
  .coupon-order-badge,
  .advertisement-flag-state.pending,
  .advertisement-flag-area-no,
  .advertisement-time-badge,
  .advertisement-period-time-badge
) {
  color: #f0c984 !important;
  border-color: #75613a !important;
  background: var(--admin-night-orange-soft) !important;
  background-image: none !important;
}

html[data-admin-theme="night"] body.store-frame-page .coupon-line-show.visible {
  color: #a9dec7 !important;
  border-color: #477460 !important;
  background: var(--admin-night-green-soft) !important;
}

html[data-admin-theme="night"] body.store-frame-page .advertisement-flag-state.expired {
  color: #efb0b5 !important;
  background: var(--admin-night-red-soft) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .advertisement-flag-no,
  .advertisement-flag-area-no,
  .advertisement-flag-grid-label,
  .advertisement-flag-area-no-cell
) {
  border-color: var(--advertisement-grid-line, var(--admin-night-line-soft)) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .advertisement-flag-no-anchor,
  .advertisement-flag-grid-label,
  .advertisement-flag-grid-value,
  .advertisement-flag-detail-row,
  .advertisement-flag-detail-meta,
  .advertisement-flag-period-range,
  .advertisement-flag-grid-actions,
  .advertisement-flag-grid-area,
  .advertisement-flag-area-no-cell
) {
  border-color: var(--advertisement-grid-line, var(--admin-night-line-soft)) !important;
}

html[data-admin-theme="night"] body.store-frame-page .area-mode-pill i {
  background: var(--admin-night-elevated) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-date-picker,
  .advertisement-date-picker
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-surface) !important;
  background-image: none !important;
  box-shadow: var(--admin-shadow) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-date-picker-title,
  .advertisement-date-picker-title,
  .coupon-date-cell,
  .advertisement-date-cell
) {
  color: var(--admin-night-text) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-date-picker-weekday,
  .advertisement-date-picker-weekday,
  .coupon-date-cell.is-adjacent,
  .advertisement-date-cell.is-adjacent
) {
  color: var(--admin-night-muted) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-date-picker-nav,
  .advertisement-date-picker-nav,
  .coupon-date-picker-action:not(.primary),
  .advertisement-date-picker-action:not(.primary)
) {
  color: #d7dce0 !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-date-picker-nav,
  .advertisement-date-picker-nav,
  .coupon-date-picker-action:not(.primary),
  .advertisement-date-picker-action:not(.primary),
  .coupon-date-cell:not(.is-selected):not(:disabled),
  .advertisement-date-cell:not(.is-selected):not(:disabled)
):hover {
  color: #e4d7c8 !important;
  border-color: #71665b !important;
  background: #35322e !important;
  transform: none;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-date-picker-action.primary,
  .advertisement-date-picker-action.primary,
  .coupon-date-cell.is-selected,
  .advertisement-date-cell.is-selected
) {
  color: #f4eee7 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-date-cell.is-disabled,
  .coupon-date-cell:disabled,
  .advertisement-date-cell.is-disabled,
  .advertisement-date-cell:disabled
) {
  color: #737d85 !important;
  background: transparent !important;
}

html[data-admin-theme="night"] body.store-frame-page .advertisement-area-body iframe {
  background: var(--admin-night-surface) !important;
}

/* Remaining native control states found by the literal light-surface pass. */
html[data-admin-theme="night"] :where(
  .admin-order-filter .admin-settle-date-field,
  .admin-order-status-buttons button:not(.active),
  .admin-settle-order-detail-row.call-detail > div.balanceflow,
  .admin-customer-pages,
  .admin-rider-setting-page .admin-rider-slide-toggle,
  .admin-staff-state,
  .admin-menu-image-use-group
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] .admin-order-status-buttons button:not(.active):hover {
  color: #e4d7c8 !important;
  border-color: #71665b !important;
  background: #35322e !important;
}

html[data-admin-theme="night"] :where(
  .admin-order-status-buttons button.active,
  .admin-rider-setting-page .admin-rider-slide-toggle::before,
  .admin-menu-image-use-group button.active
) {
  color: #f4eee7 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] :where(
  .admin-company-pay-order-badge,
  .admin-confirm-panel.is-question .admin-confirm-icon
) {
  color: #f0c984 !important;
  border-color: #75613a !important;
  background: var(--admin-night-orange-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] .admin-delivery-order {
  color: var(--admin-night-muted) !important;
  background: var(--admin-night-soft) !important;
}

html[data-admin-theme="night"] .admin-dialog-icon {
  color: #a9c5ef !important;
  background: var(--admin-night-blue-soft) !important;
}

html[data-admin-theme="night"] .admin-dialog-layer.tone-danger .admin-dialog-icon,
html[data-admin-theme="night"] .admin-confirm-icon {
  color: #efb0b5 !important;
  background: var(--admin-night-red-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] .admin-dialog-layer.tone-success .admin-dialog-icon {
  color: #a9dec7 !important;
  background: var(--admin-night-green-soft) !important;
}

html[data-admin-theme="night"] :where(
  .admin-customer-detail-actions button:disabled,
  .admin-notice-target-actions.disabled > button:first-of-type
) {
  color: #7f8992 !important;
  border-color: var(--admin-night-line) !important;
  background: #202427 !important;
  opacity: 1;
}

html[data-admin-theme="night"] .admin-menu-image-use-group button:not(.active):hover {
  color: #e4d7c8 !important;
  background: #35322e !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page :where(
  .admin-call-delivery-photo img,
  .admin-call-rider-card-icon,
  .admin-call-rider-card-state,
  .admin-call-payment-icon,
  .admin-call-register-source
) {
  color: var(--admin-night-muted) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-soft) !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page :where(
  .admin-call-rider-card-state.working,
  .admin-call-rider-card.selected .admin-call-rider-card-icon
) {
  color: #a9dec7 !important;
  background: var(--admin-night-green-soft) !important;
}

html[data-admin-theme="night"] body.admin-call-receive-page :where(
  .admin-call-register-cancel-control button:disabled,
  .admin-call-register-segment.disabled span,
  .admin-call-register-search-control button:disabled,
  .admin-call-register-actions button:disabled,
  .admin-call-payment-actions button:disabled,
  .admin-call-register-assignment button:disabled
) {
  color: #7f8992 !important;
  border-color: var(--admin-night-line) !important;
  background: #202427 !important;
  opacity: 1;
}

html[data-admin-theme="night"] body.store-frame-page .store-main-image-grid > .store-main-image-card + .store-main-image-card::before {
  background: var(--admin-night-line-soft) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .store-main-image-card .store-image-note,
  .store-flag-chip,
  .store-address-search-result-index,
  .store-env-delivery-switch,
  .store-delivery-order,
  .advertisement-search-result-index,
  .advertisement-search-result-pick
) {
  color: var(--admin-night-muted) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page .store-env-delivery-switch-thumb {
  background: #665a4d !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page .store-env-delivery-switch-option.active {
  color: #f4eee7 !important;
}

html[data-admin-theme="night"] body.store-frame-page .store-env-delivery-modal-toolbar {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .store-env-head-button:disabled,
  .store-env-delivery-manage-actions .store-env-head-button:disabled,
  .advertisement-flag-card-actions .flag-grid-button:disabled,
  .advertisement-flag-area-actions .area-action-button:disabled,
  .advertisement-flag-area-draw-actions .area-action-button:disabled
) {
  color: #7f8992 !important;
  border-color: var(--admin-night-line) !important;
  background: #202427 !important;
  opacity: 1;
}

html[data-admin-theme="night"] body.store-frame-page .manage-confirm-icon {
  color: #f0c984 !important;
  background: var(--admin-night-orange-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page .manage-confirm-panel.is-danger .manage-confirm-icon {
  color: #efb0b5 !important;
  background: var(--admin-night-red-soft) !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-field,
  .coupon-inline-form .coupon-toggle-group-compact
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page .coupon-line-target {
  color: #c4d3ef !important;
  border-color: #596f91 !important;
  background: var(--admin-night-blue-soft) !important;
}

html[data-admin-theme="night"] body.store-frame-page .refresh-mode-switch.manual {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-soft) !important;
}

/* Contrast audit: late-loaded admin/store controls must never retain day colors. */
html[data-admin-theme="night"] :where(
  .admin-tree-item.active .admin-tree-rank,
  .admin-tree-item.matched.active .admin-tree-rank
) {
  color: #f0c984 !important;
}

html[data-admin-theme="night"] .admin-notice-list-head .primary {
  color: #f4eee7 !important;
  border-color: #827361 !important;
  background: #665a4d !important;
  background-image: none !important;
}

html[data-admin-theme="night"] body.store-frame-page :where(
  .coupon-search-input,
  .coupon-text-input,
  .coupon-date-input
) {
  color: var(--admin-night-text) !important;
  border-color: var(--admin-night-line) !important;
  background: var(--admin-night-input) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-admin-theme="night"] body.store-frame-page .advertisement-flag-no {
  color: #c4d3ef !important;
  border-color: #596f91 !important;
  background: #28384d !important;
  background-image: none !important;
}
