/* 暗场影院控制台 · 管理面板 v2.0.0-cinema1 · 零外部资源 */
:root{
  color-scheme:dark;
  --bg:#0b0c0e; --panel:#121316; --panel-2:#17191d; --panel-3:#1e2126;
  --txt:#f2f4f7; --sub:#c3c9d2; --dim:#8a8f98;
  --line:#23262c; --line-2:#34383f;
  --brand:#38bdf8; --brand-rgb:56,189,248; --brand-ink:#06202e;
  --brand-hover:#0ea5e9; --brand-pressed:#0284c7; --brand-text:#7dd3fc;
  --brand-surface:rgba(56,189,248,.16);
  --acc:var(--brand); --acc-ink:var(--brand-ink); --acc-text:var(--brand-text); --amb:var(--brand-rgb);
  --ok:#34d399; --ok-rgb:52,211,153; --ok-ink:#052e1f; --ok-bright:#4ade80;
  --err:#f87171; --warn:#fbbf24; --warn-text:#fde68a;
  --chip-bg:rgba(13,15,18,.82); --track:rgba(255,255,255,.09); --track-2:rgba(255,255,255,.16);
  --hover:rgba(255,255,255,.05); --hover-2:rgba(255,255,255,.09);
  --ease:cubic-bezier(.2,.8,.2,1);
  --sans:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  --mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  --glass-bg:rgba(15,17,21,.58); --glass-line:rgba(255,255,255,.10);
  --glass-shadow:0 12px 34px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.07);
  --scrim-bg:rgba(0,0,0,.48);
  --focus-ring:#7dd3fc;
  --topbar-h:56px;
  --hero-shade-1:rgba(5,6,9,.80); --hero-shade-2:rgba(5,6,9,.45); --hero-shade-3:rgba(5,6,9,.08);
}
/* 浅色 token：深色那套按 Linear 规则推导（Linear 本身无浅色规范，
   原文写明不做浅色页，故此处不是照抄 Linear，而是单点缀 + 阶梯 + 发丝线的
   同款结构换浅底）：--bg/--panel/--panel-2/--panel-3 中性灰阶；
   --txt/--sub/--dim 文字三级，--dim #52525b 在 bg/panel-2 上 ≥6.3:1；
   --brand/--acc 天蓝 #0369a1（用户定色，非 Linear 薰衣草）；--ok #047857；
   --err #b91c1c；--warn #b45309。字标杠 #c8ff4a 例外：与 logo 原图锁死，双主题同值。 */
html[data-theme="light"]{
  color-scheme:light;
  --bg:#eef1f3; --panel:#ffffff; --panel-2:#e5e9ec; --panel-3:#d8dee2;
  --txt:#14171c; --sub:#4b5563; --dim:#52525b;
  --line:#d2d7da; --line-2:#aeb4b8;
  --brand:#0369a1; --brand-rgb:3,105,161; --brand-ink:#ffffff;
  --brand-hover:#0284c7; --brand-pressed:#025d8a; --brand-text:#0369a1;
  --brand-surface:rgba(3,105,161,.08);
  --acc:var(--brand); --acc-ink:var(--brand-ink); --acc-text:var(--brand-text); --amb:var(--brand-rgb);
  --ok:#047857; --ok-rgb:4,120,87; --ok-ink:#ffffff; --ok-bright:#16a34a;
  --err:#b91c1c; --warn:#b45309; --warn-text:#b45309;
  --chip-bg:rgba(255,255,255,.86); --track:rgba(17,19,24,.18); --track-2:rgba(17,19,24,.26);
  --hover:rgba(17,19,24,.05); --hover-2:rgba(17,19,24,.09);
  --glass-bg:rgba(255,255,255,.68); --glass-line:rgba(17,19,24,.10);
  --glass-shadow:0 12px 34px rgba(17,19,24,.12), inset 0 1px 0 rgba(255,255,255,.7);
  --scrim-bg:rgba(0,0,0,.48);
  --focus-ring:#0369a1;
}
/* ---------- 浅色专属覆写（对齐公共页语言；夜间零影响） ---------- */
/* 选区：品牌色底 + 白字（原荧光绿是公共页语言，与面板单点缀冲突，已改） */
html[data-theme="light"] ::selection{ background:var(--brand); color:var(--brand-ink); }
/* Live Pill 呼吸光晕：走 --ok-rgb（原橄榄绿 85,118,0 是第三种绿，已改） */
html[data-theme="light"] .livepill .dot{ box-shadow:0 0 0 0 rgba(var(--ok-rgb),.40); animation:breathL 2.6s infinite; }
@keyframes breathL{ 0%{ box-shadow:0 0 0 0 rgba(var(--ok-rgb),.35);} 70%{ box-shadow:0 0 0 8px rgba(var(--ok-rgb),0);} 100%{ box-shadow:0 0 0 0 rgba(var(--ok-rgb),0);} }
html[data-theme="light"] .chain-wire-dot{ box-shadow:0 0 8px rgba(var(--ok-rgb),.4); }
html[data-theme="light"] .chain-box.hub{ border-color:rgba(10,10,10,.38); box-shadow:none; }
/* Hero 图上信息片的数值：片子压在深色照片上，双主题都用浅天蓝保读性
   （原荧光绿 #c8ff4a 是第二种点缀色，已改；仍属天蓝单色系） */
html[data-theme="light"] .chip:not(.plain) b{ color:#7dd3fc; }
/* ---------- 浅色专属覆写 ----------
   尺：浅色下凡是大面积上色的，一律墨黑或中性灰；品牌天蓝只保留给
   点（状态点/脉冲点）、细线（链路流动线/时间线脊/图表线）、文字级小面积
   （状态词/链接 hover/焦点环/灯片文字）。夜间零影响（本段全在 light 作用域）。
   注：旧称「去绿」已过时——现行浅色无橄榄绿/荧光绿，绿只剩语义 --ok。 */
/* 氛围晕染去绿去暖：页面顶光晕改中性灰，不再给整个底染色 */
html[data-theme="light"] .bg-tint{ background:radial-gradient(75% 46% at 50% -6%, rgba(110,118,124,.12), transparent 70%); }
/* Hero 底去绿：改中性面板色阶（有真图时被图盖住，无图时也不泛绿） */
html[data-theme="light"] .hero{ background:linear-gradient(120deg, var(--panel-3), var(--panel-2) 55%, var(--panel)); }
/* 海报/剧照占位是内容不是界面：深浅双主题同款深色渐变，不许退成浅灰板
   （见 .poster-wrap 注释；浅色下无海报行看起来像一块空灰——用户 2026-11-06 实测指出） */
html[data-theme="light"] .poster-wrap{ background:linear-gradient(140deg, rgba(var(--amb),.55), #101216); }
html[data-theme="light"] .sheet .sh-poster-wrap{ background:linear-gradient(140deg, rgba(var(--amb),.55), #101216); }
html[data-theme="light"] .sheet .sh-poster-wrap .poster-ph{ color:#c3c9d2; }
/* 开关打开态：整片橄榄 → 墨黑底 + 白钮（对齐公共页黑钮语言） */
html[data-theme="light"] .sw input:checked + .tr{ background:var(--brand); }
/* 设置子导航选中（1.0.90）：品牌浅底 + 品牌色标题，双主题都一眼能认 */
html[data-theme="light"] .set-item.on .si-t{ color:var(--acc-text); }
/* Dock 当前项：图标由橄榄改墨黑（选中底色本就是中性灰） */
html[data-theme="light"] .dock button.on svg{ color:var(--txt); }
/* Hero 状态标：整片橄榄底 → 墨黑底白字 */
html[data-theme="light"] .hero .live-tag{ background:var(--txt); }
/* 大面积数据色块改墨黑系：流量环 / 面积图填充 / 每日用量柱
   （额度进度条 1.0.79 改回天蓝，不再墨黑；每日用量柱浅色走 --txt，
   零日灰桩另有更高特异度规则兜底不被盖掉） */
html[data-theme="light"] .dbar{ fill:var(--brand); }
html[data-theme="light"] .dbar.zero{ fill:var(--track-2); }
html[data-theme="light"] .dbar.zero.sel{ fill:var(--brand-pressed); }
html[data-theme="light"] #ringFg{ stroke:var(--brand); }
html[data-theme="light"] #ringFg.warn{ stroke:var(--warn); }
html[data-theme="light"] #ringFg.err{ stroke:var(--err); }
html{ box-sizing:border-box; }
*,*::before,*::after{ box-sizing:inherit; }
body{
  margin:0; background:var(--bg); color:var(--txt);
  font-family:var(--sans); font-size:15px; line-height:1.55;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
  font-variant-numeric:tabular-nums;
}
.skip-link{
  position:fixed; left:16px; top:12px; z-index:120; padding:10px 14px;
  border-radius:10px; background:var(--panel); border:1px solid var(--line-2);
  color:var(--txt); font-weight:600; font-size:12px; min-height:44px;
  display:inline-flex; align-items:center;
  transform:translateY(-150%); opacity:0; pointer-events:none;
  transition:transform .18s var(--ease), opacity .18s var(--ease);
}
.skip-link:focus-visible{ transform:none; opacity:1; pointer-events:auto; }
h1,h2,h3,p,ul,ol,figure{ margin:0; padding:0; }
ul,ol{ list-style:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; padding:0; }
input,select,textarea{ font:inherit; color:var(--txt); }
img{ display:block; max-width:100%; }
a{ color:inherit; }
::selection{ background:rgba(var(--amb),.45); }
[hidden]{ display:none !important; }
.quiet{ color:var(--sub); font-size:13px; }
.hint{ color:var(--dim); font-size:12.5px; line-height:1.6; }
.form-error{ color:var(--err); font-size:13px; font-weight:600; margin:10px 0; }

/* ---------- 环境背景 ---------- */
.bg{ position:fixed; inset:0; z-index:-1; overflow:hidden; background:var(--bg); }
.bg-layer{
  position:absolute; inset:-12%;
  background-size:cover; background-position:center 30%;
  filter:blur(72px) saturate(155%) brightness(.5);
  opacity:0; transition:opacity 1.1s var(--ease);
}
.bg-layer.on{ opacity:.5; }
html[data-theme="light"] .bg-layer{ filter:blur(72px) saturate(135%) brightness(1.18); }
html[data-theme="light"] .bg-layer.on{ opacity:.3; }
.bg-tint{
  position:absolute; inset:0;
  background:radial-gradient(75% 46% at 50% -6%, rgba(var(--amb),.20), transparent 70%);
}
.bg-fade{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(7,8,10,.42) 0%, rgba(7,8,10,.72) 34%, var(--bg) 78%);
}
html[data-theme="light"] .bg-fade{
  background:linear-gradient(180deg, rgba(238,241,243,.22) 0%, rgba(238,241,243,.5) 34%, var(--bg) 78%);
}

/* ---------- 顶栏 / 玻璃 ---------- */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:40;
  min-height:calc(var(--topbar-h) + env(safe-area-inset-top));
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:env(safe-area-inset-top) max(16px, calc((100vw - 1140px)/2)) 0;
  background:var(--panel); border-bottom:1px solid var(--line);
  pointer-events:none;
}
.topbar > *{ pointer-events:auto; }
.glass{
  background:var(--glass-bg);
  -webkit-backdrop-filter:blur(22px) saturate(180%);
  backdrop-filter:blur(22px) saturate(180%);
  border:1px solid var(--glass-line);
  box-shadow:var(--glass-shadow);
}
/* 仅浅色模式 Dock：局部覆盖，不改全局 .glass / --glass-bg */
html[data-theme="light"] .dock.glass{
  background:rgba(255,255,255,.42);
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  backdrop-filter:blur(18px) saturate(180%);
  border:1px solid rgba(17,19,24,.14);
  box-shadow:0 12px 34px rgba(17,19,24,.16), inset 0 1px 0 rgba(255,255,255,.78), inset 0 -1px 0 rgba(17,19,24,.04);
}
.tb-left{ display:flex; align-items:center; gap:8px; min-width:0; }
.livepill{
  display:flex; align-items:center; gap:9px;
  height:44px; border-radius:999px; padding:0 15px 0 12px;
  font-size:13px; font-weight:600; letter-spacing:.01em; text-align:left;
  transition:transform .18s var(--ease);
  max-width:58vw;
}
.livepill:active{ transform:scale(.97); }
.livepill .dot{
  width:8px; height:8px; border-radius:50%; background:var(--ok); flex:none;
  box-shadow:0 0 0 0 rgba(61,220,151,.5); animation:breath 2.6s infinite;
}
.livepill.idle .dot, html[data-theme="light"] .livepill.idle .dot{ background:var(--dim); animation:none; box-shadow:none; }
.livepill .p-sub{ color:var(--sub); font-weight:500; white-space:nowrap; }
.livepill .p-chev{ color:var(--dim); font-size:11px; margin-left:2px; transition:transform .25s var(--ease); }
.livepill.open .p-chev{ transform:rotate(180deg); }
@keyframes breath{ 0%{ box-shadow:0 0 0 0 rgba(61,220,151,.45);} 70%{ box-shadow:0 0 0 8px rgba(61,220,151,0);} 100%{ box-shadow:0 0 0 0 rgba(61,220,151,0);} }
.top-actions{ display:flex; gap:8px; align-items:center; }
.cmdk-btn{
  display:flex; align-items:center; justify-content:center; gap:8px; border-radius:999px;
  min-width:44px; height:44px; padding:0 14px; font-size:13px; line-height:1; color:var(--sub); font-weight:500;
}
/* 主题切换：与公共页同款圆形半盘钮（frontend.css .theme-toggle 照抄，--ink 对应面板 --txt）——
   单钮点按在昼夜间翻转；盘面左半实心、右半描边环，夜间由 CSS 把盘面旋转 180° 呈右实左空，
   theme.js 在绘制前已定下 data-theme，首帧即正确朝向，不依赖 JS、无闪烁 */
.theme-toggle{
  display:grid; width:28px; height:28px; place-items:center; flex:none;
  position:relative;
  color:var(--txt); opacity:.62;
  transition:opacity .2s ease, transform .35s var(--ease);
}
/* 触点 44px：图形仍 28px，热区用 ::after 向外扩 8px（隐形，不改视觉） */
.theme-toggle::after{ content:""; position:absolute; inset:-8px; }
.theme-toggle svg{
  width:15px; height:15px; display:block;
  transition:transform .5s var(--ease);
}
.theme-toggle:hover{ opacity:1; transform:rotate(16deg); }
html[data-theme="dark"] .theme-toggle svg{ transform:rotate(180deg); }
html[data-theme="dark"] .theme-toggle:hover svg{ transform:rotate(200deg); }
.theme-toggle:focus-visible{ outline:2px solid var(--acc); outline-offset:2px; border-radius:50%; }
/* 保留 --acc 引用时值即 --brand，后续样式统一走 --brand* */
@media (prefers-reduced-motion: reduce){ .theme-toggle{ transition:none; } .theme-toggle svg{ transition:none; } }
.cmdk-btn svg{ display:block; flex:none; }
.cmdk-btn .cb-label{ display:none; }
@media (min-width:900px){ .cmdk-btn .cb-label{ display:inline; } .cmdk-btn kbd{ margin-left:2px; } }
/* 顶栏手机防溢出（≤759px）：胶囊按钮收紧横向内边距、半盘钮同公共页手机档 26px，
   Live Pill 弹性收缩、文字省略号截断，不再把搜索胶囊挤出右缘 */
@media (max-width:900px){
  .cmdk-btn{ padding:0 12px; }
  .cmdk-btn kbd{ display:none; }
  .theme-toggle{ width:28px; height:28px; }
  .top-actions{ flex:none; }
  .tb-left{ flex:1; min-width:0; }
  .livepill{ flex:none; }
  .topbar .acct-chip{ display:none; }
  html .pill-pop{ left:16px; }
  #pillText{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .livepill .p-sub{ min-width:0; overflow:hidden; text-overflow:ellipsis; }
}
@media (max-width:600px){
  .livepill .p-sub{ display:none; }
}
/* Live Pill 下拉（桌面：Pill 前边是 40px 账号圆钮 + 8px 间距，弹层左缘对到 Pill 左缘 64px；
   手机 ≤759px 顶栏无账号钮、Pill 回到最左，弹层左缘 16px，见下方媒体块） */
.pill-pop{
  position:fixed; z-index:41; top:calc(58px + env(safe-area-inset-top)); left:64px;
  width:min(92vw,372px); border-radius:22px; padding:10px;
  opacity:0; transform:translateY(-8px) scale(.98); transform-origin:16px 0;
  visibility:hidden; pointer-events:none;
  transition:opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
}
.pill-pop.open{ opacity:1; transform:none; pointer-events:auto; visibility:visible; transition:opacity .22s var(--ease), transform .22s var(--ease), visibility 0s; }
.pill-pop h3{
  font-size:11px; letter-spacing:.14em; color:var(--dim);
  font-family:var(--mono); font-weight:600; padding:6px 10px 8px;
  display:flex; justify-content:space-between; align-items:center; gap:10px;
}
.pill-pop h3 b{ color:var(--acc-text); font-weight:600; letter-spacing:.02em; font-family:var(--sans); font-size:12px; }
.pill-sess{
  display:flex; gap:11px; align-items:center; width:100%; text-align:left;
  padding:8px 10px; border-radius:14px; transition:background .15s;
}
.pill-sess:hover{ background:var(--hover); }
.pill-sess .ps-poster{ width:34px; height:50px; aspect-ratio:2/3; border-radius:7px; flex:none; }
.pill-sess .ps-main{ flex:1; min-width:0; }
.pill-sess .ps-t{ font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; }
.pill-sess .ps-m{ color:var(--sub); font-size:12px; font-family:var(--mono); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pill-all{
  display:block; width:100%; text-align:center; padding:10px; margin-top:4px;
  color:var(--sub); font-size:13px; font-weight:600; border-top:1px solid var(--line);
}
.pill-all:hover{ color:var(--txt); }
/* 账号钮：与 Live Pill 平级的独立组件（独立弹层 acct-pop，与会话弹层互斥）。
   形态 = 纯头像圆钮（不带账号名文字，账号名走 aria-label 与弹层）；
   落点按端分开：桌面在顶栏左簇最左（Live Pill 前边，40px 与顶栏同高同基线）；手机离开顶栏，
   做成 Dock 左端外侧的独立悬浮圆钮 .acct-fab（48px、自带玻璃底/边框/阴影，靠着 Dock 的「首页」一端，
   与 Dock 在 .dock-wrap 里并排居中 = 屏幕左下角，≤759px 才显示，不占 Dock 本体格子）。 */
.acct-chip{
  display:flex; align-items:center; justify-content:center; flex:none;
  width:44px; height:44px; border-radius:50%; padding:2px;
  transition:transform .18s var(--ease);
}
.acct-chip:active{ transform:scale(.94); }
.acct-chip .ac-ava{ width:100%; height:100%; border-radius:50%; object-fit:cover; flex:none; background:var(--panel-2); }
/* 默认头像（站点未设自定义头像）时 panel.js 给 .ac-ava 换上方形透明图标版并加此类：
   整图完整显示不裁切；自定义头像不带此类，保持圆形 cover 原样。 */
.acct-chip .ac-ava.ava-default{ object-fit:contain; background:transparent; }
/* 首页品牌横带（替代原待机框内 Logo）：宽版透明 Logo +
   「运行概览」标题组常驻于首页上部（顶栏之下、bento 之上），与播放状态无关。
   桌面：Logo 居左 200px、标题组紧随其后；手机：纵排，Logo 140px 在上、标题组在下。
   ① 羊图整图上移一档（桌面 12px / 手机 10px，
   transform 不占布局，带高与标题位置不变）；② 标题组上方加 BEAM 活字字标 +
   酸橙短杠——照公共页 lockup 原图比例新排（非贴图，避免两只羊）：字标用自托管
   subset 的 Archivo Black（仅 B/E/A/M 四字形，archivo-black-beam.woff2）；
   杠色 #c8ff4a 与双主题 lockup 实测同值、主题不变；杠宽高比 4.3:1（原图 43×10）、
   杠左缘距字标墨迹左缘 0.69em（= 原图宽占比 21.5%）。基线距行顶 0.83em
   （Archivo hhea ascent 878/descent −210、line-height 1 推得）。
   ③ 错位：桌面标题段（h2+副题）左移进 20px、手机 12px，字标左缘因此突出于
   标题左缘，绿杠正落在两段左缘之间的拐角附近。
   字标放大一档（桌面 28px、与
   27px 标题近齐平；手机 23px，同比例）；绿杠改下移留空——top 1.05em，与基线
   净空 0.216em（桌面 ≈6.0px / 手机 ≈5.0px），不再贴字母下缘。杠底因此越出字标
   行盒 0.20em，段下外边距同步加大（桌面 14px / 手机 12px）兜住杠与标题的间距
   （桌面 ≈8.4px / 手机 ≈7.4px）。杠 left 仍 .77em：字号放大后杠左缘相对标题
   左缘为桌面 +1.6px / 手机 +5.7px，仍在拐角 ±6px 内。羊图上移量不变。 */
@font-face{
  font-family:"Archivo Black";
  src:url("archivo-black-beam.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}
.home-head{ margin:6px 2px 20px; }
.home-head-eyebrow{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.home-head-logo{ display:block; width:48px; height:auto; flex:none; }
.hb-beam{ position:relative; display:inline-block; font-family:"Archivo Black",var(--sans); font-size:28px; line-height:1; letter-spacing:0; color:var(--txt); margin-bottom:0; }
.hb-beam-dash{ position:absolute; left:.77em; top:1.05em; width:.65em; height:.15em; background:#c8ff4a; border-radius:1px; }
.home-head h2{ font-size:24px; font-weight:650; letter-spacing:0; line-height:1.2; }
.home-head p{ color:var(--sub); font-size:13.5px; margin-top:3px; }
@media (max-width:759px){
  .home-head{ margin-bottom:16px; }
  .home-head-eyebrow{ margin-bottom:8px; }
  .home-head-logo{ width:40px; }
  .hb-beam{ font-size:23px; }
}
/* 手机独立头像圆钮：默认隐藏（桌面用顶栏钮）；≤759px 在 .dock-wrap 里以 Dock 外侧独立钮显示
   （尺寸/显示规则在 ≤759 媒体块的 .dock-wrap .acct-fab，玻璃面由 .glass 提供） */
.acct-fab{ display:none; }
/* 账号弹层：贴合内容的小卡（宽 ≤264px、高随内容）。
   纵向锚点只由 JS 打开时行内给定（向下=top、向上=bottom 且 top 显式 auto）——
   基础规则绝不能再写 top：21:25 实机事故就是基础 top 与行内 bottom 同时成立，
   fixed 弹层被上下拉满成近全屏大空卡。 */
.acct-pop{
  position:fixed; z-index:41; left:16px;
  width:min(calc(100vw - 24px),264px); border-radius:20px; padding:10px;
  opacity:0; transform:translateY(-8px) scale(.98); transform-origin:0 0;
  visibility:hidden; pointer-events:none;
  transition:opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
}
.acct-pop.up{ transform:translateY(8px) scale(.98); }
.acct-pop.open{ opacity:1; transform:none; pointer-events:auto; visibility:visible; transition:opacity .22s var(--ease), transform .22s var(--ease), visibility 0s; }
.acct-row{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding:4px 10px 10px; font-size:12.5px; color:var(--sub);
}
.acct-row b{ color:var(--txt); font-weight:600; font-family:var(--mono); font-size:12.5px; }
.acct-logout{
  display:block; width:100%; text-align:center; padding:10px; margin-top:2px;
  border-top:1px solid var(--line); color:var(--err); font-size:13px; font-weight:600;
}
.acct-logout:hover{ background:var(--hover); }

/* ---------- 舞台 / 视图 ---------- */
.stage{
  max-width:1140px; margin:0 auto;
  padding:calc(84px + env(safe-area-inset-top)) 16px calc(118px + env(safe-area-inset-bottom));
}
.view{ display:none; }
.view.on{ display:block; animation:viewIn .3s var(--ease); }
@keyframes viewIn{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:none;} }
.v-head{ margin:6px 2px 18px; }
.v-head h2{ font-size:24px; font-weight:650; letter-spacing:0; }
.v-head p{ color:var(--sub); font-size:13.5px; margin-top:3px; }
.v-head .vh-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap; }

/* ---------- Bento / 磁贴 ---------- */
.bento{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.tile{
  background:linear-gradient(180deg, var(--hover), transparent 40%), var(--panel);
  border:1px solid var(--line); border-radius:8px; padding:18px;
  grid-column:span 4; min-width:0;
}
@media (min-width:760px){
  .tile.s2{ grid-column:span 2; }
  .tile.s4{ grid-column:span 4; }
}
.tile .t-label,.t-label{
  font-family:var(--sans); font-size:14px; letter-spacing:0;
  color:var(--dim); font-weight:650; display:flex; align-items:center; gap:7px;
}
.t-label .dot{ width:6px; height:6px; border-radius:50%; background:var(--ok); display:inline-block; flex:none; }
.t-label .dot.warn{ background:var(--warn); } .t-label .dot.err{ background:var(--err); } .t-label .dot.off{ background:var(--dim); }
.big-num{ font-size:32px; font-weight:700; letter-spacing:-.02em; line-height:1.15; }
.big-num small{ font-size:14px; color:var(--sub); font-weight:500; letter-spacing:0; margin-left:4px; }
.big-num.sm{ font-size:24px; }
.quota-hero .big-num{ font-size:21px; font-weight:650; letter-spacing:0; }
.kv{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:5px 0; font-size:13.5px; width:100%; }
.kv span{ color:var(--sub); } .kv b{ font-weight:600; font-family:var(--mono); font-size:13px; text-align:right; word-break:break-all; }
.stat-flex{ display:flex; gap:26px; flex-wrap:wrap; margin:14px 0 8px; }
.stat-cell{ display:flex; flex-direction:column; gap:2px; }
.stat-cap{ color:var(--dim); font-size:12px; font-family:var(--mono); }
@media (max-width:420px){
  .stat-flex{
    gap:16px;
    flex-wrap:nowrap;
  }
  .stat-cell{
    flex:1 1 0;
    min-width:0;
  }
}
/* 海报 Hero */
.hero{
  position:relative; overflow:hidden; padding:0; border-radius:12px;
  height:360px; display:flex; align-items:flex-end;
  border:1px solid var(--line-2);
  background:linear-gradient(120deg, rgba(var(--amb),.35), var(--panel-3) 55%, var(--panel));
}
.hero-bg{ position:absolute; inset:0; background-size:cover; background-position:center 26%; transition:opacity .8s var(--ease); }
/* 横版位三层图：Backdrop 铺满 / 缺图时 Primary 模糊打底 + 居中完整显示 */
.wide-img{ position:absolute; inset:0; display:block; overflow:hidden; }
.wide-img img{ position:absolute; inset:0; width:100%; height:100%; }
.wide-img .wi-main{ object-fit:cover; object-position:center 26%; }
.wide-img .wi-blur{ object-fit:cover; opacity:0; filter:blur(26px) saturate(130%) brightness(.62); transform:scale(1.28); transition:opacity .4s; }
.wide-img .wi-fg{ object-fit:contain; padding:16px 0; box-sizing:border-box; display:none; filter:drop-shadow(0 14px 30px rgba(0,0,0,.45)); }
.wide-img.no-bd .wi-blur{ opacity:1; }
.wide-img.no-bd .wi-fg{ display:block; }
.wide-img .poster-ph{ position:absolute; inset:0; display:grid; place-items:center; color:var(--sub); font-family:var(--mono); font-size:11px; letter-spacing:.1em; }
/* 待机海报墙：与公共页同构的两行横向滚动墙。行高定格高（height:100%）、
   宽按 2:3、间距 10px；第一行左滚、第二行右滚，速度 26px/s、时长按
   轨道半宽换算；切后台暂停，减动效时停动画。Hero 高 360px 使格子与
   公共页单张海报同尺寸（164px，1.1.69 实测对齐）。 */
.poster-wall{ position:absolute; inset:0; display:flex; flex-direction:column; }
.pw-row{ flex:1 1 0; min-height:0; overflow:hidden; }
.pw-track{ display:flex; width:max-content; height:100%; animation:pw-scroll-l linear infinite; }
.pw-track.is-rev{ animation-name:pw-scroll-r; }
.pw-half{ display:flex; flex:none; gap:10px; height:100%; padding:5px 10px 5px 0; }
.pw-row:first-child .pw-half{ padding-top:10px; }
.pw-row:last-child .pw-half{ padding-bottom:10px; }
.pw-tile{ position:relative; display:block; height:100%; aspect-ratio:2/3; flex:none; overflow:hidden; border-radius:10px; background:linear-gradient(155deg, var(--panel-3), var(--panel-2)); }
.pw-tile img{ display:block; width:100%; height:100%; object-fit:cover; filter:saturate(.85) brightness(.93); transition:opacity .6s ease; }
@keyframes pw-scroll-l{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@keyframes pw-scroll-r{ from{ transform:translateX(-50%); } to{ transform:translateX(0); } }
#heroBg.is-paused .pw-track{ animation-play-state:paused; }
@media (prefers-reduced-motion: reduce){ .pw-track{ animation:none; } .pw-tile img{ transition:none; } }
.hero-idle-actions{ display:none; gap:10px; }
.hero-idle-actions.on{ display:flex; }
.hero-shade{
  position:absolute; inset:0;
  background:linear-gradient(93deg, var(--hero-shade-1) 26%, var(--hero-shade-2) 58%, var(--hero-shade-3) 100%),
             linear-gradient(0deg, var(--hero-shade-1) 0%, transparent 46%);
}
html[data-theme="light"] .hero-shade{
  background:linear-gradient(93deg, rgba(10,10,10,.72) 26%, rgba(10,10,10,.38) 58%, rgba(10,10,10,.06) 100%),
             linear-gradient(0deg, rgba(10,10,10,.64) 0%, transparent 46%);
}
.hero-in{ position:relative; padding:26px; width:100%; max-width:620px; color:#f4f5f7; }
.hero .live-tag{
  display:inline-flex; align-items:center; gap:7px; font-family:var(--mono);
  font-size:11px; letter-spacing:.16em; font-weight:700; color:var(--ok-ink);
  background:var(--ok); border-radius:999px; padding:4px 10px;
}
html[data-theme="light"] .hero .live-tag{ color:#fff; }
.hero .live-tag.idle{ background:rgba(255,255,255,.18); color:#fff; }
.hero h2{ font-size:clamp(28px,5.4vw,42px); font-weight:800; letter-spacing:-.02em; line-height:1.12; margin-top:13px; text-shadow:0 2px 22px rgba(0,0,0,.5); word-break:break-all; }
.chips{ display:flex; flex-wrap:wrap; gap:7px; margin-top:15px; }
.chip{
  font-family:var(--mono); font-size:11px; letter-spacing:.04em; color:rgba(255,255,255,.88);
  background:rgba(10,12,15,.5); border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  padding:4px 9px; border-radius:999px; white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis;
}
.chip b{ color:var(--acc); font-weight:600; }
.chip.plain{ background:var(--panel-2); border-color:var(--line); color:var(--sub); white-space:normal; }
.chip.plain b{ color:var(--txt); }
.hero-actions{ display:flex; gap:10px; margin-top:20px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px; border-radius:6px;
  padding:10px 16px; font-size:13.5px; font-weight:600;
  background:var(--panel-3); border:1px solid var(--line-2); color:var(--txt);
  transition:transform .15s var(--ease), background .15s, border-color .15s;
}
.btn:active{ transform:scale(.97); }
.btn.primary{ background:var(--acc); border-color:transparent; color:var(--acc-ink); }
.btn.primary:hover{ background:var(--brand-hover); }
/* .btn.primary 仍在兼容旧 --acc 变量，色值同 --brand */
.btn.ghost{ background:rgba(12,14,17,.45); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); color:#f4f5f7; border-color:rgba(255,255,255,.2); }
/* 危险按钮：实底红、白字，双主题都看得清。不用 var(--err) 做底——深色下它是
   浅红（#f87171），白字糊在上面读不出；固定中红 #dc2626 白字在深浅两端都够对比。 */
.btn.danger{ background:#dc2626; border-color:transparent; color:#fff; }
.btn.danger:hover{ background:#b91c1c; }
.btn.sm{ padding:7px 12px; font-size:12.5px; border-radius:6px; }
.btn:disabled{ opacity:.45; cursor:default; }

.pbar{ height:7px; border-radius:7px; background:var(--track); overflow:hidden; }
.pbar i{ display:block; height:100%; border-radius:7px; background:linear-gradient(90deg, rgb(var(--amb)), var(--acc)); transition:width .7s var(--ease); }
/* 观看记录条填充：块级 div + ticks 现算宽度，
   刻意不带 width transition，免得旧 <i> 构造的渲染疑团重演。 */
.pbar.warn i{ background:linear-gradient(90deg, var(--warn), var(--warn)); }
.pbar.err i{ background:var(--err); }

.sdot{ width:8px; height:8px; border-radius:50%; background:var(--ok); flex:none; display:inline-block; }
.sdot.warn{ background:var(--warn); } .sdot.err{ background:var(--err); } .sdot.off{ background:var(--dim); }
.svg-chart svg{ width:100%; height:auto; display:block; }
.chart-line{ fill:none; stroke:var(--acc); stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.chart-wrap .chart-line{ stroke-width:1.5; }
.chart-grid{ stroke:var(--line); stroke-width:1; opacity:.75; }
.chart-txt{ fill:var(--dim); font-family:var(--sans); font-size:10px; font-variant-numeric:tabular-nums; }
/* 每日用量紧凑小图：手机端 14 天数据装在两倍宽轨道里，视口只露 7 天，横滑看更早的日子；
   桌面端（≥900px，见下方媒体覆盖）一排全显 14 天、不横滑。柱高按当日用量线性成比例，
   点柱子在下方读数行看某天数值 */
.daily-head{ display:flex; align-items:center; justify-content:space-between; gap:10px 18px; flex-wrap:wrap; }
.daily-summary{ display:flex; align-items:baseline; gap:16px; flex-wrap:wrap; }
.daily-summary .ds{ display:flex; align-items:baseline; gap:5px; white-space:nowrap; }
.daily-summary .ds span{ font-size:11.5px; color:var(--dim); }
.daily-summary .ds b{ font-size:14px; font-weight:700; color:var(--txt); font-variant-numeric:tabular-nums; }
.daily-scroll{ overflow-x:auto; overflow-y:hidden; scrollbar-width:none; scroll-snap-type:x proximity; margin-top:12px; }
.daily-scroll::-webkit-scrollbar{ display:none; }
.daily-scroll.f-left{ -webkit-mask-image:linear-gradient(90deg, transparent, #000 36px); mask-image:linear-gradient(90deg, transparent, #000 36px); }
.daily-scroll.f-right{ -webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image:linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.daily-scroll.f-left.f-right{ -webkit-mask-image:linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image:linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.daily-svg{ display:block; width:200%; height:150px; }
.dbar{ fill:var(--acc); opacity:.72; }
.dbar.today{ opacity:1; }
.dbar.zero{ fill:var(--track-2); opacity:1; }
.ddot{ fill:var(--acc); }
/* 1.0.84：选中柱子加深——不用透明度（.72→1 肉眼看不出），改填 pressed 蓝
   （浅 #025d8a / 深 #0284c7，两主题都比常态柱深；.dbar-col.sel 前缀是为
   压过浅色下 html[data-theme="light"] .dbar 的高特异度规则）。 */
.dbar-col.sel .dbar{ fill:var(--brand-pressed); opacity:1; }
.dbar.zero.sel{ fill:var(--brand-pressed); }
.dbar-col.sel .dlabel{ fill:var(--brand-pressed); font-weight:800; }
.dlabel{ fill:var(--dim); font-size:9.5px; font-variant-numeric:tabular-nums; }
.dbar-col{ cursor:pointer; -webkit-tap-highlight-color:transparent; outline:none; }
/* 1.0.83：焦点框贴柱子不贴整列——旧 .dbar-col:focus-visible outline
   只在键盘时生效，鼠标点选后浏览器默认 5px 近黑环会套住整列；
   现在默认 outline:none，键盘焦点时只描 .dbar-focus（柱外扩 3px）。 */
.dbar-focus{ fill:none; stroke:transparent; stroke-width:2; pointer-events:none; }
.dbar-col:focus-visible .dbar-focus{ stroke:var(--acc); }
.daily-readout{ margin-top:11px; font-size:13.5px; color:var(--sub); font-variant-numeric:tabular-nums; }
.daily-readout b{ color:var(--txt); font-weight:700; }
/* 每日图桌面形态（全站桌面断点 ≥900px）：svg 回 100% 宽、14 根柱一排全显，
   容器不再横滑（用户点名桌面端滑不动）；手机端保持上方 200% svg + 横滑不变 */
@media (min-width:900px){
  /* W50：桌面清除规则的选择器须与遮罩规则同级并列——只写 .daily-scroll
     优先级 (0,1,0) 压不过 .f-left/(0,2,0) 与 .f-left.f-right/(0,3,0)，
     窄屏带遮罩再拉宽到桌面时遮罩残留。 */
  .daily-scroll, .daily-scroll.f-left, .daily-scroll.f-right, .daily-scroll.f-left.f-right{ overflow-x:visible; scroll-snap-type:none; -webkit-mask-image:none; mask-image:none; }
  .daily-svg{ width:100%; }
}

/* ---------- 底部 Dock ---------- */
/* 底部居中容器：承接原 Dock 的 fixed 定位，手机时左侧并排独立头像圆钮 .acct-fab
   （钮在 Dock 条外、靠着「首页」一端，两者作为一个整体居中）；桌面 fab 隐藏、只剩 Dock 本体 */
.dock-wrap{
  position:fixed; z-index:40; left:50%; transform:translateX(-50%);
  bottom:calc(14px + env(safe-area-inset-bottom));
  display:flex; align-items:center; gap:8px; max-width:97vw;
}
.dock{
  display:flex; align-items:center; gap:2px; padding:6px; border-radius:999px; max-width:94vw;
}
.dock button{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  min-width:48px; height:44px; padding:4px 6px; border-radius:999px;
  color:var(--sub); font-size:11px; font-weight:600; letter-spacing:0;
  transition:background .18s, color .18s;
}
.dock button svg{ width:21px; height:21px; }
.dock button.on{ background:var(--hover-2); color:var(--txt); }
.dock button.on svg{ color:var(--brand-text); }
.dock .dk-wide{ display:none; }
.dock .dk-more{ display:flex; }
@media (max-width:900px){
  .dock-wrap .acct-fab{ display:flex; width:48px; height:48px; min-width:48px; }
  .dock .dk-wide{ display:none; }
  .dock .dk-more{ display:flex; }
}
@media (min-width:900px){
  .dock button{ min-width:64px; height:auto; min-height:48px; padding:8px 12px 6px; font-size:11px; line-height:1.3; }
  .dock button svg{ flex:none; width:24px; height:24px; }
  .dock .dk-more{ display:none; }
  .dock .dk-wide{ display:flex; }
}

/* ---------- 播放页 ---------- */
.poster-wrap{
  width:74px; height:110px; aspect-ratio:2/3; border-radius:13px; flex:none; overflow:hidden; position:relative;
  /* 海报占位是内容不是界面：深浅双主题同款深色渐变（浅色下不许退成浅灰板，
     否则无海报行看起来像一块空灰——用户 2026-11-06 实测指出）。 */
  background:linear-gradient(140deg, rgba(var(--amb),.55), #101216);
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}
.poster-wrap img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.poster-wrap .poster-ph{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#c3c9d2;
  font-family:var(--mono); font-size:10px; letter-spacing:.1em; text-align:center; padding:6px;
}
.sess-main{ flex:1; min-width:0; }
.sess-top{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.sess-top h3{ font-size:16px; font-weight:700; letter-spacing:0; word-break:break-all; }
.sess-top .ep2{ color:var(--sub); font-size:12.5px; font-family:var(--mono); word-break:break-all; }
.play-row .pr-ep{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* 播放回放行 */
.play-row{ display:flex; align-items:center; gap:14px; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin-bottom:10px; min-width:0; }
.play-row:hover{ border-color:var(--line-2); }
.pr-poster{ width:48px; aspect-ratio:2/3; border-radius:8px; overflow:hidden; position:relative; flex:none; background:linear-gradient(140deg, rgba(var(--amb),.55), #101216); }
.pr-poster img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.pr-poster .poster-ph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#c3c9d2; font-family:var(--mono); font-size:12px; letter-spacing:.1em; }
.play-row .sess-main{ flex:1 1 auto; min-width:0; }
.play-row .sess-top h3{ font-size:15px; font-weight:650; }
.play-row .sess-meta-line{ margin-top:6px; }
.pr-status{ display:flex; align-items:center; gap:6px; flex:none; margin-left:auto; font-family:var(--mono); font-size:12px; color:var(--ok); }
.pr-status.paused{ color:var(--warn-text); }
.pr-dot{ width:7px; height:7px; border-radius:50%; background:var(--ok); flex:none; }
.pr-status.paused .pr-dot{ background:var(--warn); }
.pr-down{ color:var(--sub); font-family:var(--mono); }
.pr-actions{ display:flex; gap:8px; flex:none; }
.play-row .btn.sm{ position:relative; min-height:32px; padding:6px 12px; border-radius:8px; }
.play-row .btn.sm::before{ content:""; position:absolute; inset:-6px; border-radius:12px; }
.live-strip{ display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 18px; margin:2px 2px 18px; }
.live-strip .ls-main{ flex:0 0 auto; display:flex; align-items:baseline; gap:8px; }
.live-strip .ls-main b{ font-size:24px; font-weight:650; }
.live-strip .ls-main span{ font-family:var(--mono); font-size:12px; letter-spacing:.13em; color:var(--dim); }
.live-strip .ls-kv{ display:flex; align-items:baseline; gap:6px; font-family:var(--mono); font-size:13px; color:var(--sub); }
.live-strip .ls-kv b{ color:var(--txt); font-weight:600; }
.live-strip .ls-upd{ margin-left:auto; font-family:var(--mono); font-size:12px; color:var(--dim); }
/* 1.0.73：只有 1 个会话时统计行就是下面卡片的复述，只留“更新于”。 */
.live-strip.single .ls-main, .live-strip.single .ls-kv{ display:none; }
.live-eq{ display:inline-flex; gap:2.5px; align-items:flex-end; height:12px; margin-left:auto; }
.live-eq i{ width:3px; background:var(--ok); border-radius:2px; animation:eq 1s infinite ease-in-out; transform-origin:bottom; }
.live-eq i:nth-child(1){ height:6px; } .live-eq i:nth-child(2){ height:11px; animation-delay:.18s; }
.live-eq i:nth-child(3){ height:8px; animation-delay:.36s; } .live-eq i:nth-child(4){ height:12px; animation-delay:.1s; }
/* 1.1.23：桌面在播大卡（方案 B）。只在桌面渲染的行（.play-big）上生效；
   手机仍走紧凑 .play-row，结构与样式一律不动。 */
.play-big{ display:flex; align-items:stretch; gap:18px; background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:18px; margin-bottom:10px; min-width:0; }
.play-big:hover{ border-color:var(--line-2); }
.pr-big-poster{ width:104px; height:156px; border-radius:12px; overflow:hidden; position:relative; flex:none; background:linear-gradient(140deg, rgba(var(--amb),.55), #101216); }
.pr-big-poster img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.pr-big-poster .poster-ph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#c3c9d2; font-family:var(--mono); font-size:12px; letter-spacing:.1em; }
.pr-big-main{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.pr-big-top{ display:flex; align-items:baseline; gap:8px; min-width:0; }
.pr-big-title{ font-size:18px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pr-big-ep{ flex:none; font-size:11px; border:1px solid var(--line-2); border-radius:6px; padding:2px 6px; color:var(--sub); font-weight:400; }
.pr-big-ep:empty{ display:none; }
.pr-big-rate{ display:flex; align-items:baseline; gap:6px; margin-top:10px; font-family:var(--mono); font-size:26px; font-weight:700; color:rgb(var(--amb)); }
.pr-big-rate small{ font-size:13px; color:var(--dim); font-weight:400; }
.pr-big-rate .live-eq{ margin-left:6px; }
.pr-big-chips{ display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; }
.pr-big-chip{ font-size:12px; border:1px solid var(--line-2); border-radius:999px; padding:3px 10px; color:var(--sub); white-space:nowrap; }
.pr-big-chip.live{ border-color:rgba(var(--amb),.55); color:var(--brand-text); }
.pr-big-sub{ font-size:12.5px; color:var(--sub); margin-top:9px; }
.pr-big-track{ height:4px; border-radius:2px; background:var(--line); margin-top:13px; overflow:hidden; }
.pr-big-track[hidden]{ display:none; }
.pr-big-fill{ display:block; height:100%; background:rgb(var(--amb)); border-radius:2px; }
.pr-big-stats{ border-top:1px solid var(--line); margin-top:14px; padding-top:12px; font-family:var(--mono); font-size:12px; color:var(--sub); display:flex; gap:6px 18px; flex-wrap:wrap; }
.pr-big-stats b{ color:var(--txt); font-weight:600; }
.pr-big-actions{ flex:none; display:flex; flex-direction:column; gap:8px; }
.pr-big-actions .btn.sm{ min-height:32px; padding:6px 12px; border-radius:8px; }
/* 1.1.23：桌面在播时统计行并进大卡底部，单独的 .live-strip 只在桌面隐藏；
   闲时与手机一律照旧。 */
@media (min-width:760px){
  .view[data-view="play"].play-active .live-strip{ display:none; }
}
@keyframes eq{ 0%,100%{ transform:scaleY(.45);} 50%{ transform:scaleY(1);} }
.sess-meta-line{ display:block; color:var(--sub); font-size:12.5px; line-height:1.75; margin-top:10px; }
/* 元信息行分段不断词：每段 nowrap，换行只发生在段间分隔符处；
   分隔符 trailing 归属前一段，故规则放宽到全部 .sess-seg（含详情 sheet）。 */
.sess-seg{
  white-space:nowrap;
  display:inline-block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:bottom;
}
.sess-actions{ display:flex; gap:8px; margin-top:14px; }
.sec-title{ font-size:14px; font-weight:650; letter-spacing:0; margin:26px 2px 12px; display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.recent-row{
  display:flex; gap:13px; align-items:center; padding:11px 14px;
  background:var(--panel); border:1px solid var(--line); border-radius:12px; margin-bottom:9px; width:100%; text-align:left;
}
.recent-row:hover{ border-color:var(--line-2); }
.recent-row .rt{ font-weight:600; font-size:14px; display:block; word-break:break-all; }
.recent-row .rm{ color:var(--sub); font-size:12px; font-family:var(--mono); word-break:break-all; }
.recent-row .rd{ margin-left:auto; text-align:right; font-family:var(--mono); font-size:12px; color:var(--dim); flex:none; }

/* ---------- 节点页 · 链路图 ---------- */
.chain{
  position:relative;
  background:linear-gradient(180deg, var(--hover), transparent 40%), var(--panel);
  border:1px solid var(--line); border-radius:22px; padding:10px 20px 20px; margin-bottom:16px; overflow:hidden;
}
/* 链路卡背景填充层：细点阵 + 网关 hub 处柔和辉光，独立层压内容下层、
   不拦截操作、不抢文字可读性；浅色底同步收淡。 */
.chain::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    radial-gradient(460px 280px at 42% 50%, rgba(var(--amb),.13), transparent 70%),
    radial-gradient(rgba(var(--amb),.12) 1px, transparent 1.4px);
  background-size:auto, 24px 24px;
}
.chain > *{ position:relative; z-index:1; }
html[data-theme="light"] .chain::before{
  background-image:
    radial-gradient(460px 280px at 42% 50%, rgba(var(--amb),.07), transparent 70%),
    radial-gradient(rgba(var(--amb),.07) 1px, transparent 1.4px);
  background-size:auto, 24px 24px;
}
.chain-box{
  flex:none; text-align:center; padding:8px 10px; border-radius:13px;
  background:var(--panel-2); border:1px solid var(--line-2); min-width:96px;
}
.chain-box .cb-t{ font-weight:700; font-size:13px; }
.chain-box .cb-m{ font-family:var(--mono); font-size:10px; color:var(--dim); margin-top:2px; letter-spacing:.06em; }
.chain-box.hub{ border-color:rgba(var(--amb),.5); box-shadow:0 0 24px rgba(var(--amb),.13); }
/* 网格链路（1.1.1）：左栏（播放器 / 网关 / 实时数据，三块竖排占满高度）+
   右侧节点网格（2 列 ≤8 节点、3 列 ≥9 节点）；连线由 SVG 覆盖层画直角布线
   （主干 → 每列 spine → bus → 每节点 stub），无斜线、不交叉。 */
.chain-grid{ position:relative; display:grid; grid-template-columns:200px minmax(0,1fr); gap:16px; margin-top:8px; }
.chain-col{ position:relative; z-index:1; display:flex; flex-direction:column; gap:0; min-width:0; }
.chain-col .chain-box{ flex:1 1 auto; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:52px; }
/* 实时数据：三数横排（实时速率 / 活跃连接 / 24h 请求），与播放器/网关同盒语言 */
.chain-col .chain-stats{ flex-direction:row; align-items:stretch; justify-content:space-around; gap:4px; padding:8px 6px; }
.chain-stat{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-width:0; }
.chain-stat b{ font-family:var(--mono); font-size:11px; font-weight:700; white-space:nowrap; }
.chain-stat span{ font-size:10px; color:var(--dim); white-space:nowrap; }
/* 左栏竖线（1.1.2 补回、1.1.3 加高）：三盒之间的连接段，44px 高、竖线居中；上段挂流量 pill、
   在播时竖线流动（与横向 flow 同语言，只是竖着走）。间距由连接段本身提供，
   .chain-col 的 gap 为 0。44px 是为 pill 留出上下各约 10px 呼吸（1.1.2 的 28px 只剩 2~3px，太挤）。 */
.chain-link{ flex:none; height:44px; position:relative; }
.chain-link::before{
  content:""; position:absolute; left:50%; top:0; bottom:0; width:2px; margin-left:-1px;
  background:var(--track-2); border-radius:2px;
}
.chain-link.live::after{
  content:""; position:absolute; left:50%; top:0; bottom:0; width:2px; margin-left:-1px;
  border-radius:2px;
  background-image:linear-gradient(180deg, rgb(var(--amb)) 0 55%, transparent 55% 100%);
  background-size:100% 14px; animation:chainLinkFlow 1.2s linear infinite;
}
@keyframes chainLinkFlow{ from{ background-position:0 0; } to{ background-position:0 14px; } }
/* 横向流动（1.1.8 手机左栏段）：与 chainLinkFlow 同语言，只是横着走。 */
@keyframes chainLinkFlowH{ from{ background-position:0 0; } to{ background-position:14px 0; } }
.chain-link-pill{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:1;
  display:inline-flex; align-items:center; white-space:nowrap;
  font-family:var(--mono); font-size:11px; font-weight:600; color:var(--sub);
  background:var(--panel); border:1px solid var(--line-2); border-radius:999px; padding:3px 10px;
}
.chain-link.live .chain-link-pill{ color:var(--ok); }
/* 连线覆盖层：absolute 盖满 .chain-grid，不拦截点按；静态段暗灰，
   在播路由天蓝虚线流动，行进光点沿路走。
   层叠（1.1.10）：桌面布线 z-index:0 在左栏/节点（z-index:1）之下——
   线从行后穿过、只露圆点；手机布线 z-index:2 在芯片之上——
   stub 横穿芯片底直达图标中心。SVG 本身也在 .chain-grid 末尾（DOM 在后），
   与 z-index 双保险：用户真机上 z-index:2 单独用时芯片仍盖住 stub。 */
.chain-wire{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; overflow:visible; }
.chain-wire-seg{ stroke:var(--track-2); stroke-width:2; fill:none; }
/* 1.1.4：1.1.1 的虚线太稀看不见（2px 段 + 8px 空，在点阵底上几乎隐形）——
   改成 6px 段 + 6px 空、线加粗到 2.5、辉光加重、流动提速到 0.6s/周（20px/s），
   静帧里也能一眼看见流动路由。dash 偏移是按 px 走的图案平移，与路由长短无关，
   本身没有「远的跑得快」的问题，不用再按路长换算。 */
.chain-wire-live{
  stroke:rgb(var(--amb)); stroke-width:2.5; fill:none; stroke-linecap:round;
  stroke-dasharray:6 6; animation:wireFlow .6s linear infinite;
  filter:drop-shadow(0 0 6px rgba(var(--amb),.65));
}
@keyframes wireFlow{ from{ stroke-dashoffset:0; } to{ stroke-dashoffset:-12; } }
/* 行进光点：HTML 元素，offset-path 沿在播路由走，速度由 JS 写在 .chain 上的 --dot-dur；
   动画只改 offset-distance 与透明度，换路线时位置按百分比续接、不跳变。 */
.chain-wire-dot{
  position:absolute; left:0; top:0; width:9px; height:9px;
  border-radius:50%; background:var(--ok); box-shadow:0 0 10px rgba(var(--ok-rgb),.65);
  pointer-events:none; z-index:1; opacity:0; offset-rotate:0deg;
  animation:wireDotMove var(--dot-dur,3.2s) linear infinite;
}
@keyframes wireDotMove{ 0%{ offset-distance:0%; opacity:0; } 10%{ opacity:1; } 90%{ opacity:1; } 100%{ offset-distance:100%; opacity:0; } }
/* 页面切后台：链路卡内全部动画暂停 */
.chain.paused .b-pulse, .chain.paused .chain-wire-dot, .chain.paused .chain-wire-live{ animation-play-state:paused; }
.chain.paused .chain-box.hub{ animation-play-state:paused; }
.chain.paused .hbranch.live .chain-avatar-wrap::after{ animation-play-state:paused; }
.chain.paused .hbranch.live .chain-avatar-wrap::before{ animation-play-state:paused; }
/* 通路点亮：空闲态整条链降暗，网关 hub 极缓呼吸辉光（4s 一周、幅度小）；
   文案与延迟数字本身不变，只降透明度。 */
.chain.idle .chain-box{ opacity:.82; }
.chain.idle .chain-box.hub{ opacity:1; animation:hubBreathe 4s ease-in-out infinite; }
@keyframes hubBreathe{ 0%,100%{ box-shadow:0 0 18px rgba(var(--amb),.10); } 50%{ box-shadow:0 0 30px rgba(var(--amb),.26); } }
/* 播放态点亮：hub 辉光加强；在播支线自带 .live（脉冲、徽章、速率），其余分支不另降暗。
   1.1.4：hub 在播时加呼吸脉冲——默认上游会话没有支线可点，网关是唯一看得见的活物，
   脉冲让「正在播」一眼能看出来（不只靠竖线那 2px 细流）。 */
.chain.live .chain-box.hub{ box-shadow:0 0 32px rgba(var(--amb),.28); animation:hubLivePulse 2s ease-in-out infinite; }
@keyframes hubLivePulse{ 0%,100%{ box-shadow:0 0 28px rgba(var(--amb),.22); } 50%{ box-shadow:0 0 46px rgba(var(--amb),.42); } }
.chain-nodes{ position:relative; z-index:1; display:flex; flex-direction:column; min-width:0; padding-left:44px; }
.chain-nodes.is-empty{ padding-left:0; }
/* 分支网格：2 列（≤8 节点）/ 3 列（≥9 节点），列间距留出 spine 走线；行贴满
   左栏高——space-between：首行贴顶与播放器盒齐平、末行贴底，余量只分到行间。
   1.1.59：space-evenly 会把左栏多余高度分一份到首行上方，节点少时顶上留白大
   （6 节点时首行比播放器盒低 22px）；布线 bus y 按实测行距算，不受影响。 */
.chain-branch-list{ flex:1 1 auto; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); column-gap:44px; row-gap:10px; align-content:space-between; min-height:0; }
#chainBranchList[data-cols="3"]{ grid-template-columns:repeat(3, minmax(0,1fr)); }
/* 1.1.61（纠正 1.1.60 的错）：只抬节点，不动左栏。1.1.60 把整张网格往上抬
   （卡片上内边距 10→1px、网格上外边距 8→1px），播放器/网关/实时数据三盒
   跟着上移，用户点名纠正：“我让你抬图标，你把播放器的框往上抬干啥，
   播放器这些框不同动，节点往上抬”。现左栏两处改回 1.1.59 的值（卡片上内边
   距 10px、网格上外边距 8px，播放器盒顶回 40.7px）；只给分支列表一个桌面端
   负上外边距 -21px——分支列表是左栏外独立的 flex 子项，负边距只把它往上
   推 21px（首行图标贴到用户红线处：标题正下方、播放器盒顶上方约 21px），
   末行仍贴底、左栏一动不动。负边距是布局位移（不是 transform），布线
   chainGridGeom 用 offset 实测行位，会跟着新位置画。只限桌面（min-width
   760px）：手机端分支在左栏下方另起一行，负边距会吃掉列间距、顶上左栏。 */
@media (min-width:760px){
  .chain-branch-list{ margin-top:-21px; }
}
/* 1.1.62：播放器/网关两盒收小。用户点名（2026-11-11 22:05）：“这两个框可以
   小一些，就几个字本身就不需要太大”。1.1.61 时两盒都是 200×58（列宽 200、
   拉伸 flex:1 1 auto、内边距 8px、最小高 52px），而字只有约 50px 宽、约 38px
   高。只改这两盒（不含实时数据盒）：去拉伸贴内容高、贴内容宽、列内居中；
   字号不动（标题 13px、副行 10px）。
   纵向补偿：两盒各矮约 8px，盒顶要钉死不动（播放器顶 40.7px、网关顶
   142.7px），所以两段连接线各加长同样数值（44→52px），实时数据盒顶/高、
   pill 位置都跟着不动。pill 原来在连接线里垂直居中，线加长后会往上飘
   约 4px，改成贴线底（中心离网关顶 22px，与 1.1.61 同位）。只限桌面：
   手机端左栏是三列横排、连接线横着走，改动会顶坏手机布局。 */
@media (min-width:760px){
  .chain-col > .chain-box:not(.chain-stats){
    flex:none;
    min-height:0;
    min-width:0;
    width:max-content;
    align-self:center;
    padding:5px 12px;
  }
  #chainLinkPlayer{ height:52px; }
  #chainLinkStats{ height:52px; }
  #chainLinkPlayer .chain-link-pill{ top:calc(100% - 22px); }
}
.hbranch{ position:relative; display:flex; align-items:center; gap:9px; min-height:48px; min-width:0; text-align:left; border-radius:10px; padding:6px 10px; }
.hbranch:hover{ background:var(--hover); }
.hbranch.live .b-name{ color:rgb(var(--amb)); }
/* 链路分支图标（1.1.4）：绿点换成节点图标，复用卡片头像（图标或首字+配色）；
   22px 圆徽，线头接到图标中心、被图标底色盖住；图标底给 panel-2，透明 PNG 也不透线。
   在播图标加天蓝环 + 辉光；无响应图标降暗（健康态仍由状态词/徽章说）。 */
.chain-avatar.nc-avatar{ width:22px; height:22px; }
.chain-avatar.nc-avatar--initial{ font-size:11px; }
.chain-avatar.nc-avatar--icon{ background:var(--panel-2); }
/* 在播图标扩散环（1.1.6）：mockup chain-fly.html 的 pulse-ring——无填充细描边、
   向外扩散并淡出（0.6 倍→2.8 倍、透明度 0.8→0，1.8s/周），比 mockup 的 2.4 倍更大。
   取代 1.1.5 的 box-shadow 呼吸：实色辉光在浅色底上会把芯片背景也带得一明一暗
   （探针实测在播头像旁背景点跨帧极差 8~11，即用户说的浅色闪屏；transform/opacity
   只走合成，不重绘背景）。图标本身不动、保持清晰；只在播时有（随 .live 出现/消失）。
   头像 overflow:hidden 会裁掉子元素，所以环挂在 22px 包裹层 ::after 上、头像置顶。 */
.chain-avatar-wrap{ flex:none; position:relative; width:22px; height:22px; }
.chain-avatar-wrap .chain-avatar{ position:relative; z-index:1; }
.chain-avatar-wrap::after{
  content:""; position:absolute; inset:0; z-index:0; border-radius:50%;
  border:1.5px solid rgba(var(--amb),.8); opacity:0; pointer-events:none;
}
.hbranch.live .chain-avatar-wrap::after{
  animation:chainHaloPulse 1.8s ease-out infinite;
}
@keyframes chainHaloPulse{
  0%{ opacity:.8; transform:scale(.6); }
  100%{ opacity:0; transform:scale(2.8); }
}
.hbranch.err .chain-avatar{ opacity:.45; }
.b-pulse{
  position:absolute; left:-20px; top:50%; width:5px; height:5px; margin-top:-2.5px; border-radius:50%;
  background:var(--ok); box-shadow:0 0 7px rgba(var(--ok-rgb),.5); opacity:0;
  animation:stubPulse 3s linear infinite; pointer-events:none; z-index:1;
}
@keyframes stubPulse{ 0%{ transform:translateX(0); opacity:0; } 18%{ opacity:1; } 82%{ opacity:1; } 100%{ transform:translateX(15px); opacity:0; } }
.hbranch .b-node{
  flex:none; display:flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600;
  background:var(--panel-2); border:1px solid var(--line); border-radius:999px; padding:5px 11px; white-space:nowrap;
}
.hbranch .b-node small{ font-family:var(--mono); color:var(--dim); font-weight:500; font-size:11px; }
.b-tag{
  flex:none; display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600;
  padding:3px 9px; border-radius:999px; border:1px solid var(--line); color:var(--sub); white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; max-width:52vw;
}
.b-tag.live{ color:var(--ok); border-color:var(--line-2); background:var(--hover); }
.b-tag.err{ color:var(--err); border-color:var(--line-2); background:var(--hover); }
.b-tag .b-x{ font-weight:700; }
.b-state{ font-size:11px; font-weight:600; padding:3px 9px; border-radius:999px; border:1px solid var(--line); color:var(--sub); white-space:nowrap; flex:none; }
.b-state.live{ color:var(--ok); border-color:var(--line-2); background:var(--hover); }
.b-state.err{ color:var(--err); border-color:var(--line-2); background:var(--hover); }
.b-name{ font-size:12.5px; font-weight:600; min-width:0; flex:1 1 auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.b-ms{ font-family:var(--mono); font-size:11px; color:var(--dim); flex:none; }
.b-rate{ font-family:var(--mono); font-size:11px; font-weight:600; color:rgb(var(--amb)); flex:none; }
.b-rate:empty{ display:none; }
/* 播放飞入光点（1.0.117）：卡片头像化作的发光圆点，fixed 定位、每帧由 JS 写 left/top；
   圆点内复刻卡片头像（图标或首字 + 配色类），与卡片同一套。 */
.chain-fly-orb{
  position:fixed; z-index:120; width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; pointer-events:none;
  transform:translate(-50%,-50%);
  box-shadow:0 0 16px 4px rgba(var(--amb),.55), 0 0 42px 12px rgba(var(--amb),.2);
}
.chain-fly-orb .nc-avatar{ width:100%; height:100%; font-size:14px; }
.chain-fly-trail{
  position:fixed; z-index:119; width:12px; height:12px; border-radius:50%;
  background:rgba(var(--amb),.7); pointer-events:none; transform:translate(-50%,-50%);
  opacity:.75; transition:opacity .5s ease, transform .5s ease;
}
/* 起飞：卡片头像短暂放大发光（卡片本身不动）。 */
.nc-avatar.chain-fly-launch{ animation:chainFlyLaunch .5s ease-out; }
@keyframes chainFlyLaunch{
  0%{ transform:scale(1); }
  40%{ transform:scale(1.35); box-shadow:0 0 14px 3px rgba(var(--amb),.6); }
  100%{ transform:scale(1); }
}
/* 撞进闪光：支线行短暂辉光。 */
.hbranch.chain-fly-dock{ animation:chainFlyDock 1s ease-out; }
@keyframes chainFlyDock{
  0%{ box-shadow:0 0 0 2px rgba(var(--amb),.55), 0 0 24px rgba(var(--amb),.3); }
  100%{ box-shadow:0 0 0 0 rgba(var(--amb),0); }
}
@media (max-width:759px){
  /* 手机线路图（1.1.8）：左栏放上面（播放器/网关并排、中间一格横向流动段挂 pill、
     实时数据整行在下），节点分支作 2 列网格芯片放下面；竖树结构禁止回归：
     .chain-grid 仍是单列网格，不是 column。手机连线不再一律隐藏——
     在播分支走竖向 spine + 横向 stub 的流动路由（与桌面同语言，只是竖着走），
     由 JS 按 DOM 实测画在同一层 SVG 里；空闲时无静态布线，芯片干净。 */
  .chain{ padding:16px 14px; }
  .chain-grid{ grid-template-columns:1fr; gap:12px; margin-top:12px; }
  .chain-col{ display:grid; grid-template-columns:1fr 72px 1fr; gap:8px 0; }
  .chain-col .chain-box{ min-height:56px; }
  .chain-stats{ grid-column:1 / -1; }
  /* 1.1.9：手机实时数据行压成细单行条——去盒子（无边框/无底色/无最小高），
     三数一行内联「标签 + 值」（标签在前），值 12px、标签 10px；
     位置不动（仍在播放器/网关行与芯片网格之间），主干起点跟着新行高走。 */
  .chain-col .chain-box.chain-stats{
    min-height:0; padding:5px 6px; background:transparent; border:0;
    box-shadow:none; border-radius:0;
  }
  .chain-col .chain-box.chain-stats .chain-stat{
    flex-direction:row; align-items:baseline; gap:4px;
  }
  .chain-col .chain-box.chain-stats .chain-stat span{ order:-1; }
  .chain-col .chain-box.chain-stats .chain-stat b{ font-size:12px; }
  .chain-box{ min-width:76px; padding:9px 8px; border-radius:13px; }
  .chain-box .cb-t{ font-size:12.5px; }
  .chain-box .cb-m{ font-size:11px; letter-spacing:.02em; }
  /* 手机连线层：SVG 盖在芯片上层（z-index 2），流动路由的 stub 才能画进图标中心；
     静态组在手机上为空，只有在播路由；行进光点 z-index 3 盖在线上，不被虚线遮。 */
  .chain-wire{ display:block; z-index:2; }
  .chain-wire-dot{ display:block; z-index:3; }
  /* 左栏横向流动段（1.1.8）：播放器/网关之间一格 72px，横向流动线 + pill；
     网关 → 实时数据那段竖线在手机上仍无载体，继续隐藏。pill 手机上收小一号。 */
  .chain-link{ display:none; }
  #chainLinkPlayer{ display:block; height:auto; align-self:stretch; }
  #chainLinkPlayer::before{
    left:0; right:0; top:50%; bottom:auto; width:auto; height:2px; margin:-1px 0 0;
  }
  #chainLinkPlayer.live::after{
    left:0; right:0; top:50%; bottom:auto; width:auto; height:2px; margin:-1px 0 0;
    background-image:linear-gradient(90deg, rgb(var(--amb)) 0 55%, transparent 55% 100%);
    background-size:14px 100%; animation:chainLinkFlowH 1.2s linear infinite;
  }
  #chainLinkPlayer .chain-link-pill{ font-size:10px; padding:2px 8px; }
  #chainLinkStats{ display:none; }
  /* 左 gutter 24px：手机竖向 spine 的走线位（左列芯片用它，右列芯片走列间隙）。 */
  .chain-nodes{ padding-left:24px; }
  #chainBranchList[data-cols]{ grid-template-columns:1fr 1fr; column-gap:10px; row-gap:10px; align-content:start; }
  /* 1.1.63（手机）：分支芯片永不换行。用户点名（2026-11-11 22:40，真机截图）：
     长名字 + 三位数延迟时待命 pill 掉到第二行（Levilde / 起点站 / Msky），
     “有的节点的待命在下边，调整下，让他在右边，可以把延迟做小做紧凑”。
     改法：flex-wrap:wrap→nowrap（pill 再也掉不下去），延迟 11px→10px、
     间距 9px→6px、芯片左右内边距 11px→9px、状态词 11px→10px，给名字
     腾地方；名字本身已有 min-width:0 + 省略号（基类 .b-name），放不下时
     截断，绝不挤掉 pill。只改手机端（max-width:759px），桌面 3 列够宽、
     本就不换行，不动。 */
  .hbranch{ flex-direction:row; flex-wrap:nowrap; align-items:center; height:auto; min-height:44px; gap:2px 6px; padding:10px 9px 9px; background:var(--panel-2); border:1px solid var(--line); border-radius:14px; }
  .b-pulse{ display:none; }
  /* 手机芯片小：链路分支里的刻度环不挤芯片，直接隐藏；环只留在节点卡片头 */
  .hbranch .tick-ring{ display:none; }
  /* 手机在播脉冲：仅在播芯片顶边流动的光点，非在播芯片一律没有 */
  .hbranch.live .m-pulse{ display:block; position:absolute; top:0; left:0; width:8px; height:3px; border-radius:2px; background:var(--ok); box-shadow:0 0 7px rgba(var(--ok-rgb),.5); animation:mPulseRun 2.4s linear infinite; pointer-events:none; }
  @keyframes mPulseRun{ 0%{ left:0; opacity:0; } 12%{ opacity:1; } 88%{ opacity:1; } 100%{ left:calc(100% - 8px); opacity:0; } }
  .hbranch .b-node{ border:0; background:transparent; padding:0; font-size:13px; text-align:left; white-space:normal; }
  .b-tag{ border:0; background:transparent; padding:0; font-size:11px; max-width:100%; }
  .b-state{ border:0; background:transparent; padding:0; font-size:10px; max-width:100%; color:var(--sub); }
  .b-name{ font-size:13px; }
  .b-ms{ margin-left:auto; font-size:10px; }
  .hbranch.live{ border-color:rgba(var(--amb),.55); box-shadow:0 0 16px rgba(var(--amb),.12); }
  .hbranch.err{ border-color:var(--err); }
  /* 1.1.8：手机上呼吸光环加粗加亮——22px 小图标上 1.5px 细环在 390px 屏上
     几乎看不见（基线实测：光环在动，但采样时透明度只剩 0.01）；2px + 更高透明度。 */
  .chain-avatar-wrap::after{ border-width:2px; border-color:rgba(var(--amb),.95); }
  /* 1.1.13（手机）：包裹层改 flex，消除头像 inline 基线下沉——实测头像
     （inline-flex，基线对齐）比 22px 包裹层低 2.5px，stub 若锚在包裹层
     底边会高出图标底边 2.5px、贴不紧。flex 后头像正好填满包裹层，
     包裹层底边 = 图标底边，stub 才真正贴住图标。只改手机端，桌面不动
     （桌面 stub 是 SVG、量头像实测坐标，不受此影响）。 */
  .chain-avatar-wrap{ display:flex; align-items:center; justify-content:center; }
  /* 1.1.14（手机）：stub 左端齐平主干中心线，不再多伸 4px——1.1.13 多伸 4px
     盖交汇处的做法在真机上露头了（每处交汇都伸出一段小线头）。
     左端取 wrapper 左缘到主干的实测距离：左列 wrapper 左缘 36、主干 x=13，
     左伸 23px；右列 wrapper 左缘 193、主干 x=176，左伸 17px。
     2px 主干线宽盖住 stub 左端（落在中心线上），±1px 主干抖动仍齐平，
     不露头也不留缝。长度是布局常量（与屏宽无关）。 */
  .chain-avatar-wrap::before{
    content:""; position:absolute; top:calc(100% - 1px); height:2px;
    background:var(--track-2); pointer-events:none;
  }
  #chainBranchList > .hbranch:nth-child(odd) .chain-avatar-wrap::before{ left:-23px; right:11px; }
  #chainBranchList > .hbranch:nth-child(even) .chain-avatar-wrap::before{ left:-17px; right:11px; }
  /* 在播：同一根 stub 变天蓝虚线流动（与 SVG 流动路由同色同速 0.6s/12px），
     SVG 流动路由只画主干段，不再画 stub，避免双线重叠。 */
  .hbranch.live .chain-avatar-wrap::before{
    background:repeating-linear-gradient(90deg, rgb(var(--amb)) 0 6px, transparent 6px 12px);
    filter:drop-shadow(0 0 4px rgba(var(--amb),.65));
    animation:chainStubFlow .6s linear infinite;
  }
  @keyframes chainStubFlow{ from{ background-position:0 0; } to{ background-position:12px 0; } }
  .chain::before{ background-image:radial-gradient(320px 200px at 80% 16%, rgba(var(--amb),.13), transparent 70%), radial-gradient(rgba(var(--amb),.12) 1px, transparent 1.4px); }
  html[data-theme="light"] .chain::before{ background-image:radial-gradient(320px 200px at 80% 16%, rgba(var(--amb),.07), transparent 70%), radial-gradient(rgba(var(--amb),.07) 1px, transparent 1.4px); }
  .chain.idle .chain-box.hub{ animation:none; }
  /* 1.1.8：手机在播时网关也要呼吸脉冲（与桌面同语言）——之前整段禁掉，
     手机上「正在播」只剩芯片自己在亮。空闲呼吸仍禁。 */
}
@media (prefers-reduced-motion: reduce){
  .chain-wire-live{ animation:none; }
  .hbranch.live .chain-avatar-wrap::before{ animation:none; }
  .chain-link.live::after{ animation:none; }
  .chain-wire-dot{ animation:none; display:none !important; }
  .b-pulse{ animation:none; display:none; }
  .chain.idle .chain-box.hub{ animation:none; }
  .chain.live .chain-box.hub{ animation:none; }
  /* 1.1.6：扩散环减动效时不出现（::after 本就透明，无静态环） */
  .hbranch.live .chain-avatar-wrap::after{ animation:none; }
  /* 本批新增动效的减少动态兜底：直接画终态，无级联、无点亮动画、无脉冲、无涟漪 */
  .cascade-item{ animation:none; }
  .cascade-item.cascade-item{ animation:none; animation-delay:0s; }
  .tick-ring.anim i.on{ animation:none; opacity:1; }
  .m-pulse{ animation:none; display:none; }
  .hbranch.live .m-pulse{ animation:none; display:none; }
  .chip-ripple{ display:none; }
  /* 1.0.117 飞入兜底：减动效时 JS 本就不飞，此处再保险一次 */
  .chain-fly-orb, .chain-fly-trail{ display:none; }
  .nc-avatar.chain-fly-launch{ animation:none; }
  .hbranch.chain-fly-dock{ animation:none; }
  /* 1.0.118：在播行呼吸点减动效时静止 */
  .nc-now-dot{ animation:none; }
}
/* 页面切后台：新增常驻动画同样暂停（级联与刻度点亮是一次性的，不必暂停） */
.chain.paused .m-pulse, .chain.paused .chip-ripple{ animation-play-state:paused; }

@media (prefers-reduced-motion: reduce){
  /* 本批新增动效的减少动态兜底：直接画终态，无级联、无点亮动画、无脉冲、无涟漪 */
  .cascade-item{ animation:none; }
  .cascade-item.cascade-item{ animation:none; animation-delay:0s; }
  .tick-ring.anim i.on{ animation:none; opacity:1; }
  .chip-ripple{ display:none; }
}

/* ---------- 刻度环 TickRing（原生，24 格 = 24h 可用率语义） ----------
   点亮格数 = 真实可用率换算；无数据时 0 格 + 中心“—”，绝不画满冒充。 */
.tick-ring{ position:relative; flex:none; width:34px; height:34px; border-radius:50%; }
.tick-ring i{ position:absolute; left:50%; top:1px; width:2px; height:5px; margin-left:-1px; border-radius:2px; background:var(--track-2); transform-origin:1px 16px; transform:rotate(calc(var(--i) * 15deg)); }
.tick-ring i.on{ background:var(--ok); }
.tick-ring.anim i.on{ animation:tickIn .3s ease both; animation-delay:calc(var(--i) * 18ms); }
@keyframes tickIn{ from{ opacity:0; } to{ opacity:1; } }
.tick-ring .tick-center{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:var(--mono); font-size:9px; font-weight:700; color:var(--txt); }
.tick-ring .tick-center sup{ font-size:6px; color:var(--dim); margin-left:1px; }
.tick-ring.unknown .tick-center{ color:var(--dim); }
.nc-head .tick-ring{ margin-left:auto; }

/* ---------- 入场级联（revealCascade，约 75ms 间隔；并列卡片中心展开） ---------- */
.cascade-item{ animation:cascadeIn .45s cubic-bezier(.2,.7,.3,1) both; animation-delay:calc(var(--ci, 0) * 75ms); }
@keyframes cascadeIn{ from{ opacity:0; transform:translateY(8px) scale(.98); } to{ opacity:1; transform:none; } }

/* ---------- 点按涟漪（Discharge，从点击点化开，只动 transform / opacity） ---------- */
.chip-ripple{ position:fixed; z-index:5; width:120px; height:120px; margin:-60px 0 0 -60px; border-radius:50%; background:rgba(var(--amb),.30); pointer-events:none; animation:chipRipple .55s ease-out forwards; }
@keyframes chipRipple{ from{ opacity:.8; transform:scale(.15); } to{ opacity:0; transform:scale(1); } }

/* ---------- 状态变化缓动（只过渡颜色 / 阴影 / 透明度，不动布局） ---------- */
.sdot{ transition:background-color .3s ease, box-shadow .3s ease; }

.toolbar{ display:flex; gap:9px; flex-wrap:wrap; margin-bottom:14px; align-items:center; }

/* ---------- 节点卡 ---------- */
.node-grid{ display:grid; grid-template-columns:1fr; gap:12px; }
@media (min-width:820px){ .node-grid{ grid-template-columns:1fr 1fr; } }
.node-card{
  background:linear-gradient(180deg, var(--hover), transparent 45%), var(--panel);
  border:1px solid var(--line); border-radius:12px; padding:17px;
}
.node-card:hover{ border-color:var(--line-2); }
/* ---------- 节点卡 · 在播行与卡片头 ▶（1.0.118） ----------
   在播行（片名 + 实时速率）放在 .nc-body 外，折叠时也可见；进度条/进度一律不加。
   卡片头 ▶ 是 .nc-head 的兄弟（头本身是按钮，里面不能再嵌按钮），
   点它只飞光点定位，不改播放状态。 */
.nc-headrow{ display:flex; align-items:center; gap:8px; }
.nc-headrow .nc-head{ flex:1; min-width:0; width:auto; }
.nc-fly{
  flex:none; width:24px; height:24px; border-radius:50%;
  background:rgba(var(--amb),.12); border:1px solid rgba(var(--amb),.45);
  color:var(--acc); font-size:10px; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; padding-left:1px;
}
.nc-fly:hover{ background:rgba(var(--amb),.25); }
.nc-fly:active{ transform:scale(.92); }
.nc-fly:focus-visible{ outline:2px solid var(--acc); outline-offset:2px; }
.nc-now{
  display:flex; align-items:center; gap:8px; margin-top:10px; padding-top:10px;
  border-top:1px solid var(--line); font-size:13px;
}
.nc-now[hidden]{ display:none; }
.nc-now-dot{ width:8px; height:8px; border-radius:50%; background:var(--ok); flex:none; animation:ncNowBlink 1.2s ease-in-out infinite; }
@keyframes ncNowBlink{ 0%,100%{ opacity:1; } 50%{ opacity:.25; } }
.nc-now-title{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--txt); }
.nc-now-rate{ flex:none; font-family:var(--mono); font-size:12px; font-weight:700; color:var(--acc); white-space:nowrap; }
/* 在播卡全亮 + 强调边；其余卡变暗，悬停恢复。 */
.node-card.nc-playing{ border-color:rgba(var(--amb),.55); box-shadow:0 0 16px rgba(var(--amb),.12); }
.node-card.nc-dim{ opacity:.55; }
.node-card.nc-dim:hover{ opacity:1; }
.nc-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; cursor:pointer; }
.nc-head{ width:100%; min-height:44px; text-align:left; }
.nc-head:focus-visible{ outline:2px solid var(--acc); outline-offset:3px; border-radius:8px; }
.nc-chev{ color:var(--dim); font-size:13px; line-height:1; transition:transform .18s ease; }
.node-card.open .nc-chev{ transform:rotate(180deg); color:var(--sub); }
.nc-name{ font-size:16px; font-weight:700; letter-spacing:0; }
.nc-live{ font-size:12px; font-weight:600; color:var(--ok); white-space:nowrap; }
.nc-head .pfx{
  font-family:var(--mono); font-size:11px; color:var(--acc-text);
  background:var(--hover); border:1px solid var(--line-2);
  padding:2px 8px; border-radius:999px;
}
.nc-head .h-word{ font-size:12.5px; font-weight:600; color:var(--ok); white-space:nowrap; }
.nc-head .h-word.warn{ color:var(--warn-text); } .nc-head .h-word.err{ color:var(--err); } .nc-head .h-word.off{ color:var(--dim); }

/* ---------- 节点头像 ---------- */
.nc-avatar{ flex:none; position:relative; width:28px; height:28px; border-radius:50%; overflow:hidden; display:inline-flex; align-items:center; justify-content:center; background:var(--hover); }
.nc-avatar img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.nc-avatar--initial{ font-size:14px; font-weight:700; color:#fff; }
/* 有图标的头像：底透明，不画配色圆盘（图标多为透明底 PNG，配色底会染整圈）。 */
.nc-avatar--icon{ background:transparent; }
.av-c0{ background:#38bdf8; } .av-c1{ background:#818cf8; } .av-c2{ background:#34d399; } .av-c3{ background:#f59e0b; }
.av-c4{ background:#f472b6; } .av-c5{ background:#a78bfa; } .av-c6{ background:#fb7185; } .av-c7{ background:#22d3ee; }
/* W53：8 个亮背景配白字对比度只有 1.8–3.0:1（WCAG 4.5:1 不达标）——
   首字改深色 #0f172a，各色对比度 6.0–9.9:1，配色底本身不动。 */
.nc-avatar--initial.av-c0, .nc-avatar--initial.av-c1, .nc-avatar--initial.av-c2, .nc-avatar--initial.av-c3,
.nc-avatar--initial.av-c4, .nc-avatar--initial.av-c5, .nc-avatar--initial.av-c6, .nc-avatar--initial.av-c7{ color:#0f172a; }

/* ---------- 节点图标选择器（Makka 4.1.4 选择器的做法） ---------- */
.icon-picker{ position:relative; }
.icon-pick-btn{ display:flex; align-items:center; gap:8px; width:100%; min-height:44px; padding:6px 10px; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:inherit; font:inherit; cursor:pointer; text-align:left; }
.icon-pick-btn:hover{ border-color:var(--line-2); }
.icon-pick-text{ flex:1; font-size:14px; color:var(--sub); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.icon-preview{ flex:none; width:24px; height:24px; display:inline-flex; align-items:center; justify-content:center; }
.icon-preview .nc-avatar{ width:24px; height:24px; }
.icon-preview .nc-avatar--initial{ font-size:12px; }
.icon-picker-panel{ position:absolute; top:100%; left:0; right:0; z-index:30; margin-top:8px; padding:12px; display:flex; flex-direction:column; gap:10px; background:var(--panel); border:1px solid var(--line-2); border-radius:14px; box-shadow:0 12px 32px rgba(0,0,0,.35); }
.icon-picker-panel[hidden]{ display:none; }
.icon-lib-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.icon-lib-row input[type="text"]{ flex:1; min-width:0; }
.icon-picker-panel input[type="text"]{ font-size:13px; }
.icon-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(44px,1fr)); gap:8px; overflow-y:auto; max-height:240px; padding-right:4px; }
.icon-grid-note{ grid-column:1/-1; text-align:center; color:var(--sub); font-size:13px; padding:12px 0; }
.icon-grid-note.err{ color:var(--err); }
.icon-item{ height:46px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:8px; cursor:pointer; background:var(--panel); }
.icon-item:hover{ border-color:var(--acc); transform:scale(1.06); }
.icon-item img{ width:32px; height:32px; object-fit:contain; border-radius:4px; }
.icon-item .nc-avatar{ width:32px; height:32px; }
.icon-item .nc-avatar--initial{ font-size:15px; }
.nc-target{ font-family:var(--mono); font-size:12px; color:var(--sub); margin-top:7px; word-break:break-all; }
.nc-entryrow{ display:flex; align-items:center; gap:7px; margin-top:7px; flex-wrap:wrap; }
.nc-entryrow .nc-target{ margin-top:0; flex:0 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; word-break:normal; }
.nc-entryrow [data-edit]{ margin-left:auto; flex:none; }
.nc-body{ margin-top:13px; padding-top:13px; border-top:1px solid var(--line); animation:ncIn .18s ease; }
@keyframes ncIn{ from{ opacity:0; transform:translateY(-3px); } to{ opacity:1; transform:none; } }
.nc-health-head{ display:flex; align-items:center; gap:9px; margin-top:15px; flex-wrap:wrap; }
.nc-health-head .nc-sec{ font-size:12.5px; font-weight:700; }
.nc-health-head .btn{ margin-left:auto; }
.nc-copy{
  width:32px; height:32px; flex:none; display:inline-flex; align-items:center; justify-content:center;
  border-radius:6px; border:1px solid var(--line); background:var(--hover); color:var(--sub); cursor:pointer;
  transition:color .15s ease, border-color .15s ease, transform .1s ease;
}
.nc-copy:hover{ color:var(--acc-text); border-color:var(--line-2); }
.nc-copy:active{ transform:scale(.93); }
.nc-copy:focus-visible{ outline:2px solid var(--acc); outline-offset:2px; }
.nc-config{ color:var(--dim); font-size:12px; line-height:1.6; margin-top:11px; }
/* 1.1.57：配置行里已打开的功能用主题色（只显示打开的，关掉的不出现）。 */
.nc-config .nc-cfg-on{ color:var(--acc); }
/* 302 提醒：开关关着且近 7 天跳转回包达标时出现，次数就是证据。 */
.nc-redirect-hint{ color:var(--warn); font-size:12px; line-height:1.6; margin:8px 0 0; }
.health-rows{ margin-top:10px; display:flex; flex-direction:column; gap:10px; }
.hl-row{ display:flex; flex-direction:column; gap:5px; }
.hl-err{ color:var(--err); font-size:12px; font-weight:600; }
.hl-top{ display:flex; align-items:center; gap:8px; font-size:12.5px; flex-wrap:nowrap; }
.hl-top .hl-name{ font-weight:600; flex:none; }
/* 1.1.21：线路 URL 占满剩余宽、超长省略（原来会折到第二行，把行撑高），
   延迟读数 margin-left:auto 贴右、永不换行，始终可见。 */
.hl-top .hl-ms{ font-family:var(--mono); color:var(--sub); font-size:12px; min-width:0; flex:1 1 auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hl-top .hl-state{ margin-left:auto; flex:none; white-space:nowrap; }
.hl-top .hl-avail{ margin-left:auto; font-family:var(--mono); font-size:11px; color:var(--dim); }
.nc-stats{ display:flex; gap:20px; margin-top:13px; padding-top:13px; border-top:1px solid var(--line); flex-wrap:wrap; }
.nc-stats .ns b{ font-size:20px; font-weight:700; display:block; line-height:1.25; }
.nc-stats .ns b.err{ color:var(--err); }
.nc-stats .ns span{ font-family:var(--mono); font-size:12px; letter-spacing:.11em; color:var(--dim); }
.nc-actions{ display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; justify-content:flex-end; }
/* 卡片上的删除节点：与检查按钮同款小灰钮，只字是红的。 */
.nc-actions [data-delete]{ color:var(--err); }
.nc-check-hint{ color:var(--dim); font-size:12px; align-self:center; }
.cache-card{ margin-top:16px; }
.cache-grid{ display:grid; grid-template-columns:1fr; gap:18px; margin-top:12px; align-items:start; }
@media (min-width:820px){ .cache-grid{ grid-template-columns:1fr 1fr; gap:28px; } }
.cache-stats{ display:flex; flex-direction:column; }
.cache-stats .big-num{ margin-top:2px; }
.cache-stats .pbar{ margin-top:11px; }
.cache-stat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:13px; }
.cstat{ background:var(--panel-2); border:1px solid var(--line); border-radius:12px; padding:9px 11px; min-width:0; }
.cstat span{ display:block; font-family:var(--mono); font-size:11px; letter-spacing:.1em; color:var(--dim); font-weight:600; }
.cstat b{ display:block; margin-top:4px; font-size:15px; font-weight:600; font-family:var(--mono); word-break:break-all; }
.cache-stats #cacheClearBtn{ align-self:flex-start; margin-top:13px; }
.cache-form .sw-row{ padding-top:2px; }
.cache-form .fld{ margin-bottom:0; }
.cache-flds{ margin-top:14px; }
.cache-save-row{ display:flex; align-items:flex-start; gap:12px; flex-wrap:wrap; margin-top:15px; }
.cache-save-row .btn{ flex:none; }
.cache-save-row .hint{ flex:1 1 220px; margin:0; padding-top:1px; }
.bk-actions{ display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-top:16px; }
.bk-div{ width:1px; height:20px; background:var(--line-2); flex:none; }
@media (max-width:560px){
  .bk-div{ display:none; }
  /* 备份三钮在窄屏等分整行，保持同高同排基线，不再散落换行 */
  .bk-actions .btn{ flex:1; }
  /* Sheet 表单页脚按钮等分整行 */
  .form-foot .btn{ flex:1; }
}

/* ---------- 页签 / 筛选筹码 ---------- */
.seg{
  display:inline-flex; gap:2px; background:var(--panel-2); border:1px solid var(--line);
  border-radius:13px; padding:3px; flex-wrap:wrap;
}
.seg button{ padding:7px 16px; border-radius:10px; font-size:13.5px; font-weight:600; color:var(--sub); transition:all .18s; }
.seg button.on{ background:var(--panel-3); color:var(--txt); box-shadow:0 2px 8px rgba(0,0,0,.18); }
html[data-theme="light"] .seg button.on{ box-shadow:0 2px 8px rgba(17,19,24,.08); }
.fchips{ display:flex; gap:8px; flex-wrap:wrap; margin:16px 0 6px; align-items:center; }
.fchip{
  font-size:12.5px; font-weight:600; color:var(--sub);
  background:var(--chip-bg); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border:1px solid var(--line-2); border-radius:999px; padding:6px 14px; transition:all .16s;
}
.fchip.on{ background:var(--txt); color:var(--bg); border-color:var(--txt); }
/* ---------- 按钮尺寸表（手机 ≤899px） ----------
   1.0.63 曾把全部按钮一刀切 44px，用户 2026-11-06 说太大太丑；
   改分档：主操作 40px，小按钮/页签/筛选/下拉 36px，图标钮 36×36。
   表单输入仍 44px（iOS 标准）；开关视觉仍 47×28，隐形 input
   向外扩 8px、纵向 44px，热区够、样子不变。行内文本链接 .linklike
   例外：WCAG 2.2 目标尺寸有行内例外，加高会撑坏行高。 */
@media (max-width:899px){
  .btn{ min-height:40px; }
  .btn.sm, .seg button, .fchip, .mini-select{ min-height:36px; }
  .nc-copy{ width:36px; height:36px; }
  .fld input, .fld select, .fld textarea,
  input[type="text"], input[type="password"], input[type="number"],
  input[type="search"], select, textarea{ min-height:44px; }
  .backup-input-row .lr-x{ min-width:36px; min-height:36px; }
  /* 特异度高于基础 .sw input（0,1,1），否则后写的 width/height:100% 会盖掉 */
  .sw-row .sw input{ width:calc(100% + 16px); height:44px; left:-8px; top:50%; margin-top:-22px; }
}
.mini-select{
  background:var(--panel-2); border:1px solid var(--line-2); border-radius:6px;
  padding:7px 10px; font-size:13px;
}
/* 下拉框去原生外观（iOS 原生 select 自带大圆角，看着像胶囊）：
   方角 6px + 自定义小箭头；日期输入框也共用 .mini-select 类，只改圆角，
   不动外观（原生日期选择器要留着）。 */
select.mini-select{
  -webkit-appearance:none; appearance:none; padding-right:28px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center;
}
.pager{ display:flex; align-items:center; gap:12px; margin-top:16px; justify-content:center; }

/* ---------- 数据视图表格 ---------- */
.table-scroll{ overflow-x:auto; }
.log-table{ width:100%; border-collapse:collapse; min-width:720px; }
.log-table th{ font-size:11px; font-weight:700; color:var(--dim); text-align:left; padding:9px 12px; border-bottom:1px solid var(--line); }
.log-table td{ padding:12px; border-bottom:1px solid var(--line); font-size:13.5px; vertical-align:middle; }
.log-table tr.log-row, .log-table tr.target-row, .log-table tr.audit-row{ cursor:pointer; }
.log-table tr.log-row:hover, .log-table tr.target-row:hover{ background:var(--hover); }
.log-table .td-chev{ width:44px; padding:0 0 0 12px; }
.log-table .chev{ min-width:36px; min-height:36px; display:inline-flex; align-items:center; justify-content:center; border-radius:6px; color:var(--sub); }
.log-table .chev:focus-visible{ outline:2px solid var(--acc); outline-offset:2px; }
.log-table .td-status{ white-space:nowrap; }
.log-table .td-req{ max-width:280px; }
.log-table .td-req .mono{ font-family:var(--mono); font-size:12.5px; font-weight:500; }
.log-table .td-node, .log-table .td-client, .log-table .td-dur, .log-table .td-time{ font-family:var(--mono); font-size:11.5px; color:var(--dim); }
.log-table .td-dur.slow{ color:var(--warn-text); font-weight:700; }
.log-table .td-result.ok{ color:var(--ok); }
.log-table .td-result.fail{ color:var(--err); }
.log-table .td-num{ text-align:right; font-family:var(--sans); font-variant-numeric:tabular-nums; }
.log-table th.th-num{ text-align:right; }
.log-detail-row td{ padding:0; border-bottom:1px solid var(--line); }
.log-detail-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; padding:14px 16px; background:var(--panel-2); }
/* 数据视图工具条 */
.data-toolbar{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:12px 0 6px; }
/* 筛选 chips 嵌在工具条里时去掉自身上下边距，与刷新图标按钮对齐（1.0.71） */
.data-toolbar .fchips{ margin:0; flex:1; min-width:0; }
.data-toolbar .icon-btn{ padding:0 10px; min-width:36px; }
/* 1.1.48: 统计页工具条再收紧——用户 2026-11-11 令“图12按钮别这么宽了，调窄点；
   图3的内容全部靠右”。分段按钮横向内边距 10px→7px、.btn.sm 9px→7px，字间距
   仍 -0.3px；更新于 span 加 margin-left:auto，把整组操作（更新于/刷新/导出内容/
   流量趋势/导出 CSV）推到工具条右沿，周期分段不动。只限 #tabStats，日志 tab
   与其它页不受影响；字号、字色、高度、框间距不动。 */
#tabStats .data-toolbar{ gap:6px; }
#tabStats .seg button{ padding:7px 7px; letter-spacing:-.3px; }
#tabStats .btn.sm{ padding:7px 7px; letter-spacing:-.3px; }
#tabStats #reportUpdated{ margin-left:auto; }
#tabStats .mini-select{ padding:7px 8px; letter-spacing:-.3px; }
#tabStats select.mini-select{ padding-right:24px; }
#tabStats .chart-actions{ gap:6px; }
#tabStats .chart-head{ gap:8px; }
.log-meta{ margin-top:12px; }
.log-count{ font-size:13px; color:var(--txt); }
/* 统计 tab 两栏布局（1.1.43 全面重做）：左栏趋势图、右栏 KPI 纵列，
   排行表通栏在下。不再是 KPI 行 → 趋势图 → 排行表的堆叠结构；
   数字按用户令收小（KPI 大数字 28px→22px，坐标轴 11px→10px，
   图表副行 12px→11px），不再喧宾夺主。 */
.stats-layout{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:16px; margin-top:12px; align-items:start; }
.stats-layout .chart-wrap{ margin-top:0; }
.stats-side{ min-width:0; }
/* KPI 纵列：一张卡，四个指标上下排布，发丝横线分隔，无独立框。 */
.kpi-side{ display:flex; flex-direction:column; background:var(--panel); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.kpi{ background:none; border:0; border-radius:0; padding:12px 16px 10px; min-width:0; }
.kpi + .kpi{ border-top:1px solid var(--line); }
.kpi .t-label{ font-size:12px; }
.kpi .kpi-num{ font-size:22px; font-weight:600; letter-spacing:-.4px; margin-top:2px; font-variant-numeric:tabular-nums; line-height:1.15; }
.kpi .kpi-sub{ font-size:11px; color:var(--dim); margin-top:2px; font-family:var(--sans); font-variant-numeric:tabular-nums; line-height:1.4; word-break:break-word; }
/* 排行表通栏在两栏之下。 */
.stats-rank-tile{ margin-top:12px; }
/* 窄屏：两栏叠成单栏（趋势图 → KPI 纵列 → 排行表）。 */
@media (max-width:900px){
  .stats-layout{ grid-template-columns:1fr; }
}
.spark-line{ fill:none; stroke:var(--acc); stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; }
.spark-line.up{ stroke:var(--sub); }
.spark-line.req{ stroke:var(--txt); }
.spark-line.err{ stroke:var(--err); }
.chart-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.chart-actions{ display:flex; align-items:center; gap:8px; }
.chart-tip{ position:absolute; z-index:3; pointer-events:none; background:var(--panel); border:1px solid var(--line-2); border-radius:10px; padding:9px 11px; min-width:112px; color:var(--txt); box-shadow:0 8px 24px rgba(0,0,0,.18); }
.chart-tip-metric{ font-size:11px; color:var(--dim); font-weight:600; }
.chart-tip-value{ font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; margin:2px 0 1px; letter-spacing:-.3px; }
.chart-tip-time{ font-size:11px; color:var(--dim); font-family:var(--mono); }
.chart-table{ margin-top:12px; }
.chart-table .log-table{ min-width:0; }
/* 统计 tab 内容列（1.1.42）：1.1.41 的 900px 窄列已删，统计 tab 回到与其它页
   一致的通栏 1140px（.stage），不再左右留大片空白。 */
#tabStats .tile{ padding:10px 16px; }
/* 统计 tab 工具条收紧（只作用于统计 tab，日志 tab 的工具条不动）。 */
#tabStats .data-toolbar{ margin:8px 0 4px; }
#tabStats .log-table th{ padding:10px 12px; font-size:12px; font-weight:600; }
#tabStats .log-table td{ padding:14px 12px; font-size:14px; }
/* 1.1.44：上游排行行高（用户 2026-11-11 令“下边这个地再调高一点，字看起来扁扁的”）——
   1.1.40 把统计 tab 的行内边距收成 th 7px / td 10px 后行只有约 42px，字显扁；
   现 td 10px→14px（行约 49px）、th 7px→10px（表头约 39px），只作用于统计 tab，日志 tab 不动。 */
.pager .jump{ width:64px; background:var(--panel-2); border:1px solid var(--line-2); border-radius:8px; padding:10px 8px; color:var(--txt); font-family:var(--mono); font-size:12.5px; text-align:center; }
/* 观看记录筛选区：无“筛选”切换与“清除筛选”按钮，设备/节点/状态始终一行显示；
   窄屏搜索行仍独立一行通栏，宽屏搜索仍与筛选同行居右。 */
.code{ font-family:var(--mono); font-size:11px; font-weight:700; padding:2.5px 7px; border-radius:6px; flex:none; background:var(--hover); color:var(--sub); }
.code.c2{ background:var(--hover); color:var(--ok); }
.code.c3{ background:var(--hover); color:var(--sub); }
.code.c4{ background:var(--hover); color:var(--warn-text); }
.code.c5{ background:var(--hover); color:var(--err); }
.tl-alert{
  margin:14px 0 2px; padding:11px 14px; border-radius:13px; font-size:13px; font-weight:600;
  background:var(--hover); border:1px solid var(--line-2); color:var(--warn-text);
  display:flex; gap:9px; align-items:center;
}

/* ---------- 统计 ---------- */
.chart-wrap{
  position:relative;
  background:var(--panel);
  border:1px solid var(--line); border-radius:12px; padding:10px 16px 8px; margin-top:12px;
}
.chart-sub{ color:var(--dim); font-size:11px; margin:2px 0 2px; font-family:var(--sans); font-variant-numeric:tabular-nums; }
.chart-peak{ pointer-events:none; }
.chart-hover-line{ stroke:var(--line-2); stroke-width:1; }
.chart-hover-dot{ fill:var(--panel); stroke:var(--acc); stroke-width:1.5; }
.chart-wrap .svg-chart{ position:relative; }
.chart-wrap .chart-line.down{ stroke:var(--acc); }
.chart-wrap .chart-line.up{ stroke:var(--sub); }
.chart-wrap .chart-line.req{ stroke:var(--txt); }
.chart-wrap .chart-line.err{ stroke:var(--err); }

/* ---------- 流量 ---------- */
.quota-hero{ display:flex; gap:26px; align-items:center; flex-wrap:wrap; }
.ring-col{ display:flex; flex-direction:column; align-items:center; gap:10px; flex:none; margin:0 auto; }
.ring-box{ position:relative; width:160px; height:160px; flex:none; }
.ring-box svg{ transform:rotate(-90deg); }
.ring-bg{ stroke:var(--track); }
#ringFg{ stroke:var(--acc); transition:stroke-dashoffset .7s var(--ease); }
#ringFg.warn{ stroke:var(--warn); } #ringFg.err{ stroke:var(--err); }
.ring-c{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.ring-c b{ font-size:19px; font-weight:700; letter-spacing:-.01em; line-height:1; }
.ring-c span{ font-family:var(--mono); font-size:10px; letter-spacing:.06em; color:var(--dim); margin-top:6px; }
.ring-caption{ font-family:var(--mono); font-size:12px; letter-spacing:0; color:var(--dim); }
.quota-facts{ flex:1; min-width:230px; display:flex; flex-direction:column; gap:2px; }
.quota-forecast{ color:var(--txt); font-size:14px; line-height:1.65; margin:0 0 6px; }
.quota-forecast b{ color:var(--txt); font-weight:700; }
.quota-hero.unset .ring-box svg{ width:160px; height:160px; }
.quota-hero.unset #ringFg{ stroke:var(--track-2); stroke-dasharray:4 8; stroke-dashoffset:0; }
.quota-hero.unset .ring-c b{ font-size:20px; }
.quota-forecast .linklike{ color:var(--acc-text); font-weight:600; border:0; background:none; padding:0; cursor:pointer; font-size:14px; }
.quota-form-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.quota-next-reset{ font-size:12px; color:var(--dim); }

/* ---------- 表单 ---------- */
.fld{ margin-bottom:15px; }
.fld label{ display:block; font-family:var(--mono); font-size:11px; letter-spacing:.13em; color:var(--dim); font-weight:600; margin-bottom:7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.fld input[type=text], .fld input[type=password], .fld input[type=number], .fld input[type=url], .fld select, .fld textarea{
  width:100%; background:var(--panel-2); border:1px solid var(--line-2); border-radius:12px;
  padding:11px 13px; font-size:14px; outline:none; transition:border-color .15s;
}
.fld textarea{ resize:vertical; min-height:64px; font-family:var(--mono); font-size:12.5px; }
.fld input:focus, .fld select:focus, .fld textarea:focus{ border-color:var(--acc); }
.fld input:disabled{ opacity:.6; }
.fld-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
/* 单项行整行：行内只有一个字段时占满整行（如额度表单「重置日」），全端一致，不再只挂在 ≤899 块里 */
.fld-row > .fld:only-child{ grid-column:1/-1; }
@media (max-width:560px){ .fld-row{ grid-template-columns:1fr; } }
.sw-row{ display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); }
.sw-row:last-child{ border-bottom:0; }
.preflight{ display:flex; flex-direction:column; gap:6px; margin-top:12px; }
.preflight[hidden]{ display:none; }
.pf-row{ display:flex; justify-content:space-between; gap:12px; font-size:13px; color:var(--dim); }
.pf-target{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.pf-row.ok{ color:var(--ok, #7ddba7); }
.pf-row.bad{ color:var(--err); }
.form-foot{ display:flex; justify-content:flex-end; gap:9px; margin-top:20px; }
/* 安全页密码表单页脚：提示与按钮同行一单元，提示在左、按钮在右、垂直居中 */
#pwForm .form-foot{ align-items:center; }
#pwForm .form-foot .hint{ flex:1 1 auto; margin:0; min-width:0; }
.check-progress{ display:flex; align-items:center; gap:10px; margin-top:12px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--panel-2); }
.check-progress.page{ margin:0 0 16px; }
.check-progress .cp-label{ color:var(--sub); font-size:12.5px; font-weight:600; white-space:nowrap; }
.check-progress .pbar{ flex:1; min-width:0; }
.check-progress.mini{ margin-top:10px; }
.check-progress .btn{ flex:none; }
.sw-row .sw-t{ flex:1; min-width:0; }
.sw-row .sw-t b{ font-size:14.5px; font-weight:600; display:block; }
.sw-row .sw-t span{ font-size:12.5px; color:var(--sub); display:block; margin-top:1px; }
.sw{ position:relative; width:47px; height:28px; flex:none; display:inline-block; }
.sw input{ position:absolute; opacity:0; width:100%; height:100%; cursor:pointer; margin:0; z-index:2; }
.sw .tr{ position:absolute; inset:0; border-radius:999px; background:var(--track-2); transition:background .2s; }
.sw .tr::after{ content:""; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:#fff; transition:transform .22s var(--ease); box-shadow:0 2px 6px rgba(0,0,0,.4); }
.sw input:checked + .tr{ background:var(--acc); }
.sw input:checked + .tr::after{ transform:translateX(19px); }
/* 开关键盘焦点：隐藏 input 收到 :focus-visible 时给可见轨道描焦点环（与全站 .nc-copy 同语言：2px var(--acc) + offset 2px，浅深双主题同走变量；每日图柱子 1.0.83 起改用贴柱的 .dbar-focus 矩形，不再走 outline） */
.sw input:focus-visible + .tr{ outline:2px solid var(--acc); outline-offset:2px; }
.nav-row{
  display:flex; align-items:center; gap:14px; width:100%; text-align:left;
  background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:17px; margin-bottom:11px;
}
.nav-row .nr-ic{ width:40px; height:40px; border-radius:12px; background:var(--panel-3); display:grid; place-items:center; flex:none; color:var(--acc); }
.nav-row .nr-t{ font-weight:700; font-size:15.5px; display:block; }
.nav-row .nr-m{ color:var(--sub); font-size:12.5px; margin-top:1px; display:block; }
.nav-row .nr-chev{ margin-left:auto; color:var(--dim); flex:none; }

/* ---------- 设置子菜单（87 扁平列表 + B 选中卡片，1.0.92 比例放大） ----------
   带框扁平列表（容器细线边框 + 12px 圆角，行间细线分隔），副标题全无；
   栏宽 218→240px，行上下各 16px（约 54px 一行），图标 18px 直画，标题 15px/700；
   选中行是内嵌白底卡片（panel 底 + 细线边框 + 8px 圆角，上下左右各留 4/6px），
   标题品牌色；卡片下那行的分隔线去掉（卡片自己的底边就是分隔）；状态仍是行尾 pill。 */
.set-menu{ display:flex; flex-direction:column; margin-bottom:14px; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.set-item{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left;
  background:transparent; border:0; border-radius:0; padding:16px 14px;
  color:var(--txt); transition:background .18s;
}
.set-item + .set-item{ border-top:1px solid var(--line); }
.set-item:hover{ background:var(--hover); }
/* 图标是文字的配角：18px 描边、可认的隐喻，不加底座、不抢色。 */
.set-item .si-ic{ display:grid; place-items:center; flex:none; color:var(--dim); }
.set-item .si-ic svg{ width:18px; height:18px; }
.set-item .si-main{ flex:1; min-width:0; }
.set-item .si-t{ font-weight:700; font-size:15px; display:block; }
.set-item .si-chev{ color:var(--dim); flex:none; font-size:19px; line-height:1; }
.set-item.on{ width:auto; background:var(--panel); border:1px solid var(--line); border-radius:8px; margin:4px 6px; padding:16px 14px; }
.set-item.on .si-t{ color:var(--acc); }
.set-item.on + .set-item{ border-top-color:transparent; }
.set-page{ display:none; }
.set-page.on{ display:block; animation:viewIn .3s var(--ease); }
.quota-backbar{ display:none; }
@media (max-width:899px){
  /* 手机端左栏目录永不出现（chip 导航替代）；旧的 m-sub 态才隐藏目录的规则是错的——
     裸 go('settings') 进来时 settingsOpen=false、m-sub 不在，但子页（settingsTab）
     照常显示，目录 + chip + 子页三层叠在一起。目录在手机上直接 display:none。 */
  .view[data-view="settings"] .set-menu{ display:none; }
  /* 流量返回条：手机端流量只能从更多进入，故与设置子页返回条同规则——
     <900px 显示、点回更多；电脑端底栏直达，不加返回键（基础 display:none 兜底）。 */
  .view[data-view="quota"] .quota-backbar{
    display:flex; align-items:center; gap:12px; margin:2px 2px 14px;
  }
  .set-back{
    display:inline-flex; align-items:center; padding:8px 13px; border-radius:6px;
    background:var(--panel); border:1px solid var(--line-2); color:var(--txt);
    font-size:13.5px; font-weight:600; flex:none; min-height:36px;
  }
  .set-back-title{ font-size:17px; font-weight:700; letter-spacing:-.01em; }
}
@media (min-width:900px){
  .set-shell{ display:grid; grid-template-columns:240px minmax(0,1fr); gap:14px; align-items:start; }
  .set-menu{ position:sticky; top:96px; margin-bottom:0; }
  .set-item .si-chev{ display:none; }
}

/* ---------- 设置紧凑排版（桌面一屏看全） ---------- */
/* 运行设置：单卡成篇——标题行+状态角标、入口整行、上游双列、代理行为横排开关、
   数值一行三列（框内单位）、单 IP 下载上限独行、保存钮底部左侧 */
.rt-head{ display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; }
.rt-head-main{ flex:1; min-width:0; }
.rt-sub{ color:var(--sub); font-size:12.5px; margin-top:2px; }
.rt-badge{
  flex:none; display:inline-flex; align-items:center; gap:7px; padding:5px 11px;
  border:1px solid var(--line-2); border-radius:999px; background:var(--panel-2);
  font-family:var(--mono); font-size:11.5px; color:var(--sub); white-space:nowrap;
}
#runtimeForm .fld{ margin-bottom:11px; }
#runtimeForm textarea{ height:56px; min-height:56px; }
.form-sect{ display:flex; align-items:center; gap:12px; margin:16px 0 11px; }
.form-sect::before, .form-sect::after{ content:""; flex:1; height:1px; background:var(--line); }
.form-sect span{ font-size:13px; font-weight:700; color:var(--sub); letter-spacing:.04em; flex:none; }
.in-unit{ position:relative; }
.fld .in-unit input{ padding-right:48px; }
.in-unit .unit{
  position:absolute; right:13px; top:50%; transform:translateY(-50%);
  font-family:var(--mono); font-size:12px; color:var(--dim); pointer-events:none;
}
.in-unit input[type=number]{ -moz-appearance:textfield; appearance:textfield; }
.in-unit input[type=number]::-webkit-outer-spin-button,
.in-unit input[type=number]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
@media (min-width:761px){
  .fld-row.cols3{ grid-template-columns:repeat(3,1fr); }
}
.rt-actions{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
#runtimeForm .rt-actions{ margin-bottom:12px; }
/* 注意：attn 总与 primary 同时出现（panel.js：needed 时 primary 一定开），
   文字色必须留在 --acc-ink（白字/深字配品牌蓝底）；写 --acc-text 会与底色
   var(--acc) 同色，浅色下对比度 1:1、字完全看不见（2026-11-06 用户截图）。 */
.rt-actions #rtRestart.attn{ border-color:var(--acc); font-weight:700; }
/* 安全子页：桌面双列（名单 | 登录安全），窄屏单列 */
.sec-grid{ display:grid; grid-template-columns:1fr; gap:14px; align-items:start; }
@media (min-width:1100px){
  .sec-grid{ grid-template-columns:1fr 1fr; }
}
/* ---------- 登录安全状态区：总览行（盾牌+结论+拦截大数字）+ 磁贴格栅 ---------- */
.sec-hero{ display:flex; align-items:center; gap:12px; }
.sec-shield{
  flex:none; width:40px; height:40px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  color:var(--ok); background:var(--hover); border:1px solid var(--line-2);
}
.sec-hero.warn .sec-shield{ color:var(--warn-text); }
.sec-hero-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.sec-hero-main b{ font-size:15px; font-weight:700; }
.sec-hero-main span{ font-size:12px; color:var(--dim); line-height:1.45; }
.sec-hero-num{ flex:none; text-align:right; }
.sec-hero-num b{ display:block; font-family:var(--mono); font-size:20px; font-weight:700; line-height:1.15; }
.sec-hero-num span{ font-size:11.5px; color:var(--dim); }
.sec-cells{ display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:13px; }
.sec-cell{ background:var(--panel-2); border:1px solid var(--line); border-radius:14px; padding:11px 12px; min-width:0; }
.sec-cell .sc-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13px; font-weight:600; }
.sec-cell p{ margin:5px 0 0; font-size:12px; color:var(--sub); line-height:1.45; }
.sc-pill{
  flex:none; font-size:11px; font-weight:600; line-height:1; color:var(--ok);
  background:var(--hover); border:1px solid var(--line-2); border-radius:999px; padding:3px 8px;
}
.sc-pill.off{ color:var(--dim); }
.sc-num{ font-family:var(--mono); font-size:15px; font-weight:700; }
@media (max-width:560px){
  .sec-cells{ gap:7px; }
  .sec-cell{ padding:9px 10px; }
  .sec-hero-num b{ font-size:17px; }
}
/* ---------- 设置紧凑排版（手机端再压一轮；≥900px 桌面完全不受影响） ---------- */
@media (max-width:899px){
  .view[data-view="settings"] .tile{ padding:14px; }
  .view[data-view="settings"] .fld{ margin-bottom:10px; }
  .view[data-view="settings"] .fld label{ margin-bottom:5px; }
  .view[data-view="settings"] .fld input[type=text],
  .view[data-view="settings"] .fld input[type=password],
  .view[data-view="settings"] .fld input[type=number],
  .view[data-view="settings"] .fld input[type=url],
  .view[data-view="settings"] .fld select{ padding:9px 11px; }
  /* 运行设置：数值字段两列网格（覆盖 cols3 的宽屏三列） */
  #runtimeForm .fld{ margin-bottom:9px; }
  #runtimeForm .fld-row.cols3{ grid-template-columns:1fr 1fr; gap:9px; }
  #runtimeForm .fld-row{ gap:9px; }
  #runtimeForm textarea{ height:44px; min-height:44px; }
  /* 代理行为开关改纵向列表：每开关整行、文字左/开关右、行间分隔线（≥900 横排不动） */
  #runtimeForm .form-sect{ margin:12px 0 9px; }
  #runtimeForm .rt-actions{ margin-top:9px; }
  /* 数值网格：6 个普通字段已合并为单个 cols3 网格，手机两列流式排满
     （[重写|DNS]、[连接|响应头]、[全局|单IP并发]），不许任何普通字段整行占满；
     单 IP 下载上限是网格外的独立一行（.rt-speed），不在此列。单项行整行规则已提至 .fld-row 全局段（全端一致）。 */
  /* 表单主提交按钮整行宽，拇指好按且与输入框左右对齐 */
  #runtimeForm .rt-actions .btn, #quotaForm button[type=submit], #pwForm button[type=submit]{ width:100%; }
  /* 安全页密码页脚窄屏：提示独占一行在上，按钮整行宽在下 */
  #pwForm .form-foot{ flex-wrap:wrap; }
  #pwForm .form-foot .hint{ flex:1 1 100%; }
  #runtimeForm .rt-head{ margin-bottom:10px; }
  /* 其余子页顺扫：安全双块间距、备份/外观组距收紧 */
  .sec-grid{ gap:10px; }
  .view[data-view="settings"] .kv{ padding:4px 0; }
}

/* 操作记录：表格行 */
.audit-row td{ white-space:nowrap; }
.audit-row td:nth-child(3){ white-space:normal; }
.backup-row{ display:flex; gap:10px; align-items:center; padding:10px 2px; border-bottom:1px solid var(--line); flex-wrap:wrap; font-size:13.5px; }
.backup-row:last-child{ border-bottom:0; }
.b-name{ font-size:12.5px; font-weight:600; }
.backup-row .b-name{ font-family:var(--mono); font-size:12.5px; word-break:break-all; flex:1; min-width:180px; }
.backup-row .b-meta{ color:var(--sub); font-family:var(--mono); font-size:12px; }
.backup-row .b-actions{ display:flex; gap:7px; margin-left:auto; }

/* ---------- Sheet ---------- */
.scrim{
  position:fixed; inset:0; z-index:55; background:var(--scrim-bg);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  opacity:0; pointer-events:none; transition:opacity .25s;
}
.scrim.open{ opacity:1; pointer-events:auto; }
.sheet{
  position:fixed; z-index:60; left:0; right:0; bottom:0; max-height:86vh; overflow-y:auto;
  border-radius:26px 26px 0 0; padding:10px 22px calc(24px + env(safe-area-inset-bottom));
  transform:translateY(105%); visibility:hidden;
  transition:transform .34s var(--ease), visibility 0s linear .34s;
}
.sheet.open{ transform:none; visibility:visible; transition:transform .34s var(--ease), visibility 0s; }
.sheet .grab{ width:38px; height:4.5px; border-radius:4px; background:var(--track-2); margin:2px auto 14px; }
.sheet .sh-close{
  position:absolute; top:30px; right:16px; width:31px; height:31px; border-radius:50%;
  background:var(--panel-2); border:1px solid var(--line-2); display:grid; place-items:center; color:var(--sub); font-size:14px;
}
.sheet h3{ font-size:20px; font-weight:700; letter-spacing:-.01em; padding-right:56px; word-break:break-all; }
.sheet .sh-sub{ color:var(--sub); font-size:13px; margin-top:3px; font-family:var(--mono); word-break:break-all; }
.sheet .sh-poster-wrap{ width:100%; aspect-ratio:16/9; max-height:300px; border-radius:16px; margin-bottom:16px; overflow:hidden; position:relative; background:linear-gradient(140deg, rgba(var(--amb),.55), #101216); }
.sheet .sh-poster-wrap .wide-img .wi-main{ object-position:center; }
/* ---------- 更多抽屉 ---------- */
.more-drawer{ position:fixed; z-index:60; left:0; right:0; bottom:0; max-height:86vh; overflow-y:auto; border-radius:16px 16px 0 0; padding:10px 22px calc(24px + env(safe-area-inset-bottom)); transform:translateY(105%); visibility:hidden; transition:transform .34s var(--ease), visibility 0s linear .34s; }
.more-drawer.open{ transform:none; visibility:visible; transition:transform .34s var(--ease), visibility 0s; }
.more-drawer .grab{ width:38px; height:4.5px; border-radius:4px; background:var(--track-2); margin:2px auto 14px; }
.more-drawer-title-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.more-drawer-head h2{ font-size:17px; font-weight:700; letter-spacing:-.01em; }
.more-drawer-close{ width:36px; height:36px; border-radius:8px; background:var(--panel-2); border:1px solid var(--line-2); color:var(--txt); font-size:16px; }
.more-drawer-body{ margin-top:14px; }
.drawer-row{ display:flex; align-items:center; gap:14px; width:100%; min-height:56px; padding:12px 0; border-bottom:1px solid var(--line); text-align:left; color:var(--txt); }
.drawer-row:last-child{ border-bottom:0; }
.drawer-row .nr-ic{ width:40px; height:40px; border-radius:12px; background:var(--panel-3); display:grid; place-items:center; flex:none; color:var(--brand-text); }
.drawer-row .nr-t{ font-weight:600; font-size:15px; display:block; }
.drawer-row .nr-m{ color:var(--sub); font-size:12.5px; margin-top:1px; display:block; }
.drawer-row .nr-chev{ margin-left:auto; color:var(--dim); flex:none; }
@media (min-width:900px){
  .more-drawer{ left:auto; right:20px; top:84px; bottom:20px; width:430px; max-height:none; border-radius:12px; transform:translateX(112%); padding-top:18px; }
  .more-drawer.open{ transform:none; }
  .more-drawer .grab{ display:none; }
}
@media (min-width:900px){
  .sheet{
    left:auto; right:20px; top:84px; bottom:20px; width:430px; max-height:none;
    border-radius:24px; transform:translateX(112%); padding-top:18px;
  }
  .sheet.open{ transform:none; }
  .sheet .grab{ display:none; }
}
/* ---------- 紧凑确认对话框（纯确认/取消，替代大 Sheet） ---------- */
.confirm-wrap{
  position:fixed; inset:0; z-index:90; display:none;
  align-items:center; justify-content:center; padding:18px;
  background:var(--scrim-bg); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
}
.confirm-wrap.open{ display:flex; }
.confirm-card{
  width:min(92vw,360px); border-radius:20px; padding:22px;
  animation:cmdkIn .22s var(--ease);
}
.confirm-card h3{ font-size:17px; font-weight:700; letter-spacing:-.01em; }
.confirm-card p{ color:var(--sub); font-size:13.5px; line-height:1.55; margin-top:9px; }
.confirm-card .cf-actions{ display:flex; gap:9px; margin-top:18px; }
.confirm-card .cf-actions .btn{ flex:1; }

.backup-input-row{ display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.backup-input-row input{ flex:1; min-width:0; background:var(--panel-2); border:1px solid var(--line-2); border-radius:12px; padding:10px 12px; font-size:13.5px; outline:none; color:var(--txt); }
.backup-input-row input:focus{ border-color:var(--acc); }
.backup-input-row .lr-x{ color:var(--dim); padding:6px 9px; border-radius:8px; flex:none; font-weight:700; }
.backup-input-row .lr-x:hover{ color:var(--err); background:var(--hover); }

/* ---------- 命令面板 ---------- */
.cmdk-wrap{
  position:fixed; inset:0; z-index:70; display:none;
  background:var(--scrim-bg); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
  padding:11vh 14px 14px; align-items:flex-start; justify-content:center;
}
.cmdk-wrap.open{ display:flex; }
.cmdk{
  width:min(94vw,580px); border-radius:22px; overflow:hidden;
  animation:cmdkIn .22s var(--ease); max-height:74vh; display:flex; flex-direction:column;
}
@keyframes cmdkIn{ from{ opacity:0; transform:translateY(-12px) scale(.98);} to{ opacity:1; transform:none;} }
.cmdk input{
  width:100%; background:transparent; border:0; outline:none; padding:18px 20px 14px;
  font-size:17px; color:var(--txt); border-bottom:1px solid var(--line);
}
/* W51：输入框去掉 outline 后须有替代焦点状态（与全站 :focus-visible 同口径）。 */
.cmdk input:focus-visible{ outline:2px solid var(--acc); outline-offset:2px; border-bottom-color:var(--acc); }
.cmdk input::placeholder{ color:var(--dim); }
.cmdk-list{ overflow-y:auto; padding:8px; }
.cmdk-item{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left;
  padding:10px 12px; border-radius:12px; font-size:14px;
}
.cmdk-item .ci-ic{ width:30px; height:30px; border-radius:9px; background:var(--hover-2); display:grid; place-items:center; flex:none; color:var(--sub); font-size:13px; }
.cmdk-item .ci-t{ flex:1; min-width:0; }
.cmdk-item .ci-t b{ font-weight:600; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cmdk-item .ci-t span{ font-size:12px; color:var(--dim); font-family:var(--mono); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cmdk-item .ci-k{ font-family:var(--mono); font-size:11px; color:var(--dim); letter-spacing:.1em; flex:none; }
.cmdk-item.sel{ background:var(--hover-2); }
.cmdk-item mark{ background:none; color:var(--acc-text); font-weight:700; }
.cmdk-empty{ padding:26px; text-align:center; color:var(--dim); font-size:13.5px; }
.cmdk-hint{ padding:8px 16px 10px; border-top:1px solid var(--line); color:var(--dim); font-size:12px; text-align:center; }

/* ---------- 手机一屏化收紧 + 顺扫（≤759px，桌面不受影响） ---------- */
@media (max-width:759px){
  /* 手机 hero 不固定高：有会话时内容约 279px > 250px，顶上溢出会裁掉“播放中”标签；
     auto + min-height 让它随内容长，待机仍保 250px 底线（与公共页手机墙格子对齐，
     公共页手机墙高 clamp(230px,64vw,300px)，390px 视口下格子约 110px）。 */
  .hero{ height:auto; min-height:250px; }
  .hero-in{ padding:20px; }
  .tile:not(.hero){ padding:16px; }
  .sec-title{ margin-top:20px; }
  /* 数据页周期行：筹码一行、导出行（标签+下拉+按钮）换行后整齐成第二行 */
  #periodChips > span{ flex:0 0 100% !important; height:0; }
  #periodChips .mini-select{ flex:1 1 120px; min-width:0; }
  #periodChips #csvBtn{ flex:none; }
  .wh-card{ flex-basis:120px; }
  .wh-row{ gap:12px; }
  .play-row{ flex-wrap:wrap; }
  .pr-poster{ width:56px; }
  /* 1.0.80：手机卡收紧——海报不再独占一行，改贴文字左侧；状态行另起整行，
     免得挤进第一行把标题压窄。路径行手机上隐藏（点详情里还有）；桌面不动。 */
  .play-row .pr-main{ flex:1 1 0; min-width:0; }
  .play-row .pr-ep{ display:none; }
  .play-row .pr-status{ flex:1 1 100%; margin-left:0; }
  .play-row .pr-actions{ width:100%; margin-top:10px; }
  .play-row .pr-actions .btn{ flex:1; height:36px; }
  .live-strip .ls-main{ width:100%; }
  .live-strip .ls-upd{ width:100%; margin-left:0; }
  .wh-toolbar .wh-search{ width:100%; }
  .wh-toolbar .wh-filters{ width:100%; display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; }
  .wh-toolbar .wh-filters .mini-select{ height:36px; min-width:0; }
}
@media (max-width:380px){
  /* 320px 宽总宽复算：5 钮×52 + gap 8 + Dock 内边距 12 = 280，再 + 头像钮 48 + 钮距 8 = 336 > 320 溢出；
     钮收紧到 47 后总宽 = 235+8+12 + 48+8 = 311 ≤ 320。390 宽（走 57 档：361 ≤ 390）与桌面均不受影响 */
  /* 节点页图片缓存三格小统计在 360 宽下收紧内边距保可读 */
  .cache-stat-grid{ gap:7px; }
  .cstat{ padding:8px 9px; }
}

/* 首页状态卡与文本按钮 */
.stat-grid{ grid-column:1 / -1; display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:16px; }
.stat-grid .tile{ grid-column:auto; }
.stat-card .big-num{ font-size:24px; }
.stat-card .big-num.sm{ font-size:20px; }
.t-sess{ margin-top:12px; display:flex; flex-direction:column; gap:8px; }
.t-sess .chips{ margin-top:0; }
.t-sess-ep{ font-size:13px; color:var(--sub); font-family:var(--mono); word-break:break-all; }
.t-sess-idle{ font-size:13px; color:var(--dim); }
.stat-note{ color:var(--sub); font-size:13.5px; margin-top:6px; }
.card-link{ display:inline-flex; align-items:center; min-height:44px; padding:10px 0 4px; color:var(--acc); font-weight:600; font-size:13.5px; gap:6px; }
.card-link:hover{ text-decoration:underline; }
.card-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-top:8px; }
.status-line{ display:flex; align-items:center; gap:7px; font-size:13.5px; color:var(--txt); margin-top:6px; }
.quota-block{ margin-top:12px; border-top:1px solid var(--line); padding-top:12px; }
.quota-bar-row{ display:flex; align-items:center; gap:10px; }
.quota-bar-row .pbar{ flex:1; min-width:0; } /* 1.0.78：之前缺 flex，条在行里缩成 0px 只剩百分比飘着；与节点页 .check-progress .pbar 同款写法 */
.quota-pct{ font-family:var(--mono); font-size:12.5px; color:var(--sub); white-space:nowrap; }

@media (min-width:760px) and (max-width:1023px){
  .stat-grid{ grid-template-columns:1fr 1fr; }
  .stat-grid .stat-card:last-child{ grid-column:1 / -1; }
  .hero{ height:280px; }
}
@media (max-width:759px){
  .stat-grid{ grid-template-columns:1fr; }
}

/* ---------- 提示 / 杂项 ---------- */
.toast-stack{
  position:fixed; z-index:80; left:50%; transform:translateX(-50%);
  bottom:calc(96px + env(safe-area-inset-bottom));
  display:flex; flex-direction:column; gap:8px; max-width:min(92vw,420px); width:max-content;
  pointer-events:none;
}
.toast-item{
  display:flex; align-items:center; gap:8px; border-radius:999px; padding:8px 16px;
  font-size:13.5px; font-weight:600; background:var(--glass-bg);
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  border:1px solid var(--glass-line); box-shadow:var(--glass-shadow); color:var(--txt);
  pointer-events:auto;
}
.toast-item.error{ border-radius:12px; color:var(--err); background:var(--panel); border-color:var(--line-2); }
.toast-item .toast-msg{ white-space:normal; word-break:break-word; }
.toast-item .toast-err-ico{ width:22px; height:22px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:var(--err); color:#fff; font-weight:700; font-size:13px; flex:none; }
.toast-item .toast-close{ width:44px; height:44px; margin:-8px -12px -8px 0; border-radius:10px; color:var(--err); font-size:18px; }
.toast-item b{ color:var(--brand-text); }
.empty-box{ text-align:center; padding:34px 16px; color:var(--dim); font-size:13.5px; }
.empty-box.slim{ padding:11px 14px; font-size:13px; }
/* 播放页空态卡片（合集 ex-empty-state-card 写法：带框卡片 + 宽留白 + 图标 + 一行说明；
   只用在 #sessList 的无会话空态；pill 弹层的空态仍用裸 .empty-box） */
.idle-strip{ display:flex; align-items:center; gap:8px; background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:10px 14px; margin-bottom:8px; font-size:13px; color:var(--sub); }
.idle-strip .is-dot{ font-size:11px; }
@media (prefers-reduced-motion: reduce){
  /* W49：旧兜底只压时长——infinite 照常每 1ms 循环一轮、逐格延迟仍在；
     再加迭代 1 次与延迟清零，无限动画才真正停在终态（与公共页
     frontend.css 的同款兜底同口径）。 */
  *,*::before,*::after{ animation-duration:.001s !important; animation-iteration-count:1 !important; animation-delay:0s !important; transition-duration:.001s !important; }
}

/* 右下角常驻版本标（Beam + 版本号，低调小字，不挡 Dock 与操作） */
.ver-badge{
  position:fixed; z-index:39; right:16px; bottom:calc(16px + env(safe-area-inset-bottom));
  font-family:var(--mono); font-size:11px; letter-spacing:.05em; color:var(--dim);
  pointer-events:none; user-select:none; white-space:nowrap;
}
/* 手机：版本标不再 fixed 浮压内容，落到页面流末尾做静态一行（桌面保持
   右下角 fixed 不变）。 */
@media (max-width:899px){
  .ver-badge{
    position:static;
    display:block;
    /* 底部留白越过 fixed 的 Dock，滚到底也能看见这一行 */
    margin:22px 2px calc(96px + env(safe-area-inset-bottom));
    text-align:right;
    white-space:normal;
  }
}
/* ---------- 观看记录（网关视角） ---------- */
/* 与会话卡同语言：sess-card 行 + poster-wrap 海报；进度环是
   conic 渐变描边（--p 直接带 % 单位，两停靠位同值硬切，不用
   calc×var——渐变停靠位里的 calc 在移动端曾画满）。桌面与
   手机同一套布局：列表行左右排、首页行横向滚动，不做单端降级。 */
.wh-home{ margin-top:24px; }
.wh-home-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.wh-row{ display:flex; gap:14px; overflow-x:auto; padding:2px 2px 12px; scroll-snap-type:x proximity; }
.wh-card.pending{ cursor:default; }
.wh-pending-badge{ display:inline-block; margin-left:8px; padding:2px 6px; border-radius:4px; background:var(--ok); color:var(--ok-ink); font-size:12px; vertical-align:middle; }
.wh-scope{ flex:1 1 100%; color:var(--dim); font-size:12px; margin:-6px 0 12px; }
.wh-scope:empty{ display:none; }
.count-badge{ display:inline-flex; align-items:center; padding:3px 8px; border-radius:999px; background:var(--hover); border:1px solid var(--line-2); color:var(--sub); font-size:12px; font-weight:600; }
.recent-sub{ font-size:12px; font-weight:650; color:var(--dim); letter-spacing:.08em; margin:14px 2px 8px; display:flex; align-items:center; gap:7px; }
.recent-sub::after{ content:""; flex:1; height:1px; background:var(--line); }
.recent-group .recent-row:last-child{ margin-bottom:0; }
.wh-card{ flex:0 0 128px; padding:0; background:transparent; border:0; text-align:left; cursor:pointer; scroll-snap-align:start; }
/* W52：手机 120px 被上面基础规则的 flex 简写（128px）按顺序盖掉——
   同断点规则放基础规则之后，后写获胜，手机恢复 120px。 */
@media (max-width:759px){ .wh-card{ flex:0 0 120px; } }
.wh-card .poster-wrap{ width:100%; height:auto; display:block; }
.wh-card h4{ font-size:13px; font-weight:700; margin-top:8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.35; }
.wh-card p{ font-size:12px; color:var(--sub); margin-top:4px; }
/* 进度环：环是 inline-flex 容器——
   只有这样，里面的 poster-wrap <span> 才会被 block 化、74×110 与
   aspect-ratio 才生效。之前环是 display:block，wrap 仍是 inline
   <span>，宽高被忽略、盒子塌到约 0 宽：图 paint 在 0 尺寸盒里不可见，
   占位文字在塌盒里竖排——而直播卡的 wrap 是 sess-card 的直接 flex
   item（天生被 block 化），所以同一张图直播卡有、历史行没有。 */
.wh-ring{ display:inline-flex; padding:4px; border-radius:16px; background:conic-gradient(var(--acc) var(--p, 0%), var(--track) var(--p, 0%)); }
.wh-item .wh-ring{ flex:none; }
/* 首页继续观看卡：海报环必须占满卡宽——无海报图时 wrap 是 width:100%，
   环 shrink-to-fit 会连 wrap 一起塌到 0×0（只剩 4px padding 的 8×8 点，
   百分比溢出还会被裁成“7%”）；有图时环本来就是卡宽，此规则不改变观感。 */
.wh-card .wh-ring{ width:100%; }
/* 历史行不是会话卡：视觉与 sess-card 同款（行布局/面板底/线框/圆角），
   但不用 sess-card 类名——播放页按 .sess-card 计数的断言（如“断开后会话卡
   消失”）只应数实时会话，历史行混入会让它误判。 */
.wh-item{
  display:flex; gap:16px; background:var(--panel);
  border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin-bottom:10px;
  transition:border-color .2s; cursor:pointer; width:100%; text-align:left;
}
.wh-item:hover{ border-color:var(--line-2); }
/* 观看记录工具栏：窄屏沿用旧排布（筛选行 + 下方通栏搜索行），
   宽屏（≥1024px）筛选与搜索同行、搜索居右，消掉搜索独占一行
   拖出的空行；搜索本身仍是 1.0.6 的细线样式，只换位置不动外观。 */
.wh-toolbar{ display:flex; flex-direction:column; }
.wh-filters{ display:flex; gap:8px; flex-wrap:nowrap; margin:10px 0 14px; }
.wh-filters .mini-select{ flex:1 1 0; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* 观看记录搜索框：安静的搜索行——放大镜图标 + 无边框
   输入框 + 底部细线，不再是实心药丸；字号 16px 是 iOS Safari 聚焦不自动
   放大的阈值，只动 #whSearch，不动其它输入框与筛选下拉；
   窄屏独立一行通栏，宽屏与筛选同行居右；聚焦时细线走强调色。 */
.wh-search{ display:flex; align-items:center; gap:8px; margin:0 0 14px; padding:7px 2px; border-bottom:1px solid var(--line-2); }
.wh-search-ico{ flex:none; display:flex; color:var(--dim); }
.wh-search-ico svg{ display:block; }
#whSearch{ flex:1; min-width:0; background:transparent; border:0; outline:0; padding:0; border-radius:0; font-size:16px; color:var(--txt); -webkit-appearance:none; appearance:none; }
#whSearch::placeholder{ color:var(--dim); }
.wh-search:focus-within{ border-bottom-color:var(--acc); }
@media (min-width:1024px){
  .wh-toolbar{ flex-direction:row; flex-wrap:wrap; align-items:center; gap:10px 12px; margin:10px 0 14px; }
  .wh-toolbar .wh-search{ margin:0; flex:0 1 320px; min-width:240px; max-width:360px; }
  .wh-toolbar .wh-filters{ margin:0 0 0 auto; flex:0 1 auto; min-width:0; justify-content:flex-end; }
  .wh-toolbar .wh-filters .mini-select{ flex:none; min-width:0; max-width:170px; }
}
.wh-meta{ display:block; color:var(--sub); font-size:12.5px; margin:6px 0 10px; }
.wh-pct{ font-size:12.5px; color:var(--sub); margin-top:8px; }
.wh-series{ margin-bottom:13px; }
.wh-series-head{ align-items:center; }
.wh-ring{ position:relative; }
/* 环上百分比压在照片/深色占位上：双主题一律白色 + 深色投影（不能用主题文字色，
   浅色下黑字压在照片上直接看不见——用户 2026-11-06 实测指出）。 */
.wh-ring-pct{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:2; font-family:var(--mono); font-size:12px; font-weight:700; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.65), 0 0 8px rgba(0,0,0,.35); pointer-events:none; }
/* 环上有百分比时藏起“暂无海报”占位字：两者居中重叠会糊成“暂 50% 报”。 */
.wh-ring .poster-ph{ display:none; }
.wh-expand-text{ color:var(--dim); font-size:12px; white-space:nowrap; }
.wh-chev{ margin-left:auto; color:var(--sub); font-size:16px; transition:transform .2s; flex:none; }
.wh-series.open .wh-chev{ transform:rotate(180deg); }
/* 最近结束折叠标题：复用组展开的 ▾ 语言（同一字形、同一旋转）；按钮只清
   UA 默认样式，字号/字重/间距沿用 .sec-title。 */
.recent-head{ background:none; border:0; padding:0; cursor:pointer; color:inherit; font-family:inherit; width:100%; text-align:left; }
.recent-head .wh-chev{ margin-left:auto; }
.recent-fold.open .wh-chev{ transform:rotate(180deg); }
.wh-eps{ margin:4px 0 0 37px; padding-left:14px; border-left:2px solid var(--line); }
.wh-eps .wh-item:last-child{ margin-bottom:0; }
/* 展开子行海报：.wh-item 是 flex，默认
   align-items:stretch 会把海报环拉到与文字列同高——子行标题 2 行 +
   元信息 2 行，文字列高于 110px 海报，环被拉长、图仍 2:3，下方就
   露出一段暗色环底；正常行文字列矮、海报本就定高，看不出拉伸。
   只给展开子行的环 align-self:flex-start（顶部对齐、不拉伸），
   正常行、首页卡、详情 sheet、公共墙一律不动。 */
.wh-eps .wh-item .wh-ring{ align-self:flex-start; }
@media (max-width:759px){
  .wh-eps{ margin-left:12px; padding-left:10px; }
}

/* Beam 设置视图 Stage 7 */
.restart-pill{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:44px; padding:0 12px; border-radius:999px; margin-left:8px;
  font-size:12px; font-weight:600; color:var(--warn-text);
  background:var(--hover); border:1px solid var(--line-2); white-space:nowrap;
}
.restart-pill:disabled{ opacity:.55; cursor:default; }
.set-chips{ display:none; gap:8px; overflow-x:auto; padding:2px 2px 10px; scrollbar-width:none; }
.set-chips::-webkit-scrollbar{ display:none; }
.set-chip{
  flex:none; min-height:44px; padding:0 14px; border-radius:999px; font-size:13px; font-weight:600;
  background:var(--panel); border:1px solid var(--line-2); color:var(--sub); white-space:nowrap;
}
.set-chip.on{ background:var(--brand-surface); color:var(--acc-text); border-color:var(--acc); }
.set-page-title{ font-size:24px; font-weight:650; letter-spacing:0; line-height:1.2; outline:none; }
/* 状态 pill（Linear status-badge：胶囊、2px 8px、caption 级）：只在有
   文字时出现，空着不占位；放行尾、chevron 之前。 */
.si-status{ display:none; }
.si-status:not(:empty){ display:inline-block; flex:none; color:var(--dim); background:var(--track); font-size:11.5px; line-height:1.5; padding:2px 8px; border-radius:999px; }
.rt-public-line{ display:flex; gap:8px; align-items:center; }
.rt-public-line input{ flex:1; min-width:0; }
.rt-public-line .btn{ flex:none; }
.linklike{ color:var(--acc-text); font-weight:600; border:0; background:none; padding:0; cursor:pointer; font-size:inherit; }
.sw-list .sw-row.tall{ min-height:56px; padding-top:14px; padding-bottom:14px; }
.rt-adv-group{ margin-top:14px; }
.rt-adv-head{
  display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:10px 0;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line); font-size:13px; font-weight:650;
  color:var(--txt); text-align:left; cursor:pointer;
}
.rt-adv-summary{ margin-left:auto; color:var(--sub); font-size:12px; font-weight:500; white-space:nowrap; }
/* 1.0.81：底栏不再是带框的 sticky 悬浮块，变回表单末尾的普通行
   （去 sticky 顺手治了滚动中途切断内容；按钮改小档 .btn.sm，见 panel.html）。 */
.rt-actions-bar{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:14px;
}
.rt-dirty{ color:var(--sub); font-size:12.5px; white-space:nowrap; }
.rt-actions-bar .rt-actions{ margin:0; margin-left:auto; }
.sec-grid{ grid-template-columns:1fr !important; }
@media (max-width:560px){
  .sec-cells{ grid-template-columns:1fr; }
  .rt-actions-bar .rt-actions{ width:100%; }
  .rt-actions-bar .rt-actions .btn{ flex:1; }
}
@media (max-width:899px){
  .set-chips{ display:flex; position:sticky; top:calc(var(--topbar-h) + env(safe-area-inset-top) + 8px); z-index:20; }
  .set-page-title{ margin-top:4px; }
  .view[data-view="settings"] .tile{ padding:14px; }
}

/* ---------- 流量视图补丁 ---------- */
.dlabel{ font-size:12px; }
.daxis{ fill:var(--dim); font-family:var(--mono); font-size:12px; font-variant-numeric:tabular-nums; }
.dgrid{ stroke:var(--line); stroke-width:1; }
.dbar-hit{ fill:transparent; }
.daily-scale-row{ display:flex; align-items:center; gap:10px; margin-top:12px; flex-wrap:wrap; }
.daily-scale-row .seg button{ min-height:36px; }
.daily-scroll-hint{ margin:8px 0 -4px; color:var(--dim); font-size:12px; }
.daily-empty{ margin:12px 0 0; color:var(--dim); font-size:13.5px; }
.visually-hidden{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.fld-row.quota-grid{ grid-template-columns:repeat(3,1fr); gap:12px; }
@media (max-width:899px){
  .fld-row.quota-grid{ grid-template-columns:1fr; }
}

/* 1.0.30: 手机数据日志元信息拆行，时间戳不被挤出；桌面仍单行省略（DS flash 补丁） */
@media (max-width:759px){
  .data-toolbar{ flex-wrap:wrap; }
  .data-toolbar .wh-search{ flex:1 1 100%; }
  .data-toolbar .mini-select{ min-height:36px; }
  .data-toolbar .btn.sm{ min-height:36px; }
  .log-table{ min-width:600px; }
  .log-detail-grid{ grid-template-columns:1fr; }
  .chart-wrap{ padding:14px; }
  .chart-actions{ width:100%; justify-content:space-between; }
}
/* 1.0.30: 仅节点编辑 Sheet 的 #sheetBody 滚动（其它 Sheet 不动）。
   1.0.48 回滚了同批的 .form-foot 粘性底：粘性半透明底栏在滚动中途
   盖住最后一行（STRM 行的说明被透底、开关被保存钮压住），保存区
   改回跟随表单末尾，任何滚动位置都不再遮挡行。 */

/* 1.0.49: 添加/编辑节点 Sheet 紧凑排版（只动 #nodeForm，不动其它表单）：
   默认内容（无备用线路、无预检结果）在 800px 及以上窗口不用滚动。
   1.0.51: 分区标题与 IP 族项已删（DS 补丁），关闭叉改入标题行：
   旧的 .sh-close right:44px / h3 padding-right:84px 已随悬空定位一并作废，
   通用 .sheet .sh-close 规则不动（其他 sheet 仍走绝对定位）。
   DS 补丁的 #nodeForm .fld-row flex 覆盖未采纳：全局 .fld-row 已是
   两列网格、≤560px 自动单列，改 flex 会让手机端名称/后缀挤在一行。 */
#nodeForm{ margin-top:4px; }
#nodeForm .fld{ margin-bottom:6px; }
#nodeForm .sw-row{ padding:6px 0; }
#nodeForm .fld input[type=text]{ padding:8px 12px; }
/* 仅节点表单：标题行 flex 布局，关闭叉作为行内按钮（DS 补丁原意，
   仅纠正变量名：--text-1/--accent 在本项目不存在，实为 --txt/--acc）。 */
.sheet:has(#nodeForm) .node-title-row{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:44px; margin:0 0 4px;
}
.sheet:has(#nodeForm) .node-title-row h3{
  flex:1 1 auto; min-width:0; margin:0; padding-right:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.sheet:has(#nodeForm) .node-title-row .sh-close{
  position:static; top:auto; right:auto; flex:0 0 auto;
  width:40px; height:40px; min-width:40px; min-height:40px; margin:0;
  border-radius:12px; display:grid; place-items:center; font-size:18px; cursor:pointer;
  background:var(--panel-2); border:1px solid var(--line-2); color:var(--txt); box-shadow:none;
}
.sheet:has(#nodeForm) .node-title-row .sh-close:hover{
  background:var(--panel-3); border-color:var(--acc); color:var(--txt);
}
.sheet:has(#nodeForm) .node-title-row .sh-close:focus-visible{
  outline:2px solid var(--acc); outline-offset:2px;
}
@media (min-width:900px){
  .sheet:has(#nodeForm){ top:20px; bottom:12px; padding-top:12px; padding-bottom:12px; }
  #nodeForm .fld{ margin-bottom:5px; }
  #nodeForm .sw-row{ padding:4px 0; }
  #nodeForm .fld input[type=text]{ padding:8px 12px; }
}
.sheet:has(#nodeForm){ display:flex; flex-direction:column; overflow:hidden; }
.sheet:has(#nodeForm) > .grab{ flex:none; }
.sheet:has(#nodeForm) #sheetBody{ flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }

/* 1.0.52: 节点表单大改（DS 修正稿，结构见 panel.js openNodeSheet）：
   字段组卡片 + 备用线路折叠卡片 + 开关 2 列卡片网格 + 通栏保存钮。
   保存钮仍在文档流末尾，严禁 sticky/fixed 悬空底栏（1.0.48 回滚教训）。
   两处最小忠实纠正（以纠正版为准）：① DS 原稿 .sw-grid .sw-row 写了
   border:1px 后又 border-bottom:0，会把卡片底边删掉——改为全边框；
   ② 开关组本身不再套第二层卡片（否则卡片套卡片且内外同底色），
   .nf-group--switches 去卡片化，卡片只在 .sw-grid 内的 .sw-row 上。 */
#nodeForm .nf-group{ background:var(--panel-2); border:1px solid var(--line); border-radius:14px; padding:14px; }
#nodeForm .nf-group + .nf-group{ margin-top:12px; }
#nodeForm .nf-group--fields{ display:flex; flex-direction:column; gap:12px; }
#nodeForm .nf-group--fields .fld{ margin-bottom:0; }
#nodeForm .nf-group--switches{ background:transparent; border:0; padding:0; }
#nodeForm #neBackupToggle.backup-fold{ display:flex; align-items:center; gap:8px; width:100%; padding:0; border:0; background:transparent; color:var(--txt); font:inherit; cursor:pointer; }
#nodeForm .backup-fold-title{ font-weight:600; }
#nodeForm .backup-fold-count{ color:var(--dim); font-size:12px; }
#nodeForm .backup-fold-chevron{ width:8px; height:8px; margin-left:auto; border-right:1.5px solid var(--txt); border-bottom:1.5px solid var(--txt); transform:rotate(45deg); transition:transform .2s var(--ease); }
#nodeForm #neBackupToggle[aria-expanded="true"] .backup-fold-chevron{ transform:rotate(225deg); }
#nodeForm #neBackupBody{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
#nodeForm #neBackupBody[hidden]{ display:none; }
#nodeForm #neBackupBody .backup-input-row{ margin-bottom:0; }
#nodeForm .sw-grid{ display:grid; grid-template-columns:1fr; gap:10px; }
@media (min-width:900px){
  #nodeForm .sw-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
#nodeForm .sw-grid .sw-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0; padding:12px 14px; background:var(--panel-2); border:1px solid var(--line); border-radius:14px; }
#nodeForm .sw-grid .sw-t b{ display:block; color:var(--txt); font-weight:600; }
#nodeForm .sw-grid .sw-t span{ display:block; margin-top:2px; color:var(--sub); font-size:12px; line-height:1.5; }
#nodeForm .form-foot{ display:flex; justify-content:flex-end; position:static; }
/* 保存按钮窄身靠右（不再通栏大钮）；窄屏下也不拉伸（压过全局 .form-foot .btn{flex:1}）。 */
#nodeForm .form-foot .btn{ flex:none; }

/* 1.0.53: 手机端节点表单名称与后缀同行（用户 2026-11-04 点名）：
   仅 #nodeForm 的 .fld-row 在 ≤560px 时保持两列，其它表单仍按全局规则单列。
   （此前 DS 补丁的同类覆盖未采纳是旧判断，现以用户本次明确要求为准。） */
@media (max-width:560px){
  #nodeForm .fld-row{ grid-template-columns:1fr 1fr; }
}

/* 1.0.30: 海报墙全部失败后的重试按钮（DS second 批 maybeAddPosterReload；墙是绝对定位网格，按钮居中悬浮） */
.poster-wall .pw-reload{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:3; padding:9px 18px; border-radius:6px; background:var(--panel-2); border:1px solid var(--line-2); color:var(--txt); font-size:13px; font-weight:600; cursor:pointer; }

/* W49：减动效集中覆盖——放文件末尾，同优先级下后写获胜，补上前面
   @media (prefers-reduced-motion) 块被后续正常规则盖掉的三处：
   刻度环（:1013 的同选择器被 :1040 的同优先级规则后写覆盖）、在播
   状态点（:1022 被 :1088 覆盖）、手机横向流动线（#chainLinkPlayer
   的 ID 优先级 (1,1,1) 压过 :1003 的类规则 (0,2,1)）。舞台流动线
   随 W1 舞台删除已无对应规则，不再列。 */
@media (prefers-reduced-motion: reduce){
  .tick-ring.anim i.on{ animation:none; opacity:1; }
  .nc-now-dot{ animation:none; }
  .chain-link.live::after{ animation:none; }
  #chainLinkPlayer.live::after{ animation:none; }
  .livepill .dot, html[data-theme="light"] .livepill .dot{ animation:none; }
  .live-eq i{ animation:none; }
}
