/* =====================================================================
   AIP 控制台主题包 · themes.css
   5 套主题：whiteti(默认) / green / deepspace / amber / wasteland
   用法：<html data-theme="...">，由 /themes/theme.js 在首屏前设置。
   只叠加在 style.css 之上，不改原有类名；删掉这两行引用即回到旧样式。
   ===================================================================== */
@font-face{font-family:"T Chakra";src:url(fonts/chakra-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"T BarlowC";src:url(fonts/barlowc-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"T BarlowC";src:url(fonts/barlowc-700.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"T BlackOps";src:url(fonts/blackops.woff2) format("woff2");font-display:swap}
@font-face{font-family:"T Stencil";src:url(fonts/allerta.woff2) format("woff2");font-display:swap}
@font-face{font-family:"T Exo2";src:url(fonts/exo2.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"T JBMono";src:url(fonts/jbmono.woff2) format("woff2");font-weight:100 800;font-display:swap}

/* ---------- 公共默认（= 白钛） ---------- */
html[data-aip-theme]{
  --t-sans:-apple-system,"SF Pro Text","Segoe UI","PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  --t-mono:"T JBMono",ui-monospace,Consolas,"Microsoft YaHei UI","Noto Sans Mono CJK SC",monospace;
  --t-num:var(--t-sans); --t-head:var(--t-sans); --t-head-ls:-.01em; --t-head-tt:none;
  --t-radius:14px; --t-radius-sm:10px;
}
html[data-aip-theme=whiteti]{
  color-scheme:light;
  --t-num:"T Exo2",var(--t-sans);
  --t-bg:#D8DEE6;
  --t-bg-img:radial-gradient(1100px 600px at 12% -10%,rgba(226,231,238,.9),transparent 58%),radial-gradient(900px 700px at 100% 0%,rgba(79,168,255,.16),transparent 58%),repeating-linear-gradient(90deg,rgba(255,255,255,0) 0 2px,rgba(255,255,255,.14) 2px 3px,rgba(15,23,42,.02) 3px 5px),linear-gradient(180deg,#E2E7EE,#C8D0DA);
  --t-surface:linear-gradient(180deg,rgba(244,247,251,.96),rgba(232,237,244,.92));
  --t-surface-solid:#F0F3F7; --t-surface-2:#E4E9F0; --t-surface-3:#D5DCE6; --t-input:#F7F9FC;
  --t-border:rgba(15,23,42,.20); --t-border-2:rgba(15,23,42,.34);
  --t-hi:inset 0 1px 0 rgba(255,255,255,.85); --t-shadow:0 8px 22px rgba(15,23,42,.12),0 2px 6px rgba(15,23,42,.08); --t-blur:blur(14px) saturate(130%);
  --t-text:#1a2332; --t-sub:#4A5568; --t-dim:#6B7789;
  --t-acc:#4FA8FF; --t-acc-rgb:79,168,255; --t-acc-text:#1F7AE0; --t-on-acc:#ffffff; --t-acc-2:#2B7FE0;
  --t-btn:linear-gradient(180deg,#5cb2ff,#2f8cf0); --t-glow:.28;
  --t-ok:#16a34a; --t-ok-rgb:22,163,74; --t-warn:#c26a00; --t-warn-rgb:217,122,0; --t-bad:#d92d20; --t-bad-rgb:217,45,32; --t-info:#2f6fd0;
  --t-nav-bg:linear-gradient(180deg,#E8EDF3,#D2D9E3); --t-nav-border:rgba(15,23,42,.30);
  --t-nav-item:linear-gradient(180deg,#F4F7FB,#E6EBF2); --t-nav-item-b:rgba(15,23,42,.32); --t-nav-text:#2a3444; --t-nav-sec:#6B7789;
  --t-nav-on:linear-gradient(180deg,#5cb2ff,#2f8cf0); --t-nav-on-text:#fff; --t-nav-on-b:rgba(47,140,240,.65);
  --t-logo:linear-gradient(145deg,#8cc8ff,#2F8CF0); --t-logo-text:#fff;
  --t-th:#DDE3EB; --t-row-alt:rgba(15,23,42,.045); --t-row-hover:rgba(79,168,255,.10);
  --t-term-bg:linear-gradient(180deg,#E8EDF3,#DDE3EB); --t-term-text:#2a3444; --t-term-line:rgba(255,255,255,.55);
  --t-overlay:rgba(15,23,42,.40); --t-scroll:#9AA6B5;
  --t-bezel:linear-gradient(90deg,rgba(255,255,255,.9) 0,rgba(255,255,255,0) 6%,rgba(255,255,255,0) 94%,rgba(255,255,255,.8) 100%),linear-gradient(155deg,#f0f3f7 0%,#b8c0cb 12%,#dce2e9 26%,#9aa5b2 42%,#e8edf3 56%,#a8b2be 72%,#cfd6df 86%,#f0f3f7 96%,#949eab 100%);
  --t-bezel-edge:#7a8492; --t-bezel-in:rgba(255,255,255,.9); --t-phone-shadow:0 22px 40px rgba(15,23,42,.24),0 6px 14px rgba(15,23,42,.16);
  --t-stage:radial-gradient(ellipse at 50% 100%,rgba(79,168,255,.14),transparent 60%),linear-gradient(180deg,#E2E7EE,#D0D7E0);
}
html[data-aip-theme=green]{
  color-scheme:dark;
  --t-num:var(--t-mono);
  --t-bg:#0a0b0d;
  --t-bg-img:radial-gradient(1000px 560px at 18% -10%,rgba(124,252,0,.09),transparent 60%),radial-gradient(800px 700px at 95% 15%,rgba(120,150,255,.08),transparent 60%),linear-gradient(180deg,#0d0f12,#08090b);
  --t-surface:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  --t-surface-solid:#16181b; --t-surface-2:rgba(255,255,255,.04); --t-surface-3:rgba(255,255,255,.07); --t-input:rgba(0,0,0,.35);
  --t-border:rgba(255,255,255,.22); --t-border-2:rgba(255,255,255,.40);
  --t-hi:inset 0 1px 0 rgba(255,255,255,.07); --t-shadow:0 10px 30px rgba(0,0,0,.35); --t-blur:blur(16px) saturate(140%);
  --t-text:#ECEEF1; --t-sub:#9AA0A8; --t-dim:#6A7078;
  --t-acc:#7CFC00; --t-acc-rgb:124,252,0; --t-acc-text:#8CFF2A; --t-on-acc:#071100; --t-acc-2:#3f8f00;
  --t-btn:linear-gradient(180deg,#9dff4a,#62d400); --t-glow:.45;
  --t-ok:#7CFC00; --t-ok-rgb:124,252,0; --t-warn:#ffb547; --t-warn-rgb:255,181,71; --t-bad:#ff6b5e; --t-bad-rgb:255,107,94; --t-info:#7fb4ff;
  --t-nav-bg:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015)); --t-nav-border:rgba(255,255,255,.28);
  --t-nav-item:rgba(255,255,255,.05); --t-nav-item-b:rgba(255,255,255,.36); --t-nav-text:#A9AFB7; --t-nav-sec:#5E646C;
  --t-nav-on:linear-gradient(90deg,rgba(124,252,0,.22),rgba(124,252,0,.05)); --t-nav-on-text:#fff; --t-nav-on-b:rgba(124,252,0,.55);
  --t-logo:linear-gradient(145deg,#b6ff6a,#5fd400); --t-logo-text:#071100;
  --t-th:rgba(255,255,255,.035); --t-row-alt:rgba(255,255,255,.015); --t-row-hover:rgba(124,252,0,.05);
  --t-term-bg:rgba(0,0,0,.55); --t-term-text:#b9bec5; --t-term-line:rgba(255,255,255,.03);
  --t-overlay:rgba(0,0,0,.6); --t-scroll:#2c3036;
  --t-bezel:linear-gradient(90deg,rgba(255,255,255,.35) 0,rgba(255,255,255,0) 4%,rgba(255,255,255,0) 96%,rgba(255,255,255,.28) 100%),linear-gradient(155deg,#e4e1db 0%,#8e8a84 10%,#3a3936 24%,#26262a 40%,#6f6c67 55%,#2e2e31 70%,#1f2023 84%,#b7b3ac 96%,#5d5a56 100%);
  --t-bezel-edge:#1a1c1f; --t-bezel-in:rgba(255,255,255,.45); --t-phone-shadow:0 26px 50px rgba(0,0,0,.6),0 8px 18px rgba(0,0,0,.45);
  --t-stage:radial-gradient(ellipse at 50% 100%,rgba(124,252,0,.12),transparent 60%),transparent;
}
html[data-aip-theme=deepspace]{
  color-scheme:dark;
  --t-num:"T Chakra",var(--t-mono); --t-head:"T Chakra",var(--t-sans);
  --t-radius:12px; --t-radius-sm:8px;
  --t-bg:#0B1220;
  --t-bg-img:radial-gradient(1000px 640px at 15% -15%,rgba(0,229,255,.15),transparent 60%),radial-gradient(900px 760px at 100% 10%,rgba(40,90,255,.17),transparent 60%),linear-gradient(rgba(0,229,255,.035) 1px,transparent 1px) 0 0/32px 32px,linear-gradient(90deg,rgba(0,229,255,.035) 1px,transparent 1px) 0 0/32px 32px,linear-gradient(180deg,#0d1628,#070c17);
  --t-surface:linear-gradient(180deg,rgba(80,170,255,.085),rgba(20,60,120,.06));
  --t-surface-solid:#0f1a2e; --t-surface-2:rgba(0,229,255,.045); --t-surface-3:rgba(0,229,255,.08); --t-input:rgba(2,10,24,.6);
  --t-border:rgba(0,229,255,.32); --t-border-2:rgba(0,229,255,.50);
  --t-hi:inset 0 1px 0 rgba(140,230,255,.12),inset 0 0 30px rgba(0,229,255,.025); --t-shadow:0 10px 30px rgba(0,0,0,.5); --t-blur:blur(16px) saturate(140%);
  --t-text:#E3F4FF; --t-sub:#8FAAC4; --t-dim:#557089;
  --t-acc:#00E5FF; --t-acc-rgb:0,229,255; --t-acc-text:#2BEBFF; --t-on-acc:#001318; --t-acc-2:#0a5bd8;
  --t-btn:linear-gradient(180deg,#4ff0ff,#00b8e6); --t-glow:.45;
  --t-ok:#3ef0b0; --t-ok-rgb:62,240,176; --t-warn:#ffc35a; --t-warn-rgb:255,195,90; --t-bad:#ff6b7d; --t-bad-rgb:255,107,125; --t-info:#8ab4ff;
  --t-nav-bg:linear-gradient(180deg,rgba(0,229,255,.06),rgba(10,30,60,.28)); --t-nav-border:rgba(0,229,255,.36);
  --t-nav-item:rgba(0,229,255,.07); --t-nav-item-b:rgba(0,229,255,.40); --t-nav-text:#9cb6cf; --t-nav-sec:#4F6884;
  --t-nav-on:linear-gradient(90deg,rgba(0,229,255,.24),rgba(0,229,255,.05)); --t-nav-on-text:#fff; --t-nav-on-b:rgba(0,229,255,.62);
  --t-logo:linear-gradient(145deg,#8ff6ff,#00a6d6); --t-logo-text:#001318;
  --t-th:rgba(0,229,255,.05); --t-row-alt:rgba(0,229,255,.018); --t-row-hover:rgba(0,229,255,.07);
  --t-term-bg:rgba(2,8,20,.72); --t-term-text:#a9c6dd; --t-term-line:rgba(0,229,255,.03);
  --t-overlay:rgba(0,6,16,.7); --t-scroll:#1d3350;
  --t-bezel:linear-gradient(90deg,rgba(200,235,255,.45) 0,rgba(255,255,255,0) 4%,rgba(255,255,255,0) 96%,rgba(200,235,255,.35) 100%),linear-gradient(155deg,#dbe8f5 0%,#7f93aa 10%,#2d3a4b 24%,#1b2533 40%,#64788f 55%,#243042 70%,#151d29 84%,#a9bdd2 96%,#4a5b70 100%);
  --t-bezel-edge:#0a111c; --t-bezel-in:rgba(180,225,255,.5); --t-phone-shadow:0 26px 50px rgba(0,0,0,.6),0 0 30px rgba(0,229,255,.12);
  --t-stage:radial-gradient(ellipse at 50% 100%,rgba(0,229,255,.16),transparent 60%),transparent;
}
html[data-aip-theme=amber]{
  color-scheme:dark;
  --t-num:"T JBMono",var(--t-mono); --t-head:"T BarlowC",var(--t-sans); --t-head-ls:.06em;
  --t-radius:10px; --t-radius-sm:7px;
  --t-bg:#141414;
  --t-bg-img:radial-gradient(1000px 560px at 20% -10%,rgba(255,159,28,.12),transparent 60%),radial-gradient(800px 700px at 100% 30%,rgba(255,90,20,.06),transparent 60%),linear-gradient(rgba(255,159,28,.022) 1px,transparent 1px) 0 0/24px 24px,linear-gradient(90deg,rgba(255,159,28,.022) 1px,transparent 1px) 0 0/24px 24px,linear-gradient(180deg,#181716,#0e0e0e);
  --t-surface:linear-gradient(180deg,rgba(255,235,210,.05),rgba(255,255,255,.012));
  --t-surface-solid:#1c1a18; --t-surface-2:rgba(255,200,140,.04); --t-surface-3:rgba(255,200,140,.08); --t-input:rgba(0,0,0,.4);
  --t-border:rgba(255,190,120,.28); --t-border-2:rgba(255,190,120,.48);
  --t-hi:inset 0 1px 0 rgba(255,220,180,.07); --t-shadow:0 10px 28px rgba(0,0,0,.45); --t-blur:blur(14px);
  --t-text:#F3EBDD; --t-sub:#ADA190; --t-dim:#766c5f;
  --t-acc:#FF9F1C; --t-acc-rgb:255,159,28; --t-acc-text:#FFB347; --t-on-acc:#1a0d00; --t-acc-2:#b85a00;
  --t-btn:linear-gradient(180deg,#ffb44d,#f08c00); --t-glow:.4;
  --t-ok:#9ccc65; --t-ok-rgb:156,204,101; --t-warn:#FFB347; --t-warn-rgb:255,179,71; --t-bad:#ff6a3d; --t-bad-rgb:255,106,61; --t-info:#e8c58a;
  --t-nav-bg:linear-gradient(180deg,rgba(255,220,180,.045),rgba(0,0,0,.22)); --t-nav-border:rgba(255,190,120,.34);
  --t-nav-item:rgba(255,200,140,.07); --t-nav-item-b:rgba(255,190,120,.40); --t-nav-text:#b8ab98; --t-nav-sec:#6A6156;
  --t-nav-on:linear-gradient(90deg,rgba(255,159,28,.24),rgba(255,159,28,.05)); --t-nav-on-text:#fff3e0; --t-nav-on-b:rgba(255,159,28,.62);
  --t-logo:linear-gradient(145deg,#ffd08a,#ff8a00); --t-logo-text:#1a0d00;
  --t-th:rgba(255,200,140,.045); --t-row-alt:rgba(255,200,140,.015); --t-row-hover:rgba(255,159,28,.06);
  --t-term-bg:rgba(10,7,3,.72); --t-term-text:#d9bd92; --t-term-line:rgba(255,159,28,.035);
  --t-overlay:rgba(0,0,0,.65); --t-scroll:#3a3127;
  --t-bezel:linear-gradient(90deg,rgba(255,255,255,.22) 0,rgba(255,255,255,0) 4%,rgba(255,255,255,0) 96%,rgba(255,255,255,.18) 100%),linear-gradient(155deg,#9a9792 0%,#4a4846 12%,#232222 28%,#171717 45%,#3d3b39 58%,#1c1c1c 74%,#111 86%,#7a7671 97%,#333 100%);
  --t-bezel-edge:#050505; --t-bezel-in:rgba(255,230,200,.25); --t-phone-shadow:0 26px 50px rgba(0,0,0,.65);
  --t-stage:radial-gradient(ellipse at 50% 100%,rgba(255,159,28,.13),transparent 60%),transparent;
}
html[data-aip-theme=wasteland]{
  color-scheme:dark;
  --t-num:"T BarlowC",var(--t-mono); --t-head:"T BlackOps",var(--t-sans); --t-head-ls:.06em;
  --t-radius:0px; --t-radius-sm:0px;
  --t-bg:#2B2D2A;
  --t-bg-img:radial-gradient(1000px 560px at 20% -10%,rgba(224,176,32,.09),transparent 60%),radial-gradient(900px 700px at 100% 100%,rgba(160,82,45,.17),transparent 60%),linear-gradient(rgba(0,0,0,.16) 1px,transparent 1px) 0 0/60px 60px,linear-gradient(90deg,rgba(0,0,0,.16) 1px,transparent 1px) 0 0/60px 60px,linear-gradient(180deg,#2e302c,#1e1f1c);
  --t-surface:linear-gradient(180deg,#3D4036,#34372f);
  --t-surface-solid:#373a32; --t-surface-2:rgba(0,0,0,.18); --t-surface-3:rgba(0,0,0,.28); --t-input:#26281f;
  --t-border:rgba(224,176,32,.30); --t-border-2:rgba(224,176,32,.52);
  --t-hi:inset 0 1px 0 rgba(255,240,200,.09),inset 0 -2px 0 rgba(0,0,0,.3); --t-shadow:0 6px 16px rgba(0,0,0,.45); --t-blur:none;
  --t-text:#E6E1D0; --t-sub:#B8B29D; --t-dim:#868069;
  --t-acc:#E0B020; --t-acc-rgb:224,176,32; --t-acc-text:#EAC03A; --t-on-acc:#1b1606; --t-acc-2:#A0522D;
  --t-btn:linear-gradient(180deg,#e7bf3c,#c39414); --t-glow:.2;
  --t-ok:#a3b85a; --t-ok-rgb:163,184,90; --t-warn:#E0B020; --t-warn-rgb:224,176,32; --t-bad:#d9663a; --t-bad-rgb:217,102,58; --t-info:#c9b98a;
  --t-nav-bg:linear-gradient(180deg,#363930,#2a2c26); --t-nav-border:rgba(224,176,32,.38);
  --t-nav-item:linear-gradient(180deg,#41443a,#383b33); --t-nav-item-b:rgba(224,176,32,.42); --t-nav-text:#cfc9b4; --t-nav-sec:#868069;
  --t-nav-on:linear-gradient(90deg,rgba(224,176,32,.28),rgba(160,82,45,.12)); --t-nav-on-text:#fff6da; --t-nav-on-b:rgba(224,176,32,.65);
  --t-logo:linear-gradient(145deg,#e7c04a,#a07a10); --t-logo-text:#1b1606;
  --t-th:rgba(0,0,0,.22); --t-row-alt:rgba(0,0,0,.07); --t-row-hover:rgba(224,176,32,.07);
  --t-term-bg:#1c1d19; --t-term-text:#cfc9b3; --t-term-line:rgba(0,0,0,.18);
  --t-overlay:rgba(10,10,8,.7); --t-scroll:#55574b;
  --t-bezel:linear-gradient(90deg,rgba(255,255,255,.12) 0,rgba(255,255,255,0) 4%,rgba(255,255,255,0) 96%,rgba(255,255,255,.1) 100%),radial-gradient(40px 20px at 20% 30%,rgba(160,82,45,.7),transparent),radial-gradient(30px 50px at 85% 70%,rgba(160,82,45,.55),transparent),repeating-linear-gradient(115deg,transparent 0 9px,rgba(255,255,255,.08) 9px 10px,transparent 10px 23px),linear-gradient(155deg,#8a8676 0%,#55564b 15%,#3a3b34 35%,#5b5c50 55%,#2f302a 75%,#77735f 95%);
  --t-bezel-edge:#151511; --t-bezel-in:rgba(255,240,200,.18); --t-phone-shadow:0 22px 44px rgba(0,0,0,.6);
  --t-stage:radial-gradient(ellipse at 50% 100%,rgba(224,176,32,.10),transparent 60%),transparent;
}

/* =====================================================================
   SKIN：把 style.css 的每一类都换成主题变量（选择器在原规则前加 html[data-aip-theme]，
   优先级恒高于原规则，所以不用改 style.css，也不怕它在 PC 上比本包新）
   ===================================================================== */
html[data-aip-theme]{scrollbar-color:var(--t-scroll) transparent;background:var(--t-bg)}
html[data-aip-theme] ::selection{background:rgba(var(--t-acc-rgb),.35);color:inherit}

/* ---- 旧变量全部接到主题 token（页面行内 style 里的 var(--blue) 等也跟着变） ---- */
html[data-aip-theme] body,html[data-aip-theme] body.wx-shell,html[data-aip-theme] body.ph-shell,html[data-aip-theme] body.apps-shell{
  --bg:var(--t-bg); --card:var(--t-surface-solid); --line:var(--t-border-2); --txt:var(--t-text); --sub:var(--t-sub);
  --blue:var(--t-acc-2); --green:var(--t-ok); --red:var(--t-bad); --amber:var(--t-warn); --radius:var(--t-radius);
  --wx-bg:var(--t-bg); --wx-card:var(--t-surface-solid); --wx-ink:var(--t-text); --wx-muted:var(--t-sub); --wx-line:var(--t-border-2);
  --wx-blue:var(--t-acc-text); --wx-graphite:var(--t-sub); --wx-green:var(--t-ok); --wx-green-soft:rgba(var(--t-ok-rgb),.12);
  --wx-amber:var(--t-warn); --wx-red:var(--t-bad); --wx-purple:var(--t-sub); --wx-radius:var(--t-radius);
  --wx-shadow:var(--t-shadow); --wx-shadow-hover:var(--t-shadow); --wx-border:1px solid var(--t-border); --wx-border-soft:1px solid var(--t-border); --wx-inset:var(--t-hi);
  --ph-bg:var(--t-bg); --ph-card:var(--t-surface-solid); --ph-ink:var(--t-text); --ph-muted:var(--t-sub); --ph-line:var(--t-border-2);
  --ph-blue:var(--t-acc-text); --ph-graphite:var(--t-sub); --ph-green:var(--t-ok); --ph-amber:var(--t-warn); --ph-red:var(--t-bad); --ph-purple:var(--t-sub);
  --ph-radius:var(--t-radius); --ph-shadow:var(--t-shadow); --ph-shadow-hover:var(--t-shadow); --ph-border:1px solid var(--t-border); --ph-border-soft:1px solid var(--t-border); --ph-inset:var(--t-hi);
  --ph-soft:var(--t-surface-2); --ph-violet-soft:var(--t-surface-2); --ph-blue-soft:rgba(var(--t-acc-rgb),.1); --ph-green-soft:rgba(var(--t-ok-rgb),.12); --ph-amber-soft:rgba(var(--t-warn-rgb),.12); --ph-red-soft:rgba(var(--t-bad-rgb),.12);
  background:var(--t-bg-img);background-attachment:fixed;color:var(--t-text);font-family:var(--t-sans);
}
html[data-aip-theme] a{color:var(--t-acc-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .layout{background:transparent}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .main{background:transparent}

/* ---- 左侧导航 ---- */
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav{background:var(--t-nav-bg);color:var(--t-nav-text);box-shadow:inset -1px 0 0 var(--t-nav-border);backdrop-filter:var(--t-blur);-webkit-backdrop-filter:var(--t-blur)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav h1{color:var(--t-text);font-family:var(--t-head);letter-spacing:var(--t-head-ls)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav-logo{background:var(--t-logo);color:var(--t-logo-text);box-shadow:0 0 18px rgba(var(--t-acc-rgb),var(--t-glow)),inset 0 1px 0 rgba(255,255,255,.55);border-radius:calc(var(--t-radius-sm) - 1px)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav-sec{color:var(--t-nav-sec)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav .sp{background:var(--t-border-2);opacity:1;height:1px}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav a{position:relative;color:var(--t-nav-text);background:var(--t-nav-item);border:1px solid var(--t-nav-item-b);box-shadow:none;border-radius:var(--t-radius-sm)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav a:hover{color:var(--t-text);background:var(--t-surface-3);border-color:var(--t-border-2);transform:none}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav a.on,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav a.on:hover{color:var(--t-nav-on-text);background:var(--t-nav-on);border-color:var(--t-nav-on-b);box-shadow:var(--t-hi),0 0 22px rgba(var(--t-acc-rgb),calc(var(--t-glow) * .25))}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav a.on .nav-ico{color:var(--t-acc-text)}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) .nav a.on .nav-ico{color:#fff}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav a.on::before{content:"";position:absolute;left:-1px;top:22%;bottom:22%;width:3px;border-radius:3px;background:var(--t-acc);box-shadow:0 0 10px var(--t-acc)}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) .nav a.on::before{display:none}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav a.nav-foot{color:var(--t-dim);background:transparent;border-color:transparent}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .nav a.nav-foot:hover{color:var(--t-text);background:var(--t-surface-3)}

/* ---- 标题栏 / 分页标签 ---- */
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .head h2{color:var(--t-text);font-family:var(--t-head);letter-spacing:var(--t-head-ls)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .gtabs{background:var(--t-surface);border:1px solid var(--t-border-2);border-radius:var(--t-radius-sm);box-shadow:var(--t-hi);padding:5px;backdrop-filter:var(--t-blur)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .gtabs a{color:var(--t-sub);border-radius:calc(var(--t-radius-sm) - 2px) !important;border:none}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .gtabs a:hover{background:var(--t-surface-3);color:var(--t-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .gtabs a.on{background:var(--t-btn);color:var(--t-on-acc) !important;box-shadow:0 0 14px rgba(var(--t-acc-rgb),calc(var(--t-glow) * .7));border:none;margin-bottom:0}

/* ---- 卡片类表面（磨砂玻璃） ---- */
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .card,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .kpi,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .facade-row .kpi,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-card,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-kpi,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .hub-card,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-kpi,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-card,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail-sec,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-banner{
  background:var(--t-surface);border:1px solid var(--t-border-2);border-radius:var(--t-radius);
  box-shadow:var(--t-hi),var(--t-shadow);backdrop-filter:var(--t-blur);-webkit-backdrop-filter:var(--t-blur);color:var(--t-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .card h3,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-card h3,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .hub-card h4,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .sec-t,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail-title{color:var(--t-text);font-family:var(--t-head);letter-spacing:var(--t-head-ls)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .card > h3:first-child,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .card-hd{border-bottom:1px solid var(--t-border);color:var(--t-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .card h3 .muted,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .card h3 .sub,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-card h3 .sub{font-family:var(--t-sans);letter-spacing:0}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .muted,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .kpi .l,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .kpi .s,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .kpi .delta,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-kpi .l,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-kpi .s,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .hub-card p,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-sec,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) label,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .fl label,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .empty{color:var(--t-sub)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .kpi .n,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-kpi .n,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .bb-pill .n,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .facade-row .kpi .n{font-family:var(--t-num);color:var(--t-text);letter-spacing:0}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-kpi.g .n,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .facade-row .kpi .n.accent{color:var(--t-acc-text);text-shadow:0 0 18px rgba(var(--t-acc-rgb),calc(var(--t-glow) * .6))}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .facade-row .delta.up{color:var(--t-ok)} html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .facade-row .delta.down{color:var(--t-bad)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .hub-card:hover,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .facade-row .kpi:hover{border-color:rgba(var(--t-acc-rgb),.45);box-shadow:var(--t-hi),var(--t-shadow),0 0 0 1px rgba(var(--t-acc-rgb),.15)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .hub-card.muted-card{background:var(--t-surface-2)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .hub-card .hc-ico,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .card-ico{background:rgba(var(--t-acc-rgb),.10);color:var(--t-acc-text);border:1px solid rgba(var(--t-acc-rgb),.25);border-radius:calc(var(--t-radius-sm) - 2px)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .hub-card.g .hc-ico,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .card-ico.green{background:rgba(var(--t-ok-rgb),.12);color:var(--t-ok);border-color:rgba(var(--t-ok-rgb),.3)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .hub-card.a .hc-ico,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .card-ico.amber{background:rgba(var(--t-warn-rgb),.12);color:var(--t-warn);border-color:rgba(var(--t-warn-rgb),.3)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .card-ico.red{background:rgba(var(--t-bad-rgb),.12);color:var(--t-bad);border-color:rgba(var(--t-bad-rgb),.3)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .hub-card.s .hc-ico,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .hub-card.muted-card .hc-ico{background:var(--t-surface-2);color:var(--t-sub);border-color:var(--t-border)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .hub-card .soon{background:rgba(var(--t-warn-rgb),.12);color:var(--t-warn);border:1px solid rgba(var(--t-warn-rgb),.3)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-banner{background:var(--t-surface);color:var(--t-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .think-drawer,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .bailian-card .bb-pill,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ph-toolbar .ph-meta,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ph-hint,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .chk,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-fun div,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-now,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-todo .txt,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .hist{background:var(--t-surface-2);border-color:var(--t-border);color:var(--t-sub)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ph-shell .empty,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .empty{background:transparent}
html[data-aip-theme] .ph-shell .empty{background:var(--t-surface-2);border:1px dashed var(--t-border-2)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .status-chip{background:var(--t-surface-2);color:var(--t-text);border-color:var(--t-border)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .status-chip .dot{background:var(--t-acc);box-shadow:0 0 6px var(--t-acc)}

/* ---- 表格（文字密集区：底色更实，可读性优先） ---- */
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) table{color:var(--t-text);background:var(--t-table-bg,transparent)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-shell table,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) table{border-color:var(--t-border)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) th{background:var(--t-th);color:var(--t-sub);border-bottom:1px solid var(--t-border)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) td{border-bottom:1px solid var(--t-border);color:inherit}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) tbody tr:nth-child(even) td{background:var(--t-row-alt)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) tr:hover td,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) tbody tr:hover td{background:var(--t-row-hover)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ph-table-wrap,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .card > div[style*="overflow"],html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .card > table{background:var(--t-table-bg,transparent);border:1px solid var(--t-border)}

/* ---- 按钮 ---- */
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .btn,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ops button,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) td.ops button,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-btn,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail-fold{
  background:var(--t-surface-2);color:var(--t-text);border:1px solid var(--t-border-2);border-radius:var(--t-radius-sm);box-shadow:var(--t-hi)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button:hover,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .btn:hover,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ops button:hover,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) td.ops button:hover,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-btn:hover,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail-fold:hover{background:var(--t-surface-3);border-color:rgba(var(--t-acc-rgb),.5);color:var(--t-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.p,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .btn.p,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ops button.p,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) td.ops button.p,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .tabs button.on,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-btn.hot,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .pillbtn.hot{
  background:var(--t-btn);color:var(--t-on-acc);border-color:rgba(var(--t-acc-rgb),.7);font-weight:600;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 0 16px rgba(var(--t-acc-rgb),calc(var(--t-glow) * .6))}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.p:hover,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .btn.p:hover,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ops button.p:hover,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) td.ops button.p:hover{background:var(--t-btn);color:var(--t-on-acc);filter:brightness(1.08)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.danger,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .btn.danger{background:linear-gradient(180deg,rgba(var(--t-bad-rgb),.95),rgba(var(--t-bad-rgb),.78));color:#fff;border-color:rgba(var(--t-bad-rgb),.8)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.danger:hover,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .btn.danger:hover{background:rgba(var(--t-bad-rgb),1);color:#fff}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ops button.danger,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) td.ops button.danger{background:transparent;color:var(--t-bad);border-color:rgba(var(--t-bad-rgb),.45)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ops button.danger:hover,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) td.ops button.danger:hover{background:rgba(var(--t-bad-rgb),.12);color:var(--t-bad)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.ghost,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .btn.ghost{background:transparent;border-color:transparent;box-shadow:none;color:var(--t-sub)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.soft,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .btn.soft{background:var(--t-surface-3);color:var(--t-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .cityBtn,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .chip,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ph-chip{background:var(--t-surface-2);border:1px solid var(--t-border-2);color:var(--t-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .cityBtn.p,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .chip.on,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ph-chip.on{background:var(--t-btn) !important;border-color:rgba(var(--t-acc-rgb),.7) !important;color:var(--t-on-acc) !important}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .mode-cap{background:var(--t-surface-2);border:1px solid var(--t-border);box-shadow:var(--t-hi)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .mode-cap button{background:transparent;color:var(--t-sub);border:0;box-shadow:none;border-radius:0}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .mode-cap button:hover{background:var(--t-surface-3);color:var(--t-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .mode-cap button.on{background:var(--t-btn);color:var(--t-on-acc);box-shadow:0 0 16px rgba(var(--t-acc-rgb),calc(var(--t-glow) * .7))}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .mode-cap button + button{border-left:1px solid var(--t-border)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .tabs button.on{border-color:transparent}

/* ---- 表单 ---- */
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) input,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) select,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) textarea,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .one-shot input{background:var(--t-input);color:var(--t-text);border:1px solid var(--t-border-2);border-radius:var(--t-radius-sm);box-shadow:none}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) input::placeholder,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) textarea::placeholder{color:var(--t-dim)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) input:focus,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) select:focus,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) textarea:focus,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .one-shot input:focus{outline:none;border-color:rgba(var(--t-acc-rgb),.75);box-shadow:0 0 0 3px rgba(var(--t-acc-rgb),.18)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) input[type=checkbox],html[data-aip-theme] :is(body,.wx-shell,.ph-shell) input[type=radio],html[data-aip-theme] :is(body,.wx-shell,.ph-shell) input[type=range]{accent-color:var(--t-acc)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) option{background:var(--t-surface-solid);color:var(--t-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) code{background:var(--t-surface-3);color:var(--t-text);border-radius:5px}

/* ---- 标签 / 徽章 ---- */
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .tag,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-tag,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-pill{background:rgba(var(--t-acc-rgb),.12);color:var(--t-acc-text);border:1px solid rgba(var(--t-acc-rgb),.25)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .tag.a,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .tag.green,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-pill.g{background:rgba(var(--t-ok-rgb),.13);color:var(--t-ok);border-color:rgba(var(--t-ok-rgb),.3)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .tag.b,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .tag.amber,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-n{background:rgba(var(--t-warn-rgb),.13);color:var(--t-warn);border-color:rgba(var(--t-warn-rgb),.3)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .tag.c{background:var(--t-surface-3);color:var(--t-sub);border-color:var(--t-border)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .tag.x,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .tag.red{background:rgba(var(--t-bad-rgb),.13);color:var(--t-bad);border-color:rgba(var(--t-bad-rgb),.3)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .st,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .badge{background:var(--t-surface-3);color:var(--t-sub);border:1px solid var(--t-border)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .st.run,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .badge.run,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .badge.ok{background:rgba(var(--t-acc-rgb),.12);color:var(--t-acc-text);border-color:rgba(var(--t-acc-rgb),.3)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .st.pause,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .badge.pause,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .badge.warn{background:rgba(var(--t-warn-rgb),.13);color:var(--t-warn);border-color:rgba(var(--t-warn-rgb),.3)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .st.done,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .badge.done,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .badge.good{background:rgba(var(--t-ok-rgb),.13);color:var(--t-ok);border-color:rgba(var(--t-ok-rgb),.3)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .st.stop,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .badge.stop,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .badge.bad{background:rgba(var(--t-bad-rgb),.13);color:var(--t-bad);border-color:rgba(var(--t-bad-rgb),.3)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .dot.ok,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ok.dot{background:var(--t-ok);box-shadow:0 0 6px rgba(var(--t-ok-rgb),.6)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .say{color:var(--t-acc-text)}

/* ---- 提示条 / 弹窗 / 确认框 ---- */
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .msg.good{background:linear-gradient(rgba(var(--t-ok-rgb),.16),rgba(var(--t-ok-rgb),.16)),var(--t-surface-solid);color:var(--t-text);border:1px solid rgba(var(--t-ok-rgb),.5)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .msg.err{background:linear-gradient(rgba(var(--t-bad-rgb),.16),rgba(var(--t-bad-rgb),.16)),var(--t-surface-solid);color:var(--t-text);border:1px solid rgba(var(--t-bad-rgb),.5)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .dlg,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .cfm{background:var(--t-overlay);backdrop-filter:blur(3px)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .dlg .box,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .cfm-box{background:var(--t-surface),var(--t-surface-solid);color:var(--t-text);border:1px solid var(--t-border-2);border-radius:calc(var(--t-radius) + 2px);box-shadow:var(--t-hi),0 30px 70px rgba(0,0,0,.45)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) pre.log{background:var(--t-term-bg);color:var(--t-term-text);border:1px solid var(--t-border);font-family:var(--t-mono)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .chat .u{background:rgba(var(--t-acc-rgb),.13);color:var(--t-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .chat .a{background:var(--t-surface-2);color:var(--t-text)}

/* ---- 微信壳右侧栏：钛金属手机 + 思考流 ---- */
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail{border-left:1px solid var(--t-border);background:transparent}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail-hd{background:transparent;border-bottom:1px solid var(--t-border)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail-dot.think,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail-dot.phone{background:var(--t-acc);box-shadow:0 0 8px var(--t-acc),0 0 0 3px rgba(var(--t-acc-rgb),.15)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail-fold{border-radius:999px;font-size:12px;padding:3px 10px;color:var(--t-sub)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail-badge{background:var(--t-surface-3);color:var(--t-sub);border:1px solid var(--t-border-2);font-family:var(--t-mono)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail-badge.live{background:rgba(var(--t-acc-rgb),.12);color:var(--t-acc-text);border-color:rgba(var(--t-acc-rgb),.4)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail-badge.warn{background:rgba(var(--t-warn-rgb),.13);color:var(--t-warn);border-color:rgba(var(--t-warn-rgb),.35)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-rail-badge.off{background:rgba(var(--t-bad-rgb),.12);color:var(--t-bad);border-color:rgba(var(--t-bad-rgb),.35)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-body{background:var(--t-stage);padding:14px 10px 18px}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-frame{max-width:none;width:auto;height:100%;max-height:540px;aspect-ratio:9.9/19.5;margin:0 auto}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-bezel{position:relative;height:100%;box-sizing:border-box;background:var(--t-bezel);border-radius:44px;padding:9px;
  box-shadow:0 0 0 1px var(--t-bezel-edge),inset 0 0 0 1px var(--t-bezel-in),inset 0 0 0 2.5px rgba(0,0,0,.45),inset 0 2px 1px var(--t-bezel-in),var(--t-phone-shadow)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-bezel::before,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-bezel::after{content:"";position:absolute;width:3px;border-radius:2px;background:linear-gradient(90deg,rgba(0,0,0,.35),rgba(255,255,255,.55),rgba(0,0,0,.35)),var(--t-bezel-edge)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-bezel::before{left:-2px;top:18%;height:13%}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-bezel::after{right:-2px;top:24%;height:16%}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-notch{position:absolute;z-index:3;top:17px;left:50%;transform:translateX(-50%);width:30%;max-width:74px;height:20px;margin:0;border-radius:12px;background:#000;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-notch::after{content:"";position:absolute;right:9px;top:6px;width:8px;height:8px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#2a3550,#05070c 70%)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-screen{aspect-ratio:auto;height:100%;border-radius:36px;background:#0b0b0d;box-shadow:0 0 0 2.5px #050505}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-screen::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(125deg,rgba(255,255,255,.10) 0%,rgba(255,255,255,0) 26%,rgba(255,255,255,0) 72%,rgba(255,255,255,.04) 100%)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-screen img.wx-phone-img{object-fit:cover;object-position:top;background:#0b0b0d}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-placeholder{color:#8a8f98}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-phone-placeholder .sub{color:#646a72}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-think-stream{font-family:var(--t-mono);font-size:12px;line-height:1.7;color:var(--t-term-text);background:var(--t-term-bg);border:1px solid var(--t-border);border-radius:var(--t-radius-sm);padding:10px 12px;min-height:100%;box-shadow:inset 0 1px 12px rgba(0,0,0,.25)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-think-line{margin:0 0 6px;padding:5px 9px;border:0;border-left:2px solid rgba(var(--t-acc-rgb),.55);border-radius:0 6px 6px 0;background:var(--t-term-line);color:var(--t-term-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-think-line.final{border-left-color:var(--t-acc);background:rgba(var(--t-acc-rgb),.09);color:var(--t-acc-text);font-weight:600}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-think-line.muted{background:transparent;border-left-color:transparent;color:var(--t-dim)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .wx-think-stream > .wx-think-line:last-child::after{content:"";display:inline-block;width:7px;height:13px;margin-left:4px;vertical-align:-2px;background:var(--t-acc);box-shadow:0 0 8px var(--t-acc);animation:t-blink 1.05s steps(1) infinite}
@keyframes t-blink{50%{opacity:0}}

/* ---- 各页自带 <style> 里写死的浅色块 ---- */
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .rt-intro,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .rt-ex{color:var(--t-sub)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .rt-no{background:rgba(var(--t-acc-rgb),.14);color:var(--t-acc-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .rt-code,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ed-stat{background:var(--t-surface-2);color:var(--t-sub)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .ed-stat.bad{background:rgba(var(--t-bad-rgb),.13);color:var(--t-bad)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .rt-row,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .rt-file{background:var(--t-surface);border:1px solid var(--t-border);box-shadow:var(--t-hi)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .cbar{background:linear-gradient(rgba(var(--t-warn-rgb),.12),rgba(var(--t-warn-rgb),.12)),var(--t-surface-solid);border-color:rgba(var(--t-warn-rgb),.5);color:var(--t-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .kv .cur code{background:var(--t-surface-3)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-step .c{background:var(--t-surface-3);color:var(--t-dim)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-step.now .c{background:var(--t-btn);color:var(--t-on-acc);box-shadow:0 0 0 4px rgba(var(--t-acc-rgb),.2)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-step.now,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-now .b{color:var(--t-acc-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-now .q,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-now .draft{background:var(--t-surface-3);color:var(--t-text)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-tl li{border-bottom-color:var(--t-border)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) .w-tl .i{background:var(--t-surface-3);color:var(--t-sub)}
/* 登录页 */
html[data-aip-theme] body:not(.wx-shell):not(.ph-shell) > form.box{background:var(--t-surface),var(--t-surface-solid);color:var(--t-text);border:1px solid var(--t-border-2);box-shadow:var(--t-hi),var(--t-shadow);border-radius:var(--t-radius)}
html[data-aip-theme] body:not(.wx-shell):not(.ph-shell) > form.box p{color:var(--t-sub)}
/* 深色主题：行内写死的浅底/深字兜底（白钛不需要） */
html[data-aip-theme]:not([data-aip-theme=whiteti]) #page :is([style*="background:#f"],[style*="background: #f"],[style*="background:#e"],[style*="background:white"],[style*="background:#fff"]){background:var(--t-surface-2) !important}
html[data-aip-theme]:not([data-aip-theme=whiteti]) #page :is([style*="color:#1"],[style*="color:#2"],[style*="color:#3"],[style*="color:#4"],[style*="color: #3"],[style*="color:#111"]):not([style*="background"]){color:var(--t-sub) !important}
html[data-aip-theme] #page [style*="background:var(--blue)"]{color:var(--t-on-acc) !important}

/* =====================================================================
   主题切换器（theme.js 注入）
   ===================================================================== */
.t-switch{display:inline-flex;align-items:center;gap:6px;margin-left:10px;padding:4px 6px;border-radius:999px;background:var(--t-surface-2);border:1px solid var(--t-border);box-shadow:var(--t-hi);flex-shrink:0}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.t-dot,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.t-dot:hover{display:block;width:18px;height:18px;min-width:0;border-radius:50%;cursor:pointer;border:1.5px solid rgba(128,128,128,.45);padding:0;margin:0;box-shadow:none;position:relative;transition:transform .12s;filter:none}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.t-dot:hover{transform:scale(1.15)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.t-dot.on{outline:2px solid var(--t-acc);outline-offset:2px}
.t-sw-grid{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:12px;margin-top:4px}
@media(max-width:1200px){.t-sw-grid{grid-template-columns:repeat(3,1fr)}}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.t-sw,html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.t-sw:hover{display:block;width:100%;padding:0;margin:0;text-align:left;font:inherit;cursor:pointer;border-radius:12px;overflow:hidden;border:1px solid var(--t-border-2);background:var(--t-surface-2);box-shadow:none;transition:transform .12s,box-shadow .12s;filter:none;color:inherit}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.t-sw:hover{transform:translateY(-2px);border-color:rgba(var(--t-acc-rgb),.5)}
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) button.t-sw.on{border-color:var(--t-acc);box-shadow:0 0 0 2px rgba(var(--t-acc-rgb),.35),0 0 20px rgba(var(--t-acc-rgb),.2)}
.t-sw .pv{height:78px;position:relative;padding:10px;display:block}
.t-sw .pv i{position:absolute;display:block;border-radius:4px}
.t-sw .meta{display:block;padding:9px 11px 10px;font-size:12.5px;line-height:1.45;color:var(--t-sub)}
.t-sw .meta b{display:flex;align-items:center;gap:6px;font-size:13.5px;color:var(--t-text);margin-bottom:2px}
.t-sw .t-on{display:none;position:absolute;right:8px;top:8px;font-size:11px;font-weight:600;line-height:18px;padding:0 8px;border-radius:999px;background:var(--t-acc);color:var(--t-on-acc)}
.t-sw.on .t-on{display:block}

/* =====================================================================
   各主题的点缀（只在对应主题生效）
   ===================================================================== */
/* 卡片类表面统一成可定位容器，方便画角标/纹理 */
html[data-aip-theme] :is(body,.wx-shell,.ph-shell) :is(.card,.kpi,.wx-card,.wx-kpi,.hub-card,.w-kpi,.w-card,.wx-rail-sec){position:relative}

/* 暗夜黑·霓虹绿：顶边一道冷光 */
html[data-aip-theme=green] :is(body,.wx-shell,.ph-shell) :is(.card,.kpi,.wx-card,.wx-kpi,.hub-card,.wx-rail-sec)::after{
  content:"";position:absolute;left:14%;right:14%;top:-1px;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent)}

/* 深空蓝·电光青：HUD 角标 + 手机外圈光环 */
html[data-aip-theme=deepspace] :is(body,.wx-shell,.ph-shell) :is(.card,.kpi,.wx-card,.wx-kpi,.hub-card,.wx-rail-sec)::after{
  content:"";position:absolute;inset:-1px;pointer-events:none;border-radius:inherit;background-repeat:no-repeat;
  background:linear-gradient(var(--t-acc),var(--t-acc)) top left/14px 1.5px no-repeat,linear-gradient(var(--t-acc),var(--t-acc)) top left/1.5px 14px no-repeat,
             linear-gradient(var(--t-acc),var(--t-acc)) bottom right/14px 1.5px no-repeat,linear-gradient(var(--t-acc),var(--t-acc)) bottom right/1.5px 14px no-repeat;opacity:.85}
html[data-aip-theme=deepspace] :is(body,.wx-shell,.ph-shell) .wx-phone-frame{filter:drop-shadow(0 0 1px rgba(0,229,255,.35))}
html[data-aip-theme=deepspace] :is(body,.wx-shell,.ph-shell) .head h2{text-shadow:0 0 18px rgba(0,229,255,.35)}

/* 石墨黑·琥珀橙：仪表刻度 + 扫描线 */
html[data-aip-theme=amber] :is(body,.wx-shell,.ph-shell) :is(.card,.kpi,.wx-card,.wx-kpi,.hub-card,.wx-rail-sec)::after{
  content:"";position:absolute;left:14px;bottom:-1px;width:64px;height:5px;pointer-events:none;
  background:repeating-linear-gradient(90deg,rgba(255,159,28,.55) 0 1px,transparent 1px 8px)}
html[data-aip-theme=amber] :is(body,.wx-shell,.ph-shell) :is(.wx-think-stream,pre.log){background-image:repeating-linear-gradient(0deg,rgba(255,159,28,.035) 0 1px,transparent 1px 3px)}
html[data-aip-theme=amber] :is(body,.wx-shell,.ph-shell) :is(.head h2,.card h3,.wx-card h3,.wx-rail-title,.nav h1){text-transform:uppercase}

/* 暗色四套：侧栏/底栏/选中项描边可见（不改 whiteti） */
html[data-aip-theme]:is([data-aip-theme=green],[data-aip-theme=deepspace],[data-aip-theme=amber],[data-aip-theme=wasteland]) :is(body,.wx-shell,.ph-shell) .nav{
  box-shadow:inset -1px 0 0 var(--t-nav-border),4px 0 20px rgba(0,0,0,.25)}
html[data-aip-theme]:is([data-aip-theme=green],[data-aip-theme=deepspace],[data-aip-theme=amber],[data-aip-theme=wasteland]) :is(body,.wx-shell,.ph-shell) .nav a{
  border:1px solid var(--t-border-2);background:var(--t-nav-item)}
html[data-aip-theme]:is([data-aip-theme=green],[data-aip-theme=deepspace],[data-aip-theme=amber],[data-aip-theme=wasteland]) :is(body,.wx-shell,.ph-shell) .nav a.on,
html[data-aip-theme]:is([data-aip-theme=green],[data-aip-theme=deepspace],[data-aip-theme=amber],[data-aip-theme=wasteland]) :is(body,.wx-shell,.ph-shell) .nav a.on:hover{
  border:1px solid var(--t-nav-on-b);
  box-shadow:var(--t-hi),0 0 0 1px rgba(var(--t-acc-rgb),.45),0 0 18px rgba(var(--t-acc-rgb),calc(var(--t-glow) * .35))}
html[data-aip-theme]:is([data-aip-theme=green],[data-aip-theme=deepspace],[data-aip-theme=amber],[data-aip-theme=wasteland]) :is(body,.wx-shell,.ph-shell) .nav a.nav-foot{
  color:var(--t-dim);background:var(--t-nav-item);border:1px solid var(--t-border-2)}
html[data-aip-theme]:is([data-aip-theme=green],[data-aip-theme=deepspace],[data-aip-theme=amber],[data-aip-theme=wasteland]) :is(body,.wx-shell,.ph-shell) .nav a.nav-foot:hover{
  color:var(--t-text);background:var(--t-surface-3);border-color:var(--t-nav-on-b)}
html[data-aip-theme]:is([data-aip-theme=green],[data-aip-theme=deepspace],[data-aip-theme=amber],[data-aip-theme=wasteland]) :is(body,.wx-shell,.ph-shell) .nav .sp{
  background:var(--t-border-2);opacity:1;height:2px;margin:10px 12px;border-radius:1px}

/* 白钛·冰蓝：拉丝金属侧栏 + 对比度加固（边框/表格/侧栏分隔） */
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) .nav{
  background:repeating-linear-gradient(90deg,rgba(255,255,255,0) 0 2px,rgba(255,255,255,.28) 2px 3px,rgba(15,23,42,.025) 3px 5px),var(--t-nav-bg);
  box-shadow:inset -1px 0 0 var(--t-nav-border),4px 0 18px rgba(15,23,42,.06)}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) .nav a{
  border:1px solid var(--t-nav-item-b);background:var(--t-nav-item)}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) .nav a.on,
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) .nav a.on:hover{
  border:1px solid var(--t-nav-on-b);
  box-shadow:var(--t-hi),0 0 14px rgba(var(--t-acc-rgb),calc(var(--t-glow) * .35))}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) .nav a.nav-foot{
  color:var(--t-dim);background:var(--t-nav-item);border:1px solid var(--t-border-2)}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) .nav a.nav-foot:hover{
  color:var(--t-text);background:var(--t-surface-3);border-color:rgba(15,23,42,.40)}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) .nav .sp{
  background:rgba(15,23,42,.28);opacity:1;height:2px;margin:10px 12px;border-radius:1px}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) :is(.card,.kpi,.facade-row .kpi,.wx-card,.wx-kpi,.hub-card,.w-kpi,.w-card,.wx-rail-sec,.wx-banner,.gtabs){
  border-color:var(--t-border-2);box-shadow:var(--t-hi),var(--t-shadow),0 0 0 1px rgba(15,23,42,.04)}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) :is(.card > h3:first-child,.card-hd,.wx-rail-hd){
  border-bottom-color:var(--t-border-2)}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) :is(th,td){
  border-bottom:1px solid rgba(15,23,42,.16)}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) th{
  border-bottom:1.5px solid rgba(15,23,42,.22)}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) :is(.ph-table-wrap,.card > div[style*="overflow"],.card > table){
  border-color:var(--t-border-2)}
html[data-aip-theme=whiteti] :is(body,.wx-shell,.ph-shell) :is(button,.btn,.ops button,td.ops button,.w-btn,.cityBtn,.chip,.ph-chip){
  border-color:rgba(15,23,42,.22)}

/* ---------------- 破损飞船风 ---------------- */
html[data-aip-theme=wasteland] body{counter-reset:bay}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) :is(.card,.kpi,.wx-card,.wx-kpi,.hub-card,.w-kpi,.w-card,.wx-rail-sec,.nav,.gtabs,.wx-banner){
  isolation:isolate;--tex:.55;border:1px solid rgba(0,0,0,.6);
  clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px)}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .nav{clip-path:none;--tex:.5}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) :is(.card,.wx-card,.wx-rail-sec,.w-card){--tex:.38}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) :is(.card,.wx-card,.wx-rail-sec,.w-card):has(table,textarea,pre,.wx-think-stream,.rt-list){--tex:.16}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) :is(.card,.kpi,.wx-card,.wx-kpi,.hub-card,.w-kpi,.w-card,.wx-rail-sec,.nav,.gtabs,.wx-banner)::before{
  content:"" !important;display:block !important;position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:var(--tex);
  background:
   radial-gradient(circle,#b3ad96 0 1.4px,#1d1e1a 2px,transparent 2.6px) 8px 8px/8px 8px no-repeat,
   radial-gradient(circle,#b3ad96 0 1.4px,#1d1e1a 2px,transparent 2.6px) calc(100% - 8px) 8px/8px 8px no-repeat,
   radial-gradient(circle,#b3ad96 0 1.4px,#1d1e1a 2px,transparent 2.6px) 8px calc(100% - 8px)/8px 8px no-repeat,
   radial-gradient(circle,#b3ad96 0 1.4px,#1d1e1a 2px,transparent 2.6px) calc(100% - 8px) calc(100% - 8px)/8px 8px no-repeat,
   url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .53  0 0 0 0 .45  0 0 0 .9 -.25'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
   url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='300'><g stroke='%23e8e2c8' stroke-opacity='.22' stroke-width='.7' fill='none'><path d='M10 40 L160 22'/><path d='M60 120 L300 96'/><path d='M200 30 L380 70'/><path d='M30 220 L140 260'/><path d='M240 200 L410 180'/><path d='M120 160 L180 150'/><path d='M300 260 L360 290'/><path d='M5 280 L90 240'/></g><g stroke='black' stroke-opacity='.35' stroke-width='.6'><path d='M70 70 L240 52'/><path d='M150 240 L330 230'/></g></svg>"),
   radial-gradient(120px 60px at 92% 96%,rgba(160,82,45,.35),transparent 70%)}
/* 舱位编号 BAY-01… */
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) :is(.card,.wx-card,.wx-rail-sec,.kpi,.wx-kpi){counter-increment:bay}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) :is(.card,.wx-card,.wx-rail-sec,.kpi,.wx-kpi)::after{
  content:"BAY-" counter(bay,decimal-leading-zero);position:absolute;top:0;right:16px;z-index:2;pointer-events:none;
  font:10px/13px "T Stencil",var(--t-mono);letter-spacing:1.5px;color:#1b1606;background:var(--t-acc);padding:0 7px;opacity:.82}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .card .kpi::after{display:none}
/* 警示条 */
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .head{padding-bottom:14px;background:repeating-linear-gradient(-45deg,rgba(224,176,32,.8) 0 10px,#151510 10px 20px) left bottom/100% 7px no-repeat}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .head h2{color:var(--t-acc-text);font-size:24px;font-weight:400;letter-spacing:.12em}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .head h2::after{content:"  //  COMMAND DECK";font:12px "T Stencil",var(--t-mono);letter-spacing:.2em;color:var(--t-dim)}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .dlg .box{border-top:8px solid transparent;border-image:repeating-linear-gradient(-45deg,#E0B020 0 10px,#151510 10px 20px) 8 0 0 0}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) :is(.card h3,.wx-card h3,.wx-rail-title,.nav h1,.hub-card h4){font-weight:400;letter-spacing:.08em}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) :is(.kpi .n,.wx-kpi .n){font-size:34px;font-weight:700}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) :is(button,.btn,.tag,.st,.badge,.wx-rail-badge,.wx-rail-fold,.mode-cap,input,select,textarea,.t-switch,.cityBtn,.chip){border-radius:0 !important}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .nav a{clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px)}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .nav a.on::before{border-radius:0;box-shadow:none;left:0;top:0;bottom:0;width:4px}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .dot,html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .wx-rail-dot{box-shadow:0 0 4px var(--t-acc)}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .wx-phone-bezel{border-radius:42px}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .wx-phone-bezel > .wx-phone-screen{border-radius:34px}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell) .wx-think-stream{border-radius:0;box-shadow:inset 0 2px 10px rgba(0,0,0,.6)}
html[data-aip-theme=wasteland] :is(body,.wx-shell,.ph-shell){--t-table-bg:rgba(0,0,0,.14)}


/* =====================================================================
   2026-11-30 凯哥选定视觉主线：石墨紧凑（graphite，默认）+ 晴岚轻纸（qinglan）
   布局同源：约 200px 浅色侧栏 + 紧凑下划线页签 + 顶栏四格连体指标 + 悬浮圆角右侧栏
   零 backdrop-filter 模糊 / 零 background-attachment:fixed，保证切页与滚动丝滑。
   ===================================================================== */
html[data-aip-theme=graphite]{
  color-scheme:light;
  --t-num:"Segoe UI",-apple-system,"PingFang SC","Microsoft YaHei UI",sans-serif;
  --t-head:"Segoe UI",-apple-system,"PingFang SC","Microsoft YaHei UI",sans-serif;
  --t-radius:6px; --t-radius-sm:5px;
  --t-bg:#F7F8FA; --t-bg-img:#F7F8FA;
  --t-surface:#FFFFFF; --t-surface-solid:#FFFFFF; --t-surface-2:#F3F4F6; --t-surface-3:#E5E7EB; --t-input:#FFFFFF;
  --t-border:#D8DCE3; --t-border-2:#C5CBD6;
  --t-hi:none; --t-shadow:0 1px 2px rgba(15,23,42,.04); --t-blur:none;
  --t-text:#111827; --t-sub:#4B5563; --t-dim:#6B7280;
  --t-acc:#111827; --t-acc-rgb:37,99,235; --t-acc-text:#1D4ED8; --t-on-acc:#FFFFFF; --t-acc-2:#1F2937;
  --t-btn:#111827; --t-glow:0;
  --t-ok:#047857; --t-ok-rgb:4,120,87; --t-warn:#B45309; --t-warn-rgb:180,83,9; --t-bad:#B91C1C; --t-bad-rgb:185,28,28; --t-info:#1D4ED8;
  --t-nav-bg:#ECEEF2; --t-nav-border:#D5D9E0;
  --t-nav-item:transparent; --t-nav-item-b:transparent; --t-nav-text:#374151; --t-nav-sec:#6B7280;
  --t-nav-on:#FFFFFF; --t-nav-on-text:#111827; --t-nav-on-b:#D5D9E0;
  --t-logo:#111827; --t-logo-text:#FFFFFF;
  --t-th:#F1F3F6; --t-row-alt:#FAFAFB; --t-row-hover:#F3F5F8;
  --t-term-bg:#F3F4F6; --t-term-text:#1F2937; --t-term-line:#E5E7EB;
  --t-overlay:rgba(15,23,42,.36); --t-scroll:#CBD5E1;
  --t-table-bg:#FFFFFF;
  --t-dw-hd-bg:#18181B; --t-dw-hd-ink:#FAFAFA; --t-dw-hd-sub:#A1A1AA; --t-dw-hd-btn-bg:#27272A; --t-dw-hd-btn-b:#3F3F46;
}

html[data-aip-theme=qinglan]{
  color-scheme:light;
  --t-num:"Segoe UI Variable Display","Segoe UI","PingFang SC","Microsoft YaHei UI",sans-serif;
  --t-head:"Segoe UI","PingFang SC","Microsoft YaHei UI",sans-serif;
  --t-radius:8px; --t-radius-sm:6px;
  --t-bg:#F5F8FC; --t-bg-img:#F5F8FC;
  --t-surface:#FFFFFF; --t-surface-solid:#FFFFFF; --t-surface-2:#F1F5FA; --t-surface-3:#E4ECF7; --t-input:#FFFFFF;
  --t-border:#DCE4EE; --t-border-2:#C6D3E3;
  --t-hi:none; --t-shadow:0 1px 3px rgba(16,24,40,.05); --t-blur:none;
  --t-text:#101828; --t-sub:#475467; --t-dim:#667085;
  --t-acc:#1D4ED8; --t-acc-rgb:29,78,216; --t-acc-text:#1D4ED8; --t-on-acc:#FFFFFF; --t-acc-2:#1E40AF;
  --t-btn:#1D4ED8; --t-glow:0;
  --t-ok:#15803D; --t-ok-rgb:21,128,61; --t-warn:#B45309; --t-warn-rgb:180,83,9; --t-bad:#DC2626; --t-bad-rgb:220,38,38; --t-info:#1D4ED8;
  --t-nav-bg:#EDF2F8; --t-nav-border:#DCE4EE;
  --t-nav-item:transparent; --t-nav-item-b:transparent; --t-nav-text:#475467; --t-nav-sec:#667085;
  --t-nav-on:#FFFFFF; --t-nav-on-text:#1D4ED8; --t-nav-on-b:#D0DCEF;
  --t-logo:linear-gradient(145deg,#2563EB,#1D4ED8); --t-logo-text:#FFFFFF;
  --t-th:#F3F6FB; --t-row-alt:#FAFBFD; --t-row-hover:#EFF5FF;
  --t-term-bg:#F1F5FA; --t-term-text:#1E293B; --t-term-line:#DCE4EE;
  --t-overlay:rgba(15,23,42,.34); --t-scroll:#C6D3E3;
  --t-table-bg:#FFFFFF;
  --t-dw-hd-bg:#F3F6FB; --t-dw-hd-ink:#101828; --t-dw-hd-sub:#475467; --t-dw-hd-btn-bg:#FFFFFF; --t-dw-hd-btn-b:#C6D3E3;
}

/* 石墨紧凑 & 晴岚轻纸共用高密度骨架覆盖 */
html[data-aip-theme=graphite] body,
html[data-aip-theme=qinglan] body{
  background:var(--t-bg) !important;
  background-attachment:scroll !important;
  font-size:13px;
}
html[data-aip-theme=graphite] .ph-shell .nav.ph-nav,
html[data-aip-theme=qinglan] .ph-shell .nav.ph-nav{
  width:200px;
  padding:14px 10px 14px;
  background:var(--t-nav-bg);
  border-right:1px solid var(--t-nav-border);
  box-shadow:none;
  backdrop-filter:none;
}
html[data-aip-theme=graphite] .ph-shell .nav.ph-nav h1,
html[data-aip-theme=qinglan] .ph-shell .nav.ph-nav h1{
  margin:0 4px 12px; padding:4px 6px 12px; font-size:14.5px;
  border-bottom:1px solid var(--t-nav-border);
}
html[data-aip-theme=graphite] .ph-shell .nav-logo,
html[data-aip-theme=qinglan] .ph-shell .nav-logo{
  width:28px; height:28px; font-size:13px; border-radius:6px; box-shadow:none;
}
html[data-aip-theme=graphite] .ph-shell .nav-sec,
html[data-aip-theme=qinglan] .ph-shell .nav-sec{
  margin:10px 8px 4px; font-size:11px; letter-spacing:.06em; color:var(--t-nav-sec);
}
html[data-aip-theme=graphite] .ph-shell .nav.ph-nav a,
html[data-aip-theme=qinglan] .ph-shell .nav.ph-nav a{
  margin:2px 0; padding:7px 10px; font-size:13.5px; font-weight:500;
  border-radius:var(--t-radius-sm); background:transparent; border:1px solid transparent;
  box-shadow:none; color:var(--t-nav-text); gap:9px;
}
html[data-aip-theme=graphite] .ph-shell .nav.ph-nav a:hover,
html[data-aip-theme=qinglan] .ph-shell .nav.ph-nav a:hover{
  background:var(--t-surface-3); color:var(--t-text); border-color:transparent;
}
html[data-aip-theme=graphite] .ph-shell .nav.ph-nav a.on,
html[data-aip-theme=qinglan] .ph-shell .nav.ph-nav a.on{
  background:var(--t-nav-on); color:var(--t-nav-on-text); font-weight:650;
  border-color:var(--t-nav-on-b);
  box-shadow:inset 3px 0 0 var(--t-acc), 0 1px 2px rgba(15,23,42,.05);
}
html[data-aip-theme=graphite] .ph-shell .nav.ph-nav a.on::before,
html[data-aip-theme=qinglan] .ph-shell .nav.ph-nav a.on::before{display:none}
html[data-aip-theme=graphite] .ph-shell .nav.ph-nav a.nav-foot,
html[data-aip-theme=qinglan] .ph-shell .nav.ph-nav a.nav-foot{
  font-size:12.5px; color:var(--t-dim); padding:6px 10px;
}
html[data-aip-theme=graphite] .ph-shell .main,
html[data-aip-theme=qinglan] .ph-shell .main{
  padding:14px 20px 28px;
}
html[data-aip-theme=graphite] .ph-shell .gtabs,
html[data-aip-theme=qinglan] .ph-shell .gtabs{
  background:transparent; border:none; border-bottom:1px solid var(--t-border);
  border-radius:0; box-shadow:none; padding:0; margin:0 0 12px; gap:2px; backdrop-filter:none;
}
html[data-aip-theme=graphite] .ph-shell .gtabs a,
html[data-aip-theme=qinglan] .ph-shell .gtabs a{
  border-radius:0 !important; padding:7px 13px; font-size:13px; color:var(--t-sub);
  border-bottom:2px solid transparent; margin-bottom:-1px; background:transparent;
}
html[data-aip-theme=graphite] .ph-shell .gtabs a:hover,
html[data-aip-theme=qinglan] .ph-shell .gtabs a:hover{
  background:var(--t-surface-2); color:var(--t-text);
}
html[data-aip-theme=graphite] .ph-shell .gtabs a.on,
html[data-aip-theme=qinglan] .ph-shell .gtabs a.on{
  background:transparent; color:var(--t-acc) !important; font-weight:700;
  border-bottom:2px solid var(--t-acc); box-shadow:none;
}
html[data-aip-theme=graphite] .ph-shell .head,
html[data-aip-theme=qinglan] .ph-shell .head{
  margin-bottom:10px;
}
html[data-aip-theme=graphite] .ph-shell .head h2,
html[data-aip-theme=qinglan] .ph-shell .head h2{
  font-size:18px; font-weight:700;
}
html[data-aip-theme=graphite] :is(body,.ph-shell) .card,
html[data-aip-theme=qinglan] :is(body,.ph-shell) .card{
  padding:13px 15px; margin-bottom:12px; border:1px solid var(--t-border);
  box-shadow:var(--t-shadow); backdrop-filter:none;
}
html[data-aip-theme=graphite] :is(body,.ph-shell) .card > h3:first-child,
html[data-aip-theme=qinglan] :is(body,.ph-shell) .card > h3:first-child{
  font-size:14px; font-weight:650; padding-bottom:8px; margin-bottom:10px;
}
html[data-aip-theme=graphite] :is(body,.ph-shell) th,
html[data-aip-theme=qinglan] :is(body,.ph-shell) th{
  padding:8px 10px; font-size:12px;
}
html[data-aip-theme=graphite] :is(body,.ph-shell) td,
html[data-aip-theme=qinglan] :is(body,.ph-shell) td{
  padding:8px 10px; font-size:13px;
}
html[data-aip-theme=graphite] :is(body,.ph-shell) button,
html[data-aip-theme=qinglan] :is(body,.ph-shell) button{
  padding:6px 12px; font-size:13px; background:#FFFFFF; border:1px solid var(--t-border-2);
  color:var(--t-text); box-shadow:none;
}
html[data-aip-theme=graphite] :is(body,.ph-shell) button:hover,
html[data-aip-theme=qinglan] :is(body,.ph-shell) button:hover{
  background:var(--t-surface-2); border-color:var(--t-dim);
}
html[data-aip-theme=graphite] :is(body,.ph-shell) button.p,
html[data-aip-theme=qinglan] :is(body,.ph-shell) button.p{
  background:var(--t-btn); border-color:var(--t-btn); color:#FFFFFF; font-weight:600; box-shadow:none;
}
html[data-aip-theme=graphite] :is(body,.ph-shell) button.p:hover,
html[data-aip-theme=qinglan] :is(body,.ph-shell) button.p:hover{
  filter:brightness(.92);
}
/* 急停全部：红色描边、单独靠右，不与实心主按钮抢视线 */
html[data-aip-theme] :is(body,.ph-shell) button.danger-outline{
  background:transparent !important;
  color:var(--t-bad) !important;
  border:1.5px solid rgba(var(--t-bad-rgb),.58) !important;
  font-weight:650;
  box-shadow:none !important;
}
html[data-aip-theme] :is(body,.ph-shell) button.danger-outline:hover{
  background:rgba(var(--t-bad-rgb),.10) !important;
  border-color:var(--t-bad) !important;
}
html[data-aip-theme=graphite] .opt-purpose,
html[data-aip-theme=qinglan] .opt-purpose{
  border-left:2px solid var(--t-acc); font-size:12.5px; margin:0 0 10px;
}
html[data-aip-theme=graphite] .opt-btn,
html[data-aip-theme=qinglan] .opt-btn{
  border-width:1px; font-size:12px; padding:4px 9px; background:#FFFFFF;
}
html[data-aip-theme=graphite] .todo-row,
html[data-aip-theme=qinglan] .todo-row{
  border-width:1px; padding:8px 12px; margin-bottom:6px;
}
