/* Light theme only. Dark mode is the existing default and is intentionally untouched. */
html[data-theme="light"] {
  color-scheme: light;
  --primary: #150f23;
  --ink-deep: #1f1633;
  --ink: #1f1633;
  --ink-press: #1a1a1a;
  --on-primary: #1f1633;
  --on-dark-muted: rgba(31, 22, 51, 0.72);
  --on-dark-faint: rgba(31, 22, 51, 0.08);
  --text-primary: #1f1633;
  --text-secondary: rgba(31, 22, 51, 0.72);
  --text-tertiary: #79628c;
  --accent-lime: #c2ef4e;
  --accent-pink: #fa7faa;
  --accent-violet: #6a5fc1;
  --accent-violet-deep: #422082;
  --accent-violet-mid: #79628c;
  --surface-canvas-dark: #ffffff;
  --surface-canvas-light: #ffffff;
  --surface-night: #f0f0f0;
  --surface-press-light: #f0f0f0;
  --surface-press-stronger: #efefef;
  --hairline-violet: #e5e7eb;
  --hairline-cool: #cfcfdb;
  --hairline-cloud: #e5e7eb;
  --ring-focus: rgba(59, 130, 246, 0.5);
  --elev-1: rgba(0, 0, 0, 0.08) 0 2px 8px 0;
  --elev-2: rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.1) 0 4px 6px -4px;
  --elev-3: 0 0 0 2px rgba(194, 239, 78, 0.28), 0 0 28px rgba(194, 239, 78, 0.18);
  --elev-4: rgba(0, 0, 0, 0.18) 0 0.5rem 1.5rem;
}

html[data-theme="light"] {
  background-color: #ffffff;
  color: #1f1633;
}

html[data-theme="light"] body {
  background-color: transparent;
  color: #1f1633;
}

html[data-theme="light"] ::selection {
  color: #1f1633;
  background: #c2ef4e;
}

html[data-theme="light"] ::-moz-selection {
  color: #1f1633;
  background: #c2ef4e;
}

html[data-theme="light"] .bg-wallpaper {
  --auth-wallpaper-opacity: 0.92;
  filter: blur(4px) saturate(0.86) brightness(1.04);
}

html[data-theme="light"] .bg-wallpaper.is-loaded {
  opacity: 0.92;
}

html[data-theme="light"] .bg-mask {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.3) 48%,
      rgba(240, 240, 240, 0.46) 100%
    );
}

html[data-theme="light"] .bg-stars {
  --auth-stars-opacity: 0.16;
  opacity: 0.16;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(31, 22, 51, 0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 75% 18%, rgba(106, 95, 193, 0.16) 50%, transparent 50%),
    radial-gradient(1px 1px at 48% 62%, rgba(31, 22, 51, 0.14) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 62% 40%, rgba(194, 239, 78, 0.28) 50%, transparent 50%);
}

html[data-theme="light"] .hero-geo {
  --auth-hero-geo-opacity: 0.28;
  opacity: 0.28;
}

html[data-theme="light"] .nav-top {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom-color: #e5e7eb;
}

html[data-theme="light"] .nav-bar-dark,
html[data-theme="light"] .canvas-dark,
html[data-theme="light"] .canvas-light,
html[data-theme="light"] .footer-light {
  color: #1f1633;
}

html[data-theme="light"] .nav-link {
  color: #79628c;
  font-weight: 600;
}

html[data-theme="light"] .nav-link.is-active,
html[data-theme="light"] .canvas-dark .section-eyebrow,
html[data-theme="light"] .canvas-dark .feature-tag,
html[data-theme="light"] .card-tag,
html[data-theme="light"] .bot-card-id,
html[data-theme="light"] .bot-status-id,
html[data-theme="light"] .feed-tag,
html[data-theme="light"] .console-log-level,
html[data-theme="light"] .points-table th,
html[data-theme="light"] .perm-section-title {
  color: #6a5fc1;
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .footer-col a:hover,
html[data-theme="light"] .link-on-dark:hover,
html[data-theme="light"] .link-on-light:hover {
  color: #422082;
}

html[data-theme="light"] .hero-eyebrow,
html[data-theme="light"] .hero-sub,
html[data-theme="light"] .feature-body,
html[data-theme="light"] .ops-label,
html[data-theme="light"] .ops-status,
html[data-theme="light"] .logs-toolbar .text-micro-cap,
html[data-theme="light"] .bot-card-meta-lines,
html[data-theme="light"] .bot-card-equip-line,
html[data-theme="light"] .bot-status-summary,
html[data-theme="light"] .feed-text,
html[data-theme="light"] .slot-hint,
html[data-theme="light"] .slot-desc,
html[data-theme="light"] .bot-transit-meta,
html[data-theme="light"] .bot-profile-row strong,
html[data-theme="light"] .bot-profile-empty,
html[data-theme="light"] .bot-profile-note,
html[data-theme="light"] .equip-row,
html[data-theme="light"] .console-toolbar .text-micro-cap,
html[data-theme="light"] .console-empty,
html[data-theme="light"] .logs-content,
html[data-theme="light"] .perm-empty,
html[data-theme="light"] .slots-panel-sub,
html[data-theme="light"] .slot-head-right,
html[data-theme="light"] .slot-field label,
html[data-theme="light"] .footer-col a,
html[data-theme="light"] .footer-bottom {
  color: rgba(31, 22, 51, 0.72);
}

html[data-theme="light"] .section-eyebrow,
html[data-theme="light"] .feature-tag,
html[data-theme="light"] .price-period,
html[data-theme="light"] .footer-col p,
html[data-theme="light"] .feed-time,
html[data-theme="light"] .bot-meta-line span,
html[data-theme="light"] .bot-profile-row span,
html[data-theme="light"] .slot-kv .k,
html[data-theme="light"] .console-log-time,
html[data-theme="light"] .toast-kind {
  color: #79628c;
}

html[data-theme="light"] .hero-title,
html[data-theme="light"] .section-head,
html[data-theme="light"] .bot-card-doing,
html[data-theme="light"] .bot-meta-line strong,
html[data-theme="light"] .bot-transit-head strong,
html[data-theme="light"] .bot-profile-lead,
html[data-theme="light"] .equip-durability-pct,
html[data-theme="light"] .slot-head,
html[data-theme="light"] .slot-title,
html[data-theme="light"] .toast-text,
html[data-theme="light"] .gate-brand,
html[data-theme="light"] .gate-title {
  color: #1f1633;
}

html[data-theme="light"] .btn-inverted,
html[data-theme="light"] .btn-primary {
  background-color: #150f23;
  color: #ffffff;
  border-color: #150f23;
  box-shadow: none;
}

html[data-theme="light"] .btn-violet-token {
  background-color: #79628c;
  color: #ffffff;
  border-color: #422082;
  box-shadow: none;
}

html[data-theme="light"] .btn-inverted:hover,
html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] .btn-violet-token:hover,
html[data-theme="light"] .btn-ghost-on-dark:hover,
html[data-theme="light"] .btn-secondary:hover,
html[data-theme="light"] .btn-ghost:hover {
  background-color: #422082;
  border-color: #422082;
  color: #ffffff;
}

html[data-theme="light"] .btn-ghost-on-dark,
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .btn-ghost {
  background-color: rgba(31, 22, 51, 0.08);
  color: #1f1633;
  border: 1px solid #e5e7eb;
}

html[data-theme="light"] .hero-actions .btn-ghost-on-dark {
  border: 2px solid rgba(31, 22, 51, 0.34);
}

html[data-theme="light"] .chip-lime,
html[data-theme="light"] .pill-success,
html[data-theme="light"] .pill-status[data-status="idle"],
html[data-theme="light"] .viewer-switch .is-active {
  background: #c2ef4e;
  color: #1f1633;
}

html[data-theme="light"] .pill-status,
html[data-theme="light"] .pill-error {
  background: rgba(31, 22, 51, 0.08);
  color: #79628c;
}

html[data-theme="light"] .pill-status[data-status="scanning"] {
  background: rgba(255, 150, 40, 0.16);
  color: #8a4b00;
}

html[data-theme="light"] .pill-error,
html[data-theme="light"] .pill-status[data-status="offline"] {
  background: rgba(250, 127, 170, 0.14);
  color: #422082;
}

html[data-theme="light"] .text-input,
html[data-theme="light"] .select-violet,
html[data-theme="light"] .input,
html[data-theme="light"] .gate-input {
  background-color: #ffffff;
  color: #1f1633;
  border-color: #cfcfdb;
  box-shadow: inset 0 0 0 1px rgba(31, 22, 51, 0.02);
}

html[data-theme="light"] .gate-input {
  background-color: rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .text-input::placeholder,
html[data-theme="light"] .gate-input::placeholder {
  color: #79628c;
}

html[data-theme="light"] .select-violet option {
  background-color: #ffffff;
  color: #1f1633;
}

html[data-theme="light"] .text-input:focus,
html[data-theme="light"] .select-violet:focus,
html[data-theme="light"] .gate-input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.08),
    0 0 0 3px rgba(59, 130, 246, 0.18);
}

html[data-theme="light"] .card-pricing,
html[data-theme="light"] .contact-panel,
html[data-theme="light"] .footer-light,
html[data-theme="light"] .ops-card,
html[data-theme="light"] .perm-section,
html[data-theme="light"] .logs-content,
html[data-theme="light"] .bot-status-card,
html[data-theme="light"] .console-log-view,
html[data-theme="light"] .cnt-check {
  color: #79628c;
}
html[data-theme="light"] .viewer-hud,
html[data-theme="light"] .slots-panel,
html[data-theme="light"] .containers-panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: #e5e7eb;
  color: #1f1633;
  box-shadow:
    0 0 0 1px rgba(229, 231, 235, 0.9),
    rgba(0, 0, 0, 0.08) 0 2px 8px 0;
}

html[data-theme="light"] .gate-panel {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(229, 231, 235, 0.84);
  color: #1f1633;
  box-shadow:
    0 0 0 1px rgba(229, 231, 235, 0.72),
    rgba(0, 0, 0, 0.08) 0 2px 8px 0;
}

html[data-theme="light"] .bot-card {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(229, 231, 235, 0.86);
  color: #1f1633;
  box-shadow:
    0 0 0 1px rgba(229, 231, 235, 0.62),
    rgba(0, 0, 0, 0.08) 0 2px 8px 0;
}

html[data-theme="light"] .footer-light {
  box-shadow: none;
}

html[data-theme="light"] .card-pricing-featured,
html[data-theme="light"] .viewer-stage {
  background: #f0f0f0;
  color: #1f1633;
  border-color: #e5e7eb;
}

html[data-theme="light"] .bot-card.s-offline {
  background: rgba(240, 240, 240, 0.62);
}

html[data-theme="light"] .bot-card:hover,
html[data-theme="light"] .bot-card:focus-visible,
html[data-theme="light"] .bot-card.is-expanded {
  border-color: rgba(194, 239, 78, 0.78);
  box-shadow:
    0 0 0 1px rgba(194, 239, 78, 0.38),
    0 0 28px rgba(194, 239, 78, 0.24),
    0 0 70px rgba(194, 239, 78, 0.12);
}

html[data-theme="light"] .bot-card.is-expanded {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .bot-card.s-offline::before,
html[data-theme="light"] .bot-card.s-offline .bot-status-dot {
  background: rgba(31, 22, 51, 0.28);
  color: rgba(31, 22, 51, 0.28);
}

html[data-theme="light"] .bot-card-detail,
html[data-theme="light"] .bot-status-detail,
html[data-theme="light"] .slots-panel-head,
html[data-theme="light"] .footer-bottom,
html[data-theme="light"] .console-toolbar {
  border-color: #e5e7eb;
}

html[data-theme="light"] .bot-transit-track,
html[data-theme="light"] .equip-bar-wrap,
html[data-theme="light"] .supply-progress-bar-bg,
html[data-theme="light"] .equip-durability-track {
  background: #f0f0f0;
}

html[data-theme="light"] .equip-bar,
html[data-theme="light"] .supply-progress-bar,
html[data-theme="light"] .equip-durability-track span,
html[data-theme="light"] .status-dot[data-state="ok"],
html[data-theme="light"] .perm-dot {
  background: #c2ef4e;
}

html[data-theme="light"] .pct-mid,
html[data-theme="light"] .equip-durability-track .pct-mid,
html[data-theme="light"] .status-dot[data-state="warn"] {
  background: #79628c;
}

html[data-theme="light"] .pct-low,
html[data-theme="light"] .equip-durability-track .pct-low,
html[data-theme="light"] .status-dot[data-state="error"] {
  background: #fa7faa;
}

html[data-theme="light"] .feed-item,
html[data-theme="light"] .points-table th,
html[data-theme="light"] .points-table td,
html[data-theme="light"] .console-log-row,
html[data-theme="light"] .slot,
html[data-theme="light"] .perm-item {
  border-color: #e5e7eb;
}

html[data-theme="light"] .perm-item,
html[data-theme="light"] .console-log-row:nth-child(even) {
  background: rgba(240, 240, 240, 0.58);
}

html[data-theme="light"] .console-log-row {
  color: #1f1633;
}

html[data-theme="light"] .console-log-row.lv-warn .console-log-level,
html[data-theme="light"] .console-log-row.lv-warn .console-log-message {
  color: #79628c;
}

html[data-theme="light"] .console-log-row.lv-error .console-log-level,
html[data-theme="light"] .console-log-row.lv-error .console-log-message {
  color: #fa7faa;
}

html[data-theme="light"] .viewer-overlay {
  background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .slot-dot {
  border-color: #79628c;
}

html[data-theme="light"] .slot-dot[data-state="enabled"] {
  background: #c2ef4e;
  border-color: #c2ef4e;
}

html[data-theme="light"] .slot-dot[data-state="waiting_pick"],
html[data-theme="light"] .slot-dot[data-state="captured"] {
  background: #fa7faa;
  border-color: #fa7faa;
}

html[data-theme="light"] .btn-danger,
html[data-theme="light"] .pick-watermark {
  background: #fa7faa;
  color: #150f23;
}

html[data-theme="light"] .toast {
  color: #1f1633;
  box-shadow:
    0 0 0 1px rgba(194, 239, 78, 0.16),
    0 0 30px rgba(194, 239, 78, 0.18);
}

html[data-theme="light"] .toast-surface {
  border-color: #e5e7eb;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 34px rgba(194, 239, 78, 0.1);
}

html[data-theme="light"] .toast-halo {
  background:
    radial-gradient(ellipse at center, rgba(194, 239, 78, 0.3) 0%, rgba(194, 239, 78, 0.14) 42%, transparent 74%);
}

html[data-theme="light"] .toast.is-error .toast-halo {
  background:
    radial-gradient(ellipse at center, rgba(250, 127, 170, 0.24) 0%, rgba(106, 95, 193, 0.14) 44%, transparent 74%);
}

html[data-theme="light"] .gate-veil {
  background:
    radial-gradient(circle at 16% 18%, rgba(194, 239, 78, 0.12), transparent 34%),
    radial-gradient(circle at 78% 28%, rgba(106, 95, 193, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.52);
}

html[data-theme="light"] .gate-bigtype {
  color: rgba(31, 22, 51, 0.06);
}

html[data-theme="light"] .gate-bigtype .nk,
html[data-theme="light"] .gate-brand .nk,
html[data-theme="light"] .gate-ro .v.ok,
html[data-theme="light"] .gate-ro .v.accent {
  color: #6a5fc1;
}

html[data-theme="light"] .gate-eyebrow,
html[data-theme="light"] .gate-tagline,
html[data-theme="light"] .gate-panel-sub,
html[data-theme="light"] .gate-field-label,
html[data-theme="light"] .gate-ro .k,
html[data-theme="light"] .gate-ro .v {
  color: #79628c;
}

html[data-theme="light"] .gate-eyebrow .bar {
  background: #c2ef4e;
}

html[data-theme="light"] .gate-close {
  background: rgba(240, 240, 240, 0.58);
  border-color: #e5e7eb;
  color: #1f1633;
}

html[data-theme="light"] .gate-readout {
  border-top-color: #e5e7eb;
}

html[data-theme="light"] .gate-msg.is-success {
  background: rgba(194, 239, 78, 0.18);
  border-color: rgba(194, 239, 78, 0.46);
  color: #1f1633;
}

html[data-theme="light"] .gate-msg.is-error {
  background: rgba(250, 127, 170, 0.14);
  border-color: rgba(250, 127, 170, 0.36);
  color: #422082;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 36px;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--hairline-cloud);
  border-radius: var(--rounded-full);
  background: #ffffff;
  color: var(--ink-deep);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.theme-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--rounded-full);
  background: var(--accent-lime);
  box-shadow: 0 0 0 3px rgba(194, 239, 78, 0.14);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: #0052ef;
  color: #0052ef;
  outline: none;
}

html[data-theme="light"] .theme-toggle {
  background: #150f23;
  border-color: #150f23;
  color: #ffffff;
}

html[data-theme="light"] .theme-toggle::before {
  background: #c2ef4e;
  box-shadow: 0 0 0 3px rgba(194, 239, 78, 0.2);
}

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible {
  background: #422082;
  border-color: #422082;
  color: #ffffff;
}

/* ===================== 库存 tab 浅色模式适配 ===================== */
html[data-theme="light"] .inv-hint {
  color: #79628c;
}
html[data-theme="light"] .inv-cat {
  background: rgba(31, 22, 51, 0.06);
  border-color: var(--hairline-cloud);
  color: #79628c;
}
html[data-theme="light"] .inv-cat:hover {
  color: #422082;
  border-color: rgba(106, 95, 193, 0.4);
}
html[data-theme="light"] .inv-cat.is-active {
  background: #c2ef4e;
  border-color: #c2ef4e;
  color: #1f1633;
}
html[data-theme="light"] .inv-cat-badge {
  background: rgba(31, 22, 51, 0.1);
}
html[data-theme="light"] .inv-cat.is-active .inv-cat-badge {
  background: rgba(21, 15, 35, 0.18);
}
html[data-theme="light"] .inv-cell,
html[data-theme="light"] .inv-shulker-cell {
  background: #ffffff;
  border-color: var(--hairline-cloud);
}
html[data-theme="light"] .inv-cell:hover {
  background: rgba(194, 239, 78, 0.14);
  border-color: rgba(106, 95, 193, 0.4);
}
html[data-theme="light"] .inv-cell.is-selected {
  background: rgba(194, 239, 78, 0.2);
  border-color: #6a5fc1;
  box-shadow: 0 0 0 1px #6a5fc1;
}
html[data-theme="light"] .inv-cell-count,
html[data-theme="light"] .inv-shulker-cell-count {
  background: rgba(255, 255, 255, 0.92);
  color: #422082;
  text-shadow: none;
}
html[data-theme="light"] .inv-icon-ph {
  background: #efeaf7;
  color: #422082;
}
html[data-theme="light"] .inv-shulker-preview {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--hairline-cloud);
}
html[data-theme="light"] .inv-shulker-more {
  color: #422082;
}
html[data-theme="light"] .inv-item-detail {
  background: #ffffff;
  border: 1px solid var(--hairline-cloud);
}
html[data-theme="light"] .inv-detail-head {
  border-bottom-color: var(--hairline-cloud);
}
html[data-theme="light"] .inv-detail-name {
  color: #1f1633;
}
html[data-theme="light"] .inv-detail-total {
  color: #79628c;
}
html[data-theme="light"] .inv-slot-line {
  color: #1f1633;
}
html[data-theme="light"] .inv-slot-tag {
  color: #6a5fc1;
}
html[data-theme="light"] .inv-count {
  color: #422082;
}
html[data-theme="light"] .inv-detail-close {
  background: rgba(31, 22, 51, 0.08);
  color: #79628c;
}
html[data-theme="light"] .inv-shulker-detail {
  background: rgba(106, 95, 193, 0.08);
  border-bottom-color: var(--hairline-cloud);
}
html[data-theme="light"] .inv-shulker-detail-title {
  color: #6a5fc1;
}

/* ============ 备料 tab（preparation）· 浅色主题覆盖 ============ */
html[data-theme="light"] .prep-suggest {
  background: #ffffff;
  border-color: var(--hairline-cloud);
}
html[data-theme="light"] .prep-suggest-item {
  color: #1f1633;
}
html[data-theme="light"] .prep-suggest-item:hover {
  background: rgba(194, 239, 78, 0.2);
}
html[data-theme="light"] .prep-suggest-id,
html[data-theme="light"] .prep-row-id {
  color: #79628c;
}
html[data-theme="light"] .prep-item-zh {
  color: #422082;
}
html[data-theme="light"] .prep-preview,
html[data-theme="light"] .prep-dispatch {
  border-top-color: var(--hairline-cloud);
}
html[data-theme="light"] .prep-preview-name,
html[data-theme="light"] .prep-row-name {
  color: #1f1633;
}
html[data-theme="light"] .prep-row {
  background: #ffffff;
  border-color: var(--hairline-cloud);
}
html[data-theme="light"] .prep-row-bad {
  background: rgba(250, 127, 170, 0.08);
  border-color: rgba(250, 127, 170, 0.4);
}
html[data-theme="light"] .prep-row-tag {
  background: rgba(106, 95, 193, 0.14);
  color: #422082;
}

/* ============ 子页面卡片浅色适配（20260906 补） ============ */
/* 之前只覆盖了 .ops-card 系的字色,深紫玻璃背景/边框没联动,浅色模式下子页面
   (bot状态/库存/备料/权限)整块是暗底配灰紫字,脏得没法看。这里补齐背景翻转。 */
html[data-theme="light"] .ops-card,
html[data-theme="light"] .perm-section,
html[data-theme="light"] .logs-content {
  background: rgba(255, 255, 255, 0.86);
  border-color: #e5e7eb;
  color: #1f1633;
  box-shadow:
    0 0 0 1px rgba(229, 231, 235, 0.8),
    rgba(0, 0, 0, 0.06) 0 2px 8px 0;
}

/* 卡片内标题(h3)与输入提示:深色模式继承白字,浅色下必须翻成墨色。 */
html[data-theme="light"] .feature-title,
html[data-theme="light"] .slot-title {
  color: #1f1633;
}

html[data-theme="light"] .perm-result {
  background: rgba(240, 240, 240, 0.72);
  color: rgba(31, 22, 51, 0.78);
}

/* 三维页侧栏(补给点/已登记容器,登录态)与编辑模式悬浮条。 */
html[data-theme="light"] .side-panel {
  background: rgba(255, 255, 255, 0.94);
  border-color: #e5e7eb;
}

html[data-theme="light"] .side-tab {
  background: rgba(31, 22, 51, 0.06);
  color: #422082;
}

html[data-theme="light"] .side-tab.is-active {
  background: #c2ef4e;
  color: #1f1633;
}

html[data-theme="light"] .w3d-edit-bar {
  background: rgba(255, 255, 255, 0.95);
  border-color: #c2ef4e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .w3d-edit-count {
  color: #1f1633;
}

html[data-theme="light"] .w3d-edit-count b {
  color: #422082;
}

/* 备料任务旗标:lime 字在白底上不可读,翻成深紫墨字。 */
html[data-theme="light"] .prep-task-flag {
  background: rgba(106, 95, 193, 0.14);
  color: #422082;
}

html[data-theme="light"] .prep-task-flag-warn {
  background: rgba(255, 196, 84, 0.22);
  color: #8a4b00;
}
