/* ============================================================
   拼客魔方 · 工作台外壳（方向B：双段侧栏式）
   覆盖层策略：product.css 继续兜底内容区组件，本文件在最后
   加载，只重做 顶栏 / 侧栏 / dashboard 拼装视觉 的外壳。
   ============================================================ */

:root {
  --pk-dark: #121212;
  --pk-dark-2: #1b1d22;
  --pk-dark-3: #14171a;
  --pk-line: rgba(255, 255, 255, .08);
  --pk-text: #e9efec;
  --pk-text-2: #b9c8c4;
  --pk-text-3: #83736d;
  --pk-teal: #ff6339;
  --pk-teal-bright: #d47e5f;
  --pk-coral: #ff6a3d;
  --pk-gold: #e37b56;
  --pk-blue: #df683d;
  --pk-green: #1faa63;
}

/* ---------- 整体 ---------- */
body.agent-page {
  background: var(--pk-dark);
  color: var(--pk-text);
}
.agent-shell { background: var(--pk-dark); }

/* ---------- 顶栏：恢复旧站原版网格布局（product.css 为准，此处只补徽章列与logo） ---------- */
/* 原版为 8 列网格，右侧 6 个功能是 56px 高双行卡片（上橙标签下白大字）。
   本站多了「装修版」徽章 → 扩成 9 列，徽章占 auto 贴文字宽；
   pk-header-side 是收纳用包装层，display:contents 让子元素直接入网格。 */
.pk-header-side { display: contents; }
.agent-header {
  grid-template-columns: 230px auto minmax(100px, 1fr) 190px 190px 112px 118px 118px 78px 184px;
}
@media (max-width: 1380px) {
  .agent-header {
    grid-template-columns: 184px auto minmax(80px, 1fr) 160px 160px 96px 106px 108px 70px 164px;
  }
}
.agent-context { color: var(--pk-text-3); }
.agent-context strong { color: var(--pk-text); }

/* 每张功能卡固定入座：意见收集隐藏时其列留空，头像卡不前移错位 */
@media (min-width: 981px) {
  .agent-header .brand { grid-column: 1; }
  .agent-header .pk-industry-badge { grid-column: 2; }
  .agent-header .agent-context { grid-column: 3; }
  .agent-header .default-profile-pill { grid-column: 4; }
  .agent-header .model-picker { grid-column: 5; }
  .agent-header .async-task-wrap { grid-column: 6; }
  .agent-header .checkin-trigger:not(.topbar-team-btn) { grid-column: 7; }
  .agent-header .topbar-team-btn { grid-column: 8; }
  .agent-header .feedback-trigger { grid-column: 9; }
  .agent-header .profile-wrap { grid-column: 10; }
}

/* 行业版徽章（演示环境静态展示，行业开通功能落地后接真数据） */
.brand .brand-badge {
  width: 34px; height: 34px; border-radius: 9px; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpolygon points='20,4 34,12 34,26 20,34 6,26 6,12' fill='%230a3f39'/%3E%3Cpolygon points='20,4 34,12 20,20 6,12' fill='%230e7d72'/%3E%3Cpolygon points='6,12 20,20 20,34 6,26' fill='%23ff6a3d'/%3E%3Cpolygon points='34,12 34,26 20,34 20,20' fill='%232f6fed'/%3E%3Cpolygon points='13,12 20,8 27,12 20,16' fill='%235fd4c7'/%3E%3Cpolygon points='10,15 17,19 17,27 10,23' fill='%23ff8a5f'/%3E%3Cpolygon points='23,19 30,15 30,23 23,27' fill='%236d9bf5'/%3E%3Cpolygon points='17,19 23,19 23,27 17,27' fill='%23f5b544'/%3E%3C/svg%3E")
    center / 30px 30px no-repeat, var(--pk-dark-2);
  color: transparent; font-size: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.brand .brand-badge img { display: none; }
/* 后台配置了站点logo时显示真图，未配置时保留SVG方块 */
.brand .brand-badge.has-logo img { display: block; }

/* 行业版徽章（高级感：玻璃药丸 + 双色渐变光环 + 宝石标记） */
.pk-industry-badge {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 11px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 106, 61, .20), rgba(47, 111, 237, .12)), var(--pk-dark-2, #16181d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 0 0 1px rgba(255, 106, 61, .18), 0 4px 14px rgba(255, 106, 61, .10);
  color: var(--pk-text); font-size: 12px; font-weight: 600; letter-spacing: .3px;
  white-space: nowrap;
}
.pk-ind-mark {
  width: 14px; height: 14px; flex: none; border-radius: 4px;
  background: conic-gradient(from 140deg, #ff6a3d, #ffb03a, #2f6fed, #5fd4c7, #ff6a3d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.pk-industry-badge b { color: #ff8a5f; font-weight: 800; }
.pk-ind-sub { color: var(--pk-text-3); font-weight: 500; }

/* 右侧功能卡片/弹层颜色交还 product.css（原版布局原版皮肤，仅按品牌橙渲染） */

/* ---------- 侧栏：双段（通用功能 / 行业插件） ---------- */
.workspace-sidebar {
  position: relative;
  top: auto;
  height: 100%;
  max-height: none;
  overflow: visible;
  background: var(--pk-dark);
  border-right: 1px solid var(--pk-line);
}
/* 右上角高亮渐变描边：复用 .pk-hall::before 同款 1px 渐变环技法，渐变方向改 225deg 使右上角最亮 */
.workspace-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(225deg, rgba(255, 172, 122, .48) 0%, rgba(255, 99, 57, .28) 16%, rgba(255, 99, 57, .08) 36%, transparent 54%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.workspace-sidebar-toolbar {
  display: flex; align-items: center; gap: 10px;
  justify-content: flex-start;
  padding: 4px 10px 12px; border-bottom: 1px solid var(--pk-line);
}
/* 品牌标题按钮：与“折叠”按钮同款背景、同高 */
.workspace-title-btn {
  flex: 1 1 auto; min-width: 0; height: 32px;
  display: inline-flex; align-items: center; gap: 9px; padding: 0 12px;
  background: var(--pk-dark-2); border: 1px solid var(--pk-line);
  border-radius: 8px; color: var(--pk-text);
  font-size: 15px; font-weight: 900; letter-spacing: 1px;
  cursor: pointer; text-align: left; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.workspace-title-ico {
  width: 20px; height: 20px; flex: none; border-radius: 6px; position: relative;
  background: conic-gradient(from 130deg, #ff6a3d, #ffb03a, #2f6fed, #5fd4c7, #ff6a3d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .30);
}
.workspace-title-ico::after {
  content: ""; position: absolute; inset: 5px; border-radius: 3px;
  background: rgba(10, 11, 14, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42);
}
.workspace-title-btn:hover { color: var(--pk-teal-bright); border-color: rgba(255, 99, 57, .4); }
.workspace-nav-toggle {
  flex: none; height: 32px;
  background: var(--pk-dark-2);
  border: 1px solid var(--pk-line);
  color: var(--pk-text-3);
  border-radius: 8px;
}
.workspace-nav-toggle:hover { color: var(--pk-teal-bright); border-color: rgba(255, 99, 57, .4); }

.pk-side-label {
  margin: 14px 16px 6px;
  font-size: 11px; letter-spacing: 2px;
  color: var(--pk-text-3);
  font-weight: 500;
}
.workspace-nav .nav-group:first-child .nav-group-title,
.workspace-nav { padding-top: 2px; }

/* 动态菜单（console.js 渲染）颜色统一 */
.workspace-nav .nav-group-title { color: var(--pk-text-3); }
.workspace-nav .nav-item { color: var(--pk-text-2); }
.workspace-nav .nav-item.is-active,
.workspace-nav .nav-item.active {
  background: var(--pk-dark-2);
  color: var(--pk-teal-bright);
}
.workspace-nav .nav-item:hover { color: var(--pk-text); background: rgba(255, 255, 255, .04); }
.workspace-nav .nav-item small { color: var(--pk-text-3); }

/* 行业插件：底部高级感启动按钮（展开=长条容器，收起=方形 2×2 字） */
.pk-plug-dock { padding: 0 10px 16px; }
.pk-plug-launch {
  position: relative; width: 100%;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border: 0; cursor: pointer; text-align: left;
  border-radius: 12px; overflow: hidden; color: inherit;
  background:
    linear-gradient(135deg, rgba(255, 106, 61, .24), rgba(47, 111, 237, .16)),
    var(--pk-dark-2, #16181d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 6px 18px rgba(255, 106, 61, .12);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.pk-plug-launch::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .12) 50%, transparent 58%);
  transition: transform .55s ease; pointer-events: none;
}
.pk-plug-launch:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 61, .5), 0 10px 24px rgba(255, 106, 61, .20);
}
.pk-plug-launch:hover::after { transform: translateX(120%); }
.pk-plug-launch:active { transform: translateY(0) scale(.99); }
.pk-plug-launch-ico {
  width: 30px; height: 30px; flex: none; border-radius: 9px; position: relative;
  background: conic-gradient(from 130deg, #ff6a3d, #ffb03a, #2f6fed, #5fd4c7, #ff6a3d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.pk-plug-launch-ico::after {
  content: ""; position: absolute; inset: 8px; border-radius: 3px;
  background: rgba(10, 11, 14, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.pk-plug-launch-label { display: flex; align-items: baseline; gap: 0; font-size: 14px; font-weight: 800; color: var(--pk-text); letter-spacing: .5px; }
.pk-plug-launch-label i { font-style: normal; }
.pk-plug-launch-tag {
  margin-left: auto; font-size: 10px; font-weight: 700; color: #ff8a5f;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 106, 61, .18); box-shadow: inset 0 0 0 1px rgba(255, 106, 61, .45);
}
/* 收起态：方形按钮，四字分两行（行业 / 插件） */
.workspace-sidebar.is-collapsed .pk-plug-dock { padding: 0 7px 16px; }
.workspace-sidebar.is-collapsed .workspace-title-btn { display: none; }
.workspace-sidebar.is-collapsed .pk-plug-launch {
  flex-direction: column; justify-content: center; gap: 0;
  width: 100%; aspect-ratio: 1 / 1; padding: 6px 4px; border-radius: 12px;
}
.workspace-sidebar.is-collapsed .pk-plug-launch-ico { display: none; }
.workspace-sidebar.is-collapsed .pk-plug-launch-label {
  flex-direction: column; align-items: center; gap: 2px;
  font-size: 12px; line-height: 1.25; text-align: center;
}
.workspace-sidebar.is-collapsed .pk-plug-launch-tag { display: none; }

/* ---------- 行业插件中心视图 ---------- */
.pk-plugin-section { margin-top: 18px; }
.pk-plugin-sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pk-plugin-sec-kicker { color: var(--pk-text-3); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.pk-plugin-sec-head h2 { margin: 0; color: var(--pk-text); font-size: 18px; font-weight: 800; }
.pk-plugin-sec-note { margin-left: auto; color: var(--pk-text-3); font-size: 12px; }
.pk-plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 14px; }
.pk-plugin-card {
  position: relative; display: flex; align-items: center; gap: 13px; text-align: left;
  padding: 15px 16px; border-radius: 14px; cursor: pointer; width: 100%;
  background: var(--pk-dark-2, #16181d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  border: 1px solid transparent; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.pk-plugin-card:hover {
  transform: translateY(-2px); border-color: rgba(255, 106, 61, .42);
  background: linear-gradient(180deg, rgba(255, 106, 61, .10), var(--pk-dark-2, #16181d));
  box-shadow: inset 0 0 0 1px rgba(255, 106, 61, .35), 0 12px 28px rgba(0, 0, 0, .35);
}
.pk-plugin-ico {
  width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; font-weight: 800; color: #0c0d10;
  background: linear-gradient(135deg, var(--c, #ff6a3d), #2f6fed);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 6px 14px rgba(0, 0, 0, .3);
}
.pk-plugin-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pk-plugin-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pk-plugin-head strong { color: var(--pk-text); font-size: 15px; font-weight: 700; }
.pk-plugin-tag {
  font-size: 10px; font-weight: 700; color: #ff8a5f; padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 106, 61, .14); box-shadow: inset 0 0 0 1px rgba(255, 106, 61, .4);
}
.pk-plugin-body small { color: var(--pk-text-3); font-size: 12px; line-height: 1.45; }
.pk-plugin-go { margin-left: auto; color: var(--pk-teal-bright); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ---------- 内容区画布 ---------- */
/* ---------- 工作台固定外壳：头部+侧栏固定，仅右侧画布内部滚动 ---------- */
.agent-shell {
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 14px;
}
.agent-header {
  position: relative;
  top: auto;
  flex: 0 0 auto;
}
.workspace-layout {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  margin-top: 12px;
}
.workspace-canvas {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(10, 11, 14, .72), rgba(10, 11, 14, .92)),
    radial-gradient(130% 88% at 0% 0%, rgba(255, 99, 57, .20), rgba(255, 99, 57, .06) 26%, transparent 50%);
}
/* 画布左上角固定渐变高亮：用 background 层实现，内部滚动时不随内容移动（顶左角常亮） */
.workspace-canvas::before { content: none; }
.workspace-loading { color: var(--pk-text-2); }
.workspace-loading p { color: var(--pk-text-3); }

/* ---------- dashboard：拼装条（替换旧站办公室截图） ---------- */
.command-office-promo {
  background: var(--pk-dark-2);
  border: 1px solid var(--pk-line);
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.pk-cmd-assemble {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px;
  padding: 22px 12px;
  border-radius: 12px;
  background:
    linear-gradient(var(--pk-line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--pk-line) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--pk-dark);
}
.pk-cmd-cell {
  display: inline-flex; align-items: center;
  padding: 9px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 500; letter-spacing: 1px;
  white-space: nowrap;
}
.pk-cmd-cell.is-base { background: var(--pk-teal); color: #fff; }
.pk-cmd-cell.is-plug { background: var(--pk-coral); color: #fff; }
.pk-cmd-cell.is-out {
  background: rgba(255, 99, 57, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 99, 57, .45);
  color: var(--pk-teal-bright);
}
.pk-cmd-assemble i { color: var(--pk-text-3); font-style: normal; font-size: 14px; }
.command-office-promo .command-office-cta { margin-top: auto; }

/* hero 眉题去旧站化 */
.command-eyebrow { color: var(--pk-teal-bright); letter-spacing: 2px; }

/* ---------- 侧栏：动态菜单第一个分组标题由"通用功能"标签代替 ---------- */
.workspace-nav .nav-group:first-child .nav-group-title { display: none; }

/* ============================================================
   拼客魔方 · 文案创作模块（去旧站化：深色魔方风覆盖）
   仅覆盖视觉，不触碰 console.js 的事件绑定与功能逻辑。
   ============================================================ */

/* 模块外壳 */
.agent-page .module-view { display: block; }
.agent-page .module-head {
  background: transparent;
  border-bottom: 1px solid var(--pk-line);
  padding: 22px 28px 18px;
}
.agent-page .module-head > span {
  display: inline-block;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #121212;
  background: var(--pk-teal-bright);
  padding: 4px 10px; border-radius: 6px; font-weight: 600;
}
.agent-page .module-head h1 {
  margin: 10px 0 6px;
  font-size: 22px; font-weight: 600; color: var(--pk-text);
}
.agent-page .module-head p { color: var(--pk-text-3); font-size: 13px; margin: 0; }
.agent-page .module-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  padding: 22px 28px 32px;
  align-items: start;
}
.agent-page .module-body { min-width: 0; }
.agent-page .module-aside {
  position: sticky; top: 16px;
  display: flex; flex-direction: column; gap: 14px;
}

/* 侧栏面板 */
.agent-page .side-panel {
  background: var(--pk-dark-2);
  border: 1px solid var(--pk-line);
  border-radius: 14px;
  padding: 16px;
}
.agent-page .side-panel .panel-label {
  font-size: 11px; letter-spacing: 1.5px; color: var(--pk-text-3);
  text-transform: uppercase;
}
.agent-page .side-panel h3 {
  margin: 8px 0 4px; font-size: 16px; color: var(--pk-text); font-weight: 600;
}
.agent-page .side-panel p { color: var(--pk-text-2); font-size: 13px; margin: 2px 0; }
.agent-page .side-panel.muted-panel { background: var(--pk-dark-3); }
.agent-page .side-panel .btn { width: 100%; }

/* 通用卡片面板（仅文案创作出现的类，不影响其他模块） */
.agent-page .module-panel.script-workbench,
.agent-page .module-panel.script-step-panel,
.agent-page .module-panel.script-result,
.agent-page .module-panel:has(.script-record-list) {
  width: 100%;
  background: var(--pk-dark-2);
  border: 1px solid var(--pk-line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

/* 模式切换行 */
.agent-page .script-mode-row { display: flex; gap: 12px; margin-bottom: 18px; }
.agent-page .script-mode {
  flex: 1; text-align: left;
  background: var(--pk-dark-3);
  border: 1px solid var(--pk-line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--pk-text-2);
  cursor: pointer;
}
.agent-page .script-mode strong { display: block; font-size: 15px; color: var(--pk-text); }
.agent-page .script-mode small { color: var(--pk-text-3); font-size: 12px; }
.agent-page .script-mode.active {
  background: linear-gradient(120deg, var(--pk-teal), #a33f22);
  border-color: transparent;
}
.agent-page .script-mode.active strong,
.agent-page .script-mode.active small { color: #fff3ec; }

/* 步骤条 */
.agent-page .process-lane.script-steps { display: flex; flex-wrap: wrap; gap: 10px; }
.agent-page .process-lane.script-steps [data-script-step] {
  flex: 1; min-width: 130px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--pk-dark-3);
  border: 1px solid var(--pk-line);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--pk-text-2);
  cursor: pointer;
  position: relative;
}
.agent-page .process-lane.script-steps [data-script-step] span {
  font-size: 12px; color: var(--pk-text-3); font-variant-numeric: tabular-nums;
}
.agent-page .process-lane.script-steps [data-script-step] strong {
  font-size: 14px; color: var(--pk-text); font-weight: 500;
}
.agent-page .process-lane.script-steps [data-script-step] small {
  font-size: 11px; color: var(--pk-text-3);
}
.agent-page .process-lane.script-steps [data-script-step] em {
  position: absolute; top: 10px; right: 12px;
  font-size: 10px; font-style: normal; color: var(--pk-teal-bright);
}
.agent-page .process-lane.script-steps [data-script-step].active {
  background: linear-gradient(120deg, rgba(255, 99, 57, .16), rgba(204, 79, 46, .22));
  border-color: var(--pk-teal-bright);
  box-shadow: 0 0 0 1px rgba(255, 99, 57, .35), 0 8px 22px rgba(0,0,0,.3);
}
.agent-page .process-lane.script-steps [data-script-step].active strong {
  color: var(--pk-teal-bright);
}

/* 章节标题 */
.agent-page .section-title.compact { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 14px; }
.agent-page .section-title.compact span {
  font-size: 12px; letter-spacing: 2px; color: var(--pk-coral); font-weight: 600;
}
.agent-page .section-title.compact h2 {
  margin: 0; font-size: 17px; font-weight: 600; color: var(--pk-text);
}

/* 类别选择触发器（点开弹框那种） */
.agent-page .script-type-selector { margin-bottom: 14px; }
.agent-page .script-type-trigger {
  position: relative;
  width: 100%; text-align: left;
  display: flex; flex-direction: column; gap: 3px;
  background: var(--pk-dark-3);
  border: 1px solid var(--pk-line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--pk-text-2);
  cursor: pointer;
}
.agent-page .script-type-trigger span { font-size: 12px; color: var(--pk-text-3); }
.agent-page .script-type-trigger strong.js-type-selected-name {
  font-size: 15px; color: var(--pk-text); font-weight: 500;
}
.agent-page .script-type-trigger small.js-type-selected-remark { font-size: 12px; color: var(--pk-text-3); }
.agent-page .script-type-trigger em {
  position: absolute; top: 12px; right: 14px;
  font-size: 10px; font-style: normal; color: var(--pk-teal-bright);
}
.agent-page .script-type-trigger.is-selected {
  border-color: var(--pk-teal-bright);
  background: linear-gradient(120deg, rgba(255, 99, 57, .14), rgba(204, 79, 46, .18));
}
.agent-page .script-type-trigger.is-selected strong { color: var(--pk-teal-bright); }

/* 选项网格 */
.agent-page .script-choice-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px; margin: 6px 0 14px;
}
.agent-page .script-choice {
  display: block;
  background: var(--pk-dark-3);
  border: 1px solid var(--pk-line);
  border-radius: 11px;
  padding: 12px 14px;
  cursor: pointer; color: var(--pk-text-2);
}
.agent-page .script-choice strong { display: block; font-size: 14px; color: var(--pk-text); font-weight: 500; }
.agent-page .script-choice small { font-size: 11px; color: var(--pk-text-3); }
.agent-page .script-choice.active {
  border-color: var(--pk-teal-bright);
  background: linear-gradient(120deg, rgba(255, 99, 57, .14), rgba(204, 79, 46, .2));
}
.agent-page .script-choice.active strong { color: var(--pk-teal-bright); }
.agent-page .script-choice input { display: none; }

/* 框定选题 / 自定义呈现 */
.agent-page .script-topic-scope,
.agent-page .script-presentation-custom { display: block; margin: 8px 0 14px; }
.agent-page .script-topic-scope > span,
.agent-page .script-custom { display: block; font-size: 13px; color: var(--pk-text-2); margin-bottom: 6px; }
.agent-page .script-topic-scope em,
.agent-page .script-custom em { color: var(--pk-coral); font-style: normal; font-size: 11px; }
.agent-page .script-presentation-custom small,
.agent-page .script-topic-scope small { display: block; color: var(--pk-text-3); font-size: 12px; margin-top: 6px; }

/* 操作按钮区 */
.agent-page .script-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }

/* 生成选项列表（选题/钩子候选） */
.agent-page .script-generated-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.agent-page .script-generated-list button {
  text-align: left;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  background: var(--pk-dark-3);
  border: 1px solid var(--pk-line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer; color: var(--pk-text-2);
}
.agent-page .script-generated-list button span { display: block; }
.agent-page .script-generated-list button strong { font-size: 14px; color: var(--pk-text); font-weight: 500; }
.agent-page .script-generated-list button small { font-size: 12px; color: var(--pk-text-3); }
.agent-page .script-generated-list button em {
  flex: none; font-size: 11px; font-style: normal; color: var(--pk-teal-bright);
}
.agent-page .script-generated-list button.active {
  border-color: var(--pk-teal-bright);
  background: linear-gradient(120deg, rgba(255, 99, 57, .14), rgba(204, 79, 46, .2));
}
.agent-page .script-generated-list button.active strong { color: var(--pk-teal-bright); }

/* 当前选择行 */
.agent-page .script-context-line {
  display: flex; align-items: center; gap: 10px;
  background: var(--pk-dark-3);
  border: 1px solid var(--pk-line);
  border-radius: 10px;
  padding: 10px 14px; margin: 10px 0;
}
.agent-page .script-context-line span { font-size: 12px; color: var(--pk-text-3); }
.agent-page .script-context-line strong { font-size: 14px; color: var(--pk-teal-bright); }

/* 状态条 */
.agent-page .script-status {
  display: flex; align-items: center; gap: 12px;
  background: var(--pk-dark-3);
  border: 1px solid var(--pk-line);
  border-left: 3px solid var(--pk-text-3);
  border-radius: 10px;
  padding: 12px 16px; margin-bottom: 16px;
}
.agent-page .script-status-success { border-left-color: var(--pk-green); }
.agent-page .script-status strong { color: var(--pk-text); font-size: 14px; }
.agent-page .script-status p { color: var(--pk-text-3); font-size: 12px; margin: 2px 0 0; }
.agent-page .script-status em { margin-left: auto; font-size: 12px; color: var(--pk-text-3); font-style: normal; }
.agent-page .script-status-icon { color: var(--pk-green); font-size: 16px; }

/* 结果区 */
.agent-page .module-panel.script-result { background: var(--pk-dark-3); }
.agent-page .script-result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.agent-page .script-result-head .panel-label { font-size: 11px; letter-spacing: 1.5px; color: var(--pk-text-3); text-transform: uppercase; }
.agent-page .script-result-head h3 { margin: 6px 0 0; font-size: 17px; color: var(--pk-text); font-weight: 600; }
.agent-page .script-result-actions { display: flex; gap: 8px; flex: none; }
.agent-page .script-result pre {
  white-space: pre-wrap; word-break: break-word;
  background: var(--pk-dark);
  border: 1px solid var(--pk-line);
  border-radius: 10px;
  padding: 16px;
  color: var(--pk-text-2);
  font-size: 14px; line-height: 1.7;
  max-height: 420px; overflow: auto;
}

/* 时长 / 备注表单网格 */
.agent-page .script-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0; }
.agent-page .script-duration-box {
  background: var(--pk-dark-3);
  border: 1px solid var(--pk-line);
  border-radius: 12px; padding: 14px;
}
.agent-page .script-duration-head { display: flex; justify-content: space-between; align-items: center; }
.agent-page .script-duration-head span { color: var(--pk-text-3); font-size: 13px; }
.agent-page .script-duration-head strong { color: var(--pk-teal-bright); font-size: 15px; }
.agent-page .script-duration-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.agent-page .script-duration-preset {
  background: var(--pk-dark); border: 1px solid var(--pk-line); border-radius: 8px;
  color: var(--pk-text-2); font-size: 12px; padding: 6px 10px; cursor: pointer;
}
.agent-page .script-duration-preset.active { border-color: var(--pk-teal-bright); color: var(--pk-teal-bright); }
.agent-page .script-duration-custom { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.agent-page .script-duration-custom span { color: var(--pk-text-3); font-size: 13px; }
.agent-page .script-duration-range { width: 100%; accent-color: var(--pk-teal); }
.agent-page .script-duration-box small { color: var(--pk-text-3); font-size: 12px; }

/* 输入框 */
.agent-page .admin-textarea,
.agent-page .admin-input {
  background: var(--pk-dark);
  border: 1px solid var(--pk-line);
  border-radius: 10px;
  color: var(--pk-text);
  padding: 12px 14px;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
}
.agent-page .admin-textarea:focus,
.agent-page .admin-input:focus {
  border-color: var(--pk-teal-bright);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 99, 57, .15);
}
.agent-page label.wide,
.agent-page .script-custom { color: var(--pk-text-2); }
.agent-page label.wide input,
.agent-page label.wide textarea { margin-top: 6px; }

/* 统一下拉箭头：对齐数字人模型（.dh-actionbar select）的橙色箭头参考样式。
   排除已有正确箭头的下拉：顶部模型切换器 / 数字人语音·模型·结算 / 管理端 admin-select。 */
.agent-page select:not(#modelAliasSelect):not([multiple]):not(.admin-select):not(.admin-multi-select):not(.dh-voice-settings select):not(.dh-actionbar select):not(.dh-inline-fields select):not(.dh-checkout select) {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff8a5f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  color-scheme: dark;
  cursor: pointer;
}

/* 按钮（内容区） */
.agent-page .module-body .btn-primary {
  background: linear-gradient(120deg, #ff7a38, #ff6339 55%, #ff5733);
  border: 1px solid transparent;
  color: #fff;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.agent-page .module-body .btn-primary:hover { filter: brightness(1.08); }
.agent-page .module-body .btn-quiet {
  background: var(--pk-dark-3);
  border: 1px solid var(--pk-line);
  color: var(--pk-text-2);
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 14px; cursor: pointer;
}
.agent-page .module-body .btn-quiet:hover { color: var(--pk-text); border-color: rgba(255, 99, 57, .4); }

/* 空状态 */
.agent-page .empty-state {
  text-align: center; padding: 40px 20px;
  background: var(--pk-dark-3);
  border: 1px dashed var(--pk-line);
  border-radius: 14px;
}
.agent-page .empty-state strong { display: block; color: var(--pk-text); font-size: 16px; margin-bottom: 6px; }
.agent-page .empty-state p { color: var(--pk-text-3); font-size: 13px; }
.agent-page .empty-state .btn { margin-top: 14px; }

/* 文案记录列表 */
.agent-page .script-record-list { display: flex; flex-direction: column; gap: 12px; }
.agent-page .script-record-card {
  background: var(--pk-dark-3);
  border: 1px solid var(--pk-line);
  border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
}
.agent-page .script-record-main span { font-size: 12px; color: var(--pk-text-3); }
.agent-page .script-record-main strong { display: block; font-size: 15px; color: var(--pk-text); margin: 4px 0; }
.agent-page .script-record-main p { color: var(--pk-text-2); font-size: 13px; margin: 0; }
.agent-page .script-record-meta { display: flex; gap: 14px; font-size: 12px; color: var(--pk-text-3); }
.agent-page .script-record-meta em { color: var(--pk-gold); font-style: normal; }
.agent-page .script-record-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.agent-page .record-pager { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.agent-page .record-pager span { color: var(--pk-text-3); font-size: 13px; }
.agent-page .record-pager .btn { margin-left: auto; }

/* 行业插件标识（草图意向：创作页接入行业插件） */
.agent-page .pk-script-plug {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(120deg, rgba(255,106,61,.1), rgba(245,181,68,.08));
  border: 1px solid rgba(255,106,61,.3);
  border-radius: 12px;
  padding: 10px 16px; margin-bottom: 16px;
}
.agent-page .pk-script-plug .pk-plug-dot {
  width: 10px; height: 10px; border-radius: 3px; background: var(--pk-coral); flex: none;
}
.agent-page .pk-script-plug > span { font-size: 12px; color: var(--pk-text-3); letter-spacing: 1px; }
.agent-page .pk-script-plug strong { font-size: 14px; color: #ff6339; }
.agent-page .pk-script-plug small { font-size: 12px; color: var(--pk-text-3); }

/* 智能体大厅 · 拼客深色魔方风覆盖 */
.agent-page .ai-agent-hall { display: block; }
.agent-page .ai-agent-hall-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.agent-page .ai-agent-hall-head > div:first-child span { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: #ff6339; text-transform: uppercase; }
.agent-page .ai-agent-hall-head h1 { font-size: clamp(24px, 2vw, 30px); color: #faf1ee; margin: 6px 0 8px; font-weight: 700; letter-spacing: -.02em; }
.agent-page .ai-agent-hall-head p { color: #c7b0a8; font-size: 13px; margin: 0; max-width: 560px; line-height: 1.6; }
.agent-page .ai-agent-model-note { text-align: right; background: var(--pk-dark-3); border: 1px solid var(--pk-line); border-radius: 12px; padding: 12px 16px; }
.agent-page .ai-agent-model-note span { font-size: 12px; color: var(--pk-text-3); }
.agent-page .ai-agent-model-note strong { display: block; font-size: 14px; color: var(--pk-teal-bright); margin: 4px 0 2px; }
.agent-page .ai-agent-model-note small { font-size: 11px; color: var(--pk-text-3); }
.agent-page .ai-agent-hall-highlights { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.agent-page .ai-agent-hall-highlights > div { flex: 1 1 160px; background: var(--pk-dark-3); border: 1px solid var(--pk-line); border-radius: 12px; padding: 14px 16px; }
.agent-page .ai-agent-hall-highlights strong { display: block; font-size: 14px; color: var(--pk-text); }
.agent-page .ai-agent-hall-highlights span { font-size: 12px; color: var(--pk-text-3); }
.agent-page .ai-agent-hall-toolbar { display: flex; align-items: center; gap: 16px; margin: 8px 0 16px; flex-wrap: wrap; }
.agent-page .ai-agent-search { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; background: var(--pk-dark-3); border: 1px solid var(--pk-line); border-radius: 12px; padding: 10px 14px; }
.agent-page .ai-agent-search span { font-size: 13px; color: var(--pk-text-3); white-space: nowrap; }
.agent-page .ai-agent-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--pk-text); font-size: 14px; font-family: inherit; }
.agent-page .ai-agent-search input::placeholder { color: var(--pk-text-3); }
.agent-page .ai-agent-hall-count { margin-left: auto; color: var(--pk-text-3); font-size: 13px; }
.agent-page .ai-agent-hall-count strong { color: var(--pk-teal-bright); font-size: 16px; margin-right: 4px; }
.agent-page .ai-agent-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1440px) { .agent-page .ai-agent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .agent-page .ai-agent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .agent-page .ai-agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.agent-page .ai-agent-card { background: var(--pk-dark-3); border: 1px solid var(--pk-line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s, transform .15s; }
.agent-page .ai-agent-card:hover { border-color: var(--pk-teal-bright); transform: translateY(-2px); }
.agent-page .ai-agent-card-top { display: flex; align-items: center; gap: 14px; }
.agent-page .ai-agent-avatar { width: 60px; height: 60px; border-radius: 14px; background: linear-gradient(135deg, var(--pk-teal), #a33f22); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; font-size: 22px; color: #fff3ec; font-weight: 600; }
.agent-page .ai-agent-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.agent-page .ai-agent-card-top > div { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.agent-page .ai-agent-card-top > div span { font-size: 12px; color: var(--pk-text-3); letter-spacing: 1px; text-transform: uppercase; }
.agent-page .ai-agent-card-top h2 { font-size: 19px; color: var(--pk-text); margin: 3px 0 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-page .ai-agent-card-top em { position: absolute; top: 20px; right: 20px; margin-left: 0; font-size: 12px; color: var(--pk-green); font-style: normal; background: rgba(204, 79, 46, .14); border: 1px solid rgba(204, 79, 46, .3); border-radius: 999px; padding: 4px 12px; }
.agent-page .ai-agent-card { position: relative; }
.agent-page .ai-agent-card > p { color: var(--pk-text-2); font-size: 14px; line-height: 1.65; margin: 0; }
.agent-page .ai-agent-card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-page .ai-agent-card-meta span { font-size: 12px; color: var(--pk-text-3); background: var(--pk-dark); border: 1px solid var(--pk-line); border-radius: 9px; padding: 6px 12px; }
.agent-page .ai-agent-last-session { background: var(--pk-dark); border: 1px solid var(--pk-line); border-radius: 11px; padding: 12px 14px; text-align: left; cursor: pointer; }
.agent-page .ai-agent-last-session small { display: block; font-size: 12px; color: var(--pk-text-3); }
.agent-page .ai-agent-last-session strong { font-size: 14px; color: var(--pk-text); }
.agent-page .ai-agent-last-session.is-empty strong { color: var(--pk-text-2); }
.agent-page .ai-agent-card-actions { display: flex; gap: 10px; }
.agent-page .ai-agent-new-conversation { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: linear-gradient(120deg, var(--pk-teal), #a33f22); border: 1px solid transparent; border-radius: 11px; padding: 12px 14px; cursor: pointer; color: #fff3ec; }
.agent-page .ai-agent-new-conversation strong { font-size: 15px; }
.agent-page .ai-agent-new-conversation small { font-size: 12px; opacity: .85; }
.agent-page .ai-agent-card-actions .btn-quiet { background: var(--pk-dark); border: 1px solid var(--pk-line); border-radius: 11px; padding: 12px 14px; color: var(--pk-text-2); cursor: pointer; }
.agent-page .ai-agent-card-actions .btn-quiet:hover { color: var(--pk-text); border-color: rgba(255, 99, 57, .4); }
.agent-page .ai-agent-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--pk-line); flex-wrap: wrap; }
.agent-page .ai-agent-pagination-copy span { font-size: 13px; color: var(--pk-text-2); }
.agent-page .ai-agent-pagination-copy small { display: block; font-size: 12px; color: var(--pk-text-3); margin-top: 2px; }
.agent-page .ai-agent-pagination-actions { display: flex; align-items: center; gap: 12px; }
.agent-page .ai-agent-pagination-actions button { background: var(--pk-dark-3); border: 1px solid var(--pk-line); border-radius: 10px; padding: 8px 14px; color: var(--pk-text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.agent-page .ai-agent-pagination-actions button:hover { color: var(--pk-text); border-color: rgba(255, 99, 57, .4); }
.agent-page .ai-agent-pagination-actions strong { font-size: 13px; color: var(--pk-text); }
.agent-page .ai-agent-search-empty { text-align: center; padding: 30px; color: var(--pk-text-3); }
.agent-page .ai-agent-search-empty strong { display: block; color: var(--pk-text); font-size: 15px; margin-bottom: 4px; }

/* 视频脚本 / 爆款二创 / 案例拆解 · 工作区容器（与文案创作同源） */
.agent-page .module-panel.video-script-workbench,
.agent-page .module-panel:has(.video-script-workbench),
.agent-page .module-panel:has(.viral-rewrite-records),
.agent-page .module-panel:has(.case-study-records) {
  width: 100%;
  background: var(--pk-dark-2);
  border: 1px solid var(--pk-line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.agent-page .video-script-workbench .video-script-input-label,
.agent-page .video-script-workbench label { color: var(--pk-text-2); }
.agent-page .video-script-workbench .section-title.compact h2 { color: var(--pk-text); }

/* 自动网感剪辑 · 拼客深色魔方风覆盖（懒加载独立模块 .editing-*） */
.agent-page .video-editing-app { color: var(--pk-text-2); }
.agent-page .video-editing-app > .editing-workspace { background: transparent; }
.agent-page .editing-recent { background: var(--pk-dark-3); border: 1px solid var(--pk-line); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.agent-page .editing-recent > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.agent-page .editing-recent > header span { font-size: 13px; color: var(--pk-text); font-weight: 600; }
.agent-page .editing-recent > header small { font-size: 12px; color: var(--pk-text-3); margin-left: 8px; }
.agent-page .editing-recent-more { background: var(--pk-dark); border: 1px solid var(--pk-line); color: var(--pk-text-2); border-radius: 8px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.agent-page .editing-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px; }
.agent-page .editing-project-card { background: var(--pk-dark-2); border: 1px solid var(--pk-line); border-radius: 12px; overflow: hidden; }
.agent-page .editing-project-card:hover { border-color: rgba(255, 99, 57, .4); }
.agent-page .editing-project-media { display: block; width: 100%; border: none; background: var(--pk-dark); cursor: pointer; }
.agent-page .editing-project-cover-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 10px; color: var(--pk-text-3); }
.agent-page .editing-project-cover-empty strong { color: var(--pk-text); font-size: 14px; }
.agent-page .editing-project-play b { background: rgba(0,0,0,.5); color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 12px; }
.agent-page .editing-upload-primary { display: flex; flex-direction: column; align-items: center; gap: 4px; background: linear-gradient(120deg, var(--pk-teal), #a33f22); color: #fff3ec; border-radius: 14px; padding: 28px; cursor: pointer; border: 1px solid transparent; }
.agent-page .editing-upload-primary b { font-size: 16px; }
.agent-page .editing-upload-primary small { font-size: 12px; opacity: .85; }
.agent-page .editing-upgrade-primary { background: linear-gradient(120deg, var(--pk-coral), #b8431f); }
.agent-page .edit-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
.agent-page .edit-template-card { background: var(--pk-dark-2); border: 1px solid var(--pk-line); border-radius: 12px; overflow: hidden; cursor: pointer; padding: 0; text-align: left; }
.agent-page .edit-template-card.active { border-color: var(--pk-teal-bright); box-shadow: 0 0 0 2px rgba(255, 99, 57, .2); }
.agent-page .edit-template-preview { display: block; aspect-ratio: 9/16; background: var(--pk-dark); }
.agent-page .edit-template-preview img { width: 100%; height: 100%; object-fit: cover; }
.agent-page .edit-template-copy { display: block; padding: 10px 12px; }
.agent-page .edit-template-copy strong { display: block; color: var(--pk-text); font-size: 13px; }
.agent-page .editing-stage-panel { background: var(--pk-dark-3); border: 1px solid var(--pk-line); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.agent-page .editing-stage-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.agent-page .editing-stage-toolbar span { color: var(--pk-text-2); font-size: 13px; }
.agent-page .editing-stage-toolbar b { color: var(--pk-teal-bright); }
.agent-page .editing-stage-toolbar small { color: var(--pk-text-3); font-size: 12px; }
.agent-page .editing-stage-view-switch button { background: var(--pk-dark); border: 1px solid var(--pk-line); color: var(--pk-text-2); border-radius: 8px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.agent-page .editing-stage-view-switch button.active { border-color: var(--pk-teal-bright); color: var(--pk-teal-bright); }
.agent-page .editing-phone-stage { background: #000; border-radius: 12px; overflow: hidden; }
.agent-page .editing-no-video { padding: 40px; text-align: center; color: var(--pk-text-3); }
.agent-page .editing-control-panel { background: var(--pk-dark-3); border: 1px solid var(--pk-line); border-radius: 16px; padding: 16px; }
.agent-page .editing-control-panel nav { display: flex; gap: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--pk-line); padding-bottom: 10px; }
.agent-page .editing-control-panel nav button { background: transparent; border: 1px solid transparent; color: var(--pk-text-2); border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.agent-page .editing-control-panel nav button.active { background: var(--pk-dark); border-color: var(--pk-line); color: var(--pk-teal-bright); }
.agent-page .editing-sound-panel { display: flex; flex-direction: column; gap: 12px; }
.agent-page .editing-panel-intro span { font-size: 11px; letter-spacing: 1.5px; color: var(--pk-text-3); text-transform: uppercase; }
.agent-page .editing-panel-intro strong { display: block; color: var(--pk-text); font-size: 15px; margin: 4px 0; }
.agent-page .editing-panel-intro small { color: var(--pk-text-3); font-size: 12px; }
.agent-page .editing-sound-card { display: flex; gap: 12px; align-items: flex-start; background: var(--pk-dark-2); border: 1px solid var(--pk-line); border-radius: 12px; padding: 14px; cursor: pointer; }
.agent-page .editing-sound-card.is-featured { border-color: rgba(245,181,68,.35); }
.agent-page .editing-sound-card b { color: var(--pk-text); }
.agent-page .editing-sound-card small { display: block; color: var(--pk-text-3); font-size: 12px; margin-top: 2px; }
.agent-page .editing-sound-card i { margin-left: auto; color: var(--pk-teal-bright); font-style: normal; font-size: 12px; }
.agent-page .editing-audio-choice, .agent-page .editing-music-choice { display: flex; gap: 10px; align-items: center; background: var(--pk-dark-2); border: 1px solid var(--pk-line); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; width: 100%; }
.agent-page .editing-audio-choice.active, .agent-page .editing-music-choice.active { border-color: var(--pk-teal-bright); }
.agent-page .editing-audio-choice b, .agent-page .editing-music-choice b { color: var(--pk-text); font-size: 13px; }
.agent-page .editing-audio-choice small, .agent-page .editing-music-choice small { display: block; color: var(--pk-text-3); font-size: 11px; }
.agent-page .editing-audio-choice em, .agent-page .editing-music-choice em { margin-left: auto; font-style: normal; color: var(--pk-gold); font-size: 11px; }
.agent-page .editing-result { background: var(--pk-dark-2); border: 1px solid var(--pk-line); border-radius: 16px; padding: 20px; }
.agent-page .editing-result span { color: var(--pk-teal-bright); font-size: 13px; }
.agent-page .editing-result strong { display: block; color: var(--pk-text); font-size: 15px; margin: 6px 0; }
.agent-page .editing-result p { color: var(--pk-text-3); font-size: 13px; }
.agent-page .editing-result a { display: inline-block; margin-top: 10px; background: linear-gradient(120deg, var(--pk-teal), #a33f22); color: #fff3ec; border-radius: 10px; padding: 10px 18px; font-size: 13px; text-decoration: none; }
.agent-page .editing-task-error { background: var(--pk-dark-2); border: 1px solid rgba(255,106,61,.3); border-radius: 16px; padding: 20px; }
.agent-page .editing-task-error strong { display: block; color: #ff6339; font-size: 15px; margin: 6px 0; }
.agent-page .editing-task-error button { margin-top: 10px; background: var(--pk-dark-3); border: 1px solid var(--pk-line); color: var(--pk-text); border-radius: 10px; padding: 10px 18px; cursor: pointer; }
.agent-page .editing-media-modal { background: rgba(0,0,0,.6); }
.agent-page .editing-media-modal > div { background: var(--pk-dark-2); border: 1px solid var(--pk-line); border-radius: 16px; padding: 16px; }
.agent-page .editing-media-modal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.agent-page .editing-media-modal header strong { color: var(--pk-text); }
.agent-page .editing-media-modal header button { background: var(--pk-dark-3); border: 1px solid var(--pk-line); color: var(--pk-text-2); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.agent-page .editing-quota-mask { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
.agent-page .editing-quota-mask > div { background: var(--pk-dark-2); border: 1px solid var(--pk-line); border-radius: 16px; padding: 24px; }
.agent-page .editing-history-empty, .agent-page .editing-history-loading { color: var(--pk-text-3); padding: 20px; text-align: center; }
.agent-page .editing-history-empty strong, .agent-page .editing-history-loading strong { color: var(--pk-text); display: block; margin-bottom: 4px; }
.agent-page .editing-history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
.agent-page .editing-history-thumb { background: var(--pk-dark-2); border: 1px solid var(--pk-line); border-radius: 12px; overflow: hidden; }

/* 文字快剪 / 声音 tab 面板：去掉旧旧站蓝青，统一暖珊瑚橙配色 */
.agent-page .editing-control-panel > nav button.active::after { background: linear-gradient(90deg, var(--pk-coral), var(--pk-teal-bright)); }
/* 文字快剪 */
.agent-page .editing-text-panel label { color: var(--pk-text-2); }
.agent-page .editing-text-panel label small { color: var(--pk-text-3); }
.agent-page .editing-text-panel input, .agent-page .editing-text-panel textarea { color: var(--pk-text); background: var(--pk-dark); border: 1px solid var(--pk-line); border-radius: 10px; }
.agent-page .editing-text-panel input:focus, .agent-page .editing-text-panel textarea:focus { border-color: rgba(255,106,61,.55); box-shadow: 0 0 0 3px rgba(255,99,57,.12); }
.agent-page .editing-text-panel p { color: var(--pk-text-2); border-left-color: var(--pk-coral); background: rgba(255,99,57,.07); }
.agent-page .editing-cue-row { background: var(--pk-dark); border: 1px solid var(--pk-line); border-radius: 10px; }
.agent-page .editing-cue-row:hover { border-color: rgba(255,106,61,.4); }
.agent-page .editing-cue-row > button { background: var(--pk-dark-2); border: 1px solid var(--pk-line); color: var(--pk-text-2); border-radius: 8px; }
.agent-page .editing-cue-row > button:hover { color: #fff; border-color: rgba(255,106,61,.5); }
.agent-page .editing-cue-row .editing-cue-time { color: var(--pk-text-3); }
.agent-page .editing-cue-row .editing-cue-time:hover { color: var(--pk-teal-bright); background: rgba(255,99,57,.08); }
.agent-page .editing-cue-row.is-current { border-color: rgba(255,106,61,.5); background: rgba(255,99,57,.08); }
.agent-page .editing-cue-row.is-current .editing-cue-time { color: var(--pk-teal-bright); }
.agent-page .editing-cue-row.is-deleted > button:last-child { color: var(--pk-teal-bright); }
.agent-page .editing-transcript-empty { border: 1px dashed rgba(255,106,61,.4); background: rgba(255,99,57,.05); border-radius: 12px; }
.agent-page .editing-transcript-empty strong { color: var(--pk-text); }
/* 声音 · 音效包（原为蓝色） */
.agent-page .editing-sfx-pack { border: 1px solid var(--pk-line); border-radius: 14px; background: var(--pk-dark-2); }
.agent-page .editing-sfx-pack header strong { color: var(--pk-text); }
.agent-page .editing-sfx-pack header span { color: var(--pk-text-3); }
.agent-page .editing-sfx-pack header > em { color: var(--pk-gold); background: rgba(227,123,86,.14); }
.agent-page .editing-sfx-pack > div button { background: var(--pk-dark); border: 1px solid var(--pk-line); color: var(--pk-text-2); border-radius: 8px; }
.agent-page .editing-sfx-pack > div button:hover { color: #fff; border-color: rgba(255,106,61,.5); }
.agent-page .editing-sfx-volume span { color: var(--pk-text-3); }
.agent-page .editing-sfx-volume b { color: var(--pk-teal-bright); }
.agent-page .editing-sfx-pack > p { color: var(--pk-text-3); }
/* 声音 · 音乐包（原为青色） */
.agent-page .editing-music-pack { border: 1px solid var(--pk-line); border-radius: 14px; background: var(--pk-dark-2); }
.agent-page .editing-music-pack > header span { color: var(--pk-text); }
.agent-page .editing-music-pack > header small { color: var(--pk-text-3); }
.agent-page .editing-music-choice { background: var(--pk-dark); border: 1px solid var(--pk-line); color: var(--pk-text-2); border-radius: 10px; }
.agent-page .editing-music-choice b { color: var(--pk-text); }
.agent-page .editing-music-choice small { color: var(--pk-text-3); }
.agent-page .editing-music-choice > i { color: var(--pk-teal-bright); background: rgba(255,99,57,.12); }
.agent-page .editing-music-choice:hover { border-color: rgba(255,106,61,.5); }
.agent-page .editing-music-choice.active { border-color: rgba(255,106,61,.55); background: rgba(255,99,57,.1); box-shadow: 0 0 0 2px rgba(255,99,57,.06) inset; }
.agent-page .editing-music-pack > p { color: var(--pk-text-3); }
/* 声音 · 音频选择卡（原 active 为青色，base 带 !important） */
.agent-page .editing-audio-choice em { color: var(--pk-gold); }
.agent-page .editing-audio-choice.active { color: var(--pk-text)!important; border-color: rgba(255,106,61,.55)!important; background: rgba(255,99,57,.1)!important; box-shadow: 0 0 0 2px rgba(255,99,57,.06) inset!important; }
/* 声音 · 卡片 hover / featured（base 带 !important） */
.agent-page .editing-sound-card { background: var(--pk-dark-2); }
.agent-page .editing-sound-card:hover { border-color: rgba(255,106,61,.45)!important; background: var(--pk-dark-2)!important; }
.agent-page .editing-sound-card.is-featured { border-color: rgba(245,181,68,.4)!important; background: linear-gradient(110deg, rgba(227,123,86,.12), var(--pk-dark-2))!important; }
.agent-page .editing-sound-card > i { color: var(--pk-teal-bright); }
.agent-page .editing-sound-panel .is-preparing em { color: var(--pk-text-3); background: rgba(255,255,255,.06); }
/* 音量 / 开关 / 复选：主色统一珊瑚橙 */
.agent-page .editing-volume { color: var(--pk-text-2); border-top-color: var(--pk-line); }
.agent-page .editing-volume b { color: var(--pk-teal-bright); }
.agent-page .editing-switches input, .agent-page .editing-sound-panel input[type="checkbox"], .agent-page .editing-volume input, .agent-page .editing-sfx-volume input { accent-color: var(--pk-coral); }

/* 网感剪辑首页两栏：左=上传入口，右=最近任务（无任务时保持全宽） */
.agent-page .pk-ve-home-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: stretch; }
.agent-page .pk-ve-home-split .editing-import-shell { margin-bottom: 0; height: 100%; }
.agent-page .pk-ve-home-split .editing-recent { margin-bottom: 0; height: 100%; }
@media (max-width: 1100px) { .agent-page .pk-ve-home-split { grid-template-columns: 1fr; } .agent-page .pk-ve-home-split .editing-import-shell { height: auto; } }

/* 文案创作 · 两栏布局（左输入 / 右进度+产出） */
.agent-page .pk-script-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.agent-page .pk-script-left .script-step-panel,
.agent-page .pk-script-left .module-panel { margin-bottom: 0; }
.agent-page .pk-script-progress { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.agent-page .pk-script-progress > div { display: flex; gap: 10px; align-items: baseline; background: var(--pk-dark); border: 1px solid var(--pk-line); border-radius: 10px; padding: 10px 14px; }
.agent-page .pk-script-progress > div span { flex: none; font-size: 12px; color: var(--pk-text-3); }
.agent-page .pk-script-progress > div strong { font-size: 13px; color: var(--pk-text-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-page .pk-script-progress > div.done { border-color: rgba(255, 99, 57, .35); }
.agent-page .pk-script-progress > div.done span { color: var(--pk-teal-bright); }
.agent-page .pk-script-progress > div.done strong { color: var(--pk-text); }
.agent-page .pk-script-context-empty { color: var(--pk-text-3); font-size: 13px; padding: 22px 0; text-align: center; }
.agent-page .pk-script-context .script-result-head { margin-top: 4px; }
.agent-page .pk-script-context .script-result-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 1100px) {
  .agent-page .pk-script-split { grid-template-columns: 1fr; }
}

/* IP人设详情 · 左档案右方案两栏 */
.agent-page .pk-ip-detail-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.agent-page .pk-ip-detail-side { display: grid; gap: 14px; min-width: 0; position: sticky; top: 14px; }
.agent-page .pk-ip-detail-main { min-width: 0; }
.agent-page .pk-ip-detail-side .ip-info-card { margin: 0; }
.agent-page .pk-ip-detail-side .ip-info-card-v2 { grid-template-columns: 56px minmax(0, 1fr); min-height: 0; padding: 16px; }
.agent-page .pk-ip-detail-side .ip-info-card-v2 h2 { font-size: 21px; }
.agent-page .pk-ip-detail-side .ip-info-card-v2 > i,
.agent-page .pk-ip-detail-side .ip-info-card-v2 > .btn { grid-column: 1 / -1; justify-self: start; }
.agent-page .pk-ip-detail-side .ip-base-grid { grid-template-columns: 1fr; gap: 8px; }
.agent-page .pk-ip-detail-side .ip-base-grid div { min-height: 0; padding: 12px 14px; }
.agent-page .pk-ip-detail-side .ip-base-grid strong { margin-top: 5px; font-size: 13px; }
.agent-page .pk-ip-detail-main .ip-plan-row { grid-template-columns: 1fr; gap: 4px; padding: 11px 0; }
.agent-page .pk-ip-detail-main .ip-plan-row span { font-size: 12px; }
@media (max-width: 1100px) {
  .agent-page .pk-ip-detail-split { grid-template-columns: 1fr; }
  .agent-page .pk-ip-detail-side { position: static; }
}

/* 账号策划 · 左概览右方案两栏（hero压缩成窄条） */
.agent-page .account-plan-hero.pk-ap-compact { grid-template-columns: 1fr; min-height: 0; padding: 16px 20px; }
.agent-page .account-plan-hero.pk-ap-compact .account-plan-hero-copy h2 { margin: 6px 0 4px; font-size: 22px; }
.agent-page .account-plan-hero.pk-ap-compact .account-plan-hero-copy p { max-width: none; font-size: 13px; }
.agent-page .account-plan-hero.pk-ap-compact .account-plan-hero-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.agent-page .pk-ap-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.agent-page .pk-ap-side { display: grid; gap: 12px; min-width: 0; position: sticky; top: 14px; }
.agent-page .pk-ap-main { min-width: 0; }
.agent-page .pk-ap-side .account-plan-hero-card { padding: 16px; }
.agent-page .pk-ap-side .account-plan-hero-card img { width: 56px; height: 56px; }
.agent-page .pk-ap-side .account-plan-hero-card strong { font-size: 17px; white-space: normal; }
.agent-page .pk-ap-stats-v { grid-template-columns: 1fr; gap: 8px; }
.agent-page .pk-ap-stats-v div { min-height: 0; padding: 10px 12px; }
.agent-page .pk-ap-stats-v strong { margin-top: 4px; font-size: 14px; }
.agent-page .pk-ap-main .ip-plan-row { grid-template-columns: 1fr; gap: 4px; padding: 11px 0; }
.agent-page .pk-ap-main .ip-plan-row span { font-size: 12px; }
@media (max-width: 1100px) {
  .agent-page .pk-ap-split { grid-template-columns: 1fr; }
  .agent-page .pk-ap-side { position: static; }
}

/* 生成记录/系统公告/账号设置：压掉巨型hero与大KPI卡，让内容提前露出 */
.agent-page .support-hero { grid-template-columns: minmax(0, 1fr) 64px; gap: 14px; min-height: 0; padding: 16px 20px; }
.agent-page .support-hero h2 { margin: 5px 0 3px; font-size: 22px; }
.agent-page .support-hero p { font-size: 13px; line-height: 1.6; }
.agent-page .support-hero img { width: 56px; height: 56px; }
.agent-page .support-kpi-grid { gap: 8px; }
.agent-page .support-kpi-grid div { min-height: 0; padding: 10px 12px; }
.agent-page .support-kpi-grid strong { margin-top: 4px; font-size: 16px; }
.agent-page .support-kpi-grid div > small { margin-top: 2px; }
.agent-page .account-security-hero { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); }

/* 邀请中心：338px大横幅压缩 */
.agent-page .invite-promo-hero { min-height: 0; }
.agent-page .invite-promo-copy { padding: 20px 22px; }
.agent-page .invite-promo-copy h2 { margin: 6px 0 8px; font-size: 22px; }
.agent-page .invite-promo-visual { padding: 16px 20px; }
.agent-page .invite-promo-visual > strong { margin: 4px 0; font-size: 22px; }
.agent-page .invite-avatar-stack img { width: 42px; height: 42px; margin-right: -10px; border-width: 2px; }
.agent-page .invite-promo-copy h2 br { display: none; }
.agent-page .invite-promo-copy h2 { font-size: 20px; line-height: 1.4; }
.agent-page .invite-promo-copy p { font-size: 13px; line-height: 1.6; }
.agent-page .invite-promo-actions { gap: 8px; }
.agent-page .invite-promo-actions .btn { min-height: 0; padding: 9px 14px; font-size: 13px; }

/* 系统公告 · 左列表右统计两栏 */
.agent-page .pk-ann-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.agent-page .pk-ann-split .pk-ap-side { position: sticky; top: 14px; }
@media (max-width: 1100px) {
  .agent-page .pk-ann-split { grid-template-columns: 1fr; }
}

/* 工作台：压缩巨型hero与状态卡，智能体/主链路内容提前露出 */
.agent-page .command-dashboard { gap: 12px; }
/* hero 网格：
   第1行 = 平台条（整行居中，500px，由 platform-rail.css 控制 grid-row:1）
   第2行 = 文案(左自适应) | 右组(创作办公室 + 今日内容链路，flex 等高、间距10px) */
.agent-page .command-hero {
  min-height: 0;
  padding: 18px 22px;
  column-gap: 18px;
  row-gap: 16px;
  grid-template-columns: minmax(300px, 1fr) 760px;
  grid-template-rows: auto auto;
}
.agent-page .command-hero.has-office-promo { min-height: 0; }
.agent-page .command-hero .command-hero-copy { grid-column: 1; grid-row: 2; min-width: 0; min-height: 400px; margin-top: -30px; grid-template-columns: minmax(0, 1fr); }
.agent-page .command-hero .command-hero-rightgroup {
  grid-column: 2; grid-row: 2;
  display: flex; gap: 10px; align-items: stretch; min-width: 0;
  min-height: 400px;
}
.agent-page .command-hero .command-office-promo { flex: 0 0 380px; min-width: 0; align-self: stretch; }
.agent-page .command-hero .command-hero-stage { flex: 1 1 360px; min-width: 0; align-self: stretch; }
/* 窗口较窄时：右组纵向堆叠，避免挤压 */
@media (max-width: 1100px) {
  .agent-page .command-hero { grid-template-columns: minmax(0, 1fr); }
  .agent-page .command-hero .command-hero-copy { grid-column: 1; grid-row: 2; }
  .agent-page .command-hero .command-hero-rightgroup { grid-column: 1; grid-row: 3; flex-direction: column; }
}
.agent-page .command-hero h1 { margin: 8px 0 6px; font-size: 38px; line-height: 1.18; word-break: break-word; overflow-wrap: anywhere; max-width: 100%; }
.agent-page .command-hero-copy > p { font-size: 15px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.agent-page .command-hero-actions { margin-top: 14px; gap: 12px; }
.agent-page .command-hero-actions .btn { min-height: 46px; padding: 0 16px; font-size: 16px; }
.agent-page .command-hero-actions .btn img { width: 22px; height: 22px; margin-right: 9px; }
.agent-page .command-hero-stage { gap: 10px; padding: 14px; }
.agent-page .command-stage-top strong { font-size: 15px; }
.agent-page .command-stage-window { padding: 8px; gap: 8px; }
.agent-page .command-stage-window img { display: block; width: 52px; height: 52px; margin: 0 auto; }
.agent-page .command-stage-metrics div { padding: 8px 10px; }
.agent-page .command-status-grid { gap: 10px; }
.agent-page .command-metric-card { min-height: 0; padding: 12px 14px; }
.agent-page .command-metric-card strong { margin-top: 4px; font-size: 18px; }
.agent-page .command-profile-card img { width: 56px; height: 56px; }
.agent-page .command-office-promo { padding: 6px; }
.agent-page .pk-cmd-assemble { gap: 6px; }
.agent-page .command-office-cta { padding: 10px 12px; }
.agent-page .command-office-cta span { font-size: 14px; }
.agent-page .command-office-cta small { font-size: 11px; }

/* 工作台重排：砍掉巨型hero → 一行顶栏 + 左内容右状态 */
.agent-page .pk-dash-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; background: linear-gradient(135deg, var(--pk-dark-2), var(--pk-dark-3)); border: 1px solid var(--pk-line); border-radius: 14px; }
.agent-page .pk-dash-hello .command-eyebrow { margin: 0; }
.agent-page .pk-dash-hello h1 { margin: 6px 0 4px; font-size: 20px; line-height: 1.3; }
.agent-page .pk-dash-hello p { margin: 0; font-size: 12px; color: var(--pk-text-2); }
.agent-page .pk-dash-topbar .command-hero-actions { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.agent-page .pk-dash-stat-list { display: grid; gap: 8px; }
.agent-page .pk-dash-stat { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--pk-line); border-radius: 10px; color: var(--pk-text); }
.agent-page button.pk-dash-stat { cursor: pointer; transition: border-color .15s, background .15s; }
.agent-page button.pk-dash-stat:hover { border-color: rgba(255, 99, 57, .45); background: rgba(255, 99, 57, .06); }
.agent-page .pk-dash-stat img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.agent-page .pk-dash-stat > div { flex: 1; min-width: 0; }
.agent-page .pk-dash-stat span { display: block; font-size: 11px; color: var(--pk-text-3); }
.agent-page .pk-dash-stat strong { display: block; margin-top: 2px; font-size: 14px; color: var(--pk-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-page .pk-dash-stat small { display: block; margin-top: 2px; font-size: 11px; color: var(--pk-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-page .pk-dash-stat em { flex: none; font-style: normal; font-size: 11px; color: var(--pk-teal-bright); background: rgba(255, 99, 57, .12); border: 1px solid rgba(255, 99, 57, .3); border-radius: 999px; padding: 3px 10px; }
.agent-page .pk-dash-office .pk-cmd-assemble { margin-bottom: 10px; flex-wrap: wrap; }
.agent-page .pk-dash-office .command-office-cta { width: 100%; }
@media (max-width: 1100px) {
  .agent-page .pk-dash-topbar { flex-direction: column; align-items: flex-start; }
}

/* 全站外壳瘦身：module-head压成一行式 + 默认侧栏紧凑（所有功能页统一受益） */
.agent-page .module-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.agent-page .module-head span { font-size: 11px; }
.agent-page .module-head h1 { margin: 0; font-size: 20px; line-height: 1.3; }
.agent-page .module-head p { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.5; color: var(--pk-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-page .module-aside { display: grid; gap: 12px; align-content: start; }
.agent-page .module-aside > .side-panel { padding: 14px; }
.agent-page .module-aside .side-panel h3 { margin: 4px 0 10px; font-size: 15px; }
.agent-page .module-aside .side-panel .panel-label { font-size: 11px; }
.agent-page .module-aside .tag-list { gap: 6px; }
.agent-page .module-aside .tag-list span { font-size: 11px; padding: 4px 10px; }
@media (max-width: 1100px) {
  .agent-page .module-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   长任务布局重排 2026-09-30 晚：
   ① 通用数据带 pk-stat-strip（生成记录/账号设置共用）
   ② 账号设置一行顶栏 pk-acct-topbar
   ③ 系统公告单栏阅读 pk-ann-reading
   ④ 记录表格列宽修复（去横向滚动）
   ⑤ 会员中心隐藏空侧栏
   ============================================================ */

/* ① 通用数据带：一条横带四格，竖细线分隔 */
.agent-page .pk-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  overflow: hidden;
}
.agent-page .pk-stat-strip > div {
  display: grid;
  gap: 3px;
  padding: 14px 18px;
  border-left: 1px solid rgba(255, 255, 255, .07);
}
.agent-page .pk-stat-strip > div:first-child { border-left: 0; }
.agent-page .pk-stat-strip span { font-size: 11px; color: var(--pk-text-3, #80716b); font-weight: 700; letter-spacing: 1px; }
.agent-page .pk-stat-strip strong { font-size: 22px; line-height: 1.2; color: var(--pk-text, #f7f2ef); font-family: "DM Mono", Consolas, monospace; }
.agent-page .pk-stat-strip small { font-size: 11.5px; color: var(--pk-text-3, #80716b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) {
  .agent-page .pk-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .agent-page .pk-stat-strip > div:nth-child(3) { border-left: 0; }
  .agent-page .pk-stat-strip > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .07); }
}

/* ② 账号设置顶栏：账号名 + 当前设备一行放下 */
.agent-page .pk-acct-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 99, 57, .22);
  border-radius: 16px;
  background:
    radial-gradient(90% 140% at 90% -30%, rgba(255, 99, 57, .18), transparent 55%),
    rgba(255, 255, 255, .03);
}
.agent-page .pk-acct-topbar .pk-acct-id span { font-size: 11px; color: var(--pk-text-3, #80716b); font-weight: 700; letter-spacing: 2px; }
.agent-page .pk-acct-topbar .pk-acct-id h2 { margin: 4px 0 2px; font-size: 20px; color: var(--pk-text, #f7f2ef); }
.agent-page .pk-acct-topbar .pk-acct-id p { margin: 0; font-size: 12px; color: var(--pk-text-3, #80716b); }
.agent-page .pk-acct-topbar .account-current-session {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  text-align: left;
}
.agent-page .pk-acct-topbar .account-current-session span { font-size: 10.5px; color: var(--pk-text-3, #80716b); }
.agent-page .pk-acct-topbar .account-current-session strong { font-size: 14px; color: var(--pk-text, #f7f2ef); }
.agent-page .pk-acct-topbar .account-current-session small { font-size: 11px; color: #ffb19c; }
@media (max-width: 1100px) {
  .agent-page .pk-acct-topbar { flex-direction: column; align-items: flex-start; }
}

/* ③ 系统公告：去侧栏，单栏舒展阅读 */
.agent-page .module-layout:has(.pk-ann-reading) { grid-template-columns: minmax(0, 1fr); }
.agent-page .module-layout:has(.pk-ann-reading) > aside { display: none; }
.agent-page .pk-ann-reading { max-width: 880px; }

/* ④ 记录表格：禁横向滚动，长列截断 */
.agent-page .generation-record-table { overflow-x: hidden; }
.agent-page .generation-record-table table { table-layout: auto; width: 100%; }
.agent-page .generation-record-table td { max-width: 240px; }
.agent-page .generation-record-table td:nth-child(4),
.agent-page .generation-record-table td:nth-child(7) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ⑤ 会员中心：内容本身两栏大卡，通用侧栏纯占位 → 隐藏 */
.agent-page .module-layout:has(.vip-payment-hub) { grid-template-columns: minmax(0, 1fr); }
.agent-page .module-layout:has(.vip-payment-hub) > aside { display: none; }

/* ⑥ 文案创作/账号策划/脚本创作/爆款二创/案例拆解/图片生成/视频生成/网感剪辑：去侧栏单栏，外层包裹归零（hall 到画布间距与智能体大厅一致，均由 canvas padding 16px 提供） */
.agent-page .module-layout:has(.pk-script-hall),
.agent-page .module-layout:has(.pk-ap-hall),
.agent-page .module-layout:has(.pk-vs-hall),
.agent-page .module-layout:has(.pk-ip-hall),
.agent-page .module-layout:has(.pk-ipd-hall),
.agent-page .module-layout:has(.pk-viral-hall),
.agent-page .module-layout:has(.pk-case-hall),
.agent-page .module-layout:has(.pk-img-hall),
.agent-page .module-layout:has(.pk-img-work-hall),
.agent-page .module-layout:has(.pk-video-hall),
.agent-page .module-layout:has(.pk-video-work-hall),
.agent-page .module-layout:has(.pk-ve-hall),
.agent-page .module-layout:has(.pk-ve-work-hall),
.agent-page .module-layout:has(.pk-dh-hall),
.agent-page .module-layout:has(.pk-log-hall),
.agent-page .module-layout:has(.pk-notice-hall),
.agent-page .module-layout:has(.pk-vip-hall),
.agent-page .module-layout:has(.pk-invite-hall),
.agent-page .module-layout:has(.pk-agent-hall),
.agent-page .module-layout:has(.pk-acct-hall),
.agent-page .module-layout:has(.tpl-lib-hall) { grid-template-columns: minmax(0, 1fr); padding: 0; }
/* IP人设 添加/编辑表单：顶部间距对齐文案创作页（基础 22px 上 padding 清零），保留右侧指南栏 */
.agent-page .module-layout:has(.pk-ipf-hall) { padding: 0; }
.agent-page .module-layout:has(.pk-plugin-hall) { padding: 0; }
.agent-page .module-layout:has(.pk-script-hall) > aside,
.agent-page .module-layout:has(.pk-ap-hall) > aside,
.agent-page .module-layout:has(.pk-vs-hall) > aside,
.agent-page .module-layout:has(.pk-ip-hall) > aside,
.agent-page .module-layout:has(.pk-ipd-hall) > aside,
.agent-page .module-layout:has(.pk-viral-hall) > aside,
.agent-page .module-layout:has(.pk-case-hall) > aside,
.agent-page .module-layout:has(.pk-img-hall) > aside,
.agent-page .module-layout:has(.pk-img-work-hall) > aside,
.agent-page .module-layout:has(.pk-video-hall) > aside,
.agent-page .module-layout:has(.pk-video-work-hall) > aside,
.agent-page .module-layout:has(.pk-ve-hall) > aside,
.agent-page .module-layout:has(.pk-ve-work-hall) > aside,
.agent-page .module-layout:has(.pk-dh-hall) > aside,
.agent-page .module-layout:has(.pk-log-hall) > aside,
.agent-page .module-layout:has(.pk-notice-hall) > aside,
.agent-page .module-layout:has(.pk-vip-hall) > aside,
.agent-page .module-layout:has(.pk-invite-hall) > aside,
.agent-page .module-layout:has(.pk-agent-hall) > aside,
.agent-page .module-layout:has(.pk-acct-hall) > aside,
.agent-page .module-layout:has(.tpl-lib-hall) > aside { display: none; }

/* 装修AI出图工作台：单栏全宽 + 隐藏侧栏 */
.agent-page .module-layout:has(.deco-img-hall) { grid-template-columns: minmax(0, 1fr); padding: 0; }
.agent-page .module-layout:has(.deco-img-hall) > aside { display: none; }
.agent-page .module-layout:has(.deco-vid-hall) { grid-template-columns: minmax(0, 1fr); padding: 0; }
.agent-page .module-layout:has(.deco-vid-hall) > aside { display: none; }

/* ⑦ 资产与账户六大厅融合微调：内容区与 hall 底边贴合 */
.agent-page .module-layout:has(.pk-log-hall),
.agent-page .module-layout:has(.pk-notice-hall),
.agent-page .module-layout:has(.pk-vip-hall),
.agent-page .module-layout:has(.pk-invite-hall),
.agent-page .module-layout:has(.pk-agent-hall),
.agent-page .module-layout:has(.pk-acct-hall) { margin-bottom: 0; }

/* ⑧ 账号设置大厅：渐变只留给 hall 外壳（与文案创作页一致），内容面板用同款实心深灰 #1b1d22 */
.agent-page .pk-acct-hall .pk-stat-strip {
  margin-bottom: 24px;
  border-color: rgba(255, 255, 255, .08);
  background: #1b1d22;
}
.agent-page .pk-acct-hall .pk-stat-strip > div { padding: 16px 20px; border-color: rgba(255, 255, 255, .06); }
.agent-page .pk-acct-hall .account-security-grid { gap: 20px; margin-bottom: 24px; }
.agent-page .pk-acct-hall .account-setting-panel,
.agent-page .pk-acct-hall .account-device-panel {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: #1b1d22;
}
.agent-page .pk-acct-hall .account-setting-panel .section-title.compact,
.agent-page .pk-acct-hall .account-device-heading { border-color: rgba(255, 235, 226, .07); }
.agent-page .pk-acct-hall .account-profile-list > div { border-color: rgba(255, 235, 226, .06); }
.agent-page .pk-acct-hall .account-limit-list { margin-top: 14px; }
.agent-page .pk-acct-hall .account-limit-list > div {
  border-color: rgba(255, 255, 255, .08);
  background: #17181d;
}
.agent-page .pk-acct-hall .account-device-list { margin-top: 16px; gap: 12px; }
.agent-page .pk-acct-hall .account-device-heading-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.agent-page .pk-acct-hall .account-device-row {
  border-color: rgba(255, 255, 255, .08);
  background: #17181d;
}
.agent-page .pk-acct-hall .account-device-row.is-current {
  border-color: rgba(255, 138, 95, .36);
  background: #26170f;
}
.agent-page .pk-acct-hall .account-device-legacy { color: #ffb19c; }

/* ⑨ IP人设 添加/编辑表单：与列表/详情页同款 pk-hall 外壳 */
.pk-ipf-hall .ip-form-v2 { margin-top: 18px; }

/* ===== 智能体大厅：通用 / 行业两区分区（2026-10-03） ===== */
.agent-page .ai-agent-hall-count em { font-style: normal; opacity: .45; margin: 0 3px; }
.agent-page .ai-agent-hall-section { margin-top: 28px; }
.agent-page .ai-agent-hall-section[hidden] { display: none; }
.agent-page .ai-agent-hall-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--pk-line); }
.agent-page .ai-agent-hall-section-head > div { display: flex; align-items: baseline; gap: 10px; }
.agent-page .ai-agent-hall-section-head span { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: #ff6339; text-transform: uppercase; }
.agent-page .ai-agent-hall-section-head h2 { font-size: 18px; color: #faf1ee; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.agent-page .ai-agent-hall-section-head p { color: var(--pk-text-3); font-size: 12px; margin: 0; }
.agent-page .ai-agent-hall-no-industry { grid-column: 1 / -1; text-align: center; padding: 26px 20px; border: 1px dashed var(--pk-line); border-radius: 12px; color: var(--pk-text-3); }
.agent-page .ai-agent-hall-no-industry strong { display: block; color: var(--pk-text); font-size: 14px; margin-bottom: 4px; }
.agent-page .ai-agent-hall-no-industry span { font-size: 12px; }
.agent-page .ai-agent-search-empty { margin-top: 22px; }

/* ===== 装修行业专属工具：报价单审核 / 预算速算 / 验收清单（2026-10-03） ===== */
.pk-plugin-sec-desc { margin: 0 0 14px; color: var(--pk-text-3); font-size: 13px; line-height: 1.6; }
.deco-tool-overlay { position: fixed; z-index: 1300; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(1, 8, 15, .76); backdrop-filter: blur(5px); }
.deco-tool-dialog { position: relative; width: min(760px, 100%); max-height: 88vh; overflow: auto; background: #16171c; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 26px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.deco-tool-dialog--wide { width: min(1040px, 100%); }
.deco-tool-close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: transparent; color: #c7b0a8; font-size: 18px; cursor: pointer; z-index: 3; }
.deco-tool-close:hover { color: #ff6339; border-color: rgba(255,99,57,.4); }
.deco-tool-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; padding-right: 36px; }
.deco-tool-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; font-weight: 800; color: var(--c, #ff6a3d); background: color-mix(in srgb, var(--c, #ff6a3d) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c, #ff6a3d) 34%, transparent); }
.deco-tool-head > div > span { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: #ff6339; text-transform: uppercase; }
.deco-tool-head h3 { margin: 4px 0 4px; font-size: 20px; color: #faf1ee; }
.deco-tool-head p { margin: 0; font-size: 13px; color: var(--pk-text-3); line-height: 1.5; }
.deco-tool-field { display: block; margin-bottom: 14px; }
.deco-tool-field > span { display: block; margin-bottom: 6px; font-size: 12px; color: var(--pk-text-3); }
.deco-tool-textarea, .deco-tool-input { width: 100%; background: #101116; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #e9efec; font-size: 13px; line-height: 1.6; padding: 10px 12px; font-family: inherit; }
.deco-tool-textarea { resize: vertical; min-height: 110px; }
.deco-tool-textarea:focus, .deco-tool-input:focus { outline: none; border-color: rgba(255,99,57,.5); }
.deco-tool-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 4px; }
.deco-tool-row + .deco-tool-row { margin-top: 2px; }
@media (max-width: 720px) { .deco-tool-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.deco-tool-hint { margin: 12px 0 0; font-size: 12px; color: var(--pk-text-3); line-height: 1.6; }
.deco-tool-ok { margin: 0; font-size: 13px; color: #8fd6b6; background: rgba(72,199,142,.1); border: 1px solid rgba(72,199,142,.28); border-radius: 10px; padding: 12px 14px; }
.deco-tool-summary { margin: 0 0 12px; font-size: 13px; color: #faf1ee; }
.deco-tool-summary strong { font-size: 20px; color: #ff6339; }
.deco-tool-summary small { margin-left: 10px; font-size: 12px; color: var(--pk-text-3); }

/* 报价单诊断清单 */
.deco-audit-summary { margin: 0 0 12px; font-size: 13px; color: #faf1ee; font-weight: 700; }
.deco-audit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.deco-audit-list li { border-radius: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); background: #101116; }
.deco-audit-list li.is-high { border-color: rgba(255,106,61,.45); background: rgba(255,106,61,.08); }
.deco-audit-list li.is-mid { border-color: rgba(245,181,68,.4); background: rgba(245,181,68,.07); }
.deco-audit-list strong { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #faf1ee; }
.deco-audit-list em { flex: none; font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: #c7b0a8; }
.deco-audit-list .is-high em { background: rgba(255,106,61,.2); color: #ff8a5f; }
.deco-audit-list .is-mid em { background: rgba(245,181,68,.2); color: #f5b544; }
.deco-audit-list p { margin: 6px 0 0; font-size: 12px; color: var(--pk-text-3); line-height: 1.6; }

/* 报价单级预算表格 */
.deco-quote-summary { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; margin-bottom: 14px; }
.deco-quote-summary span { font-size: 13px; color: #c7b0a8; }
.deco-quote-summary strong { font-size: 18px; color: #ff8a5f; }
.deco-quote-summary .deco-quote-mode { margin-left: auto; font-size: 12px; color: #faf1ee; background: rgba(255,99,57,.12); border: 1px solid rgba(255,99,57,.3); border-radius: 999px; padding: 3px 12px; }
.deco-quote-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 14px; }
.deco-quote-table th, .deco-quote-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.deco-quote-table thead th { color: var(--pk-text-3); font-weight: 600; font-size: 11px; letter-spacing: .04em; background: #101116; }
.deco-quote-table td.num, .deco-quote-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.deco-quote-table td b { color: #ff8a5f; font-weight: 700; }
.deco-quote-table .deco-quote-cat th { background: rgba(255,99,57,.08); color: #ff8a5f; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding-top: 11px; padding-bottom: 11px; }
.deco-quote-table tbody tr:hover { background: rgba(255,255,255,.03); }
.deco-quote-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* 竣工验收报告：桌面端双栏 */
.deco-acc { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .deco-acc { grid-template-columns: 1fr; } }
.deco-acc-main { min-width: 0; }
.deco-tool-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.deco-tool-tabs button { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: #c7b0a8; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.deco-tool-tabs button i { font-style: normal; font-size: 11px; color: var(--pk-text-3); background: rgba(255,255,255,.08); border-radius: 999px; padding: 1px 7px; }
.deco-tool-tabs button.is-active { border-color: rgba(95,212,199,.55); background: rgba(95,212,199,.14); color: #5fd4c7; font-weight: 700; }
.deco-tool-tabs button.is-active i { color: #5fd4c7; background: rgba(95,212,199,.2); }
.deco-acc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1240px) { .deco-acc-list { grid-template-columns: 1fr; } }
.deco-acc-item { border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: #101116; padding: 12px 14px; }
.deco-acc-item.is-fail { border-color: rgba(255,106,61,.4); background: rgba(255,106,61,.06); }
.deco-acc-item.is-pass { border-color: rgba(95,212,199,.32); }
.deco-acc-std strong { display: block; font-size: 13.5px; color: #faf1ee; line-height: 1.5; }
.deco-acc-std small { display: block; margin-top: 4px; font-size: 12px; color: var(--pk-text-3); line-height: 1.5; }
.deco-acc-ctrl { display: flex; gap: 8px; margin-top: 10px; }
.deco-acc-ctrl label { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #c7b0a8; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 5px 9px; cursor: pointer; white-space: nowrap; }
.deco-acc-ctrl label.is-on { color: #faf1ee; border-color: rgba(255,99,57,.5); background: rgba(255,99,57,.12); }
.deco-acc-ctrl label.is-on:has(input[value="pass"]) { border-color: rgba(95,212,199,.5); background: rgba(95,212,199,.12); }
.deco-acc-ctrl label.is-on:has(input[value="na"]) { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.deco-acc-ctrl input { accent-color: #ff6a3d; }
.deco-acc-note { display: block; width: 100%; margin-top: 9px; background: #0c0d11; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; color: #e9efec; font-size: 12px; padding: 7px 10px; font-family: inherit; }
.deco-acc-note:focus { outline: none; border-color: rgba(95,212,199,.4); }

.deco-acc-report { position: sticky; top: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #101116; padding: 16px; align-self: start; }
.deco-rep-head { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 10px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,.1); }
.deco-rep-head span { font-size: 12px; color: var(--pk-text-3); }
.deco-rep-head strong { font-size: 28px; color: #5fd4c7; line-height: 1; }
.deco-rep-head small { grid-column: 1 / -1; font-size: 12px; color: #c7b0a8; }
.deco-rep-stages { display: grid; gap: 10px; margin: 14px 0; }
.deco-rep-stage { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; color: #e9efec; }
.deco-rep-stage i { height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.deco-rep-stage i b { display: block; height: 100%; background: linear-gradient(90deg, #5fd4c7, #ffb03a); }
.deco-rep-stage small { font-size: 11px; color: var(--pk-text-3); }
.deco-rep-block { margin-top: 6px; }
.deco-rep-kicker { display: block; font-size: 12px; font-weight: 700; color: #ff8a5f; margin-bottom: 8px; letter-spacing: .04em; }
.deco-rep-fail { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.deco-rep-fail li { border-radius: 10px; border: 1px solid rgba(255,106,61,.32); background: rgba(255,106,61,.06); padding: 9px 11px; }
.deco-rep-fail strong { display: block; font-size: 12.5px; color: #faf1ee; line-height: 1.5; }
.deco-rep-fail small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--pk-text-3); line-height: 1.5; }
.deco-rep-fail em { display: block; margin-top: 3px; font-size: 11.5px; color: #c7b0a8; font-style: normal; }

/* 统一 A4 单据预览：按 A4 真实尺寸渲染，再等比缩放铺满容器（.fs-frame 绝对定位，避免未缩放时占位 794px） */
#decoAcceptDoc { margin-top: 12px; }
.fs-stage { position: relative; width: 100%; overflow: hidden; }
.fs-frame { position: absolute; top: 0; left: 0; border: 0; box-sizing: border-box; overflow: hidden; border-radius: 8px; background: #fff; transform-origin: 0 0; display: block; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 2px 12px rgba(0,0,0,.3); }
/* 双栏工作台列容器：左 01+02 / 右 03+04 */
.st-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.st-col .deco-acc-list { grid-template-columns: 1fr; }

/* 生成话术框 */
.deco-tool-script { margin-top: 18px; border: 1px solid rgba(255,99,57,.25); border-radius: 12px; background: #0e0f13; overflow: hidden; }
.deco-tool-script-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; color: var(--pk-text-3); }
.deco-tool-script-head button { border: 1px solid rgba(255,99,57,.4); background: rgba(255,99,57,.12); color: #ff8a5f; border-radius: 8px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.deco-tool-script textarea { display: block; width: 100%; min-height: 150px; border: 0; background: transparent; color: #e9efec; font-size: 13px; line-height: 1.7; padding: 12px; font-family: inherit; resize: vertical; }
.deco-tool-script textarea:focus { outline: none; }

.deco-toast { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(12px); background: #ff6339; color: #fff; font-size: 13px; padding: 9px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.deco-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 行业插件中心 · 手机端小程序入口 */
.pk-plugin-mobile { display: flex; align-items: center; gap: 24px; background: linear-gradient(120deg, #1d2530, #2f3e50); color: #fff; flex-wrap: wrap; }
.pk-plugin-mobile .pk-plugin-mobile-info { flex: 1; min-width: 260px; }
.pk-plugin-mobile .pk-plugin-mobile-info .pk-plugin-sec-kicker { color: #9fe7df; }
.pk-plugin-mobile h2 { margin: 4px 0 8px; font-size: 19px; }
.pk-plugin-mobile p { margin: 0 0 14px; color: #c4ced8; font-size: 13px; line-height: 1.7; max-width: 560px; }
.pk-plugin-mobile-btn { border: 0; background: linear-gradient(120deg, #ff6a3d, #ff8a3d); color: #fff; font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: 12px; cursor: pointer; }
.pk-plugin-mobile-btn:active { transform: translateY(1px); }
.pk-plugin-mobile-qr { background: #fff; border-radius: 14px; padding: 12px; text-align: center; }
.pk-plugin-mobile-qr #mobileQr { width: 116px; height: 116px; }
.pk-plugin-mobile-qr #mobileQr img, .pk-plugin-mobile-qr #mobileQr canvas { display: block; width: 116px !important; height: 116px !important; }
.pk-plugin-mobile-qr small { display: block; color: #76828f; font-size: 11px; margin-top: 6px; }

/* 插件商店顶部三卡一行：筛选卡（半宽）+ 小程序卡 + 获客卡（各 1/4）
   三张等高齐平；两张行业卡用强调色图标 + 层级清晰的标题/说明/动作，避免「一片平文字」 */
.pk-store-toprow { display: grid; grid-template-columns: minmax(0, 1fr) 350px 350px; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.pk-store-toprow > .module-panel { margin: 0; height: 180px; min-height: 0; display: flex; flex-direction: column; }
/* 筛选卡：内容垂直居中（随高度自适应不留大空档） */
.pk-store-toprow > .pk-store-filter { justify-content: center; }
/* 行业卡：内容上、动作下（space-between），三卡等高时视觉最稳 */
.pk-store-toprow > .pk-icard { justify-content: space-between; gap: 10px; position: relative; overflow: hidden; }
.pk-store-toprow > .pk-icard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.pk-icard-mobile { background: linear-gradient(165deg, rgba(42,212,212,.09), rgba(42,212,212,0) 52%); }
.pk-icard-mobile::before { background: linear-gradient(90deg, #2ad4d4, rgba(42,212,212,0)); }
.pk-icard-leads { background: linear-gradient(165deg, rgba(255,106,61,.09), rgba(255,106,61,0) 52%); }
.pk-icard-leads::before { background: linear-gradient(90deg, #ff6a3d, rgba(255,106,61,0)); }
.pk-icard-h { display: flex; align-items: center; gap: 7px; }
.pk-icard-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; flex: none; }
.pk-icard-mobile .pk-icard-ic { background: rgba(42,212,212,.16); }
.pk-icard-leads .pk-icard-ic { background: rgba(255,106,61,.16); }
.pk-icard-k { font-size: 11px; font-weight: 600; letter-spacing: .2px; }
.pk-icard-mobile .pk-icard-k { color: #6fd8d8; }
.pk-icard-leads .pk-icard-k { color: #ff9a76; }
.pk-icard-badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,106,61,.18); color: #ff9a76; white-space: nowrap; }
.pk-icard-badge[hidden] { display: none; }
.pk-icard { padding: 14px 16px; }
.pk-icard-t { font-size: 15px; font-weight: 700; color: var(--pk-text, #e9efec); margin: 0; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pk-icard-s { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--pk-text-3, #83736d);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-icard-act { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pk-icard-btn { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; border: 0; border-radius: 9px; padding: 9px 13px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; background: rgba(255,255,255,.08); color: var(--pk-text, #e9efec); white-space: nowrap; }
.pk-icard-mobile .pk-icard-btn { background: rgba(42,212,212,.18); color: #86e6e6; }
.pk-icard-btn.is-primary { background: var(--pk-coral, #ff6a3d); color: #fff; }
.pk-icard-btn:active { transform: translateY(1px); }
.pk-icard-qr { background: #fff; border-radius: 10px; padding: 6px; text-align: center; flex: none; }
.pk-icard-qr #mobileQr { width: 108px; height: 108px; }
.pk-icard-qr #mobileQr img, .pk-icard-qr #mobileQr canvas { display: block; width: 108px !important; height: 108px !important; }
/* 手机小程序卡：左右两栏——左（标题/说明/按钮）+ 右（行业胶囊 + 放大的二维码），配合 180px 等高更紧凑 */
.pk-store-toprow > .pk-icard-mobile { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.pk-icard-mcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 auto; }
.pk-icard-qrwrap { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; }
.pk-ind-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: rgba(42,212,212,.16); color: #6fd8d8; white-space: nowrap; }
.pk-icard-mobile .pk-icard-act { justify-content: flex-start; }
.pk-icard-mobile .pk-icard-btn { padding: 9px 16px; }
/* 筛选卡里的标签：按钮与文字都放大一点，更易点按 */
.pk-store-toprow .pk-store-chip { padding: 8px 15px; font-size: 13.5px; }
.pk-store-toprow .pk-more-chip { padding: 8px 15px; font-size: 13px; }
@media (max-width: 1240px) {
  .pk-store-toprow { grid-template-columns: minmax(0, 1fr) 320px 320px; }
}
@media (max-width: 1040px) {
  .pk-store-toprow { grid-template-columns: minmax(0, 1fr); }
  .pk-store-toprow > .pk-icard { min-height: 0; }
}

/* 量房线索看板弹窗（与主系统同款深色主题） */
.pklb-modal { position: fixed; inset: 0; z-index: 995; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pklb-modal[hidden] { display: none; }
.pklb-mask { position: absolute; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(2px); }
.pklb-box { position: relative; width: min(980px, 100%); max-height: 86vh; display: flex; flex-direction: column;
  background: var(--pk-dark-2, #1b1d22); border: 1px solid var(--pk-line, rgba(255,255,255,.08)); border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.5); overflow: hidden; }
.pklb-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--pk-line, rgba(255,255,255,.08)); }
.pklb-head b { font-size: 15.5px; color: var(--pk-text, #e9efec); }
.pklb-head .sub { flex: 1; font-size: 12px; color: var(--pk-text-3, #83736d); }
.pklb-x { border: 1px solid var(--pk-line, rgba(255,255,255,.08)); background: var(--pk-dark-3, #14171a); color: var(--pk-text-2, #b9c8c4);
  border-radius: 9px; padding: 6px 12px; cursor: pointer; font-family: inherit; font-size: 12.5px; }
.pklb-body { padding: 16px 18px 20px; overflow: auto; }
.pklb-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pklb-stat { flex: 1; min-width: 140px; background: var(--pk-dark-3, #14171a); border: 1px solid var(--pk-line, rgba(255,255,255,.08)); border-radius: 12px; padding: 13px 15px; }
.pklb-stat b { display: block; font-size: 23px; font-weight: 700; color: var(--pk-teal, #ff6339); }
.pklb-stat.ok b { color: #2ad4d4; }
.pklb-stat span { font-size: 12px; color: var(--pk-text-3, #83736d); }
.pklb-bar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.pklb-bar select, .pklb-bar input { background: var(--pk-dark-3, #14171a); border: 1px solid var(--pk-line, rgba(255,255,255,.08));
  color: var(--pk-text, #e9efec); border-radius: 9px; padding: 8px 11px; font-size: 13px; font-family: inherit; outline: none; }
.pklb-panel { background: var(--pk-dark-3, #14171a); border: 1px solid var(--pk-line, rgba(255,255,255,.08)); border-radius: 12px; padding: 13px 15px; margin-bottom: 13px; }
.pklb-panel h3 { font-size: 13.5px; color: var(--pk-text-2, #b9c8c4); font-weight: 600; margin-bottom: 10px; }
.pklb-panel table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pklb-panel th, .pklb-panel td { text-align: left; padding: 8px 9px; border-bottom: 1px solid var(--pk-line, rgba(255,255,255,.08)); color: var(--pk-text-2, #b9c8c4); }
.pklb-panel th { color: var(--pk-text-3, #83736d); font-weight: 600; }
.pklb-lead { background: var(--pk-dark-3, #14171a); border: 1px solid var(--pk-line, rgba(255,255,255,.08)); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.pklb-lead .main { flex: 1; min-width: 220px; }
.pklb-lead .nm { font-size: 14.5px; font-weight: 600; color: var(--pk-text, #e9efec); }
.pklb-lead .nm small { font-weight: 400; color: var(--pk-text-3, #83736d); margin-left: 8px; }
.pklb-lead .meta { font-size: 12.5px; color: var(--pk-text-2, #b9c8c4); margin-top: 5px; line-height: 1.75; }
.pklb-lead .ctrl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pklb-lead select, .pklb-lead input { background: var(--pk-dark, #121212); border: 1px solid var(--pk-line, rgba(255,255,255,.08));
  color: var(--pk-text, #e9efec); border-radius: 8px; padding: 6px 9px; font-size: 12.5px; font-family: inherit; outline: none; }
.pklb-lead input.price { width: 88px; }
.pklb-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.pklb-badge.new { background: rgba(47,111,237,.18); color: #7aa8ff; }
.pklb-badge.contacted { background: rgba(224,138,43,.18); color: #f0a95a; }
.pklb-badge.measured { background: rgba(31,154,122,.18); color: #4fd2ac; }
.pklb-badge.deal { background: rgba(58,154,43,.18); color: #74d45f; }
.pklb-badge.lost { background: rgba(255,255,255,.07); color: #83736d; }
.pklb-comm { font-weight: 700; color: var(--pk-teal, #ff6339); font-size: 12.5px; }
.pklb-comm.settled { color: #4fd2ac; }
.pklb-settle { border: 1px solid var(--pk-line, rgba(255,255,255,.08)); background: var(--pk-dark-2, #1b1d22); border-radius: 8px;
  padding: 6px 10px; font-size: 12px; cursor: pointer; color: var(--pk-text-2, #b9c8c4); font-family: inherit; }
.pklb-empty { text-align: center; color: var(--pk-text-3, #83736d); padding: 34px 0; font-size: 13px; }
.pklb-rule input { background: var(--pk-dark, #121212); border: 1px solid var(--pk-line, rgba(255,255,255,.08)); color: var(--pk-text, #e9efec);
  border-radius: 8px; padding: 7px 10px; width: 104px; font-size: 13px; font-family: inherit; outline: none; }
.pklb-rule { font-size: 13px; color: var(--pk-text-2, #b9c8c4); line-height: 2; }
.pklb-rule button { background: linear-gradient(120deg, #ff6a3d, #ff8a3d); color: #fff; border: none; border-radius: 9px;
  padding: 8px 16px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 13px; }
.pklb-rule .hint { font-size: 12px; color: var(--pk-text-3, #83736d); margin-left: 10px; }

/* ============================================================
   插件商店（Plugin Store）— 沿用主系统深色主题
   顶部对齐文案创作页：隐藏系统 module-head 通栏，
   标题区放在渐变容器内的 pk-hall-head（间距由 module-layout 统一控制）
   ============================================================ */
.module-view:has(.pk-store) > .module-head { display: none; }
/* 与文案创作页（pk-script-hall）同步：外层包裹归零、隐藏右侧栏，
   渐变容器到画布的间距统一由 canvas padding 16px 提供 */
.agent-page .module-layout:has(.pk-store) { grid-template-columns: minmax(0, 1fr); padding: 0; }
.agent-page .module-layout:has(.pk-store) > aside { display: none; }

/* ============================================================
   插件功能页 · 专属渐变 Hero（不同插件不同色，经 --hero-* 变量注入）
   外壳处理与文案创作页（pk-script-hall）同款三件套
   ============================================================ */
.module-view:has(.pk-plugin-hero) > .module-head { display: none; }
.agent-page .module-layout:has(.pk-plugin-hero) { grid-template-columns: minmax(0, 1fr); padding: 0; }
.agent-page .module-layout:has(.pk-plugin-hero) > aside { display: none; }
.pk-plugin-hero {
  background-color: #0c0d10;
  background-image:
    radial-gradient(rgba(0, 0, 0, .35) 1px, transparent 1.6px),
    radial-gradient(900px 500px at 10% 0, var(--hero-a, rgba(255, 99, 57, .13)), transparent 100%),
    radial-gradient(700px 420px at 92% 4%, var(--hero-b, rgba(255, 99, 57, .08)), transparent 100%);
  background-size: 26px 26px, auto, auto;
  margin-bottom: 16px;
}
.pk-plugin-hero::before {
  background: linear-gradient(135deg, var(--hero-ea, rgba(255, 172, 122, .48)) 0%, var(--hero-eb, rgba(255, 99, 57, .28)) 16%, rgba(255, 99, 57, .08) 36%, transparent 54%) border-box;
}
.pk-plugin-hero .pk-hall-head { margin-bottom: 0; }
.pk-plugin-hero .pk-hall-head h1 { color: var(--pk-text); }
.pk-plugin-hero .pk-hall-head p { color: var(--pk-text-2); }
.pk-store .pk-hall-head p { color: var(--pk-text-2); }
.pk-store .pk-hall-head { margin-bottom: 22px; }
.pk-store .pk-hall-note { min-width: 240px; max-width: 300px; }
/* 筛选条：压掉 .module-panel.wide 的 min-height:190px，让上下留白一致 */
.module-panel.wide.pk-store-filter { min-height: auto; padding: 14px 20px; }
.pk-store-filter-row { display: flex; align-items: center; gap: 14px; min-height: 34px; }
.pk-store-filter-row + .pk-store-filter-row { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--pk-line); }
.pk-store-filter-label {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 74px; gap: 7px;
  padding: 4px 10px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid var(--pk-line);
  font-size: 12px; font-weight: 700; color: var(--pk-text-2);
}
.pk-store-filter-label::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--pk-coral); }
.pk-store-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-store-chip {
  border: 1px solid var(--pk-line); background: transparent; color: var(--pk-text-2);
  font-size: 12.5px; padding: 7px 14px; border-radius: 20px; cursor: pointer; transition: .15s;
  font-family: inherit;
}
.pk-store-chip:hover { border-color: rgba(255,99,57,.5); color: var(--pk-text); }
.pk-store-chip.is-on { background: var(--pk-coral); border-color: var(--pk-coral); color: #fff; box-shadow: 0 3px 12px rgba(255,99,57,.32); }
.pk-store-chip { flex: none; white-space: nowrap; }
/* 行业胶囊：单行显示，溢出隐藏，点「更多」左移展开 */
.pk-store-ind-row .pk-store-chips--scroll,
.pk-store-role-row .pk-store-chips--scroll { flex: 1 1 auto; min-width: 0; }
.pk-store-chips--scroll { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.pk-store-chips--scroll::-webkit-scrollbar { display: none; }
.pk-store-chips--scroll.is-expanded { overflow-x: auto; }
.pk-store-chips--scroll .pk-store-chip.is-hidden { display: none; }
.pk-more-chip {
  flex: none; border: 1px dashed var(--pk-line); background: rgba(255,255,255,.04); color: var(--pk-text-2);
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; cursor: pointer; transition: .15s; font-family: inherit; white-space: nowrap;
}
.pk-more-chip:hover { border-color: rgba(255,99,57,.5); color: var(--pk-text); }
.pk-more-chip.is-on { background: var(--pk-coral); border-color: var(--pk-coral); color: #fff; }
.pk-more-chip[hidden] { display: none; }
.pk-store-filter-foot { display: flex; justify-content: flex-end; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--pk-line); }
.pk-store-clear {
  border: 1px solid var(--pk-line); background: transparent; color: var(--pk-text-2);
  font-size: 12.5px; padding: 6px 14px; border-radius: 18px; cursor: pointer; transition: .15s;
  font-family: inherit;
}
.pk-store-clear:hover { border-color: var(--pk-coral); color: var(--pk-coral); }
.pk-store-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 14px; margin-bottom: 14px; }
/* 两列并排时套餐卡转紧凑竖排：图标+标题一行，价格+按钮一行 */
.pk-store-plans .pk-store-card.is-pack { flex-wrap: wrap; align-items: center; row-gap: 6px; }
.pk-store-plans .pk-store-card.is-pack .pk-store-body { flex: 1 1 calc(100% - 68px); }
.pk-store-plans .pk-store-card.is-pack .pk-store-price { flex: 1; margin-left: 0; }
.pk-store-plans .pk-store-card.is-pack .pk-store-act { flex: 1; width: auto; margin-top: 0; padding-top: 0; border-top: 0; justify-content: flex-end; }
.pk-store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
@media (max-width: 1240px) { .pk-store-grid { grid-template-columns: 1fr; } }
.pk-store-card {
  display: flex; flex-direction: column; gap: 10px; position: relative; padding: 16px;
  background: var(--pk-dark-3); border: 1px solid var(--pk-line); border-radius: 14px; transition: .18s;
}
.pk-store-card:hover { border-color: rgba(255,99,57,.4); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.pk-store-card.is-pack {
  flex-direction: row; align-items: center; gap: 16px;
  border-color: rgba(255,99,57,.34); background: linear-gradient(135deg, var(--pk-dark-3), rgba(255,99,57,.07));
}
.pk-store-card.is-pack:hover { border-color: rgba(255,99,57,.55); }
.pk-store-card.is-pack .pk-store-ico { width: 52px; height: 52px; font-size: 26px; }
.pk-store-ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,99,57,.1);
  display: grid; place-items: center; font-size: 23px;
}
.pk-store-top { display: flex; align-items: center; gap: 12px; }
.pk-store-body { flex: 1; min-width: 0; }
.pk-store-head { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pk-store-head strong { font-size: 15px; color: var(--pk-text); font-weight: 600; }
.pk-store-price { flex: none; margin-left: auto; font-size: 15px; color: var(--pk-coral); white-space: nowrap; }
.pk-store-price i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--pk-text-3); }
.pk-store-price.is-big { font-size: 24px; font-weight: 700; line-height: 1.15; }
.pk-store-price.is-big i { font-size: 12.5px; margin-left: 2px; }
.pk-store-tag {
  font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: rgba(255,255,255,.07); color: var(--pk-text-3);
}
.pk-store-tag--on { background: rgba(31,170,99,.16); color: #4bd08a; }
.pk-store-tag--free { background: rgba(255,99,57,.14); color: var(--pk-coral); }
.pk-store-tag--pack { background: rgba(245,181,68,.16); color: var(--pk-gold); }
.pk-store-body small { display: block; font-size: 12.5px; line-height: 1.6; color: var(--pk-text-3); }
.pk-store-sum { display: block; font-size: 12.5px; line-height: 1.6; color: var(--pk-text-3); }
.pk-store-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.pk-store-meta span { font-size: 11.5px; color: var(--pk-text-3); }
.pk-store-act { display: flex; gap: 10px; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--pk-line); }
.pk-store-card.is-pack .pk-store-act { flex: none; margin: 0; padding: 0; border: 0; }
.pk-store-btn {
  flex: 1; border: 1px solid var(--pk-line); background: transparent; color: var(--pk-text-2);
  font-size: 12.5px; padding: 8px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; text-align: center;
  font-family: inherit; transition: .15s;
}
.pk-store-card.is-pack .pk-store-btn { flex: none; }
.pk-store-btn:hover { border-color: var(--pk-coral); color: var(--pk-text); }
.pk-store-btn.is-primary { background: var(--pk-coral); border-color: var(--pk-coral); color: #fff; font-weight: 600; }
.pk-store-btn.is-primary:hover { filter: brightness(1.08); }
.pk-store-empty { text-align: center; color: var(--pk-text-3); font-size: 13px; padding: 40px 0; }

/* 插件详情展开区 */
.pk-store-more {
  margin-top: 10px; border: 0; background: transparent; color: var(--pk-coral);
  font-size: 12.5px; padding: 0; cursor: pointer; font-family: inherit;
}
.pk-store-more:hover { filter: brightness(1.15); }
.pk-store-detail {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--pk-line);
}
.pk-store-hl > b, .pk-store-sc > b { display: block; font-size: 12px; color: var(--pk-text-3); margin-bottom: 8px; }
.pk-store-hl ul { margin: 0 0 12px; padding-left: 18px; }
.pk-store-hl li { font-size: 12.5px; line-height: 1.8; color: var(--pk-text-2); }
.pk-store-hl li::marker { color: var(--pk-coral); }
.pk-store-sc > div { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pk-store-sc em {
  font-style: normal; font-size: 12px; color: var(--pk-text-2);
  background: rgba(255,255,255,.05); border: 1px solid var(--pk-line);
  padding: 4px 10px; border-radius: 14px;
}
.pk-store-tip { margin: 0; font-size: 12px; color: var(--pk-gold); line-height: 1.6; }

/* 套餐卡：最超值标识 + 更强视觉 */
.pk-store-tag--best {
  background: linear-gradient(120deg, var(--pk-coral), #ff9a4d);
  color: #fff; font-weight: 700;
}
.pk-store-card.is-plan { border-color: rgba(255,99,57,.55); }
.pk-store-card.is-plan::after {
  content: "最超值"; position: absolute; top: -1px; right: 16px;
  background: var(--pk-coral); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 0 0 8px 8px;
}
.pk-store-card.is-plan { position: relative; }
@media (max-width: 760px) {
  .pk-store-card.is-pack { flex-wrap: wrap; }
  .pk-store-card.is-pack .pk-store-price.is-big { margin-left: 0; }
  .pk-store-card.is-pack .pk-store-act { width: 100%; }
  .pk-store-card.is-pack .pk-store-act .pk-store-btn { flex: 1; }
}

/* 插件商店顶部：普通标题，不做通栏卡片 */
.pk-store-intro { margin-bottom: 18px; }
.pk-store-intro h1 { margin: 0 0 8px; font-size: 24px; color: var(--pk-text); font-weight: 600; }
.pk-store-intro p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--pk-text-2); max-width: 860px; }
.pk-store-intro p b { color: var(--pk-coral); font-weight: 600; }

/* ===== 打卡相机（工作台模块内）===== */
.pkp-loc { margin-top: 10px; font-size: 13px; }
.pkp-upload-row { display: flex; gap: 10px; align-items: center; }
.pkp-file-name { font-size: 12px; color: var(--pk-text-3); }
.pkp-shot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pkp-shot { border: 1px solid rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; background: #0c0d11; }
.pkp-shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pkp-shot small { display: block; padding: 4px 6px; font-size: 10.5px; color: var(--pk-text-3); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 增项确认单 + 进度汇报（工作台模块内）===== */
.pkc-item { border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 12px 12px 8px; margin-bottom: 10px; background: rgba(255,255,255,.02); }
.pkc-del { margin: 6px 0 4px; font-size: 12px; color: #ff9d8a; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.pkc-del:hover { color: #ff6a3d; }
.pkc-doc { white-space: pre-wrap; font-size: 13px; line-height: 1.9; color: #e8ded9; background: #0c0d11; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 14px; font-family: inherit; }
.pkg-block { margin-top: 14px; }
.pkg-block h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--pk-text-2); }
.pkg-block .btn-quiet { margin-top: 10px; }

/* ===== 装修行业插件（工作台模块内）· 只调内部排版，外壳用系统 module-panel ===== */
.pkp-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
@media (max-width: 1180px) { .pkp-work { grid-template-columns: 1fr; } }
.pkp-work.pkp-flow { display: block; }
.pkp-work.pkp-flow > .module-panel + .module-panel { margin-top: 16px; }
.pkl-pool { display: grid; gap: 8px; }
.pkl-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--pk-line); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: .15s; }
.pkl-item:hover { border-color: rgba(95,212,199,.5); }
.pkl-item input { margin-top: 3px; flex: none; }
.pkl-item b { display: block; font-size: 13px; color: var(--pk-text); line-height: 1.5; }
.pkl-item small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--pk-text-3); line-height: 1.5; }
.pkl-copy { border: 1px solid var(--pk-line); border-radius: 10px; background: #101116; padding: 12px 14px; }
.pkl-copy + .pkl-copy { margin-top: 10px; }
.pkl-copy.is-err { border-color: rgba(255,99,57,.4); }
.pkl-copy.is-err pre { color: #ff8a5f; }
.pkl-copy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pkl-copy-head b { font-size: 12.5px; color: var(--pk-text); }
.pkl-copy-head button { flex: none; padding: 3px 12px; font-size: 11.5px; }
.pkl-copy pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13px; line-height: 1.8; color: #e9efec; }
.pkd-img { display: block; max-width: 100%; border-radius: 12px; border: 1px solid var(--pk-line); margin-top: 12px; }
.pkp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pkp-group { margin-top: 16px; }
.pkp-label { display: block; font-size: 12.5px; color: var(--pk-text-3); margin-bottom: 8px; }
.pkp-field { display: block; margin-top: 16px; }
.pkp-field > span { display: block; font-size: 12.5px; color: var(--pk-text-3); margin-bottom: 8px; }
.pkp-field input, .pkp-field textarea, .pkp-field select {
  width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  background: rgba(255,255,255,.03); color: var(--pk-text); font-size: 14px; padding: 11px 13px; outline: none;
  font-family: inherit; line-height: 1.75;
}
.pkp-field input, .pkp-field select { height: 44px; padding: 0 13px; }
.pkp-field select option { background: #14151a; color: var(--pk-text); }
.pkp-field textarea { min-height: 150px; resize: vertical; }
.pkp-field input:focus, .pkp-field textarea:focus, .pkp-field select:focus { border-color: rgba(255,99,57,.6); background: rgba(255,255,255,.05); }
.pkp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pkp-chip {
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: var(--pk-text-2);
  font-size: 13px; padding: 8px 14px; border-radius: 20px; cursor: pointer; font-family: inherit; transition: .15s;
}
.pkp-chip:hover { color: #fff; border-color: rgba(255,99,57,.5); }
.pkp-chip.on { background: rgba(255,99,57,.16); border-color: rgba(255,99,57,.7); color: #fff; }
.pkp-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--pk-text-3); line-height: 1.7; }

/* 记工结算 / 合同生成器（免费插件） */
.pkw-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 760px) { .pkw-grid2 { grid-template-columns: 1fr; } }
.pkw-row { display: grid; grid-template-columns: 1.1fr .9fr .8fr .8fr .9fr .8fr 32px; gap: 8px; margin-top: 10px; align-items: center; }
.pkw-row input, .pkw-row select {
  width: 100%; height: 40px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--pk-line); background: rgba(255,255,255,.04); color: var(--pk-text);
  font-size: 13px; font-family: inherit; box-sizing: border-box;
}
.pkw-row select option { background: var(--pk-dark-2, #1c1c22); color: var(--pk-text); }
.pkw-row input:focus, .pkw-row select:focus { outline: none; border-color: var(--pk-coral); }
.pkw-del {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--pk-line);
  background: transparent; color: var(--pk-text-3); cursor: pointer; font-size: 13px;
}
.pkw-del:hover { border-color: rgba(255,99,57,.5); color: var(--pk-coral); }
@media (max-width: 860px) { .pkw-row { grid-template-columns: 1fr 1fr; } }

/* 材料进场验收单（免费插件） */
.pkm-row {
  display: grid; grid-template-columns: 1.3fr 1.3fr .6fr .75fr .9fr 32px;
  grid-template-areas: "name brand qty unit st del" "note note note note note note";
  gap: 8px; margin-top: 10px; align-items: center;
}
.pkm-row .pkm-name { grid-area: name; }
.pkm-row .pkm-brand { grid-area: brand; }
.pkm-row .pkm-qty { grid-area: qty; }
.pkm-row .pkm-unit { grid-area: unit; }
.pkm-row .pkm-st { grid-area: st; }
.pkm-row .pkm-note { grid-area: note; }
.pkm-row .pkw-del { grid-area: del; justify-self: end; }
.pkm-row input, .pkm-row select {
  width: 100%; height: 40px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--pk-line); background: rgba(255,255,255,.04); color: var(--pk-text);
  font-size: 13px; font-family: inherit; box-sizing: border-box;
}
.pkm-row select option { background: var(--pk-dark-2, #1c1c22); color: var(--pk-text); }
.pkm-row input:focus, .pkm-row select:focus { outline: none; border-color: var(--pk-coral); }
.pkm-row .pkm-st.is-ok { border-color: rgba(31,170,99,.45); color: #62d99c; }
.pkm-row .pkm-st.is-bad { border-color: rgba(224,75,74,.55); color: #ff9d9d; background: rgba(224,75,74,.07); }
@media (max-width: 760px) {
  .pkm-row { grid-template-columns: 1fr 1fr; grid-template-areas: "name name" "brand brand" "qty unit" "st del" "note note"; }
}

/* 电子质保卡 · A4竖版鎏金授权牌（强制210:297比例，字号随卡片宽度等比缩放） */
.pkz-cert-box { width: 100%; container-type: inline-size; }
.pkz-cert {
  width: 100%; aspect-ratio: 210 / 297; container-type: inline-size;
  border-radius: 2.4cqw; padding: .9cqw; position: relative;
  background: linear-gradient(135deg, #f7e3ae, #c9973f 20%, #8a5c1e 42%, #e8c87c 60%, #a4742a 80%, #f2d896);
  box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 4px 18px rgba(201,151,63,.22);
}
.pkz-cert-inner {
  position: relative; overflow: hidden; border-radius: 1.8cqw; height: 100%;
  padding: 5.5cqw 7cqw 4cqw; display: flex; flex-direction: column;
  background: radial-gradient(130% 90% at 50% 0%, #2b2216 0%, #191309 55%, #110c06 100%);
}
/* 内容自适应：A4 外框比例严格不变，内容超高时 JS 等比缩小 .pkz-fit（宽度补偿 100/k%，原点左上） */
.pkz-fit { height: 100%; min-width: 0; display: flex; flex-direction: column; transform-origin: top left; }
.pkz-cert-inner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(212,175,105,.03) 0 2px, transparent 2px 9px);
}
.pkz-cert-inner::after {
  content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 80%; height: 60%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(247,227,174,.10), transparent);
}
.pkz-cert-top { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2cqw; padding-bottom: 2.8cqw; border-bottom: 1px solid rgba(212,175,105,.35); }
.pkz-cert-top > svg { width: 7.5cqw; height: 7.5cqw; }
.pkz-cert-head { min-width: 0; }
.pkz-cert-head em { display: block; font-style: normal; font-size: 2.1cqw; letter-spacing: .52em; text-indent: .52em; color: #b99458; white-space: nowrap; }
.pkz-cert-head h4 {
  margin: 1cqw 0 1.2cqw; font-family: "STZhongsong", "SimSun", Georgia, serif; font-weight: 700;
  font-size: 6.8cqw; letter-spacing: .3em; text-indent: .3em; line-height: 1.1; white-space: nowrap;
  background: linear-gradient(180deg, #f9ecc4 8%, #e9c87b 46%, #b98a3e 82%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pkz-cert-head > span { display: block; font-size: 2.5cqw; letter-spacing: .2em; text-indent: .2em; color: #a08756; white-space: nowrap; }
.pkz-cert-no { font-size: 2.3cqw; letter-spacing: .08em; color: #c2a367; border: 1px solid rgba(212,175,105,.4); border-radius: 4cqw; padding: .8cqw 3.4cqw; white-space: nowrap; margin-top: 1cqw; }
.pkz-cert-info { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw 4.5cqw; margin: 3.2cqw 0 2.6cqw; }
.pkz-cert-info > div { display: flex; align-items: baseline; gap: 2.2cqw; border-bottom: 1px dashed rgba(212,175,105,.28); padding-bottom: 1.2cqw; min-width: 0; }
.pkz-cert-info > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pkz-cert-info > div.pkz-wide { grid-column: 1 / -1; }
.pkz-cert-info span { flex: none; font-size: 2.3cqw; color: #9b7f4d; letter-spacing: .06em; }
.pkz-cert-info b { font-size: 2.9cqw; color: #f0e2c0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkz-cert-items { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.7cqw; }
.pkz-item {
  display: flex; flex-direction: column; gap: .5cqw; padding: 1.8cqw 2.2cqw; border-radius: 1.6cqw;
  border: 1px solid rgba(212,175,105,.30); background: linear-gradient(160deg, rgba(247,227,174,.06), rgba(247,227,174,.015));
}
.pkz-item b { font-size: 2.4cqw; color: #f4e7c6; font-weight: 600; }
.pkz-item span { font-size: 2cqw; color: #a88f5e; }
.pkz-item em {
  align-self: flex-start; font-style: normal; font-size: 1.9cqw; margin-top: .5cqw;
  border-radius: 3cqw; padding: .3cqw 2cqw; letter-spacing: .06em;
}
.pkz-item em.on { color: #ecc573; border: 1px solid rgba(212,175,105,.55); background: rgba(212,175,105,.10); }
.pkz-item em.off { color: #8d8474; border: 1px solid rgba(150,140,120,.35); background: rgba(150,140,120,.08); }
.pkz-cert-note { position: relative; margin-top: 2.5cqw; border-top: 1px solid rgba(212,175,105,.22); padding-top: 2cqw; }
.pkz-cert-note p { margin: 0 0 1cqw; font-size: 1.92cqw; line-height: 1.6; color: #9d8a63; }
.pkz-cert-note b { color: #d9b877; font-weight: 600; margin-right: 1.8cqw; }
.pkz-cert-foot { position: relative; display: flex; align-items: flex-end; margin-top: auto; padding-top: 2.2cqw; min-height: 16.5cqw; }
.pkz-stamp {
  position: absolute; right: 1cqw; bottom: 0; width: 20cqw; height: 20cqw; border-radius: 50%;
  border: .55cqw solid rgba(196,60,52,.6); display: grid; place-items: center;
  transform: rotate(-14deg); color: rgba(214,84,74,.72);
  font-family: "STZhongsong", "SimSun", serif; font-size: 3.2cqw; font-weight: 700; letter-spacing: .22em; line-height: 1.5; text-align: center;
}
.pkz-stamp::before { content: ''; position: absolute; inset: 1.3cqw; border-radius: 50%; border: .3cqw solid rgba(196,60,52,.42); }
.pkz-stamp span { filter: blur(.35px); }
.pkz-seal {
  position: absolute; right: 0; bottom: 0; width: 19cqw; height: 19cqw; transform: rotate(-12deg);
  opacity: .92; filter: blur(.3px) drop-shadow(0 0 8px rgba(196,60,52,.18));
}
.pkz-cert-edge {
  position: absolute; left: 5cqw; right: 5cqw; top: 1.6cqw; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(247,227,174,.5), transparent);
}

/* 电子签名板（谁生成谁签名） */
.pkz-years { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 8px; }
.pkz-year { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--pk-line); background: rgba(255,255,255,.03); }
.pkz-year > span { flex: 1; font-size: 12.5px; color: var(--pk-text-2); min-width: 0; }
.pkz-year input {
  width: 58px; height: 32px; padding: 0 8px; border-radius: 6px; text-align: center;
  border: 1px solid var(--pk-line); background: rgba(255,255,255,.05); color: #f0e2c0;
  font-size: 13px; font-family: inherit; box-sizing: border-box;
}
.pkz-year input:focus { outline: none; border-color: var(--pk-coral); }
.pkz-year em { font-style: normal; font-size: 11.5px; color: #9b7f4d; }
.pkz-signpad {
  margin-top: 8px; height: 110px; border-radius: 10px; cursor: crosshair; touch-action: none;
  border: 1px dashed rgba(212,175,105,.45);
  background: linear-gradient(160deg, rgba(247,227,174,.05), rgba(247,227,174,.015)), repeating-linear-gradient(0deg, transparent 0 27px, rgba(212,175,105,.12) 27px 28px);
}
.pkz-signpad canvas { width: 100%; height: 100%; display: block; }
.pkz-signops { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.pkz-signops .btn { padding: 4px 12px; font-size: 12px; }
.pkz-signops span { font-size: 12px; color: #62d99c; }
.pkz-cert-sign { font-size: 2.5cqw; color: #b99c62; display: flex; align-items: flex-end; gap: 1.5cqw; flex-wrap: wrap; }
.pkz-cert-sign i { position: relative; display: inline-block; width: 26cqw; border-bottom: 1px solid rgba(212,175,105,.5); height: 2.6cqw; }
.pkz-cert-sign i .pkz-signsvg { position: absolute; left: 50%; bottom: .2cqw; transform: translateX(-50%); height: 5.2cqw; }
.pkz-cert-date { margin-left: 6cqw; font-size: 2.3cqw; color: #9d8a63; white-space: nowrap; }
.pkz-signsvg { height: 7cqw; color: #f2dfae; filter: drop-shadow(0 0 2cqw rgba(242,223,174,.25)); }
.pkp-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pkp-run { width: 100%; margin-top: 16px; }
.pkp-report { min-height: 200px; }
.pkp-sum { padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; border: 1px solid; }
.pkp-sum b { display: block; font-size: 16px; margin-bottom: 4px; }
.pkp-sum span { font-size: 12.5px; opacity: .88; }
.pkp-sum.is-high { background: rgba(224,75,74,.12); border-color: rgba(224,75,74,.42); color: #ff9d9d; }
.pkp-sum.is-mid { background: rgba(239,159,39,.12); border-color: rgba(239,159,39,.42); color: #f5c46a; }
.pkp-sum.is-low { background: rgba(31,170,99,.12); border-color: rgba(31,170,99,.42); color: #62d99c; }
.pkp-block { margin-bottom: 18px; }
.pkp-block h4 { margin: 0 0 10px; font-size: 12.5px; font-weight: 500; color: var(--pk-text-3); }
.pkp-list { list-style: none; margin: 0; padding: 0; }
.pkp-list li { padding: 11px 13px; border-radius: 8px; margin-bottom: 8px; border-left: 3px solid; background: rgba(255,255,255,.028); }
.pkp-list li b { display: block; font-size: 13.5px; color: #fff; margin-bottom: 4px; }
.pkp-list li span { font-size: 12.5px; color: #c8b1a9; line-height: 1.7; }
.pkp-list li.is-high { border-left-color: #e24b4a; }
.pkp-list li.is-mid { border-left-color: #ef9f27; }
.pkp-list li.is-low { border-left-color: #5f5e5a; }
.pkp-miss { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.75; color: #f5c46a; background: rgba(239,159,39,.09); border: 1px solid rgba(239,159,39,.3); }
.pkp-talk { white-space: pre-wrap; font-size: 13px; line-height: 1.85; color: #e8ded9; background: rgba(255,255,255,.028); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 14px; }
.pkp-block .btn-quiet { margin-top: 10px; }

/* ===== 插件 UI v2 精修 ===== */
/* 面板步骤头：编号 + 标题 + 右侧提示 */
.pkp-panel-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; margin: 0 0 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pkp-panel-head .no { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: rgba(255,106,61,.9); flex: none; }
.pkp-panel-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.pkp-panel-head small { margin-left: auto; font-size: 12px; color: var(--pk-text-3); text-align: right; }

/* 风险徽章 */
.pkp-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; vertical-align: 1px; white-space: nowrap; }
.pkp-badge.is-high { background: rgba(224,75,74,.2); color: #ff9d9d; }
.pkp-badge.is-mid { background: rgba(239,159,39,.18); color: #f5c46a; }
.pkp-badge.is-low { background: rgba(255,255,255,.08); color: #b5aca6; }

/* 诊断评级卡升级：主判语 + 计数器 */
.pkp-sum { padding: 16px 18px; border-radius: 10px; }
.pkp-sum .v-count { display: flex; gap: 10px; margin-top: 12px; }
.pkp-sum .v-count div { text-align: center; min-width: 62px; padding: 7px 10px; border-radius: 8px; background: rgba(0,0,0,.28); }
.pkp-sum .v-count strong { display: block; font-size: 19px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pkp-sum .v-count small { font-size: 11px; opacity: .82; }

/* 报价速算：总价大卡 + 市场区间定位条 */
.pkp-total-card { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 18px 20px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,176,58,.13), rgba(255,176,58,.03)); border: 1px solid rgba(255,176,58,.35); margin-bottom: 16px; }
.pkp-total-card .t-num small { display: block; font-size: 12px; color: #c7b0a8; margin-bottom: 2px; }
.pkp-total-card .t-num strong { font-size: 30px; font-weight: 700; color: #ffd58a; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pkp-total-card .t-num em { font-style: normal; font-size: 12.5px; color: #c7b0a8; margin-left: 8px; }
.pkp-total-card .t-right { flex: 1; min-width: 230px; }
.pkp-total-card .t-right > small { display: block; font-size: 12px; color: #c7b0a8; }
.pkp-range { margin-top: 8px; }
.pkp-range-track { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(95,212,199,.4), rgba(95,212,199,.14) 50%, rgba(255,106,61,.32)); }
.pkp-range-dot { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 14px; height: 14px; border-radius: 50%; background: #ffd58a; border: 3px solid #101116; box-shadow: 0 0 0 2px rgba(255,213,138,.55); }
.pkp-range-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--pk-text-3); margin-top: 7px; font-variant-numeric: tabular-nums; }
.pkp-total-card .t-mode { font-size: 12px; color: #faf1ee; background: rgba(255,99,57,.14); border: 1px solid rgba(255,99,57,.35); border-radius: 999px; padding: 4px 13px; white-space: nowrap; }

/* 获客引擎：批量工具条 + 平台徽章 + 勾选强化 */
.pkl-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.pkl-tools button { font-size: 12px; color: #c7b0a8; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 4px 12px; cursor: pointer; }
.pkl-tools button:hover { color: #fff; border-color: rgba(255,255,255,.32); }
.pkl-item.is-checked { border-color: rgba(198,255,58,.45); background: rgba(198,255,58,.05); }
.pkl-item input { accent-color: #c6ff3a; }
.pkl-plat { flex: none; font-style: normal; font-size: 11px; color: #5fd4c7; background: rgba(95,212,199,.12); border: 1px solid rgba(95,212,199,.32); border-radius: 999px; padding: 1px 9px; }
.pkl-copy-head .pkl-plat { margin-right: 8px; }
.pkl-gen-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pkl-gen-bar .pkp-run { width: auto; flex: 1; margin-top: 0; }
.pkl-gen-bar small { flex: none; font-size: 11.5px; color: var(--pk-text-3); }

/* 户型图出图：拖放上传区 + 风格色点 + 结果操作条 */
.pkd-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 132px; margin-top: 16px; border: 1.5px dashed rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.02); cursor: pointer; text-align: center; transition: .2s; }
.pkd-drop:hover, .pkd-drop.is-drag { border-color: rgba(122,170,255,.65); background: rgba(122,170,255,.07); }
.pkd-drop .ico { font-size: 24px; line-height: 1; }
.pkd-drop b { font-size: 13.5px; color: #e9efec; font-weight: 500; }
.pkd-drop small { color: var(--pk-text-3); font-size: 12px; }
.pkd-style-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.pkd-act { display: flex; gap: 10px; margin-top: 12px; }
.pkd-act .btn { flex: 1; }
.pkd-frame { position: relative; }
.pkd-frame img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--pk-line); }

/* 验收打卡：行状态强化 */
.deco-acc-item { border-left: 3px solid rgba(255,255,255,.16); }
.deco-acc-item.is-pass { border-left-color: rgba(95,212,199,.75); }
.deco-acc-item.is-fail { border-left-color: rgba(255,106,61,.85); }
.deco-acc-item.is-na { border-left-color: rgba(255,255,255,.14); }
.deco-acc-std strong { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deco-acc-std .st-tag { flex: none; font-size: 11px; font-weight: 600; color: #5fd4c7; background: rgba(95,212,199,.12); border: 1px solid rgba(95,212,199,.35); border-radius: 999px; padding: 1px 9px; }
.deco-acc-item.is-fail .st-tag { color: #ff9d8a; background: rgba(255,106,61,.12); border-color: rgba(255,106,61,.4); }
.deco-acc-item.is-na .st-tag { color: #b5aca6; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }

/* ===== 装修云档案 ===== */
.pkah-projlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pkah-proj { background: #fffdf6; border: 1px solid #e6dcc3; border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pkah-proj.on { border-color: #bd8f42; background: #fbf6ea; box-shadow: 0 0 0 1px #bd8f42 inset; }
.pkah-proj b { font-size: 14px; color: #3d2f14; }
.pkah-proj span { font-size: 12px; color: #8a7a55; }
.pkah-proj em { font-style: normal; margin-left: auto; font-size: 12px; color: #8a5a1e; background: #f8f2e6; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.pkah-tl { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.pkah-rec { border: 1px solid #e6dcc3; border-radius: 10px; padding: 10px 12px; background: #fffdf6; }
.pkah-rec-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pkah-rec-head em { font-style: normal; color: #8a5a1e; font-size: 12px; background: #f8f2e6; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.pkah-rec-head b { color: #6b4a16; font-weight: 600; font-size: 13px; white-space: nowrap; }
.pkah-rec-head span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #555; }
.pkah-del { border: none; background: none; color: #c0392b; cursor: pointer; font-size: 13px; padding: 2px 4px; }
.pkah-rec-sum { margin-top: 6px; font-size: 12.5px; color: #666; }
.pkah-rec-text { margin: 8px 0 0; padding: 8px 10px; background: #f8f5ec; border-radius: 8px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; max-height: 200px; overflow: auto; font-family: inherit; color: #444; }

/* 云档案：首次引导 + 合同导入建档 */
.pkah-guide { background: linear-gradient(135deg, #fbf6ea, #f6efe0); border: 1px solid #e2d3ae; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.pkah-guide b { font-size: 14px; color: #6b4a16; }
.pkah-guide span { font-size: 12.5px; line-height: 1.7; color: #6d614a; }
.pkah-warn { margin-top: 8px; font-size: 12.5px; color: #b3541e; background: #fdf3ea; border: 1px solid #f0d0b8; border-radius: 8px; padding: 8px 10px; }
.pkah-ok { margin-top: 8px; font-size: 12.5px; color: #2f7d4f; background: #eef8f1; border: 1px solid #c8e6d2; border-radius: 8px; padding: 8px 10px; }
.pkah-miss { border-color: #e07a3f !important; box-shadow: 0 0 0 1px #e07a3f inset !important; }

/* 合同在线签约 */
.pkcs-item { border: 1px solid #e6dcc3; border-radius: 10px; padding: 10px 12px; background: #fffdf6; margin-bottom: 8px; }
.pkcs-head { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.pkcs-head em { font-style: normal; font-size: 12px; background: #f8f2e6; color: #8a5a1e; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.pkcs-head b { color: #3d2f14; }
.pkcs-head span { color: #8a7a55; font-size: 12px; }
.pkcs-item .pkp-actions { margin-top: 8px; }
.pkz-signpad { border: 1.5px dashed #c9b581; border-radius: 10px; background: #fff; overflow: hidden; }
.pkz-signpad canvas { display: block; width: 100%; height: 120px; touch-action: none; }

/* 合同生成器：公司默认合同模板区（统一竖向节奏 10px） */
.pkc-ct .pkp-chips { margin: 0; }
.pkc-ct textarea {
  display: block; width: 100%; box-sizing: border-box; margin: 10px 0 0;
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  background: rgba(255,255,255,.03); color: var(--pk-text);
  font-size: 13.5px; line-height: 1.75; font-family: inherit;
  padding: 11px 13px; min-height: 140px; resize: vertical; outline: none;
}
.pkc-ct textarea:focus { border-color: rgba(255,99,57,.6); background: rgba(255,255,255,.05); }
.pkc-ct .pkp-actions { margin: 10px 0 0; align-items: center; }
.pkc-ct .pkp-actions .pkp-hint { margin: 0; font-size: 12px; }
.pkc-ct > .pkp-hint { margin: 10px 0 0; }

/* 云档案：合同档案夹（hero 抽屉入口） */
.pk-hall-side { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.pk-drawer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 18px 10px; border: 1px solid rgba(255,235,226,.12); border-radius: 12px; background: #131418; cursor: pointer; user-select: none; outline: none; transition: border-color .25s, box-shadow .25s, transform .25s; }
.pk-drawer:hover, .pk-drawer:focus-visible { border-color: rgba(122,170,255,.55); box-shadow: 0 10px 28px rgba(18,42,90,.4); transform: translateY(-2px); }
.pk-drawer-cab { position: relative; width: 62px; height: 32px; }
.pk-drawer-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #2c2e38, #1f212a); border: 1px solid rgba(255,255,255,.16); border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.pk-drawer-handle { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); box-shadow: 0 1px 0 rgba(0,0,0,.45); }
.pk-drawer-files { position: relative; width: 62px; height: 14px; margin-bottom: -1px; }
.pk-drawer-files i { position: absolute; bottom: -1px; width: 20px; height: 14px; border-radius: 3px 3px 0 0; box-shadow: inset 0 2px 0 rgba(255,255,255,.35); opacity: 0; transition: transform .32s cubic-bezier(.34,1.56,.64,1), opacity .18s; }
.pk-drawer-files .f1 { left: 1px; background: #5fd4d6; }
.pk-drawer-files .f2 { left: 21px; background: #f5b544; z-index: 1; }
.pk-drawer-files .f3 { left: 41px; background: #7aafff; }
.pk-drawer:hover .pk-drawer-files i, .pk-drawer:focus-visible .pk-drawer-files i { opacity: 1; }
.pk-drawer:hover .f1, .pk-drawer:focus-visible .f1 { transform: translateY(-5px) rotate(-6deg); transition-delay: .04s; }
.pk-drawer:hover .f2, .pk-drawer:focus-visible .f2 { transform: translateY(-9px); transition-delay: .12s; }
.pk-drawer:hover .f3, .pk-drawer:focus-visible .f3 { transform: translateY(-5px) rotate(6deg); transition-delay: .2s; }
.pk-drawer:hover .pk-drawer-face, .pk-drawer:focus-visible .pk-drawer-face { transform: translateY(4px); box-shadow: 0 6px 12px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); }
.pk-drawer-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--pk-text-2); transition: color .2s; }
.pk-drawer:hover .pk-drawer-label, .pk-drawer:focus-visible .pk-drawer-label { color: #7aafff; }

/* 云档案：档案夹弹窗 */
.pkah-modal { position: fixed; inset: 0; z-index: 990; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pkah-modal[hidden] { display: none; }
.pkah-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.pkah-modal-box { position: relative; width: min(720px, 100%); max-height: 82vh; display: flex; flex-direction: column; background: #1b1c22; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.5); overflow: hidden; }
.pkah-modal-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pkah-modal-head b { font-size: 15px; color: #fff; }
.pkah-modal-head span { flex: 1; font-size: 12px; color: var(--pk-text-3); }
.pkah-modal-close { flex: none; border: none; background: none; color: var(--pk-text-3); font-size: 15px; cursor: pointer; padding: 2px 6px; }
.pkah-modal-close:hover { color: #fff; }
.pkah-modal-search { padding: 12px 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.pkah-modal-search input { width: 100%; box-sizing: border-box; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.03); color: var(--pk-text); font-size: 13.5px; padding: 10px 12px; outline: none; font-family: inherit; }
.pkah-modal-search input:focus { border-color: rgba(255,99,57,.6); background: rgba(255,255,255,.05); }
.pkah-modal-list { padding: 12px 16px 16px; overflow: auto; }

/* 各插件「历史XX单」记录卡（弹窗内暗色适配） */
.pkh-rec { border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px; background: rgba(255,255,255,.03); margin-bottom: 10px; }
.pkh-rec-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pkh-rec-head em { font-style: normal; color: rgba(255,150,110,1); font-size: 12px; background: rgba(255,106,61,.12); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.pkh-rec-head b { color: var(--pk-text); font-weight: 600; font-size: 13px; white-space: nowrap; }
.pkh-rec-head span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pk-text-3); }
.pkh-del { flex: none; border: none; background: none; color: var(--pk-text-3); font-size: 13px; cursor: pointer; padding: 2px 6px; }
.pkh-del:hover { color: #ff6a3d; }
.pkh-rec-text { margin: 8px 0 0; padding: 8px 10px; background: rgba(255,255,255,.05); border-radius: 8px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; max-height: 220px; overflow: auto; font-family: inherit; color: var(--pk-text-2); }
.pkh-thumb { display: block; margin-top: 8px; max-width: 200px; max-height: 140px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); }
.pkh-foot { display: flex; gap: 8px; margin-top: 8px; }
.pkh-btn { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--pk-text-2); font-size: 12px; border-radius: 7px; padding: 4px 10px; cursor: pointer; }
.pkh-btn:hover { border-color: rgba(255,106,61,.55); color: #fff; }

/* 云档案档案夹里的项目卡（暗色适配） */
.pkah-modal .pkah-proj { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.pkah-modal .pkah-proj b { color: var(--pk-text); }
.pkah-modal .pkah-proj span { color: var(--pk-text-3); }
.pkah-modal .pkah-proj em { background: rgba(255,106,61,.12); color: rgba(255,150,110,1); }
.pkah-modal .pkah-proj.on { border-color: rgba(255,106,61,.65); box-shadow: 0 0 0 1px rgba(255,106,61,.65) inset; background: rgba(255,106,61,.06); }

/* 合同在线签约：手风琴展开区 */
.pkcs-x { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.12); }
.pkcs-qr { flex: none; background: #fff; border-radius: 8px; padding: 6px; }

/* 楼盘通：实拍缩略图 + 追踪雷达 */
.pk-es-pics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pk-es-pic { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.pk-es-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-es-picx { position: absolute; top: 0; right: 0; width: 16px; height: 16px; border-radius: 0 8px 0 8px; background: rgba(0,0,0,.62); color: #fff; font-size: 9px; font-style: normal; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pk-es-picx:hover { background: rgba(255,99,57,.85); }
.pk-es-addpic { display: inline-flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; padding: 0 4px; border: 1px dashed rgba(255,255,255,.28); border-radius: 8px; color: var(--pk-text-3); font-size: 11px; cursor: pointer; box-sizing: border-box; text-align: center; line-height: 1.3; }
.pk-es-addpic:hover { border-color: rgba(255,99,57,.6); color: var(--pk-text); }
.pk-es-art { margin-top: 2px; }
.pk-es-radar { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pk-es-radar-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 12px 10px; text-align: center; }
.pk-es-radar-item b { display: block; font-size: 22px; line-height: 1.2; }
.pk-es-radar-item span { font-size: 11.5px; color: var(--pk-text-3); }
.pk-es-rlist { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.pk-es-rrow { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12.5px; color: var(--pk-text-2); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; padding: 7px 10px; }
.pk-es-rrow.is-hot { border-color: rgba(255,106,61,.55); background: rgba(255,106,61,.08); color: #ffb599; }


/* ===== 全站按钮形状统一：圆角矩形（对齐插件商店按钮），圆角随按钮字号自动缩放 =====
   大号按钮圆角更大、小号按钮圆角更小；开关/滑块/圆形勾选等保持原状。 */
:root { --pk-btn-r: clamp(7px, 0.72em, 13px); }
button:not([role="switch"]):not(.dh-admin-vip-toggle):not(.toggle):not(.switch):not(.is-circle),
.pk-store-chip, .pk-more-chip, .pk-ind-pill, .pk-store-clear,
.work-chip, .mb-chip, .mb-pill, .deco-tool-tabs button, .module-tabs button {
  border-radius: var(--pk-btn-r) !important;
}


/* ===== 顶栏 · 团队空间入口按钮：与签到同一视觉族，用橙色描边区分 ===== */
.topbar-team-btn { transition: .15s; }
.topbar-team-btn:hover { border-color: rgba(255,99,57,.55); background: rgba(255,99,57,.08); }
.topbar-team-btn strong { color: #ffb599; }

/* ===== 批量生产 / 团队空间：隐藏默认 module-head（hall 自带标题区）===== */
.module-view:has(.pk-batch-hall) > .module-head,
.module-view:has(.pk-team-hall) > .module-head { display: none; }
.module-view:has(.pk-batch-hall),
.module-view:has(.pk-team-hall) { gap: 0; }
.module-view:has(.pk-batch-hall) .pk-hall,
.module-view:has(.pk-team-hall) .pk-hall { margin: 0; padding: 18px 20px 20px; }

/* ===== work-* 组件在主系统内的适配（融入 module-body 视觉）===== */
.pk-batch-hall .work-grid,
.pk-team-hall .work-grid { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: start; }
.pk-team-hall .work-grid { grid-template-columns: 1fr; }
.pk-batch-hall .work-card,
.pk-team-hall .work-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  padding: 20px; box-shadow: none;
}
.pk-batch-hall .work-card h3,
.pk-team-hall .work-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--pk-text); }
.pk-batch-hall .work-card-sub,
.pk-team-hall .work-card-sub { margin: 0 0 16px; color: var(--pk-text-3); font-size: 12.5px; line-height: 1.6; }
.pk-batch-hall .work-textarea,
.pk-team-hall .work-textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  padding: 12px; font-size: 13.5px; line-height: 1.6; outline: none; resize: vertical;
  background: rgba(255,255,255,.04); color: var(--pk-text); font-family: inherit;
}
.pk-batch-hall .work-textarea:focus,
.pk-team-hall .work-textarea:focus { border-color: var(--pk-orange); background: rgba(255,255,255,.06); }
select.work-textarea { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pk-text-3) 50%), linear-gradient(135deg, var(--pk-text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; cursor: pointer; }
select.work-textarea option { background: #1b1d22; color: var(--pk-text); }
.pk-batch-hall textarea.work-textarea {
  min-height: 300px; resize: none; overflow-y: auto; line-height: 1.7;
}
.pk-batch-hall .work-btn,
.pk-team-hall .work-btn {
  width: 100%; height: 44px; border: 0; border-radius: 10px; color: #fff;
  background: linear-gradient(120deg, #ff6339, #ff6a3d);
  font-size: 15px; font-weight: 700; cursor: pointer; transition: .15s;
}
.pk-batch-hall .work-btn:hover,
.pk-team-hall .work-btn:hover { filter: brightness(1.05); }
.pk-batch-hall .work-btn:disabled,
.pk-team-hall .work-btn:disabled { opacity: .55; cursor: not-allowed; }
.pk-batch-hall .work-btn--ghost,
.pk-team-hall .work-btn--ghost { background: rgba(255,255,255,.08); color: var(--pk-text); }
.pk-batch-hall .work-btn--sm,
.pk-team-hall .work-btn--sm { width: auto; height: 36px; font-size: 13px; padding: 0 16px; }
.pk-batch-hall .work-chips,
.pk-team-hall .work-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pk-batch-hall .work-chip,
.pk-team-hall .work-chip {
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: var(--pk-text);
  padding: 8px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: .12s;
}
.pk-batch-hall .work-chip:hover,
.pk-team-hall .work-chip:hover { border-color: var(--pk-orange); }
.pk-batch-hall .work-chip.on,
.pk-team-hall .work-chip.on { background: var(--pk-orange); color: #fff; border-color: var(--pk-orange); }
.pk-team-hall .work-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 2px solid rgba(255,255,255,.08); }
.pk-team-hall .work-tab {
  border: 0; background: transparent; color: var(--pk-text-3); font-size: 14px; font-weight: 700;
  padding: 10px 18px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.pk-team-hall .work-tab.on { color: var(--pk-text); border-bottom-color: var(--pk-orange); }
.pk-team-hall .work-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.pk-team-hall .work-metric {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 14px; text-align: center;
}
.pk-team-hall .work-metric b { display: block; font-size: 24px; color: var(--pk-text); margin-bottom: 2px; }
.pk-team-hall .work-metric span { font-size: 12px; color: var(--pk-text-3); }
.pk-team-hall .work-team-code {
  display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.03); color: var(--pk-text);
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px;
}
.pk-team-hall .work-team-code .code { font-size: 20px; font-weight: 800; letter-spacing: 2px; color: #ff6a3d; font-family: Consolas, monospace; }
.pk-team-hall .work-team-code .code-label { font-size: 11px; color: var(--pk-text-3); }
.pk-team-hall .work-member {
  display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px; margin-bottom: 8px;
}
.pk-team-hall .work-member-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #ff6339, #e37b56);
  color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; flex: 0 0 auto;
}
.pk-team-hall .work-member-body { flex: 1; }
.pk-team-hall .work-member-body b { font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--pk-text); }
.pk-team-hall .work-member-body span { font-size: 12px; color: var(--pk-text-3); }
.pk-team-hall .work-role-badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: rgba(255,99,57,.14); color: #ff6a3d; font-weight: 700; }
.pk-team-hall .work-role-badge--member { background: rgba(255,255,255,.06); color: var(--pk-text-3); }
.pk-team-hall .work-member-num { text-align: right; font-size: 12.5px; color: var(--pk-text-3); }
.pk-team-hall .work-member-num b { display: block; font-size: 16px; color: var(--pk-text); }
.pk-team-hall .work-recent { display: flex; flex-direction: column; gap: 8px; }
.pk-team-hall .work-recent-item { display: flex; gap: 10px; padding: 10px; background: rgba(255,255,255,.03); border-radius: 8px; font-size: 12.5px; align-items: center; }
.pk-team-hall .work-recent-item .who { font-weight: 700; color: var(--pk-text); flex: 0 0 auto; }
.pk-team-hall .work-recent-item .what { color: var(--pk-text-3); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-team-hall .work-recent-item .when { color: var(--pk-text-3); font-size: 11px; flex: 0 0 auto; }
.pk-batch-hall .work-item,
.pk-team-hall .work-item {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
  padding: 14px; margin-bottom: 10px;
}
.pk-batch-hall .work-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pk-batch-hall .work-item-idx { width: 22px; height: 22px; border-radius: 50%; background: var(--pk-orange); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: 0 0 auto; }
.pk-batch-hall .work-item-topic { font-size: 13px; font-weight: 700; flex: 1; color: var(--pk-text); }
.pk-batch-hall .work-item-copy { font-size: 12px; cursor: pointer; color: #ff6a3d; border: none; background: none; }
.pk-batch-hall .work-item-out { font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; color: var(--pk-text); }
.pk-batch-hall .work-item-fail { font-size: 12.5px; color: #ff6b6b; line-height: 1.5; }
.pk-batch-hall .work-empty,
.pk-team-hall .work-empty { color: var(--pk-text-3); font-size: 13px; padding: 50px 20px; text-align: center; background: rgba(255,255,255,.02); border-radius: 10px; line-height: 1.8; }
.pk-batch-hall .work-err,
.pk-team-hall .work-err { color: #ff6b6b; font-size: 12.5px; min-height: 16px; margin: 8px 0 0; }
.pk-batch-hall .work-hint,
.pk-team-hall .work-hint { font-size: 12px; color: var(--pk-text-3); margin: 6px 0 14px; line-height: 1.5; }
.pk-batch-hall .work-profile-tip,
.pk-team-hall .work-profile-tip {
  background: rgba(255,99,57,.06); border: 1px solid rgba(255,99,57,.2); color: #ff6a3d;
  font-size: 12.5px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; margin-bottom: 16px;
}
.pk-batch-hall .work-profile-tip b,
.pk-team-hall .work-profile-tip b { display: block; margin-bottom: 2px; }
.pk-batch-hall .work-label,
.pk-team-hall .work-label { display: block; font-size: 12.5px; font-weight: 700; margin: 0 0 6px; color: var(--pk-text); }
.pk-batch-hall .work-result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pk-batch-hall .work-result-head h3 { margin: 0; }
.pk-batch-hall .work-result-stats { font-size: 12.5px; color: var(--pk-text-3); }
.pk-batch-hall .work-copyall { display: flex; gap: 10px; margin-top: 4px; }
.pk-team-hall .work-quota-bar { margin-bottom: 18px; }
.pk-team-hall .work-quota-num { font-size: 14px; color: var(--pk-text); margin-bottom: 6px; }
.pk-team-hall .work-quota-num b { font-size: 24px; color: var(--pk-orange); }
.pk-team-hall .work-quota-track { height: 8px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; }
.pk-team-hall .work-quota-fill { height: 100%; background: linear-gradient(90deg, var(--pk-orange), #e37b56); border-radius: 999px; transition: width .3s; }
.pk-team-hall .work-quota-hint { font-size: 12px; color: var(--pk-text-3); margin-top: 6px; }
.pk-team-hall .work-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pk-team-hall .work-pack { border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 14px; text-align: center; background: rgba(255,255,255,.03); }
.pk-team-hall .work-pack b { display: block; font-size: 14px; margin-bottom: 4px; color: var(--pk-text); }
.pk-team-hall .work-pack .price { font-size: 20px; font-weight: 800; color: var(--pk-orange); margin: 6px 0; }
.pk-team-hall .work-pack .price small { font-size: 11px; font-weight: 400; color: var(--pk-text-3); }
.pk-team-hall .work-pack span { display: block; font-size: 11.5px; color: var(--pk-text-3); margin-bottom: 8px; }
.pk-team-hall .work-pack button { width: 100%; height: 34px; border: 0; border-radius: 8px; color: #fff; cursor: pointer; background: linear-gradient(120deg, #ff6339, #ff6a3d); font-size: 13px; font-weight: 700; }
.pk-team-hall .work-pack button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 980px) {
  .pk-batch-hall .work-grid { grid-template-columns: 1fr; }
}

/* ===== 团队空间细节修正 ===== */
/* 企业码一行显示 */
.pk-team-hall .work-team-code .code { white-space: nowrap; }
.pk-team-hall .work-team-code { flex-wrap: nowrap; }

/* 最近团队动态：一行两列 */
.pk-team-hall .work-recent { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 插件到期预警条目：一行两列（h4 标题和提示文字占满整行） */
.pk-team-hall #expiringBody { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pk-team-hall #expiringBody > .work-item { min-width: 0; }
.pk-team-hall #expiringBody > h4,
.pk-team-hall #expiringBody > div:not(.work-item) { grid-column: 1 / -1; }

/* 操作留痕刷新按钮文字不换行 */
.pk-team-hall .work-btn--sm { white-space: nowrap; }

/* ===== 批量生产 / 团队空间：外层单栏 + 隐藏 aside，hall 到画布间距与文案创作一致 ===== */
.agent-page .module-layout:has(.pk-batch-hall),
.agent-page .module-layout:has(.pk-team-hall) {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
}
.agent-page .module-layout:has(.pk-batch-hall) > aside,
.agent-page .module-layout:has(.pk-team-hall) > aside { display: none; }

/* 企业码：label 与 value 同一行（内层 flex-row baseline） */
.pk-team-hall .work-team-code-inner {
  display: flex; align-items: baseline; gap: 12px; flex: 1; min-width: 0; flex-wrap: nowrap;
}
.pk-team-hall .work-team-code-inner .code-label { flex: 0 0 auto; }
.pk-team-hall .work-team-code-inner .code { flex: 0 0 auto; }

/* ===== 账号策划右侧「策划进度与产出」面板：对齐文案创作 pk-script-context ===== */
.pk-ap-hall .account-plan-context { display: grid; gap: 16px; }
.pk-ap-hall .account-plan-context .pk-script-progress { margin-top: 2px; }
.pk-ap-hall .account-plan-context-flow {
  display: grid; gap: 10px; padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .03);
}
.pk-ap-hall .account-plan-context-flow > span { color: var(--pk-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.pk-ap-hall .account-plan-context-flow > div { display: grid; gap: 2px; }
.pk-ap-hall .account-plan-context-flow strong { color: var(--pk-text); font-size: 13.5px; }
.pk-ap-hall .account-plan-context-flow p { margin: 0; color: var(--pk-text-3); font-size: 12px; line-height: 1.6; }
.pk-ap-hall .account-plan-context-billing {
  display: grid; gap: 3px; padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; background: rgba(255, 255, 255, .02);
}
.pk-ap-hall .account-plan-context-billing > span { color: var(--pk-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.pk-ap-hall .account-plan-context-billing strong { color: var(--pk-text); font-size: 15px; }
.pk-ap-hall .account-plan-context-billing p { margin: 0; color: var(--pk-text-3); font-size: 12px; line-height: 1.6; }
@media (max-width: 1180px) {
  .pk-ap-hall .pk-script-split { grid-template-columns: 1fr; }
}
