/* P2-1 extracted from index.html inline <style> (head) */
  :root { --navy:#0b2545; --navy2:#13315c; --cyan:#00b4d8; --bg:#f4f7fb; --txt:#1d2d44; --ok:#2a9d5c; --warn:#e07b39; --bad:#d64550; }
  * { box-sizing:border-box; margin:0; padding:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji"; }
  body { background:var(--bg); color:var(--txt); min-height:100vh; line-height:1.5; }
  .hidden { display:none !important; }
  /* login — 左右布局（品牌+轮播 | 登录卡片） */
  #loginView { display:flex; align-items:stretch; min-height:100vh;
    background:linear-gradient(135deg,#0a1628 0%,#0f2240 40%,#162d50 100%); }
  .login-left { flex:1; display:flex; flex-direction:column; justify-content:center; padding:60px 6%; color:#fff; }
  .login-left .brand-icon { width:56px; height:56px; margin-bottom:18px; }
  .login-left .brand-icon svg { width:56px; height:56px; }
  .login-left h1 { font-size:36px; font-weight:700; margin-bottom:6px; letter-spacing:1px; }
  .login-left .brand-sub { font-size:15px; color:#8fa4bf; margin-bottom:48px; }
  .login-left .feat-label { font-size:13px; color:#6b7f99; margin-bottom:18px; }
  .carousel-wrap { position:relative; overflow:hidden; }
  .carousel-track { display:flex; transition:transform .5s ease; }
  .carousel-item { min-width:100%; display:flex; align-items:flex-start; gap:24px; }
  .feat-card { display:flex; flex-direction:column; align-items:center; text-align:center; flex:1; }
  .feat-card .fc-icon { width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center; margin-bottom:10px; font-size:24px; }
  .feat-card .fc-title { font-size:15px; font-weight:600; color:#e8f0fa; margin-bottom:4px; }
  .feat-card .fc-desc { font-size:12px; color:#7a8fa8; }
  .carousel-dots { display:flex; gap:8px; margin-top:28px; }
  .carousel-dots span { width:22px; height:6px; border-radius:3px; background:#2a4060; cursor:pointer; transition:all .3s; }
  .carousel-dots span.on { background:var(--cyan); width:32px; }
  /* 右侧登录卡片 */
  .login-right { display:flex; align-items:center; justify-content:center; width:480px; min-width:420px; padding:40px 36px; }
  .card { background:#fff; border-radius:18px; padding:48px 40px; width:100%; box-shadow:0 20px 60px rgba(0,0,0,.3); }
  .card h2 { font-size:24px; color:var(--navy); text-align:center; margin-bottom:6px; font-weight:700; }
  .card p.sub { font-size:13px; color:#8a9bb5; text-align:center; margin-bottom:32px; }
  .field { margin-bottom:18px; }
  .field label { display:block; font-size:12px; color:#5a6b85; margin-bottom:6px; font-weight:500; }
  .field input { width:100%; padding:12px 14px; border:1px solid #e3eaf3; border-radius:10px; font-size:14px; background:#f8fafc; transition:border .2s; }
  .field input:focus { outline:none; border-color:var(--cyan); background:#fff; }
  .hint { font-size:12px; color:#9fb0c5; margin-top:4px; }
  .capRow { display:flex; gap:10px; }
  .capRow input { flex:1; }
  .capRow img { height:44px; width:120px; border-radius:8px; cursor:pointer; border:1px solid #e3eaf3; background:#f0f3f8; }
  .btn { width:100%; padding:13px; border:none; border-radius:10px; background:linear-gradient(90deg,#0096c7,var(--cyan));
    color:#fff; font-size:15px; font-weight:600; cursor:pointer; margin-top:12px; letter-spacing:2px; transition:opacity .2s; }
  .btn:hover { opacity:.88; }
  .err { color:var(--bad); font-size:12px; margin-top:10px; min-height:16px; text-align:center; }
  .login-footer { text-align:center; margin-top:28px; font-size:12px; color:#a0b0c4; }
  /* console */
  header { background:var(--navy); color:#fff; padding:0 22px; height:56px; display:flex; align-items:center; gap:16px; }
  header .logo { font-size:17px; font-weight:700; }
  header .logo em { color:var(--cyan); font-style:normal; }
  .modes { margin-left:auto; display:flex; gap:6px; }
  .modes button { padding:6px 16px; border-radius:16px; border:1px solid #3a5f8a; background:transparent; color:#cfe3f5; font-size:12px; cursor:pointer; }
  .modes button.on { background:var(--cyan); border-color:var(--cyan); color:#fff; }
  .planbadge { padding:6px 14px; border-radius:16px; border:1px solid #3a5f8a; background:rgba(0,0,0,.15); color:#cfe3f5; font-size:12px; }
  header .who { font-size:12px; color:#9fb6cf; }
  header .logout { background:none; border:1px solid #3a5f8a; color:#cfe3f5; border-radius:6px; padding:5px 12px; font-size:12px; cursor:pointer; }
  main { max-width:1180px; margin:20px auto; padding:0 18px; }
  .tidbar { background:#fff; border:1px solid #e3eaf3; border-radius:10px; padding:10px 14px; margin-bottom:14px; font-size:13px; display:flex; align-items:center; gap:10px; }
  .tidbar input { padding:6px 10px; border:1px solid #d5deea; border-radius:6px; width:120px; }
  .grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:18px; }
  .stat { background:#fff; border-radius:10px; padding:16px 18px; box-shadow:0 2px 8px rgba(11,37,69,.06); }
  .stat .k { font-size:12px; color:#7a8aa3; }
  .stat .v { font-size:24px; font-weight:700; color:var(--navy); margin-top:6px; }
  .panel { background:#fff; border-radius:10px; padding:18px; box-shadow:0 2px 8px rgba(11,37,69,.06); margin-bottom:16px; }
  .panel h3 { font-size:15px; color:var(--navy); margin-bottom:12px; border-left:3px solid var(--cyan); padding-left:8px; }
  .todo { display:flex; justify-content:space-between; padding:9px 4px; border-bottom:1px dashed #e3eaf3; font-size:13px; }
  .todo b { color:var(--navy2); }
  .todo .act { color:var(--cyan); cursor:pointer; }
  .mods { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
  .mod { border:1px solid #e3eaf3; border-radius:10px; padding:14px; text-align:center; font-size:13px; color:#41546e; cursor:pointer; }
  .mod:hover { border-color:var(--cyan); color:var(--cyan); }
  .mod .ic { font-size:22px; display:block; margin-bottom:6px; }
  .mod .tip { font-size:11px; color:#9fb0c5; margin-top:4px; }
  footer { text-align:center; font-size:12px; color:#9aa9bd; padding:18px; }
  /* drawer */
  #mask { position:fixed; inset:0; background:rgba(11,37,69,.45); display:flex; align-items:center; justify-content:center; z-index:50; }
  #drawer { background:#fff; width:min(880px,94vw); max-height:88vh; overflow:auto; border-radius:14px; padding:22px 24px; }
  #drawer .dh { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
  #drawer .dh h2 { font-size:18px; color:var(--navy); }
  #drawer .close { cursor:pointer; border:none; background:#eef2f8; color:#5a6b85; border-radius:6px; padding:6px 12px; font-size:13px; }
  #dbody { font-size:13px; color:#2a3b55; }
  #dbody .loading { color:#7a8aa3; padding:20px 0; }
  .chips { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
  .chip { background:#fff; border:1px solid #cdd9e8; border-left:4px solid var(--cyan); border-radius:10px; padding:12px 16px; min-width:130px; box-shadow:0 2px 10px rgba(11,37,69,.08); }
  .chip .ck { font-size:12px; color:#5b6b82; font-weight:600; letter-spacing:.3px; } .chip .cv { font-size:22px; font-weight:700; color:var(--navy); margin-top:2px; }
  .big-detail .grid { grid-template-columns:repeat(4,1fr); gap:18px; } .big-detail .chip { padding:18px 22px; min-width:0; border-radius:12px; } .big-detail .chip .ck { font-size:15px; } .big-detail .chip .cv { font-size:28px; } .big-detail .subhd { font-size:20px; }
  .bars { margin:6px 0 14px; } .bar { margin-bottom:8px; }
  .bar .lbl { display:flex; justify-content:space-between; font-size:12px; color:#41546e; margin-bottom:3px; }
  .bar .trk { height:10px; background:#eef2f8; border-radius:6px; overflow:hidden; }
  .bar .fil { height:100%; background:linear-gradient(90deg,var(--cyan),#0096c7); }
  table { width:100%; border-collapse:collapse; margin:6px 0 14px; font-size:12px; }
  th,td { border-bottom:1px solid #eef2f8; padding:7px 8px; text-align:left; }
  th { background:#f4f7fb; color:#5a6b85; font-weight:600; }
  .empty { color:#9fb0c5; padding:14px 0; font-size:13px; }
  .derr { color:var(--bad); padding:12px 0; font-size:13px; }
  .msg-ok { color:var(--ok); font-weight:600; font-size:13px; padding:6px 0; }
  .btn:disabled { opacity:.65; cursor:default; }
  .dactions { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0; }
  .dactions button { padding:7px 14px; border:1px solid var(--cyan); background:#fff; color:var(--cyan); border-radius:6px; cursor:pointer; font-size:12px; }
  .dactions button:hover { background:var(--cyan); color:#fff; }
  .frm { display:flex; gap:8px; flex-wrap:wrap; align-items:flex-end; margin:8px 0 14px; }
  .frm label { font-size:12px; color:#5a6b85; display:block; margin-bottom:3px; }
  .frm select,.frm input { padding:7px 9px; border:1px solid #d5deea; border-radius:6px; font-size:13px; }
  .frm .btn2 { padding:8px 16px; border:none; background:var(--cyan); color:#fff; border-radius:6px; cursor:pointer; }
  .msg-ok { color:var(--ok); font-size:12px; } .msg-bad { color:var(--bad); font-size:12px; }
  /* subtabs + form grid */
  .tabs { display:flex; gap:6px; margin-bottom:12px; border-bottom:1px solid #e3eaf3; }
  .tabs button { padding:7px 14px; border:none; background:transparent; color:#5a6b85; font-size:13px; cursor:pointer; border-bottom:2px solid transparent; }
  .tabs button.on { color:var(--cyan); border-bottom-color:var(--cyan); font-weight:600; }
  .gform { display:grid; grid-template-columns:repeat(2,1fr); gap:10px 14px; margin:8px 0 14px; }
  .gform label { font-size:12px; color:#5a6b85; display:block; margin-bottom:3px; }
  .gform input,.gform select,.gform textarea { width:100%; padding:7px 9px; border:1px solid #d5deea; border-radius:6px; font-size:13px; }
  .gform .full { grid-column:1 / -1; }
  .subhd { font-size:14px;color:#0b2545;margin:12px 0 6px; }
  .rowact { display:inline-block; border:1px solid var(--cyan); color:var(--cyan); background:#fff; cursor:pointer; margin:2px 6px 2px 0; padding:2px 10px; border-radius:14px; font-size:12px; line-height:1.6; white-space:nowrap; transition:all .15s; } .rowact:hover { background:var(--cyan); color:#fff; } .rowact.danger { border-color:var(--bad); color:var(--bad); } .rowact.danger:hover { background:var(--bad); color:#fff; }
  @media (max-width:900px) { .login-left{display:none} .login-right{width:100%;min-width:0;padding:24px 16px} #loginView{justify-content:center} }
  /* === 实时预览双栏布局 === */
  #drawer:has(.split-pane) { width:min(1320px,96vw); }
  .split-pane { display:grid; grid-template-columns:1fr 400px; gap:20px; }
  @media (max-width:1100px) { .split-pane { grid-template-columns:1fr; } .phone-wrap { display:none; } }
  .phone-wrap { position:sticky; top:0; align-self:start; display:flex; flex-direction:column; align-items:center; }
  .phone-shell { width:min(360px,100%); height:min(700px,calc(88vh - 80px)); border-radius:36px; background:#1a1a1a; padding:10px; box-shadow:0 16px 48px rgba(0,0,0,.25), inset 0 0 0 2px #333; }
  .phone-screen { width:100%; height:100%; border-radius:26px; background:#fff; overflow:hidden; position:relative; }
  .phone-notch { position:absolute; top:0; left:50%; transform:translateX(-50%); width:120px; height:24px; background:#1a1a1a; border-radius:0 0 14px 14px; z-index:2; }
  .phone-body { padding:32px 12px 12px; height:100%; overflow-y:auto; font-size:13px; transition:opacity .15s; overflow-wrap:break-word; scrollbar-width:thin; scrollbar-color:#ccc transparent; }
  .phone-body::-webkit-scrollbar { width:4px; } .phone-body::-webkit-scrollbar-thumb { background:#ddd; border-radius:2px; }
  .phone-body.updating { opacity:.85; }
  .pv-tabs { display:flex; gap:4px; margin-bottom:10px; }
  .pv-tabs button { flex:1; padding:5px 4px; border:1px solid #e3eaf3; background:#f4f7fb; border-radius:6px; font-size:11px; cursor:pointer; }
  .pv-tabs button.on { background:var(--cyan); color:#fff; border-color:var(--cyan); }
  .pv-toolbar { display:flex; gap:6px; margin-bottom:10px; flex-wrap:wrap; }
  .pv-toolbar label { font-size:11px; color:#5a6b85; display:flex; align-items:center; gap:4px; }
  .pv-toolbar input[type=color] { width:28px; height:24px; border:none; padding:0; cursor:pointer; border-radius:4px; }
  .pv-toolbar select,.pv-toolbar input[type=number] { padding:3px 6px; border:1px solid #d5deea; border-radius:4px; font-size:11px; width:70px; }

  /* ===== DARK THEME (appended override; remove this block to revert to light) ===== */
  :root { --bg:#0f1826; --txt:#d7e3f4; --surface:#16233a; --surface2:#13233b; --line:#26374f; --line2:#223349; --ink:#e8f0fa; --muted:#9fb0c5; --muted2:#7f93ad; --field:#0f1a2c; }
  body { background:var(--bg); color:var(--txt); }
  /* login card */
  .card { background:var(--surface); box-shadow:0 20px 60px rgba(0,0,0,.5); }
  .card h2 { color:var(--ink); }
  .card p.sub { color:var(--muted); }
  .field label { color:var(--muted); }
  .field input { background:var(--field); color:var(--ink); border-color:var(--line); }
  .field input:focus { background:var(--field); border-color:var(--cyan); }
  .capRow img { border-color:var(--line); }
  .hint { color:var(--muted2); }
  .login-footer { color:var(--muted2); }
  /* console surfaces */
  .tidbar { background:var(--surface); border-color:var(--line); color:var(--txt); }
  .tidbar input { background:var(--field); color:var(--ink); border-color:var(--line); }
  .stat, .panel { background:var(--surface); box-shadow:0 2px 10px rgba(0,0,0,.35); }
  .stat .k { color:var(--muted); }
  .stat .v { color:var(--ink); }
  .panel h3 { color:var(--ink); }
  .todo { border-bottom-color:var(--line2); }
  .todo b { color:var(--ink); }
  .mod { background:var(--surface2); border-color:var(--line); color:var(--txt); }
  .mod .tip { color:var(--muted2); }
  footer { color:var(--muted2); }
  /* drawer */
  #drawer { background:var(--surface); }
  #drawer .dh h2 { color:var(--ink); }
  #drawer .close { background:var(--surface2); color:var(--muted); }
  #dbody { color:var(--txt); }
  #dbody .loading { color:var(--muted); }
  /* chips */
  .chip { background:var(--surface2); border-color:var(--line); box-shadow:0 2px 10px rgba(0,0,0,.3); }
  .chip .ck { color:var(--muted); }
  .chip .cv { color:var(--ink); }
  /* bars */
  .bar .lbl { color:var(--txt); }
  .bar .trk { background:var(--line2); }

  /* table */
  th,td { border-bottom-color:var(--line2); }
  th { background:var(--surface2); color:var(--muted); }
  td { color:var(--txt); }
  .empty { color:var(--muted2); }
  /* actions */
  .dactions button { background:var(--surface2); }
  .rowact { background:var(--surface2); }
  /* forms */
  .frm label, .gform label { color:var(--muted); }
  .frm select, .frm input, .gform input, .gform select, .gform textarea { background:var(--field); color:var(--ink); border-color:var(--line); }
  /* tabs */
  .tabs { border-bottom-color:var(--line); }
  .tabs button { color:var(--muted); }
  .tabs button.on { color:var(--cyan); }
  .subhd { color:var(--ink); }
  /* scrollbars (console) */
  #drawer::-webkit-scrollbar, .phone-body::-webkit-scrollbar { width:10px; }
  /* keep phone preview screen light (simulates a real phone) */
  /* ===== V2: typography & accessibility polish ===== */
  table, .stat .v, .chip .cv { font-variant-numeric: tabular-nums; font-feature-settings:"tnum" 1; }
  /* config key-value chips (payment/channel config, OPS detail, subscription): text values, keep compact */
  .chip.cfg { min-width:0; }
  .chip.cfg .cv { font-size:14px; font-weight:600; line-height:1.4; word-break:break-word; overflow-wrap:anywhere; margin-top:3px; }
  button:focus-visible, a:focus-visible, .mod:focus-visible, .tabs button:focus-visible, .rowact:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
  /* generic .inp used by v15/v16/ops modals (was undefined -> white fields on dark) */
  .inp { padding:7px 9px; border:1px solid var(--line); border-radius:6px; font-size:13px; background:var(--field); color:var(--ink); }
  .inp::placeholder { color:var(--muted2); }
  select.inp option { background:var(--surface); color:var(--ink); }
  /* ===== 通道配置：可折叠卡片（默认收起，点击标题展开） ===== */
  .chfold { border:1px solid var(--line); border-radius:10px; margin:12px 0; background:var(--surface2); overflow:hidden; }
  .chfold > summary { list-style:none; cursor:pointer; padding:13px 16px; font-size:14px; font-weight:600; color:var(--ink); display:flex; align-items:center; gap:9px; user-select:none; }
  .chfold > summary::-webkit-details-marker { display:none; }
  .chfold > summary::before { content:'\25B8'; display:inline-block; font-size:12px; color:var(--muted); transition:transform .15s ease; }
  .chfold[open] > summary::before { transform:rotate(90deg); }
  .chfold > summary:hover { background:rgba(255,255,255,.04); }
  .chfold > summary .msg-bad { font-weight:400; font-size:12px; }
  .chfold .chbody { padding:4px 16px 16px; border-top:1px solid var(--line); }
  /* ===== 券样式调整工具栏（.pv-toolbar）深色适配 + 美化：四个控件统一为深色圆角，色块去掉浏览器默认白框 ===== */
  .pv-toolbar { align-items:center; gap:14px; flex-wrap:wrap; padding:11px 14px; margin:6px 0 12px; background:var(--surface2); border:1px solid var(--line); border-radius:12px; }
  .pv-toolbar label { color:var(--muted); font-size:12px; gap:7px; }
  .pv-toolbar select, .pv-toolbar input[type=number] { background:var(--field); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:5px 9px; font-size:12px; width:auto; min-width:74px; height:30px; box-sizing:border-box; transition:border-color .15s, box-shadow .15s; }
  .pv-toolbar select:hover, .pv-toolbar input[type=number]:hover { border-color:var(--muted2); }
  .pv-toolbar select:focus, .pv-toolbar input[type=number]:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(0,180,200,.18); }
  .pv-toolbar select option { background:var(--surface); color:var(--ink); }
  .pv-toolbar input[type=color] { -webkit-appearance:none; appearance:none; width:40px; height:30px; padding:0; border:1px solid var(--line); border-radius:8px; background:var(--field); cursor:pointer; transition:border-color .15s, box-shadow .15s; }
  .pv-toolbar input[type=color]:hover { border-color:var(--muted2); }
  .pv-toolbar input[type=color]:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(0,180,200,.18); }
  .pv-toolbar input[type=color]::-webkit-color-swatch-wrapper { padding:3px; }
  .pv-toolbar input[type=color]::-webkit-color-swatch { border:none; border-radius:5px; }
  .pv-toolbar input[type=color]::-moz-color-swatch { border:none; border-radius:5px; }
  /* ===== 全局 .btn2 基础样式：此前仅 .frm .btn2 有定义，游离于 .frm 外的 .btn2（如“提交订单”）会退化为浏览器原生白按钮 ===== */
  .btn2 { padding:8px 16px; border:1px solid transparent; border-radius:8px; background:var(--cyan); color:#fff; font-size:13px; cursor:pointer; transition:filter .15s, background .15s, border-color .15s; }
  .btn2:hover { filter:brightness(1.1); }
  .btn2:active { filter:brightness(.94); }
  /* ===== 抽屉/遮罩：加深背景压暗 + 抽屉描边阴影，拉开与页面卡片的层次（避免“打开子菜单看着脏乱”） ===== */
  #mask { background:rgba(4,10,20,.62); backdrop-filter:blur(2px); }
  #drawer { border:1px solid var(--line); box-shadow:0 24px 70px rgba(0,0,0,.6); }
  /* ===== 全局：日期/时间控件深色适配（原生日历图标在深色底可见 + 弹层转深色），点击整框即弹日历 ===== */
  input[type="date"], input[type="datetime-local"], input[type="time"] { color-scheme: dark; cursor:pointer; }
  input[type="date"]::-webkit-calendar-picker-indicator,
  input[type="datetime-local"]::-webkit-calendar-picker-indicator,
  input[type="time"]::-webkit-calendar-picker-indicator { cursor:pointer; opacity:.72; }
  input[type="date"]:hover::-webkit-calendar-picker-indicator,
  input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator,
  input[type="time"]:hover::-webkit-calendar-picker-indicator { opacity:1; }
  /* ===== 全局：密码显示/隐藏 小眼睛（JS 自动包裹 input[type=password]） ===== */
  .pwd-wrap { position:relative; }
  .pwd-eye { position:absolute; right:6px; top:50%; transform:translateY(-50%); display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; padding:0; margin:0; border:none; background:transparent; color:var(--muted); cursor:pointer; line-height:0; }
  .pwd-eye:hover { color:var(--ink); }
  .pwd-eye:focus-visible { outline:2px solid var(--cyan); outline-offset:1px; }
  /* ===== 全局：日期/时间空态美化——隐藏浏览器原生 yyyy/mm/日 --:-- 字段遮罩，改中文占位（JS 包裹 .dt-wrap） ===== */
  .dt-wrap { position:relative; }
  .dt-ph { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:var(--muted2); font-size:13px; pointer-events:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:calc(100% - 34px); }
  .dt-wrap.dt-filled .dt-ph { display:none; }
  /* 空态彻底隐藏原生字段：覆盖 year/month/day/hour/minute/second/ampm 及分隔符 text，含 :focus 态，防聚焦时原生 yyyy/mm/dd --:-- 重新显色与中文占位叠加成“重影” */
  input.dt-empty::-webkit-datetime-edit,
  input.dt-empty::-webkit-datetime-edit-fields-wrapper,
  input.dt-empty::-webkit-datetime-edit-text,
  input.dt-empty::-webkit-datetime-edit-year-field,
  input.dt-empty::-webkit-datetime-edit-month-field,
  input.dt-empty::-webkit-datetime-edit-day-field,
  input.dt-empty::-webkit-datetime-edit-hour-field,
  input.dt-empty::-webkit-datetime-edit-minute-field,
  input.dt-empty::-webkit-datetime-edit-second-field,
  input.dt-empty::-webkit-datetime-edit-ampm-field,
  input.dt-empty:focus::-webkit-datetime-edit,
  input.dt-empty:focus::-webkit-datetime-edit-field {
    color:transparent !important; -webkit-text-fill-color:transparent !important; background:transparent !important; text-shadow:none !important;
  }
  /* ===== 预览视图切换（.pv-tabs）深色分段控件：去白底大圆角、防文字换行、选中态柔和（此前为浅色遗留样式，深色下像三块白按钮） ===== */
  .pv-tabs { display:inline-flex; gap:3px; padding:3px; margin:2px 0 12px; background:var(--surface2); border:1px solid var(--line); border-radius:11px; }
  .pv-tabs button { flex:0 0 auto; padding:6px 14px; border:none; background:transparent; color:var(--muted); border-radius:8px; font-size:12px; line-height:1; white-space:nowrap; cursor:pointer; transition:background .15s, color .15s; }
  .pv-tabs button:hover { color:var(--ink); background:rgba(255,255,255,.05); }
  .pv-tabs button.on { background:var(--cyan); color:#fff; box-shadow:0 2px 8px rgba(0,180,200,.32); }
  /* ===== .pv-toolbar 内普通文本输入框深色化（副标题/按钮文案等无 type 的 input 此前漏覆盖，退化为白框），与 select/number/color 统一 ===== */
  .pv-toolbar input:not([type]), .pv-toolbar input[type=text] { background:var(--field); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:5px 9px; font-size:12px; height:30px; box-sizing:border-box; transition:border-color .15s, box-shadow .15s; }
  .pv-toolbar input:not([type]):hover, .pv-toolbar input[type=text]:hover { border-color:var(--muted2); }
  .pv-toolbar input:not([type]):focus, .pv-toolbar input[type=text]:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(0,180,200,.18); }
  .pv-toolbar input::placeholder { color:var(--muted2); }

  /* ================================================================
     ===== V3 全局紧凑化 + 科技感重绘（深色；移除本块即回退到 V2） =====
     目标：近黑深蓝底 + 电光青点缀、细发丝边框、去厚重阴影、全面收紧间距与字号
     ================================================================ */
  :root {
    --bg:#0a1120; --surface:#101a2c; --surface2:#0d1626; --line:#1f2c42; --line2:#1a2740;
    --ink:#eaf2fc; --muted:#8ea3bd; --muted2:#647a97; --field:#0b1524;
    --cyan:#2ad4ee; --accent:#2ad4ee; --accent2:#4f8cff;
  }
  body { background:
      radial-gradient(1200px 620px at 10% -10%, rgba(42,212,238,.07), transparent 60%),
      radial-gradient(1100px 560px at 100% 0%, rgba(79,140,255,.055), transparent 55%),
      var(--bg); }
  main { max-width:1240px; margin:14px auto; padding:0 16px; }
  header { height:52px; }
  /* 顶部门店栏：更扁、细边、去阴影 */
  .tidbar { padding:8px 12px; margin-bottom:12px; border-radius:10px; background:var(--surface); border:1px solid var(--line); box-shadow:none; }
  /* KPI 网格：收紧间距；卡片扁平 + 顶部霓虹高光线 */
  .grid { gap:10px; margin-bottom:12px; }
  .stat { padding:12px 14px; border-radius:12px; background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,0) 42%),var(--surface); border:1px solid var(--line); box-shadow:none; position:relative; overflow:hidden; transition:border-color .15s, box-shadow .15s; }
  .stat::after { content:''; position:absolute; left:0; top:0; height:2px; width:100%; background:linear-gradient(90deg,var(--cyan),transparent 72%); opacity:.55; }
  .stat:hover { border-color:rgba(42,212,238,.5); box-shadow:0 6px 20px rgba(0,0,0,.35); }
  .stat .k { font-size:12px; color:var(--muted); letter-spacing:.3px; }
  .stat .v { font-size:22px; margin-top:4px; color:var(--ink); font-weight:700; }
  /* 面板：更紧凑、细边、去阴影；标题左侧渐变霓虹条 */
  .panel { padding:14px 16px; border-radius:12px; margin-bottom:12px; background:var(--surface); border:1px solid var(--line); box-shadow:none; }
  .panel h3 { font-size:14px; color:var(--ink); margin-bottom:12px; border-left:none; padding-left:12px; position:relative; letter-spacing:.5px; }
  .panel h3::before { content:''; position:absolute; left:0; top:2px; bottom:2px; width:3px; border-radius:3px; background:linear-gradient(180deg,var(--cyan),var(--accent2)); }
  .todo { padding:7px 4px; border-bottom:1px solid var(--line2); }
  /* 模块磁贴：更矮更紧凑、hover 发光上浮 */
  .mods { gap:10px; }
  .mod { padding:12px 10px; border-radius:10px; background:var(--surface2); border:1px solid var(--line); color:var(--txt); transition:border-color .15s, box-shadow .15s, transform .15s; }
  .mod .ic { font-size:20px; margin-bottom:6px; }
  .mod:hover { border-color:var(--cyan); color:var(--ink); box-shadow:0 0 0 1px rgba(42,212,238,.32), 0 8px 20px rgba(0,0,0,.38); transform:translateY(-1px); }
  .mod .tip { font-size:11px; color:var(--muted2); margin-top:4px; }
  /* 抽屉/弹层同步：细边、去重阴影、更科技 */
  #drawer { border:1px solid var(--line); box-shadow:0 24px 60px rgba(0,0,0,.55); }
  .chip { background:var(--surface2); border:1px solid var(--line); border-left:3px solid var(--cyan); border-radius:10px; padding:10px 14px; box-shadow:none; }
  .chip .cv { font-size:20px; }

  /* ================================================================
     ===== V3.1 护眼：降低实心青按钮的刺眼度（移除本块即回退） =====
     亮青 #2ad4ee 大面积 + 白字易发虚刺眼 → 改深一档青绿渐变 + 微内高光 + 文字投影
     ================================================================ */
  .btn2 { background:linear-gradient(180deg,#1fb6d1,#1587a2); border:1px solid #12788f; box-shadow:inset 0 1px 0 rgba(255,255,255,.09); text-shadow:0 1px 1px rgba(0,0,0,.22); }
  .btn2:hover { filter:none; background:linear-gradient(180deg,#26c1db,#1894ae); border-color:#1587a2; }
  .btn2:active { background:linear-gradient(180deg,#1894ae,#12788f); }
  /* 登录主按钮同此：避免整块高亮青，渐变略沉 */
  .btn { background:linear-gradient(90deg,#0f7fa0,#1fb6d1); text-shadow:0 1px 1px rgba(0,0,0,.22); }
  /* 磁贴 hover 与 KPI 顶部霓虹线：降不透明度，余光晕不刺眼 */
  .stat::after { opacity:.4; }
  .mod:hover { box-shadow:0 0 0 1px rgba(31,182,209,.28), 0 8px 20px rgba(0,0,0,.38); }

  /* ================================================================
     ===== V4 浅色主题（追加覆盖；移除本块即回退到深色 V3） =====
     策略：把 var 变量重定义为浅色板（大部分深色规则靠 var 驱动会自动变浅）
     + 修正少数深色硬编码：日历 color-scheme、卡片/抽屉阴影、白色半透 hover、主按钮渐变。
     顶部品牌栏保留 navy 深蓝字条（原始浅色设计如此，light 后台常见做法）。
     ================================================================ */
  :root {
    --bg:#eaeff6; --surface:#ffffff; --surface2:#f4f8fc; --line:#e3eaf3; --line2:#eef2f8;
    --ink:#132741; --txt:#33465f; --muted:#647893; --muted2:#93a4bd; --field:#ffffff;
    --cyan:#0a93c2; --accent:#0a93c2; --accent2:#3b7ddd;
  }
  body { background:var(--bg); color:var(--txt); }
  /* 原生日期/时间控件转浅色（日历弹层不再深色） */
  input[type="date"], input[type="datetime-local"], input[type="time"] { color-scheme: light; }
  /* 卡片/面板/磁贴/chip：白底细边 + 柔和浅影 */
  .stat { background:var(--surface); border:1px solid var(--line); box-shadow:0 1px 3px rgba(20,40,70,.06); }
  .stat:hover { border-color:rgba(10,147,194,.45); box-shadow:0 6px 18px rgba(20,40,70,.1); }
  .stat::after { opacity:.5; }
  .panel { background:var(--surface); border:1px solid var(--line); box-shadow:0 1px 3px rgba(20,40,70,.06); }
  .mod { background:var(--surface2); border:1px solid var(--line); color:var(--txt); }
  .mod:hover { border-color:var(--cyan); color:var(--cyan); box-shadow:0 4px 14px rgba(20,40,70,.1); transform:translateY(-1px); }
  .chip { background:var(--surface2); border:1px solid var(--line); border-left:3px solid var(--cyan); box-shadow:0 1px 3px rgba(20,40,70,.06); }
  /* 抽屉/遮罩：浅底柔影，遮罩改中度蓝灰 */
  #drawer { background:var(--surface); border:1px solid var(--line); box-shadow:0 24px 60px rgba(20,40,70,.25); }
  #mask { background:rgba(30,50,80,.32); backdrop-filter:blur(2px); }
  /* 折叠卡 / 预览控件：深色里用的“白色半透 hover”在浅色下不可见 → 改极淡深色 */
  .chfold { background:var(--surface2); border-color:var(--line); }
  .chfold > summary { color:var(--ink); }
  .chfold > summary:hover { background:rgba(20,40,70,.04); }
  .chfold .chbody { border-top-color:var(--line); }
  .pv-tabs { background:var(--surface2); border-color:var(--line); }
  .pv-tabs button { color:var(--muted); }
  .pv-tabs button:hover { color:var(--ink); background:rgba(20,40,70,.05); }
  .pv-toolbar { background:var(--surface2); border-color:var(--line); }
  .pv-toolbar select option { background:var(--surface); color:var(--ink); }
  /* 输入类控件统一白底深字 */
  .inp, .frm select, .frm input, .gform input, .gform select, .gform textarea, .tidbar input, .field input { background:var(--field); color:var(--ink); border-color:var(--line); }
  .tidbar { background:var(--surface); border-color:var(--line); color:var(--txt); }
  /* 主按钮：浅色下用清晰青蓝实心 + 柔影（去掉深色专用的内高光/文字投影） */
  .btn2 { background:linear-gradient(180deg,#12a6d4,#0a93c2); border:1px solid #0a86b0; box-shadow:0 1px 2px rgba(10,147,194,.25); text-shadow:none; }
  .btn2:hover { filter:none; background:linear-gradient(180deg,#16b2e0,#0c9ecd); border-color:#0a93c2; }
  .btn2:active { background:linear-gradient(180deg,#0a93c2,#0a86b0); }
  .btn { background:linear-gradient(90deg,#0a93c2,#12a6d4); text-shadow:none; }
  /* 表头 / 文本颜色统一 */
  th { background:var(--surface2); color:var(--muted); }
  th,td { border-bottom-color:var(--line2); }
  td, #dbody, .todo b, .subhd, .panel h3, .stat .v, .chip .cv, #drawer .dh h2 { color:var(--ink); }
  .stat .k, .chip .ck, .frm label, .gform label, .tabs button, .bar .lbl { color:var(--muted); }
  .tabs { border-bottom-color:var(--line); }
  .tabs button.on { color:var(--cyan); border-bottom-color:var(--cyan); }
  .hint, .empty, .mod .tip, .dt-ph, .pwd-eye, #dbody .loading { color:var(--muted2); }
  .pwd-eye:hover { color:var(--ink); }
  .todo { border-bottom-color:var(--line2); }
  .bar .trk { background:var(--line2); }

  /* ================================================================
     ===== V5 浅色美化：色彩层次 / 卡片质感（末尾追加；移除本块即回退 V4 素色） =====
     页面加淡彩光晕纵深；KPI 卡按位分色(蓝/青/绿/琥珀)+顶部彩条+角落柔光+同色 hover；
     模块磁贴图标加彩色圆角徽标(按位轮换)+hover 上浮；顶栏/门店栏/面板标题渐变细化。
     ================================================================ */
  body { background:
      radial-gradient(1100px 480px at 0% -5%, rgba(59,130,246,.07), transparent 55%),
      radial-gradient(1000px 460px at 100% -5%, rgba(6,182,212,.07), transparent 55%),
      linear-gradient(180deg,#eef3fa,#e6eef8); background-attachment:fixed; }
  header { background:linear-gradient(90deg,var(--navy),var(--navy2)); border-bottom:2px solid rgba(10,147,194,.55); box-shadow:0 2px 12px rgba(11,37,69,.18); }
  header .logo { letter-spacing:.5px; }
  header .logo em { color:#38d6f0; }
  .tidbar { border-radius:12px; background:linear-gradient(180deg,#ffffff,#f7fbff); border:1px solid var(--line); box-shadow:0 1px 3px rgba(20,40,70,.05); }
  /* KPI 卡：圆角+分层影+顶部彩条+角落柔光，按位分色 */
  .stat { --acc:var(--cyan); position:relative; overflow:hidden; border-radius:14px; padding:16px 18px; border:1px solid var(--line); box-shadow:0 3px 12px rgba(20,40,70,.07); transition:transform .18s, box-shadow .18s, border-color .18s; }
  .stat::before { content:''; position:absolute; right:-34px; top:-34px; width:96px; height:96px; border-radius:50%; opacity:.10; background:var(--acc); pointer-events:none; }
  .stat::after { content:''; position:absolute; left:0; top:0; height:3px; width:100%; background:linear-gradient(90deg,var(--acc),transparent 78%); opacity:1; }
  .stat .v { font-size:26px; letter-spacing:.5px; }
  .stat:hover { transform:translateY(-2px); border-color:var(--acc); box-shadow:0 10px 26px -10px var(--acc); }
  .stat:nth-child(1) { --acc:#3b82f6; }
  .stat:nth-child(2) { --acc:#06b6d4; }
  .stat:nth-child(3) { --acc:#10b981; }
  .stat:nth-child(4) { --acc:#f59e0b; }
  /* 面板：更圆 + 轻影；标题左侧渐变条略粗 */
  .panel { border-radius:14px; border:1px solid var(--line); box-shadow:0 3px 12px rgba(20,40,70,.06); }
  .panel h3 { font-size:15px; }
  .panel h3::before { width:4px; background:linear-gradient(180deg,var(--cyan),var(--accent2)); }
  /* 待办行：hover 淡青底 + 动作加粗 */
  .todo { padding:10px 6px; border-bottom:1px solid var(--line2); border-radius:8px; transition:background .15s; }
  .todo:hover { background:rgba(10,147,194,.05); }
  .todo .act { font-weight:600; }
  /* 模块磁贴：彩色圆角图标徽标（按位轮换）+ hover 上浮同色光 */
  .mod { --acc:#0a93c2; position:relative; border-radius:14px; padding:16px 12px; font-weight:600; color:var(--ink); background:linear-gradient(180deg,#ffffff,#f6fbff); border:1px solid var(--line); box-shadow:0 2px 8px rgba(20,40,70,.05); transition:transform .16s, box-shadow .16s, border-color .16s; }
  .mod .ic { display:flex; align-items:center; justify-content:center; width:50px; height:50px; margin:0 auto 10px; border-radius:14px; font-size:24px; background:linear-gradient(135deg,#eaf3fb,#d9ecf7); box-shadow:inset 0 0 0 1px rgba(10,147,194,.12); }
  .mod .tip { font-weight:400; color:var(--muted2); }
  .mod:hover { transform:translateY(-3px); border-color:var(--acc); box-shadow:0 12px 26px -10px var(--acc); }
  .mods .mod:nth-child(1) { --acc:#3b82f6; } .mods .mod:nth-child(1) .ic { background:linear-gradient(135deg,#e8f0ff,#d6e4ff); box-shadow:inset 0 0 0 1px rgba(59,130,246,.16); }
  .mods .mod:nth-child(2) { --acc:#06b6d4; } .mods .mod:nth-child(2) .ic { background:linear-gradient(135deg,#e2f6fb,#cdeef7); box-shadow:inset 0 0 0 1px rgba(6,182,212,.16); }
  .mods .mod:nth-child(3) { --acc:#10b981; } .mods .mod:nth-child(3) .ic { background:linear-gradient(135deg,#e4f8ee,#cdefdd); box-shadow:inset 0 0 0 1px rgba(16,185,129,.16); }
  .mods .mod:nth-child(4) { --acc:#8b5cf6; } .mods .mod:nth-child(4) .ic { background:linear-gradient(135deg,#efeafe,#e0d6fb); box-shadow:inset 0 0 0 1px rgba(139,92,246,.16); }
  /* 抽屉滚动条浅色美化 */
  #drawer::-webkit-scrollbar { width:10px; }
  #drawer::-webkit-scrollbar-thumb { background:#c9d6e6; border-radius:6px; border:2px solid transparent; background-clip:content-box; }
  #drawer::-webkit-scrollbar-thumb:hover { background:#b3c4da; background-clip:content-box; }

  /* ================================================================
     ===== V6 OPS 控制台 tab：修复深色遗留内联样式致白底隐形（未选中浅底深字可读） =====
     ================================================================ */
  .opsnav { padding:7px 14px; border:1px solid var(--line); border-radius:9px; cursor:pointer; font-size:13px; font-weight:600; color:var(--txt); background:var(--surface); display:inline-block; margin:0 8px 8px 0; transition:background .16s, color .16s, border-color .16s, box-shadow .16s; }
  .opsnav:hover { border-color:var(--cyan); color:var(--cyan); background:#f0f9fd; }
  .opsnav.on { background:linear-gradient(90deg,#0a93c2,#12a6d4); border-color:#0a86b0; color:#fff; box-shadow:0 4px 12px rgba(10,147,194,.28); }
  .opsnav.on:hover { color:#fff; background:linear-gradient(90deg,#0c9fce,#17b0dc); }

  /* ================================================================
     ===== V7 自研日期/时间选择弹层（替换浏览器原生日历） =====
     隐藏原生指示器（改由 JS 接管，输入框 readonly）；.dtp 弹层贴着输入框下方、与输入框等宽(最窄300px)、格子更大，全部走 var 变量自动适配深浅主题。
     ================================================================ */
  input[type="date"]::-webkit-calendar-picker-indicator,
  input[type="datetime-local"]::-webkit-calendar-picker-indicator,
  input[type="time"]::-webkit-calendar-picker-indicator { display:none; opacity:0; pointer-events:none; width:0; margin:0; }
  .dt-wrap > input[readonly] { -webkit-text-fill-color:var(--ink); opacity:1; padding-right:30px; }
  .dt-ic { position:absolute; right:9px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; display:inline-flex; width:16px; height:16px; }
  .dt-ic svg { width:16px; height:16px; }
  .dtp { position:fixed; z-index:9999; box-sizing:border-box; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:12px; box-shadow:0 16px 44px rgba(20,40,70,.24); padding:10px; font-size:13px; user-select:none; }
  .dtp * { box-sizing:border-box; }
  .dtp-hd { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
  .dtp-my { font-weight:700; font-size:14px; }
  .dtp-nav { width:30px; height:30px; border:1px solid var(--line); background:var(--surface2); color:var(--ink); border-radius:8px; cursor:pointer; font-size:16px; line-height:1; }
  .dtp-nav:hover { border-color:var(--cyan); color:var(--cyan); }
  .dtp-wk { display:grid; grid-template-columns:repeat(7,1fr); text-align:center; color:var(--muted); font-size:12px; margin:4px 0; }
  .dtp-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
  .dtp-d { height:38px; display:flex; align-items:center; justify-content:center; border-radius:8px; cursor:pointer; font-size:14px; }
  .dtp-d:hover { background:rgba(10,147,194,.12); }
  .dtp-d.out { color:var(--muted2); }
  .dtp-d.today { box-shadow:inset 0 0 0 1px var(--cyan); color:var(--cyan); }
  .dtp-d.sel { background:var(--cyan); color:#fff; font-weight:700; }
  .dtp-d.sel.today { color:#fff; box-shadow:none; }
  .dtp-tm { display:flex; align-items:center; gap:6px; margin:10px 2px 2px; }
  .dtp-sel { flex:1; height:34px; border:1px solid var(--line); border-radius:8px; background:var(--field); color:var(--ink); font-size:14px; text-align:center; cursor:pointer; }
  .dtp-colon { font-weight:700; }
  .dtp-now { height:34px; padding:0 10px; border:1px solid var(--line); border-radius:8px; background:var(--surface2); color:var(--ink); cursor:pointer; }
  .dtp-now:hover { border-color:var(--cyan); color:var(--cyan); }
  .dtp-ft { display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
  .dtp-ftr { display:flex; gap:8px; }
  .dtp-ft button { height:30px; padding:0 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface2); color:var(--ink); cursor:pointer; font-size:13px; }
  .dtp-ft button:hover { border-color:var(--cyan); color:var(--cyan); }
  .dtp-clear { color:var(--bad); }
  .dtp-ok { background:var(--cyan); color:#fff; border-color:var(--cyan); }