/* 主题变量与基础重置：深/浅两套 CSS 变量 + 全局 reset, 沿用
   planning_emulator/css/theme.css 的变量命名与深浅两套取值, 去掉与地图/
   动目标/MQTT 强绑定的 --tgt/--purple, 改立两个图表专用变量对齐
   debug_path_qp 里 matplotlib 版本的新旧解配色(PathQpComparePalette) */
:root{
  --bg:#0f1822; --panel:#16222e; --panel2:#1d2d3c; --line:#273a4c;
  --txt:#e6eef5; --muted:#8aa0b3; --accent:#2dd4bf; --accent2:#38bdf8;
  --warn:#f59e0b; --danger:#ef4444; --ok:#22c55e;
  --input-bg:#0d161f; --item-bg:#0e1925; --scroll:#2a3f52;
  --btn-sec:#26384a; --seg-bg:#16242f; --badge-bg:#0d2030; --badge-line:#1c3a4f;
  --overlay:rgba(15,24,34,.92); --faint:#5d7183; --btn-txt:#06131c;
  /* 新旧解对比配色: 与 _visualize_path_qp_compare.py 的 PathQpComparePalette
     逐字相同(原解紫色虚线 old, 新解红色实线 new), 图表专用, 不随主题切换,
     因为它标定的是"数据身份"而非 UI 语义(不像 --danger 那样表示告警) */
  --old-solution:#7b2cbf; --new-solution:#d62728;
  --accent-rgb:45,212,191; --accent2-rgb:56,189,248; --warn-rgb:245,158,11;
  --danger-rgb:239,68,68; --ok-rgb:34,197,94; --faint-rgb:93,113,131;
}
body.light{
  --bg:#eef2f6; --panel:#ffffff; --panel2:#f4f7fa; --line:#d5dde5;
  --txt:#1a2733; --muted:#5b6b7a; --accent:#0d9488; --accent2:#0284c7;
  --warn:#b45309; --danger:#dc2626; --ok:#15803d;
  --input-bg:#ffffff; --item-bg:#f4f7fa; --scroll:#c3ccd6;
  --btn-sec:#d7e0ea; --seg-bg:#e3eaf1; --badge-bg:#e0edf7; --badge-line:#a9c9e0;
  --overlay:rgba(255,255,255,.92); --faint:#8595a4; --btn-txt:#ffffff;
  --old-solution:#7b2cbf; --new-solution:#d62728;
  --accent-rgb:13,148,136; --accent2-rgb:2,132,199; --warn-rgb:180,83,9;
  --danger-rgb:220,38,38; --ok-rgb:21,128,61; --faint-rgb:133,149,164;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:"Segoe UI",-apple-system,"Microsoft YaHei",sans-serif;
  background:var(--bg);color:var(--txt)}
body{display:flex;flex-direction:column}
