/* 二维码管理 / 网关中心 · 只作用于 .qr-module 内部的 qr-* 类，避免与现有页面样式冲突 */
/* 关闭视图入场动画：.view.is-active 的 transform 动画会让 .qr-module 成为 fixed 定位的包含块，
   浮层（气泡菜单 / 日历）会按整段内容高度居中定位，内容一长就跑到屏幕外。
   注意 index.html 中 app.css 在 qr.css 之后加载，这里必须用更高优先级，否则会被 .view.is-active 覆盖。 */
#view-qr.view.is-active,
#view-gateway.view.is-active{animation:none}
/* 等宽字体栈只登记一次：卡片 ID / 密钥 / 端点 / 文档源码共用 */
.qr-module{--qr-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.qr-module .qr-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.qr-module .qr-head__sub{margin:0;font-size:12.5px;color:var(--muted);line-height:1.7}
.qr-module .qr-head__acts{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.qr-module .qr-head__acts .btn,
.qr-module .qr-foot .btn{height:36px;padding:0 13px;border:1px solid var(--line);border-radius:var(--radius-sm);
  background:var(--card);color:var(--ink);font-size:13px;font-weight:500;white-space:nowrap;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:.15s}
.qr-module .qr-head__acts .btn:hover,
.qr-module .qr-foot .btn:hover{background:var(--bg-soft);border-color:var(--line-2)}
.qr-module .btn--primary{background:var(--brand);border-color:var(--brand);color:var(--white)}
.qr-module .btn--primary:hover{background:var(--brand-2);border-color:var(--brand-2);color:var(--white)}
.qr-module .btn--danger{background:var(--bad-soft);border-color:var(--bad);color:var(--bad);font-weight:600}
.qr-module .btn--danger:hover{background:var(--bad-soft);border-color:var(--bad-ink);color:var(--bad-ink)}
.qr-module .btn--sm{height:30px;padding:0 10px;font-size:12px}
.qr-module .btn--ghost{background:transparent;border-color:transparent;color:var(--muted)}
.qr-module .btn--ghost:hover{background:var(--bg-soft);color:var(--ink)}
.qr-module .btn[disabled]{opacity:.55;cursor:not-allowed}
.qr-module .btn svg{width:15px;height:15px}

/* ── 二级页签：基础样式见 ui.css 的 .tabs / .tab，这里只保留未读徽标 ── */
.qr-module .qr-tab__dot{margin-left:6px;min-width:17px;height:17px;padding:0 5px;border-radius:9px;
  display:inline-grid;place-items:center;background:var(--bad);color:var(--white);font-size:10.5px;font-weight:600;vertical-align:1px}
.qr-module .qr-tab.is-on .qr-tab__dot{background:var(--white);color:var(--bad)}
.qr-module .qr-tab__dot[hidden]{display:none}

/* 头部横幅三块同排：优先保证「近 3 小时」板块有足够宽度，账户配额始终单行显示 */
.qr-module .qr-week{display:grid;gap:6px;margin-bottom:16px;align-items:stretch;
  grid-template-columns:minmax(0,4fr) minmax(0,3fr) minmax(500px,3fr)}
.qr-module .qr-week__group{display:grid;gap:1px;min-width:0;background:var(--line);
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.qr-module .qr-week__group--join{grid-template-columns:repeat(5,minmax(0,1fr))}
.qr-module .qr-week__group--due{grid-template-columns:repeat(4,minmax(0,1fr))}
.qr-module .qr-week__group--slot{grid-template-columns:minmax(0,1fr)}
.qr-module .qr-week__cell{background:var(--card);padding:7px 4px;min-width:0;text-align:center}
.qr-module .qr-week__group--join .qr-week__cell{background:var(--brand-soft)}
.qr-module .qr-week__group--due .qr-week__cell{background:var(--warn-soft)}
/* 说明标记：每个统计格标题后跟一个小 i，悬停该格可看账户 / 地区明细 */
.qr-module .qr-week__info{display:inline-grid;place-items:center;width:12px;height:12px;margin-left:3px;
  vertical-align:1px;border-radius:50%;background:var(--card);border:1px solid var(--line-2);
  color:var(--muted);font-style:normal;font-size:9px;font-weight:700;line-height:1;pointer-events:none}
.qr-module .qr-week__cell > span{display:block;font-size:10.5px;color:var(--muted);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.qr-module .qr-week__cell > b{display:block;margin-top:2px;font-size:17px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.qr-module .qr-week__cell > b em{font-style:normal;font-size:11px;font-weight:500;color:var(--muted);margin-left:2px}
.qr-module .qr-week__cell > b.up{color:var(--good)}
.qr-module .qr-week__cell > b.down{color:var(--warn)}
.qr-module .qr-week__slots{display:flex;flex-wrap:nowrap;justify-content:center;gap:4px;margin-top:8px;
  overflow-x:auto;scrollbar-width:none}
.qr-module .qr-week__slots::-webkit-scrollbar{display:none}
.qr-module .qr-slot{display:inline-flex;flex:0 0 auto;align-items:center;gap:3px;padding:1px 6px;border-radius:999px;
  background:var(--bg-soft);font-size:10.5px;color:var(--ink-2);white-space:nowrap}
.qr-module .qr-slot b{font-size:10.5px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.qr-module .qr-slot.is-full{background:var(--bad-soft);color:var(--bad)}
.qr-module .qr-slot.is-full b{color:var(--bad)}

/* ── 筛选栏 ── */
/* ⚠ 已抽离至 ui.css `.ui-toolbar`（V1.7，二维码已迁移）。
   保留原因：jy / mail 等板块仍在用 .qr-filters/.lbl/.grow/.fixed，Phase 2 逐板块替换；
   禁止新增使用，触碰相关页面时必须改为 .ui-toolbar / .ui-toolbar--panel。 */
.qr-module .qr-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px;padding:10px;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.qr-module .qr-filters .lbl{font-size:11.5px;color:var(--muted);flex:0 0 auto}
.qr-module .qr-filters select,
.qr-module .qr-filters input[type=date]{height:32px;padding:0 9px;border:1px solid var(--line);border-radius:var(--radius-sm);
  background:var(--card);font-size:12px;color:var(--ink)}
.qr-module .qr-filters select{min-width:94px;padding-right:6px}
.qr-module .qr-filters input[type=date]{min-width:132px;font-variant-numeric:tabular-nums}
.qr-module .qr-filters .grow{flex:1}
.qr-module .qr-filters .fixed{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;
  border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg);font-size:12px;color:var(--muted)}
.qr-module .qr-filters .fixed b{color:var(--ink);font-weight:600}
.qr-module .qr-search{display:flex;align-items:center;width:240px}

/* ── 时间分区：整块面板 + 行内日期（时间与图片同一视觉区域，不再拆成独立标题条） ── */
.qr-module .qr-sections{display:flex;flex-direction:column;gap:0;padding:16px 18px 6px;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.qr-module .qr-sec{display:flex;flex-direction:column;gap:9px;padding:0 0 18px}
.qr-module .qr-sec+.qr-sec{padding-top:18px;border-top:1px solid var(--line-2)}
.qr-module .qr-sec__head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 2px;
  border:0;border-radius:0;background:transparent;box-shadow:none}
.qr-module .qr-sec__day{position:relative;font-size:14px;font-weight:600;line-height:1.4;color:var(--ink);
  padding-left:10px}
.qr-module .qr-sec__day::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:3px;border-radius:2px;
  background:var(--line-2)}
.qr-module .qr-sec.is-hot .qr-sec__day{color:var(--brand)}
.qr-module .qr-sec.is-hot .qr-sec__day::before{background:var(--brand)}
.qr-module .qr-sec__exp{font-size:11.5px;color:var(--muted);line-height:1.4}
.qr-module .qr-sec.is-hot .qr-sec__exp{color:var(--brand)}
.qr-module .qr-sec__cnt{height:22px;padding:0 9px;border-radius:999px;display:inline-grid;place-items:center;
  background:var(--bg-soft);font-size:11.5px;font-weight:600;color:var(--ink-2);font-variant-numeric:tabular-nums}
.qr-module .qr-regchips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.qr-module .qr-regchip{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px;border-radius:999px;
  background:var(--bg-soft);font-size:11.5px;line-height:1;color:var(--ink-2);white-space:nowrap}
.qr-module .qr-regchip i{flex:0 0 7px;width:7px;height:7px;border-radius:50%}
.qr-module .qr-regchip b{font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.qr-module .qr-sec__up,
.qr-module .qr-sec__acts{margin-left:auto}
.qr-module .qr-sec__acts{display:flex;align-items:center;gap:8px}
.qr-module .qr-sec__picked{font-size:11.5px;line-height:1;color:var(--muted);font-variant-numeric:tabular-nums}
.qr-module .qr-sec__picked b{font-weight:700;color:var(--brand)}
.qr-module .qr-badge-cnt{min-width:18px;height:18px;padding:0 5px;border-radius:9px;display:inline-grid;place-items:center;
  font-size:11px;font-weight:700;background:var(--bad-halo);color:var(--bad);font-variant-numeric:tabular-nums}
.qr-module .qr-badge-cnt--blue{background:var(--brand-ring);color:var(--brand)}
.qr-module .qr-rail{flex:1;min-width:0;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px}
.qr-module .qr-rail::-webkit-scrollbar{height:8px}
.qr-module .qr-rail::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:4px}
.qr-module .qr-rail::-webkit-scrollbar-track{background:transparent}
.qr-module .qr-sec-more{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 12px;padding:8px;
  border:0;border-radius:0;background:transparent;
  font-size:12px;color:var(--brand);cursor:pointer}
.qr-module .qr-sec-more:hover{color:var(--brand-2);background:transparent}

/* ── 二维码卡片 ── */
.qr-module .qr-qc{position:relative;width:300px;flex:0 0 300px;display:flex;flex-direction:column;background:var(--card);
  border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;
  cursor:pointer;transition:border-color .15s ease}
/* 悬停高亮：整张卡片描淡蓝线（不再只框图片区域） */
.qr-module .qr-qc::after{content:"";position:absolute;inset:0;z-index:var(--z-rise);pointer-events:none;
  border:2px solid transparent;border-radius:var(--radius);transition:border-color .15s ease}
.qr-module .qr-qc:hover::after{border-color:var(--info-line)}
.qr-module .qr-qc__id{display:flex;align-items:center;gap:6px;padding:7px 10px 6px}
.qr-module .qr-qc__idbox{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;line-height:1.35}
.qr-module .qr-qc__idbox b,
.qr-module .qr-qc__idbox i{font-family:var(--qr-mono);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qr-module .qr-qc__idbox b{font-size:10.5px;font-weight:500;color:var(--ink-2)}
.qr-module .qr-qc__idbox i{font-style:normal;font-size:9.5px;color:var(--muted-2)}
/* 卡片角标按钮（编辑 / 删除 / 批量勾选）共用 24×24 图标规格 */
.qr-module .qr-qc__edit,
.qr-module .qr-pc__del,
.qr-module .qr-pc__pick{width:24px;height:24px;flex:0 0 24px;border-radius:5px;display:grid;place-items:center}
.qr-module .qr-qc__edit,
.qr-module .qr-pc__del{border:0;background:transparent}
.qr-module .qr-qc__edit{color:var(--muted-2)}
.qr-module .qr-qc__edit:hover{background:var(--bg-soft);color:var(--brand)}
.qr-module .qr-qc__edit svg,
.qr-module .qr-pc__del svg,
.qr-module .qr-pc__pick svg{width:14px;height:14px}
/* 图片固定框：卡片内统一高度（不随图片原始尺寸变化），图片等比放大到最大并居中
   注意：不要用 img height:70% + grid 居中 —— 百分比高度会以图片自身的固有高度算出
   一个超高的行轨道，图片被裁切且看起来贴底。
   这里用内层裁切框 .qr-qc__zoom + flex 居中，img 铺满（100% × 100%）+ object-fit:contain */
.qr-module .qr-qc__pic{position:relative;height:330px;background:var(--card);overflow:hidden}
/* 图片内层裁切框：左右各留 24px 白边，放大后的图片在这里被裁掉，边距不会被 120% 缩放吃掉 */
.qr-module .qr-qc__zoom{position:absolute;inset:10px 24px;display:flex;align-items:center;justify-content:center;
  overflow:hidden}
/* 鼠标移到图片：高亮已改为整卡描边（见 .qr-qc:hover::after） */
/* 缩略图：显示区域固定，图片以中心为原点放大 120%，超出部分裁掉（提高二维码可读性） */
.qr-module .qr-qc__img{width:100%;height:100%;object-fit:contain;display:block;cursor:zoom-in;
  transform:scale(1.2);transform-origin:center center}
.qr-module .qr-qc__ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  width:100%;height:100%;padding:0 12px;text-align:center;color:var(--muted);
  border:0;background:transparent;cursor:default}
.qr-module .qr-qc__ph.is-click{cursor:pointer}
/* 待分拣卡片：ID + 图片 + 三个下拉（国家 / 重要性 / 时效）+ 账户格子 + 底部按钮区 */
.qr-module .qr-pc{position:relative;cursor:default}
.qr-module .qr-pc .qr-qc__pic{height:260px}
/* 删除入口收到 ID 行右侧，红色图标 */
.qr-module .qr-pc__del{color:var(--bad);opacity:.72;transition:background .12s,opacity .12s}
.qr-module .qr-pc__del:hover{background:var(--bad-soft);opacity:1}
/* 批量删除：选中态下卡片右上角选框（替换单个删除图标） */
.qr-module .qr-pc__pick{border:1px solid var(--line-2);border-radius:6px;background:var(--card);color:transparent;
  cursor:pointer;transition:background .12s,border-color .12s,color .12s}
.qr-module .qr-pc__pick:hover{border-color:var(--brand);color:var(--brand-ring)}
.qr-module .qr-pc__pick.is-on{background:var(--brand);border-color:var(--brand);color:var(--white)}
.qr-module .qr-pc__pick[disabled]{cursor:not-allowed;opacity:.45}
/* 选中框线用覆盖层绘制（z-index 高于卡片内容），避免被图片/功能区的边框背景挡住 */
.qr-module .qr-pc.is-picked::after{content:"";position:absolute;inset:0;z-index:var(--z-rise);pointer-events:none;
  border:2px solid var(--brand);border-radius:var(--radius)}
/* 批量删除锁定：灰字直接覆盖在功能区上层（不再单独占一行，避免像卡片下拉） */
.qr-module .qr-pc__func{position:relative}
.qr-module .qr-pc.is-lock{cursor:pointer}
.qr-module .qr-pc__lock{position:absolute;inset:0;z-index:calc(var(--z-rise) - 1);display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.86);color:var(--muted);font-size:12px;font-weight:500;
  letter-spacing:.02em;pointer-events:none}
.qr-module .qr-pc.is-lock .qr-pc__exp,
.qr-module .qr-pc.is-lock .qr-pc__ops,
.qr-module .qr-pc.is-lock .qr-pc__seats,
.qr-module .qr-pc.is-lock .qr-pc__acts{opacity:.55;pointer-events:none}
/* 待分拣：到期日 2×4 快捷格（显示日期，起点固定为今天，不跟上传日期走） */
.qr-module .qr-pc__exp{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:8px 10px 0}
.qr-module .qr-pc__ex{display:flex;align-items:center;justify-content:center;
  height:30px;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--card);
  color:var(--ink-2);font-size:11.5px;font-weight:600;font-variant-numeric:tabular-nums;
  cursor:pointer;transition:border-color .12s,background .12s,color .12s}
.qr-module .qr-pc__ex:hover{border-color:var(--line-2);background:var(--bg)}
.qr-module .qr-pc__ex.is-on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
/* 待分拣：分拣功能区（国家 / 重要性 / 时效）——触发器复用 .qr-prop，点击弹出与任务区同一套浮层菜单 */
.qr-module .qr-pc__ops,
.qr-module .qr-qc__props{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.qr-module .qr-pc__ops{padding:8px 10px 0}
.qr-module .qr-pc__ops .qr-pc__sel{position:relative;width:100%;padding-right:20px}
.qr-module .qr-pc__ops .qr-pc__sel.is-empty{color:var(--muted-2)}
.qr-module .qr-pc__sel i{position:absolute;right:9px;top:50%;width:0;height:0;margin-top:-2px;
  border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid var(--muted-2);
  pointer-events:none}
.qr-module .qr-pc__ops .qr-prop{height:34px;font-size:11.5px}
/* 待分拣：账户格子直接贴在下拉区下方（不再有标题行，间距收紧） */
.qr-module .qr-pc__seats,
.qr-module .qr-qc__seats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.qr-module .qr-pc__seats{padding:6px 10px 0}
.qr-module .qr-pc__seats.is-disabled .qr-seat{opacity:.55;cursor:not-allowed}
/* 底部操作区：默认只有一个居中的「开始分拣」；确认态拆成「取消 / 确认」两枚 */
.qr-module .qr-pc__acts{display:grid;grid-template-columns:1fr;gap:6px;padding:9px 10px 11px;margin-top:auto}
.qr-module .qr-pc__acts.is-split{grid-template-columns:1fr 1fr}
.qr-module .qr-pc__acts .btn{height:34px;font-size:12px;padding:0 8px}
.qr-module .qr-pc__start{box-shadow:0 2px 8px var(--brand-shadow)}
.qr-module .qr-pc__start:hover{box-shadow:0 4px 12px var(--brand-shadow-2)}
.qr-module .qr-pc__cancel{background:transparent;border-color:var(--line-2);color:var(--ink-2);
  box-shadow:none}
.qr-module .qr-pc__cancel:hover{background:var(--bg-soft);border-color:var(--line-2);color:var(--ink)}
/* 确认按钮：与主按钮同一套实色，不做渐变/发光 */
.qr-module .qr-pc__confirm{background:var(--brand);border-color:var(--brand);color:var(--white)}
.qr-module .qr-pc__confirm:hover{background:var(--brand-2);border-color:var(--brand-2);color:var(--white)}
.qr-module .qr-pc__acts.is-split .qr-pc__cancel{animation:qrPcInL .36s cubic-bezier(.22,.61,.36,1) both}
.qr-module .qr-pc__acts.is-split .qr-pc__confirm{animation:qrPcInR .36s cubic-bezier(.22,.61,.36,1) both}
@keyframes qrPcInL{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}
@keyframes qrPcInR{from{opacity:0;transform:translateX(6px)}to{opacity:1;transform:none}}
.qr-module .qr-qc__ph b{font-size:13.5px;font-weight:600;color:var(--ink-2)}
.qr-module .qr-qc__ph i{font-style:normal;font-size:11px;color:var(--muted-2)}
.qr-module .qr-qc__ph u{font-size:11.5px;color:var(--brand);text-decoration:underline;text-underline-offset:2px}
.qr-module .qr-qc__props{padding:10px 10px 0}
.qr-module .qr-prop{position:relative;display:flex;align-items:center;gap:5px;height:34px;padding:0 8px;
  border:1px solid var(--line);border-radius:6px;background:var(--card);font-size:11.5px;color:var(--ink-2);
  white-space:nowrap;overflow:hidden;text-align:left;transition:background .12s}
.qr-module .qr-prop:hover{background:var(--bg);border-color:var(--line-2)}
.qr-module .qr-prop.is-on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand);
  box-shadow:0 0 0 2px var(--brand-ring)}
.qr-module .qr-prop em{flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:var(--muted-2)}
.qr-module .qr-prop span{overflow:hidden;text-overflow:ellipsis}

/* ── 属性下拉（点击标签 → 选项 → 确认） ── */
.qr-module #qrRoot{position:relative}
.qr-propmenu{position:fixed;z-index:var(--z-popover);width:200px;padding:6px;background:var(--card);
  border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.18)}
.qr-propmenu[hidden]{display:none}
.qr-propmenu .qr-propmenu__head{padding:5px 8px 6px;font-size:11.5px;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qr-propmenu .qr-propmenu__list{display:flex;flex-direction:column;gap:2px;max-height:236px;overflow-y:auto}
.qr-propmenu .qr-propmenu__list::-webkit-scrollbar{width:6px}
.qr-propmenu .qr-propmenu__list::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:3px}
.qr-propmenu .qr-propmenu__opt{display:flex;align-items:center;gap:7px;width:100%;height:30px;padding:0 8px;
  border:0;border-radius:7px;background:transparent;color:var(--ink);font-size:12.5px;text-align:left}
.qr-propmenu .qr-propmenu__opt:hover{background:var(--bg-soft)}
.qr-propmenu .qr-propmenu__opt.is-on{background:var(--brand-soft);color:var(--brand);font-weight:600}
.qr-propmenu .qr-propmenu__opt em{flex:0 0 auto;width:8px;height:8px;border-radius:50%}
.qr-propmenu .qr-propmenu__opt span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qr-propmenu .qr-propmenu__opt i{margin-left:auto;font-style:normal;font-size:12px;color:var(--brand)}
.qr-propmenu .qr-propmenu__foot{display:flex;justify-content:flex-end;gap:6px;margin-top:5px;padding-top:6px;
  border-top:1px solid var(--line)}
.qr-propmenu .qr-propmenu__btn{height:28px;padding:0 12px;border:1px solid var(--line);border-radius:7px;
  background:var(--card);font-size:12px;color:var(--ink)}
.qr-propmenu .qr-propmenu__btn:hover{background:var(--bg-soft)}
.qr-propmenu .qr-propmenu__btn.is-primary{background:var(--brand);border-color:var(--brand);color:var(--white)}
.qr-propmenu .qr-propmenu__btn.is-primary:hover{background:var(--brand-2);border-color:var(--brand-2)}
.qr-propmenu .qr-propmenu__btn[disabled]{opacity:.5;cursor:not-allowed}
@keyframes qrFlashRed{0%,100%{border-color:var(--line);background:var(--card)}
  20%,70%{border-color:var(--bad);background:var(--bad-soft);box-shadow:0 0 0 2px var(--bad-halo)}}
.qr-module .qr-prop.is-flash{animation:qrFlashRed .8s ease 2}
.qr-module .qr-prop.is-flash span{color:var(--bad)}
.qr-module .qr-qc__seats{padding:10px}
.qr-module .qr-qc__seats.is-disabled{opacity:.5}
.qr-module .qr-qc__seats.is-disabled .qr-seat{cursor:not-allowed}
.qr-module .qr-seat{min-height:34px;padding:0 6px;border:1px solid var(--line);border-radius:6px;background:var(--white);
  display:flex;align-items:center;justify-content:center;gap:3px;
  font-size:11.5px;color:var(--muted);transition:background .12s,border-color .12s,color .12s}
.qr-module .qr-seat span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qr-module .qr-seat:hover{border-color:var(--brand);color:var(--brand)}
.qr-module .qr-seat.is-ok{background:var(--good-soft);border-color:var(--good-line);color:var(--good-deep);font-weight:600}
.qr-module .qr-seat.is-ok:hover{background:var(--good-tint);border-color:var(--good-hi)}
.qr-module .qr-seat.is-ng{background:var(--bad-soft);border-color:var(--bad-line);color:var(--bad-deep)}
.qr-module .qr-seat.is-ng:hover{background:var(--bad-tint);border-color:var(--bad-ink)}
.qr-module .qr-seat.is-off{background:var(--bg);border-color:var(--line);border-style:dashed;
  color:var(--muted-2);cursor:not-allowed}
.qr-module .qr-seat.is-off:hover{background:var(--bg);border-color:var(--line);color:var(--muted-2)}
.qr-module .qr-qc__none{grid-column:1/-1;padding:12px 0;text-align:center;font-size:11.5px;color:var(--muted-2)}
.qr-module .qr-qc.is-expired{background:var(--surface-3);border-style:dashed;box-shadow:none}
.qr-module .qr-qc.is-expired .qr-qc__img{filter:grayscale(1);opacity:.45}

/* ⚠ 已抽离至 ui.css `.ui-status`（V1.7，二维码已迁移）。
   保留原因：jy / gateway / ai / mail 仍在使用 .qr-tag，Phase 2 逐板块替换；
   禁止新增使用，触碰相关页面时必须改为 A.ui.statusTag.render()。 */
.qr-tag{flex:0 0 auto;padding:2px 7px;border-radius:5px;font-size:11px;font-weight:600;line-height:1.7;white-space:nowrap}
.qr-tag--high{background:var(--bad-soft);color:var(--bad)}
.qr-tag--info{background:var(--brand-soft);color:var(--brand)}
.qr-tag--low{background:var(--bg-soft);color:var(--muted)}
.qr-tag--ok{background:var(--good-soft);color:var(--good)}
.qr-tag--full{background:var(--warn-soft);color:var(--warn)}
.qr-tag--exp{background:var(--bad-soft);color:var(--bad)}
/* 密钥用量：达到上限红色标注（悬浮/点击查看原因） */
.qr-module .qr-key-usage{font-variant-numeric:tabular-nums;font-size:11.5px;line-height:1.8;
  color:var(--muted);font-family:var(--qr-mono)}
/* 图片上传 API 不消耗 Token，该列显示占位符 */
.qr-module .qr-key-usage--na{text-align:center;color:var(--muted-2);font-family:inherit}
.qr-module .qr-usage-line{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.qr-module .qr-usage-line.is-full{color:var(--bad);font-weight:700}
.qr-module .qr-key-acts{display:inline-flex;align-items:center;gap:6px;flex-wrap:nowrap;white-space:nowrap}
.qr-module .qr-usage-flag{
  display:inline-flex;align-items:center;gap:3px;height:17px;padding:0 6px;
  border:1px solid var(--bad-line);border-radius:999px;background:var(--bad-soft);color:var(--bad);
  font-family:var(--sans);font-size:10px;font-weight:600;line-height:1;cursor:pointer;
  transition:background .15s ease,border-color .15s ease,transform .1s ease;
}
.qr-module .qr-usage-flag i{width:5px;height:5px;border-radius:50%;background:var(--bad);animation:qrUsagePulse 1.6s ease-in-out infinite}
.qr-module .qr-usage-flag:hover{background:var(--bad-tint);border-color:var(--bad-ink)}
.qr-module .qr-usage-flag:active{transform:scale(.95)}
@keyframes qrUsagePulse{0%,100%{opacity:1}50%{opacity:.3}}

/* ── 账户 / 日志 / 统计面板 ── */
.qr-module .qr-panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:14px}
.qr-module .qr-panel__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.qr-module .qr-panel__head h3{margin:0;font-size:14px;font-weight:600;color:var(--ink)}
.qr-module .qr-panel__head span{font-size:11.5px;color:var(--muted);text-align:right}
.qr-module .qr-row{display:flex;align-items:center;gap:14px;padding:13px 18px;border-bottom:1px solid var(--bg-soft);flex-wrap:wrap}
.qr-module .qr-row:last-child{border-bottom:0}
.qr-module .qr-row:hover{background:var(--bg)}
.qr-module .qr-row__avatar{width:32px;height:32px;flex:0 0 auto;border-radius:8px;display:grid;place-items:center;
  background:var(--brand-soft);color:var(--brand);font-weight:600;font-size:12px}
.qr-module .qr-row__main{flex:1;min-width:150px}
.qr-module .qr-row__main b{display:block;font-size:13px;color:var(--ink);font-weight:600}
.qr-module .qr-row__main small{display:block;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.qr-module .qr-row__slot{display:inline-flex;align-items:center;gap:5px;padding:1px 8px;border-radius:999px;
  background:var(--brand-soft);color:var(--brand);font-size:11px;font-weight:600}
.qr-module .qr-row__slot.is-free{background:var(--bg-soft);color:var(--muted)}
.qr-module .qr-row__slot.is-good{background:var(--good-soft);color:var(--good)}
.qr-module .qr-row--add{background:var(--surface)}
.qr-module .qr-table{width:100%;border-collapse:collapse;font-size:12.5px}
.qr-module .qr-table th{text-align:left;font-weight:600;color:var(--muted);font-size:11.5px;padding:10px 18px;
  border-bottom:1px solid var(--line);background:var(--surface);white-space:nowrap}
.qr-module .qr-table td{padding:11px 18px;border-bottom:1px solid var(--bg-soft);color:var(--ink-2)}
.qr-module .qr-table tr:last-child td{border-bottom:0}
.qr-module .qr-table .ok{color:var(--good);font-weight:600}
.qr-module .qr-table .fail{color:var(--bad);font-weight:600}
.qr-module .qr-table-wrap{overflow-x:auto}
/* 日志勾选：复选框列窄、居中，不撑开表格 */
.qr-module .qr-log-check{width:15px;height:15px;margin:0;padding:0;accent-color:var(--brand);cursor:pointer}
.qr-module .qr-log-check-cell{width:40px;text-align:center}
.qr-module .qr-log-check-cell input{cursor:pointer}
.qr-module .qr-log-scope{height:30px;padding:0 6px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);font-size:12px}
/* 清理面板：默认隐藏，点「清理日志」才展开 */
.qr-module .qr-cleanbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:0 0 12px;padding:10px 14px;border:1px solid var(--bad-line,var(--line));
  border-radius:var(--radius);background:var(--bad-soft,var(--bg-soft))}
.qr-module .qr-cleanbar[hidden]{display:none}
.qr-module .qr-cleanbar__lbl{font-size:12px;color:var(--muted)}
.qr-module .qr-cleanbar__tip{font-size:11.5px;color:var(--muted)}
.qr-module .qr-pager{padding:10px 14px 4px}
.qr-module .qr-mono{font-variant-numeric:tabular-nums;color:var(--muted);font-family:var(--qr-mono);font-size:11.5px}
.qr-module .qr-stage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.qr-module .qr-stage__box{padding:26px 20px;border:1px dashed var(--line-2);border-radius:var(--radius);
  background:var(--card);text-align:center}
.qr-module .qr-stage__box b{display:block;font-size:13.5px;color:var(--ink)}
.qr-module .qr-stage__box span{display:block;margin-top:4px;font-size:12px;color:var(--muted)}
.qr-module .qr-bars{display:flex;align-items:flex-end;gap:6px;height:110px;padding:16px 18px 0}
.qr-module .qr-bars i{flex:1;min-width:10px;border-radius:4px 4px 0 0;background:linear-gradient(180deg,var(--info-hi),var(--brand));opacity:.9}
.qr-module .qr-bars span{display:block;text-align:center;font-size:10px;color:var(--muted-2)}
.qr-module .qr-bars__col{flex:1;min-width:10px;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;align-self:stretch}
.qr-module .qr-bars__col i{width:100%;flex:0 0 auto}
.qr-module .qr-chart-foot{padding:8px 18px 16px;font-size:11.5px;color:var(--muted)}
/* 上传统计：维度 / 日历范围筛选 + 折线图 */
.qr-module .qr-usfilter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  padding:12px 18px;border-bottom:1px solid var(--line);background:var(--surface)}
.qr-module .qr-usfilter .lbl{font-size:11.5px;color:var(--muted)}
.qr-module .qr-usfilter .btn{padding:0 16px;height:34px}
.qr-module .qr-usfilter .btn--primary{box-shadow:0 2px 8px var(--brand-shadow-2);font-weight:600}
.qr-module .qr-usfilter .btn--ghost{border:1px solid var(--line-2);color:var(--ink-2);background:var(--card)}
.qr-module .qr-usfilter .btn--ghost:hover{border-color:var(--brand);color:var(--brand)}
.qr-module .qr-usfilter input,.qr-module .qr-usfilter select{height:32px;padding:0 8px;font-size:12px;
  color:var(--ink-2);background:var(--card);border:1px solid var(--line);border-radius:var(--radius-sm)}
.qr-module .qr-usfilter input:focus,.qr-module .qr-usfilter select:focus{outline:none;
  border-color:var(--brand);box-shadow:var(--focus-ring)}
/* 日期范围：一个按钮 + 单日历浮层（先点起始日，再点结束日） */
.qr-module .qr-usrange{position:relative;display:inline-flex;align-items:center}
.qr-module .qr-usrange__btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px;
  font-size:12px;color:var(--ink-2);background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius-sm)}
.qr-module .qr-usrange__btn svg{width:15px;height:15px;flex:0 0 auto;opacity:.65}
.qr-module .qr-usrange__btn:hover{border-color:var(--line-2)}
.qr-module .qr-uscal{position:absolute;left:0;top:calc(100% + 6px);z-index:var(--z-popover);width:252px;padding:10px;
  background:var(--card);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-2)}
.qr-module .qr-uscal[hidden]{display:none}
.qr-module .qr-uscal__head{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 8px}
.qr-module .qr-uscal__head b{font-size:12.5px;font-weight:600;color:var(--ink)}
.qr-module .qr-uscal__head button{width:26px;height:26px;border:0;background:transparent;border-radius:6px;
  color:var(--muted);font-size:15px;line-height:1}
.qr-module .qr-uscal__head button:hover{background:var(--bg-soft);color:var(--ink)}
.qr-module .qr-uscal__week,.qr-module .qr-uscal__grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.qr-module .qr-uscal__week{padding-bottom:4px}
.qr-module .qr-uscal__week span{text-align:center;font-size:11px;color:var(--muted-2)}
.qr-module .qr-uscal__grid{gap:0}
.qr-module .qr-uscal__cell{height:28px;border:0;background:transparent;border-radius:6px;
  font-size:12px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.qr-module .qr-uscal__cell:hover{background:var(--bg-soft)}
.qr-module .qr-uscal__cell.is-off{pointer-events:none}
.qr-module .qr-uscal__cell.is-today{box-shadow:inset 0 0 0 1px var(--brand)}
.qr-module .qr-uscal__cell.is-range{background:var(--info-soft);color:var(--info);font-weight:500;
  border-radius:0}
.qr-module .qr-uscal__cell.is-range:hover{background:var(--info-line)}
.qr-module .qr-uscal__cell.is-start,.qr-module .qr-uscal__cell.is-end{background:var(--brand);
  color:var(--white);font-weight:600;border-radius:6px;box-shadow:0 2px 8px var(--brand-glow)}
.qr-module .qr-uscal__foot{padding:8px 4px 2px;font-size:11px;color:var(--muted-2)}
/* 折线图图例 */
.qr-module .qr-uslegend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:10px 18px 0;
  font-size:11.5px;color:var(--muted)}
.qr-module .qr-uslegend span{display:inline-flex;align-items:center;gap:5px}
.qr-module .qr-uslegend i{width:14px;height:2px;border-radius:1px}
.qr-module .qr-uslegend i.is-dot{width:9px;height:9px;border-radius:2px}
.qr-module .qr-line{padding:14px 18px 0;overflow:hidden}
.qr-module .qr-line svg{display:block;width:100%;height:auto}
.qr-module .qr-line__empty{padding:36px 0;text-align:center;font-size:12.5px;color:var(--muted)}
/* 黑名单关键词统计：横向柱状图（Y 轴关键词文本，X 轴标记次数） */
.qr-module .qr-kwchart{padding:14px 18px 16px;display:flex;flex-direction:column;gap:8px}
.qr-module .qr-kwchart__row{display:grid;grid-template-columns:170px 1fr;align-items:center;gap:10px}
.qr-module .qr-kwchart__name{font-size:12px;line-height:1.35;word-break:break-all;color:var(--text)}
.qr-module .qr-kwchart__track{display:flex;align-items:center;gap:8px;height:16px}
.qr-module .qr-kwchart__track i{flex:0 1 auto;height:16px;border-radius:4px;
  background:linear-gradient(90deg,var(--info-hi),var(--brand));opacity:.9}
.qr-module .qr-kwchart__count{flex:0 0 auto;font-size:12px;text-align:left;color:var(--muted);font-variant-numeric:tabular-nums}
.qr-module .qr-kwchart__axis{display:grid;grid-template-columns:170px 1fr;gap:10px;padding-top:2px}
.qr-module .qr-kwchart__ticks{display:flex;justify-content:space-between;font-size:10.5px;color:var(--muted-2)}
.qr-module .qr-kwchart__empty{padding:28px 0;text-align:center;font-size:12.5px;color:var(--muted)}
/* 关键词折叠条：沿用任务区「还有 N 个日期分区」样式，去掉为分区列表预留的下边距 */
.qr-module .qr-kwchart .qr-sec-more{margin:0;padding:6px 0 0}
/* 图表悬浮提示：具体数值浮层 */
.qr-tip{position:fixed;z-index:var(--z-popover);pointer-events:none;padding:6px 9px;border-radius:6px;
  background:var(--ink);color:var(--white);font-size:11.5px;line-height:1.5;
  white-space:pre-line;box-shadow:0 6px 18px rgba(15,23,42,.22)}
.qr-tip i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:5px;vertical-align:middle}
/* 图表悬停浮层：饼图 + 明细图例（上传 / 加入趋势共用） */
.qr-tipchart{white-space:normal;min-width:190px}
.qr-tipchart__head{font-weight:600;margin-bottom:6px}
.qr-tipchart__body{display:flex;align-items:center;gap:10px}
.qr-tipchart__pie{display:block;flex:0 0 auto}
.qr-tipchart__legend{display:flex;flex-direction:column;gap:2px;font-size:11px;line-height:1.5}
.qr-tipchart__legend span{display:flex;align-items:center;gap:5px;white-space:nowrap}
.qr-tipchart__legend i{flex:0 0 auto;width:9px;height:9px;border-radius:2px}

/* ── 轻提示：已合并到通用组件 Apollo.ui.toast（见 ui.css / app.css 的 .toast），板块内不再自维护 ── */

/* ── 详情抽屉：外壳由通用组件 Apollo.ui.drawer 提供（.ui-drawer），这里只保留正文内容样式 ── */
.qr-module .qr-drawer__tags{display:flex;gap:6px;margin-bottom:12px}
.qr-module .qr-drawer__qr{display:grid;place-items:center;padding:20px;background:var(--bg);border:1px solid var(--line);
  border-radius:var(--radius);min-height:280px}
.qr-module .qr-drawer__qr img{max-width:100%;max-height:340px;display:block}
.qr-module .qr-kv{display:grid;grid-template-columns:104px 1fr;gap:11px 14px;margin:18px 0 0;font-size:14px}
.qr-module .qr-kv dt{color:var(--muted)}
.qr-module .qr-kv dd{margin:0;color:var(--ink-2);word-break:break-all}
.qr-module .qr-drawer__tip{margin:10px 0 0;font-size:12px;color:var(--muted)}
.qr-module .qr-drawer__pcacts{margin-top:14px;display:flex;gap:8px}
.qr-module .qr-drawer__pcacts .btn{flex:1}
.ui-drawer__foot .qr-module{display:flex;gap:8px;width:100%}
.ui-drawer__foot .qr-module .btn{flex:1}

/* ── 弹窗：外壳统一由 Apollo.ui.modal 提供（.ui-modal），这里只保留正文内容样式 ──
   正文外层由 js/qr/view.js 包一层 .qr-module，`qr-field / qr-seg / qr-code-row` 等规则照旧生效 */
.ui-modal .qr-module{display:flex;flex-direction:column;gap:16px}

/* ── 密钥表单分组（生成 / 编辑弹窗）：区块标题 + 两列栅格，压缩纵向高度 ── */
/* 生成密钥改用公共弹窗 A.ui.modal：内容体同样按列排布 */
.ui-modal .keys-form{display:flex;flex-direction:column;gap:18px}
.qr-module .keys-form__section{display:flex;flex-direction:column;gap:12px}
.qr-module .keys-form__head{display:flex;flex-direction:column;gap:3px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.qr-module .keys-form__head h4{margin:0;font-size:13px;font-weight:600;color:var(--ink)}
.qr-module .keys-form__head p{margin:0;font-size:11px;line-height:1.5;color:var(--muted)}
.qr-module .keys-form__grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.qr-module .keys-form__grid .span-2{grid-column:1/-1}
.qr-module .keys-form__banner{display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:10px 12px;background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius-sm)}
.qr-module .keys-form__banner-text{display:flex;flex-direction:column;gap:2px}
.qr-module .keys-form__banner-text b{font-size:12px;font-weight:600;color:var(--ink)}
.qr-module .keys-form__banner-text span{font-size:11px;line-height:1.5;color:var(--muted)}

.qr-module .qr-field{display:flex;flex-direction:column;gap:6px}
.qr-module .qr-field label{font-size:12px;font-weight:500;color:var(--ink)}
.qr-module .qr-field .hint{font-size:11px;color:var(--muted)}
/* 弹窗表单控件：统一框线，只读/禁用字段置灰（避免看起来还能编辑） */
.qr-module .qr-field input,
.qr-module .qr-field select,
.qr-module .qr-field textarea{width:100%;height:34px;padding:0 9px;border:1px solid var(--line);
  border-radius:var(--radius-sm);background:var(--card);color:var(--ink);font-size:12.5px;outline:0;
  transition:border-color .15s ease,box-shadow .15s ease}
.qr-module .qr-field textarea{height:auto;padding:9px;min-height:80px;line-height:1.6;resize:vertical}
.qr-module .qr-field input::placeholder,
.qr-module .qr-field textarea::placeholder{color:var(--muted-2)}
.qr-module .qr-field input:focus,
.qr-module .qr-field select:focus,
.qr-module .qr-field textarea:focus{outline:0;border-color:var(--brand);box-shadow:var(--focus-ring)}
.qr-module .qr-field input[readonly],
.qr-module .qr-field input:disabled,
.qr-module .qr-field select:disabled{background:var(--bg-soft);border-color:var(--line);
  color:var(--muted-2);cursor:not-allowed;-webkit-text-fill-color:var(--muted-2);opacity:1}
.qr-module .qr-field input[readonly]:focus,
.qr-module .qr-field input:disabled:focus{outline:0;border-color:var(--line);box-shadow:none}
.qr-module .qr-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.qr-module .qr-fields select,
.qr-module .qr-fields input[type=text],
.qr-module .qr-fields input[type=date],
.qr-module .qr-fields input[type=number]{height:34px;padding:0 8px;border:1px solid var(--line);
  border-radius:var(--radius-sm);background:var(--card);font-size:12.5px;color:var(--ink);width:100%}
.qr-module .qr-fields .span-2{grid-column:1/-1}
.qr-module .qr-seg{display:inline-flex;border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden;background:var(--card)}
.qr-module .qr-seg button{height:32px;padding:0 10px;border:0;background:transparent;font-size:12px;color:var(--muted)}
.qr-module .qr-seg button.is-on{background:var(--brand-soft);color:var(--brand);font-weight:600}
.qr-module .qr-seg button+button{border-left:1px solid var(--line)}
.qr-module .qr-code-row{display:flex;gap:8px}
.qr-module .qr-code-row input:not(.ui-input){flex:1;height:34px;padding:0 9px;border:1px solid var(--line);border-radius:var(--radius-sm);
  font-size:13px;letter-spacing:.12em;font-variant-numeric:tabular-nums;background:var(--card)}
.qr-module .qr-code-row .ui-input{flex:1}
.qr-module .qr-code-msg{min-height:18px;font-size:11.5px;color:var(--muted)}
.qr-module .qr-code-msg.is-ok{color:var(--good)}
.qr-module .qr-code-msg.is-err{color:var(--bad)}
.qr-module .qr-keybox{margin-top:12px;padding:12px 14px;border:1px dashed var(--line);border-radius:var(--radius-sm);
  background:var(--bg);font-family:var(--qr-mono);font-size:14px;
  line-height:1.6;letter-spacing:.1em;word-break:break-all;color:var(--ink);user-select:all;cursor:text}
.qr-module .qr-keymeta{margin-top:8px;font-size:12px;color:var(--muted);line-height:1.7}

/* ── 网关中心（与二维码管理共用 .qr-module 作用域） ── */
.qr-module .qr-head__main{min-width:0}
.qr-module .qr-head__title{margin:0 0 6px;font-size:16px;font-weight:600;line-height:1.3;color:var(--ink)}
.qr-module .qr-head__sub code{font-family:var(--qr-mono);font-size:11.5px;color:var(--ink-2);
  background:var(--bg-soft);padding:1px 5px;border-radius:4px;word-break:break-all}
.qr-module .qr-endpoint{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.qr-module .qr-endpoint__label{font-size:11.5px;color:var(--muted)}
.qr-module .qr-endpoint input{width:min(400px,100%);height:32px;padding:0 9px;border:1px solid var(--line);
  border-radius:var(--radius-sm);background:var(--bg);color:var(--ink);
  font-family:var(--qr-mono);font-size:12px}
.qr-module .qr-endpoint .btn{height:32px;padding:0 10px;font-size:12px}
.qr-module .qr-endpoint__hint{font-family:var(--qr-mono);font-size:11px;
  color:var(--muted);background:var(--bg-soft);padding:4px 7px;border-radius:5px;white-space:nowrap}
.qr-module .qr-table--keys{min-width:1340px}
.qr-module .qr-table--keys td{vertical-align:middle}

/* 密钥日志：详情列限制宽度，超出省略，完整内容放 title */
.qr-module .qr-table--keylogs{min-width:1080px}
.qr-module .qr-log-detail{max-width:520px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qr-module .qr-models{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:40px;padding:9px;
  border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg)}
.qr-module .qr-model{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid var(--line);
  border-radius:999px;background:var(--card);font-size:12px;color:var(--ink-2);cursor:pointer;user-select:none}
.qr-module .qr-model input{width:auto;height:auto;margin:0;padding:0;accent-color:var(--brand);cursor:pointer}
.qr-module .qr-models__empty{font-size:12px;color:var(--muted)}
.qr-module .qr-switch{display:inline-flex;align-items:center;gap:8px;width:fit-content;cursor:pointer;user-select:none}
.qr-module .qr-switch input{position:absolute;opacity:0;width:0;height:0;margin:0;padding:0;pointer-events:none}
.qr-module .qr-switch__track{position:relative;width:38px;height:20px;border-radius:999px;background:var(--line-2);
  transition:background .15s;flex:0 0 auto}
.qr-module .qr-switch__track::after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;
  border-radius:50%;background:var(--white);box-shadow:0 1px 3px rgba(15,23,42,.24);transition:transform .15s}
.qr-module .qr-switch input:checked + .qr-switch__track{background:var(--brand)}
.qr-module .qr-switch input:checked + .qr-switch__track::after{transform:translateX(18px)}
.qr-module .qr-switch b{font-size:12px;font-weight:600;color:var(--ink)}

/* ── 响应式 ── */
@media (max-width:1180px){
  .qr-module .qr-week{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){
  .qr-module .qr-week__group--join{grid-template-columns:repeat(3,minmax(0,1fr))}
  .qr-module .qr-week__group--due{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qr-module .qr-sec__up{margin-left:0}
}
@media (max-width:760px){
  .qr-module .qr-head{flex-direction:column;align-items:flex-start}
  .qr-module .qr-head__acts{width:100%}
  .qr-module .qr-head__acts .btn{flex:1}
  .qr-module .qr-fields{grid-template-columns:1fr}
  .qr-module .keys-form__grid{grid-template-columns:1fr}
  .qr-module .qr-qc{width:272px;flex:0 0 272px}
  .qr-module .qr-qc__pic{height:300px}
}

/* ── 加载骨架屏 ──
   弱网下 js/qr/view.js 尚未就绪时占位，渲染完成后由 #qrRoot 整体替换。 */
.qr-module .qr-skel__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.qr-module .qr-skel__col{display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-width:0}
.qr-module .qr-skel__acts{display:flex;gap:8px;flex:0 0 auto}
.qr-module .qr-skel__tabs{display:flex;gap:8px;margin-bottom:16px;padding:4px;width:fit-content;max-width:100%;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.qr-module .qr-skel__week{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin-bottom:16px;
  background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.qr-module .qr-skel__cell{height:52px;background:var(--card)}
.qr-module .qr-skel__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.qr-module .qr-skel__card{padding:12px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}
.qr-module .qr-skel__thumb{height:96px;border-radius:var(--radius-sm);margin-bottom:10px}
.qr-module .qr-skel__bar{height:11px;border-radius:var(--radius-sm);margin-bottom:8px}
.qr-module .qr-skel__bar--md{width:68%}
.qr-module .qr-skel__bar--sm{width:46%;margin-bottom:0}
.qr-module .qr-skel__btn{width:104px;height:36px;border-radius:var(--radius-sm)}
.qr-module .qr-skel__tab{width:72px;height:32px;border-radius:var(--radius-sm)}
/* 统一微光：底色与高光都取自设计令牌 */
.qr-module .qr-skel__bar,
.qr-module .qr-skel__btn,
.qr-module .qr-skel__tab,
.qr-module .qr-skel__thumb,
.qr-module .qr-skel__cell{
  background:linear-gradient(100deg,var(--bg-soft) 20%,var(--line) 50%,var(--bg-soft) 80%);
  background-size:220% 100%;
  animation:qrSkelShine 1.3s linear infinite;
}
@keyframes qrSkelShine{from{background-position:120% 0}to{background-position:-120% 0}}
@media (prefers-reduced-motion:reduce){
  .qr-module .qr-skel__bar,
  .qr-module .qr-skel__btn,
  .qr-module .qr-skel__tab,
  .qr-module .qr-skel__thumb,
  .qr-module .qr-skel__cell,
  .qr-module .qr-pc__acts.is-split .qr-pc__cancel,
  .qr-module .qr-pc__acts.is-split .qr-pc__confirm,
  .qr-module .qr-usage-flag i{animation:none}
}
@media (max-width:760px){
  .qr-module .qr-skel__head{flex-direction:column;align-items:flex-start}
  .qr-module .qr-skel__acts{width:100%}
  .qr-module .qr-skel__btn{flex:1;width:auto}
  .qr-module .qr-skel__week{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ── 网关中心 · 文档页签（标题 + 说明 + 等宽源码框 + 复制/下载） ── */
.qr-module .qr-docs{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.qr-module .qr-docs__head{padding:18px 22px 0}
.qr-module .qr-docs__title{display:flex;align-items:center;gap:8px;margin:0;font-size:16px;font-weight:600;color:var(--ink)}
.qr-module .qr-docs__icon{width:18px;height:18px;flex:none;color:var(--ink-2, var(--ink))}
.qr-module .qr-docs__sub{margin:6px 0 0;font-size:12.5px;line-height:1.6;color:var(--muted)}
.qr-module .qr-docs__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 22px 10px;flex-wrap:wrap}
.qr-module .qr-docs__bar[hidden]{display:none}
/* 分组切换：下游/用户密钥 · 上游/渠道密钥（独立页签栏，复用 ui.css 的 .tabs / .tab） */
.qr-module .qr-docs .tabs{margin-bottom:0}
/* 顶部横幅：说明 + 接口地址，只在下游/用户密钥组展示 */
.qr-module .qr-docs__banner{padding:0 22px}
.qr-module .qr-docs__banner[hidden]{display:none}
.qr-module .qr-docs__tabs{display:flex;gap:6px}
.qr-module .qr-docs__tab{height:28px;padding:0 12px;border:1px solid var(--line);border-radius:999px;
  background:var(--card);color:var(--muted);font-size:12.5px;cursor:pointer}
.qr-module .qr-docs__tab:hover{color:var(--ink);border-color:var(--line-2)}
.qr-module .qr-docs__tab.is-on{background:var(--brand-soft);border-color:var(--brand);color:var(--brand);font-weight:600}
.qr-module .qr-docs__pre{margin:0 22px;padding:16px 18px;min-height:240px;
  max-height:min(58vh,560px);overflow:auto;overscroll-behavior:contain;
  border:1px solid var(--line);border-radius:10px;background:var(--card);
  font-family:var(--qr-mono);
  font-size:12.5px;line-height:1.85;color:var(--ink);
  white-space:pre-wrap;word-break:break-word;tab-size:2}
.qr-module .qr-docs__pre.is-empty{color:var(--muted);white-space:normal;font-family:inherit;font-size:13px}
.qr-module .qr-docs__pre.is-error{color:var(--bad);white-space:normal;font-family:inherit;font-size:13px}
.qr-module .qr-docs__foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 22px 18px}
.qr-module .qr-docs__btn svg{width:15px;height:15px}
@media (max-width:760px){
  .qr-module .qr-docs__head{padding:14px 16px 0}
  .qr-module .qr-docs__bar{padding:12px 16px 10px}
  .qr-module .qr-docs__banner{padding:0 16px}
  .qr-module .qr-docs__pre{margin:0 16px;max-height:52vh;padding:13px 14px}
  .qr-module .qr-docs__foot{padding:12px 16px 16px}
}
