/* taoke admin coastal / glass overlay. Scoped to the logged-in admin shell only.
   Does not change the storefront background, prices, WeChat, footer, or catalog order.
   Login page stays a full-page card (no glass sidebar). Logos are 淘客AI, not the Wukong monkey. */

body.new-admin-page:has(.admin-shell) {
  --admin-blue: #268ca0 !important;
  --admin-blue-hover: #207b8d !important;
  --admin-blue-shadow: #1b6d7c !important;
  --admin-title: #153d4e !important;
  --admin-text: #284c5c !important;
  --admin-muted: #63818e !important;
  --admin-line: #cce6e8 !important;
  --admin-soft: #e8f9f8 !important;
  --admin-blue-soft: #e0f5f4 !important;
  --admin-canvas: transparent !important;
  color: #284c5c;
  background-color: #bcebf0 !important;
  background-image:
    radial-gradient(ellipse 90% 45% at 50% -8%, #eefdff 0%, rgba(238,253,255,0) 60%),
    radial-gradient(ellipse 50% 30% at 80% 36%, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #8ecfde 0 34%, #b7e4d8 34% 42%, #c8e8a8 42% 62%, #b5d68a 62% 100%) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}
body.new-admin-page:has(.admin-shell) #root,
body.new-admin-page .admin-shell,
body.new-admin-page .admin-shell :is(.admin-main, .admin-content) {
  background: transparent !important;
}
body.new-admin-page .admin-shell .admin-sidebar {
  background: rgba(222, 250, 249, .91) !important;
  border-color: rgba(255, 255, 255, .75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.new-admin-page .admin-shell .admin-topbar {
  background: rgba(225, 250, 251, .88) !important;
  border-color: rgba(255, 255, 255, .8) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.new-admin-page .admin-shell .admin-preview-badge {
  color: #247687;
  background: #dff5f3;
  border-color: #c4e6e3;
}
body.new-admin-page .admin-shell .admin-nav button:hover {
  background: #ccefed !important;
  color: #1a7484 !important;
}
body.new-admin-page .admin-shell .admin-nav :is(button.active, button[aria-current=page]) {
  background: #268ca0 !important;
  color: #fff !important;
  box-shadow: 0 3px 0 #1b6d7c !important;
}
body.new-admin-page .admin-shell :is(.admin-card, .admin-metric, .admin-stat-card, .admin-finance-panel, .agent-sites-panel, .admin-table-card, .admin-orders-panel, .admin-settings-card, .admin-coin-finance, .admin-payment-card) {
  background: rgba(240, 255, 252, .91) !important;
  border-color: rgba(255, 255, 255, .85) !important;
  box-shadow: 0 10px 32px rgba(22, 88, 100, .09);
}
body.new-admin-page .admin-shell .admin-page-head h1,
body.new-admin-page .admin-shell .admin-card-head h3,
body.new-admin-page .admin-shell .admin-breadcrumb,
body.new-admin-page .admin-shell .admin-content h1,
body.new-admin-page .admin-shell .admin-content h2,
body.new-admin-page .admin-shell .admin-content h3 {
  color: #153d4e !important;
}
body.new-admin-page .admin-shell .admin-view-dashboard .admin-metrics-grid > .admin-metric {
  border: 1px solid rgba(255, 255, 255, .85) !important;
  border-top-color: #268ca0 !important;
}
body.new-admin-page .admin-shell :is(.admin-top-actions > button, .admin-account-trigger) {
  background: rgba(248, 255, 254, .9) !important;
  border-color: #cce6e8 !important;
}
body.new-admin-page .admin-shell :is(.admin-account-dropdown, .admin-modal, .compact-order-detail, .agent-finance-modal, .inventory-import, .admin-analytics-calendar, .catalog-more-menu, .admin-dialog, .admin-withdrawal-qr-modal) {
  background: #f5fffd !important;
  border-color: #cce6e8 !important;
}
body.new-admin-page .admin-shell :is(.admin-primary, .admin-analytics-calendar-actions .confirm) {
  background: #268ca0 !important;
  border-color: #268ca0 !important;
  box-shadow: 0 3px 0 #1b6d7c;
  color: #fff !important;
}
body.new-admin-page .admin-shell :is(.admin-primary, .admin-analytics-calendar-actions .confirm):hover:not(:disabled) {
  background: #207b8d !important;
  border-color: #207b8d !important;
}
body.new-admin-page .admin-shell :is(.admin-primary, .admin-analytics-calendar-actions .confirm):disabled {
  background: #dae9e9 !important;
  border-color: #dae9e9 !important;
  box-shadow: none;
}
body.new-admin-page .admin-shell :is(.admin-secondary, .catalog-edit-button, .admin-shift-button) {
  color: #237c8d;
  background: rgba(255, 255, 254, .92);
  border-color: #cce6e8;
}
body.new-admin-page .admin-shell :is(.admin-analytics-presets, .admin-card-filters, .admin-finance-tabs, .catalog-list-heading, .catalog-spec > summary, .admin-tabs, .admin-toolbar) {
  background: rgba(231, 248, 248, .93) !important;
  border-color: #cce6e8;
}
body.new-admin-page .admin-shell .admin-analytics-preset.active,
body.new-admin-page .admin-shell :is(.admin-pagination button.active, .admin-filter-tabs button.active, .admin-finance-tabs button.active, .catalog-filters button.active, .catalog-channel-picker button.active, .admin-tabs button.active) {
  background: #268ca0 !important;
  border-color: #268ca0 !important;
  color: #fff !important;
  box-shadow: 0 2px 0 #1b6d7c;
}
body.new-admin-page .admin-shell :is(.admin-table, .admin-orders-table, .agent-sites-table, .agent-site-members-table, .agent-finance-records, .admin-card-detail-table) th {
  background: #e5f6f6 !important;
  border-color: #d5ebeb;
  color: #153d4e;
}
body.new-admin-page .admin-shell :is(.admin-table, .admin-orders-table, .agent-sites-table, .agent-site-members-table, .agent-finance-records, .admin-card-detail-table) td {
  background: rgba(252, 255, 254, .78) !important;
  border-color: #dceeee;
}
body.new-admin-page .admin-shell :is(.admin-table, .admin-orders-table, .agent-sites-table, .agent-site-members-table, .agent-finance-records, .admin-card-detail-table) tbody tr:hover td {
  background: #eafaf8 !important;
}
body.new-admin-page .admin-shell :is(input[type=checkbox], input[type=radio], .admin-check) { accent-color: #268ca0; }
body.new-admin-page .admin-shell :is(button, a, summary, input, select, textarea):focus-visible { outline-color: #268ca0a6; }
body.new-admin-page .admin-shell :is(.admin-empty, .agent-sites-empty) { background: transparent; }

body.new-admin-page .admin-shell .admin-live > span:first-child {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
  vertical-align: middle;
}

body.new-admin-page .admin-shell .admin-brand > span,
body.new-admin-page .admin-shell .admin-avatar {
  position: relative !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  color: transparent !important;
  background: #238a9b !important;
  border: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0;
}
body.new-admin-page .admin-shell .admin-brand > span > *,
body.new-admin-page .admin-shell .admin-avatar > * {
  opacity: 0 !important;
}
body.new-admin-page .admin-shell .admin-brand > span::after,
body.new-admin-page .admin-shell .admin-avatar::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}
body.new-admin-page .admin-shell .admin-brand > span::after {
  background: url('/assets/taoke-brand-bbf191d6a47d.png') center / cover no-repeat !important;
  background-image: image-set(
    url('/assets/taoke-brand-bbf191d6a47d.webp') type('image/webp'),
    url('/assets/taoke-brand-bbf191d6a47d.png') type('image/png')
  ) !important;
}
body.new-admin-page .admin-shell .admin-avatar::after {
  background: url('/assets/taoke-user-avatar-961026040075.png') center / cover no-repeat !important;
  background-image: image-set(
    url('/assets/taoke-user-avatar-961026040075.webp') type('image/webp'),
    url('/assets/taoke-user-avatar-961026040075.png') type('image/png')
  ) !important;
}

body.new-admin-page .admin-login-page,
body.new-admin-page .admin-loading-page {
  min-height: 100dvh;
  box-sizing: border-box;
  background: #e8f4f6 !important;
  background-image: radial-gradient(ellipse at top, #f4fcfd 0%, #e8f4f6 55%, #d7ecee 100%) !important;
}
body.new-admin-page .admin-login-page .admin-sidebar,
body.new-admin-page .admin-loading-page .admin-sidebar {
  display: none !important;
}
body.new-admin-page .admin-login-card {
  background: #fff !important;
  border: 1px solid #cce6e8 !important;
  box-shadow: 0 16px 40px rgba(22, 88, 100, .1);
  border-radius: 20px;
}
body.new-admin-page .admin-login-heading h1,
body.new-admin-page .admin-login-brand strong {
  color: #153d4e !important;
}
body.new-admin-page .admin-login-brand > span {
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  color: transparent !important;
  background: #238a9b !important;
}
body.new-admin-page .admin-login-brand > span > * { opacity: 0 !important; }
body.new-admin-page .admin-login-brand > span::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: url('/assets/taoke-brand-bbf191d6a47d.png') center / cover no-repeat;
  background-image: image-set(
    url('/assets/taoke-brand-bbf191d6a47d.webp') type('image/webp'),
    url('/assets/taoke-brand-bbf191d6a47d.png') type('image/png')
  );
  pointer-events: none;
}
body.new-admin-page .admin-login-submit {
  background: #268ca0 !important;
  border-color: #268ca0 !important;
  color: #fff !important;
}
