/* ===== asd-m 宿主基础层（host.css） =====
   仅补宿主壳必需：base reset / toast / 商业服务 sheets（模板/充值/作品）。
   界面主体全部来自照搬的 tokens.css + assist.css（字节级一致，不改）。 */
html, body {
  height: 100%; margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}
/* 0916老板令:页面锁死——iOS 橡皮筋漂移禁绝(body钉视口+禁回弹),内部滚动(#app/.screen)不受影响 */
body{position:fixed;top:0;left:0;width:100%;height:100%;overscroll-behavior:none;-webkit-overscroll-behavior:none}
*, *::before, *::after { box-sizing: inherit; }
#app { height: 100%; height: -webkit-fill-available; display: flex; flex-direction: column; }   /* 08-31 牛牛(iOS 键盘顶起输入框): 补 -webkit-fill-available 兜底——iOS 可用视口高(随地址栏/键盘), 键盘弹出由 assist.js applyViewport 钉可视区底边; 老安卓/Chrome 不认则回落 100% 无回归 */
.screen { display: none; }
/* #screen-assist.active 的布局由 assist.css 提供（flex column; height:100%） */

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%);
  z-index: 999; max-width: 80vw; text-align: center;
  background: rgba(20, 24, 32, .92); color: #fff; font-size: 14px;
  padding: 9px 16px; border-radius: 20px; line-height: 1.4;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
#toast.show { opacity: 1; }

/* ---------- 商业服务 sheet（汉堡菜单插件） ---------- */
.com-sheet { position: fixed; inset: 0; z-index: 180; display: none; }
.com-sheet.show { display: block; }
.com-sheet .com-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.com-sheet .com-panel {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 480px;
  background: var(--surface); color: var(--text);
  border-radius: 18px 18px 0 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  max-height: 78vh; overflow-y: auto;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .14);
}
/* ⑧⑨ 插件广场/资产库 + ⑪ 升级页：全屏展示（去顶部留白间隙）——面板铺满视口、列表内滚、头/行/底栏常驻不塌 */
.com-sheet .com-panel.com-full{
  inset:0; width:100%; max-width:none; height:100%; max-height:none; border-radius:0;
  padding-top:calc(env(safe-area-inset-top,0px) + 10px);
  display:flex; flex-direction:column;
}
.com-full .com-list{flex:1; overflow-y:auto; min-height:0}
.com-full .com-head,.com-full .com-tip,.com-full .bill-note{flex-shrink:0}
.com-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.com-head b { font-size: 17px; }
.com-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--sub); font-size: 18px; }
.com-tip { font-size: 13px; color: var(--sub); margin: 10px 2px 4px; }
.com-list { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.com-empty { text-align: center; color: var(--sub); font-size: 14px; padding: 34px 12px; }

/* 模板卡 */
.tmpl-card {
  padding: 14px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--border); box-shadow: var(--sh-card);
}
.tmpl-head { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.tmpl-head .tmpl-ico { font-size: 22px; }
.tmpl-desc { font-size: 13px; color: var(--sub); margin: 6px 0 10px; line-height: 1.5; }
.tmpl-act {
  width: 100%; min-height: 44px; border: none; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; background-image: var(--accent-grad);
}
.tmpl-act:active { opacity: .85; }

/* 充值卡 */
.bill-card {
  padding: 14px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--border); display: flex; align-items: center; gap: 10px;
}
.bill-card.featured { border-color: var(--accent-border); background: var(--accent-bg-light); }
.bill-info { flex: 1; min-width: 0; }
.bill-name { font-size: 15px; font-weight: 700; }
.bill-feat {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft);
}
.bill-desc { font-size: 12px; color: var(--sub); margin-top: 3px; }
.bill-price { text-align: right; }
.bill-num { font-size: 18px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.bill-num small { font-size: 11px; font-weight: 400; color: var(--sub); }
.bill-btn {
  margin-top: 4px; min-height: 40px; padding: 0 14px; border: none; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}
.bill-btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent-border); }
.bill-note { font-size: 12px; color: var(--sub); line-height: 1.7; margin: 12px 2px 4px; }

/* v1.1.1 计费·订阅页照 WorkBuddy 版式（⑫ 定案 20260829：标准99/高级199/旗舰999 + 连续包月7折 + 年付7折 + 连续包年再8折 + 积分两项制[基础/赠送分开] + 10/10/11项权益清单；无加量包、无单独充积分入口）
   B1 返工 08-31（老板实测）：卡片大小协调、字号可读、间距合理——权益清单改独立卡+字号 12→13px/行高加；价卡字号微调不喧宾；区块间留白+分隔线。 */
.bill-tabs{display:flex;background:var(--bg);border-radius:12px;padding:4px;margin-bottom:14px}
.bill-tab{flex:1;min-height:40px;border:none;border-radius:9px;background:transparent;color:var(--sub);font-size:14px;font-weight:600;cursor:pointer}
.bill-tab.on{background:var(--card);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.08)}
.bill-panel{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:14px}
/* 权益清单独立成卡（浅底+内边距），与价卡/按钮区块层次分明，不再一行挤贴一行 */
.bill-feat-list{display:flex;flex-direction:column;gap:0;margin:2px 0;background:var(--bg);border-radius:12px;padding:6px 4px}
.bill-fItem{display:flex;align-items:center;gap:9px;min-height:32px;padding:4px 8px;line-height:1.4}
.bill-fItem + .bill-fItem{border-top:1px solid var(--border)}
.bill-fIco{width:22px;height:22px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--accent);font-size:15px}
.bill-fTxt{font-size:13px;color:var(--text);flex:1;min-width:0;line-height:1.35}
.bill-cards{display:flex;gap:10px;margin-top:14px;overflow-x:auto;padding-bottom:2px}
.bill-card2{flex:1;min-width:118px;background:var(--bg);border:1px solid var(--border);border-radius:14px;padding:12px 10px;cursor:pointer;text-align:left}
.bill-card2.on{border-color:var(--accent-border);background:var(--accent-bg-light)}
.bill-card2 .pc-k{font-size:12px;color:var(--sub)}
.bill-card2 .pc-v{font-size:17px;font-weight:800;color:var(--text);margin-top:5px}
.bill-card2.on .pc-v{color:var(--accent)}
.bill-card2 .pc-old{font-size:11px;color:var(--sub);text-decoration:line-through;margin-top:2px}
.bill-buy{width:100%;margin-top:14px;min-height:48px;border:none;border-radius:14px;background:var(--accent);color:#fff;font-size:16px;font-weight:700;cursor:pointer}
/* v1.1.2 ⑩ 充值升级门：当前档位卡 + 升级按钮（点击才进选档界面，非直接平铺） */
.bill-status{display:flex;flex-direction:column;gap:10px;padding:4px 0 8px}
.bill-status .bs-k{font-size:18px;font-weight:800;color:var(--text)}
.bill-status .bs-desc{font-size:13px;color:var(--sub);line-height:1.5}
.bill-status .bs-up{margin-top:6px;background:var(--accent,#007AFF)}
/* v1.1.3 充值积分档位（老板 08-31 开放真实支付：会员购买 + 积分充值同建单跳 epay）
   B1 返工：充值区加顶部分隔线，与购买区明确分层，不再混成一坨 */
.bill-rc-label{font-size:13px;font-weight:700;color:var(--text);margin:18px 2px 4px;padding-top:14px;border-top:1px solid var(--border)}

/* 作品卡 */
.asset-card {
  padding: 12px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px;
}
.asset-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--sub); }
.asset-title { font-size: 14px; font-weight: 600; color: var(--text); word-break: break-all; }
.asset-card video { width: 100%; border-radius: 10px; background: #000; max-height: 220px; }
.asset-card audio { width: 100%; }
.asset-media { position: relative; border-radius: 10px; overflow: hidden; background: #111;
  min-height: 64px; display: flex; align-items: center; justify-content: center; }
.asset-cover { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; width: 100%; }
.asset-cover-ico { font-size: 34px; line-height: 1; }
.asset-play { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); color: #fff;
  border-radius: 999px; padding: 8px 24px; font-size: 14px; cursor: pointer; }
.asset-play:active { background: rgba(255,255,255,.32); }
.asset-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; background: rgba(0,0,0,.55); z-index: 2; }
.asset-loading[hidden] { display: none; }
.asset-link { color: var(--accent); font-size: 14px; text-decoration: none; }
.asset-body { font-size: 12px; color: var(--sub); white-space: pre-wrap; word-break: break-word; max-height: 140px; overflow-y: auto; }
.asset-time { font-size: 12px; color: var(--sub); }

/* ---------- shell 屏"建设中"占位（骨架壳保留，内容诚实说明） ---------- */
.asd-stub {
  margin: 24px 16px; padding: 26px 20px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border);
  text-align: center;
}
.ds-stub-ico { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.ds-stub-title { font-size: 17px; font-weight: 700; color: var(--text); }
.ds-stub-body { font-size: 13px; color: var(--sub); line-height: 1.7; margin: 8px 0 18px; }
.ds-stub-btn {
  display: inline-block; min-height: 44px; padding: 0 18px; margin: 4px;
  border: none; border-radius: 12px; font-size: 15px; font-weight: 600;
  background: var(--accent); color: #fff; cursor: pointer; background-image: var(--accent-grad);
}
.ds-stub-btn:active { opacity: .85; }
.asd-stub-actions { display: flex; flex-direction: column; gap: 8px; padding: 0 10px; }

/* 我的（profile）占位卡 */
.asd-profile {
  margin: 14px 16px; padding: 26px 20px; border-radius: 16px;   /* v1.1.2 ⑪: 上下间距24→14, 个人中心加油站/上下卡间距调紧凑统一(老板像素敏感) */
  background: var(--card); border: 1px solid var(--border); text-align: center;
}
.dp-avatar { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.dp-name { font-size: 17px; font-weight: 700; color: var(--text); }
.dp-points { font-size: 14px; color: var(--sub); margin: 8px 0 4px; }
.dp-points b { font-size: 18px; color: var(--accent); }
.dp-note { font-size: 12px; color: var(--sub); line-height: 1.6; margin-bottom: 16px; }

/* ===== 老板08-27 欢迎页定制·第三版：左右滑动选择胶囊 + 小字卡片框 + 暗色明显
   胶囊=滑动选择器（点击/滑动只选不跳，输入发送才生效，交互在 main.js modePill）；
   去 ☁️💻 图标只留文字、左右拉窄做小；暗色下 active=accent 蓝高亮（暗底 #191919 必须跳出来）。
   HTML 骨架（两个 button + onclick）不动，纯视觉+行为覆盖。 */
#assistWelcome .assist-wsub{
  font-size:12.5px; line-height:1.75; color:var(--sub,#8a8a8f);
  text-align:center; max-width:320px; margin-top:2px;
  padding:10px 14px;                             /* 小卡片框：文字框起来 */
  background:var(--surface,#ffffff); border:1px solid var(--border,#e3e8ef); border-radius:12px;
}
[data-theme=dark] #assistWelcome .assist-wsub{ background:var(--bar-bg,#232323); border-color:#48484f; }
#assistWelcome .assist-cards{
  display:flex; flex-direction:row; align-items:center; justify-content:center;
  gap:2px; padding:3px; margin-top:10px; max-width:none; width:auto;
  background:var(--surface,#ffffff); border:1px solid var(--border,#e3e8ef);
  border-radius:999px;                          /* 大胶囊·全圆角（对齐跃界 .chip） */
  touch-action:pan-x;                           /* 允许横向滑动选择 */
}
[data-theme=dark] #assistWelcome .assist-cards{ background:var(--bar-bg,#232323); border-color:#48484f; }
#assistWelcome .assist-card{
  flex:0 0 auto; height:26px; padding:0 10px; gap:0; border:none; border-radius:999px;
  background:transparent; color:var(--sub,#8a8a8f); font-size:12px; font-weight:500;
  display:inline-flex; align-items:center; justify-content:center; white-space:nowrap;
  transition:background .15s, color .15s;
}
#assistWelcome .assist-card .ac-ico{ display:none; }        /* 老板：去图标只留文字 */
#assistWelcome .assist-card.active{
  background:var(--accent,#007AFF); color:#fff; -webkit-text-fill-color:#fff;
  font-weight:700;                              /* active=accent 高亮+白字（-webkit-text-fill 防 iOS 渲染不吃 color） */
}
#assistWelcome .assist-card.inactive{background:transparent; border:none; color:var(--sub,#8a8a8f)}
#assistWelcome .assist-card:hover{color:var(--text); }

/* ===== 老板08-27 抽屉「工作模式」滑动胶囊 =====
   #assistMenuList 空，renderMenu 需后端 AI 列表，故由 main.js 注入本区；交互与欢迎页胶囊同一 selectMode。
   老板明确要求：与欢迎页胶囊【一模一样】=长的大胶囊壳 + 内嵌滑块小胶囊（非全宽分段控件）。
   → .amp-box/.amp-btn 样式值逐项对齐 #assistWelcome .assist-cards/.assist-card（窄壳跟内容走、active 蓝底白字）。

   七改（老板08-27 复述"要跟欢迎页内嵌滑块一样"）：六改把壳改成写死灰(#eef2f6)让它可见，
   结果配色就和欢迎页不是一套了 = 没做到"一模一样"，方向错。
   真因：欢迎页=白壳(--surface)压在灰页面(--bg #f5f7fa)上→壳可见；抽屉面板本身是白(--card #fff)→白壳隐形。
   正解：壳还原成与欢迎页逐项同值(--surface/--border)，改为给「工作模式」整块垫 --bg 灰底，
   把「白胶囊 on 灰底」这层关系原样搬过来（暗色 --bg=#191919=抽屉面板色，天然无变化，与欢迎页同）。 */
.assist-mode-pill{
  padding:10px 20px 12px;                       /* 九改（老板：留白再多一点）：左右 14→20px */
  background:var(--bg,#f5f7fa);                 /* 垫欢迎页同款灰底，白壳才立得住 */
  border-bottom:1px solid var(--border,#e3e8ef);
}
.amp-label{ font-size:11px; color:var(--sub,#8a8a8f); padding:0 2px 6px; font-weight:700; }
.amp-box{
  display:flex; flex-direction:row; align-items:center; justify-content:center;
  gap:2px; padding:3px; margin-top:0;
  width:100%; max-width:none; box-sizing:border-box;   /* 八改（老板：太窄，右边空一大块）：壳撑满抽屉宽 */
  background:var(--surface,#ffffff); border:1px solid var(--border,#e3e8ef);   /* 配色仍 = #assistWelcome .assist-cards */
  border-radius:999px;
  touch-action:pan-x;
}
[data-theme=dark] .amp-box{ background:var(--bar-bg,#232323); border-color:#48484f; }  /* 同欢迎页暗色壳 */
.amp-btn{
  flex:1 1 0; min-width:0;                      /* 八改：两半均分撑满，不再跟内容宽 */
  height:32px; padding:0 10px; gap:0; border:none; border-radius:999px;
  background:transparent; color:var(--sub,#8a8a8f); font-size:13px; font-weight:500;
  display:inline-flex; align-items:center; justify-content:center; white-space:nowrap;
  transition:background .15s, color .15s;
}
.amp-btn.active{
  background:var(--accent,#007AFF); color:#fff; -webkit-text-fill-color:#fff; font-weight:700;
}
.amp-btn.inactive{ background:transparent; border:none; color:var(--sub,#8a8a8f); }

/* ===== 老板08-27③ 暗色输入区：输入条/输入框要有明显框体，不能只剩一条线分隔 =====
   原状：暗色 .assist-input 底=--bg(#191919 同页面)、.assist-compose 底=--card(#191919 同底)且无边框
   → 暗色下输入区隐形，只见输入条一条 border-top。覆盖：输入条提亮、输入框=胶囊框(亮底+亮边框+圆角)。 */
[data-theme=dark] .assist-input{
  background:#202023;                       /* 输入条底色略亮于页面 #191919，条与页可辨 */
  border-top-color:#48484f;                 /* 分隔线提亮 */
}
[data-theme=dark] .assist-compose{
  background:#2a2a2e; border:1px solid #48484f;   /* 输入框=可见胶囊块 */
}
[data-theme=dark] .assist-compose:active{ background:#313136; }
[data-theme=dark] .assist-compose-open{
  background:#2a2a2e; border:1px solid #48484f;
}
[data-theme=dark] .assist-compose-open textarea,
[data-theme=dark] .assist-compose-open input{
  background:#1c1c20; border-color:#48484f;   /* 文字输入区=更深的槽，嵌在胶囊里可辨 */
}

/* ===== 老板08-27 九改：插件广场 = 卡片墙（参照伯克巴蒂「专家」面板） =====
   两列卡片陈列全部能力 → 点卡片进详情（说明 + 怎么用 + 示例话术）。plugins.js 渲染。 */
.pg-grid{
  display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; padding:4px 0 8px;
}
.pg-card{
  display:flex; flex-direction:column; align-items:flex-start; gap:5px;
  padding:14px 12px; min-height:104px; text-align:left; cursor:pointer;
  border:1px solid var(--border,#e3e8ef); border-radius:14px;
  background:var(--surface,#fff);
}
.pg-card:active{ background:var(--bar-bg,#eef2f6); border-color:var(--accent,#007AFF); }
[data-theme=dark] .pg-card{ background:var(--bar-bg,#232323); border-color:#48484f; }
.pg-card-ico{ font-size:24px; line-height:1.1; }
.pg-card-name{ font-size:14px; font-weight:700; color:var(--text,#1f2933); }
.pg-card-desc{
  font-size:11.5px; color:var(--sub,#6b7280); line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
/* ---- 详情 ---- */
.pg-back{
  border:none; background:transparent; cursor:pointer; padding:6px 2px 10px;
  color:var(--accent,#007AFF); font-size:14px;
}
.pg-d-head{ display:flex; flex-direction:column; gap:6px; padding:0 2px 14px; }
.pg-d-ico{ font-size:34px; line-height:1; }
.pg-d-name{ font-size:18px; font-weight:700; color:var(--text,#1f2933); }
.pg-d-desc{ font-size:13px; color:var(--sub,#6b7280); line-height:1.5; }
.pg-d-sec{ padding:12px 2px; border-top:1px solid var(--border,#e3e8ef); }
.pg-d-lbl{ font-size:11px; font-weight:700; color:var(--sub,#6b7280); padding-bottom:8px; }
.pg-d-guide{ font-size:13.5px; color:var(--text,#1f2933); line-height:1.7; }
.pg-samples{ display:none; flex-wrap:wrap; gap:6px; }
.pg-samples-open{ display:flex; }
.pg-sample{
  border:1px solid var(--border,#e3e8ef); background:var(--surface,#fff);
  color:var(--text,#1f2933); font-size:12.5px; line-height:1.4;
  padding:7px 11px; border-radius:14px; text-align:left; cursor:pointer;
  max-width:100%; white-space:normal;
}
.pg-sample:active{ background:var(--accent,#007AFF); color:#fff; border-color:transparent; }
[data-theme=dark] .pg-sample{ background:var(--bar-bg,#232323); border-color:#48484f; }
.pg-empty{ padding:24px 4px; text-align:center; color:var(--sub,#6b7280); font-size:13px; }

/* ===== 老板08-27 八改：登录/注册表单（auth.js，接跃界网关用户体系） ===== */
.da-form{ display:flex; flex-direction:column; gap:10px; padding:6px 4px 18px; }
.da-inp{
  width:100%; box-sizing:border-box; height:46px; padding:0 14px;
  border:1px solid var(--border,#e3e8ef); border-radius:12px;
  background:var(--surface,#fff); color:var(--text,#1f2933); font-size:15px;
}
.da-inp:focus{ outline:none; border-color:var(--accent,#007AFF); }
[data-theme=dark] .da-inp{ background:#1c1c20; border-color:#48484f; }
.da-pwd{ position:relative; }
.da-pwd .da-inp{ padding-right:46px; }
.da-eye{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  width:36px; height:36px; border:none; background:transparent;
  font-size:17px; cursor:pointer; color:var(--sub,#6b7280);
}
.da-err{ min-height:18px; font-size:12.5px; color:#e5484d; line-height:1.4; padding:0 2px; }
.da-captcha{ display:flex; align-items:center; gap:10px; }
.da-captcha .da-inp{ flex:1; min-width:0; padding-right:10px; }
.da-captcha-img{ width:100px; height:40px; border:1px solid var(--line,#e5e7eb); border-radius:8px; background:#fff; cursor:pointer; object-fit:contain; flex:none; }
[data-theme=dark] .da-captcha-img{ background:#1c1c20; border-color:#48484f; }
/* 短信验证码行（老板 2026-08-29 518 接入：手机号 + 获取验证码按钮并排） */
.da-smscol{ display:flex; align-items:center; gap:10px; }
.da-smscol .da-inp{ flex:1; min-width:0; padding-right:10px; }
.da-code-btn{ flex:none; height:46px; padding:0 14px; border:1px solid var(--border,#e3e8ef); border-radius:12px; background:var(--surface,#fff); color:var(--accent,#007AFF); font-size:14px; cursor:pointer; -webkit-user-select:none; user-select:none; }
.da-code-btn:disabled{ opacity:.6; cursor:default; }
[data-theme=dark] .da-code-btn{ background:#1c1c20; border-color:#48484f; }
.da-submit{
  height:48px; border:none; border-radius:12px; cursor:pointer;
  background:var(--accent,#007AFF); color:#fff; -webkit-text-fill-color:#fff;
  font-size:16px; font-weight:700;
}
.da-submit:disabled{ opacity:.6; }
.da-switch{
  height:36px; border:none; background:transparent; cursor:pointer;
  color:var(--accent,#007AFF); font-size:13.5px;
}
.da-note{ font-size:12px; color:var(--sub,#6b7280); line-height:1.6; text-align:center; margin:2px 0 0; }

/* ===== 0914越界·老板令：登录弹窗暗色防淹没（#asdAuthSheet/.da-card 四视图共用） =====
   病根=theme-gold亮金档 !important 无暗色对应（老血案·多定义覆盖同款）：
   ①.da-inp background:#FBFAF7!important 压过本文件暗色#1c1c20 → 输入框亮米色块；
   ②.gold暗档243行把输入字提亮#EDEDF2 → 白字压白底=输入文字隐形（淹没主凶）；
   ③.da-links .da-link #3A3B40!important → 暗卡上深灰链字隐形；
   ④.da-submit #241D14!important 黑胶囊 → 贴暗卡主按钮隐身；
   ⑤.da-card 无border+遮罩45%太浅 → 卡片沉进JS涂的#202023底。
   修：暗色逐件对齐；全部scoped [data-theme=dark]，亮色零波及；!important对!important+更高特异性+host晚于gold载入=必胜 */
[data-theme=dark] #asdAuthSheet .com-mask{ background:rgba(0,0,0,.62); }
[data-theme=dark] .da-card{
  background:var(--card,#24242B);
  border:1px solid #48484F;
  box-shadow:0 18px 60px rgba(0,0,0,.6);
}
[data-theme=dark] .da-inp{
  background:#1C1C20!important;
  border-color:#48484F!important;
  color:#EDEDF2!important;
  -webkit-text-fill-color:#EDEDF2!important;
}
[data-theme=dark] .da-inp:focus{ border-color:#EDC274!important; box-shadow:0 0 0 3px rgba(237,194,116,.14)!important; }
[data-theme=dark] .da-inp::placeholder{ color:#6E7080; -webkit-text-fill-color:#6E7080; }
[data-theme=dark] .da-links .da-link{ color:#C8C9D4!important; }
[data-theme=dark] .da-links .da-switch{ color:#EDC274!important; }
[data-theme=dark] .da-submit{
  background:linear-gradient(135deg,#D4A24E,#8F6527)!important;
  color:#1A1408!important;
  -webkit-text-fill-color:#1A1408!important;
  box-shadow:0 8px 22px rgba(212,162,78,.28)!important;
}
[data-theme=dark] .da-remember input[type=checkbox]{ accent-color:#EDC274; }

/* ===== 老板08-28 登录弹窗移动端适配（#asdAuthSheet .da-card）：居中卡片，自动适配手机屏幕，不再满当当 ===== */
.da-card{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(420px,92vw);
  background:var(--surface,#fff); color:var(--text,#1f2933);
  border-radius:18px; padding:14px 18px calc(16px + env(safe-area-inset-bottom));
  max-height:86vh; overflow-y:auto; box-shadow:0 10px 40px rgba(0,0,0,.24);
}
.da-hero{ display:flex; flex-direction:column; align-items:center; text-align:center; padding:8px 0 4px; }
.da-hero-avatar{ width:58px; height:58px; border-radius:14px; overflow:hidden; margin-bottom:10px; }
.da-hero-avatar img{ width:100%; height:100%; object-fit:cover; }
.da-hero-title{ font-size:20px; font-weight:700; color:var(--text,#1f2933); }
.da-hero-sub{ font-size:12.5px; color:var(--sub,#6b7280); line-height:1.6; margin-top:5px; }
.da-field{ display:block; }
.da-field>span{ display:block; font-size:12.5px; color:var(--sub,#6b7280); margin:2px 2px 6px; }
.da-form{ display:flex; flex-direction:column; gap:12px; padding:8px 2px 6px; }
.da-remember{ display:flex; align-items:center; gap:7px; font-size:13px; color:var(--sub,#6b7280);
  -webkit-user-select:none; user-select:none; margin-top:-2px; cursor:pointer; }
.da-remember input{ width:18px; height:18px; }
.da-links{ display:flex; flex-direction:column; gap:4px; padding-top:4px; }
.da-link{ height:34px; border:none; background:transparent; cursor:pointer;
  color:var(--accent,#007AFF); font-size:13.5px; }
.da-scan-tip{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; padding:16px 6px 8px; }
.da-scan-ico{ font-size:40px; line-height:1; }
.da-scan-tip p{ font-size:13px; color:var(--sub,#6b7280); line-height:1.7; max-width:280px; }

/* ===== 个人中心（「我的」tab #profileBody，auth.js renderCenter 渲染，对齐桌面 view-logged） ===== */
.uc-hero{ display:flex; align-items:center; gap:14px; padding:18px 16px; background:var(--card,#fff);
  border-radius:16px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.uc-avatar{ width:54px; height:54px; border-radius:50%; background:var(--accent,#007AFF); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:700; flex-shrink:0; }
.uc-hero-meta{ flex:1; min-width:0; }
.uc-name{ font-size:18px; font-weight:700; color:var(--text,#1f2933); }
.uc-id{ font-size:12px; color:var(--sub,#6b7280); margin-top:3px; }
.uc-tag{ font-size:11px; color:var(--sub,#6b7280); background:rgba(120,120,128,.14); padding:3px 8px; border-radius:9px; }
.uc-points{ font-size:13px; color:var(--text,#1f2933); font-weight:600; white-space:nowrap; }
.uc-checkin{ background:linear-gradient(135deg,#fff7ec,#ffe9d2); border-radius:16px; padding:16px; }
.uc-checkin-head{ font-size:15px; font-weight:700; color:#a65c00; display:flex; align-items:baseline; gap:8px; }
.uc-checkin-sub{ font-size:11.5px; color:#b98240; font-weight:500; }
.uc-checkin-rows{ display:flex; justify-content:space-between; margin:10px 0 12px; }
.uc-ci-row{ display:flex; flex-direction:column; gap:3px; }
.uc-ci-l{ font-size:12.5px; color:#a8783a; }
.uc-ci-r{ font-size:13px; color:#7a4e10; font-weight:600; }
.uc-ci-btn{ width:100%; height:44px; border:none; border-radius:12px; background:#f5a623; color:#5b3400;
  font-size:15px; font-weight:700; cursor:pointer; }
.uc-ci-btn.disabled{ opacity:.6; }
.uc-login-prompt{ background:var(--card,#fff); border-radius:16px; padding:22px 16px; text-align:center;
  box-shadow:0 1px 3px rgba(0,0,0,.05); }
.uc-login-prompt p{ font-size:13px; color:var(--sub,#6b7280); line-height:1.7; margin:0 0 14px; }
.uc-login-btn{ height:44px; padding:0 28px; border:none; border-radius:12px; background:var(--accent,#007AFF);
  color:#fff; font-size:15px; font-weight:700; cursor:pointer; }
.uc-menu{ background:var(--card,#fff); border-radius:16px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.uc-item{ width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:15px 16px; background:transparent; border:none; border-bottom:1px solid var(--border,#eee);
  color:var(--text,#1f2933); font-size:15px; cursor:pointer; text-align:left; }
.uc-item:last-child{ border-bottom:none; }
.uc-item:active{ background:rgba(0,0,0,.04); }
.uc-arrow{ color:var(--sub,#aaa); font-size:15px; }
.uc-logout{ color:#e5484d; }
/* ⑳ 08-29 参考 WorkBuddy 设置页对齐：分组头 + 版本footer */
.uc-group{ padding:13px 16px 5px; font-size:12.5px; font-weight:600; color:var(--sub,#6b7280);
  background:var(--card,#fff); border-bottom:1px solid var(--border,#eee); }
.uc-footer{ margin:14px 16px 8px; text-align:center; font-size:12px; color:var(--sub,#9ca3af); line-height:1.7; }

/* ===== 老板08-28 扫一扫 / 扫码登录确认（scan.js） ===== */
.sc-body{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; padding:8px 6px 20px; }
.sc-ico{ font-size:42px; line-height:1.2; margin-top:10px; }
.sc-title{ font-size:17px; font-weight:700; color:var(--text,#1f2933); }
.sc-desc{ font-size:13.5px; color:var(--sub,#6b7280); line-height:1.7; max-width:280px; }
.sc-warn{ font-size:12.5px; color:#e5a000; background:rgba(229,160,0,.12);
  padding:9px 12px; border-radius:10px; line-height:1.6; max-width:280px; }
.sc-video{ width:100%; max-width:280px; aspect-ratio:1; object-fit:cover; border-radius:12px; background:#000; }
/* v1.1.2 ⑥ 满窗扫码：只作用扫码 sheet（#asdScanSheet），使其撑满全屏 + 取景铺满，参照微信满窗扫码；不共用 .com-sheet 的其他商业弹层不受影响 */
#asdScanSheet .com-panel{ width:100%; max-width:100%; max-height:100vh; min-height:100%; border-radius:0; padding:0; overflow:hidden; }
#asdScanSheet .sc-body{ padding:0; gap:0; max-width:none; justify-content:flex-start; }
#asdScanSheet .sc-title{ margin-top:14px; padding:0 16px; }
#asdScanSheet .sc-video{ width:100%; max-width:none; aspect-ratio:auto; flex:1 1 auto; min-height:58vh; object-fit:cover; border-radius:0; }
#asdScanSheet .sc-desc{ padding:10px 16px; max-width:none; }
#asdScanSheet .sc-ghost{ margin:0 16px 8px; width:auto; max-width:280px; }
/* v1.1.2 ⑰ 充值满屏：同满窗扫码法，让 #comBilling 充值/订阅页撑满全屏（参照 WorkBuddy 定价满屏页，非底部小弹窗）。只作用充值 sheet，其他 .com-sheet 商业弹层不受影响 */
#comBilling .com-panel{ width:100%; max-width:100%; max-height:100vh; min-height:100%; border-radius:0; padding:16px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y:auto; }
#comBilling .com-head{ border-bottom:none; padding-bottom:6px; }
#comBilling .com-head b{ font-size:20px; font-weight:800; }
/* v1.1.2 ⑮ 插件广场弹窗(老板验收025727/032150) + ① 商业弹层一屏：加高面板 + 顶部留白，避免弹满屏/内容截断；只作用插件与资产弹层 */
#comPlugins .com-panel, #comWorks .com-panel{ max-height:92vh; padding-top:20px; width:min(480px,100%); }
#comPlugins .com-tip, #comWorks .com-tip{ padding-top:2px; }
.sc-primary{
  width:100%; max-width:280px; height:46px; border:none; border-radius:12px; cursor:pointer;
  background:var(--accent,#007AFF); color:#fff; -webkit-text-fill-color:#fff;
  font-size:16px; font-weight:700; margin-top:6px;
}
.sc-primary:active{ opacity:.85; }
.sc-ghost{
  width:100%; max-width:280px; height:40px; border:1px solid var(--border,#e3e8ef); border-radius:12px;
  background:transparent; color:var(--sub,#6b7280); font-size:14px;
}
.sc-ghost:active{ background:var(--bar-bg,#eef2f6); }

/* ===== 老板08-27 九改：抽屉最底 = 登录态（未登录钮 / 已登录头像+积分） =====
   .assist-points 原样式(assist.css:86)带 margin-top:auto 把整块顶到底部，沿用。 */
/* 0914老板令:抽屉底部用户/积分块压半高+钉死底边 */
.assist-bottom{ margin-top:auto; padding:0 0 6px; border-top:1px solid var(--border,#e3e8ef); }              /* 整块顶到抽屉最底（原 .assist-points 的 margin-top:auto 上移到这里） */
.db-login{
  width:100%; box-sizing:border-box;
  border-top:1px solid var(--border,#e3e8ef);
  padding:8px 14px; font-size:13.5px; font-weight:600;
}
.db-user{ cursor:pointer; }
.db-user:active{ background:var(--bar-bg,#eef2f6); }
.db-user .ap-ico{
  width:26px; height:26px; flex-shrink:0; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center; font-size:13px;
  background:var(--bar-bg,#eef2f6);
}
.db-user .ap-ico.db-avatar-letter{        /* 账号首字母当头像 */
  background:var(--accent,#007AFF); color:#fff; -webkit-text-fill-color:#fff;
  font-weight:700; font-size:16px;
}
.db-meta{ display:flex; flex-direction:column; gap:1px; flex:1; min-width:0; }
.db-name{
  font-size:13px; font-weight:700; color:var(--text,#1f2933);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.db-sub{ font-size:11px; color:var(--sub,#6b7280); }
.db-sub i{ font-style:normal; font-weight:700; color:var(--accent,#007AFF); }
.db-arrow{ font-size:18px; color:var(--sub,#6b7280); flex-shrink:0; }

/* ===== 发布 + 我的发布（publish.js，2026-08-28） =====
   管理后台分工：发布入口+我的发布=牛牛；独立后台+审核队列后端=跃界。
   复用登录弹窗 da-card/da-field/da-inp/da-submit；dp-* 为发布专用。 */
.dp-form{ display:flex; flex-direction:column; gap:12px; padding:6px 4px 4px; }
.dp-ta{ resize:none; min-height:64px; line-height:1.5; }
.da-note{ font-size:12px; color:var(--sub,#6b7280); line-height:1.6; margin:2px 0 0; }
.dp-toolbar{ display:flex; gap:10px; padding:4px 0 10px; align-items:center; justify-content:space-between; }
.dp-tool{ font-size:13px; color:var(--accent,#007AFF); background:none; border:0; padding:4px 6px; cursor:pointer; }
.dp-list{ display:flex; flex-direction:column; gap:10px; max-height:60vh; overflow:auto; padding:2px 2px 6px; }
.dp-loading,.dp-empty{ text-align:center; color:var(--sub,#6b7280); font-size:13px; padding:26px 0; }
.dp-item{ display:flex; align-items:flex-start; gap:10px; padding:12px; border-radius:14px;
  background:var(--card,#fff); border:1px solid var(--line,#eee); }
.dp-item-main{ flex:1; min-width:0; }
.dp-item-title{ font-size:15px; font-weight:600; color:var(--ink,#111); }
.dp-item-meta{ font-size:12px; color:var(--sub,#6b7280); margin-top:3px; }
.dp-item-media{ font-size:12px; margin-top:3px; }
.dp-item-media a{ color:var(--accent,#007AFF); text-decoration:none; }
.dp-item-desc{ font-size:13px; color:var(--sub,#4b5563); margin-top:6px; line-height:1.5; }
.dp-chip{ flex-shrink:0; font-size:12px; font-weight:600; padding:5px 9px; border-radius:999px; white-space:nowrap;
  display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.dp-chip-sub{ font-size:11px; font-weight:400; color:var(--sub,#6b7280); text-align:right; white-space:normal; max-width:150px; }
.st-audit{ background:#f3f4f6; color:#6b7280; }
.st-audit-pass{ background:#e8f1ff; color:#1677ff; }
.st-audit-deny{ background:#fff4e6; color:#e6862c; }
.st-approved{ background:#e7f7ec; color:#18a058; }
.st-rejected{ background:#fdecec; color:#e5484d; }

/* ===== 老板08-29 定案⑤ 取消底部导航栏 → 首页 ☰ 折叠导航抽屉 + 左下返回键 ===== */
/* 遮罩: 打开抽屉时压暗整屏, 点击关闭 */
.ov-mask{
  position:fixed;inset:0;z-index:980;background:rgba(0,0,0,.4);
}
/* 抽屉: 左侧滑出面板, 优先贴合 app 宽度/左右均匀 */
.ov-menu{
  position:fixed;top:0;bottom:0;left:0;width:min(300px,76vw);z-index:990;
  background:var(--bg,#fff);box-shadow:0 0 30px rgba(0,0,0,.25);
  padding-top:calc(env(safe-area-inset-top,0px) + 20px);
  padding-bottom:calc(env(safe-area-inset-bottom,0px) + 16px);
  display:flex;flex-direction:column;gap:4px;
  animation:ov-slide .18s ease-out;
}
@keyframes ov-slide{from{transform:translateX(-100%)}to{transform:translateX(0)}}
.ov-menu-item{
  display:flex;align-items:center;gap:12px;width:calc(100% - 28px);margin:2px 14px;
  padding:14px 12px;border:none;border-radius:12px;background:none;text-align:left;
  font-size:16px;font-weight:500;color:var(--text,#333);cursor:pointer;
}
.ov-menu-item:active{background:var(--accent-bg-light,rgba(0,122,255,.1))}
.ov-ico{font-size:18px}
/* 返回键: 所有屏都显示, 仅首页(at-home)隐藏 —— host.css 在 mobile.css 之后, 覆盖其 no-tab 规则 */
body.at-home .float-back{opacity:0 !important;pointer-events:none !important;}
