/* ================================================================
   省探后台 · 设计令牌 + 基础组件 + 外壳（唯一真相，UIKIT-0902 / SHELL-0924）
   ----------------------------------------------------------------
   ★ SHELL-0924 2026-09-24 按设计稿 v2.1 换肤：冷灰画布 + 内嵌白面板 + 橙 #F05A1A。
     和 UIKIT-0902B 那次一样【旧令牌名一个都没删】—— --brand / --line / --text-2 / --r-md …
     全部沿用、只换取值（按用途映射到新规范），还没重做的页面里的 var(--xx) 自动跟着换；
     新规范多出来的东西另起新名（--brand-dd / --ok-dot / --r-card / --ctl-h-sm …）。
   ⚠️ 页面级 <style> 在 body 里、文档顺序在本文件之后，同权重下【页面永远赢】：
     页面里还留着 .btn / table / select 的旧定义的话，这里改什么都不生效。
   ⚠️ 本文件里不写裸的通用类名（.empty / .f / .n / .k / .v / .on / .ok / .bad），一律带上下文。
     外壳一律 ad- 前缀（改造前 layout 的 .top 撞过概览页的 .stat .top，DASH-0923）。
   ★ GLASS-0924 质感 / 层级 / 玻璃（2026-09-24 老板：「缺少质感和层级感、要呼吸感、核心卡片轻阴影加圆角、加玻璃质感」）。
     从下到上四层，每一层都比下面那层更亮、更实：
       ① 画布：底色 + 几团很淡的光晕（取自 logo：左上品牌橙、上方杏色、右下浅青、左下淡紫）+ 极淡的颗粒；
       ② 外壳：侧边栏直接落在画布上；内容面板是半透明的白（--glass-panel），透出一点画布的颜色；
       ③ 核心卡片：不透明白底 + 淡描边 + 两层很散的阴影 + 14 圆角，浮在面板上才分得出层次；
       ④ 浮层：顶栏、下拉、通知、Ctrl K、轻提示是毛玻璃（backdrop-filter），下面的内容滚过去会被虚化。
     ⚠️ 毛玻璃只给「背后真有内容滚过去」的东西。面板和侧栏背后只有平滑的光晕，虚化了也看不出差别，
        只用半透明、不开 backdrop-filter —— 大面积的 backdrop-filter 滚动时每帧都要重算，老电脑会卡。
     ⚠️ Backdrop Root：带 view-transition-name / backdrop-filter / filter / opacity<1 / mask 的元素，它【里面】的
        backdrop-filter 只能虚化它自己范围里的东西。.ad-side / .ad-bar / .ad-content 都带 view-transition-name，
        所以顶栏里的弹层做不成真的毛玻璃（用近乎不透明的白），顶栏自己的毛玻璃必须写在 .ad-bar 本身上。
        要做毛玻璃的新东西，要么挂到 body 下（像 .st-pop / #toast），要么确认它背后的内容和它在同一个 Root 里。
   ★ FONT14-0925 字号只剩 12 / 14 两档正文级（2026-09-25 老板：「整体字比较小」，三版截图里选了方案 A）：
     原来的 13 号（表头、页签、分段、小号按钮、说明、次要信息…）全部提到 14，灰字加深一档
     （--text-3 #6B6B76 → #5D5D68，--text-2 #52525D → #474751；层级靠颜色分，不再靠小一号）。
     12 号只留给标签、角标、提示小字。⚠️ 新写样式别再用 13px（判据见 CLAUDE.md 同名一行）。
   ================================================================ */

/* Geist 只管拉丁字母和数字；中文落到系统的苹方 / 微软雅黑。不走 Google Fonts（国内不稳）。
   字体文件随部署包在 admin-assets/fonts/ 下，许可证 Geist-OFL.txt 同目录。 */
@font-face{
    font-family:"Geist";
    src:url("fonts/Geist-Variable.woff2") format("woff2");
    font-weight:100 900; font-style:normal; font-display:swap;
}

/* ---------- 设计令牌 ---------- */
:root{
    /* 外壳尺寸 */
    /* 侧栏宽度含左边那 8px 画布缝（SIDEB-0924：侧栏自己是一块白面板，左边留 gap），所以比原来 232 / 64 各宽 12 / 8 */
    --side-w:244px;
    --side-mini:72px;
    --bar-h:56px;                  /* 顶栏高（含底边线） */
    --gap:8px;                     /* 面板四周露出的画布 */
    --frame-b:1px;                 /* 面板描边 */
    /* 顶栏底边到视口顶的距离 = 页面里 sticky 元素该停的位置（表头、系统配置左栏、协议预览…）。
       名字沿用改造前的 --top-h，页面里的 calc(var(--top-h) + 16px) 不用改。 */
    --top-h:calc(var(--gap) + var(--frame-b) + var(--bar-h));

    /* 中性色 */
    --bg:#ECEDF0;                  /* 画布：面板外的底色（SIDEB-0924 冷白灰） */
    --surface:#FFFFFF;             /* 面板、卡片 */
    --surface-2:#FAFAFB;           /* 浅底：表头、只读输入框 */
    --surface-3:#F4F4F6;           /* 填充：图标底、分段控件 */
    --surface-soft:#FAFAFB;
    --line-2:#EDEDF1;              /* 分割线：卡片内的分隔、表格行线 */
    --line:#E2E2E7;                /* 边框：卡片、控件描边 */
    --line-3:#D2D2D9;              /* 强边框：悬停描边、关闭的开关 */
    --text:#17171C;
    --text-1:#17171C;              /* 一级：标题、正文、数值 */
    --text-2:#474751;              /* 二级：表头、次要信息 */
    --text-3:#5D5D68;              /* 三级：说明、脚注、零值（最浅的正文字） */
    --text-ph:#71717C;             /* 占位 */
    --text-nav:#3B3B44;            /* 导航项、表单标签 */
    --text-off:#9E9EA9;            /* 不可用、装饰图标（对比度不够，不能当正文） */

    /* 品牌橙：500 只给 Logo / 今天 / 焦点；按钮和链接用 600 */
    --brand:#F05A1A;
    --brand-d:#CF4410;
    --brand-dd:#B23A0C;
    --brand-weak:#FFF4ED;          /* 50：选中行、提示底色 */
    --brand-soft:#FFE6D6;          /* 100：头像、图标底 */
    --brand-line:#FFCBAE;          /* 200：描边、弱强调 */

    /* 语义色：文字 / 底 / 圆点 / 描边 / 实心悬停 */
    --ok:#067647;   --ok-fg:#067647;   --ok-bg:#ECFDF3;   --ok-dot:#12B76A;   --ok-line:#ABEFC6;   --ok-d:#05603A;
    --warn:#A15C07; --warn-fg:#A15C07; --warn-bg:#FEF7E6; --warn-dot:#F5A524; --warn-line:#FEDF89; --warn-d:#854A0E;
    --bad:#B42318;  --bad-fg:#B42318;  --bad-bg:#FEF3F2;  --bad-dot:#F04438;  --bad-line:#FECDCA;  --bad-d:#912018;
    --info:#175CD3; --info-fg:#175CD3; --info-bg:#EFF8FF; --info-dot:#2E90FA; --info-line:#B2DDFF;
    --alt-bg:#F4F3FF; --alt-fg:#5925DC;   /* 第 4 类：橙绿红蓝都占了还要再分一类时用（美团 CPA、运营商 type-3） */

    /* 圆角：标签 6 · 控件 8 · 小块和提示条 10 · 弹层 12 · 核心卡片 14 · 面板和抽屉 18（GLASS-0924 整体放圆一档）。
       嵌套的要「外大内小」：弹层 12 − 内边距 4 = 选项 8；分段控件 10 − 2 = 8。
       ⚠️ 页面里的小块（地图框、证书框、名单框…）用的是 --r-card，【不要】换成 --r-surface：
          卡片里再套一个同样 14 圆角的框，看着就是「圆角套圆角」。 */
    --r-tag:6px; --r-ctl:8px; --r-card:10px; --r-pop:12px; --r-surface:14px; --r-panel:18px;
    --r-xs:4px; --r-sm:6px; --r:8px; --r-md:10px; --r-lg:10px; --r-xl:14px;   /* 旧名，按用途映射 */

    /* 阴影：核心卡片一层贴地 + 一层很散的环境阴影；浮层再重一档 */
    --sh-xs:0 1px 2px rgba(20,20,43,.05);                                  /* 控件 */
    --sh-sm:0 1px 2px rgba(20,20,43,.04), 0 4px 18px -6px rgba(20,20,43,.08);   /* 核心卡片 */
    --sh-md:0 1px 2px rgba(20,20,43,.04), 0 14px 34px -12px rgba(20,20,43,.16); /* 悬停抬起 */
    --sh-lg:0 0 0 1px rgba(20,20,43,.05), 0 4px 12px -4px rgba(20,20,43,.08), 0 22px 48px -12px rgba(20,20,43,.22);  /* 浮层：下拉、提示 */
    --sh-drawer:-24px 0 56px -16px rgba(20,20,43,.28);                     /* 抽屉 */
    --line-soft:rgba(20,20,43,.07);        /* 核心卡片的描边：比控件描边淡一档，层次交给阴影 */
    --ring:0 0 0 3px rgba(240,90,26,.18);                                  /* 聚焦光晕 */
    --ring-bad:0 0 0 3px rgba(240,68,56,.12);
    --mask:rgba(20,20,35,.30);                                             /* 抽屉遮罩（另加一点虚化） */

    /* ★ GLASS-0924 画布与玻璃（原理见文件头）。
       画布按【视口】铺：.ad-app::before 与滚动遮罩 .ad-cap 用的是同一张图，
       两处的位置必须一致（都是视口大小、从视口左上角起），否则遮罩那一条会和底下对不上。
       ★ SIDEB-0924 画布改成干净的冷白灰（上浅下深一点点 + 极淡颗粒），不再铺粉橙 / 浅青光晕：
         老板嫌侧栏底下那团粉橙到淡紫的光晕「发闷、没质感」，三个方案里选了「白色悬浮侧栏」——
         侧栏和内容区各是一块面板浮在画布上，画布只在两块面板周围露出一圈。 */
    --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --canvas:
        var(--grain),
        linear-gradient(180deg, #F1F2F5 0%, #E7E9ED 100%),
        var(--bg);
    --glass-panel:rgba(255,255,255,.56);   /* 内容面板：透一点画布的颜色，白卡片浮在上面才有层次 */
    --glass-bar:rgba(255,255,255,.66);     /* 顶栏 */
    --glass-pop:rgba(255,255,255,.80);     /* 下拉、弹层 */
    --glass-dark:rgba(26,26,32,.84);       /* 轻提示、气泡 */
    --glass-rim:#FFFFFF;                   /* 玻璃的亮边。⚠️ 必须不透明：滚动遮罩会在同一位置再描一遍，半透明叠两次会亮一截 */
    --glass-blur:blur(20px) saturate(170%);

    /* 控件高：默认 32 · 小号 28 · 表格行内 24 */
    --ctl-h:32px; --ctl-h-sm:28px; --ctl-h-xs:24px;

    --ease:cubic-bezier(.2,.75,.3,1);
    --fast:.14s var(--ease);
    --font:"Geist","PingFang SC","Hiragino Sans GB","Microsoft YaHei UI","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
    --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
    --safe-b:env(safe-area-inset-bottom,0px);
}

/* ---------- 基础 ---------- */
*,*::before,*::after{ margin:0; padding:0; box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
    font-family:var(--font); font-size:14px; line-height:1.5715; color:var(--text); background:var(--bg);
    -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
    scrollbar-gutter:stable; overscroll-behavior-y:none;
}
/* ★ WXZOOM-1009 企业微信电脑版内置浏览器的「调整字体」（小 / 默认 / 大 / 更大 / 最大）是页面加载完以后执行
   document.body.style.zoom=倍数（企业微信 Mac 4.1.41 程序里就是这一句）。CSS zoom 不改视口宽度：媒体查询照旧按原宽度算，
   侧栏和遮罩的 100vh 跟着翻倍（侧栏下半截看不到）、顶栏页面名被挤掉；getBoundingClientRect 拿到的是放大后的坐标，
   自绘下拉 / 日期 / 问号说明照它定位又被放大一次 ——「最大」档下点筛选下拉，选项出现在窗口外面
   （2026-10-09 老板截图；本机用同一个 WebKit 注入 zoom 复现）。后台按 100% 设计，这里把它顶回 1：
   作者样式的 !important 压得过行内的普通声明。只管鼠标操作的电脑，手机上的字号设置照旧生效；
   浏览器自己的缩放（⌘+ / Ctrl+）不是 CSS zoom，不受影响。⚠️ 别删；后台也别再用 CSS zoom。 */
@media (pointer:fine){
    html,body{ zoom:1 !important; }
}
a{ color:var(--brand-d); text-decoration:none; }
a:hover{ color:var(--brand-dd); }
code,samp{ font-family:var(--mono); }
code{ background:var(--surface-3); color:var(--text-nav); padding:1px 5px; border-radius:var(--r-tag); font-size:.92em; }
kbd{
    display:inline-flex; align-items:center; height:20px; padding:0 5px; vertical-align:middle;
    border:1px solid var(--line); border-bottom-width:2px; border-radius:var(--r-tag); background:var(--surface);
    color:var(--text-3); font:500 11px/14px var(--font); white-space:nowrap;
}
img{ max-width:100%; }
::selection{ background:var(--brand-soft); color:var(--text-1); }
:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; border-radius:var(--r-tag); }
.num,.money,.rem,.amt{ font-variant-numeric:tabular-nums; }
/* 只给读屏看的文字（表头里的「操作」这类） */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* 滚动条：Chromium/WebKit 走伪元素，Firefox 走标准属性 */
*{ scrollbar-width:thin; scrollbar-color:var(--line-3) transparent; }
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:var(--line-3); border:3px solid transparent;
                           border-radius:999px; background-clip:content-box; }
::-webkit-scrollbar-thumb:hover{ background:#B8B8C2; border:3px solid transparent; background-clip:content-box; }

/* Lucide 线性图标（<x-ic name="…">，图形在 partials/icons）：24 网格、1.75 描边、圆角端点 */
.ic{ fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round;
     flex:none; vertical-align:middle; }

/* ================================================================
   表单控件：高 32、圆角 6；聚焦是橙色描边 + 一圈浅橙光晕，出错换成红色
   ================================================================ */
input:not([type]),
input[type=text],input[type=password],input[type=number],input[type=search],
input[type=email],input[type=tel],input[type=url],input[type=date],
input[type=time],input[type=datetime-local],input[type=month],
select,textarea{
    -webkit-appearance:none; appearance:none;
    height:var(--ctl-h); max-width:100%;
    border:1px solid var(--line); border-radius:var(--r-ctl);
    padding:0 11px; font-size:14px; line-height:22px; font-family:inherit; color:var(--text);
    background:var(--surface); outline:0; box-shadow:var(--sh-xs);
    transition:border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
input:not([type]):hover,
input[type=text]:hover,input[type=password]:hover,input[type=number]:hover,
input[type=search]:hover,input[type=email]:hover,input[type=tel]:hover,
input[type=url]:hover,input[type=date]:hover,input[type=time]:hover,
select:hover,textarea:hover{ border-color:var(--line-3); }

input:focus,select:focus,textarea:focus{ border-color:var(--brand); box-shadow:var(--ring); }
/* 控件自己有聚焦光晕（上面那条），别再叠全局 :focus-visible 那圈 2px 描边：select / textarea 在基础规则里权重只有 (0,0,1)，
   压不过 :focus-visible (0,1,0) —— 原来点开筛选下拉时框里框外两圈橙线（FSEL-0924 老板截图里能看到）。 */
select:focus-visible,textarea:focus-visible{ outline:0; }
input::placeholder,textarea::placeholder{ color:var(--text-ph); opacity:1; }

input:disabled,select:disabled,textarea:disabled{
    background:var(--surface-2); color:var(--text-off); cursor:not-allowed; border-color:var(--line); box-shadow:none;
}
/* readonly 仍然要提交（PAYDELAY-0914 那类），只是不让改 */
input[readonly],textarea[readonly]{
    background:var(--surface-2); color:var(--text-2); cursor:not-allowed; box-shadow:none;
}
/* 出错：服务端校验失败时给控件加 .is-err 或 aria-invalid="true" */
input.is-err,select.is-err,textarea.is-err,
input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"]{
    border-color:var(--bad-dot); box-shadow:var(--ring-bad);
}

textarea{ height:auto; min-height:80px; padding:5px 11px; line-height:22px; resize:vertical; }

/* select：干掉系统原生外观、自绘箭头（Lucide chevron-down）；padding-right 给箭头让位 */
select{
    padding-right:30px; cursor:pointer;
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 9px center;
    background-size:14px 14px;
}
select:disabled{ background-image:none; }
/* ★ FSEL-0924 选中的是 value="" 那一项时（筛选框的「平台」「运营商」= 不筛、表单的「请选择…」），框里的字显示成占位灰，
   跟输入框的 placeholder 同一个颜色 —— 一眼看出「这个框还没选」。只影响闭合的框，展开的自绘列表照常。 */
select:not(:disabled):has(> option[value=""]:checked){ color:var(--text-ph); }
select::-ms-expand{ display:none; }
select option{ color:var(--text); background:#fff; padding:6px 8px; }

input[type=checkbox],input[type=radio]{
    -webkit-appearance:auto; appearance:auto;
    width:16px; height:16px; accent-color:var(--brand-d);
    vertical-align:-3px; cursor:pointer; border:0; padding:0; background:none; box-shadow:none;
}

input[type=date]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator{
    opacity:.5; cursor:pointer; transition:opacity var(--fast);
}
input[type=date]:hover::-webkit-calendar-picker-indicator,
input[type=time]:hover::-webkit-calendar-picker-indicator{ opacity:.9; }

label{ font-size:14px; color:var(--text-2); }
fieldset{ border:0; }

/* ---------- 按钮：主按钮橙 600，其余中性；默认 32 · 小号 28 · 表格行内 24 ---------- */
.btn{
    display:inline-flex; align-items:center; justify-content:center; gap:6px;
    height:var(--ctl-h); padding:0 14px; border:1px solid var(--line); border-radius:var(--r-ctl);
    font-size:14px; font-family:inherit; font-weight:500; line-height:22px;
    text-decoration:none; white-space:nowrap; cursor:pointer; user-select:none; flex-shrink:0;
    background:var(--surface); color:var(--text-1); box-shadow:var(--sh-xs);
    transition:background var(--fast), border-color var(--fast), box-shadow var(--fast), color var(--fast);
}
.btn:hover{ background:var(--surface-2); border-color:var(--line-3); color:var(--text-1); }
.btn:active{ background:var(--surface-3); }
.btn:focus-visible{ outline:0; box-shadow:var(--ring); }
.btn .ic{ color:var(--text-2); }
.btn:disabled,.btn[disabled],.btn.is-disabled{
    background:var(--surface-2); color:var(--text-off); border-color:var(--line-2); box-shadow:none; cursor:not-allowed;
}

/* 主按钮：底色仍是 600（白字对比度 4.6:1），上面叠一层「上亮下暗」的光泽，中间那一截几乎不变色，对比度不受影响 */
.btn-primary{ background:var(--brand-d) linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 52%, rgba(0,0,0,.06));
              border-color:var(--brand-d); color:#fff;
              box-shadow:0 1px 2px rgba(178,58,12,.26), 0 4px 12px -4px rgba(207,68,16,.42), inset 0 1px 0 rgba(255,255,255,.18); }
/* ⚠️ 悬停要连光泽一起写：上面 .btn:hover 用的是 background 简写（同权重、在前），只写 background-color 的话光泽会被它清掉 */
.btn-primary:hover{ background:var(--brand-dd) linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 52%, rgba(0,0,0,.06));
                    border-color:var(--brand-dd); color:#fff; }
.btn-primary:active{ background:var(--brand-dd); }
.btn-primary .ic{ color:#fff; }
.btn-primary:disabled,.btn-primary[disabled]{ background:var(--surface-2); color:var(--text-off); border-color:var(--line-2); box-shadow:none; }
.btn-ghost{ background:var(--surface); color:var(--text-1); border-color:var(--line); box-shadow:var(--sh-xs); }
.btn-ghost:hover{ background:var(--surface-2); border-color:var(--line-3); color:var(--text-1); }
/* 文字按钮：表格行内「详情 / 编辑」用中性色；.btn-link 是橙色的「去分配 →」那种 */
.btn-quiet,.btn-text{ background:transparent; border-color:transparent; color:var(--text-1); box-shadow:none; }
.btn-quiet:hover,.btn-text:hover{ background:var(--surface-3); border-color:transparent; color:var(--text-1); }
.btn-text{ height:var(--ctl-h-xs); padding:0 6px; gap:4px; font-size:14px; line-height:20px; }
.btn-text .ic,.btn-quiet .ic{ color:var(--text-3); }
.btn-link{ background:transparent; border-color:transparent; color:var(--brand-d); box-shadow:none;
           height:var(--ctl-h-xs); padding:0 2px; gap:4px; font-size:14px; line-height:20px; }
.btn-link:hover{ background:transparent; border-color:transparent; color:var(--brand-dd); }
.btn-link .ic{ color:currentColor; }
.btn-tint{ background:var(--brand-weak); border-color:var(--brand-line); color:var(--brand-dd); box-shadow:none; }
.btn-tint:hover{ background:var(--brand-soft); border-color:var(--brand-line); color:var(--brand-dd); }
.btn-ok{ background:var(--ok-bg); border-color:var(--ok-line); color:var(--ok-fg); box-shadow:none; }
.btn-ok:hover{ background:#DCFAE6; border-color:var(--ok-line); color:var(--ok-fg); }
.btn-warn{ background:var(--warn-bg); border-color:var(--warn-line); color:var(--warn-fg); box-shadow:none; }
.btn-warn:hover{ background:#FDF0D2; border-color:var(--warn-line); color:var(--warn-fg); }
/* 危险按钮：白底红字红描边，需二次确认 */
.btn-bad,.btn-danger{ background:var(--surface); border-color:var(--bad-line); color:var(--bad-fg); }
.btn-bad:hover,.btn-danger:hover{ background:var(--bad-bg); border-color:var(--bad-line); color:var(--bad-fg); }
.btn-bad .ic,.btn-danger .ic{ color:currentColor; }
/* 实心语义键：会立刻产生业务后果的动作（通过 / 驳回 / 拉黑 / 打款配置），跟一堆次要按钮拉开层级 */
.btn-guard,.btn-ok.is-solid,.btn-bad.is-solid,.btn-danger.is-solid{
    background:var(--bad); border-color:var(--bad); color:#fff; box-shadow:var(--sh-xs);
}
.btn-guard:hover,.btn-ok.is-solid:hover,.btn-bad.is-solid:hover,.btn-danger.is-solid:hover{
    background:var(--bad-d); border-color:var(--bad-d); color:#fff;
}
.btn-ok.is-solid{ background:var(--ok); border-color:var(--ok); }
.btn-guard .ic,.btn-ok .ic,.btn-ok.is-solid .ic,.btn-bad.is-solid .ic,.btn-danger.is-solid .ic,.btn-warn.is-solid .ic{ color:currentColor; }
.btn-ok.is-solid:hover{ background:var(--ok-d); border-color:var(--ok-d); }
.btn-warn.is-solid{ background:var(--warn); border-color:var(--warn); color:#fff; }
.btn-warn.is-solid:hover{ background:var(--warn-d); border-color:var(--warn-d); color:#fff; }
.btn-sm{ height:var(--ctl-h-sm); padding:0 10px; gap:4px; font-size:14px; line-height:20px; }
.btn-xs{ height:var(--ctl-h-xs); padding:0 6px; gap:4px; font-size:14px; line-height:20px; }
.btn-lg{ height:40px; padding:0 20px; font-size:15px; }
.btn-block{ width:100%; }

/* 提交中：只做视觉 + 挡住二次点击，【绝不 disabled】——
   disabled 的控件不参与表单提交，会把 button 的 name/value 一起吞掉。 */
.btn.is-busy{ opacity:.62; pointer-events:none; }

/* 图标按钮（复制 / 显示密码 / 删除一行）：必须带 aria-label */
.ibtn{
    display:inline-grid; place-items:center; width:28px; height:28px; padding:0; border:0; border-radius:var(--r-ctl);
    background:none; color:var(--text-2); font-size:14px; line-height:1; cursor:pointer;
    font-family:inherit; transition:background var(--fast), color var(--fast);
}
.ibtn:hover{ background:var(--surface-3); color:var(--text-1); }

/* ---------- 卡片 / 版面 ---------- */
/* 核心卡片（GLASS-0924）：不透明白底 + 淡描边 + --sh-sm 两层散阴影 + 14 圆角，浮在半透明面板上 */
.card{
    position:relative;   /* 给里面绝对定位的东西（表头里的 .sr-only）当包含块：否则横滚卡片里的它会逃出卡片、把整页撑宽 */
    background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--r-surface);
    box-shadow:var(--sh-sm); overflow:hidden;
}
/* overflow:hidden 会让 .card 变成滚动容器，里面的 sticky 表头就只相对卡片定位 = 没用。
   overflow:clip 一样按圆角裁切，但【不】建立滚动容器，表头才能吸到视口顶。 */
@supports (overflow: clip){
    .card{ overflow:clip; }
}
.panel,.form-card{
    background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--r-surface);
    box-shadow:var(--sh-sm); padding:24px;
}
.bar{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.ml{ margin-left:auto; }
.sub{ color:var(--text-3); font-size:14px; line-height:22px; }
.hint{ font-size:12px; line-height:20px; color:var(--text-3); }
.muted{ color:var(--text-3); }
.name{ font-weight:500; color:var(--text-1); }
.mono{ font-family:var(--mono); font-size:14px; }

/* ---------- 筛选条 ---------- */
.filters{
    background:rgba(255,255,255,.5); border:1px solid var(--line-soft); border-radius:var(--r-card);
    padding:12px 16px; margin-bottom:16px;
    display:flex; gap:8px 12px; flex-wrap:wrap; align-items:flex-end;
}
.filters .f{ display:flex; flex-direction:column; gap:4px; }
.filters label{ font-size:12px; line-height:20px; color:var(--text-3); font-weight:500; }
.filter{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:16px; }
/* 筛选条里的按钮一律拉齐到控件高度 —— 不统一就是「按钮比旁边的下拉框矮一截」 */
.filters .btn,.filter .btn{ height:var(--ctl-h); padding:0 14px; font-size:14px; }

/* ---------- 表格：表头 44 高、14 号浅底三级色（靠颜色退后一档，让数据往前站）；单元格上下 14、首尾列 24；数字右对齐等宽，零值变淡 ---------- */
table{ width:100%; border-collapse:collapse; font-size:14px; line-height:22px; }
thead th{
    /* 顶栏 sticky 在上面，表头要停在它下面而不是被它盖住。⚠️ 背景必须不透明：吸住以后下面的行要从它底下滚过去 */
    position:sticky; top:var(--top-h); z-index:2;
    height:44px; padding:0 12px; background:#FAFAFC; text-align:left;
    color:var(--text-3); font-weight:500; font-size:14px; line-height:20px;
    white-space:nowrap; border-bottom:1px solid var(--line-2);
}
tbody td{ padding:14px 12px; border-bottom:1px solid var(--line-2); vertical-align:middle; color:var(--text); }
thead th:first-child,tbody td:first-child{ padding-left:24px; }
thead th:last-child,tbody td:last-child{ padding-right:24px; }
tbody tr:last-child td{ border-bottom:0; }
tbody tr{ transition:background var(--fast); }
tbody tr:hover{ background:#F9F9FB; }
th.num,td.num{ text-align:right; font-variant-numeric:tabular-nums; }
td .zero,td.zero,.is-zero{ color:var(--text-3); font-weight:400; }
/* ⚠️ 一定要写成 td.empty，【不能】是裸 .empty（activities/form 的 .tp.empty 表示「这一段没填」） */
td.empty{ padding:44px 20px; text-align:center; color:var(--text-3); font-size:14px; line-height:22px; }

/* ---------- 提示条 ---------- */
.ok-msg,.err-msg,.note,.ro-note,.ro-banner,.warnbox,.black-box,.rule{
    border:1px solid transparent; border-radius:var(--r-card);
    padding:10px 14px; margin-bottom:16px; font-size:14px; line-height:22px;
}
.ok-msg{ background:var(--ok-bg); border-color:var(--ok-line); color:var(--ok-fg); }
.err-msg{ background:var(--bad-bg); border-color:var(--bad-line); color:var(--bad-fg); }
.note{ background:var(--brand-weak); border-color:var(--brand-line); color:var(--brand-dd); }
.ro-note,.warnbox{ background:var(--warn-bg); border-color:var(--warn-line); color:var(--warn-fg); }
.ro-banner{ background:var(--info-bg); border-color:var(--info-line); color:var(--info-fg); display:flex;
            align-items:center; gap:8px; }
.black-box{ background:var(--bad-bg); border-color:var(--bad-line); color:var(--bad-fg); }
.rule{ background:var(--surface-2); border-color:var(--line-2); color:var(--text-2); font-size:14px; line-height:22px; }
.rule b{ color:var(--text-1); }
.err{ background:var(--bad-bg); border:1px solid var(--bad-line); color:var(--bad-fg); padding:10px 14px;
      border-radius:var(--r-card); margin-bottom:16px; font-size:14px; line-height:22px; }
.err ul{ margin:4px 0 0 18px; }
/* 提示条里经常糊进【不含空格的长串】（证书路径、密钥、订单号、URL），窄屏会顶着整页横向溢出。
   ⚠️ 用 anywhere 而不是 break-word：只有 anywhere 会同时把 min-content 宽度算小（MINMAX-0902）。 */
.ok-msg,.err-msg,.note,.ro-note,.ro-banner,.warnbox,.black-box,.rule,.err,.flagbox,
.hint,.sub,.muted{ overflow-wrap:anywhere; }

/* 强提示块：左边一个记号 + 右边成句说明，用在「这一步会动钱」那类地方 */
.flagbox{ display:flex; gap:10px; padding:12px 16px; border-radius:var(--r-card);
          font-size:14px; line-height:22px; border:1px solid transparent; }
.flagbox b{ font-weight:600; }
.flagbox .g{ flex:none; font-weight:700; }
.flagbox.fb-warn{ background:var(--warn-bg); border-color:var(--warn-line); color:var(--warn-fg); }
.flagbox.fb-stop{ background:var(--bad-bg); border-color:var(--bad-line); color:var(--bad-fg); }
.flagbox.fb-ok{ background:var(--ok-bg); border-color:var(--ok-line); color:var(--ok-fg); }
.flagbox.fb-info{ background:var(--info-bg); border-color:var(--info-line); color:var(--info-fg); }

/* 只读的接口地址 / 回调地址条 */
.wire{ display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:var(--r-card);
       background:var(--text-1); color:#C9C9D1; min-width:0; }
.wire > span{ font-size:14px; color:var(--text-off); flex:none; }
.wire code{ font-family:var(--mono); font-size:14px; color:#fff; background:none; padding:0;
            overflow-x:auto; white-space:nowrap; min-width:0; }
.wire .ibtn{ margin-left:auto; color:var(--text-off); flex:none; }
.wire .ibtn:hover{ background:rgba(255,255,255,.1); color:#fff; }

/* ---------- 状态 / 标签 / 徽标：状态用圆点 + 文字；属性标签不带颜色含义 ---------- */
.st-on{ color:var(--ok); font-weight:500; }
.st-off{ color:var(--bad); font-weight:500; }
.pos,.yes{ color:var(--ok); font-weight:500; }
.neg{ color:var(--bad); }
.no{ color:var(--text-3); }

/* 属性标签（直营 / 加盟 / 累计…）：灰底、圆角 4、高 20 */
.pill,.badge,.tag,.chip,.cls,.tt,.stt,.src,.type{
    display:inline-flex; align-items:center; gap:4px; height:20px; padding:0 6px; vertical-align:middle;
    border-radius:var(--r-tag); font-size:12px; font-weight:500; line-height:20px; white-space:nowrap;
    background:var(--surface-3); color:var(--text-2);
}
/* 状态标签（需要更醒目时）：高 22、带圆点 */
.pill.ok,.chip.ok,.pill.bad,.chip.bad,.pill.wait,.chip.wait,.pill.info,.chip.info{ height:22px; padding:0 7px; }
.pill.ok::before,.chip.ok::before,.pill.bad::before,.chip.bad::before,
.pill.wait::before,.chip.wait::before,.pill.info::before,.chip.info::before{
    content:""; width:6px; height:6px; border-radius:999px; flex:none; background:currentColor;
}
.pill.ok,.chip.ok{ background:var(--ok-bg); color:var(--ok-fg); }
.pill.ok::before,.chip.ok::before{ background:var(--ok-dot); }
.pill.bad,.chip.bad{ background:var(--bad-bg); color:var(--bad-fg); }
.pill.bad::before,.chip.bad::before{ background:var(--bad-dot); }
.pill.wait,.chip.wait{ background:var(--warn-bg); color:var(--warn-fg); }
.pill.wait::before,.chip.wait::before{ background:var(--warn-dot); }
.pill.info,.chip.info,.tag.info{ background:var(--info-bg); color:var(--info-fg); }
.pill.info::before,.chip.info::before{ background:var(--info-dot); }
.pill.gray,.chip.gray{ background:var(--surface-3); color:var(--text-3); }
.pill.alt,.chip.alt,.tag.alt{ background:var(--alt-bg); color:var(--alt-fg); }
.pill.brand,.tag.brand{ background:var(--brand-weak); color:var(--brand-dd); }   /* 只有「平台自营」这类用品牌色 */
/* 接入状态三色 */
.chip.chip-live{ background:var(--surface-3); color:var(--text-2); }
.chip.chip-todo{ background:var(--surface); color:var(--text-3); box-shadow:inset 0 0 0 1px var(--line); }
.chip.chip-check{ background:var(--brand-weak); color:var(--brand-dd); }

/* 行内状态：圆点（带一圈浅色光晕）+ 文字 */
.sdot{ display:inline-flex; align-items:center; gap:8px; white-space:nowrap; color:var(--text-1); }
.sdot::before{ content:""; width:6px; height:6px; border-radius:999px; flex:none;
               background:var(--text-off); box-shadow:0 0 0 3px var(--surface-3); }
.sdot.is-ok::before{ background:var(--ok-dot); box-shadow:0 0 0 3px var(--ok-bg); }
.sdot.is-warn::before{ background:var(--warn-dot); box-shadow:0 0 0 3px var(--warn-bg); }
.sdot.is-bad::before{ background:var(--bad-dot); box-shadow:0 0 0 3px var(--bad-bg); }
.sdot.is-info::before{ background:var(--info-dot); box-shadow:0 0 0 3px var(--info-bg); }

/* 数量徽标 */
.cnt{ display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:18px; padding:0 6px;
      border-radius:999px; background:var(--surface-3); color:var(--text-2);
      font-size:12px; font-weight:600; line-height:16px; font-variant-numeric:tabular-nums; }
.cnt.is-warn{ background:var(--warn-bg); color:var(--warn-fg); }
.cnt.is-bad{ background:var(--bad-bg); color:var(--bad-fg); }

/* ---------- 分段控件（.tabs）：2–4 个选项的单选 / 页签 ---------- */
/* 底是半透明的灰（落在玻璃面板上也不发脏），选中项是白色小胶囊 */
.tabs{ display:flex; align-items:center; gap:2px; margin-bottom:16px; padding:2px; width:fit-content; max-width:100%;
       flex-wrap:wrap; background:rgba(118,118,138,.1); border:1px solid rgba(20,20,43,.04); border-radius:var(--r-card); }
.tabs a,.tabs button{
    display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 12px;
    border:0; border-radius:var(--r-ctl); white-space:nowrap; font-family:inherit; cursor:pointer;
    font-size:14px; font-weight:500; line-height:20px; text-decoration:none; color:var(--text-2); background:transparent;
    transition:background var(--fast), color var(--fast), box-shadow var(--fast);
}
.tabs a:hover,.tabs button:hover{ color:var(--text-1); }
.tabs a.on,.tabs button.on,.tabs button[aria-pressed="true"]{ background:var(--surface); color:var(--text-1);
            box-shadow:0 1px 2px rgba(20,20,43,.08), 0 2px 6px -2px rgba(20,20,43,.08), 0 0 0 1px rgba(20,20,43,.04); }
.tabs a .n,.tabs button .n{ font-size:12px; font-weight:400; color:var(--text-3); font-variant-numeric:tabular-nums; }

/* ---------- 统计块 ---------- */
.stat{
    background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--r-surface);
    box-shadow:var(--sh-sm); padding:20px 24px;
}
.stat .k,.stat .l,.stat .label{ font-size:14px; line-height:22px; color:var(--text-2); }
.stat .v,.stat .n,.stat .num{ font-size:24px; line-height:32px; font-weight:600; margin-top:4px; color:var(--text-1);
                              letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.stat .v.money{ color:var(--text-1); }
.stat .sub,.stat .hint{ font-size:12px; line-height:20px; color:var(--text-3); margin-top:4px; }
.sup{ display:flex; gap:24px; flex-wrap:wrap; align-items:baseline; }
.sup .k{ font-size:12px; color:var(--text-3); display:block; }
.sup .v{ font-size:20px; font-weight:600; font-variant-numeric:tabular-nums; }
.kv b{ color:var(--text-1); }

/* 拼合式统计格：无缝网格，容器多宽就放几列 */
.statgrid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%, 132px), 1fr)); gap:1px;
           border-radius:var(--r-surface); overflow:hidden; background:var(--line-2);
           border:1px solid var(--line-soft); box-shadow:var(--sh-sm); }
.statgrid > div{ background:var(--surface); padding:12px 16px; }
.statgrid b{ display:block; font-size:20px; font-weight:600; letter-spacing:-.02em;
             line-height:28px; color:var(--text-1); font-variant-numeric:tabular-nums; }
.statgrid small{ font-size:14px; color:var(--text-2); }
.statgrid .sub{ display:block; margin-top:2px; font-size:12px; line-height:18px; color:var(--text-3); }
.statgrid b.zero{ color:var(--text-3); }
.statgrid b.is-warn{ color:var(--warn-fg); }
.statgrid b.is-bad{ color:var(--bad-fg); }

/* ---------- 头像 / 缩略图 ---------- */
.ava{
    width:32px; height:32px; border-radius:999px; flex-shrink:0;
    background:var(--brand-soft); color:var(--brand-dd);
    display:inline-flex; align-items:center; justify-content:center;
    font-size:14px; font-weight:600; margin-right:8px; vertical-align:middle;
}
.thumb{ width:40px; height:40px; border-radius:var(--r-ctl); object-fit:cover;
        border:1px solid var(--line); margin-right:4px; background:var(--surface-2); }
.ops{ display:flex; gap:4px; align-items:center; flex-wrap:wrap; }

/* ================================================================
   表单版式：标签在上、与输入框间距 8；必填红色 * 在标签前；字段之间 16
   ================================================================ */
.cols{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%, 268px), 1fr)); gap:16px 20px; }
.cols.cols-wide{ grid-template-columns:repeat(auto-fit,minmax(min(100%, 340px), 1fr)); }
.fld{ display:flex; flex-direction:column; min-width:0; }
.fld.wide,.fld.full{ grid-column:1 / -1; }
.fld > .lab{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-height:22px;
             font-size:14px; line-height:22px; margin-bottom:8px; color:var(--text-2); }
.fld > .lab > label{ color:var(--text-nav); font-weight:400; font-size:14px; }
/* 「必填」挪到标签前、显示成红色 *（文字留给读屏） */
.fld > .lab .must{ order:-1; margin-right:-4px; font-size:0; color:var(--bad-dot); }
.fld > .lab .must::before{ content:"*"; font-size:14px; font-family:sans-serif; }
.fld > .lab .may{ color:var(--text-3); font-size:12px; }
.fld > .lab .flag{ margin-left:auto; font-size:12px; color:var(--brand-dd);
                   background:var(--brand-weak); padding:0 6px; border-radius:var(--r-tag); font-weight:500; line-height:20px; }
.req::before{ content:"*"; color:var(--bad-dot); margin-right:4px; font-family:sans-serif; }
.fld > input,.fld > select,.fld > textarea{ width:100%; }
.fld .wrap{ position:relative; display:flex; align-items:center; }
.fld .wrap > input{ width:100%; padding-right:40px; }
.fld .wrap .tools{ position:absolute; right:3px; display:flex; gap:2px; }
.fld .hint{ margin-top:6px; }
.fld .set{ margin-top:6px; font-size:12px; color:var(--brand-dd); font-weight:500; }
.fld .ferr{ display:flex; align-items:center; gap:4px; margin-top:6px; font-size:12px; line-height:20px; color:var(--bad-fg); }
.in-mono{ font-family:var(--mono); font-size:14px; }
/* 一句话里嵌输入框：「余额满 [10] 元可提现」 */
.say{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:14px; color:var(--text-2); }
.say .tiny{ width:104px; text-align:right; font-family:var(--mono); }

/* ================================================================
   配置「大卡」：一组配置一张，头部 / 主体 / 底部操作条
   ================================================================ */
.sheet{ background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--r-surface);
        box-shadow:var(--sh-sm); overflow:hidden; min-width:0; }
.sheet-head{ padding:20px 24px; display:flex; align-items:flex-start; gap:12px;
             border-bottom:1px solid var(--line-2); flex-wrap:wrap; }
.sheet-ic{ width:32px; height:32px; border-radius:var(--r-ctl); flex:none; display:grid; place-items:center;
           font-size:16px; background:var(--surface-3); color:var(--text-2); }
.sheet-head .ttl{ min-width:200px; flex:1; }
.sheet-head h2{ margin:0 0 2px; font-size:16px; line-height:24px; font-weight:600;
                color:var(--text-1); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.sheet-head p{ margin:0; color:var(--text-3); font-size:14px; line-height:22px; max-width:66ch; }
.sheet-head .head-acts{ margin-left:auto; display:flex; gap:8px; flex:none; }
.sheet-body{ padding:24px; display:grid; gap:20px; }
.sheet-foot{ display:flex; align-items:center; gap:12px; padding:14px 24px;
             background:var(--surface-2); border-top:1px solid var(--line-2); flex-wrap:wrap; }
.sheet-foot .acts{ margin-left:auto; display:flex; gap:8px; }
.foot-note{ font-size:14px; color:var(--text-3); }
.foot-note.live{ color:var(--brand-dd); font-weight:500; }
/* 会动钱的那几组，整张卡换成红描边，跟普通配置一眼分得开 */
.sheet.sheet-guard{ border-color:var(--bad-line); }
.sheet.sheet-guard .sheet-ic{ background:var(--bad-bg); color:var(--bad); }
.sheet.sheet-guard .sheet-head{ background:linear-gradient(180deg,var(--bad-bg),transparent 88%); }

.grp{ display:grid; gap:16px; }
.grp-h{ display:flex; align-items:center; gap:8px; font-size:14px; line-height:22px; font-weight:600; color:var(--text-1); }
.grp-h i{ display:none; }

/* 侧边辅助栏：侧放时单列，被挤到下面时自动多列 */
.rail{ display:grid; gap:20px; align-content:start; min-width:0;
       grid-template-columns:repeat(auto-fit,minmax(min(100%, 272px), 1fr)); }
.rail .blk{ min-width:0; }
.rail .blk h3{ margin:0 0 12px; font-size:14px; line-height:22px; font-weight:600; color:var(--text-1);
               display:flex; align-items:center; gap:8px; }
.rail .blk h3 .num{ font-family:var(--mono); font-size:12px; color:var(--text-3);
                    margin-left:auto; font-weight:400; }
/* ⚠️ 这两个列表的项目【不能】用 flex / grid 排「记号 + 正文」—— li 里的 <b> <code> <a> 会各自变成一格，
   正文被切成几段（2026-09-02 实测）。记号一律绝对定位，正文保持正常的行内流。 */
.rail ul.reach{ margin:0; padding:0; list-style:none; display:grid; gap:8px;
                font-size:14px; color:var(--text-2); }
.rail ul.reach li{ position:relative; padding-left:16px; line-height:22px; }
.rail ul.reach li i{ position:absolute; left:2px; top:8px;
                     width:6px; height:6px; border-radius:50%; background:var(--line-3); }
.rail ol.howto{ margin:0; padding:0; list-style:none; counter-reset:s; display:grid; gap:12px;
                font-size:14px; color:var(--text-2); }
.rail ol.howto li{ counter-increment:s; position:relative; padding-left:32px;
                   min-height:22px; line-height:22px; }
.rail ol.howto li::before{ content:counter(s); position:absolute; left:0; top:0;
                           width:22px; height:22px; border-radius:var(--r-ctl);
                           background:var(--surface-3); color:var(--text-2); font-size:12px;
                           display:grid; place-items:center; font-weight:600; font-variant-numeric:tabular-nums; }
/* ★ HELP-0930 折叠的说明块：<details class="blk fold"><summary><h3>标题</h3><x-ic name="chevron-down" class="fold-ic" /></summary>…
   标题一直在，内容默认收起、点标题展开 —— 放多步操作指南这类放进问号卡片嫌长的说明（系统配置右栏）。 */
details.fold > summary{ display:flex; align-items:center; gap:6px; cursor:pointer; list-style:none; border-radius:var(--r-ctl); }
details.fold > summary::-webkit-details-marker{ display:none; }
details.fold > summary > h3{ flex:1 1 auto; min-width:0; }
.rail details.fold > summary > h3{ margin:0; }
details.fold > summary .fold-ic{ flex:none; color:var(--text-ph); transition:transform var(--fast), color var(--fast); }
details.fold[open] > summary{ margin-bottom:12px; }
details.fold[open] > summary .fold-ic{ transform:rotate(180deg); }
details.fold > summary:hover > h3,details.fold > summary:hover .fold-ic{ color:var(--brand-d); }
details.fold > summary:focus-visible{ outline:0; box-shadow:var(--ring); }

/* ---------- 分页 ---------- */
/* ★ PAGERCSS-0902 Laravel 默认分页视图是 Tailwind 版，本后台没有 Tailwind：按【结构】兜底，不依赖 Tailwind 类名。 */
.pg{ padding:12px 20px; }
.pg nav > div:first-child{ display:none; }
.pg nav > div:last-child{ display:flex; align-items:center; justify-content:space-between;
                          gap:12px; flex-wrap:wrap; }
.pg p{ font-size:14px; color:var(--text-3); }
.pg svg{ width:14px; height:14px; }
.pg a,.pg [aria-current] > span,.pg [aria-disabled] > span,
.pager a,.pager span{
    display:inline-flex; align-items:center; justify-content:center;
    min-width:32px; height:32px; padding:0 10px; margin-left:4px;
    border:1px solid var(--line); border-radius:var(--r-ctl); background:var(--surface);
    font-size:14px; color:var(--text-1); text-decoration:none; font-variant-numeric:tabular-nums;
    transition:background var(--fast), border-color var(--fast), color var(--fast);
}
.pg a:hover,.pager a:hover{ background:var(--surface-2); border-color:var(--line-3); color:var(--text-1); }
.pg [aria-current] > span,.pager .active span,.pager [aria-current] span{
    background:var(--brand-weak); border-color:var(--brand-line); color:var(--brand-dd); font-weight:600;
}
.pg [aria-disabled] > span{ color:var(--text-off); background:var(--surface-2); }
.pager{ margin-top:16px; display:flex; align-items:center; gap:2px; flex-wrap:wrap; }
.pager span{ cursor:default; }

/* ---------- 顶部加载进度条（观感提速） ---------- */
#nprog{
    position:fixed; top:0; left:0; height:2px; width:0; z-index:9999;
    background:var(--brand); opacity:0; pointer-events:none;
    transition:width .35s var(--ease), opacity .2s linear;
}
#nprog.on{ opacity:1; }

/* ---------- 轻提示：顶部居中，3 秒后消失；只用于操作结果（stToast(msg, 'ok'|'bad'|'info')） ---------- */
/* 深色毛玻璃（GLASS-0924） */
#toast{
    position:fixed; left:50%; top:16px; transform:translate(-50%,-8px);
    background:var(--glass-dark); -webkit-backdrop-filter:blur(16px) saturate(160%); backdrop-filter:blur(16px) saturate(160%);
    color:#fff; padding:9px 14px 9px 12px; border-radius:var(--r-pop);
    font-size:14px; line-height:22px; opacity:0; pointer-events:none; z-index:9998;
    transition:opacity .2s, transform .2s; display:flex; align-items:center; gap:8px;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), 0 16px 40px -12px rgba(20,20,43,.4); max-width:calc(100vw - 32px);
}
#toast.on{ opacity:1; transform:translate(-50%,0); }
#toast > i{ width:18px; height:18px; border-radius:999px; flex:none; display:grid; place-items:center;
            background:#52525D; color:#fff; }
#toast > i .ic{ stroke-width:2.5; }
#toast.is-ok > i{ background:var(--ok-dot); }
#toast.is-bad > i{ background:var(--bad-dot); }

/* ================================================================
   自绘下拉 / 日期弹层（partials/ui.blade.php 驱动；类名一律 st- 前缀）
   ================================================================ */
/* 毛玻璃弹层（GLASS-0924）：和顶栏里的通知 / 账号 / Ctrl K 结果同一套 */
.st-pop{
    position:fixed; z-index:9990; min-width:180px; max-width:min(92vw,440px);
    background:var(--glass-pop); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
    border:1px solid var(--glass-rim); border-radius:var(--r-pop);
    box-shadow:var(--sh-lg); padding:4px; animation:stPop .14s var(--ease);
}
.st-pop.is-up{ animation-name:stPopUp; }
@keyframes stPop{ from{ opacity:0; transform:translateY(-4px); } to{ opacity:1; transform:none; } }
@keyframes stPopUp{ from{ opacity:0; transform:translateY(4px); } to{ opacity:1; transform:none; } }
.st-pop .st-q{ margin:0 0 4px; }
.st-pop .st-q input{ width:100%; height:32px; font-size:14px; background:rgba(255,255,255,.7); border-color:var(--line-soft); box-shadow:none; }
.st-pop .st-q input:focus{ background:var(--surface); border-color:var(--brand); box-shadow:var(--ring); }
.st-list{ max-height:min(320px,60vh); overflow-y:auto; overscroll-behavior:contain; }
.st-opt{
    display:flex; align-items:center; gap:8px; min-height:32px; padding:5px 8px; border-radius:var(--r-ctl);
    font-size:14px; line-height:22px; color:var(--text); cursor:pointer; white-space:nowrap;
    overflow:hidden; text-overflow:ellipsis; user-select:none;
}
.st-opt.is-hi{ background:rgba(20,20,43,.055); color:var(--text-1); }
.st-opt.is-on{ background:var(--brand-weak); color:var(--brand-dd); font-weight:500; }
.st-opt.is-on.is-hi{ background:var(--brand-soft); }
.st-opt.is-dis{ color:var(--text-off); cursor:not-allowed; }
.st-opt .st-ck{ margin-left:auto; display:inline-flex; opacity:0; flex:none; color:var(--brand-d); }
.st-opt.is-on .st-ck{ opacity:1; }
.st-empty{ padding:12px; text-align:center; color:var(--text-3); font-size:14px; }

/* 日期：运行时把 type=date 改成 text+readonly，值仍是 YYYY-MM-DD */
input[data-st-date]{
    padding-right:34px; cursor:pointer;
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B76' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 10px center; background-size:16px 16px;
}
/* 压过上面 input[readonly] 的置灰：这是可点的触发器，不是只读展示 */
input[data-st-date][readonly]{ background-color:var(--surface); color:var(--text); border-color:var(--line); cursor:pointer; box-shadow:var(--sh-xs); }
input[data-st-date][readonly]:hover{ border-color:var(--line-3); }
input[data-st-date][readonly]:focus{ border-color:var(--brand); box-shadow:var(--ring); }
input[data-st-date]:disabled{ background-color:var(--surface-2); background-image:none; color:var(--text-off);
                              border-color:var(--line); cursor:not-allowed; box-shadow:none; }
.st-cal{ width:280px; padding:12px; }
.st-cal-hd{ display:flex; align-items:center; gap:4px; margin-bottom:8px; }
.st-cal-hd b{ flex:1; text-align:center; font-size:14px; font-weight:600; color:var(--text-1); font-variant-numeric:tabular-nums; }
.st-cal-nav{
    width:28px; height:28px; border:1px solid var(--line); background:var(--surface); border-radius:var(--r-ctl);
    color:var(--text-2); cursor:pointer; font-size:14px; line-height:1; font-family:inherit; flex:none;
    transition:background var(--fast), color var(--fast);
}
.st-cal-nav:hover{ background:var(--surface-3); color:var(--text-1); }
.st-cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.st-cal-w{ text-align:center; font-size:12px; color:var(--text-3); padding:4px 0; }
.st-cal-d{
    height:32px; border:0; background:transparent; border-radius:var(--r-ctl); font-size:14px;
    color:var(--text); cursor:pointer; font-family:inherit; font-variant-numeric:tabular-nums;
    transition:background var(--fast), color var(--fast);
}
.st-cal-d:hover{ background:rgba(20,20,43,.055); }
.st-cal-d.is-out{ color:var(--text-off); }
.st-cal-d.is-cur{ box-shadow:inset 0 0 0 1px var(--line-3); }
.st-cal-d.is-today{ color:var(--brand-d); font-weight:600; box-shadow:inset 0 0 0 1px var(--brand-line); }
.st-cal-d.is-on{ background:var(--brand-d); color:#fff; font-weight:600; box-shadow:none; }
.st-cal-d:disabled{ color:var(--line-3); cursor:not-allowed; background:none; box-shadow:none; }
.st-cal-ft{ display:flex; gap:8px; margin-top:8px; padding-top:8px; border-top:1px solid var(--line-2); }
.st-cal-ft button{
    flex:1; height:28px; border:1px solid var(--line); background:var(--surface); color:var(--text-1);
    border-radius:var(--r-ctl); font-size:14px; cursor:pointer; font-family:inherit; box-shadow:var(--sh-xs);
    transition:background var(--fast), color var(--fast);
}
.st-cal-ft button:hover{ background:var(--surface-2); }

/* ================================================================
   ★ SHELL-0924 外壳：灰画布上放侧边栏（232）+ 一块内嵌白面板（四周留 8、圆角 12）+ 面板里的顶栏（56）
   ----------------------------------------------------------------
   ⚠️ 页面滚动仍然是【整页（body）滚动】，不是设计稿里的面板内部滚动：
      表头吸顶（top:var(--top-h)）、系统配置左栏吸顶、协议页预览吸顶、返回上一页回到原位置、
      键盘翻页，全都依赖整页滚动；改成内部滚动这几样都得重做。
      面板上下那一圈 8px 灰边和圆角，在滚动时由两条固定的「遮罩」(.ad-cap) 补出来：
      遮罩里画一个圆角框（描边 = 面板描边），框外用 box-shadow 铺画布色，盖住滚到面板外面去的内容。
      看上去与设计稿的内嵌面板一致；pointer-events:none，不挡任何点击。
   ⚠️ 顶栏 sticky 在 top:gap+描边（= 静止时的位置），所以吸住前后顶栏一个像素都不动；
      --top-h = gap + 描边 + 顶栏高，表头等 sticky 元素停在它下面。
   ⚠️ 窄屏（≤860）gap 与描边都归零：面板铺满、遮罩不出，侧栏变抽屉。
   ================================================================ */
.ad-app{ display:flex; min-height:100vh; min-height:100dvh; }
.navtog{ display:none; }
/* ★ GLASS-0924 画布：固定在视口上的一层（单独合成、滚动不重绘）。
   .ad-app 不是层叠上下文，z-index:-1 会落到根层叠上下文里、所有内容的下面、页面底色的上面。
   ⚠️ 只挂在 .ad-app 上：抽屉里的页面（html.is-embed）和登录页没有 .ad-app，不会被铺上光晕。 */
.ad-app::before{ content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; background:var(--canvas); }

/* ---------- 侧边栏 ---------- */
/* ★ SHELL-0924C 侧边栏细节：
   · 品牌行与顶栏【垂直居中对齐】—— 品牌行从 gap + 描边 处开始、高度 = 顶栏高，logo 与面包屑落在同一条中线上；
     ≤860 抽屉档 gap / 描边归零，这个算式照样成立（顶栏贴顶，品牌行也贴顶）。
   · 分组之间 12、组内 2：组名离自己那组近、离上一组远，一眼分得出段落。
   · 悬停 / 按下 / 键盘聚焦三种状态各有样子；图标随悬停加深，选中项是浅灰胶囊 + 橙色图标（SIDEB-0924 起，原来是白色胶囊）。
   · 菜单比屏幕高、滚动起来时，上下边缘渐隐（见 .ad-nav 的 mask）。 */
.ad-side{
    width:var(--side-w); flex:none; position:sticky; top:0; align-self:flex-start; z-index:40;
    height:100vh; height:100dvh; display:flex; flex-direction:column; gap:4px;
    padding:calc(var(--gap) + var(--frame-b)) 14px 16px calc(var(--gap) + 12px); transition:width var(--fast);
}
/* ★ SIDEB-0924 侧栏自己是一块白面板（老板在三个方案里选的「白色悬浮侧栏」）：左、上、下各留 gap 露出画布，
   右边与内容面板之间也是一条 gap（.ad-main 的左内边距）。画在 ::before 上（z-index:-1，侧栏 z-index:40 是层叠上下文），
   边缘：一圈极淡描边 + 两层散阴影，与内容面板同一套。
   ⚠️ 侧栏起了 view-transition-name，这块面板随侧栏一起截图，切页时纹丝不动；≤860 抽屉档不画它（抽屉本身是白底）。 */
.ad-side::before{
    content:""; position:absolute; top:var(--gap); bottom:var(--gap); left:var(--gap); right:0; z-index:-1; pointer-events:none;
    background:linear-gradient(180deg, #FFFFFF 0%, #FCFCFD 100%); border-radius:var(--r-panel);
    box-shadow:0 0 0 1px rgba(20,20,43,.05), 0 1px 2px rgba(20,20,43,.04), 0 18px 48px -24px rgba(20,20,43,.16);
}
.ad-brand{ display:flex; align-items:center; justify-content:space-between; gap:8px;
           height:var(--bar-h); padding:0 2px 0 6px; flex:none; }
.ad-logo{ display:flex; align-items:center; gap:10px; min-width:0; color:inherit; text-decoration:none; border-radius:var(--r-ctl); }
.ad-logo:hover{ color:inherit; }
/* ★ BRAND-0924B 侧栏品牌：完整 App 图标（admin-assets/brand/logo.png，192px 不透明正方形，四角是 logo 橙，圆角在这里切）
   36px、圆角 10（与登录页 72px / 18 同比例）+「省探惠生活」一行 18 号（2026-09-24 老板两轮反馈：不写「管理后台」、不要小字、名字大一点）。
   36 高、在 56 高的品牌行里居中 = 中线仍与顶栏面包屑对齐（SHELL-0924C）；左缘仍与菜单图标方块对齐。
   底色是 logo 的橙 #FC5F27，图没加载出来时也是一块橙色方块，不会空一格。图标条档缩到 32（见 html.nav-mini）。 */
.ad-mark{
    width:36px; height:36px; border-radius:10px; flex:none; display:block; object-fit:cover;
    background:#FC5F27;
    box-shadow:0 1px 2px rgba(178,58,12,.26), 0 4px 10px -4px rgba(240,90,26,.45);
}
.ad-name{ display:inline-flex; align-items:center; min-width:0; white-space:nowrap; }
.ad-name b{ font-size:18px; line-height:26px; font-weight:600; letter-spacing:.02em; color:var(--text-1); }

.ad-ibtn{
    position:relative; width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center;
    flex:none; padding:0; border:0; border-radius:var(--r-ctl); background:transparent; color:var(--text-2);
    cursor:pointer; font:inherit; transition:background var(--fast), color var(--fast);
}
.ad-ibtn:hover{ background:rgba(20,20,43,.055); color:var(--text-1); }
.ad-ibtn[aria-expanded="true"]{ background:rgba(20,20,43,.07); color:var(--text-1); }
.ad-fold{ width:28px; height:28px; color:var(--text-off); }
.ad-side:hover .ad-fold{ color:var(--text-3); }
.ad-fold:hover,.ad-side:hover .ad-fold:hover{ background:rgba(23,23,28,.06); color:var(--text-1); }

/* 菜单滚动时上下边缘渐隐（GLASS-0924）：侧栏底下是光晕不是纯色，原来那套「local 纯色背景盖住阴影」会画出一块灰色方块，
   改成遮罩 —— 上下各留 8 / 12 的内边距，不滚的时候渐隐区里没有东西，看不出来；滚起来菜单项从边缘淡出。 */
.ad-nav{ flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
         display:flex; flex-direction:column; gap:12px; margin:-8px -4px 0; padding:8px 4px 12px;
         scrollbar-width:thin; scrollbar-color:transparent transparent;
         -webkit-mask-image:linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 12px), transparent);
                 mask-image:linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 12px), transparent); }
.ad-nav:hover{ scrollbar-color:var(--line-3) transparent; }
.ad-nav::-webkit-scrollbar{ width:4px; }
.ad-nav::-webkit-scrollbar-thumb{ background:transparent; border:0; border-radius:4px; }
.ad-nav:hover::-webkit-scrollbar-thumb{ background:var(--line-3); }
.ad-group{ display:flex; flex-direction:column; gap:2px; }
/* 分组名：12 号加粗、字距拉开，后面跟一条细线把这一段框出来；文字左缘与图标方块、logo 在同一条竖线上 */
.ad-gt{ height:28px; display:flex; align-items:flex-end; gap:8px; padding:0 6px 4px 7px;
        font-size:12px; line-height:20px; font-weight:600; letter-spacing:.06em; color:var(--text-3); white-space:nowrap; }
.ad-gt::after{ content:""; flex:1; height:1px; margin-bottom:10px; background:rgba(23,23,28,.08); }
.ad-item{
    position:relative; display:flex; align-items:center; gap:9px; height:36px; padding:0 8px 0 7px; flex:none;
    border-radius:var(--r-ctl); font-size:14px; line-height:22px; color:var(--text-nav);
    text-decoration:none; white-space:nowrap; outline:0;
    transition:background var(--fast), color var(--fast), box-shadow var(--fast);
}
/* 图标放进 26 的小方块：白底 + 细描边（中线与 logo 对齐）；选中项换成 logo 那种橙色渐变 + 白图标 */
.ad-ic{
    width:26px; height:26px; flex:none; display:inline-flex; align-items:center; justify-content:center;
    border-radius:7px; background:var(--surface); color:var(--text-2);
    box-shadow:0 0 0 1px rgba(20,20,43,.07), 0 1px 2px rgba(20,20,43,.06);
    transition:background var(--fast), color var(--fast), box-shadow var(--fast);
}
.ad-item .nm{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
/* SIDEB-0924 侧栏是白面板：悬停浅灰、按下再深一档；选中项是浅灰胶囊 + 一圈极淡的内描边（白底上的白胶囊看不出来） */
a.ad-item:hover{ background:#F5F5F7; color:var(--text-1); }
a.ad-item:hover .ad-ic{ background:var(--surface); color:var(--text-1); box-shadow:0 0 0 1px rgba(20,20,43,.1), 0 1px 3px rgba(20,20,43,.08); }
a.ad-item:active{ background:#EFEFF2; }
a.ad-item:focus-visible{ box-shadow:0 0 0 2px var(--surface), 0 0 0 4px rgba(240,90,26,.45); }
.ad-item.is-on,a.ad-item.is-on:hover,a.ad-item.is-on:active{
    background:#F2F2F5; color:var(--text-1); font-weight:500;
    box-shadow:inset 0 0 0 1px rgba(20,20,43,.04);
}
.ad-item.is-on .ad-ic,a.ad-item.is-on:hover .ad-ic{
    background:linear-gradient(180deg, #F46E36 0%, var(--brand) 52%, #E4500F 100%); color:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 2px rgba(178,58,12,.28), 0 2px 6px -2px rgba(240,90,26,.4);
}
a.ad-item.is-on:focus-visible{ box-shadow:inset 0 0 0 1px rgba(20,20,43,.04), 0 0 0 2px var(--surface), 0 0 0 4px rgba(240,90,26,.3); }
.ad-item.is-off{ color:var(--text-3); cursor:default; }
/* 还没做的：虚线空方块 + 淡图标 */
.ad-item.is-off .ad-ic{ background:transparent; color:var(--text-off); box-shadow:none; border:1px dashed var(--line-3); }
/* 「待建 / 只读 / 平台级」：灰底小字，别比菜单名还抢眼 */
.ad-tag{ height:20px; padding:0 6px; flex:none; border-radius:var(--r-tag); border:0;
         background:rgba(23,23,28,.055); color:var(--text-3); font-size:12px; font-weight:400; line-height:20px; }
.ad-item.is-on .ad-tag{ background:rgba(20,20,43,.06); }
/* 待办数：浅底 + 同色细描边，灰画布上也清楚；没有好坏之分的用中性灰 */
.ad-badge{ display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:18px; padding:0 6px; flex:none;
           border-radius:999px; background:rgba(23,23,28,.07); color:var(--text-2);
           font-size:12px; font-weight:600; line-height:16px; font-variant-numeric:tabular-nums; }
.ad-badge.is-warn{ background:var(--warn-bg); color:var(--warn-fg); box-shadow:inset 0 0 0 1px rgba(245,165,36,.32); }
.ad-badge.is-bad{ background:var(--bad-bg); color:var(--bad-fg); box-shadow:inset 0 0 0 1px rgba(240,68,56,.26); }
.ad-item.is-on .ad-badge:not(.is-warn):not(.is-bad){ background:rgba(20,20,43,.08); }

/* 收成图标条（html.nav-mini，head 里那段脚本在首帧前就定好）。logo 的中线仍对齐顶栏中线。 */
html.nav-mini{ --side-w:var(--side-mini); }
/* 图标条：白面板 8..72，内容 18..62（44 宽）正好居中在面板里 */
html.nav-mini .ad-side{ padding:calc(var(--gap) + var(--frame-b) + (var(--bar-h) - 32px) / 2) 10px 16px calc(var(--gap) + 10px); gap:12px; }
html.nav-mini .ad-mark{ width:32px; height:32px; border-radius:9px; }
html.nav-mini .ad-brand{ flex-direction:column; height:auto; gap:12px; padding:0; }
html.nav-mini .ad-fold{ color:var(--text-3); }
html.nav-mini .ad-name,
html.nav-mini .ad-item .nm,
html.nav-mini .ad-tag,
html.nav-mini .ad-gt span{ display:none; }
html.nav-mini .ad-nav{ gap:8px; }
html.nav-mini .ad-gt{ height:9px; padding:0 10px; align-items:center; }
html.nav-mini .ad-gt::after{ margin-bottom:0; background:var(--line); }
html.nav-mini .ad-item{ justify-content:center; padding:0; }
html.nav-mini .ad-badge{ position:absolute; top:2px; right:6px; min-width:8px; width:8px; height:8px; padding:0;
                         font-size:0; box-shadow:0 0 0 2px var(--surface); }
html.nav-mini .ad-badge.is-warn{ background:var(--warn-dot); }
html.nav-mini .ad-badge.is-bad{ background:var(--bad-dot); }
html.nav-mini .ad-badge:not(.is-warn):not(.is-bad){ background:var(--text-off); }
html.nav-mini .ad-item.is-on .ad-badge{ box-shadow:0 0 0 2px #F2F2F5; }

/* ---------- ★ NAVFX-0924 页面切换过渡 ----------
   后台是整页跳转（服务端渲染），原来点菜单是「白屏一下 → 整页硬切」。这里用浏览器原生的跨文档
   View Transitions（Chrome / Edge 126+、Safari 18.2+，纯 CSS，不支持的浏览器照常整页跳转、什么都不坏）：
   · 侧栏、顶栏各自是一层，新旧两页一模一样，看起来纹丝不动（选中项的白色胶囊在点下去那一刻就已经挪过去了，见 layout 脚本）；
   · 只有内容区淡出旧页、新页从下方 8px 淡入，一共 0.2 秒左右。
   ⚠️ view-transition-name 在一页里必须唯一：侧栏 / 顶栏 / 内容区 / 上下两条滚动遮罩都只有一个，别再给别的元素起同名。
   ⚠️ 起了名字的元素是 Backdrop Root（它里面的 backdrop-filter 只能虚化它自己），见文件头 GLASS-0924。
   ⚠️ 抽屉里的页面（html.is-embed）不起这几个名字，iframe 内部换页时就是默认的整体淡入淡出。 */
@view-transition{ navigation:auto; }
.ad-side{ view-transition-name:ad-side; }
.ad-bar{ view-transition-name:ad-bar; }
.ad-content{ view-transition-name:ad-content; }
::view-transition-group(ad-side),::view-transition-group(ad-bar){ animation-duration:.16s; }
/* ★ VTCORNER-0924 过渡那一瞬间顶栏不开毛玻璃：Chrome 给带 backdrop-filter 的元素截过渡快照时【不按圆角裁】，
   顶栏两个上角在过渡期间会变成白色直角（2026-09-24 老板截图；把过渡放慢到 3 秒逐帧取像素实测，关掉虚化就恢复圆角）。
   旧页面：admin.js 在 pageswap（带过渡时）给 <html> 挂 vt-leave，截图前生效；新页面：过渡进行中匹配 :active-view-transition。
   背景透明度不变、只去掉虚化 —— 页面在顶端时顶栏下面没有内容，看不出差别；滚动过的页面在这 0.16 秒里顶栏下的字不虚化，可以接受。
   ⚠️ 两条必须分开写：不认识 :active-view-transition 的浏览器会把整条规则丢掉，合在一起的话 vt-leave 那条也跟着失效。 */
html.vt-leave .ad-bar{ -webkit-backdrop-filter:none; backdrop-filter:none; background:rgba(255,255,255,.94); }
html:active-view-transition .ad-bar{ -webkit-backdrop-filter:none; backdrop-filter:none; background:rgba(255,255,255,.94); }
/* 同时顶栏换成几乎不透明：过渡时没有虚化，旧页面滚到顶栏底下的字会以 34% 透出来；页面在顶端时 66% 与 94% 的白叠在白面板上
   只差 3 个色阶，看不出来。
   滚动遮罩也起名字：过渡时起了名字的元素各自成一层、按原来的层叠顺序叠（遮罩 z31 在内容之上、顶栏之下）；
   不起名字的话它们留在最底下那张整页截图里，滚动过的页面切走时，旧内容会从面板上方那条缝、圆角外面露出来（同一次逐帧实测）。
   ≤860 遮罩是 display:none，没有盒子就不参与过渡，不用另外处理。 */
.ad-cap-t{ view-transition-name:ad-cap-t; }
.ad-cap-b{ view-transition-name:ad-cap-b; }
::view-transition-old(ad-content){ animation:.1s cubic-bezier(.4,0,1,1) both navfx-out; }
::view-transition-new(ad-content){ animation:.22s cubic-bezier(.2,.75,.3,1) .04s both navfx-in; }
::view-transition-group(ad-content){ animation-duration:.26s; }
@keyframes navfx-out{ to{ opacity:0; } }
@keyframes navfx-in{ from{ opacity:0; transform:translateY(8px); } }
@media (prefers-reduced-motion:reduce){
    ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){ animation:none !important; }
}

/* ---------- 面板 ---------- */
/* SIDEB-0924 左边也留 gap：侧栏白面板与内容面板之间露一条画布 */
.ad-main{ flex:1; min-width:0; display:flex; padding:var(--gap); }
/* 面板（GLASS-0924）：半透明白 + 不透明白色亮边 + 一层很散的阴影。背后只有平滑的光晕，不开 backdrop-filter（见文件头） */
.ad-frame{
    flex:1; min-width:0; display:flex; flex-direction:column;
    /* 顶上一道很淡的高光（玻璃迎光的那一面），往下 320px 渐隐 */
    background:linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,0) 320px) no-repeat, var(--glass-panel);
    border:var(--frame-b) solid var(--glass-rim); border-radius:var(--r-panel);
    box-shadow:0 1px 2px rgba(20,20,43,.04), 0 18px 48px -24px rgba(20,20,43,.16);
    min-height:calc(100vh - var(--gap) * 2); min-height:calc(100dvh - var(--gap) * 2);
}
/* 页面内容万一横向超宽（没包进横滚卡片的宽表），别让整页横滚、把固定遮罩错开 */
@supports (overflow: clip){
    .ad-frame{ overflow-x:clip; }
}

/* 滚动时补出面板上下的灰边与圆角（原理见本节开头）。
   ★ GLASS-0924 画布不再是纯色，原来「框外铺一圈画布色的 box-shadow」对不上底下的光晕了，改成：
     ::before = 一块与视口等大、与 .ad-app::before 同一张图同一位置的画布（遮罩条本身就固定在视口上，
     所以用普通背景就能对齐，不用 background-attachment:fixed —— 那个会让整页滚动退回主线程重绘）；
     再用 mask 只留出「面板外面」那几块：一条边 + 两个圆角外侧 + 右边那条缝。
     <i> 只描面板的亮边（--glass-rim 不透明，与 .ad-frame 自己的边重合时不会叠亮）。 */
.ad-cap{ position:fixed; left:var(--side-w); right:0; z-index:31; height:calc(var(--gap) + var(--r-panel));
         overflow:hidden; pointer-events:none; transition:left var(--fast); }
.ad-cap-t{ top:0; }
.ad-cap-b{ bottom:0; }
.ad-cap::before{ content:""; position:absolute; left:calc(0px - var(--side-w)); width:calc(100% + var(--side-w)); height:100vh;
                 background:var(--canvas); }
.ad-cap-t::before{
    top:0;
    -webkit-mask:
        linear-gradient(#000 0 0) left 0 top 0 / 100% var(--gap) no-repeat,
        linear-gradient(#000 0 0) right 0 top 0 / var(--gap) 100% no-repeat,
        radial-gradient(circle at 100% 100%, transparent calc(var(--r-panel) - .5px), #000 calc(var(--r-panel) + .5px)) left calc(var(--side-w) + var(--gap)) top var(--gap) / var(--r-panel) var(--r-panel) no-repeat,
        radial-gradient(circle at 0 100%, transparent calc(var(--r-panel) - .5px), #000 calc(var(--r-panel) + .5px)) right var(--gap) top var(--gap) / var(--r-panel) var(--r-panel) no-repeat;
            mask:
        linear-gradient(#000 0 0) left 0 top 0 / 100% var(--gap) no-repeat,
        linear-gradient(#000 0 0) right 0 top 0 / var(--gap) 100% no-repeat,
        radial-gradient(circle at 100% 100%, transparent calc(var(--r-panel) - .5px), #000 calc(var(--r-panel) + .5px)) left calc(var(--side-w) + var(--gap)) top var(--gap) / var(--r-panel) var(--r-panel) no-repeat,
        radial-gradient(circle at 0 100%, transparent calc(var(--r-panel) - .5px), #000 calc(var(--r-panel) + .5px)) right var(--gap) top var(--gap) / var(--r-panel) var(--r-panel) no-repeat;
}
.ad-cap-b::before{
    bottom:0;
    -webkit-mask:
        linear-gradient(#000 0 0) left 0 bottom 0 / 100% var(--gap) no-repeat,
        linear-gradient(#000 0 0) right 0 bottom 0 / var(--gap) 100% no-repeat,
        radial-gradient(circle at 100% 0, transparent calc(var(--r-panel) - .5px), #000 calc(var(--r-panel) + .5px)) left calc(var(--side-w) + var(--gap)) bottom var(--gap) / var(--r-panel) var(--r-panel) no-repeat,
        radial-gradient(circle at 0 0, transparent calc(var(--r-panel) - .5px), #000 calc(var(--r-panel) + .5px)) right var(--gap) bottom var(--gap) / var(--r-panel) var(--r-panel) no-repeat;
            mask:
        linear-gradient(#000 0 0) left 0 bottom 0 / 100% var(--gap) no-repeat,
        linear-gradient(#000 0 0) right 0 bottom 0 / var(--gap) 100% no-repeat,
        radial-gradient(circle at 100% 0, transparent calc(var(--r-panel) - .5px), #000 calc(var(--r-panel) + .5px)) left calc(var(--side-w) + var(--gap)) bottom var(--gap) / var(--r-panel) var(--r-panel) no-repeat,
        radial-gradient(circle at 0 0, transparent calc(var(--r-panel) - .5px), #000 calc(var(--r-panel) + .5px)) right var(--gap) bottom var(--gap) / var(--r-panel) var(--r-panel) no-repeat;
}
/* SIDEB-0924 内容面板左边多了一条 gap（与侧栏白面板隔开），圆角和亮边都从 side-w + gap 起 */
.ad-cap > i{ position:absolute; left:var(--gap); right:var(--gap); height:calc(var(--r-panel) * 3); display:block;
             border:var(--frame-b) solid var(--glass-rim); }
.ad-cap-t > i{ top:var(--gap); border-bottom:0; border-radius:var(--r-panel) var(--r-panel) 0 0; }
.ad-cap-b > i{ bottom:var(--gap); border-top:0; border-radius:0 0 var(--r-panel) var(--r-panel); }

/* ---------- 顶栏：左面包屑，右全局搜索（Ctrl K）/ 帮助 / 通知 / 账号 ---------- */
/* z-index 比遮罩（31）高：顶栏里弹出的通知 / 搜索结果要盖得住底部遮罩；
   顶栏四角圆弧外面露出来的，正好是遮罩画的画布色 */
/* ★ GLASS-0924 顶栏是毛玻璃：内容从底下滚过去会被虚化。
   ⚠️ 毛玻璃必须写在 .ad-bar【自己】身上，不能挪到它的 ::before 或子元素里：.ad-bar 带 view-transition-name
      （NAVFX-0924），带这个名字的元素一律是 Backdrop Root —— 它【里面】的 backdrop-filter 只能虚化顶栏自己，
      虚化不到底下的页面（2026-09-24 实测：写在 ::before 上时底下的字清清楚楚）；元素自己的 backdrop-filter 不受影响。
   ⚠️ 同一个原因，顶栏里的弹层（通知 / 帮助 / 账号 / Ctrl K 结果）开不了真的毛玻璃，见下面 .ad-bar .ad-pop 那条。
   ⚠️ 切页过渡的那 0.16 秒里顶栏是一张截图（截图里没有虚化），从滚动过的页面切走时底下的字会淡淡露一下，属正常。 */
.ad-bar{
    position:sticky; top:calc(var(--gap) + var(--frame-b)); z-index:32; height:var(--bar-h); flex:none;
    display:flex; align-items:center; gap:16px; padding:0 20px 0 28px;
    background:var(--glass-bar); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
    border-bottom:1px solid var(--line-soft);
    border-radius:calc(var(--r-panel) - var(--frame-b)) calc(var(--r-panel) - var(--frame-b)) 0 0;
}
.ad-menu{ display:none; }
.ad-crumb{ display:flex; align-items:center; gap:8px; min-width:0; font-size:14px; line-height:22px; white-space:nowrap; }
.ad-crumb .up{ color:var(--text-3); flex:none; }
.ad-crumb a.up:hover{ color:var(--text-1); }
.ad-crumb .sep{ color:var(--line-3); flex:none; }
.ad-crumb [aria-current]{ color:var(--text-1); font-weight:500; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.ad-tools{ margin-left:auto; display:flex; align-items:center; gap:4px; flex:none; }
.ad-dd{ position:relative; }
.ad-dot{ position:absolute; top:6px; right:6px; width:8px; height:8px; border-radius:999px;
         background:var(--brand); box-shadow:0 0 0 2px #FDFDFD; }
.ad-vr{ width:1px; height:16px; background:var(--line); margin:0 8px; flex:none; }

/* 全局搜索：不加任何接口 —— 候选是菜单页；「在 X 中搜」跳到本来就支持 ?kw= 的列表页 */
.ad-search{
    position:relative; display:flex; align-items:center; gap:8px; width:280px; height:32px; margin-right:8px;
    padding:0 5px 0 10px; border:1px solid rgba(20,20,43,.09); border-radius:var(--r-ctl); background:rgba(255,255,255,.62);
    cursor:text; transition:border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
.ad-search:hover{ border-color:var(--line-3); }
.ad-search:focus-within{ border-color:var(--brand); box-shadow:var(--ring); background:var(--surface); }
.ad-search > .ic{ color:var(--text-3); }
.ad-search input,.ad-search input:hover,.ad-search input:focus{
    flex:1; min-width:0; height:30px; padding:0; border:0; background:transparent; box-shadow:none; outline:0;
    font-size:14px; color:var(--text-1);
}
.ad-search input::-webkit-search-cancel-button{ display:none; }
.ad-search:focus-within > kbd{ visibility:hidden; }   /* 只藏框里那个 Ctrl K，结果面板底部的按键提示也是 kbd */

.ad-cmd{
    position:absolute; top:calc(100% + 6px); right:-6px; z-index:50; width:440px; max-width:calc(100vw - 24px);
    max-height:min(480px, 70vh); overflow-y:auto; overscroll-behavior:contain; padding:4px; cursor:default;
    background:var(--glass-pop); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
    border:1px solid var(--glass-rim); border-radius:var(--r-pop); box-shadow:var(--sh-lg);
}
.ad-cmd-h{ padding:8px 8px 4px; font-size:12px; line-height:20px; font-weight:500; color:var(--text-3); }
.ad-cmd-i{ display:flex; align-items:center; gap:10px; min-height:36px; padding:0 8px; border-radius:var(--r-ctl);
           color:var(--text-1); text-decoration:none; font-size:14px; line-height:22px; }
.ad-cmd-i .ic{ color:var(--text-3); }
.ad-cmd-i:hover{ color:var(--text-1); }
.ad-cmd-i.is-hi{ background:rgba(20,20,43,.055); }
.ad-cmd-i.is-hi .ic{ color:var(--text-2); }
.ad-cmd-t{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ad-cmd-t b{ font-weight:600; }
.ad-cmd-g{ flex:none; max-width:45%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
           font-size:12px; line-height:20px; color:var(--text-3); }
.ad-cmd-empty{ display:flex; flex-direction:column; align-items:center; gap:4px; padding:20px 12px; text-align:center; }
.ad-cmd-empty b{ font-size:14px; font-weight:500; }
.ad-cmd-empty span{ font-size:14px; line-height:22px; color:var(--text-3); }
.ad-cmd-f{ display:flex; gap:16px; margin-top:4px; padding:8px 8px 4px; border-top:1px solid var(--line-2);
           font-size:12px; line-height:20px; color:var(--text-3); }
.ad-cmd-f kbd{ margin-right:2px; }

/* 顶栏弹层：帮助 / 通知 / 账号 */
.ad-pop{ position:absolute; top:calc(100% + 8px); right:0; z-index:50; min-width:240px; padding:4px;
         background:var(--glass-pop); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
         border:1px solid var(--glass-rim); border-radius:var(--r-pop); box-shadow:var(--sh-lg); }
.ad-pop[hidden]{ display:none; }
/* 顶栏里的弹层：.ad-bar 是 Backdrop Root（见 .ad-bar 那段），这里的 backdrop-filter 虚化不到下面的页面，
   半透明的话页面字会原样透出来 —— 用实心白，亮边、圆角、阴影照旧。页面里的弹层（列设置）不受影响。 */
.ad-bar .ad-pop,.ad-bar .ad-cmd{ background:var(--surface); -webkit-backdrop-filter:none; backdrop-filter:none; }
.ad-pop-h{ display:flex; align-items:center; gap:8px; padding:8px 8px 6px; font-size:14px; line-height:22px; }
.ad-pop-h b{ font-weight:600; color:var(--text-1); }
.ad-pop-f{ display:flex; align-items:center; justify-content:center; gap:4px; margin-top:4px; padding:8px;
           border-top:1px solid var(--line-2); font-size:14px; line-height:22px; color:var(--text-2); }
.ad-pop-f:hover{ color:var(--text-1); }
.ad-pop-note{ padding:4px 8px 8px; font-size:12px; line-height:20px; color:var(--text-3); }

.ad-help{ width:300px; }
.ad-keys{ display:flex; flex-direction:column; padding:0 8px 4px; }
.ad-keys > div{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 0;
                border-top:1px solid var(--line-2); font-size:14px; line-height:22px; color:var(--text-2); }
.ad-keys > div:first-child{ border-top:0; }
.ad-keys dd{ display:flex; gap:4px; }

.ad-bell{ width:380px; max-width:calc(100vw - 24px); max-height:calc(100vh - 96px); overflow-y:auto; overscroll-behavior:contain; }
.ad-note{ display:flex; align-items:flex-start; gap:12px; padding:8px; border-radius:var(--r-ctl); color:inherit; text-decoration:none; }
.ad-note:hover{ background:rgba(20,20,43,.05); color:inherit; }
.ad-note-ic{ width:32px; height:32px; border-radius:var(--r-ctl); flex:none; display:grid; place-items:center;
             background:var(--surface-3); color:var(--text-2); }
.ad-note.is-bad .ad-note-ic{ background:var(--bad-bg); color:var(--bad-dot); }
.ad-note.is-warn .ad-note-ic{ background:var(--warn-bg); color:#C27803; }
.ad-note.is-info .ad-note-ic{ background:var(--info-bg); color:var(--info-dot); }
.ad-note-b{ flex:1; min-width:0; display:flex; flex-direction:column; }
.ad-note-b b{ font-size:14px; line-height:22px; font-weight:500; color:var(--text-1); }
.ad-note-b small{ font-size:12px; line-height:20px; color:var(--text-3); overflow-wrap:anywhere;
                  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ad-note-v{ flex:none; font-size:14px; line-height:22px; font-weight:600; color:var(--text-1);
            font-variant-numeric:tabular-nums; white-space:nowrap; }
.ad-empty{ display:flex; flex-direction:column; align-items:center; gap:8px; padding:24px 16px 20px; text-align:center; }
.ad-empty-ic{ width:40px; height:40px; border-radius:var(--r-card); display:grid; place-items:center;
              background:var(--surface-3); color:var(--text-3); }
.ad-empty b{ font-size:14px; line-height:22px; font-weight:500; color:var(--text-1); }
.ad-empty small{ font-size:14px; line-height:22px; color:var(--text-3); }

.ad-me{ display:flex; align-items:center; gap:8px; height:32px; padding:0 6px 0 2px; border:0; border-radius:var(--r-ctl);
        background:transparent; cursor:pointer; font:inherit; color:var(--text-1); transition:background var(--fast); }
.ad-me:hover,.ad-me[aria-expanded="true"]{ background:rgba(20,20,43,.055); }
.ad-me .nm{ font-size:14px; line-height:22px; font-weight:500; max-width:10em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ad-me .ic{ color:var(--text-3); stroke-width:2; }
.ad-av{ width:28px; height:28px; border-radius:999px; flex:none; display:inline-flex; align-items:center; justify-content:center;
        background:var(--brand-soft); color:var(--brand-dd); font-size:14px; font-weight:600; }
.ad-av.lg{ width:36px; height:36px; font-size:15px; }
.ad-acct{ width:260px; }
.ad-acct-h{ display:flex; align-items:center; gap:12px; padding:8px 8px 12px; border-bottom:1px solid var(--line-2); margin-bottom:4px; }
.ad-acct-h > span:last-child{ min-width:0; display:flex; flex-direction:column; }
.ad-acct-h b{ font-size:14px; line-height:22px; font-weight:600; color:var(--text-1); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ad-acct-h small{ font-size:12px; line-height:20px; color:var(--text-3); }
.ad-mi{ display:flex; align-items:center; gap:8px; width:100%; height:36px; padding:0 8px; border:0; border-radius:var(--r-ctl);
        background:transparent; font:inherit; font-size:14px; color:var(--text-1); cursor:pointer; text-align:left; }
.ad-mi .ic{ color:var(--text-3); }
.ad-mi:hover{ background:rgba(20,20,43,.055); }
.ad-mi.is-bad,.ad-mi.is-bad .ic{ color:var(--bad-fg); }
.ad-mi.is-bad:hover{ background:var(--bad-bg); }

/* ---------- 内容区：左右 32、顶部 32；区块之间 32（GLASS-0924「呼吸感」放在纵向上） ---------- */
/* 页头是整页最大的一级：24/32 · 600，副标题 14 三级色；与下面内容隔开 28。
   ⚠️ 左右别再加宽：列多的表（运营商、资金财务…）在 1440 宽下本来就只剩 20 来 px 余量，卡片是 overflow:clip，
      表格挤不下时最右一列会被【静默裁掉】（不出横向滚动条）—— 2026-09-24 改成 40 时实测「编辑」被切掉半截。 */
.ad-content{ flex:1; min-width:0; padding:32px 32px 48px; }
.ad-phead{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px 24px; flex-wrap:wrap; margin-bottom:28px; }
.ad-phead-t{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.ad-phead h1{ font-size:24px; line-height:32px; font-weight:600; letter-spacing:-.01em; color:var(--text-1); }
.ad-phead p{ font-size:14px; line-height:22px; color:var(--text-3); }
.ad-phead-a{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }

/* ---------- 窄屏：侧栏抽屉化（纯 CSS 兜底，无 JS 也能开合） ---------- */
.ad-mask{ display:none; }

/* ================================================================
   ★ SHELL-0924 v2.1 通用块：区块 / 图标底 / 指标卡 / 涨跌 / ⓘ 口径 / 空状态 /
     列表工具条 / 筛选下拉 / 分段单选 / 开关 / 描述列表 / 抽屉。页面只写自己独有的差异。
   ================================================================ */
/* 区块：标题 17/26 + 右侧说明；标题与内容间距 14，区块之间 32（外层用 .stack）。
   层级：页头 24 → 区块标题 17 → 卡片里的标题 14/16 → 正文 14 → 说明 14（灰）/ 12（FONT14-0925 起不用 13） */
.stack{ display:flex; flex-direction:column; gap:32px; min-width:0; }
.sect{ display:flex; flex-direction:column; gap:14px; min-width:0; }
.sect-h{ display:flex; align-items:center; justify-content:space-between; gap:8px 16px; min-height:28px; flex-wrap:wrap; }
.sect-t{ display:flex; align-items:center; gap:8px; min-width:0; flex-wrap:wrap; }
.sect-t h2{ font-size:17px; line-height:26px; font-weight:600; letter-spacing:-.005em; color:var(--text-1); white-space:nowrap; }
.sect-t > span:not(.cnt):not(.tag),.sect-aside{ font-size:14px; line-height:22px; color:var(--text-3); }
.sect-r{ display:flex; align-items:center; gap:8px; flex-shrink:0; flex-wrap:wrap; }

/* 图标底：32 方块、圆角 6；语义色版本给「待处理」那类条目 */
.ibox{ width:32px; height:32px; border-radius:var(--r-ctl); flex:none; display:inline-flex; align-items:center; justify-content:center;
       background:var(--surface-3); color:var(--text-2); }
.ibox.is-bad{ background:var(--bad-bg); color:var(--bad-dot); }
.ibox.is-warn{ background:var(--warn-bg); color:#C27803; }
.ibox.is-info{ background:var(--info-bg); color:var(--info-dot); }
.ibox.is-ok{ background:var(--ok-bg); color:var(--ok-dot); }
.ibox.is-brand{ background:var(--brand-weak); color:var(--brand-d); }
.ibox.lg{ width:40px; height:40px; border-radius:var(--r-card); }

/* 表格里的「图标 + 名称 + 一行说明」 */
.cell-main{ display:flex; align-items:center; gap:12px; min-width:0; }
.cell-t{ display:flex; flex-direction:column; min-width:0; }
.cell-t > b,.cell-t > a{ font-size:14px; line-height:22px; font-weight:500; color:var(--text-1); }
.cell-t > a:hover{ color:var(--brand-d); }
.cell-t > small{ font-size:12px; line-height:20px; color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* 涨跌：有好坏之分的指标（用户、订单）绿 / 红带箭头；资金这类中性指标用灰色 */
.dchip{ display:inline-flex; align-items:center; gap:2px; height:20px; padding:0 6px 0 4px; border-radius:var(--r-tag);
        background:var(--surface-3); color:var(--text-2); font-size:12px; font-weight:600; line-height:16px;
        white-space:nowrap; font-variant-numeric:tabular-nums; }
.dchip .ic{ stroke-width:2.25; }
.dchip.is-good{ background:var(--ok-bg); color:var(--ok-fg); }
.dchip.is-bad{ background:var(--bad-bg); color:var(--bad-fg); }
.dchip.is-noic{ padding:0 6px; }   /* 持平：没有箭头 */

/* ⓘ 统计口径：悬停 / 聚焦显示。⚠️ 提示框只在 :hover / :focus-visible 时才生成 ——
   平时就生成一个 opacity:0 的框的话，它照样占版面，窄屏上会把整页撑宽（DASH-0923 实测）。 */
.qtip{ position:relative; display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; flex:none;
       padding:0; border:0; border-radius:999px; background:transparent; color:var(--text-off); cursor:help; }
.qtip:hover,.qtip:focus-visible{ color:var(--text-2); outline:0; }
.qtip:hover::after,.qtip:focus-visible::after{
    content:attr(data-tip); position:absolute; left:-6px; bottom:calc(100% + 6px); z-index:20;
    width:max-content; max-width:260px; padding:6px 10px; border-radius:var(--r-ctl);
    background:var(--glass-dark); -webkit-backdrop-filter:blur(12px) saturate(160%); backdrop-filter:blur(12px) saturate(160%);
    color:#fff; box-shadow:0 12px 32px -10px rgba(20,20,43,.4); pointer-events:none;
    font-size:12px; line-height:18px; font-weight:400; text-align:left; white-space:normal;
}

/* ★ HELP-0930 问号说明（2026-09-30 老板：「小字说明太多，不要直接显示出来，用一个问号，不懂的我就看」）。
   按钮 .qh：<x-help> 组件，或 help.js 给字段标签补的；弹出卡片 .qh-pop 挂在 body 下（help.js 文件头有做法与判据）。
   收进问号的是「这是什么、怎么填、去哪儿拿、为什么」这类说明；数量、状态、检测结果、报错、红黄提醒照旧直接显示。
   ⚠️ 字段说明的「先藏」条件与 help.js 的 scan() 必须一致：标签行（.ff-l / .lab）之后的 .ff-h / .hint，不带 .is-live。
      html.qh-on 由 partials/theme 在 head 里挂上（JS 不跑时说明照常显示）。 */
html.qh-on :is(.ff,.fld) > :is(.ff-l,.lab) ~ :is(.ff-h,.hint):not(.is-live){ display:none; }
.qh-src{ display:none !important; }
.qh{ display:inline-flex; align-items:center; justify-content:center; flex:none; align-self:center; width:20px; height:20px; margin:0 0 0 2px; padding:0;
     border:0; border-radius:999px; background:transparent; color:var(--text-ph); cursor:pointer; vertical-align:middle;
     font:inherit; line-height:0; transition:color var(--fast), background-color var(--fast); }
.qh .ic{ width:16px; height:16px; }
/* 页面里「标题里的图标一律染成品牌色」这类样式（.xx > h3 .ic）会把问号也染了，这里兜住 */
.qh > .ic,.qtip > .ic{ color:inherit !important; }
.qh:hover,.qh[aria-expanded="true"]{ color:var(--brand-d); background:var(--brand-weak); }
.qh:focus-visible{ outline:0; box-shadow:var(--ring); }
/* 指标卡的 ⓘ 口径（.qtip）改由 help.js 弹同一张白卡片：JS 在跑时关掉它原来的黑色小气泡，免得弹两层 */
html.qh-on .qtip:hover::after,html.qh-on .qtip:focus-visible::after{ content:none; }
.qtip[aria-expanded="true"]{ color:var(--brand-d); background:var(--brand-weak); }
/* 放在哪儿：字段标签后（标签行两端对齐，问号贴着标签、右边的附注照旧靠右）、页头标题后、区块名后 */
.ff-l > .qh{ margin-left:-4px; margin-right:auto; }
.fld > .lab > .qh{ margin-left:-4px; }
.ad-phead h1 > .qh{ width:24px; height:24px; margin-left:6px; vertical-align:-3px; }
.ad-phead h1 > .qh .ic{ width:18px; height:18px; }
.drawer-h:has(> .qh) > h2{ flex:0 1 auto; }
.drawer-h > .qh{ margin-left:-6px; margin-right:auto; }
:is(h2,h3,h4,.sect-t,.sect-h) > .qh{ margin-left:2px; }
dt > .qh{ width:18px; height:18px; margin-left:2px; vertical-align:-4px; }
dt > .qh .ic{ width:14px; height:14px; }
/* ★ NAMING-1004 字段名后面的问号：表头、统计卡标签（.statgrid / .nbox 的 small、.stat .k）、指标卡标题 .mc-l。
   字段名只写名词（「美团结算金额」「订单状态」），口径、来源、和谁一致这类说明一律收进这里。
   表头里的问号点了不排序（admin.js 表头排序那段跳过 .qh）。 */
th > .qh{ width:18px; height:18px; margin:0 0 0 2px; vertical-align:-4px; }
th > .qh .ic{ width:14px; height:14px; }
:is(.statgrid,.nbox) small + .qh,.stat .k > .qh,.stat .k + .qh,.mc-l > .qh{ width:18px; height:18px; margin-left:2px; vertical-align:-4px; }
:is(.statgrid,.nbox) small + .qh .ic,.stat .k > .qh .ic,.stat .k + .qh .ic,.mc-l > .qh .ic{ width:14px; height:14px; }

.qh-pop{ position:fixed; z-index:9995; left:0; top:0; width:max-content; max-width:min(380px, calc(100vw - 16px));
         border-radius:var(--r-pop); background:var(--surface); border:1px solid var(--line-soft); box-shadow:var(--sh-lg);
         font-size:14px; line-height:22px; font-weight:400; letter-spacing:0; color:var(--text-2); text-align:left; white-space:normal;
         visibility:hidden; opacity:0; transform:translateY(-4px); pointer-events:none;
         transition:opacity .12s var(--ease), transform .12s var(--ease), visibility 0s linear .12s; }
.qh-pop.is-wide{ max-width:min(520px, calc(100vw - 16px)); }
/* help.js 在支持 Popover API 的浏览器里给卡片加 popover 属性（进顶层，不被 showModal 的对话框挡住）：
   去掉浏览器给弹出层的默认样式（居中的 inset / margin、内边距、overflow:auto 会裁掉小三角） */
.qh-pop[popover]{ inset:auto; margin:0; padding:0; overflow:visible; height:auto; color:var(--text-2); }
.qh-pop.is-up{ transform:translateY(4px); }
.qh-pop.on{ visibility:visible; opacity:1; transform:none; pointer-events:auto; transition-delay:0s; }
/* 小三角指着问号（--qh-ax 是问号中心离卡片左边的距离，help.js 算） */
.qh-pop::before{ content:""; position:absolute; left:calc(var(--qh-ax, 22px) - 6px); top:-6px; width:10px; height:10px;
                 background:var(--surface); border-left:1px solid var(--line-soft); border-top:1px solid var(--line-soft);
                 transform:rotate(45deg); }
.qh-pop.is-up::before{ top:auto; bottom:-6px; transform:rotate(225deg); }
/* 长说明在卡片里自己滚（滚动放在里层：外层要让小三角伸出去，不能 overflow） */
.qh-pop-b{ position:relative; max-height:min(60vh, 440px); overflow:auto; overscroll-behavior:contain; padding:12px 14px;
           overflow-wrap:anywhere; }
.qh-pop-b > .qh-shown{ display:block !important; margin:0 !important; padding:0 !important; border:0 !important; background:none !important;
                       font-size:14px !important; line-height:22px !important; color:var(--text-2) !important; text-align:left !important; }
.qh-pop-b > .qh-shown + .qh-shown{ margin-top:8px !important; }
.qh-pop .qh-p{ display:block; }
.qh-pop .qh-p + .qh-p{ margin-top:8px; }
.qh-pop b,.qh-pop strong{ font-weight:600; color:var(--text-1); }
.qh-pop a{ color:var(--brand-d); text-decoration:underline; text-underline-offset:2px; }
.qh-pop code{ font-family:var(--mono); font-size:12px; padding:0 4px; border-radius:4px; background:var(--surface-3); color:var(--text-1); }

/* 指标卡：标签 + ⓘ → 数值 → 较昨日 → 近 7 天小柱（今天用品牌橙）→ 脚注。
   ⚠️ 外框【不裁切】（不能 overflow:hidden / clip）：ⓘ 和小柱的悬停提示要伸出卡片上沿。 */
.mc-wrap{ container-type:inline-size; min-width:0; }
.mc-grid{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr));
          background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--r-surface); box-shadow:var(--sh-sm); }
.mc{ display:flex; flex-direction:column; gap:12px; min-width:0; padding:20px 24px; }
.mc + .mc{ border-left:1px solid var(--line-2); }
.mc-l{ display:flex; align-items:center; gap:4px; height:22px; font-size:14px; line-height:22px; color:var(--text-2); white-space:nowrap; }
.mc-v{ display:flex; align-items:center; gap:8px; min-height:36px; flex-wrap:wrap; }
/* 大数字用比例数字（不用 tabular-nums）：等宽数字在大字号下「121」会显得松散 */
.mc-num{ display:inline-flex; align-items:baseline; gap:2px; font-size:32px; line-height:38px; font-weight:600;
         letter-spacing:-.025em; color:var(--text-1); white-space:nowrap; }
.mc-num .cur{ font-size:18px; line-height:1; font-weight:500; color:var(--text-2); }
.mc-cmp{ display:inline-flex; align-items:center; gap:6px; font-size:12px; line-height:20px; color:var(--text-3); white-space:nowrap; }
.mc-spark{ display:flex; flex-direction:column; gap:4px; padding-top:4px; }
.mc-bars{ display:flex; align-items:flex-end; justify-content:space-between; gap:8px; height:40px; border-bottom:1px solid var(--line); }
.mc-bars > i{ position:relative; flex:1 1 0; max-width:24px; height:100%; display:flex; align-items:flex-end; font-style:normal; }
.mc-bars > i > b{ display:block; width:100%; border-radius:4px 4px 0 0; background:#CACAD2; transition:background var(--fast); }
.mc-bars > i.is-now > b{ background:var(--brand); }
.mc-bars > i:hover > b{ background:#A9A9B4; }
.mc-bars > i.is-now:hover > b{ background:var(--brand-d); }
/* 悬停显示当天数值：左边几根贴左、其余贴右，提示框不伸出卡片左右 */
.mc-bars > i:hover::after{ content:attr(data-tip); position:absolute; right:0; bottom:calc(100% + 6px); z-index:20;
                           padding:6px 10px; border-radius:var(--r-ctl); white-space:nowrap; pointer-events:none;
                           background:var(--glass-dark); -webkit-backdrop-filter:blur(12px) saturate(160%); backdrop-filter:blur(12px) saturate(160%);
                           color:#fff; font-size:12px; line-height:18px; font-weight:500;
                           box-shadow:0 12px 32px -10px rgba(20,20,43,.4); font-variant-numeric:tabular-nums; }
.mc-bars > i:nth-child(-n+3):hover::after{ right:auto; left:0; }
/* ⓘ 口径提示默认向右展开（left:-6px、最宽 260）：最右一列那张卡会伸出内容面板、被面板的 overflow-x:clip 裁掉尾巴
   （1366 宽实测伸出 20 多像素），这一列改成向左展开。两列时右列是偶数张；一列时恢复向右（ⓘ 贴着卡片左边，向左会伸出去） */
.mc:nth-child(4n) .qtip:hover::after,.mc:nth-child(4n) .qtip:focus-visible::after{ left:auto; right:-6px; }
.mc-axis{ display:flex; justify-content:space-between; font-size:12px; line-height:20px; color:var(--text-3); }
.mc-foot{ margin-top:auto; padding-top:12px; border-top:1px solid var(--line-2); font-size:12px; line-height:20px; color:var(--text-3); }
.mc-foot b{ font-weight:500; color:var(--text-1); font-variant-numeric:tabular-nums; }
@container (max-width: 760px){
    .mc-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .mc + .mc{ border-left:0; }
    .mc:nth-child(even){ border-left:1px solid var(--line-2); }
    .mc:nth-child(n+3){ border-top:1px solid var(--line-2); }
    .mc:nth-child(even) .qtip:hover::after,.mc:nth-child(even) .qtip:focus-visible::after{ left:auto; right:-6px; }
}
@container (max-width: 380px){
    .mc-grid{ grid-template-columns:minmax(0, 1fr); }
    .mc:nth-child(even){ border-left:0; }
    .mc + .mc{ border-top:1px solid var(--line-2); }
    .mc:nth-child(even) .qtip:hover::after,.mc:nth-child(even) .qtip:focus-visible::after{ left:-6px; right:auto; }
    .mc-num{ font-size:26px; }
}

/* 空状态：统一「暂无 XX」+ 一句原因 + 一个操作 */
.empty-state{ display:flex; flex-direction:column; align-items:center; gap:8px; padding:36px 24px; text-align:center; }
.empty-state > .ibox{ width:40px; height:40px; border-radius:var(--r-card); color:var(--text-3); margin-bottom:4px; }
.empty-state > b{ font-size:14px; line-height:22px; font-weight:500; color:var(--text-1); }
.empty-state > p{ max-width:440px; font-size:14px; line-height:22px; color:var(--text-3); }
.empty-state > .btn{ margin-top:8px; }
td.empty .empty-state{ padding:20px 0; }
/* 横滚宽表（卡片 overflow-x:auto + 表 min-width 比卡片宽）的空态：居中在 1500px 宽的表里会跑到可视区外。
   卡片加 .is-wide（容器查询单位），空态框成「卡片可见宽度」并贴住左边，怎么横滚都在正中间。 */
.card.is-wide{ container-type:inline-size; }
.card.is-wide td.empty{ padding-left:0; padding-right:0; }
.card.is-wide td.empty .empty-state{ position:sticky; left:0; width:100cqw; }

/* 列表工具条：左边分段筛选，右边搜索 + 筛选下拉 + 图标按钮 */
.tbar{ display:flex; align-items:center; justify-content:space-between; gap:12px 16px; flex-wrap:wrap; margin-bottom:16px; }
.tbar-l,.tbar-r{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.tbar .tabs,.tbar .seg{ margin-bottom:0; }
/* 带图标的搜索框 */
.sinput{ position:relative; display:inline-flex; align-items:center; min-width:0; }
.sinput > .ic{ position:absolute; left:10px; color:var(--text-3); pointer-events:none; }
.sinput > input{ width:100%; padding-left:32px; }
/* 筛选下拉：外框 + 原生 select，展开仍走 partials/ui 的自绘弹层。
   ★ FSEL-0924 框里【不再】放「字段名」前缀（原来是「平台 全部」两段并排，老板要的是截图里那种）：
     value="" 那一项（= 全部 / 不筛）的文字就是字段名，排第一项；没筛时框里显示字段名、占位灰（见 select:has 那条），
     筛了就只显示选中的那一项。新加筛选下拉照这个写：<label class="fsel"><select …><option value="">平台</option>… */
.fsel{ position:relative; display:inline-flex; align-items:center; height:var(--ctl-h); padding-left:11px; max-width:100%;
       border:1px solid var(--line); border-radius:var(--r-ctl); background:var(--surface); box-shadow:var(--sh-xs);
       font-size:14px; line-height:22px; white-space:nowrap; transition:border-color var(--fast), box-shadow var(--fast); }
.fsel:hover{ border-color:var(--line-3); }
.fsel:focus-within{ border-color:var(--brand); box-shadow:var(--ring); }
.fsel > select,.fsel > select:hover,.fsel > select:focus{ height:calc(var(--ctl-h) - 2px); min-width:0; border:0; box-shadow:none;
       background-color:transparent; padding-left:0; padding-right:28px; background-position:right 8px center; }

/* 分段单选（表单里 2–4 个选项）：<div class="seg"><label><input type="radio" …><span>文字</span></label>…</div> */
.seg{ display:inline-flex; align-items:center; gap:2px; padding:2px; max-width:100%; flex-wrap:wrap;
      background:rgba(118,118,138,.1); border:1px solid rgba(20,20,43,.04); border-radius:var(--r-card); }
.seg > label{ position:relative; display:inline-flex; margin:0; cursor:pointer; font-size:14px; }
.seg > label > input{ position:absolute; width:1px; height:1px; margin:0; opacity:0; pointer-events:none; }
.seg > label > span{ display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 12px; border-radius:var(--r-ctl);
                     font-size:14px; font-weight:500; line-height:20px; color:var(--text-2); white-space:nowrap;
                     transition:background var(--fast), color var(--fast), box-shadow var(--fast); }
.seg > label:hover > span{ color:var(--text-1); }
.seg > label > input:checked + span{ background:var(--surface); color:var(--text-1);
                                     box-shadow:0 1px 2px rgba(20,20,43,.08), 0 2px 6px -2px rgba(20,20,43,.08), 0 0 0 1px rgba(20,20,43,.04); }
.seg > label > input:focus-visible + span{ box-shadow:var(--ring); }
.seg > label > input:disabled + span{ color:var(--text-off); cursor:not-allowed; }
.seg.is-block{ display:flex; }
.seg.is-block > label{ flex:1 1 0; }
.seg.is-block > label > span{ width:100%; justify-content:center; }

/* 开关：立即生效 / 是否这类二选一 */
.switch{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; font-size:14px; line-height:22px; color:var(--text-1); }
.switch input[type=checkbox]{
    -webkit-appearance:none; appearance:none; position:relative; flex:none; width:32px; height:18px; margin:0;
    border:0; border-radius:999px; background:var(--line-3); cursor:pointer; vertical-align:middle; transition:background var(--fast);
}
.switch input[type=checkbox]::before{ content:""; position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:999px;
                                      background:#fff; box-shadow:0 1px 2px rgba(23,23,28,.2); transition:transform var(--fast); }
.switch input[type=checkbox]:checked{ background:var(--brand-d); }
.switch input[type=checkbox]:checked::before{ transform:translateX(14px); }
.switch input[type=checkbox]:focus-visible{ outline:0; box-shadow:var(--ring); }
.switch input[type=checkbox]:disabled{ opacity:.5; cursor:not-allowed; }

/* 描述列表：详情页 / 详情抽屉的「字段名在上、值在下」 */
.dlist{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px 24px; }
.dlist > div{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.dlist > div.full{ grid-column:1 / -1; }
.dlist dt{ font-size:14px; line-height:22px; color:var(--text-3); }
.dlist dd{ font-size:14px; line-height:22px; color:var(--text-1); overflow-wrap:anywhere; }
.dlist dd.num{ font-variant-numeric:tabular-nums; }

/* 分组标题（表单、详情里的「基本信息」「分成设置」）：14/22 · 600 */
.grp-t{ display:flex; align-items:center; gap:8px; margin-bottom:12px; font-size:14px; line-height:22px; font-weight:600; color:var(--text-1); }
.grp-t small{ font-size:12px; line-height:20px; font-weight:400; color:var(--text-3); }

/* 抽屉：右侧滑出，宽 560（表单）/ 600（详情）；标题栏 56、标题 16；底部 64 高固定操作栏；遮罩 rgba(23,23,28,.36) */
/* 遮罩带一点虚化（GLASS-0924）：抽屉打开时后面的列表退到「磨砂玻璃」后面，注意力落在抽屉上。
   背后的页面在抽屉开着时不滚动（html.has-drawer 锁了滚动），虚化只算一次，不费性能。
   ⚠️ 遮罩第一次打开抽屉后就一直留在页面里：关着的时候必须 visibility:hidden（淡出完再藏），
      只靠 opacity:0 的话，一块铺满视口的 backdrop-filter 会一直挂着，每次滚动都可能被重算。 */
.drawer-mask{ position:fixed; inset:0; z-index:60; background:var(--mask); opacity:0; pointer-events:none; visibility:hidden;
              -webkit-backdrop-filter:blur(2px) saturate(120%); backdrop-filter:blur(2px) saturate(120%);
              transition:opacity .2s, visibility 0s linear .2s; }
.drawer-mask.is-open{ opacity:1; pointer-events:auto; visibility:visible; transition:opacity .2s, visibility 0s; }
.drawer{ position:fixed; top:0; right:0; bottom:0; z-index:61; width:560px; max-width:100vw;
         display:flex; flex-direction:column; background:var(--surface);
         border-radius:var(--r-panel) 0 0 var(--r-panel); box-shadow:var(--sh-drawer);
         transform:translateX(calc(100% + 32px)); visibility:hidden;
         transition:transform .26s var(--ease), visibility 0s linear .26s; }
.drawer.is-wide{ width:600px; }
.drawer.is-open{ transform:none; visibility:visible; transition:transform .26s var(--ease), visibility 0s; }
.drawer-h{ height:56px; flex:none; display:flex; align-items:center; gap:12px; padding:0 16px 0 24px; border-bottom:1px solid var(--line-2); }
.drawer-h h2{ flex:1; min-width:0; font-size:16px; line-height:24px; font-weight:600; color:var(--text-1);
              white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.drawer-b{ flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:20px 24px 24px; }
.drawer-f{ height:64px; flex:none; display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:0 24px;
           border-top:1px solid var(--line-2); background:var(--surface); }
.drawer-f .ml{ margin-left:0; margin-right:auto; }
.drawer-f-note{ margin-right:auto; display:inline-flex; align-items:baseline; font-size:12px; line-height:20px; color:var(--text-3); }
html.has-drawer{ overflow:hidden; }
/* 列表页里的抽屉壳：内容是一个同源 iframe（?embed=1 的原页面），layout 的 stDrawer 负责开合 */
.drawer{ overflow:hidden; }
.drawer > iframe{ flex:1; width:100%; height:100%; border:0; display:block; background:var(--surface); transition:opacity .15s; }
.drawer.is-loading > iframe{ opacity:0; }
.drawer.is-loading::after{ content:""; position:absolute; left:50%; top:50%; width:24px; height:24px; margin:-12px 0 0 -12px;
                           border-radius:50%; border:2px solid var(--line); border-top-color:var(--brand); animation:stSpin .8s linear infinite; }
@keyframes stSpin{ to{ transform:rotate(360deg); } }
/* 抽屉里的页面（embed 布局）：头 56 + 可滚动主体 + 底 64，整页不滚 */
html.is-embed,html.is-embed body{ height:100%; }
.dr-body{ background:var(--surface); overflow:hidden; scrollbar-gutter:auto; }
.dr{ height:100%; display:flex; flex-direction:column; }
.dr-tools{ display:flex; align-items:center; gap:4px; flex:none; }
.dr-tools .ad-dd{ position:relative; }

/* ---------- 表单分组：分组标题 14/22·600；组与组之间 20 + 细分割线；字段之间 16 ---------- */
.fsec{ display:flex; flex-direction:column; gap:16px; min-width:0; }
.fsec + .fsec{ margin-top:20px; padding-top:20px; border-top:1px solid var(--line-2); }
.fsec > h3{ font-size:14px; line-height:22px; font-weight:600; color:var(--text-1); }
.fsec > h3 small{ margin-left:8px; font-size:12px; line-height:20px; font-weight:400; color:var(--text-3); }
/* ★ GLASS-0924 整页表单（不在抽屉里）：每个分组一张白卡片，落在半透明面板上才分得出层次；
   抽屉里（html.is-embed）底下本来就是白的，仍是平铺分组 + 细分割线。:where 包一层，不改选择器权重。 */
:where(html:not(.is-embed)) .ad-content .fsec{
    background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--r-surface);
    box-shadow:var(--sh-sm); padding:24px;
}
:where(html:not(.is-embed)) .ad-content .fsec + .fsec{ margin-top:16px; padding-top:24px; border-top:1px solid var(--line-soft); }
.fgrid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; align-items:start; }
.fgrid.c3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.fgrid > .full{ grid-column:1 / -1; }
/* 字段：标签在上、与输入框间距 8；必填红色 * 在标签前（.req）；说明 12 号三级色在下面 */
.ff{ display:flex; flex-direction:column; gap:8px; min-width:0; }
.ff-l{ display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:22px; }
.ff-l > label,.ff-l > .lbl{ display:inline-flex; align-items:baseline; font-size:14px; line-height:22px; font-weight:400; color:var(--text-nav); }
.ff-l > .aside{ display:inline-flex; align-items:center; gap:6px; font-size:14px; line-height:22px; color:var(--text-2); }
.ff > input,.ff > select,.ff > textarea{ width:100%; }
.ff-h{ font-size:12px; line-height:20px; color:var(--text-3); overflow-wrap:anywhere; }
.ff-h b{ font-weight:600; color:var(--text-2); }
.ff-e{ display:flex; align-items:center; gap:4px; font-size:12px; line-height:20px; color:var(--bad-fg); }
/* 带前后缀的输入框：「¥ 0.00」「0 %」「📅 开始 → 结束」 */
.affix{ display:flex; align-items:center; gap:8px; height:var(--ctl-h); padding:0 11px; min-width:0;
        border:1px solid var(--line); border-radius:var(--r-ctl); background:var(--surface); box-shadow:var(--sh-xs);
        transition:border-color var(--fast), box-shadow var(--fast), background var(--fast); }
.affix:hover{ border-color:var(--line-3); }
.affix:focus-within{ border-color:var(--brand); box-shadow:var(--ring); }
.affix > span,.affix > .ic{ flex:none; font-size:14px; line-height:22px; color:var(--text-3); }
.affix > input,.affix > input:hover,.affix > input:focus,.affix > input[readonly],
.affix > input[data-st-date][readonly],.affix > input[data-st-date][readonly]:focus{
    flex:1; min-width:0; width:100%; height:calc(var(--ctl-h) - 2px); padding:0; border:0; border-radius:0;
    background:transparent; background-image:none; box-shadow:none; cursor:text; color:var(--text-1); font-variant-numeric:tabular-nums;
}
.affix > input[data-st-date]{ cursor:pointer; }
.affix > input:disabled,.affix > input[data-st-date]:disabled{ background:transparent; box-shadow:none; border:0; color:var(--text-off); cursor:not-allowed; }
.affix.is-off{ background:var(--surface-2); box-shadow:none; }
.affix.is-off > input{ color:var(--text-off); cursor:not-allowed; }

/* ---------- 详情：身份行 / 数字格 / 带边框的描述格 ---------- */
.idrow{ display:flex; align-items:center; gap:14px; min-width:0; }
.idrow > .ibox{ width:44px; height:44px; border-radius:var(--r-card); }
.idrow-t{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.idrow-n{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:18px; line-height:26px; font-weight:600; color:var(--text-1); }
.idrow-s{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:14px; line-height:22px; color:var(--text-3); }
.idrow-s > i{ width:1px; height:12px; background:var(--line); display:block; }
.nbox{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); background:var(--surface);
       border:1px solid var(--line-soft); border-radius:var(--r-surface); box-shadow:var(--sh-sm); }
.nbox > div{ display:flex; flex-direction:column; gap:4px; min-width:0; padding:16px 20px; }
.nbox > div + div{ border-left:1px solid var(--line-2); }
.nbox small{ font-size:12px; line-height:20px; color:var(--text-3); }
.nbox .nv{ display:inline-flex; align-items:baseline; gap:2px; min-height:30px; flex-wrap:wrap; font-size:24px; line-height:30px;
           font-weight:600; letter-spacing:-.02em; color:var(--text-1); white-space:nowrap; }
.nbox .nv .cur{ font-size:15px; line-height:1; font-weight:500; color:var(--text-2); }
.nbox .nv .u{ margin-left:2px; font-size:14px; font-weight:400; letter-spacing:0; color:var(--text-3); }
.nbox .nv .btn-link{ margin-left:8px; letter-spacing:0; }
.dbox{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); margin:0;
       border:1px solid var(--line); border-radius:var(--r-card); overflow:hidden; }
@supports (overflow: clip){ .dbox{ overflow:clip; } }
.dbox.c2{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
/* 格子分隔线画在每格右边和下边，最外一圈被外框裁掉 */
.dbox > div{ display:flex; flex-direction:column; gap:4px; min-width:0; padding:12px 16px;
             box-shadow:1px 0 0 var(--line-2), 0 1px 0 var(--line-2); }
.dbox > div.full{ grid-column:1 / -1; }
.dbox > div.span2{ grid-column:span 2; }
.dbox dt{ font-size:12px; line-height:20px; color:var(--text-3); }
.dbox dd{ display:flex; align-items:center; gap:6px 8px; flex-wrap:wrap; min-height:22px; margin:0;
          font-size:14px; line-height:22px; color:var(--text-1); overflow-wrap:anywhere; }
.dbox dd .muted{ color:var(--text-3); }

/* ---------- 小号表格（抽屉、详情里的明细） ---------- */
.tbl-sm thead th{ height:36px; font-size:12px; line-height:20px; position:static; }
.tbl-sm tbody td{ padding:8px 12px; font-size:14px; line-height:22px; }
.tbl-sm thead th:first-child,.tbl-sm tbody td:first-child{ padding-left:16px; }
.tbl-sm thead th:last-child,.tbl-sm tbody td:last-child{ padding-right:16px; }
.tbl-sm td.empty{ padding:20px 16px; }

/* ---------- 可排序表头（押金、余额…）：点一下升序、再点降序、再点恢复 ---------- */
th[data-sort]{ cursor:pointer; user-select:none; transition:color var(--fast); }
th[data-sort]:hover{ color:var(--text-1); }
.th-sort{ display:inline-flex; align-items:center; gap:2px; }
th.num .th-sort{ justify-content:flex-end; width:100%; }
.th-sort .ic{ color:var(--text-off); }
th[aria-sort="ascending"] .th-sort .ic,th[aria-sort="descending"] .th-sort .ic{ color:var(--brand-d); }

/* ---------- 列设置（表格右上角那个按钮弹出的勾选列表） ---------- */
.btn.btn-icon{ width:var(--ctl-h); padding:0; }
.btn.btn-icon .ic{ color:var(--text-2); }
.colpick{ width:220px; }
.colpick label{ display:flex; align-items:center; gap:8px; height:32px; padding:0 8px; border-radius:var(--r-ctl);
                font-size:14px; line-height:22px; color:var(--text-1); cursor:pointer; }
.colpick label:hover{ background:rgba(20,20,43,.055); }

/* ---------- 列表底部：共 N 条 + 翻页（partials/pager） ---------- */
.list-foot{ display:flex; align-items:center; justify-content:space-between; gap:8px 12px; flex-wrap:wrap; min-height:56px;
            padding:12px 20px 12px 24px; border-top:1px solid var(--line-2); font-size:14px; line-height:22px; color:var(--text-3); }
.list-foot b{ margin:0 4px; font-weight:500; color:var(--text-1); font-variant-numeric:tabular-nums; }
.pgr{ display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.pgr-b,.pgr-n{ display:inline-flex; align-items:center; justify-content:center; min-width:32px; height:32px; padding:0 8px;
               border:1px solid transparent; border-radius:var(--r-ctl); font-size:14px; color:var(--text-1);
               text-decoration:none; font-variant-numeric:tabular-nums; transition:background var(--fast), color var(--fast); }
.pgr-b{ color:var(--text-2); }
a.pgr-b:hover,a.pgr-n:hover{ background:var(--surface-3); color:var(--text-1); }
.pgr-b.is-off{ color:var(--line-3); cursor:default; }
.pgr-n.is-on{ border-color:var(--brand-d); background:var(--surface); color:var(--brand-d); font-weight:500; }
.pgr-gap{ min-width:24px; text-align:center; color:var(--text-3); }

/* 整页模式下（不在抽屉里）表单的底部操作条 */
.ad-pfoot{ display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap;
           margin-top:24px; padding-top:16px; border-top:1px solid var(--line-2); }

/* ================================================================
   自适应
   ================================================================ */
@media (max-width:1180px){
    .sheet-head,.sheet-foot{ padding-left:20px; padding-right:20px; }
    .sheet-body{ padding-left:20px; padding-right:20px; }
    .ad-content{ padding:28px 28px 40px; }
}
@media (max-width:1024px){
    .ad-content{ padding:24px 24px 32px; }
    .ad-search{ width:220px; }
}
@media (max-width:860px){
    :root{ --gap:0px; --frame-b:0px; }
    .ad-cap{ display:none; }
    /* 抽屉里【始终展开】，图标条那套在这里全部让位 */
    html.nav-mini{ --side-w:272px; }
    /* 抽屉档：侧栏本身就是白底抽屉（SIDEB-0924 与桌面的白面板一致；原来是毛玻璃），不再画 ::before 那块悬浮面板 */
    .ad-side{
        position:fixed; top:0; left:0; width:272px; background:var(--surface);
        transform:translateX(-100%); transition:transform .24s var(--ease); box-shadow:none;
    }
    .ad-side::before{ display:none; }
    html.nav-mini .ad-side{ padding:calc(var(--gap) + var(--frame-b)) 12px 12px; gap:4px; }
    html.nav-mini .ad-brand{ flex-direction:row; height:var(--bar-h); gap:8px; padding:0 2px 0 6px; }
    html.nav-mini .ad-mark{ width:36px; height:36px; border-radius:10px; }
    html.nav-mini .ad-nav{ gap:12px; }
    html.nav-mini .ad-name{ display:inline-flex; }
    html.nav-mini .ad-item .nm,
    html.nav-mini .ad-gt span{ display:block; }
    html.nav-mini .ad-tag{ display:inline-block; }
    html.nav-mini .ad-gt{ height:28px; padding:0 6px 4px 7px; align-items:flex-end; }
    html.nav-mini .ad-gt::after{ margin-bottom:10px; background:rgba(23,23,28,.08); }
    html.nav-mini .ad-item{ justify-content:flex-start; padding:0 8px 0 7px; }
    html.nav-mini .ad-badge{ position:static; min-width:20px; width:auto; height:18px; padding:0 6px; font-size:12px; box-shadow:none; }
    html.nav-mini .ad-badge.is-warn{ background:var(--warn-bg); }
    html.nav-mini .ad-badge.is-bad{ background:var(--bad-bg); }
    html.nav-mini .ad-badge:not(.is-warn):not(.is-bad){ background:var(--surface-3); }
    .ad-fold{ display:none; }
    .navtog:checked ~ .ad-app .ad-side{ transform:none; box-shadow:12px 0 32px rgba(23,23,28,.14); }
    .navtog:checked ~ .ad-app .ad-mask{ display:block; position:fixed; inset:0; z-index:35; background:var(--mask); }
    .ad-frame{ border-radius:0; box-shadow:none; border:0; }
    .ad-bar{ padding:0 12px 0 8px; gap:8px; border-radius:0; }
    .ad-menu{ display:inline-flex; }
    .ad-crumb .up,.ad-crumb .sep{ display:none; }
    .ad-search kbd{ display:none; }
    .ad-content{ padding:16px 16px calc(32px + var(--safe-b)); }
    .ad-phead{ margin-bottom:16px; }

    /* 宽表在小屏横滑。⚠️ 一旦 .card 变成滚动容器，sticky 表头就只相对卡片定位，所以同时退回 static。
       ⚠️ 只写 overflow-x:auto 是【没用】的：table 上有 width:100%，必须同时给表 width:max-content
          （TBLSCROLL-0902）；min-width 必须挂在【裸 table】上，页面自己的 table{min-width:1320px} 才压得住。
       ⚠️ 这几条（以及下面 ≤640 里的内容排版）都包了 :where(html:not(.is-embed))：抽屉里的页面是个 560 / 600 宽的
          iframe，媒体查询按 iframe 的宽度算，不排除的话抽屉里的表单一律被挤成一列（设计稿里是两三列）。
          用 :where 包一层是为了【不改选择器权重】—— 上面那条「裸 table 权重 (0,0,1)」的约定照旧成立。 */
    :where(html:not(.is-embed)) .card{ overflow-x:auto; }
    :where(html:not(.is-embed)) .card table{ width:max-content; }
    :where(html:not(.is-embed)) table{ min-width:100%; }
    :where(html:not(.is-embed)) thead th{ position:static; }
    :where(html:not(.is-embed)) td.empty{ text-align:left; padding-left:16px; }
    .panel,.form-card{ padding:16px; }
    .sheet-head{ padding:16px 16px 12px; gap:12px; }
    .sheet-body{ padding:16px; gap:16px; }
    .sheet-foot{ padding:12px 16px calc(12px + var(--safe-b)); }
    .cols{ gap:16px; }
}
@media (max-width:640px){
    .ad-me .nm,.ad-me .ic,.ad-vr{ display:none; }
    .ad-me{ padding:0 2px; }
    /* 搜索收成一个放大镜；点一下展开成铺满顶栏的输入框 */
    .ad-search{ width:32px; margin-right:0; padding:0; justify-content:center; background:transparent; border-color:transparent; }
    .ad-search > .ic{ color:var(--text-2); }
    .ad-search input{ flex:0 0 0; width:0; opacity:0; }
    .ad-search:focus-within{ position:absolute; left:8px; right:8px; top:12px; width:auto; z-index:5;
                             padding:0 5px 0 10px; justify-content:flex-start; background:var(--surface); border-color:var(--brand); }
    .ad-search:focus-within input{ flex:1; width:auto; opacity:1; }
    .ad-search:focus-within .ad-cmd{ left:-1px; right:-1px; width:auto; }
    .ad-bell,.ad-help{ position:fixed; top:calc(var(--bar-h) + 4px); left:8px; right:8px; width:auto; }
    :where(html:not(.is-embed)) .fgrid,:where(html:not(.is-embed)) .fgrid.c3,:where(html:not(.is-embed)) .dlist{ grid-template-columns:minmax(0, 1fr); }
    :where(html:not(.is-embed)) .nbox{ grid-template-columns:minmax(0, 1fr); }
    :where(html:not(.is-embed)) .nbox > div + div{ border-left:0; border-top:1px solid var(--line-2); }
    :where(html:not(.is-embed)) .dbox,:where(html:not(.is-embed)) .dbox.c2{ grid-template-columns:minmax(0, 1fr); }
    :where(html:not(.is-embed)) .dbox > div.span2{ grid-column:auto; }
    .tbar-r{ width:100%; }
    .tbar-r .sinput{ flex:1 1 100%; }
    .sheet{ border-radius:var(--r-card); }
    .sheet-head .ttl{ min-width:0; flex-basis:100%; order:2; }
    .sheet-head .head-acts{ order:1; margin-left:auto; }
    /* 长表单里随时能保存 */
    .sheet-foot{ position:sticky; bottom:0; z-index:6; box-shadow:0 -6px 18px -12px rgba(23,23,28,.4); }
    .sheet-foot .acts{ width:100%; margin-left:0; }
    .sheet-foot .acts .btn{ flex:1; }
    #toast{ left:16px; right:16px; transform:translateY(-8px); max-width:none; }
    #toast.on{ transform:translateY(0); }
}
/* 触屏：放大点击目标 */
@media (pointer:coarse){
    :root{ --ctl-h:40px; --ctl-h-sm:36px; }
    .ibtn{ width:36px; height:36px; }
}
@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{ transition-duration:.01ms !important; animation-duration:.01ms !important; }
}
/* ★ GLASS-0924 兜底：浏览器不支持毛玻璃时，玻璃层换成几乎不透明的白 —— 否则半透明底上会直接叠着下面的字。
   系统里关了「透明效果」的（prefers-reduced-transparency，目前只有部分浏览器报这个），整套换成实色。 */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
    :root{ --glass-bar:rgba(255,255,255,.96); --glass-pop:#FFFFFF; --glass-dark:rgba(23,23,28,.96); }
}
@media (prefers-reduced-transparency:reduce){
    :root{ --canvas:var(--bg); --glass-panel:#FFFFFF; --glass-bar:#FFFFFF; --glass-pop:#FFFFFF; --glass-dark:#17171C; }
}
@media print{
    .ad-app::before{ display:none !important; }
    .ad-side,.ad-bar,.ad-cap,.ad-mask,.sheet-foot,#toast,#nprog{ display:none !important; }
    body{ background:#fff; }
    .ad-app,.ad-main,.ad-frame,.ad-content{ display:block !important; padding:0 !important; border:0 !important; }
    .card,.sheet,.panel{ box-shadow:none !important; }
}

/* ================================================================
   ★★ MEDIATABS-1008 新媒体运营的两层页签（layout 在页头前面 include partials/mtabs；画哪些、哪一页算哪个在 AdminNav::TABS）
   原来侧栏「公众号运营」「社群运营」「宣传中心」三组 17 项，老板 10-08 嫌整个后台臃肿：合成侧栏一项「新媒体运营」，进去以后
   · 第一层是哪一块：17 号字（同区块标题）+ 18 的图标，没选中的灰字，选中的深色 + 橙色图标。
     ⚠️ 刻意不用 .tabs（灰底胶囊）：页面里的状态筛选就是 .tabs，两种长得一样就分不清哪个是换页、哪个是筛选。
   · 第二层是这一块里的功能：14 号字的下划线页签，选中的下面一条 2px 品牌橙；账号 / 设置 / 记录这类不常用的靠右（.ad-mt-sp 撑开）。
     选中项字重 600、别的 500：每个名字下面用 ::after 先按 600 占好宽度（data-t），切页时后面的页签不会因为加粗左右挪一两像素。
   · 切页时两层页签自己一层（view-transition-name: ad-mt），新旧两页的它在同一个位置，看起来纹丝不动、只换选中项，
     下面的内容照旧淡出淡入（NAVFX-0924）；从别的页面进来 / 走到别的页面时它跟内容一起淡入淡出。
     页面滚到看不见它了再跳走，admin.js 在 pageswap 里把名字摘掉（不然新页面里的它会从屏幕外面滑进来）。
   · 窄屏第二层横着滑（不换行、不出滚动条），partials/mtabs 里那段脚本先滑到选中的那个。
   ================================================================ */
.ad-mt{ margin:-4px 0 28px; view-transition-name:ad-mt; }
.ad-mt-ch{ display:flex; align-items:center; flex-wrap:wrap; gap:4px 28px; margin-bottom:6px; }
.ad-mt-ch a{
    position:relative; display:inline-flex; align-items:center; gap:8px; height:34px; flex:none;
    font-size:17px; line-height:26px; font-weight:600; color:var(--text-3); text-decoration:none; white-space:nowrap;
    border-radius:var(--r-ctl); outline:0; transition:color var(--fast);
}
.ad-mt-ch a .ic{ width:18px; height:18px; color:var(--text-off); transition:color var(--fast); }
.ad-mt-ch a:hover,.ad-mt-ch a:hover .ic{ color:var(--text-1); }
.ad-mt-ch a.on{ color:var(--text-1); }
.ad-mt-ch a.on .ic{ color:var(--brand); }
.ad-mt-ch a:focus-visible{ box-shadow:var(--ring); }
/* 别的那一块里有待办：名字右上角一个小圆点（数挂在那一块自己的页签上） */
.ad-mt-dot{ position:absolute; top:5px; right:-9px; width:6px; height:6px; border-radius:50%; background:var(--info-dot); }
.ad-mt-dot.is-warn{ background:var(--warn-dot); }
.ad-mt-dot.is-bad{ background:var(--bad-dot); }
.ad-mt-fn{
    position:relative; display:flex; align-items:stretch; gap:24px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none;
    /* 底下那条细线画成背景、不用 border：选中项的橙线压在它上面；横滑容器会把伸到 border 上的东西裁掉 */
    background:linear-gradient(var(--line-2), var(--line-2)) left bottom / 100% 1px no-repeat;
}
.ad-mt-fn::-webkit-scrollbar{ display:none; }
.ad-mt-fn a{
    position:relative; display:inline-flex; align-items:center; gap:6px; height:40px; flex:none;
    font-size:14px; line-height:22px; font-weight:500; color:var(--text-2); text-decoration:none; white-space:nowrap;
    outline:0; transition:color var(--fast);
}
.ad-mt-fn a:hover{ color:var(--text-1); }
.ad-mt-fn a.on{ color:var(--text-1); font-weight:600; }
.ad-mt-fn a.on::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2px; border-radius:2px 2px 0 0; background:var(--brand); }
.ad-mt-fn a:focus-visible .t{ border-radius:4px; box-shadow:var(--ring); }
.ad-mt-fn .t{ display:inline-flex; flex-direction:column; }
.ad-mt-fn .t::after{ content:attr(data-t); height:0; overflow:hidden; visibility:hidden; font-weight:600; pointer-events:none; user-select:none; }
.ad-mt-sp{ flex:1 0 0; }
::view-transition-group(ad-mt){ animation-duration:.16s; }
::view-transition-old(ad-mt):only-child{ animation:.1s cubic-bezier(.4,0,1,1) both navfx-out; }
::view-transition-new(ad-mt):only-child{ animation:.22s cubic-bezier(.2,.75,.3,1) .04s both navfx-in; }
@media (max-width:860px){
    .ad-mt{ margin:-2px 0 16px; }
    .ad-mt-ch{ gap:2px 22px; margin-bottom:2px; }
    .ad-mt-ch a{ font-size:16px; }
    /* 横滑那一排伸到屏幕两边（内容区左右各 16），滑到头时字不贴边 */
    .ad-mt-fn{ gap:20px; margin:0 -16px; padding:0 16px; }
}
@media print{
    .ad-mt{ display:none !important; }
}

/* ================================================================
   ★★ FEEDBACK-1008 提示怎么显示（老板 10-08 定的方案 C）：保存没过 → 跳到那一格、标红、原因写在格子下面；
   按钮被拦 → 弹窗；确认 → 后台自己的确认弹窗。判据和用法在 public/admin-assets/feedback.js 文件头。
   弹窗是挂 body 下的 <dialog>（showModal 进顶层，抽屉、遮罩都盖得住）；⚠️ 第一行 *{margin:0} 清掉了 dialog 的 margin:auto，这里自己写。
   ================================================================ */
.st-dlg{ width:min(480px, calc(100vw - 32px)); max-height:calc(100vh - 48px); margin:auto; padding:0; border:0;
         border-radius:var(--r-pop); background:var(--surface); color:var(--text-1); box-shadow:var(--sh-lg); overflow:auto; }
.st-dlg::backdrop{ background:rgba(15,15,25,.32); }
.st-dlg-in{ padding:22px 24px 20px; }
.st-dlg-h{ display:flex; align-items:flex-start; gap:10px; font-size:16px; line-height:24px; font-weight:600; color:var(--text-1); }
.st-dlg-h > b{ min-width:0; font-weight:600; overflow-wrap:anywhere; }
.st-dlg-ic{ width:24px; height:24px; border-radius:999px; display:grid; place-items:center; flex:none; }
.st-dlg-ic .ic{ width:16px; height:16px; stroke-width:2.25; }
.st-dlg-ic.is-bad{ background:var(--bad-bg); color:var(--bad-dot); }
.st-dlg-ic.is-warn{ background:var(--warn-bg); color:var(--warn-dot); }
.st-dlg-ic.is-ask{ background:var(--brand-weak); color:var(--brand); }
.st-dlg-b{ margin:10px 0 0 34px; font-size:14px; line-height:22px; color:var(--text-2); white-space:pre-line; overflow-wrap:anywhere; }
.st-dlg-b ul{ margin:0; padding-left:18px; white-space:normal; }
.st-dlg-b li + li{ margin-top:6px; }
.st-dlg-a{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:22px; }
@media (prefers-reduced-motion:no-preference){
    .st-dlg[open]{ animation:stDlgIn .16s cubic-bezier(.2,.75,.3,1); }
    .st-dlg[open]::backdrop{ animation:stDlgFade .16s ease-out; }
}
@keyframes stDlgIn{ from{ opacity:0; transform:translateY(6px) scale(.985); } to{ opacity:1; transform:none; } }
@keyframes stDlgFade{ from{ opacity:0; } to{ opacity:1; } }
@media (max-width:640px){
    .st-dlg-in{ padding:20px 18px 18px; }
    .st-dlg-b{ margin-left:0; }
}

/* 出错的格子：带前后缀的输入框、分段整块标红（普通 input / select / textarea 用上面「出错」那条 .is-err / aria-invalid）；
   原因写在格子下面，格子在多栏 .fgrid 里时写在那一整行下面（.st-fe-grp）；改过以后淡下去（.is-stale）。
   ⚠️ 要排在 .affix:hover / :focus-within 后面（同权重，后写的赢）—— 别把这一段挪到文件前面去。 */
.affix.is-err,.seg.is-err{ border-color:var(--bad-dot); box-shadow:var(--ring-bad); }
.st-fe{ display:flex; align-items:flex-start; gap:6px; margin-top:8px; padding:8px 12px; border-radius:var(--r-card);
        background:var(--bad-bg); color:var(--bad-fg); font-size:14px; line-height:22px; overflow-wrap:anywhere; }
.st-fe > .ic{ flex:none; margin-top:3px; }
.st-fe.is-stale{ background:transparent; color:var(--text-3); padding-left:0; padding-right:0; }
.st-fe-grp{ display:grid; gap:8px; margin-top:12px; }
.st-fe-grp > .st-fe{ margin-top:0; }
/* 顶上那条红框改成的一句汇总 */
.st-sum b{ font-weight:600; }
.st-sum .st-sum-go{ margin-left:8px; color:inherit; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
@media print{
    .st-dlg{ display:none !important; }
}

/* ★★ AIMODEL-1008 用 AI 的地方那一行「阿里云百炼 · qwen3.8-max」（<x-ai-model kind="…" />，数据在 App\Support\Ai\AiModels::line）。
   没配密钥时整行变成提醒色；超管多一个链到「系统配置 → AI 模型」的链接。 */
.ai-mdl{ display:inline-flex; align-items:center; gap:6px; min-width:0; max-width:100%; vertical-align:middle;
         font-size:12px; line-height:20px; color:var(--text-3); }
.ai-mdl > span{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ai-mdl > .ic{ flex:none; color:var(--brand); }
.ai-mdl.is-off,.ai-mdl.is-off > .ic{ color:var(--warn-fg); }
.ai-mdl > a{ flex:none; color:var(--brand-d); }
.ai-mdl > a:hover{ text-decoration:underline; text-underline-offset:3px; }

/* ================================================================
   ★★ KFNUDGE-1009 工单提醒弹窗（右上角、顶栏下面；脚本 public/admin-assets/kfnudge.js，数据 App\Support\Kf\Nudge）。
   z-index 30：盖得住页面内容（表头吸顶 2、表单底栏 6），但在滚动遮罩（31）、顶栏（32，它的通知 / 账号 / 搜索弹层要盖得住这一块）、
   窄屏侧栏抽屉的遮罩（35）、抽屉（60 / 61）、自绘下拉（9990）、问号说明（9995）、轻提示（9998）、确认弹窗（顶层）下面。
   实心白、不开毛玻璃：它起了 view-transition-name（上一页开着、这一页接着开时切页原地不动），
   带 backdrop-filter 的元素截过渡快照时不按圆角裁（VTCORNER-0924）。右边线和顶栏里账号菜单弹层的右边线对齐。
   ================================================================ */
.kfn{
    position:fixed; z-index:30; top:calc(var(--top-h) + 12px); right:calc(var(--gap) + var(--frame-b) + 20px);
    width:360px; max-width:calc(100vw - 32px);
    max-height:calc(100vh - var(--top-h) - 32px); max-height:calc(100dvh - var(--top-h) - 32px);
    display:flex; flex-direction:column;
    background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--r-pop); box-shadow:var(--sh-lg);
    view-transition-name:kf-nudge;
}
.kfn.is-in{ animation:kfnIn .26s var(--ease) both; }
.kfn.is-out{ opacity:0; transform:translateX(12px); transition:opacity .16s ease-in, transform .16s ease-in; pointer-events:none; }
@keyframes kfnIn{ from{ opacity:0; transform:translateX(20px); } to{ opacity:1; transform:none; } }
.kfn-h{ display:flex; align-items:flex-start; gap:12px; padding:16px 12px 12px 16px; flex:none; }
.kfn-ic{ width:32px; height:32px; border-radius:var(--r-ctl); flex:none; display:grid; place-items:center;
         background:var(--brand-weak); color:var(--brand); }
.kfn-ic.is-bad{ background:var(--bad-bg); color:var(--bad-dot); }
.kfn-ht{ flex:1; min-width:0; }
.kfn-ht b{ display:block; font-size:16px; line-height:24px; font-weight:600; color:var(--text-1); }
.kfn-ht p{ margin-top:2px; font-size:14px; line-height:22px; color:var(--text-3); overflow-wrap:anywhere; }
.kfn-ht p.is-bad{ color:var(--bad-fg); }
.kfn-x{ flex:none; margin:-2px -2px 0 0; }
.kfn-list{ list-style:none; margin:0; padding:4px 8px; border-top:1px solid var(--line-2); min-height:0;
           overflow-y:auto; overscroll-behavior:contain; }
.kfn-i{ display:block; padding:8px; border-radius:var(--r-ctl); color:inherit; text-decoration:none; }
.kfn-i:hover{ background:rgba(20,20,43,.045); color:inherit; }
.kfn-i:focus-visible{ outline:0; box-shadow:var(--ring); }
.kfn-it{ display:flex; align-items:center; gap:8px; }
.kfn-it b{ flex:1; min-width:0; font-size:14px; line-height:22px; font-weight:500; color:var(--text-1);
           overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kfn-it .tag{ flex:none; }
.kfn-im{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:2px; font-size:12px; line-height:20px;
         color:var(--text-3); font-variant-numeric:tabular-nums; }
.kfn-im.is-bad{ color:var(--bad-fg); }
.kfn-dot{ width:6px; height:6px; margin-left:4px; border-radius:999px; flex:none; background:var(--bad-dot); }
.kfn-more{ padding:0 16px 8px; font-size:12px; line-height:20px; color:var(--text-3); }
.kfn-f{ display:flex; justify-content:flex-end; gap:8px; padding:12px 16px 16px; border-top:1px solid var(--line-2); flex:none; }
@media (max-width:640px){
    .kfn{ top:calc(var(--top-h) + 8px); left:12px; right:12px; width:auto; max-width:none; }
}
@media print{
    .kfn{ display:none !important; }
}
