/* Emergency white-theme restore. Keep this file loaded after experimental theme patches. */
:root {
  color-scheme: light !important;
}

html,
body,
#root,
#app {
  background: #f8fafc !important;
  color: #0f172a !important;
  text-shadow: none !important;
  filter: none !important;
  width: 100% !important;
  min-height: 100vh !important;
}

body,
body * {
  text-shadow: none !important;
  filter: none !important;
  letter-spacing: 0 !important;
}

body {
  background-color: #f8fafc !important;
  background-image:
    linear-gradient(rgba(226, 232, 240, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, .55) 1px, transparent 1px) !important;
  background-size: 55px 55px !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body strong,
body b {
  color: #0f172a !important;
}

body p,
body small,
body label,
body .sub,
body [class*="text-slate-"],
body [class*="text-gray-"],
body [class*="text-zinc-"] {
  color: #64748b !important;
}

body a,
body .text-indigo-600,
body .text-blue-600 {
  color: #4f46e5 !important;
}

body .text-emerald-600,
body .text-emerald-700,
body .axmgc-task-green {
  color: #059669 !important;
}

body .text-rose-500,
body .text-rose-600,
body .text-rose-700,
body .axmgc-task-red {
  color: #e11d48 !important;
}

body aside,
body nav,
body .panel,
body .card,
body .stat,
body .modal,
body .drawer,
body .asset-drawer,
body .history-drawer,
body .composer-card,
body .result-card,
body .empty,
body .axd-panel,
body .axd-stat,
body .axd-table-wrap,
body .axmgc-docs-model-map,
body [class*="bg-white"],
body [class*="from-white"],
body [class*="to-white"],
body [class*="bg-slate-50"],
body [class*="bg-slate-100"] {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06) !important;
}

body input,
body textarea,
body select,
body button,
body .sel,
body .field,
body .key-select {
  color: #0f172a !important;
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
}

body input::placeholder,
body textarea::placeholder {
  color: #94a3b8 !important;
}

body table,
body thead,
body tbody,
body tr,
body th,
body td {
  color: #0f172a !important;
  background-color: transparent !important;
}

body thead,
body th {
  background-color: #f8fafc !important;
}

body pre,
body code {
  color: #1e293b !important;
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

#root:empty::before {
  content: '页面加载中...';
  display: block;
  padding: 32px;
  color: #64748b;
}
