/* ==========================================================================
   智渔汇 · 晨雾溪石（Alpine Mist）苹果级垂直渔具多模型工作台设计系统
   基于 Google Stitch taste-design 视觉规范落地，加载于全站样式表最末尾。
   品牌名：智渔汇 ｜ 吉祥物与唯一私人助理：鱼摆摆
   核心原则：最多 1 个低饱和度核心强调色、无纯黑 rgb(0 0 0)、1px 发丝边框、
            苹果原生字体栈 + 等宽数字 tabular-nums、柔和层级与呼吸留白。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 全局视觉令牌（默认浅色：晨雾溪石 Alpine Mist）
   -------------------------------------------------------------------------- */
:root {
  /* 优先命中苹果苹方与思源黑体可变字重（Noto Sans SC 支持 450/500/550/600 连续平滑字重，告别 Windows 雅黑 400 过瘦断层） */
  --wb-font: "PingFang SC", "Noto Sans SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wb-mono: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wb-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 三层极简无彩中性材质（严格对齐标杆桌面：冷灰一体壳 rgb(245 245 245) + 整块纯净白画布 rgb(255 255 255)） */
  --wb-backdrop: rgb(245 245 245);
  --wb-canvas: rgb(255 255 255);
  --wb-chrome: rgb(245 245 245);
  --wb-sidebar: rgb(255 255 255);
  --wb-subtle: rgb(244 245 247);
  --wb-hover: rgb(238 240 244);

  /* 高对比度沉稳深炭墨色文字阶梯与利落发丝边界（告别发浅发灰） */
  --wb-ink: rgb(12 14 18);
  --wb-ink-2: rgb(28 31 38);
  --wb-muted: rgb(62 67 78);
  --wb-faint: rgb(98 104 116);
  --wb-line: rgba(15, 23, 42, 0.095);
  --wb-line-strong: rgba(15, 23, 42, 0.18);

  /* 极致克制主强调色：沉稳高级炭黑（告别一切花哨渐变与塑料蓝绿发光） */
  --wb-accent: rgb(24 24 27);
  --wb-accent-2: rgb(39 39 42);
  --wb-accent-hover: rgb(52 52 58);
  --wb-accent-soft: rgb(235 236 238);
  --wb-accent-text: rgb(255 255 255);
  --wb-brand-grad: rgb(24 24 27);
  --wb-stage-glow: none;
  --wb-badge-bg: rgb(242 243 245);
  --wb-badge-ink: rgb(39 39 42);

  /* 气泡与操作控件（纯净高级中性灰白体系） */
  --wb-cta-dark: rgb(24 24 27);
  --wb-cta-dark-ink: rgb(255 255 255);
  --wb-user-bubble: rgb(238 240 242);
  --wb-user-bubble-border: rgba(0, 0, 0, 0.05);
  --wb-user-bubble-ink: rgb(24 24 27);
  --wb-user-bubble-muted: rgba(24, 24, 27, 0.45);
  --wb-ai-bubble: rgb(246 246 247);
  --wb-ai-bubble-border: rgba(0, 0, 0, 0.045);

  /* 语义色 */
  --wb-image: rgb(33 95 135);
  --wb-image-soft: rgb(237 244 250);
  --wb-video: rgb(154 91 37);
  --wb-video-soft: rgb(253 244 235);
  --wb-danger: rgb(194 65 59);
  --wb-danger-soft: rgba(194, 65, 59, 0.09);

  /* 运营后台深炭海湾侧栏 */
  --wb-dock: rgb(29 35 42);
  --wb-dock-ink: rgb(203 212 222);
  --wb-dock-hover: rgba(255, 255, 255, 0.08);
  --wb-dock-selected: rgba(27, 107, 99, 0.34);
  --wb-dock-mark: rgb(105 194 182);

  /* 圆角与克制投影 */
  --wb-control-radius: 9px;
  --wb-panel-radius: 14px;
  --wb-modal-radius: 18px;
  --wb-overlay-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(27, 31, 36, 0.08);
  --wb-float-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.11), 0 0 0 1px rgba(27, 31, 36, 0.075);
  --wb-modal-shadow: 0 32px 80px -16px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(27, 31, 36, 0.10);

  /* 52 周热力图 5 阶青绿 */
  --wb-heat-0: rgb(236 239 242);
  --wb-heat-1: rgb(196 224 220);
  --wb-heat-2: rgb(123 183 175);
  --wb-heat-3: rgb(61 141 132);
  --wb-alpine-water: rgb(27 107 99);
  --wb-heat-4: var(--wb-alpine-water);

  /* 同步映射到全站历史变量，保证无视觉断层 */
  --yb-paper: var(--wb-canvas);
  --yb-canvas: var(--wb-chrome);
  --yb-ink: var(--wb-ink);
  --yb-ink-2: var(--wb-ink-2);
  --yb-ink-3: var(--wb-muted);
  --yb-muted: var(--wb-muted);
  --yb-faint: var(--wb-faint);
  --yb-line: var(--wb-line);
  --yb-line-strong: var(--wb-line-strong);
  --yb-water: var(--wb-accent);
  --yb-water-2: var(--wb-accent-hover);
  --yb-water-soft: var(--wb-accent-soft);
  --yb-water-mist: var(--wb-subtle);
  --yb-danger: var(--wb-danger);
  --xy-green: var(--wb-accent);
  --xy-green-dark: var(--wb-accent-hover);
  --xy-mint: var(--wb-subtle);
  --green: var(--wb-accent);
  --green-soft: var(--wb-accent-soft);
  --paper: var(--wb-canvas);
  --ink: var(--wb-ink);
  --muted: var(--wb-muted);
  --line: var(--wb-line);
}

/* --------------------------------------------------------------------------
   2. 默认深色模式：碳素深潭（Carbon Abyss · 苹果 Pro 暗色工作站）
   -------------------------------------------------------------------------- */
html[data-yb-theme="dark"] {
  --wb-backdrop: rgb(18 18 20);
  --wb-canvas: rgb(24 24 27);
  --wb-chrome: rgb(18 18 20);
  --wb-sidebar: rgb(24 24 27);
  --wb-subtle: rgb(34 34 38);
  --wb-hover: rgba(255, 255, 255, 0.06);

  --wb-ink: rgb(244 244 245);
  --wb-ink-2: rgb(212 212 216);
  --wb-muted: rgb(154 154 164);
  --wb-faint: rgb(113 113 122);
  --wb-line: rgba(255, 255, 255, 0.08);
  --wb-line-strong: rgba(255, 255, 255, 0.15);

  /* 暗夜极简纯白中性强调 */
  --wb-accent: rgb(244 244 245);
  --wb-accent-2: rgb(228 228 231);
  --wb-accent-hover: rgb(224 224 228);
  --wb-accent-soft: rgba(255, 255, 255, 0.10);
  --wb-accent-text: rgb(20 20 22);
  --wb-brand-grad: rgb(244 244 245);
  --wb-stage-glow: none;
  --wb-badge-bg: rgba(255, 255, 255, 0.08);
  --wb-badge-ink: rgb(244 244 245);

  --wb-cta-dark: rgb(244 244 245);
  --wb-cta-dark-ink: rgb(20 20 22);
  --wb-user-bubble: rgb(42 42 48);
  --wb-user-bubble-border: rgba(255, 255, 255, 0.08);
  --wb-user-bubble-ink: rgb(244 244 245);
  --wb-user-bubble-muted: rgba(244, 244, 245, 0.5);
  --wb-ai-bubble: rgb(32 32 36);
  --wb-ai-bubble-border: rgba(255, 255, 255, 0.06);

  --wb-danger: rgb(224 108 101);
  --wb-danger-soft: rgba(224, 108, 101, 0.14);

  --wb-dock: rgb(16 19 24);
  --wb-dock-ink: rgb(183 192 204);
  --wb-dock-hover: rgba(255, 255, 255, 0.07);
  --wb-dock-selected: rgba(198, 149, 83, 0.22);
  --wb-dock-mark: rgb(223 183 126);

  --wb-overlay-shadow: 0 16px 42px -10px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.09);
  --wb-float-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 255, 255, 0.09);
  --wb-modal-shadow: 0 36px 90px -12px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.11);

  --wb-heat-0: rgb(35 40 49);
  --wb-heat-1: rgb(74 61 41);
  --wb-heat-2: rgb(117 91 54);
  --wb-heat-3: rgb(163 123 69);
  --wb-heat-4: rgb(198 149 83);
}

/* 晴澜暖瓷（River Porcelain）主题包联动 */
html[data-library-theme-pack="river-porcelain"]:not([data-yb-theme="dark"]) {
  --wb-sidebar: rgb(249 247 243);
  --wb-badge-bg: rgb(235 242 248);
  --wb-badge-ink: rgb(39 93 138);
  --wb-user-bubble: rgb(39 93 138);
  --wb-user-bubble-ink: rgb(255 255 255);
  --wb-ai-bubble: rgb(247 244 238);
  --wb-heat-0: rgb(237 233 226);
  --wb-heat-1: rgb(198 217 233);
  --wb-heat-2: rgb(136 176 208);
  --wb-heat-3: rgb(78 131 174);
  --wb-heat-4: rgb(39 93 138);
}

/* --------------------------------------------------------------------------
   3. 字体排版与基础物理手感
   -------------------------------------------------------------------------- */
html, body {
  font-family: var(--wb-font);
  font-size: 14.5px;
  font-weight: 490;
  color: var(--wb-ink);
  font-synthesis: weight style;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

button, input, textarea, select {
  font-family: var(--wb-font);
}

body #app :is(.daily-message-body, .xiaoyu-concierge-copy > p, .workbench-chat-bubble, .daily-composer > textarea) {
  color: var(--wb-ink);
  font-size: 15px;
  font-weight: 495;
  line-height: 1.66;
  letter-spacing: 0.01em;
}

body #app :is(strong, h1, h2, h3, .daily-message-label > strong, .xiaoyu-concierge-copy > strong) {
  font-weight: 680;
  color: var(--wb-ink);
}

body #app :is(.xiaoyu-concierge-option, .zyh-ask-chip, .model-picker-trigger, .ref-context-action, .ref-top-action, .yb-inspiration-btn) {
  color: var(--wb-ink);
  font-weight: 560;
}

body #app .daily-chat .conversation-model-picker .model-picker-trigger {
  color: var(--wb-ink);
  font-weight: 580;
}

:where(time, kbd, code, .mono, .social-room-time, .workbench-chat-message-time, .ds-metric-val, .ds-quota-val strong, .ds-subscription-balance > strong, .op-summary dd, .op-table td) {
  font-variant-numeric: tabular-nums;
}

:where(code, kbd, [data-public-id], .ds-public-id-code) {
  font-family: var(--wb-mono);
}

#app .button {
  border-radius: var(--wb-control-radius);
  font-weight: 550;
  letter-spacing: -0.005em;
  transition: transform 130ms var(--wb-ease), background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

#app .button:not(:disabled):active {
  transform: scale(0.98);
}

#app .button.primary {
  background: var(--wb-accent);
  border-color: var(--wb-accent);
  color: var(--wb-accent-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

#app .button.primary:hover:not(:disabled) {
  background: var(--wb-accent-hover);
  border-color: var(--wb-accent-hover);
}

#app .button.secondary {
  background: var(--wb-canvas);
  border-color: var(--wb-line-strong);
  color: var(--wb-ink);
}

#app .button.secondary:hover:not(:disabled) {
  background: var(--wb-subtle);
  border-color: var(--wb-line-strong);
}

#app .button.quiet {
  color: var(--wb-muted);
}

#app .button.quiet:hover:not(:disabled) {
  background: var(--wb-hover);
  color: var(--wb-ink);
}

#app :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea):focus {
  border-color: var(--wb-accent);
  box-shadow: 0 0 0 3px var(--wb-accent-soft);
}

/* --------------------------------------------------------------------------
   4. 登录页与受邀注册页（苹果晨雾溪石极简落地体验）
   -------------------------------------------------------------------------- */
#app > :is(.login-page, .welcome-registration) {
  background:
    radial-gradient(ellipse 68% 52% at 18% 12%, rgba(27, 107, 99, 0.09) 0%, transparent 62%),
    radial-gradient(ellipse 52% 44% at 84% 88%, rgba(27, 107, 99, 0.06) 0%, transparent 64%),
    var(--wb-chrome);
  color: var(--wb-ink);
}

html[data-yb-theme="dark"] #app > :is(.login-page, .welcome-registration) {
  background:
    radial-gradient(ellipse 68% 52% at 18% 12%, rgba(198, 149, 83, 0.10) 0%, transparent 62%),
    var(--wb-chrome);
}

#app > .login-page .login-brand,
#app :is(.login-brand, .login-intro h1, .welcome-registration-intro h1) {
  color: var(--wb-ink);
  font-weight: 680;
  letter-spacing: -0.025em;
}

#app :is(.login-intro h1, .welcome-registration-intro h1) {
  letter-spacing: -0.03em;
}

#app :is(.login-intro > p, .welcome-registration-intro > p) {
  color: var(--wb-muted);
}

#app .login-capabilities > span {
  color: var(--wb-ink-2);
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

#app .login-page .login-capabilities svg {
  color: var(--wb-accent);
}

#app :is(.login-panel, .welcome-registration-form) {
  background: var(--wb-canvas);
  color: var(--wb-ink);
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-modal-radius);
  box-shadow: var(--wb-modal-shadow);
}

#app > .login-page .login-panel {
  border-color: var(--wb-line-strong);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.065);
}

html[data-yb-theme="dark"] #app > .login-page .login-panel {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

#app :is(.login-panel, .welcome-registration-form) h2 {
  color: var(--wb-ink);
  font-weight: 650;
  letter-spacing: -0.02em;
}

#app :is(.login-panel, .welcome-registration-form) .muted,
#app :is(.login-panel, .welcome-registration-form) .fine-print {
  color: var(--wb-muted);
}

#app :is(.login-panel, .welcome-registration-form) .field input:not([type="checkbox"]):not([type="radio"]) {
  border-radius: var(--wb-control-radius);
  border-color: var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink);
}

#app :is(.login-panel, .welcome-registration-form) .desktop-legal-links a {
  color: var(--wb-accent);
}

/* --------------------------------------------------------------------------
   5. 三层极简桌面工作台外壳（左轨 + 二级侧栏 + 纯白画布）
   -------------------------------------------------------------------------- */
body.reference-mode,
.reference-mode :is(.ref-application, .ref-chat-shell) {
  background: var(--wb-chrome);
}

body.reference-mode #app nav.ref-rail,
html[data-yb-sidebar-tint] body.reference-mode #app nav.ref-rail {
  --rail-bg: var(--wb-chrome);
  --rail-fg: rgb(102 112 124);
  --rail-over: rgba(27, 31, 36, 0.055);
  --rail-selected: var(--wb-canvas);
  --rail-active: var(--wb-accent);
  width: 58px;
  padding: 12px 0 12px;
  gap: 5px;
  align-items: center;
  background: var(--wb-chrome);
  border-inline-end: 1px solid var(--wb-line);
}

.reference-mode .social-app.ref-chat-shell {
  grid-template-columns: 58px var(--ref-sidebar-width, 256px) minmax(0, 1fr);
}

html[data-yb-theme="dark"] body.reference-mode #app nav.ref-rail,
html[data-yb-theme="dark"][data-yb-sidebar-tint] body.reference-mode #app nav.ref-rail {
  --rail-fg: rgb(142 152 166);
  --rail-over: rgba(255, 255, 255, 0.065);
  --rail-selected: rgb(32 37 47);
}

body.reference-mode #app .ref-rail .ref-rail-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--rail-fg);
  background: transparent;
  box-shadow: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 120ms var(--wb-ease);
}

body.reference-mode #app .ref-rail .ref-rail-button svg {
  width: 18.5px;
  height: 18.5px;
  stroke-width: 1.55;
}

body.reference-mode #app .ref-rail .ref-rail-button:hover {
  background: var(--rail-over);
  color: var(--wb-ink);
}

body.reference-mode #app .ref-rail .ref-rail-button:active {
  transform: scale(0.94);
}

/* 利落激活态：洁净微浮卡 + 左侧 3px 苹果/Linear 风格深涧青绿指示条 */
body.reference-mode #app .ref-rail .ref-rail-button.active {
  background: var(--rail-selected);
  color: var(--wb-accent);
  border-color: rgba(27, 31, 36, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.reference-mode #app .ref-rail .ref-rail-button.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  border-radius: 0 3px 3px 0;
  background: var(--wb-accent);
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button.active {
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.42);
}

/* 精致短分割线 */
body.reference-mode #app .ref-rail .ref-rail-divider {
  width: 22px;
  height: 1px;
  margin: 5px 0;
  background: var(--wb-line-strong);
  opacity: 0.72;
}

/* 中段 4 枚专属「智渔汇 App Dock 徽章槽」：吉祥物鱼摆摆 / AI 协作 / 商品图 / 宣传视频 */
body.reference-mode #app .ref-rail .ref-brand {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 1px 0;
  padding: 0;
  border-radius: 11px;
  background: rgb(255 255 255);
  border: 1px solid rgba(27, 107, 99, 0.16);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 140ms var(--wb-ease), box-shadow 140ms ease, border-color 140ms ease;
}

body.reference-mode #app .ref-rail .ref-brand img,
body.reference-mode #app .ref-rail .ref-brand .xiaoyu-pet {
  width: 27px;
  height: 27px;
  object-fit: contain;
  display: block;
}

body.reference-mode #app .ref-rail .ref-brand:hover {
  transform: translateY(-1px);
  border-color: rgba(27, 107, 99, 0.34);
  box-shadow: 0 4px 10px -4px rgba(27, 107, 99, 0.24);
}

body.reference-mode #app .ref-rail .ref-brand[aria-current="page"] {
  background: rgb(255 255 255);
  border-color: var(--wb-accent);
  box-shadow: 0 0 0 2px var(--wb-accent-soft), 0 2px 6px rgba(27, 107, 99, 0.16);
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-brand {
  background: rgb(30 36 45);
  border-color: rgba(198, 149, 83, 0.26);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.36);
}

/* AI 好友、商品图片、宣传视频（中段快捷槽收束为统一洁净白底 + 柔和品牌语义点缀，告别杂色拼贴感） */
body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="agent"],
body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="image"],
body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="film"] {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 10px;
  background: var(--wb-canvas);
  border-color: var(--wb-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="agent"] {
  color: rgb(27 107 99);
}

body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="agent"]:hover {
  transform: translateY(-1px);
  background: rgb(237 245 244);
  border-color: rgba(27, 107, 99, 0.24);
  color: rgb(20 84 77);
}

body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="agent"].active {
  background: rgb(27 107 99);
  color: rgb(255 255 255);
  border-color: rgb(27 107 99);
}

body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="image"] {
  color: rgb(33 95 135);
}

body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="image"]:hover {
  transform: translateY(-1px);
  background: rgb(238 245 251);
  border-color: rgba(33, 95, 135, 0.24);
  color: rgb(26 78 112);
}

body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="image"].active {
  background: rgb(33 95 135);
  color: rgb(255 255 255);
  border-color: rgb(33 95 135);
}

body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="film"] {
  color: rgb(154 91 37);
}

body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="film"]:hover {
  transform: translateY(-1px);
  background: rgb(247 233 215);
  border-color: rgba(154, 91, 37, 0.28);
  color: rgb(125 72 27);
}

body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="film"].active {
  background: rgb(154 91 37);
  color: rgb(255 255 255);
  border-color: rgb(154 91 37);
}

/* 深色模式下的 3 枚微透暗彩 App Dock 徽章槽 */
html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="agent"] {
  background: rgba(198, 149, 83, 0.14);
  border-color: rgba(198, 149, 83, 0.24);
  color: rgb(223 183 126);
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="image"] {
  background: rgba(114, 173, 224, 0.14);
  border-color: rgba(114, 173, 224, 0.24);
  color: rgb(143 194 238);
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="film"] {
  background: rgba(224, 168, 108, 0.14);
  border-color: rgba(224, 168, 108, 0.24);
  color: rgb(232 185 130);
}

/* 底部 3 枚低存在感工具按钮（帮助 / 深浅切换 / 设置） */
body.reference-mode #app .ref-rail :is(.ref-rail-button[data-rail-glyph="help"], .ref-rail-theme, .ref-rail-button[data-rail-glyph="settings"]) {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 9px;
  color: rgb(123 133 145);
}

body.reference-mode #app .ref-rail :is(.ref-rail-button[data-rail-glyph="help"], .ref-rail-theme, .ref-rail-button[data-rail-glyph="settings"]) svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.5;
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-rail :is(.ref-rail-button[data-rail-glyph="help"], .ref-rail-theme, .ref-rail-button[data-rail-glyph="settings"]) {
  color: rgb(125 135 148);
}

/* 最底部纯正圆头像：彻底去除旧方框露四角，配精致白环与在线深涧青绿点 */
body.reference-mode #app .ref-rail .ref-account-menu {
  margin-top: 4px;
}

body.reference-mode #app .ref-rail .ref-account-menu > summary {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 0;
}

body.reference-mode #app .ref-rail .ref-account-menu > summary:hover {
  background: var(--rail-over);
}

body.reference-mode #app .ref-rail .ref-account-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--wb-canvas);
  border: 1.5px solid var(--wb-canvas);
  box-shadow: 0 0 0 1px rgba(27, 31, 36, 0.12), 0 2px 5px rgba(15, 23, 42, 0.08);
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-account-avatar {
  border-color: var(--wb-chrome);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

body.reference-mode #app .ref-rail .ref-account-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

body.reference-mode #app .ref-rail .ref-account-menu > summary::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wb-accent);
  border: 1.5px solid var(--wb-chrome);
  pointer-events: none;
  display: block;
}

/* 二级侧栏使用微浅晨雾白，与左轨(rgb(243 244 246))和主画布(rgb(255 255 255))自然分层 */
body.reference-mode #app aside.ref-sidebar,
html[data-yb-sidebar-tint] body.reference-mode #app aside.ref-sidebar {
  background: var(--wb-sidebar);
  border-inline-end: 1px solid var(--wb-line);
}

.reference-mode .ref-sidebar-top > .ref-search {
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line);
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.reference-mode .ref-sidebar-top > .ref-search:focus-within {
  border-color: var(--wb-accent);
  box-shadow: 0 0 0 3px var(--wb-accent-soft);
}

/* 侧栏顶部「创建智能体」主操作按钮（浅色高级深炭、深色柔和炭金描边） */
.reference-mode .ref-sidebar :is(.ref-sidebar-primary-create, .social-sidebar-create-btn) {
  background: var(--wb-cta-dark);
  color: var(--wb-cta-dark-ink);
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 560;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.24);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms var(--wb-ease);
}

.reference-mode .ref-sidebar :is(.ref-sidebar-primary-create, .social-sidebar-create-btn):hover {
  background: var(--wb-accent);
  color: var(--wb-accent-text);
}

html[data-yb-theme="dark"] .reference-mode .ref-sidebar :is(.ref-sidebar-primary-create, .social-sidebar-create-btn) {
  background: rgb(34 39 49);
  color: rgb(239 242 246);
  border: 1px solid rgba(198, 149, 83, 0.34);
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.45);
}

html[data-yb-theme="dark"] .reference-mode .ref-sidebar :is(.ref-sidebar-primary-create, .social-sidebar-create-btn):hover {
  background: var(--wb-accent);
  color: var(--wb-accent-text);
  border-color: var(--wb-accent);
}

.reference-mode .ref-sidebar :is(.social-room, .ref-history-item, .ref-assistant-entry) {
  border-radius: 10px;
}

.reference-mode .ref-sidebar :is(.social-room, .ref-history-item, .ref-assistant-entry):hover {
  background: var(--wb-hover);
}

.reference-mode .ref-sidebar :is(.social-room, .ref-history-item, .ref-assistant-entry).active,
html:not([data-yb-theme="dark"]) .reference-mode .ref-sidebar[data-reference-mode] .ref-conversations > .social-room.active {
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 0 0 1px var(--wb-line);
}

html[data-yb-theme="dark"] .reference-mode .ref-sidebar :is(.social-room, .ref-history-item, .ref-assistant-entry).active {
  background: var(--wb-subtle);
  color: var(--wb-ink);
  box-shadow: 0 0 0 1px var(--wb-line);
}

.reference-mode .ref-sidebar :is(.social-room, .ref-history-item).active::before {
  background: var(--wb-accent);
  width: 2.5px;
  top: 22%;
  bottom: 22%;
}

.reference-mode :is(.ref-application, .ref-chat-shell) > :is(.app-workspace, .social-main) {
  background: var(--wb-canvas);
  border-radius: 0;
}

.reference-mode :is(.ref-topbar, .social-chat-head) {
  background: var(--wb-canvas);
  border-bottom: 1px solid var(--wb-line);
}

/* --------------------------------------------------------------------------
   6. 多模型群聊与私人助理对话区（第一套方案一标志性左右气泡对比）
   -------------------------------------------------------------------------- */
#app .ref-chat-shell .social-chat,
#app .social-chat {
  --chat-transcript-fill: var(--wb-canvas);
  --chat-bubble-fill: var(--wb-ai-bubble);
  --social-incoming-fill: var(--wb-ai-bubble);
  --chat-outgoing-fill: var(--wb-user-bubble);
  --social-outgoing-fill: var(--wb-user-bubble);
  --social-bubble-radius: 16px;
  --social-bubble-side-radius: 5px;
  --social-composer-radius: 16px;
}

#app .ref-chat-shell .social-chat-center,
#app .social-chat-body {
  background: var(--wb-canvas);
}

/* 聊天字号变量：完整响应小 / 标准 / 大字设置，同步作用于收发消息与输入区 */
:root {
  --wb-chat-font-size: 14.5px;
}

html[data-desktop-font="small"] {
  --wb-chat-font-size: 13px;
}

html[data-desktop-font="large"] {
  --wb-chat-font-size: 17px;
}

/* AI 与他人回复气泡（左）：超轻盈雪雾灰 + 若隐若现发丝描边 + 舒展大圆角 */
html body .social-chat .social-message:not(.mine) .social-bubble,
html body #app .assistant-workspace .daily-chat .daily-message.assistant .daily-message-content .daily-message-text,
html body #app .daily-chat .daily-message:not(.user) .daily-message-text,
html body #app .daily-chat .xiaoyu-concierge-turn .workbench-chat-bubble:not(.workbench-chat-outgoing),
html body #app .room-workspace .room-message:not(.room-message-user) .room-message-text,
html body #app .chat-layout .workbench-chat-messages .message.assistant .workbench-chat-bubble {
  --chat-bubble-fill: var(--wb-ai-bubble);
  padding: 12px 16px 11px;
  border: 1px solid var(--wb-ai-bubble-border);
  border-radius: 18px 18px 18px 6px;
  background: var(--wb-ai-bubble);
  color: var(--wb-ink);
  font-size: var(--wb-chat-font-size);
  line-height: 1.72;
  box-shadow: 0 2px 10px -6px rgba(15, 23, 42, 0.07);
  transition: box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

html body .social-chat .social-message:not(.mine) .social-bubble:hover,
html body #app .assistant-workspace .daily-chat .daily-message.assistant .daily-message-content .daily-message-text:hover {
  border-color: rgba(27, 31, 36, 0.095);
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.11);
}

html body .social-chat .social-message.mine .social-bubble,
html body .social-chat .social-message .social-bubble .social-message-copy,
#app .daily-chat .daily-message .daily-message-text,
#app .social-composer textarea,
#app .daily-composer textarea {
  font-size: var(--wb-chat-font-size);
}

/* 用户自己发言气泡（右）：清岚水韵柔雾浅气泡 + 深潭墨字，通透雅致无黑砖压迫感 */
html body .social-chat .social-message.mine .social-bubble,
html body #app .assistant-workspace .daily-chat .daily-message.user .daily-message-content .daily-message-text,
html body #app .daily-chat .daily-message.user .daily-message-text,
#app .room-workspace .room-message-user .room-message-text,
#app .workbench-chat-bubble.workbench-chat-outgoing {
  --chat-outgoing-fill: var(--wb-user-bubble);
  padding: 11px 16px 10px;
  border: 1px solid var(--wb-user-bubble-border);
  border-radius: 18px 18px 6px 18px;
  background: var(--wb-user-bubble);
  color: var(--wb-user-bubble-ink);
  line-height: 1.66;
  box-shadow: 0 2px 10px -5px rgba(27, 107, 99, 0.14);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

html body .social-chat .social-message.mine .social-bubble:hover,
html body #app .assistant-workspace .daily-chat .daily-message.user .daily-message-content .daily-message-text:hover {
  border-color: rgba(27, 107, 99, 0.22);
  box-shadow: 0 6px 18px -10px rgba(27, 107, 99, 0.18);
}

/* 严格保障右气泡内部所有子元素的高可读对比度 */
body .social-chat .social-message.mine .social-bubble :where(p, strong, li, span, .social-message-copy, .yb-md-h, .yb-md-p),
#app .daily-chat .daily-message.user .daily-message-text :where(p, strong, li, span),
#app .workbench-chat-bubble.workbench-chat-outgoing :where(p, strong, li, span) {
  color: var(--wb-user-bubble-ink) !important;
}

body .social-chat .social-message.mine .social-bubble :where(time, .workbench-chat-message-time, small, .social-message-reference) {
  color: var(--wb-user-bubble-muted) !important;
}

#app .daily-chat .daily-message.user .daily-message-text :where(time, .workbench-chat-message-time, small) {
  color: var(--wb-user-bubble-muted);
}

body .social-chat .social-message.mine .social-bubble .social-message-reference {
  border-inline-start-color: rgba(27, 107, 99, 0.36);
  background: rgba(27, 107, 99, 0.06);
}

body .social-chat .social-message.mine .social-bubble :where(a, .social-message-mention) {
  color: var(--wb-accent);
  text-decoration-color: rgba(27, 107, 99, 0.42);
}

body .social-chat .social-message.mine .social-bubble code {
  background: rgba(27, 107, 99, 0.09);
  color: var(--wb-accent-hover);
}

html[data-yb-theme="dark"] body .social-chat .social-message.mine .social-bubble :where(a, .social-message-mention) {
  color: rgb(141 224 213);
}

html[data-yb-theme="dark"] body .social-chat .social-message.mine .social-bubble code {
  background: rgba(255, 255, 255, 0.12);
  color: rgb(255 255 255);
}

/* 头像沉底对齐气泡底角（如顶级桌面 IM 般灵动自然） */
html body #app .daily-chat .daily-message-content {
  align-items: flex-end;
  gap: 10px;
}

html body #app .daily-chat .daily-message-avatar,
html body #app .daily-chat .daily-user-dot {
  align-self: flex-end;
  margin-bottom: 2px;
}

html body #app .social-chat .social-message {
  align-items: flex-end;
}

html body #app .social-chat .social-message > .social-avatar,
html body #app .social-chat .social-message > button.social-avatar {
  align-self: flex-end;
  margin-bottom: 3px;
}

/* AI 气泡首行彩色身份名 + 极淡副标签 */
html body #app .daily-chat .daily-message.assistant .daily-message-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 5px;
  line-height: 1.3;
}

html body #app .daily-chat .daily-message.assistant .daily-message-label strong {
  color: var(--wb-accent);
  font-size: 12.5px;
  font-weight: 640;
  letter-spacing: 0.01em;
}

html body #app .daily-chat .daily-message.assistant .daily-message-label::after {
  content: "我的智能体";
  font-size: 11px;
  font-weight: 400;
  color: var(--wb-faint);
}

/* 群聊中不同 AI 成员低饱和柔和区分色，一眼扫清谁在发言 */
body .social-chat .social-message:not(.mine):nth-of-type(4n + 1) .social-message-author > strong {
  color: rgb(27 107 99);
}

body .social-chat .social-message:not(.mine):nth-of-type(4n + 2) .social-message-author > strong {
  color: rgb(118 75 152);
}

body .social-chat .social-message:not(.mine):nth-of-type(4n + 3) .social-message-author > strong {
  color: rgb(156 96 42);
}

body .social-chat .social-message:not(.mine):nth-of-type(4n + 4) .social-message-author > strong {
  color: rgb(42 98 154);
}

/* 气泡底角嵌入式轻元数据：左侧耗时胶囊，右侧淡灰等宽时间 */
html body #app .daily-chat .daily-message .workbench-chat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 7px;
  padding-top: 2px;
}

html body #app .daily-chat .daily-message.user .workbench-chat-meta {
  justify-content: flex-end;
  margin-top: 4px;
  padding-top: 0;
}

html body #app .daily-chat .daily-message .workbench-chat-message-time,
html body #app .social-chat .social-message .workbench-chat-message-time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  opacity: 0.72;
}

html body #app .daily-chat .daily-message.assistant .gg-reply-timing > summary {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(27, 31, 36, 0.06);
  padding: 2px 8px;
  color: var(--wb-muted);
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

html body #app .daily-chat .daily-message.assistant .gg-reply-timing > summary:hover {
  background: var(--wb-canvas);
  border-color: rgba(27, 31, 36, 0.12);
  color: var(--wb-ink);
}

/* AI 回复头部模型与计费徽标 */
body .social-chat .social-message-author > strong {
  color: var(--wb-ink);
  font-weight: 620;
}

body .social-run {
  background: var(--wb-badge-bg);
  color: var(--wb-badge-ink);
  border: 1px solid var(--wb-line);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* 底部悬浮苹果级圆角输入框 */
#app :is(.social-composer, .daily-composer, .workbench-chat-composer) {
  border: 1px solid var(--wb-line-strong) !important;
  border-radius: 16px;
  background: var(--wb-canvas) !important;
  box-shadow: var(--wb-float-shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#app :is(.social-composer, .daily-composer, .workbench-chat-composer):focus-within {
  border-color: var(--wb-accent);
  box-shadow: 0 12px 30px -12px rgba(27, 107, 99, 0.22), 0 0 0 3px var(--wb-accent-soft);
}

#app :is(.social-send, .daily-send) {
  background: var(--wb-accent);
  color: var(--wb-accent-text);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

#app :is(.social-send, .daily-send):hover:not(:disabled) {
  background: var(--wb-accent-hover);
}

/* 强调色只给可操作按钮：未连接模型、不可用或空输入禁用时呈现清晰的低饱和禁用态 */
#app :is(.social-send, .daily-send):disabled,
#app :is(.social-send, .daily-send)[aria-disabled="true"] {
  background: var(--wb-subtle, rgb(238 240 243));
  color: var(--wb-muted, rgb(107 114 128));
  border: 1px solid var(--wb-line, rgb(226 230 236));
  box-shadow: none;
  opacity: 0.78;
  cursor: not-allowed;
}

html[data-yb-theme="dark"] #app :is(.social-send, .daily-send):disabled,
html[data-yb-theme="dark"] #app :is(.social-send, .daily-send)[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(235, 240, 246, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   7. 联系人公开 ID 名片 & 资源库集成中心
   -------------------------------------------------------------------------- */
.ref-contact-profile-summary {
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line);
  border-radius: 16px;
  box-shadow: var(--wb-float-shadow);
  padding: 22px 24px;
}

.ref-directory-row[aria-pressed="true"] {
  background: var(--wb-canvas);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 0 0 1px var(--wb-line);
}

.desktop-library {
  --dlb-ink: var(--wb-ink);
  --dlb-muted: var(--wb-muted);
  --dlb-line: var(--wb-line);
  --dlb-accent: var(--wb-accent);
}

.desktop-library .dlb-tab.selected,
.desktop-library .dlb-layout-button.selected {
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
}

.desktop-library .dlb-tab:hover,
.desktop-library .dlb-layout-button:hover {
  background: var(--wb-hover);
  color: var(--wb-ink);
}

.desktop-library :where(.dlb-card, .dlb-item-card, .dlb-integration-card, .feature-center-card) {
  border-radius: var(--wb-panel-radius);
  border-color: var(--wb-line);
  background: var(--wb-canvas);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms var(--wb-ease);
}

.desktop-library :where(.dlb-card, .dlb-item-card, .dlb-integration-card, .feature-center-card):hover {
  border-color: var(--wb-line-strong);
  box-shadow: 0 8px 22px -12px rgba(15, 23, 42, 0.12);
}

.desktop-library .dlb-preview,
.desktop-library .dlb-preview-empty {
  background: var(--wb-subtle);
  color: var(--wb-muted);
}

html[data-yb-theme="dark"] .desktop-library .button.primary {
  background: var(--wb-accent);
  border-color: var(--wb-accent);
  color: var(--wb-accent-text);
}

/* --------------------------------------------------------------------------
   8. 苹果级悬浮居中设置大弹窗（账户 / 订阅 / 用量与 52 周热力图）
   -------------------------------------------------------------------------- */
.desktop-settings-dialog {
  --ds-paper: var(--wb-canvas);
  --ds-rail: var(--wb-sidebar);
  --ds-surface: var(--wb-subtle);
  --ds-hover: var(--wb-hover);
  --ds-fg: var(--wb-ink);
  --ds-muted: var(--wb-muted);
  --ds-line: var(--wb-line);
  --ds-field-border: var(--wb-line-strong);
  --ds-accent: var(--wb-accent);
  --ds-accent-ink: var(--wb-accent-text);
  --ds-selected: var(--wb-accent-soft);
  --ds-danger: var(--wb-danger);
  --ds-warning: rgb(140 91 24);
  --ds-warning-bg: rgb(252 246 234);
  border: 1px solid var(--wb-line-strong);
  border-radius: var(--wb-modal-radius);
  background: var(--ds-paper, rgb(255 255 255));
  box-shadow: var(--wb-modal-shadow);
  font-family: var(--wb-font);
}

.desktop-settings-dialog[open] {
  animation: none !important;
  opacity: 1;
}

.desktop-settings-dialog .ds-titlebar,
.desktop-settings-dialog .ds-body {
  background: var(--ds-paper, rgb(255 255 255));
}

.desktop-settings-dialog .ds-sidebar {
  background: var(--ds-rail, rgb(247 248 250));
}

.desktop-settings-dialog[open]::backdrop {
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

html[data-yb-theme="dark"] .desktop-settings-dialog {
  --ds-paper: rgb(21 26 36);
  --ds-rail: rgb(17 21 29);
  --ds-surface: rgba(255, 255, 255, 0.05);
  --ds-hover: rgba(255, 255, 255, 0.065);
  --ds-fg: rgb(242 245 250);
  --ds-muted: rgb(148 160 180);
  --ds-line: rgba(255, 255, 255, 0.085);
  --ds-field-border: rgba(255, 255, 255, 0.16);
  --ds-accent: var(--wb-accent);
  --ds-accent-ink: var(--wb-accent-text);
  --ds-selected: var(--wb-accent-soft);
  --ds-danger: var(--wb-danger);
  --ds-warning: rgb(251 191 36);
  --ds-warning-bg: rgba(245, 158, 11, 0.14);
  background: rgb(21 26 36) !important;
  box-shadow: var(--wb-modal-shadow);
}

html[data-yb-theme="dark"] .desktop-settings-dialog .ds-titlebar,
html[data-yb-theme="dark"] .desktop-settings-dialog .ds-body {
  background: rgb(22 25 31);
}

html[data-yb-theme="dark"] .desktop-settings-dialog .ds-sidebar {
  background: rgb(20 23 29);
}

html[data-yb-theme="dark"] .desktop-settings-dialog[open]::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.desktop-settings-dialog .ds-nav-item {
  border-radius: 9px;
  font-size: 14px;
}

.desktop-settings-dialog .ds-nav-item[aria-selected="true"] {
  background: var(--ds-paper);
  color: var(--ds-fg);
  border-color: var(--ds-line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.desktop-settings-dialog .ds-button {
  border-radius: var(--wb-control-radius);
}

.desktop-settings-dialog .ds-button.primary:hover:not(:disabled) {
  filter: none;
  background: var(--wb-accent-hover);
}

.desktop-settings-dialog .ds-heatmap-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: var(--wb-panel-radius);
}

/* 52 周热力图同步晨雾溪石深涧青绿 / 碳素深潭青铜金阶梯 */
.ds-hm-cell,
.ds-hm-cell[data-level="0"] { background: var(--wb-heat-0); }
.ds-hm-cell[data-level="1"] { background: var(--wb-heat-1); }
.ds-hm-cell[data-level="2"] { background: var(--wb-heat-2); }
.ds-hm-cell[data-level="3"] { background: var(--wb-heat-3); }
.ds-hm-cell[data-level="4"] { background: var(--wb-heat-4); }

/* --------------------------------------------------------------------------
   9. 平台运营后台（operator.html）同步苹果晨雾溪石质感
   -------------------------------------------------------------------------- */
.op-login {
  background:
    radial-gradient(ellipse 64% 48% at 20% 10%, rgba(27, 107, 99, 0.08) 0%, transparent 60%),
    var(--wb-chrome);
}

.op-login-main {
  border-radius: var(--wb-modal-radius);
  box-shadow: var(--wb-modal-shadow);
  border-color: var(--wb-line);
}

.op-workspace {
  border-radius: var(--wb-panel-radius);
  border-color: var(--wb-line);
  box-shadow: 0 4px 20px -10px rgba(15, 23, 42, 0.08);
}

.op-panel {
  border-radius: var(--wb-panel-radius);
  border-color: var(--wb-line);
}

.op-btn {
  border-radius: var(--wb-control-radius);
  font-weight: 550;
}

/* --------------------------------------------------------------------------
   10. 智渔汇 · 苹果级 38px 一体化融合顶栏（红黄绿三色圆点 + 窗口拖拽区）
   -------------------------------------------------------------------------- */
html.zyh-has-titlebar {
  --zyh-titlebar-h: 38px;
}

html.zyh-has-titlebar body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  margin: 0;
}

html.zyh-has-titlebar #app {
  flex: 1 1 auto;
  min-height: 0;
  height: calc(100dvh - var(--zyh-titlebar-h));
  overflow: auto;
}

/* 精准收敛全站所有满屏壳体容器高度，确保底部零裁剪、零双滚动条 */
html.zyh-has-titlebar :is(
  .reference-mode .social-app.ref-chat-shell,
  .reference-mode .ref-application,
  .application,
  .social-app,
  #app > .login-page,
  #app > .welcome-registration
) {
  height: calc(100dvh - var(--zyh-titlebar-h));
  min-height: calc(100dvh - var(--zyh-titlebar-h));
}

.zyh-titlebar {
  position: relative;
  z-index: 60;
  height: var(--zyh-titlebar-h, 38px);
  flex: 0 0 var(--zyh-titlebar-h, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 6px;
  background: var(--wb-chrome);
  border-bottom: 1px solid var(--wb-line);
  color: var(--wb-muted);
  font-size: 12px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-app-region: drag;
}

.zyh-tb-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  justify-self: start;
}

.zyh-tb-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 360px;
  pointer-events: none;
}

.zyh-tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-self: end;
}

.zyh-tb-divider {
  width: 1px;
  height: 14px;
  margin: 0 2px;
  background: var(--wb-line-strong);
  opacity: 0.72;
  flex: none;
}

.zyh-tl-spacer {
  width: 68px;
  height: 12px;
  flex: none;
}

/* 苹果标志性红黄绿三色圆点按钮（与下方 58px 左轨精准视觉对齐） */
.zyh-tl-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 48px;
  flex: none;
  -webkit-app-region: no-drag;
}

.zyh-tl {
  display: grid;
  place-items: center;
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  color: rgba(0, 0, 0, 0.58);
  transition: transform 110ms var(--wb-ease), filter 120ms ease;
}

/* 轻盈融合 ← → 历史导航键 */
.zyh-tb-nav {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex: none;
  -webkit-app-region: no-drag;
}

.zyh-tb-nav-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--wb-ink-2);
  cursor: pointer;
  transition: background-color 130ms ease, color 130ms ease, opacity 130ms ease;
}

.zyh-tb-nav-btn:hover:not(:disabled) {
  background: var(--wb-hover);
  color: var(--wb-ink);
}

.zyh-tb-nav-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

/* 单行融入式「文件 / 编辑 / 视图 / 帮助」苹果极简菜单组 */
.zyh-tb-menus {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-inline-start: 2px;
  flex: none;
  -webkit-app-region: no-drag;
}

.zyh-tb-menu {
  height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--wb-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 130ms ease, color 130ms ease;
}

.zyh-tb-menu:hover,
.zyh-tb-menu.open {
  background: var(--wb-hover);
  color: var(--wb-ink);
}

.zyh-tb-menu.open {
  background: var(--wb-canvas);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px var(--wb-line);
}

html[data-yb-theme="dark"] .zyh-tb-menu.open {
  background: var(--wb-subtle);
}

/* 苹果毛玻璃级下拉菜单弹层 */
.zyh-menu-popover {
  position: fixed;
  z-index: 260;
  min-width: 212px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--wb-line-strong);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--wb-overlay-shadow);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.zyh-menu-popover[hidden] {
  display: none;
}

html[data-yb-theme="dark"] .zyh-menu-popover {
  background: rgba(26, 30, 38, 0.94);
}

.zyh-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--wb-ink);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background-color 110ms ease, color 110ms ease;
}

.zyh-menu-item:hover {
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
}

.zyh-menu-item kbd {
  font-family: var(--wb-mono);
  font-size: 12px;
  color: var(--wb-faint);
  font-variant-numeric: tabular-nums;
}

.zyh-menu-item:hover kbd {
  color: var(--wb-accent);
}

.zyh-menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--wb-line);
}

.zyh-tl svg {
  opacity: 0;
  transition: opacity 120ms ease;
  pointer-events: none;
}

.zyh-tl-group:hover .zyh-tl svg,
.zyh-tl:focus-visible svg {
  opacity: 1;
}

.zyh-tl:active {
  transform: scale(0.9);
  filter: brightness(0.9);
}

.zyh-tl.is-close { background: rgb(255 95 87); }
.zyh-tl.is-min { background: rgb(254 188 46); }
.zyh-tl.is-max { background: rgb(40 200 64); }

html[data-yb-theme="dark"] .zyh-tl {
  border-color: rgba(255, 255, 255, 0.14);
}

.zyh-tb-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.zyh-tb-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: none;
  object-fit: cover;
}

.zyh-tb-crumb strong {
  color: var(--wb-ink);
  font-weight: 650;
  font-size: 12.5px;
  letter-spacing: -0.01em;
}

.zyh-tb-sep {
  opacity: 0.45;
}

.zyh-tb-sub {
  color: var(--wb-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zyh-tb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line);
  color: var(--wb-muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  -webkit-app-region: no-drag;
}

.zyh-tb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wb-accent);
  flex: none;
}

.zyh-tb-pid {
  font-family: var(--wb-mono);
  font-variant-numeric: tabular-nums;
  color: var(--wb-ink-2);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.zyh-tb-pid:hover {
  border-color: var(--wb-accent);
  color: var(--wb-accent);
  background: var(--wb-accent-soft);
}




@media (max-width: 1120px) {
  .zyh-tb-status {
    display: none;
  }
}

@media (max-width: 860px) {
  .zyh-tb-sub,
  .zyh-tb-sep {
    display: none;
  }
}

@media (max-width: 680px) {
  .zyh-tb-menus,
  .zyh-tb-nav,
  .zyh-tb-divider {
    display: none;
  }
  /* 窄窗口保留左轨设置入口与关键焦点可见 */
  nav.ref-rail {
    display: flex;
    min-width: 52px;
  }
  nav.ref-rail .ref-rail-foot,
  nav.ref-rail [data-ref-settings],
  nav.ref-rail .ref-rail-avatar {
    display: inline-grid;
    visibility: visible;
  }
}

/* 密码输入与显隐切换（支持粘贴、自动填充、清晰键盘焦点） */
.password-input-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.password-input-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding-inline-end: 64px;
}

.password-toggle-btn {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--wb-line);
  background: var(--wb-surface);
  color: var(--wb-ink-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.password-toggle-btn:hover {
  border-color: var(--wb-accent);
  color: var(--wb-accent);
  background: var(--wb-accent-soft);
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: 1px;
}

/* 账户设置：昵称 + 头像 + 公开 ID 整合身份区 */
.desktop-settings-dialog .ds-identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--ds-line, var(--wb-line));
  background: var(--ds-surface, var(--wb-surface));
  margin-bottom: 14px;
}

.desktop-settings-dialog .ds-identity-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 240px;
}

.desktop-settings-dialog .ds-identity-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.desktop-settings-dialog .ds-identity-name {
  font-size: 16px;
  font-weight: 640;
  color: var(--ds-fg, var(--wb-ink));
}

.desktop-settings-dialog .ds-identity-pid-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ds-muted, var(--wb-muted));
}

.desktop-settings-dialog .ds-identity-pid-code {
  font-family: var(--wb-mono);
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--ds-line, var(--wb-line));
  background: var(--ds-paper, var(--wb-canvas));
  color: var(--ds-fg, var(--wb-ink));
  font-weight: 560;
}

.desktop-settings-dialog .ds-channel-badge.danger {
  background: rgba(217, 56, 56, 0.12);
  color: rgb(198 40 40);
  border-color: rgba(217, 56, 56, 0.28);
}

/* 长会话向前翻页栏 & 跳到最新浮钮 */
.social-history-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0 12px;
}


/* 待发消息原位发送状态条与重发 */
.social-message.is-pending-delivery .social-bubble {
  opacity: 0.88;
}

.social-message.is-failed-delivery .social-bubble {
  border-color: rgba(217, 56, 56, 0.42);
}

.social-delivery-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--wb-muted);
}

.social-delivery-bar.is-error {
  color: var(--wb-danger, rgb(198 40 40));
}

/* 应用中心首屏：商品宣传图、宣传视频、库存与报价精选卡片 */
.feature-center-hero {
  margin-bottom: 20px;
}

.feature-center-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.feature-center-hero-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  box-shadow: 0 2px 10px -6px rgba(15, 23, 42, 0.08);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.feature-center-hero-card:hover {
  border-color: var(--wb-accent);
  box-shadow: 0 10px 24px -14px rgba(27, 107, 99, 0.24);
  transform: translateY(-1px);
}

.feature-center-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feature-center-hero-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
}

.feature-center-hero-badge {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--wb-line);
  background: var(--wb-surface);
  color: var(--wb-ink-2);
}

.feature-center-hero-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 640;
  color: var(--wb-ink);
}

.feature-center-hero-sample {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--wb-muted);
  flex: 1 1 auto;
}

.feature-center-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.feature-center-section-title {
  margin: 4px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wb-muted);
}

.feature-center-hero-card.is-owner-restricted {
  background: var(--wb-subtle);
  opacity: 0.9;
}

.feature-center-hero-card.is-owner-restricted:hover {
  border-color: var(--wb-line);
  box-shadow: none;
  transform: none;
}

.feature-center-hero-badge.is-restricted {
  color: var(--wb-muted);
  background: var(--wb-canvas);
}

/* 群文件右栏重置默认按钮 */
.social-detail-width-reset {
  font-size: 12px;
  padding: 2px 8px;
}

/* 窄桌面窗口保持精修 58px 图标左轨：去掉 details 默认三角、禁止文字竖排换行挤出，并始终保留设置入口 */
.ref-rail .ref-phone-more > summary,
.ref-rail .ref-account-menu > summary {
  list-style: none;
}

.ref-rail .ref-phone-more > summary::marker,
.ref-rail .ref-account-menu > summary::marker,
.ref-rail .ref-phone-more > summary::-webkit-details-marker,
.ref-rail .ref-account-menu > summary::-webkit-details-marker {
  display: none;
  content: "";
}

@media (max-width: 780px) {
  body.reference-mode #app nav.ref-rail {
    width: 58px;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 10px;
    gap: 5px;
  }

  .ref-rail .ref-phone-more > summary > span,
  .ref-rail .ref-phone-assistant-label,
  .ref-rail .ref-account-menu > summary::after,
  .ref-rail .ref-rail-button::after {
    display: none !important;
  }

  body.reference-mode #app .ref-rail .ref-phone-more,
  body.reference-mode #app .ref-rail .ref-phone-assistant,
  body.reference-mode #app .ref-rail .ref-account-menu {
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    margin: 0;
  }

  body.reference-mode #app .ref-rail .ref-phone-more > summary,
  body.reference-mode #app .ref-rail .ref-account-menu > summary {
    display: grid;
    place-items: center;
    list-style: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
  }

  body.reference-mode #app .ref-rail button.ref-rail-button[aria-label="设置"],
  body.reference-mode #app .ref-rail button.ref-rail-button[aria-label="账号与模型设置"],
  body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="settings"] {
    display: grid !important;
  }
}

/* 联系人左侧栏顶部个人名片与复制 ID 行 */
.ref-directory-my-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

.ref-directory-my-card .ref-directory-me-btn {
  flex: 1;
  min-width: 0;
  padding: 2px 4px;
}

.ref-directory-my-card .ref-directory-row-copy small {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* 微信智能客服 Skill 工作台 */
.wkf-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wkf-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wkf-stats,
.wkf-actions,
.wkf-quick-chips,
.wkf-seg,
.wkf-session-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wkf-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wkf-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

.wkf-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wkf-card-head h2 {
  margin: 0;
  font-size: 16px;
}

.wkf-mode-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.wkf-mode-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel);
}

.wkf-pill,
.wkf-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel);
  color: var(--wb-ink);
}

.wkf-pill.accent,
.wkf-tag.accent {
  border-color: var(--wb-accent);
  color: var(--wb-accent);
}

.wkf-pill.warn,
.wkf-tag.warn {
  border-color: rgba(217, 56, 56, 0.45);
  color: var(--wb-danger, rgb(198 40 40));
}

.wkf-muted {
  margin: 0;
  font-size: 13px;
  color: var(--wb-muted);
}

.wkf-warn {
  margin: 0;
  font-size: 13px;
  color: var(--wb-danger, rgb(198 40 40));
}

.wkf-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wkf-sim-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 10px;
  align-items: center;
}

.wkf-sim-result,
.wkf-msg-card,
.wkf-internal-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel);
}

.wkf-internal-box {
  border-style: dashed;
}

.wkf-internal-head,
.wkf-msg-meta,
.wkf-msg-footer,
.wkf-qr-attached,
.wkf-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wkf-copy-row code {
  flex: 1;
  min-width: 200px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel);
  font-size: 12px;
  word-break: break-all;
}

.wkf-reply-preview {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
}

.wkf-calc-list {
  margin: 0;
  padding-inline-start: 18px;
  font-size: 13px;
  color: var(--wb-ink);
}

.wkf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.wkf-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.wkf-qr-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.wkf-qr-preview {
  width: 168px;
  height: 168px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel);
  padding: 6px;
}

.wkf-qr-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

.wkf-qr-empty {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px dashed var(--wb-line);
  color: var(--wb-muted);
  font-size: 13px;
}

.wkf-qr-controls {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wkf-inline-form,
.wkf-form-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  align-items: end;
}

.wkf-table-wrap {
  overflow-x: auto;
}

.wkf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wkf-table th,
.wkf-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--wb-line);
}

.wkf-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wkf-history-row {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wkf-reply-line {
  margin: 0;
  font-size: 13px;
  white-space: pre-wrap;
}

.wkf-session-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--wb-line);
  background: var(--wb-panel);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   14. 智渔汇 · 交互式聚光灯悬浮窗新手引导（纯令牌配色，适配浅色与深色模式）
   -------------------------------------------------------------------------- */
.welcome-tour-banner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--wb-line-strong);
  background: linear-gradient(135deg, var(--wb-canvas), var(--wb-subtle));
  box-shadow: var(--wb-float-shadow);
}

.welcome-tour-banner-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.welcome-tour-banner-copy {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.welcome-tour-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--wb-accent);
  letter-spacing: 0.02em;
}

.welcome-tour-banner-copy h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 640;
  color: var(--wb-ink);
}

.welcome-tour-banner-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--wb-muted);
}

.welcome-tour-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--wb-line);
}

.welcome-tour-topics-label {
  font-size: 12.5px;
  color: var(--wb-muted);
}

.welcome-tour-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.welcome-tour-pill:hover {
  border-color: var(--wb-accent);
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
}

.zyh-tour-root {
  position: fixed;
  inset: 0;
  z-index: 1250;
  pointer-events: none;
}

.zyh-tour-mask {
  position: fixed;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(1.5px);
  pointer-events: auto;
  transition: top 220ms var(--wb-ease), left 220ms var(--wb-ease), width 220ms var(--wb-ease), height 220ms var(--wb-ease);
}

@keyframes zyhTourPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px var(--wb-accent), 0 0 0 7px var(--wb-accent-soft);
  }
  50% {
    box-shadow: 0 0 0 3px var(--wb-accent), 0 0 0 12px rgba(27, 107, 99, 0.22);
  }
}

.zyh-tour-ring {
  position: fixed;
  border-radius: 12px;
  pointer-events: none;
  z-index: 1252;
  animation: zyhTourPulse 1.9s ease-in-out infinite;
  transition: top 220ms var(--wb-ease), left 220ms var(--wb-ease), width 220ms var(--wb-ease), height 220ms var(--wb-ease);
}

.zyh-tour-ring-badge {
  position: absolute;
  left: 8px;
  top: -27px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--wb-accent);
  color: var(--wb-accent-text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(15, 23, 42, 0.35);
}

.zyh-tour-ring[data-badge-pos="bottom"] .zyh-tour-ring-badge {
  top: auto;
  bottom: -27px;
}

.zyh-tour-card {
  position: fixed;
  z-index: 1255;
  width: min(376px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 15px;
  border-radius: 16px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: var(--wb-modal-shadow);
  pointer-events: auto;
  transition: top 220ms var(--wb-ease), left 220ms var(--wb-ease);
}

.zyh-tour-card.is-dragging {
  transition: none;
  user-select: none;
}

.zyh-tour-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: grab;
  user-select: none;
}

.zyh-tour-card.is-dragging .zyh-tour-head {
  cursor: grabbing;
}

.zyh-tour-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.zyh-tour-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--wb-accent);
  line-height: 1.3;
}

.zyh-tour-progress-text {
  display: block;
  font-size: 12px;
  color: var(--wb-muted);
  font-variant-numeric: tabular-nums;
}

.zyh-tour-win-btns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.zyh-tour-icon-btn {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  color: var(--wb-ink-2);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.zyh-tour-icon-btn:hover {
  background: var(--wb-hover);
  color: var(--wb-ink);
}

.zyh-tour-tracks {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--wb-line);
  overflow-x: auto;
}

.zyh-tour-track-pill {
  padding: 3px 7.5px;
  border-radius: 999px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  color: var(--wb-muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.zyh-tour-track-pill:hover {
  color: var(--wb-ink);
  border-color: var(--wb-line-strong);
}

.zyh-tour-track-pill.active {
  background: var(--wb-accent-soft);
  border-color: var(--wb-accent);
  color: var(--wb-accent);
  font-weight: 600;
}

.zyh-tour-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zyh-tour-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.38;
  color: var(--wb-ink);
}

.zyh-tour-what {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--wb-ink-2);
}

.zyh-tour-howto {
  margin: 0;
  padding: 10px 12px 10px 26px;
  border-radius: 10px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.52;
  color: var(--wb-ink-2);
}

.zyh-tour-try-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.zyh-tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--wb-line);
}

.zyh-tour-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.zyh-tour-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--wb-line-strong);
  cursor: pointer;
  transition: width 160ms ease, background-color 160ms ease;
}

.zyh-tour-dot.done {
  background: var(--wb-accent-soft);
}

.zyh-tour-dot.active {
  width: 18px;
  background: var(--wb-accent);
}

.zyh-tour-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zyh-tour-dock,
.zyh-tour-launcher-chip {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1245;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: var(--wb-overlay-shadow);
  pointer-events: auto;
}

body:has(.daily-composer) .zyh-tour-launcher-chip {
  bottom: clamp(152px, 28dvh, 240px);
}

@supports (anchor-name: --workspace-composer) {
  body .daily-composer {
    anchor-name: --workspace-composer;
  }

  body:has(.daily-composer) .zyh-tour-launcher-chip {
    bottom: calc(anchor(--workspace-composer top, 176px) + 12px);
  }
}

.zyh-tour-dock-copy,
.zyh-tour-launcher-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.zyh-tour-dock button,
.zyh-tour-launcher-chip button {
  white-space: nowrap;
  flex-shrink: 0;
}

.zyh-tour-dock-copy strong,
.zyh-tour-launcher-copy strong {
  font-size: 13px;
  font-weight: 620;
  color: var(--wb-ink);
}

.zyh-tour-dock-copy small,
.zyh-tour-launcher-copy span {
  font-size: 12px;
  color: var(--wb-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   15. 智渔汇 · 水下鱼说话搞笑短剧全链路制作台（纯令牌配色，适配浅色与深色模式）
   -------------------------------------------------------------------------- */
.uwd-entry-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 12px;
  padding: 11px 15px;
  border-radius: 14px;
  border: 1px solid var(--wb-line-strong);
  background: linear-gradient(135deg, var(--wb-canvas), var(--wb-subtle));
  box-shadow: var(--wb-float-shadow);
}

.uwd-entry-copy {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.uwd-entry-copy strong {
  font-size: 15.5px;
  font-weight: 640;
  color: var(--wb-ink);
}

.uwd-entry-copy p,
.uwd-muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--wb-muted);
}

.uwd-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--wb-accent);
  letter-spacing: 0.02em;
}

.uwd-entry-actions,
.uwd-head-actions,
.uwd-inline-actions,
.uwd-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.uwd-studio {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  box-shadow: var(--wb-float-shadow);
}

.uwd-studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.uwd-studio-head h2 {
  margin: 2px 0 4px;
  font-size: 18px;
  font-weight: 660;
  color: var(--wb-ink);
}

.uwd-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
}

.uwd-toolbar select {
  min-width: 200px;
}

.uwd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
}

.uwd-tab {
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--wb-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.uwd-tab:hover {
  color: var(--wb-ink);
}

.uwd-tab.active {
  background: var(--wb-canvas);
  color: var(--wb-accent);
  border-color: var(--wb-line-strong);
  font-weight: 620;
  box-shadow: 0 2px 6px -4px rgba(15, 23, 42, 0.16);
}

.uwd-workspace,
.uwd-tab-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uwd-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

.uwd-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 630;
  color: var(--wb-ink);
}

.uwd-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.uwd-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.uwd-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.uwd-table-wrap {
  overflow-x: auto;
}

.uwd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.uwd-table th,
.uwd-table td {
  text-align: left;
  padding: 7px 6px;
  border-bottom: 1px solid var(--wb-line);
  vertical-align: middle;
}

.uwd-table th {
  color: var(--wb-muted);
  font-weight: 600;
  white-space: nowrap;
}

.uwd-table input {
  padding: 5px 7px;
  font-size: 12.5px;
  min-width: 0;
  box-sizing: border-box;
}

.uwd-cell-xs { width: 72px; }
.uwd-cell-sm { width: 108px; }
.uwd-cell-md { width: 168px; }
.uwd-cell-lg { min-width: 240px; width: 100%; }

.uwd-pair-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.uwd-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--wb-badge-bg);
  color: var(--wb-badge-ink);
  font-size: 12px;
  white-space: nowrap;
}

.uwd-prompt-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
}

.uwd-prompt-pre {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-family: var(--wb-font);
  font-size: 12.5px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow: auto;
}

.uwd-ref-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.uwd-ref-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
}

.uwd-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.uwd-badge.is-pass {
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
}

.uwd-badge.is-fail {
  background: var(--wb-danger-soft);
  color: var(--wb-danger);
}

.uwd-issue-list {
  margin: 0;
  padding: 10px 14px 10px 28px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.uwd-issue-list.is-error {
  background: var(--wb-danger-soft);
  color: var(--wb-danger);
}

.uwd-issue-list.is-warn {
  background: var(--wb-video-soft);
  color: var(--wb-video);
}

.uwd-note-box {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  font-size: 12.5px;
  color: var(--wb-ink-2);
}

.uwd-note-box ul {
  margin: 6px 0 0;
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.uwd-status-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uwd-status-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 10px;
}

.uwd-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.uwd-empty {
  padding: 24px;
  border-radius: 12px;
  border: 1px dashed var(--wb-line-strong);
  background: var(--wb-subtle);
  text-align: center;
}

.uwd-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--wb-danger-soft);
  color: var(--wb-danger);
  font-size: 13px;
}

/* 实测体验精修：AI 好友窄栏卡片竖排不挤字、快捷时长一键点选胶囊、建队弹窗底栏分隔线 */
.social-budget-entry[data-social-install-drama-ai] {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.social-budget-entry[data-social-install-drama-ai] > button {
  align-self: flex-start;
}

.video-flow-duration-box {
  display: grid;
  justify-items: start;
  min-width: 0;
  gap: 6px;
}

.video-flow-duration-box > .field {
  width: min(100%, 140px);
  margin: 0;
}

.video-flow-duration-presets,
.workbench-status-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

#app .video-flow-source-switch .button[aria-pressed="true"] {
  background: var(--wb-accent-soft);
  border-color: var(--wb-line-strong);
  color: var(--wb-ink);
}

#app .video-flow-intake details[data-video-details] > summary {
  color: var(--wb-ink-2);
}

#app .video-flow-intake details[data-video-details] > summary > span {
  color: var(--wb-muted);
}

.video-flow-dur-chip,
.workbench-status-filter {
  min-height: 32px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.video-flow-dur-chip:hover:not(:disabled),
.workbench-status-filter:hover {
  background: var(--wb-hover);
}

.video-flow-dur-chip[aria-pressed="true"],
.workbench-status-filter[aria-pressed="true"] {
  border-color: var(--wb-accent);
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
  font-weight: 650;
}

.video-flow-dur-chip:focus-visible,
.workbench-status-filter:focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: 2px;
}

.video-flow-dur-chip:disabled {
  opacity: 0.56;
  cursor: default;
}

.social-modal-sticky-foot {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

/* --------------------------------------------------------------------------
   16. 智渔汇 · 极简老板三步向导（图片 / 视频通用，极简留白与选择题交互）
   -------------------------------------------------------------------------- */
.ez-shell {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ez-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ez-header h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 660;
  color: var(--wb-ink);
}

.ez-header p {
  margin: 0;
  font-size: 14px;
  color: var(--wb-muted);
}

.ez-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ez-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ez-stepper li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  font-size: 13px;
  color: var(--wb-muted);
}

.ez-stepper li span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--wb-line-strong);
  color: var(--wb-ink);
  font-size: 11.5px;
  font-weight: 650;
}

.ez-stepper li.active {
  border-color: var(--wb-accent);
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
  font-weight: 600;
}

.ez-stepper li.active span,
.ez-stepper li.done span {
  background: var(--wb-accent);
  color: var(--wb-accent-text);
}

.ez-step-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  box-shadow: var(--wb-float-shadow);
}

.ez-field-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ez-label {
  font-size: 14.5px;
  font-weight: 620;
  color: var(--wb-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ez-opt {
  font-size: 12px;
  font-weight: 400;
  color: var(--wb-muted);
}

.ez-file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ez-photo-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1.5px dashed var(--wb-line-strong);
  background: var(--wb-subtle);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.ez-photo-drop:hover,
.ez-photo-drop.has-photo {
  border-color: var(--wb-accent);
  background: var(--wb-canvas);
}

.ez-photo-drop:focus-within {
  border-color: var(--wb-accent);
  outline: 2px solid var(--wb-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--wb-accent-soft);
}

.ez-photo-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
  flex-shrink: 0;
}

.ez-photo-thumb {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--wb-line);
  flex-shrink: 0;
}

.ez-photo-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ez-photo-copy strong {
  font-size: 15px;
  color: var(--wb-ink);
}

.ez-photo-copy span {
  font-size: 12.5px;
  color: var(--wb-muted);
}

.ez-sub-pickers,
.ez-catalog-strip,
.ez-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ez-saved-details {
  font-size: 12.5px;
  color: var(--wb-muted);
}

.ez-row-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.ez-input,
.ez-custom-area {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-size: 14px;
  font-family: inherit;
}

.ez-dur-input {
  width: 84px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--wb-accent);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-size: 13.5px;
}

.ez-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-subtle);
  color: var(--wb-ink-2);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.ez-chip:hover {
  border-color: var(--wb-accent);
}

.ez-chip.active {
  border-color: var(--wb-accent);
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
  font-weight: 600;
}

.ez-step2-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ez-step2-head strong {
  font-size: 16px;
  color: var(--wb-ink);
}

.ez-step2-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--wb-muted);
}

.ez-option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ez-option-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 17px;
  border-radius: 14px;
  border: 1.5px solid var(--wb-line);
  background: var(--wb-subtle);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.ez-option-card:hover {
  border-color: var(--wb-line-strong);
  background: var(--wb-canvas);
}

.ez-option-card.selected {
  border-color: var(--wb-accent);
  background: var(--wb-canvas);
  box-shadow: 0 0 0 3px var(--wb-accent-soft);
}

.ez-option-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.ez-option-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--wb-accent);
  color: var(--wb-accent-text);
  font-size: 12.5px;
  font-weight: 700;
}

.ez-option-top strong {
  font-size: 15px;
  color: var(--wb-ink);
}

.ez-option-badge {
  margin-inline-start: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--wb-badge-bg);
  color: var(--wb-badge-ink);
  font-size: 11.5px;
  font-weight: 600;
}

.ez-option-summary {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--wb-ink-2);
}

.ez-option-beats {
  margin: 0;
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--wb-muted);
}

.ez-option-preview {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--wb-subtle);
  font-size: 12.5px;
  color: var(--wb-ink-2);
}

.ez-missing-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--wb-accent);
  background: var(--wb-accent-soft);
}

.ez-missing-box strong {
  font-size: 14px;
  color: var(--wb-ink);
}

.ez-missing-box p {
  margin: 0;
  font-size: 12.5px;
  color: var(--wb-ink-2);
}

.ez-error {
  margin: 0;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--wb-danger-soft);
  color: var(--wb-danger);
  font-size: 13px;
}

.ez-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.ez-next-btn {
  padding: 10px 20px;
  font-size: 14.5px;
}

.ez-pro-return-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  font-size: 13px;
  color: var(--wb-muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
  }
}

.ez-step2-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ez-cat-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--wb-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ez-cat-select {
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-size: 13px;
}

.ez-inline-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* === 智渔汇 · 流光状态条、层级进度与底部接管胶囊 === */
@keyframes gg-spin {
  to { transform: rotate(360deg); }
}

@keyframes gg-shimmer {
  0% { background-position: -180% 0; }
  100% { background-position: 180% 0; }
}

body #app .ez-shell .button.primary.gg-btn-black,
.gg-btn-black {
  background: rgb(19, 44, 41);
  color: rgb(255, 255, 255);
  border-color: rgb(19, 44, 41);
}

body #app .ez-shell .button.primary.gg-btn-black:hover:not(:disabled),
.gg-btn-black:hover:not(:disabled) {
  background: rgb(28, 63, 58);
  border-color: rgb(28, 63, 58);
}

.gg-mini-spin {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1.8px solid rgba(18, 20, 24, 0.18);
  border-top-color: rgb(18, 20, 24);
  display: inline-block;
  flex-shrink: 0;
  animation: gg-spin 0.85s linear infinite;
}

.gg-exec-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid rgba(18, 20, 24, 0.1);
  background: rgba(18, 20, 24, 0.04);
  color: rgb(26, 29, 34);
}

.gg-exec-pill.is-running {
  background: linear-gradient(90deg, rgba(18, 20, 24, 0.04) 25%, rgba(18, 20, 24, 0.09) 50%, rgba(18, 20, 24, 0.04) 75%);
  background-size: 200% 100%;
  animation: gg-shimmer 2.2s ease-in-out infinite;
}

.gg-exec-pill.is-done {
  background: rgba(24, 148, 86, 0.1);
  border-color: rgba(24, 148, 86, 0.22);
  color: rgb(18, 114, 66);
}

.gg-exec-pill.is-failed,
.gg-exec-pill.is-stopped {
  background: rgba(224, 72, 62, 0.09);
  border-color: rgba(224, 72, 62, 0.22);
  color: rgb(180, 44, 36);
}

.gg-inline-stop {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: rgb(232, 72, 62);
  color: rgb(255, 255, 255);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.gg-inline-stop:hover {
  background: rgb(210, 56, 46);
}

.gg-autopilot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(18, 20, 24, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: var(--wb-canvas);
}

.gg-autopilot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(18, 20, 24, 0.06);
  font-size: 13.5px;
  color: var(--wb-ink);
}

.gg-autopilot-row:last-child {
  border-bottom: none;
}

.gg-autopilot-row.is-running {
  background: rgba(18, 20, 24, 0.025);
  font-weight: 600;
}

.gg-autopilot-row.is-done .gg-autopilot-state {
  color: rgb(24, 134, 78);
}

.gg-autopilot-row.is-failed .gg-autopilot-state,
.gg-autopilot-row.is-stopped .gg-autopilot-state {
  color: rgb(206, 54, 46);
}

.gg-autopilot-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gg-autopilot-name small {
  font-size: 12px;
  font-weight: 400;
  color: var(--wb-muted);
}

.gg-autopilot-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--wb-muted);
  white-space: nowrap;
}

.gg-result-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(18, 20, 24, 0.025);
  border: 1px solid rgba(18, 20, 24, 0.08);
}

.gg-result-media {
  max-width: 100%;
  max-height: 460px;
  border-radius: 12px;
  background: rgb(16, 18, 22);
  object-fit: contain;
}

.gg-takeover-host {
  position: relative;
  flex: none;
  z-index: 970;
  -webkit-app-region: no-drag;
}

.gg-takeover-host[data-gg-task-floating] {
  position: fixed;
  inset: 6px 12px auto auto;
}

.gg-task-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 2px 8px;
  border: 1px solid var(--wb-line-strong);
  border-radius: 999px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.gg-task-toggle:hover,
.gg-task-toggle[aria-expanded="true"] {
  background: var(--wb-hover);
}

.gg-task-count {
  min-width: 17px;
  padding-inline: 3px;
  border-radius: 999px;
  background: var(--wb-accent);
  color: var(--wb-accent-text);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gg-task-panel {
  position: absolute;
  inset: calc(100% + 7px) 0 auto auto;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 24px));
  max-height: min(420px, calc(100dvh - 60px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 12px;
  border: 1px solid var(--wb-line-strong);
  border-radius: 12px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: var(--wb-modal-shadow);
}

.gg-task-group {
  display: grid;
  gap: 0;
  margin-block: 6px 10px;
  padding: 0;
  list-style: none;
}

.gg-task-group > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gg-task-description > small {
  display: block;
}

.gg-task-panel :is(h2, h3, p) {
  margin: 0;
}

.gg-task-panel :is(h2, h3) {
  color: var(--wb-ink);
  font-size: 13px;
  font-weight: 650;
}

.gg-task-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  padding-block: 8px;
  border-bottom: 1px solid var(--wb-line);
}

.gg-task-description {
  min-width: 0;
  flex: 1 1 125px;
}

.gg-task-title {
  color: var(--wb-ink);
  overflow-wrap: anywhere;
}

.gg-task-detail {
  color: var(--wb-muted);
  overflow-wrap: anywhere;
}

.gg-task-actions {
  display: flex;
  flex: none;
  gap: 4px;
}

.gg-task-error {
  flex: 1 0 100%;
  color: var(--wb-danger);
  overflow-wrap: anywhere;
}

.gg-task-toggle:focus-visible,
.gg-task-panel :is(a, button):focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: 2px;
}

/* 鱼摆摆聊天单行耗时微标签 + 右侧柔和淡蓝暖杏渐变陪伴面板（对标 gugu 助理「团子」） */
.gg-reply-timing > summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--wb-muted);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(18, 20, 24, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gg-reply-timing > summary::-webkit-details-marker {
  display: none;
}

/* 修复 1440x900 含高 DPI 缩放（等效 850~960px）下助理面板掉到输入框正下方的问题：提前至 760px 即左右分栏 */
@media (min-width: 760px) {
  html body #app .assistant-workspace .daily-layout:has(> .yb-companion-pane:not([hidden])),
  html body #app .daily-layout:has(> .yb-companion-pane:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(264px, 31vw, 336px);
    align-items: stretch;
    min-height: 0;
  }

  html body #app .assistant-workspace .daily-aside.yb-companion-pane:not([hidden]),
  html body #app [data-daily-view] .yb-companion-pane:not([hidden]) {
    position: relative;
    max-height: 100%;
    overflow-y: auto;
    align-self: stretch;
  }
}

#app .assistant-workspace .daily-aside.yb-companion-pane,
[data-daily-view] .yb-companion-pane {
  background: linear-gradient(180deg, rgba(188, 218, 248, 0.42) 0%, rgba(238, 244, 251, 0.36) 46%, rgba(248, 230, 210, 0.52) 100%);
  border-inline-start: 1px solid rgba(18, 20, 24, 0.07);
}

/* 智渔汇原创 · 顶部多任务轻标签栏（容器与轻应用解耦，切页不丢后台任务） */
.zyh-task-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 10px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(19, 44, 41, 0.05);
  border: 1px solid rgba(19, 44, 41, 0.08);
}

.zyh-task-tab {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.zyh-task-tab.active {
  background: var(--wb-canvas);
  box-shadow: 0 1px 3px rgba(19, 44, 41, 0.1);
}

.zyh-task-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--wb-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.zyh-task-tab.active .zyh-task-tab-btn {
  color: rgb(19, 44, 41);
  font-weight: 600;
}

.zyh-task-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(28, 178, 126);
  flex-shrink: 0;
}

.zyh-task-tab-close {
  border: none;
  background: transparent;
  color: var(--wb-muted);
  width: 20px;
  height: 20px;
  margin-inline-end: 4px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.zyh-task-tab-close:hover {
  background: rgba(19, 44, 41, 0.08);
  color: rgb(19, 44, 41);
}

/* 彻底消灭鱼摆摆与好友群聊输入框聚焦时内层 textarea 冒出的双层边框 */
body #app .daily-composer textarea,
body #app .daily-composer textarea:hover,
body #app .daily-composer textarea:focus,
body #app .daily-composer textarea:focus-visible,
body #app .social-app .social-composer textarea,
body #app .social-app .social-composer textarea:hover,
body #app .social-app .social-composer textarea:focus,
body #app .social-app .social-composer textarea:focus-visible,
body #app .social-app form textarea:focus,
body #app .social-app form textarea:focus-visible {
  border-width: 0;
  outline: none;
  outline-offset: 0;
  box-shadow: none;
  background: transparent;
}

/* ==========================================================================
   全站弹出面板、空状态卡片、联系人名片、应用中心与资源库精修设计
   ========================================================================== */

/* 1. 顶部居中灵动 Toast（绝不遮挡右上角「+ 新对话 / 搜索 / 助理面板」工具栏） */
body #notifications {
  top: 46px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  align-items: center;
  max-width: min(460px, calc(100vw - 32px));
}

body #notifications .toast {
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--wb-line);
  box-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
}

html[data-yb-theme="dark"] body #notifications .toast {
  background: rgba(28, 32, 40, 0.94);
}

/* 2. 统一精致空状态卡片（告别两行裸字 + 细横线） */
.zyh-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px dashed rgba(27, 31, 36, 0.13);
  background: linear-gradient(180deg, rgba(246, 247, 249, 0.72) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.zyh-empty-card.is-compact {
  padding: 16px 16px;
  gap: 8px;
}

.zyh-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--wb-badge-bg);
  color: var(--wb-accent);
  border: 1px solid rgba(27, 107, 99, 0.14);
}

.zyh-empty-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 620;
  color: var(--wb-ink);
}

.zyh-empty-copy p {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--wb-muted);
  max-width: 380px;
}

.zyh-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.zyh-desktop-fallback-card {
  margin-top: 12px;
  text-align: center;
}

/* 3. 「最近制作」「灵感」「最近对话」「智能体来往」卡片容器精修 */
html body #app .xiaoyu-concierge-history:not([hidden]) {
  margin: 0 0 16px;
  padding: 14px 16px 16px;
  border-radius: 16px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  box-shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.12);
}

.zyh-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--wb-line);
}

.zyh-popover-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--wb-ink);
  font-size: 13.5px;
}

.zyh-popover-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--wb-subtle);
  color: var(--wb-muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.zyh-popover-close {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--wb-muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.zyh-popover-close:hover {
  background: var(--wb-subtle);
  color: var(--wb-ink);
}

.zyh-history-list {
  display: grid;
  gap: 6px;
}

html body #app .xiaoyu-concierge-history .xiaoyu-concierge-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  text-align: left;
  transition: background-color 140ms ease, border-color 140ms ease;
}

html body #app .xiaoyu-concierge-history .xiaoyu-concierge-history-row:hover {
  background: var(--wb-canvas);
  border-color: var(--wb-accent);
}

html body #app .yb-inspiration-tray {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.12);
}

html body #app .daily-history {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.12);
}

html body #app .daily-history input[type="search"] {
  border: 1px solid var(--wb-line-strong);
  border-radius: 10px;
  background: var(--wb-subtle);
  box-shadow: none;
}

html body #app .daily-history input[type="search"]:focus {
  border-color: var(--wb-accent);
  background: var(--wb-canvas);
  box-shadow: 0 0 0 3px var(--wb-accent-soft);
}

.zyh-mailbox-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

.zyh-mailbox-card + .zyh-mailbox-card {
  margin-top: 12px;
}

.zyh-mailbox-card > h3 {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 620;
  color: var(--wb-ink);
}

/* 4. 「联系人」左栏名片防截断与「公开 ID」绝不三行折行 + 空状态精致化 */
html body #app .ref-sidebar .ref-directory-my-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 10px 9px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.06);
}

html body #app .ref-sidebar .ref-directory-my-card .ref-directory-me-btn {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: center;
  gap: 10px;
}

html body #app .ref-sidebar .ref-directory-my-card .ref-directory-row-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

html body #app .ref-sidebar .ref-directory-my-card .ref-directory-row-copy strong {
  font-size: 13.5px;
  font-weight: 620;
  color: var(--wb-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body #app .ref-sidebar .ref-directory-my-card .ref-directory-row-copy small {
  font-size: 11.5px;
  color: var(--wb-accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

html body #app .ref-sidebar .ref-directory-my-card [data-contact-my-copy-id] {
  width: 100%;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  color: var(--wb-ink-2);
  font-size: 12px;
  padding: 4px 10px;
}

html body #app .ref-sidebar .ref-directory-my-card [data-contact-my-copy-id]:hover {
  border-color: var(--wb-accent);
  color: var(--wb-accent);
  background: var(--wb-badge-bg);
}

html body #app .ref-sidebar .ref-list-status,
html body #app .ref-sidebar .social-empty {
  margin: 14px 4px;
  padding: 18px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(27, 31, 36, 0.13);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 12.5px;
  color: var(--wb-muted);
  line-height: 1.6;
}

/* 5. 「消息」左栏搜索框防截断 + 柔化「创建智能体」主按钮 */
html body #app .ref-sidebar .ref-sidebar-search input {
  font-size: 12.5px;
  padding-inline-end: 6px;
}

html body #app .ref-sidebar .ref-sidebar-create-agent,
html body #app .ref-sidebar [data-reference-create-ai] {
  background: var(--wb-accent);
  color: var(--wb-accent-text);
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: 0 4px 12px -6px rgba(27, 107, 99, 0.42);
  transition: background-color 150ms ease, transform 120ms ease;
}

html body #app .ref-sidebar .ref-sidebar-create-agent:hover,
html body #app .ref-sidebar [data-reference-create-ai]:hover {
  background: var(--wb-accent-hover);
}

/* 6. 「应用中心（?view=capabilities）」修复胶囊孤字折行 + 对称 2x2 主卡片网格 */
html body #app .feature-center .feature-center-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 720px) {
  html body #app .feature-center .feature-center-hero-grid {
    grid-template-columns: 1fr;
  }
}

html body #app .feature-center .feature-center-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html body #app .feature-center .feature-center-hero-badge {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
}

/* 7. 「资源库（?view=works）」待处理 2x2 状态卡片网格 + 提示词卡精修 */
html body #app .dlb-pending-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 760px) {
  html body #app .dlb-pending-grid {
    grid-template-columns: 1fr;
  }
}

html body #app .dlb-pending-group {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  box-shadow: 0 2px 10px -6px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 136px;
}

html body #app .dlb-pending-group > h3 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 620;
  color: var(--wb-ink);
}

.dlb-pending-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dlb-pending-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--wb-accent);
}

[data-pending-group="needs_info"] .dlb-pending-dot {
  background: rgb(217 119 6);
}

[data-pending-group="confirm"] .dlb-pending-dot {
  background: rgb(37 99 235);
}

[data-pending-group="failed"] .dlb-pending-dot {
  background: rgb(220 38 38);
}

[data-pending-group="downloadable"] .dlb-pending-dot {
  background: rgb(22 163 74);
}

.dlb-pending-count {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--wb-subtle);
  color: var(--wb-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

html body #app .dlb-pending-group .dlb-output-empty {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 18px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(27, 31, 36, 0.11);
  background: var(--wb-subtle);
  color: var(--wb-muted);
  font-size: 12.5px;
}

/* 8. 「做商品图 / 做视频」右上角原图排版 / 专业版胶囊化 */
html body #app .ez-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border-radius: 11px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
}

html body #app .ez-header-tools > button {
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 520;
  color: var(--wb-ink-2);
  background: transparent;
  border: 1px solid transparent;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

html body #app .ez-header-tools > button:hover {
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* 9. 「设置」弹窗内各分组区块增加现代卡片底板与呼吸感 */
html body .desktop-settings-dialog .ds-content > section,
html body .desktop-settings-dialog .ds-panel-section {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

html body .desktop-settings-dialog .ds-content > section + section {
  margin-top: 12px;
}

/* ==========================================================================
   去网页化桌面客户端质感：原生极细无箭头滚动条 + 原生单页应用顶栏
   ========================================================================== */

/* 彻底替换 Windows 原生带上下箭头的灰色粗滚动条，升级为 macOS/桌面端隐形细滑块 */
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(27, 31, 36, 0.16) transparent;
  }
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(27, 31, 36, 0.14);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(27, 31, 36, 0.28);
}

html[data-yb-theme="dark"] *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

html[data-yb-theme="dark"] *::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* 原生桌面客户端单页标题（替代浏览器式多标签页栏） */
.zyh-native-page-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 620;
  color: var(--wb-ink);
  letter-spacing: -0.01em;
}

.zyh-native-page-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: var(--wb-subtle);
  color: var(--wb-accent);
  border: 1px solid var(--wb-line);
}

/* 轻柔化「做商品图 / 做视频」内部主标题，告别硬邦邦大黑网页 H1 感 */
html body #app .ez-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

html body #app .ez-header h1,
html body #app .ez-header h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--wb-ink);
  margin: 0;
}

/* ==========================================================================
   全站统一设计铁律层（尺寸 / 圆角 / 卡片 / 表单 / 180ms 轻呼吸物理微动效）
   ========================================================================== */

/* 1. 全站按钮统一高度、圆角与按压微阻尼 */
html body #app .button {
  min-height: 36px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 540;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 110ms var(--wb-ease);
}

html body #app .button.compact {
  min-height: 30px;
  border-radius: 8px;
  font-size: 12.5px;
}

html body #app .button:not(:disabled):active {
  transform: scale(0.98);
}

/* 2. 全站常规表单输入框与下拉框统一 38px 高度、10px 圆角与柔和青黛聚焦态 */
html body #app :is(.ez-input, .ez-cat-select, .wkf-card input[type="text"], .wkf-card select, .connection-surface select, .desktop-library select, .desktop-settings-dialog input:not([type="checkbox"]):not([type="radio"]), .desktop-settings-dialog select) {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--wb-line-strong);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

html body #app :is(.ez-input, .ez-cat-select, .wkf-card input[type="text"], .wkf-card select, .connection-surface select, .desktop-library select, .desktop-settings-dialog input:not([type="checkbox"]):not([type="radio"]), .desktop-settings-dialog select):focus {
  border-color: var(--wb-accent);
  box-shadow: 0 0 0 3px var(--wb-accent-soft);
}

/* 3. 全站核心业务卡片统一 14px 圆角、1px 发丝边与克制柔影 */
html body #app :is(.ez-step-card, .wkf-card, .dlb-card, .feature-center-hero-card, .connection-surface) {
  border-radius: 14px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  box-shadow: 0 2px 10px -6px rgba(15, 23, 42, 0.06);
  transition: border-color 160ms ease, box-shadow 180ms ease;
}

html body #app :is(.dlb-card, .feature-center-hero-card):hover {
  border-color: rgba(27, 107, 99, 0.22);
  box-shadow: 0 10px 26px -16px rgba(15, 23, 42, 0.14);
}

/* 4. 统一 180ms 轻呼吸物理微动效（切页淡入微浮 + 弹窗/浮层阻尼缩放） */
@keyframes zyhViewEnter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zyhPopIn {
  from {
    opacity: 0;
    transform: scale(0.975) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

html:not([data-motion="off"]) body #app :is(.ez-shell, .wkf-grid, .feature-center, .dlb-collection-content, .connections-page) {
  animation: zyhViewEnter 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html:not([data-motion="off"]) body :is(dialog[open], .zyh-tb-popover:not([hidden]), .xiaoyu-concierge-history:not([hidden]), .yb-inspiration-tray, .daily-history, .ref-attachment-menu) {
  animation: zyhPopIn 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  body #app *,
  body dialog[open] {
    animation-duration: 0.01ms;
    transition-duration: 0.01ms;
  }
}

/* ==========================================================================
   彻底消灭全站原生丑陋 file input（[选择文件] 未选择任何文件）+ 精修「智能体来往」弹窗
   ========================================================================== */
html body input[type="file"]:not([hidden], [data-ez-upload-input]) {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed var(--wb-line-strong);
  background: var(--wb-subtle);
  color: var(--wb-muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

html body input[type="file"]:not([hidden], [data-ez-upload-input]):hover {
  border-color: var(--wb-accent);
  background: var(--wb-canvas);
}

html body input[type="file"]:not([hidden], [data-ez-upload-input])::file-selector-button {
  margin-inline-end: 10px;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-size: 12.5px;
  font-weight: 540;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

html body input[type="file"]:not([hidden], [data-ez-upload-input])::file-selector-button:hover {
  border-color: var(--wb-accent);
  color: var(--wb-accent);
  background: var(--wb-badge-bg);
}

/* 「智能体来往」现代化重构弹窗：去白卡套娃、双 Tab 无截断、胶囊选人、精致虚线附件槽 */
dialog.zyh-mailbox-dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: min(640px, calc(100dvh - 48px));
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  box-shadow: var(--wb-modal-shadow);
  overflow: hidden;
}

dialog.zyh-mailbox-dialog::backdrop {
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(4px);
}

.zyh-mailbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--wb-line);
}

.zyh-mailbox-head-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.zyh-mailbox-head-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--wb-badge-bg);
  color: var(--wb-accent);
  border: 1px solid rgba(27, 107, 99, 0.14);
  flex-shrink: 0;
}

.zyh-mailbox-head-title strong {
  display: block;
  font-size: 15px;
  font-weight: 640;
  color: var(--wb-ink);
}

.zyh-mailbox-head-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--wb-muted);
}

.zyh-mailbox-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  max-height: calc(min(640px, 100dvh - 48px) - 70px);
}

.zyh-mailbox-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
}

.zyh-mailbox-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--wb-muted);
  font-size: 12.5px;
  font-weight: 520;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.zyh-mailbox-tab.is-active {
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.zyh-mailbox-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zyh-mailbox-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zyh-mailbox-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zyh-mailbox-field-head label {
  font-size: 12.5px;
  font-weight: 580;
  color: var(--wb-ink-2);
}

.zyh-mailbox-agent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zyh-mailbox-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-subtle);
  color: var(--wb-ink-2);
  font-size: 13px;
  font-weight: 520;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.zyh-mailbox-agent-pill:hover {
  border-color: var(--wb-accent);
  background: var(--wb-canvas);
}

.zyh-mailbox-agent-pill.is-selected {
  border-color: var(--wb-accent);
  background: var(--wb-badge-bg);
  color: var(--wb-accent);
  font-weight: 600;
}

.zyh-mailbox-agent-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--wb-accent);
  color: var(--wb-accent-text);
  font-size: 11px;
  font-weight: 620;
}

.zyh-mailbox-textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-subtle);
  color: var(--wb-ink);
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.zyh-mailbox-textarea:focus {
  border-color: var(--wb-accent);
  background: var(--wb-canvas);
  box-shadow: 0 0 0 3px var(--wb-accent-soft);
}

.zyh-mailbox-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  color: var(--wb-accent);
  font-size: 11.5px;
  font-weight: 540;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.zyh-mailbox-quote-btn:hover {
  background: var(--wb-badge-bg);
  border-color: rgba(27, 107, 99, 0.25);
}

.zyh-mailbox-dropzone {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zyh-mailbox-drop-trigger {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px dashed var(--wb-line-strong);
  background: var(--wb-subtle);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.zyh-mailbox-drop-trigger:hover {
  border-color: var(--wb-accent);
  background: var(--wb-badge-bg);
}

.zyh-mailbox-drop-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--wb-canvas);
  color: var(--wb-accent);
  border: 1px solid var(--wb-line);
  flex-shrink: 0;
}

.zyh-mailbox-drop-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 580;
  color: var(--wb-ink);
}

.zyh-mailbox-drop-copy small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--wb-muted);
}

.zyh-mailbox-file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zyh-mailbox-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  color: var(--wb-ink-2);
  font-size: 12px;
}

.zyh-mailbox-file-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zyh-mailbox-file-del {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--wb-muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.zyh-mailbox-file-del:hover {
  background: var(--wb-danger-soft);
  color: var(--wb-danger);
}

.zyh-mailbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--wb-line);
}

.zyh-mailbox-status {
  margin: 0;
  font-size: 12px;
  color: var(--wb-danger);
  min-height: 18px;
}

.zyh-mailbox-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ==========================================================================
   18. 极简无彩高定桌面规范（严格 1:1 对齐标杆截图：冷灰一体壳 + 纯净白画布 + 炭黑主控件）
   零强制覆盖 / 零新增十六进制色值 / 零花哨渐变与发光阴影
   ========================================================================== */

/* 18.1 顶栏与左轨一体融合冷灰壳 + 右侧整块纯白工作区（仅左上角柔和圆角衔接，绝不框套框） */
body.reference-mode :is(.ref-application, .ref-chat-shell) {
  background: var(--wb-chrome);
}

body.reference-mode .social-app.ref-chat-shell,
body.reference-mode .ref-application {
  grid-template-columns: 52px var(--ref-sidebar-width, 240px) minmax(0, 1fr);
}

html[data-ref-sidebar="closed"] body.reference-mode :is(.social-app.ref-chat-shell, .ref-application) {
  grid-template-columns: 52px 0 minmax(0, 1fr);
}

/* 左侧 52px 导轨：清晰舒展（36×36 热区 + 19px 清晰线条图标 + 8px 节奏） */
body.reference-mode #app nav.ref-rail,
html[data-yb-sidebar-tint] body.reference-mode #app nav.ref-rail {
  width: 52px;
  margin: 0;
  padding: 9px 0 12px;
  gap: 8px;
  border-radius: 0;
  background: var(--wb-chrome);
  border: 0;
  box-shadow: none;
  align-items: center;
}

body.reference-mode #app .ref-rail .ref-rail-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: rgb(72 72 82);
}

body.reference-mode #app .ref-rail .ref-rail-button > svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.75;
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button {
  color: rgb(161 161 170);
}

body.reference-mode #app .ref-rail .ref-rail-button:hover,
body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="agent"]:hover,
body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="image"]:hover,
body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="film"]:hover {
  transform: none;
  background: rgba(0, 0, 0, 0.045);
  border-color: transparent;
  color: var(--wb-ink);
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button:hover,
html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="agent"]:hover,
html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="image"]:hover,
html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="film"]:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: transparent;
  color: var(--wb-ink);
}

/* 左轨激活态：标杆同款极净柔和浅灰圆角块，零彩色框与零左侧竖条 */
body.reference-mode #app .ref-rail .ref-rail-button.active,
body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="agent"].active,
body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="image"].active,
body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="film"].active {
  background: rgb(232 232 234);
  color: var(--wb-ink);
  border: 0;
  box-shadow: none;
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button.active,
html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="agent"].active,
html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="image"].active,
html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="film"].active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--wb-ink);
}

body.reference-mode #app .ref-rail .ref-rail-button.active::before {
  display: none;
}

body.reference-mode #app .ref-rail .ref-rail-divider {
  width: 20px;
  height: 1px;
  margin: 5px 0;
  background: var(--wb-line);
  opacity: 1;
}

/* 中段快捷图标：36×36 热区承载 28px 清晰图标 */
body.reference-mode #app .ref-rail .ref-brand {
  width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 1px 0;
  border-radius: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.reference-mode #app nav.ref-rail .ref-brand .xiaoyu-pet {
  width: 28px;
  height: 28px;
}

body.reference-mode #app .ref-rail .ref-brand:hover {
  transform: none;
  background: rgba(0, 0, 0, 0.045);
  box-shadow: none;
}

body.reference-mode #app .ref-rail .ref-brand[aria-current="page"] {
  background: rgb(232 232 234);
  border: 0;
  box-shadow: none;
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-brand[aria-current="page"] {
  background: rgba(255, 255, 255, 0.11);
}

body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="agent"],
body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="image"],
body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="film"],
html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="agent"],
html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="image"],
html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="film"] {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: rgb(82 82 91);
}

body.reference-mode #app .ref-rail .ref-account-menu > summary {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

body.reference-mode #app .ref-rail .ref-account-avatar {
  width: 26px;
  height: 26px;
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="agent"],
html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="image"],
html[data-yb-theme="dark"] body.reference-mode #app .ref-rail .ref-rail-button[data-rail-glyph="film"] {
  color: rgb(161 161 170);
}

/* 中栏（纯白平接，左上角 14px 柔和圆角，极淡发丝右边线） */
body.reference-mode #app aside.ref-sidebar,
html[data-yb-sidebar-tint] body.reference-mode #app aside.ref-sidebar {
  background: var(--wb-canvas);
  border: 0;
  border-inline-end: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 14px 0 0 0;
  margin: 0;
  box-shadow: none;
  overflow: hidden;
}

html[data-yb-theme="dark"] body.reference-mode #app aside.ref-sidebar {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.07);
}

/* 右侧主画布：纯净纯白、无任何光晕与多余外边距；当侧栏收起时自动承接左上角 14px 圆角 */
body.reference-mode :is(.ref-application, .ref-chat-shell) > :is(.app-workspace, .social-main) {
  background: var(--wb-canvas);
  background-image: none;
  border-radius: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

html[data-ref-sidebar="closed"] body.reference-mode :is(.ref-application, .ref-chat-shell) > :is(.app-workspace, .social-main) {
  border-radius: 14px 0 0 0;
}

/* 修复消息页 social-main 竖向布局（彻底消灭顶部栏被切裂的空白列） */
body.reference-mode .ref-chat-shell > .social-main {
  display: flex;
  flex-direction: column;
}

body.reference-mode .ref-chat-shell > .social-main > .social-empty-chat {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

/* 顶部主画布标题栏：纯白 + 极淡 1px 发丝底线 */
.reference-mode :is(.ref-topbar, .social-chat-head) {
  background: var(--wb-canvas);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--wb-line);
  width: 100%;
  flex: 0 0 auto;
}

/* 18.2 中栏搜索框与列表项（严格对齐标杆：无框浅灰搜索 + 极净浅灰选中块 + 圆形头像） */
body.reference-mode #app .ref-sidebar-top {
  gap: 6px;
  padding: 10px 12px 6px;
}

body.reference-mode #app .ref-sidebar-top > .ref-search {
  border-radius: 9px;
  background: var(--wb-subtle);
  border: 1px solid transparent;
  box-shadow: none;
}

body.reference-mode #app .ref-sidebar-top > .ref-search:focus-within {
  background: var(--wb-canvas);
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: none;
}

body.reference-mode #app .ref-sidebar .social-avatar {
  border-radius: 999px;
}

body.reference-mode #app .ref-sidebar :is(.social-room, .ref-history-item, .ref-assistant-entry, .ref-directory-row) {
  border-radius: 10px;
}

body.reference-mode #app .ref-sidebar :is(.social-room, .ref-history-item, .ref-assistant-entry).active,
html:not([data-yb-theme="dark"]) body.reference-mode #app .ref-sidebar[data-reference-mode] .ref-conversations > .social-room.active,
body.reference-mode #app .ref-directory-row[aria-pressed="true"] {
  background: rgb(235 235 237);
  color: var(--wb-ink);
  box-shadow: none;
  border-color: transparent;
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-sidebar :is(.social-room, .ref-history-item, .ref-assistant-entry).active,
html[data-yb-theme="dark"] body.reference-mode #app .ref-directory-row[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

body.reference-mode #app .ref-sidebar :is(.social-room, .ref-history-item).active::before {
  display: none;
}

/* 18.3 全站主操作按钮 100% 统一为极简高级纯炭黑（零渐变、零蓝色发光投影） */
body #app .button.primary,
body #app .ez-shell .button.primary.gg-btn-black,
body #app .gg-btn-black,
body .desktop-settings-dialog .ds-button.primary,
body #app :is(.social-send, .daily-send):not(:disabled):not([aria-disabled="true"]),
body.reference-mode #app .ref-sidebar :is(.ref-sidebar-primary-create, .social-sidebar-create-btn),
.zyh-mailbox-dialog .button.primary {
  background: var(--wb-accent);
  border-color: var(--wb-accent);
  color: var(--wb-accent-text);
  border-radius: 10px;
  box-shadow: none;
  transition: transform 120ms var(--wb-ease), background-color 140ms ease, opacity 140ms ease;
}

body .desktop-settings-dialog .ds-button.primary {
  transition: transform 120ms var(--wb-ease), opacity 140ms ease;
}

body #app .button.primary:hover:not(:disabled),
body #app .ez-shell .button.primary.gg-btn-black:hover:not(:disabled),
body #app .gg-btn-black:hover:not(:disabled),
body .desktop-settings-dialog .ds-button.primary:hover:not(:disabled),
body #app :is(.social-send, .daily-send):hover:not(:disabled):not([aria-disabled="true"]),
body.reference-mode #app .ref-sidebar :is(.ref-sidebar-primary-create, .social-sidebar-create-btn):hover,
.zyh-mailbox-dialog .button.primary:hover:not(:disabled) {
  background: var(--wb-accent-hover);
  border-color: var(--wb-accent-hover);
  color: var(--wb-accent-text);
  filter: none;
  box-shadow: none;
}

body #app .button.secondary {
  background: var(--wb-canvas);
  border-color: var(--wb-line-strong);
  color: var(--wb-ink);
  border-radius: 10px;
  box-shadow: none;
}

body #app .button.secondary:hover:not(:disabled) {
  background: var(--wb-subtle);
  border-color: var(--wb-line-strong);
  color: var(--wb-ink);
}

/* 18.4 对话输入器：纯净大圆角白卡 + 极克制微灰边（去掉蓝色大光晕） */
html body #app :is(.social-composer, .daily-composer, .workbench-chat-composer) {
  border-radius: 16px;
  box-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.08);
}

html body #app :is(.social-composer, .daily-composer, .workbench-chat-composer):focus-within {
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.12);
}

html[data-yb-theme="dark"] body #app :is(.social-composer, .daily-composer, .workbench-chat-composer):focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

html body #app :is(.social-send, .daily-send) {
  border-radius: 999px;
}

/* 18.5 聊天回复 GFM Markdown 表格精致排版（首列单行不折行） */
.yb-md-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

.yb-md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.yb-md-table th,
.yb-md-table td {
  padding: 8px 11px;
  border-bottom: 1px solid var(--wb-line);
  border-right: 1px solid var(--wb-line);
  vertical-align: top;
}

.yb-md-table th:last-child,
.yb-md-table td:last-child {
  border-right: 0;
}

.yb-md-table tbody tr:last-child td {
  border-bottom: 0;
}

.yb-md-table thead th {
  background: var(--wb-subtle);
  color: var(--wb-ink);
  font-weight: 600;
  white-space: nowrap;
}

.yb-md-table tbody tr:hover td {
  background: var(--wb-hover);
}

.yb-md-table tbody td:first-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--wb-ink);
  font-weight: 520;
}

/* 暗色模式下耗时胶囊按钮柔和深透适配 */
html[data-yb-theme="dark"] body #app .daily-chat .daily-message.assistant .gg-reply-timing > summary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.11);
  color: var(--wb-muted);
}

html[data-yb-theme="dark"] body #app .daily-chat .daily-message.assistant .gg-reply-timing > summary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--wb-ink);
}

/* 微信客服页 3 张策略卡宽屏 3 列齐平 */
@media (min-width: 860px) {
  body #app .wkf-mode-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

/* 18.6 右侧「助理面板」同步极简纯白（彻底告别杂色渐变底） */
html body #app .assistant-workspace .daily-aside.yb-companion-pane {
  background: var(--wb-canvas);
  border: 0;
  border-inline-start: 1px solid var(--wb-line);
  border-radius: 0;
  box-shadow: none;
}

html body #app .assistant-workspace .yb-companion-tabs {
  background: var(--wb-subtle);
  padding: 3px;
  border-radius: 9px;
  border: 0;
}

html body #app .assistant-workspace .yb-companion-tab {
  border-radius: 7px;
  font-size: 12px;
}

html body #app .assistant-workspace .yb-companion-tab.active {
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

/* 18.7 业务卡片回归极净发丝边框与轻盈素白 */
body #app .ez-card,
body #app .wkf-card,
body #app .ref-contact-profile-summary {
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line);
  border-radius: 14px;
  box-shadow: none;
}

body #app .ez-option-card {
  border-radius: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
}

body #app .ez-option-card:hover {
  transform: none;
  border-color: var(--wb-line-strong);
  background: var(--wb-canvas);
  box-shadow: none;
}

body #app .ez-option-card.selected {
  border-color: var(--wb-ink);
  background: var(--wb-canvas);
  box-shadow: 0 0 0 1px var(--wb-ink);
}

body #app .ez-option-num {
  background: var(--wb-ink);
  color: var(--wb-canvas);
}

/* 18.8 顶部标题栏：36px 舒展冷灰顶栏、13px 清晰饱满菜单字号 */
.zyh-titlebar {
  background: var(--wb-chrome);
  border-bottom: 0;
  height: 36px;
  flex: 0 0 36px;
  padding: 0 12px;
}

.zyh-titlebar .zyh-tb-menu {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 9px;
  color: rgb(63 63 70);
}

html[data-yb-theme="dark"] .zyh-titlebar .zyh-tb-menu {
  color: rgb(180 180 190);
}

.zyh-titlebar .zyh-tb-status {
  display: none;
}

.zyh-titlebar .zyh-tb-crumb {
  opacity: 0.78;
  font-size: 13px;
}

.zyh-titlebar .zyh-tb-pid {
  font-size: 12px;
  padding: 3px 10px;
}

html.zyh-has-titlebar {
  --zyh-titlebar-h: 36px;
}

/* 18.9 全站统一干净弹窗遮罩 */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

html[data-yb-theme="dark"] dialog::backdrop {
  background: rgba(0, 0, 0, 0.56);
}

/* 18.10 导航稳定化：全站左轨恒定 52px、零延迟中文悬浮标签、消息顶栏对齐、副提示文案 */
@media (min-width: 761px) {
  html[data-ref-sidebar] body.reference-mode #app > .ref-assistant-shell,
  html[data-ref-sidebar="closed"] body.reference-mode #app > .ref-assistant-shell {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  html[data-ref-sidebar] body.reference-mode #app :is(.ref-application:not(.ref-assistant-shell), .social-app.ref-chat-shell) {
    --workspace-rail-width: 52px;
    grid-template-columns: 52px var(--ref-sidebar-width, 240px) minmax(0, 1fr);
  }

  html[data-ref-sidebar="closed"] body.reference-mode #app :is(.ref-application:not(.ref-assistant-shell), .social-app.ref-chat-shell),
  body.reference-mode #app .ref-application:has(.dlb-integration-view) {
    grid-template-columns: 52px 0 minmax(0, 1fr);
  }

  body.reference-mode #app .ref-application:has(.dlb-integration-view) .ref-header-leading {
    display: flex;
  }

  body.reference-mode #app nav.ref-rail {
    overflow: visible;
    position: relative;
    z-index: 45;
  }

  body.reference-mode #app nav.ref-rail :is(.ref-rail-button, .ref-brand, .ref-help-menu > summary, .ref-account-menu > summary) {
    width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 10px;
  }

  body.reference-mode #app nav.ref-rail .ref-rail-button > svg,
  body.reference-mode #app nav.ref-rail .ref-help-menu > summary > svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.75;
  }

  body.reference-mode #app nav.ref-rail .ref-help-menu {
    position: relative;
    margin: 0;
  }

  body.reference-mode #app nav.ref-rail .ref-help-menu > summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    place-items: center;
  }

  body.reference-mode #app nav.ref-rail .ref-help-menu > summary::-webkit-details-marker {
    display: none;
  }

  /* 左轨 0 延迟悬浮中文名气泡，防止盲点误跳（覆盖旧版 overflow:hidden 与旧小圆点尺寸） */
  body.reference-mode #app nav.ref-rail :is(.ref-rail-button, .ref-brand, .ref-account-menu > summary, .ref-help-menu > summary)[data-rail-tip] {
    position: relative;
    overflow: visible;
  }

  body.reference-mode #app nav.ref-rail :is(.ref-rail-button, .ref-brand, .ref-account-menu > summary, .ref-help-menu > summary)[data-rail-tip]::after {
    content: attr(data-rail-tip);
    display: block;
    position: absolute;
    left: calc(100% + 10px);
    right: auto;
    bottom: auto;
    top: 50%;
    width: auto;
    height: auto;
    transform: translateY(-50%) translateX(-4px);
    padding: 5px 10px;
    border: 0;
    border-radius: 8px;
    background: rgb(24 24 27);
    color: rgb(255 255 255);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    max-width: none;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    transition: opacity 100ms ease, transform 100ms ease;
    z-index: 90;
  }

  html[data-yb-theme="dark"] body.reference-mode #app nav.ref-rail :is(.ref-rail-button, .ref-brand, .ref-account-menu > summary, .ref-help-menu > summary)[data-rail-tip]::after {
    background: rgb(244 244 245);
    color: rgb(24 24 27);
  }

  body.reference-mode #app nav.ref-rail :is(.ref-rail-button, .ref-brand):is(:hover, :focus-visible)[data-rail-tip]::after,
  body.reference-mode #app nav.ref-rail :is(.ref-account-menu, .ref-help-menu):not([open]) > summary:is(:hover, :focus-visible)[data-rail-tip]::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }
}

/* 消息空态与 AI 好友顶栏：占满整行宽度，快速前往稳居最右不再紧挨着「消息」标题 */
body.reference-mode #app .ref-empty-topbar {
  width: 100%;
  flex: 0 0 auto;
  background: var(--wb-canvas);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--wb-line);
}

body.reference-mode #app .ref-workspace-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--wb-muted);
}

body.reference-mode #app .ref-workspace-search-label {
  font-size: 12px;
  font-weight: 500;
}

/* 联系人目录顶栏：与全站统一左侧展开按钮位置 */
body.reference-mode #app .ref-contact-detail .workspace-directory-toolbar {
  justify-content: flex-start;
  gap: 10px;
}

body.reference-mode #app .ref-contact-detail .workspace-directory-controls {
  margin-inline-start: auto;
}

html[data-ref-sidebar="open"] body.reference-mode #app .ref-contact-detail .workspace-directory-toolbar > .ref-panel-toggle {
  display: none;
}

/* 创建 AI 智能体副说明与鱼摆摆助理面板入口微提示 */
body #app .social-agent-start-subtitle {
  margin: -4px 0 14px;
  font-size: 13px;
  color: var(--wb-muted);
  text-align: center;
}

body #app .yb-companion-list-row .yb-companion-row-hint {
  font-size: 11.5px;
  color: var(--wb-muted);
  margin-inline-end: 2px;
  white-space: nowrap;
}

/* 18.11 饱满舒适字号、清晰字重与舒展间距韵律（适配 Windows 微软雅黑正体 ClearType） */
body.reference-mode #app .ref-sidebar-top {
  gap: 6px;
  padding: 10px 12px 6px;
}

body.reference-mode #app .ref-sidebar-top > .ref-search {
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  gap: 6px;
  border-radius: 9px;
}

body.reference-mode #app .ref-sidebar-top .ref-search-input {
  font-size: 13px;
  line-height: 1.4;
}

body.reference-mode #app .ref-sidebar-top :is(.ref-sidebar-icon, .ref-panel-toggle),
body.reference-mode #app .ref-inbox-view-menu > summary.ref-sidebar-icon {
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 8px;
}

body.reference-mode #app .ref-sidebar-primary-line {
  padding: 0 12px;
  margin: 6px 0 8px;
  gap: 6px;
}

body.reference-mode #app .ref-sidebar :is(.ref-sidebar-primary-create, .social-sidebar-create-btn) {
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 9px;
  gap: 7px;
}

body.reference-mode #app .ref-sidebar :is(.ref-sidebar-primary-create, .social-sidebar-create-btn) > svg {
  width: 15px;
  height: 15px;
}

body.reference-mode #app .ref-sidebar-primary-line > .ref-sidebar-create {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 9px;
}

/* 中栏会话行 & 联系人目录行：36px 圆头像 + 14px/600 饱满标题 + 12.5px 摘要 + 12px 时间 */
body.reference-mode #app .ref-sidebar .ref-conversations,
body.reference-mode #app .ref-sidebar .ref-sidebar-scroll {
  padding-inline: 10px;
}

body.reference-mode #app .ref-sidebar .ref-conversations {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-inline: 0;
}

body.reference-mode #app .ref-sidebar :is(.social-room, .ref-history-item, .ref-directory-row) {
  padding: 8px 10px;
  gap: 10px;
  min-height: 54px;
  border-radius: 10px;
}

body.reference-mode #app .ref-sidebar :is(.social-room, .ref-directory-row, .ref-history-item) .social-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 13.5px;
  font-weight: 600;
}

body.reference-mode #app .ref-sidebar .social-room-title {
  gap: 6px;
  margin-bottom: 3px;
}

body.reference-mode #app .ref-sidebar .social-room-title strong,
body.reference-mode #app .ref-sidebar .ref-directory-row-copy strong,
body.reference-mode #app .ref-sidebar .ref-history-copy strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--wb-ink);
}

body.reference-mode #app .ref-sidebar .social-room-title time {
  font-size: 12px;
  font-weight: 400;
  color: rgb(142 142 152);
}

body.reference-mode #app .ref-sidebar .social-room-preview,
body.reference-mode #app .ref-sidebar .ref-directory-row-copy small,
body.reference-mode #app .ref-sidebar .ref-history-copy small {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
  color: rgb(100 100 110);
}

html[data-yb-theme="dark"] body.reference-mode #app .ref-sidebar .social-room-preview,
html[data-yb-theme="dark"] body.reference-mode #app .ref-sidebar .ref-directory-row-copy small {
  color: rgb(168 168 178);
}

body.reference-mode #app .ref-contact-group > summary {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  color: rgb(100 100 110);
}

/* 主画布顶栏：48px 清晰稳重 + 15px/600 标题 */
body.reference-mode #app :is(.ref-topbar, .social-chat-head, .ref-empty-topbar, .workspace-directory-toolbar) {
  min-height: 48px;
  height: 48px;
  padding: 0 18px;
}

body.reference-mode #app :is(.ref-page-title, .social-chat-head h1, .workspace-directory-toolbar h2) {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

body.reference-mode #app .ref-assistant-shell .yb-topbar-persona-pill strong {
  font-size: 15px;
  font-weight: 600;
}

body.reference-mode #app .ref-assistant-shell .ref-assistant-header-avatar .xiaoyu-pet {
  width: 26px;
  height: 26px;
}

/* 聊天气泡饱满舒展排版：15px 正文 / 1.68 行高 / 13px 发送者 / 12px 时间 / 30px 头像 */
body #app .social-message-list,
body #app .daily-messages {
  gap: 16px;
}

body #app .social-message .social-avatar,
body #app .daily-message .daily-avatar,
body #app .daily-message-avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
}

body #app .social-message-author,
body #app .daily-message-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  gap: 7px;
  margin-bottom: 5px;
}

.social-chat .social-message-reference[data-social-agent-handoff] {
  min-block-size: 28px;
  border-inline-start: 2px solid var(--wb-line-strong);
  background: var(--wb-surface);
  color: var(--wb-ink);
}
.social-chat .social-message-reference[data-social-agent-handoff]:hover {
  background: var(--wb-accent-soft);
}
.social-chat .social-message-reference[data-social-agent-handoff] .social-reference-author {
  flex: 0 0 auto;
  max-inline-size: min(60%, 12rem);
  font-weight: 650;
}
.social-chat .social-agent-handoff-targets {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-block-start: 7px;
  color: var(--wb-ink);
  font-size: .75rem;
  line-height: 1.45;
}
.social-agent-handoff-targets strong { font-weight: 650; overflow-wrap: anywhere; }
.social-chat .social-run .social-run-retry-error { flex-basis: 100%; color: var(--wb-ink); }
.social-chat .social-run [aria-disabled="true"] { cursor: wait; }

body #app .daily-message-label > .daily-small,
body #app .social-message-author small,
body #app .social-message-meta,
body #app .daily-message-time {
  font-size: 12px;
  font-weight: 400;
  color: rgb(142 142 152);
}

body #app .social-bubble,
body #app .daily-message-text {
  font-size: 15px;
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: 0;
  padding: 12px 16px;
  border-radius: 13px;
  color: rgb(24 24 27);
  background: rgb(246 246 247);
  border: 1px solid rgba(0, 0, 0, 0.045);
  box-shadow: none;
}

body #app .yb-md-table {
  font-size: 14px;
  line-height: 1.6;
}

body #app .social-message.mine .social-bubble,
body #app .daily-message.user .daily-message-text {
  background: rgb(239 240 243);
  border-color: rgba(0, 0, 0, 0.055);
  color: rgb(20 20 24);
}

html[data-yb-theme="dark"] body #app .social-bubble,
html[data-yb-theme="dark"] body #app .daily-message-text {
  color: rgb(240 240 245);
  background: rgb(32 32 36);
  border-color: rgba(255, 255, 255, 0.06);
}

html[data-yb-theme="dark"] body #app .social-message.mine .social-bubble,
html[data-yb-theme="dark"] body #app .daily-message.user .daily-message-text {
  background: rgb(42 42 48);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgb(248 248 250);
}

/* 对话输入器：14.5px 舒服打字字号 + 34px 发送按钮 */
html body #app :is(.social-composer, .daily-composer, .workbench-chat-composer) textarea {
  font-size: 14.5px;
  line-height: 1.6;
}

html body #app :is(.social-send, .daily-send) {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
}

/* 鱼摆摆右侧助理面板：312px 宽 + 14px 饱满清晰列表 */
body.reference-mode #app .ref-assistant-shell .daily-aside.yb-companion-pane {
  width: 312px;
}

body.reference-mode #app .ref-assistant-shell .yb-companion-title,
body.reference-mode #app .ref-assistant-shell .assistant-profile-identity h2 {
  font-size: 15px;
  font-weight: 600;
}

html body #app .assistant-workspace .yb-companion-tab {
  font-size: 13px;
  font-weight: 500;
}

body.reference-mode #app .yb-companion-list-row {
  min-height: 42px;
  padding: 7px 10px;
  border-radius: 10px;
}

body.reference-mode #app .yb-companion-list-row strong {
  font-size: 14px;
  font-weight: 500;
}

body #app .yb-companion-list-row .yb-companion-row-hint {
  font-size: 12px;
}

body.reference-mode #app .yb-companion-list-row > svg:first-child {
  width: 18px;
  height: 18px;
  color: rgb(88 88 98);
}

/* 18.12 消息中栏搜索框防挤压 + 联系人角色设定折叠卡片 + 会话快捷键徽标恢复 */
body.reference-mode #app .ref-sidebar-top {
  gap: 4px;
  padding: 4px 0 6px;
}

body.reference-mode #app .ref-sidebar-heading {
  min-height: 40px;
  margin-block-end: 6px;
  padding: 4px 0 6px;
  border-block-end: 1px solid var(--wb-line);
}

body.reference-mode #app .ref-sidebar-heading :is(.ref-sidebar-icon, .ref-panel-toggle) {
  color: var(--wb-muted);
}

body.reference-mode #app .ref-sidebar-heading :is(.ref-sidebar-icon, .ref-panel-toggle):hover {
  color: var(--wb-ink);
  background: var(--wb-subtle);
}

body.reference-mode #app .ref-sidebar-heading :is(.ref-sidebar-icon, .ref-panel-toggle):focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: -2px;
}

body.reference-mode #app .ref-sidebar-heading .ref-inbox-view-popover {
  max-width: min(200px, calc(var(--ref-sidebar-width, 240px) - 27px));
}

body.reference-mode #app .ref-sidebar-top :is(.ref-sidebar-icon, .ref-panel-toggle),
body.reference-mode #app .ref-inbox-view-menu > summary.ref-sidebar-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  border-radius: 7px;
  flex: none;
}

body.reference-mode #app .ref-sidebar-top > .ref-search {
  flex: 1 1 112px;
  min-width: 112px;
  min-height: 30px;
  height: 30px;
  padding: 0 8px;
  gap: 5px;
  border-radius: 8px;
}

body.reference-mode #app .ref-sidebar-top > .ref-search > svg {
  width: 14px;
  height: 14px;
  flex: none;
}

body.reference-mode #app .ref-sidebar-top .ref-search-input {
  min-width: 0;
  width: 100%;
  font-size: 12.5px;
  padding: 3px 0;
}

body.reference-mode #app .ref-sidebar-primary-line {
  padding: 0;
  margin: 4px 0 8px;
}

body.reference-mode #app .social-chat-head .ref-workspace-search kbd {
  display: inline-flex;
}

/* 联系人目录：收轻添加好友按钮与「新的请求」图标，名片角色设定优雅折叠 */
body.reference-mode #app .ref-directory-sidebar {
  background: color-mix(in srgb, var(--wb-canvas) 70%, var(--wb-hover));
}

body.reference-mode #app .ref-directory-sidebar > .ref-search {
  margin: 4px 12px 12px;
  min-width: 0;
  border-color: transparent;
  border-radius: 9px;
  background: var(--wb-subtle);
}

body.reference-mode #app .ref-directory-sidebar > .ref-search:focus-within {
  border-color: var(--wb-muted);
  background: var(--wb-canvas);
  box-shadow: none;
}

body.reference-mode #app .ref-contact-nav {
  display: grid;
  gap: 4px;
  margin-block: 8px;
}

body.reference-mode #app .ref-contact-nav .ref-directory-row {
  min-height: 38px;
  padding: 6px 10px;
}

body.reference-mode #app .ref-contact-nav :is(.ref-contact-request-icon, .ref-contact-category > svg) {
  width: 19px;
  height: 19px;
  flex: none;
  border: 0;
  background: transparent;
  color: var(--wb-muted);
}

body.reference-mode #app .ref-contact-nav .ref-directory-row[aria-pressed="true"] {
  background: var(--wb-hover);
}

body.reference-mode #app :is(.ref-contact-tile, .ref-contact-nav .ref-directory-row):focus-visible {
  outline: 1px solid var(--wb-muted);
  outline-offset: -2px;
}

body.reference-mode #app .ref-contact-overview > .workspace-directory-toolbar {
  flex: none;
}

body.reference-mode #app .ref-contact-overview .workspace-directory-controls button {
  white-space: nowrap;
}

body.reference-mode #app .ref-contact-directory-content {
  display: grid;
  align-content: start;
  gap: clamp(24px, 3vw, 40px);
  width: min(100%, 1180px);
  min-height: 0;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 44px);
  overflow: auto;
}

body.reference-mode #app .ref-contact-section {
  min-width: 0;
}

body.reference-mode #app .ref-contact-section h3 {
  margin: 0 0 10px;
  color: var(--wb-ink);
  font-size: 15px;
  font-weight: 650;
}

body.reference-mode #app .ref-contact-section h3 > span {
  color: var(--wb-muted);
  font-size: 13px;
  font-weight: 500;
}

body.reference-mode #app .ref-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px clamp(4px, 1.6vw, 24px);
}

body.reference-mode #app .ref-contact-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 57px;
  padding: 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--wb-ink);
  text-align: start;
  font: inherit;
  cursor: pointer;
}

body.reference-mode #app .ref-contact-tile:hover {
  background: var(--wb-subtle);
}

body.reference-mode #app .ref-contact-tile > .social-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
}

body.reference-mode #app .ref-contact-tile-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

body.reference-mode #app .ref-contact-tile-copy > :is(strong, small) {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.reference-mode #app .ref-contact-tile-copy > strong {
  font-size: 14px;
  font-weight: 600;
}

body.reference-mode #app :is(.ref-contact-tile-copy small, .ref-contact-tile-meta time, .ref-contact-section-empty) {
  color: var(--wb-muted);
  font-size: 12px;
}

body.reference-mode #app .ref-contact-tile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  white-space: nowrap;
}

body.reference-mode #app .ref-contact-faces {
  display: inline-flex;
  padding-inline-start: 0;
}

body.reference-mode #app .ref-contact-faces > .social-avatar {
  box-sizing: border-box;
  width: 17px;
  min-width: 17px;
  height: 17px;
  border: 1px solid var(--wb-canvas);
  border-radius: 50%;
  font-size: 8px;
}

body.reference-mode #app .ref-contact-faces > .social-avatar + .social-avatar {
  margin-inline-start: -4px;
}

body.reference-mode #app .ref-contact-section-empty {
  margin: 4px 0;
  font-size: 13px;
}

@media (761px <= width < 980px) {
  body.reference-mode #app .ref-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.reference-mode #app .ref-directory-sidebar .workspace-directory-controls .ref-sidebar-icon {
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  box-shadow: none;
}

body.reference-mode #app .ref-directory-sidebar .workspace-directory-controls .ref-sidebar-icon:hover {
  background: var(--wb-subtle);
  border-color: var(--wb-line-strong);
}

body.reference-mode #app .ref-contact-request-icon {
  background: var(--wb-subtle);
  color: var(--wb-ink);
  border: 1px solid var(--wb-line);
  border-radius: 999px;
}

body.reference-mode #app .ref-contact-prompt-card {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

body.reference-mode #app .ref-contact-prompt-head {
  margin-bottom: 8px;
}

body.reference-mode #app .ref-contact-prompt-head strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wb-ink);
}

body.reference-mode #app .ref-contact-prompt-preview {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--wb-ink-2);
}

body.reference-mode #app .ref-contact-prompt-more {
  margin-top: 10px;
}

body.reference-mode #app .ref-contact-prompt-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--wb-ink-2);
  user-select: none;
}

body.reference-mode #app .ref-contact-prompt-more > summary::-webkit-details-marker {
  display: none;
}

body.reference-mode #app .ref-contact-prompt-more[open] > summary > svg {
  transform: rotate(180deg);
}

body.reference-mode #app .ref-contact-prompt-full {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--wb-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}

body.reference-mode #app .ref-contact-prompt-full h4 {
  margin: 6px 0 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wb-ink);
}

body.reference-mode #app .ref-contact-prompt-full p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--wb-ink-2);
}

/* 18.13 全站单页工具顶栏规整统一（消除漂浮在左上角压歪 h1 的孤立按钮） */
@media (min-width: 761px) {
  html[data-ref-sidebar="closed"] body.reference-mode #app .ref-catalog-topbar {
    position: static;
    inset: auto;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 20px;
    border-bottom: 1px solid var(--wb-line);
    background: var(--wb-canvas);
  }

  html[data-ref-sidebar="closed"] body.reference-mode #app .ref-catalog-topbar :is(.ref-page-title, .ref-header-actions) {
    display: inline-flex;
    align-items: center;
  }

  html[data-ref-sidebar="closed"] body.reference-mode #app .ref-catalog-topbar .ref-panel-toggle {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 8px;
  }

  #app .ref-catalog-shell .desktop-library.dlb-workspace {
    padding-block-start: 22px;
  }
}

/* 全站一级页面标题统一饱满字号层级 + 底部防「回到顶部」按钮遮挡安全留白 */
body #app .app-workspace .page-body {
  padding-bottom: 76px;
}

body #app :is(.wkf-header h1, .ez-header h1, .feature-center-head h1, .dlb-library-nav h1) {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body #app .ui-scroll-top {
  right: 18px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line-strong);
  color: var(--wb-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* 18.14 微信智能客服页精修：去多重套框 + 统一圆角输入框与胶囊徽标 + 中间卡单行不折行 */
body #app .wkf-card.wkf-mode-bar {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(330px, 1.55fr) minmax(200px, 1fr);
  gap: 14px;
}

body #app .wkf-mode-bar .wkf-mode-item {
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line);
  border-radius: 14px;
  padding: 16px 18px;
  gap: 12px;
  justify-content: space-between;
}

body #app .wkf-mode-bar .wkf-seg {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

body #app .wkf-mode-bar .wkf-seg .button {
  white-space: nowrap;
}

@media (max-width: 980px) {
  body #app .wkf-card.wkf-mode-bar {
    grid-template-columns: 1fr;
  }
  body #app .wkf-mode-bar .wkf-seg {
    flex-wrap: wrap;
  }
}

body #app .wkf-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body #app .wkf-pill,
body #app .wkf-tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  color: var(--wb-ink-2);
}

body #app .wkf-pill.accent,
body #app .wkf-tag.accent {
  border-color: var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink);
}

body #app .wkf-pill.warn,
body #app .wkf-tag.warn {
  border-color: rgba(194, 65, 59, 0.24);
  background: rgba(194, 65, 59, 0.08);
  color: rgb(180 48 44);
}

body #app .wkf-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body #app .wkf-quick-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  color: var(--wb-ink-2);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

body #app .wkf-quick-chip:hover:not(:disabled) {
  background: var(--wb-canvas);
  border-color: var(--wb-line-strong);
  color: var(--wb-ink);
}

body #app .wkf-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body #app .wkf-card textarea,
body #app .wkf-card select {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

body #app .wkf-card textarea {
  min-height: 84px;
  resize: vertical;
}

body #app .wkf-card :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea, select):focus {
  border-color: var(--wb-ink);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.07);
}

body #app .wkf-sim-row {
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

body #app .wkf-sim-row button[type="submit"] {
  min-height: 38px;
  padding: 0 18px;
  white-space: nowrap;
}

body #app .wkf-internal-box {
  border: 0;
  background: var(--wb-subtle);
  border-radius: 10px;
  padding: 12px 14px;
}

/* 18.15 资源库（sticky 导航 / 单行筛选 / 去黑三角 / 去旧绿）、应用中心 4×2 齐平、工坊按钮统一 */
@media (min-width: 981px) {
  body #app .dlb-library-nav {
    position: sticky;
    top: 18px;
    align-self: start;
  }
}

body #app .dlb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

@media (min-width: 1240px) {
  body #app .dlb-toolbar {
    flex-wrap: nowrap;
  }
  body #app .dlb-tabs {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }
  body #app .dlb-tools {
    flex-wrap: nowrap;
    min-width: 0;
  }
  body #app .dlb-search {
    min-width: 170px;
    max-width: 240px;
  }
}

body #app .dlb-status.ready {
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
  color: var(--wb-ink);
}

body #app .dlb-status.working {
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line-strong);
  color: var(--wb-ink-2);
}

body #app .dlb-card {
  border-color: var(--wb-line);
  background: var(--wb-canvas);
}

body #app .dlb-integration-requirements > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--wb-ink-2);
}

body #app .dlb-integration-requirements > summary::-webkit-details-marker {
  display: none;
}

body #app .dlb-integration-requirements > summary::after {
  content: "▾";
  font-size: 11px;
  opacity: 0.65;
}

body #app .dlb-integration-requirements[open] > summary::after {
  content: "▴";
}

body #app .dlb-integration-mark {
  color: var(--wb-ink-2);
  background: var(--wb-subtle);
  border-color: var(--wb-line);
}

@media (min-width: 960px) {
  body #app .feature-center-launcher {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  body #app .dlb-local-agents .dlb-integration-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body #app .ez-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

body #app .ez-header-tools button,
body #app .ez-sub-pickers button {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-size: 13px;
  font-weight: 500;
}

body #app .ez-header-tools button:hover:not(:disabled),
body #app .ez-sub-pickers button:hover:not(:disabled) {
  background: var(--wb-subtle);
  border-color: var(--wb-ink);
}

/* 18.16 设置大弹窗：桌面黄金居中尺寸与柔和禁用态 */
@media (min-width: 980px) {
  body .desktop-settings-dialog {
    width: min(940px, calc(100vw - 72px));
    max-width: 940px;
    height: min(680px, calc(100vh - 72px));
    max-height: 680px;
  }
}

body .desktop-settings-dialog .ds-button:disabled {
  background: var(--wb-subtle);
  border-color: var(--wb-line);
  color: var(--wb-muted);
  opacity: 0.82;
}

/* 18.17 微信智能客服「AI 极简接管模式」高定布局（居中 920px 黄金宽 / 极少文字 / 一句话交给 AI） */
body #app .wkf-page.is-simple {
  max-width: 940px;
  margin: 0 auto;
}

body #app .wkf-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

body #app .wkf-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body #app .wkf-simple-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body #app .wkf-ai-command-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
}

body #app .wkf-ai-command-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

body #app .wkf-ai-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
}

body #app .wkf-ai-command-head h2 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--wb-ink);
}

body #app .wkf-ai-command-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

body #app .wkf-ai-command-form input {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14.5px;
  border-radius: 11px;
}

body #app .wkf-ai-command-form button[type="submit"] {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 11px;
  white-space: nowrap;
}

body #app .wkf-quick-chip.is-active {
  background: var(--wb-ink);
  border-color: var(--wb-ink);
  color: var(--wb-canvas);
  font-weight: 500;
}

body #app .wkf-quick-chip.is-active:hover:not(:disabled) {
  background: var(--wb-accent-hover);
  border-color: var(--wb-accent-hover);
  color: var(--wb-canvas);
}

body #app .wkf-ai-reply-banner {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--wb-ink);
}

body #app .wkf-setup-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 820px) {
  body #app .wkf-setup-strip {
    grid-template-columns: 1fr;
  }
}

body #app .wkf-setup-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

body #app .wkf-setup-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

body #app .wkf-setup-label {
  font-size: 12px;
  color: var(--wb-muted);
}

body #app .wkf-setup-copy strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--wb-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body #app .wkf-setup-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

body #app .wkf-qr-mini {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--wb-line);
}

body #app .wkf-simple-approval {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

body #app .wkf-simple-approval-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

body #app .wkf-simple-calc-hint {
  font-size: 12.5px;
  color: var(--wb-muted);
}

body #app .wkf-simple-inbound {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--wb-subtle);
  font-size: 14px;
  line-height: 1.55;
  color: var(--wb-ink);
}

body #app .wkf-simple-reply-box {
  min-height: 76px;
}

/* 18.18 标杆级 App 商店（纯白无边框 3 列 + 52px 原创苹果图标 + 黑/灰胶囊）+ 对话右上角「应用」与右侧配置抽屉 */
body #app .zyh-app-icon {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 26%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body #app .zyh-app-icon > svg {
  display: block;
  width: 100%;
  height: 100%;
}

body #app .zyh-app-icon .zyh-app-icon-pet {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* 左轨中段已安装的彩色 App 小图标（对齐标杆左轨宝石质感） */
body.reference-mode #app nav.ref-rail .ref-rail-button.ref-rail-app-dock {
  padding: 0;
}

body.reference-mode #app nav.ref-rail .ref-rail-button.ref-rail-app-dock .zyh-app-icon {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

/* 工作台应用目录 */
body #app .zyh-app-store {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 40px 72px;
}

body #app .zyh-store-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body #app .zyh-store-head-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

body #app .zyh-store-head-left h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--wb-ink);
  letter-spacing: -0.02em;
}

body #app .zyh-store-env {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--wb-muted);
}

body #app .zyh-store-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 248px;
  max-width: 100%;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-muted);
}

body #app .zyh-store-search:focus-within {
  border-color: var(--wb-ink);
}

body #app .zyh-store-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--wb-ink);
  font-size: 13.5px;
}

body #app .zyh-store-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 18px 0 22px;
}

body #app .zyh-store-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(212 212 216);
}

body #app .zyh-store-dots span.is-active {
  background: var(--wb-ink);
}

body #app .zyh-store-section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}

body #app .zyh-store-section-head,
body #app .zyh-store-status-actions {
  flex-wrap: wrap;
  gap: 8px 12px;
}

body #app .zyh-store-status-actions {
  display: flex;
  align-items: center;
}

body #app .dlb-integrations > .workbench-status-filters {
  margin-block: 2px 8px;
}

body #app .zyh-store-section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--wb-ink);
}

body #app .zyh-store-count {
  font-size: 13.5px;
  color: var(--wb-muted);
}

body #app .zyh-store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}

@media (max-width: 1080px) {
  body #app .zyh-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body #app .zyh-store-grid {
    grid-template-columns: 1fr;
  }
}

body #app .zyh-store-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 4px 0;
}

body #app .zyh-store-row[data-store-app] { gap: 10px; }

body #app .zyh-store-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body #app .zyh-store-copy strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--wb-ink);
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

body #app .zyh-store-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--wb-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body #app .zyh-store-copy .dlb-integration-status {
  align-self: flex-start;
}

body #app .zyh-store-copy .zyh-store-detail,
body #app .dlb-integration-setup {
  white-space: normal;
  overflow-wrap: anywhere;
}

body #app .dlb-integration-setup {
  margin: 4px 0 0;
  color: var(--wb-muted);
  font-size: 12px;
}

body #app .app-setup-return {
  margin: 12px var(--wb-page-pad, 20px) 0;
}

body #app .zyh-store-cta {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

body #app .zyh-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 30px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 120ms ease, background-color 140ms ease;
}

body #app .zyh-store-row[data-store-app] .zyh-store-btn {
  min-inline-size: 52px;
  padding-inline: 12px;
}

body #app .zyh-store-btn.is-install {
  background: var(--wb-ink);
  color: var(--wb-canvas);
}

body #app .zyh-store-btn.is-install:hover {
  background: var(--wb-accent-hover);
}

body #app .zyh-store-btn.is-open {
  background: rgb(238 238 240);
  color: var(--wb-ink);
}

body #app .zyh-store-btn.is-open:hover {
  background: rgb(228 228 231);
}

html[data-yb-theme="dark"] body #app .zyh-store-btn.is-open {
  background: rgba(255, 255, 255, 0.12);
  color: var(--wb-ink);
}

body #app .zyh-store-remove {
  border: 0;
  background: transparent;
  color: var(--wb-muted);
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 140ms ease, color 140ms ease;
}

body #app .zyh-store-row:hover .zyh-store-remove,
body #app .zyh-store-remove:focus-visible {
  opacity: 1;
}

body #app .zyh-store-remove:hover {
  color: var(--wb-danger);
  background: var(--wb-subtle);
}

body #app .zyh-store-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--wb-muted);
  font-size: 14px;
}

/* 对话右上角「⊞ 应用」按钮与精致下拉列表 */
body #app .zyh-chat-apps-menu {
  position: relative;
}

body #app .zyh-chat-apps-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  cursor: pointer;
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--wb-ink-2);
  font-size: 13.5px;
  font-weight: 500;
  user-select: none;
}

body #app .zyh-chat-apps-trigger::-webkit-details-marker {
  display: none;
}

body #app .zyh-chat-apps-trigger:hover,
body #app .zyh-chat-apps-menu[open] > .zyh-chat-apps-trigger,
body #app .zyh-chat-apps-trigger.is-active {
  background: var(--wb-subtle);
  color: var(--wb-ink);
  border-color: var(--wb-line);
}

body #app .zyh-chat-apps-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  max-height: min(72vh, 480px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  box-shadow: var(--wb-overlay-shadow);
  z-index: 80;
  overflow: hidden;
}

body #app .zyh-chat-apps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--wb-line);
}

body #app .zyh-chat-apps-head strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wb-ink);
}

body #app .zyh-chat-apps-head small {
  font-size: 12px;
  color: var(--wb-muted);
}

body #app .zyh-chat-apps-list {
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body #app .zyh-chat-apps-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

body #app .zyh-chat-apps-item:hover,
body #app .zyh-chat-apps-item.is-open {
  background: var(--wb-subtle);
}

body #app .zyh-chat-apps-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body #app .zyh-chat-apps-copy strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wb-ink);
}

body #app .zyh-chat-apps-copy small {
  font-size: 12px;
  color: var(--wb-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body #app .zyh-chat-apps-badge {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(238 238 240);
  color: var(--wb-ink);
  font-size: 12px;
  font-weight: 500;
}

body #app .zyh-chat-apps-badge.is-open {
  background: var(--wb-ink);
  color: var(--wb-canvas);
}

body #app .zyh-chat-apps-empty {
  margin: 0;
  padding: 20px 16px;
  font-size: 13px;
  color: var(--wb-muted);
  text-align: center;
}

body #app .zyh-chat-apps-foot {
  padding: 8px;
  border-top: 1px solid var(--wb-line);
}

body #app .zyh-chat-apps-store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  color: var(--wb-ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

body #app .zyh-chat-apps-store-btn:hover {
  background: rgb(236 236 239);
}

/* 对话右侧内嵌应用配置抽屉（左聊天、右配置，零跳页！） */
html[data-zyh-app-drawer-open] body #app .daily-page > .daily-layout > .daily-aside {
  display: none;
}

html[data-zyh-app-drawer-open] body #app .daily-page > .daily-layout,
html[data-zyh-app-drawer-open] body #app .ref-assistant-shell .daily-page.ref-planning-open > .daily-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 468px);
  gap: 0;
}

html[data-zyh-app-drawer-open="wide"] body #app .daily-page > .daily-layout,
html[data-zyh-app-drawer-open="wide"] body #app .ref-assistant-shell .daily-page.ref-planning-open > .daily-layout {
  grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
}

html[data-zyh-app-drawer-open] body #app .social-app > .social-main:has(> .social-chat) {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(440px, 500px);
  grid-template-rows: minmax(0, 1fr);
}

html[data-zyh-app-drawer-open="wide"] body #app .social-app > .social-main:has(> .social-chat) {
  grid-template-columns: minmax(280px, 0.72fr) minmax(540px, 1.28fr);
}

html[data-zyh-app-drawer-open] body #app .social-app > .social-main > .social-chat {
  min-width: 0;
  min-height: 0;
}

body #app .zyh-app-drawer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-inline-start: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  overflow: hidden;
}

body #app .zyh-app-drawer-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 48px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

body #app .zyh-app-drawer-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

body #app .zyh-app-drawer-title strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--wb-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body #app .zyh-app-drawer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

body #app .zyh-app-drawer-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--wb-muted);
  cursor: pointer;
}

body #app .zyh-app-drawer-icon:hover {
  background: var(--wb-subtle);
  color: var(--wb-ink);
}

body #app .zyh-app-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

body #app .zyh-app-drawer-body > .page-body,
body #app .zyh-app-drawer-body > .ez-shell {
  padding: 16px 18px 44px;
  max-width: 100%;
}

/* 抽屉顶栏已展示图标与应用名，隐藏内部重复的一级大标题以释放首屏垂直空间 */
body #app .zyh-app-drawer-body :is(.wkf-header h1, .ez-header h1) {
  display: none;
}

body #app .zyh-app-drawer-body .wkf-setup-strip {
  grid-template-columns: 1fr;
}

body #app .zyh-app-drawer-body .wkf-card.wkf-mode-bar {
  grid-template-columns: 1fr;
}

body #app .zyh-app-drawer-body .wkf-ai-command-form {
  grid-template-columns: 1fr;
}

body #app .zyh-app-drawer-empty {
  padding: 28px 20px;
  color: var(--wb-muted);
  font-size: 14px;
  text-align: center;
}

/* 18.19 全视口响应式精修：助理面板永不掉底、双场景右侧抽屉零溢出、极简引导条、输入器不折断、资源库工整两行 */

/* A. 鱼摆摆对话页：全高贴边工作画布 + 助理面板宽屏贴右全高 / 中窄屏右侧浮层抽屉（彻底杜绝掉到输入栏下方悬空） */
body.reference-mode #app .ref-assistant-shell .ref-task-page {
  padding: 0;
  overflow: hidden;
}

body.reference-mode #app .ref-assistant-shell .daily-page > .daily-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  gap: 0;
  overflow: hidden;
}

body.reference-mode #app .ref-assistant-shell .daily-page > .daily-layout > .daily-chat {
  height: 100%;
  min-height: 0;
  padding: 0 clamp(14px, 2.2vw, 32px) 16px;
  overflow: hidden;
}

body.reference-mode #app .ref-assistant-shell .daily-page > .daily-layout > .daily-chat > .daily-messages {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
}

body.reference-mode #app .ref-assistant-shell .daily-aside.yb-companion-pane {
  align-self: stretch;
  width: 304px;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 10px 14px 14px;
  border: 0;
  border-inline-start: 1px solid var(--wb-line);
  border-radius: 0;
  background: var(--wb-canvas);
  box-shadow: none;
  overflow: hidden;
}

@media (min-width: 1160px) {
  body.reference-mode #app .ref-assistant-shell .daily-page.ref-planning-open > .daily-layout {
    grid-template-columns: minmax(0, 1fr) 304px;
    gap: 0;
  }
}

@media (max-width: 1159px) {
  body.reference-mode #app .ref-assistant-shell .daily-page.ref-planning-open > .daily-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
  }

  body.reference-mode #app .ref-assistant-shell .daily-page.ref-planning-open > .daily-layout > .daily-chat {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.reference-mode #app .ref-assistant-shell .daily-page.ref-planning-open > .daily-layout > .daily-aside.yb-companion-pane {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 45;
    width: min(320px, 88%);
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 10px 14px 14px;
    border: 0;
    border-inline-start: 1px solid var(--wb-line-strong);
    border-radius: 0;
    background: var(--wb-canvas);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }
}

/* B. 对话右侧内嵌应用配置抽屉：宽屏左右并排，中窄屏自动转为右侧贴边浮层抽屉，彻底消灭横向溢出与标题挤碎 */
body #app .social-app > .social-main {
  position: relative;
  overflow: hidden;
}

html[data-zyh-app-drawer-open] body.reference-mode #app .ref-assistant-shell .daily-page > .daily-layout > .daily-aside,
html[data-zyh-app-drawer-open] body.reference-mode #app .ref-assistant-shell .daily-page.ref-planning-open > .daily-layout > .daily-aside.yb-companion-pane {
  display: none;
}

html[data-zyh-app-drawer-open] body.reference-mode #app .ref-assistant-shell .daily-page > .daily-layout,
html[data-zyh-app-drawer-open] body.reference-mode #app .ref-assistant-shell .daily-page.ref-planning-open > .daily-layout {
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 468px);
  grid-template-rows: minmax(0, 1fr);
}

html[data-zyh-app-drawer-open="wide"] body.reference-mode #app .ref-assistant-shell .daily-page > .daily-layout,
html[data-zyh-app-drawer-open="wide"] body.reference-mode #app .ref-assistant-shell .daily-page.ref-planning-open > .daily-layout {
  grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
  grid-template-rows: minmax(0, 1fr);
}

@media (min-width: 1160px) {
  html[data-zyh-app-drawer-open] body.reference-mode #app .ref-assistant-shell .daily-page > .daily-layout > .daily-chat {
    grid-column: 1;
    grid-row: 1;
  }

  html[data-zyh-app-drawer-open] body.reference-mode #app .ref-assistant-shell .daily-page > .daily-layout > .zyh-app-drawer {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 1159px) {
  html[data-zyh-app-drawer-open] body #app .daily-page > .daily-layout,
  html[data-zyh-app-drawer-open] body.reference-mode #app .ref-assistant-shell .daily-page > .daily-layout,
  html[data-zyh-app-drawer-open] body.reference-mode #app .ref-assistant-shell .daily-page.ref-planning-open > .daily-layout,
  html[data-zyh-app-drawer-open="wide"] body #app .daily-page > .daily-layout,
  html[data-zyh-app-drawer-open="wide"] body.reference-mode #app .ref-assistant-shell .daily-page > .daily-layout,
  html[data-zyh-app-drawer-open="wide"] body.reference-mode #app .ref-assistant-shell .daily-page.ref-planning-open > .daily-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-zyh-app-drawer-open] body #app .daily-page > .daily-layout > .zyh-app-drawer {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 55;
    width: min(468px, 92%);
    max-width: 100%;
    height: 100%;
    border-inline-start: 1px solid var(--wb-line-strong);
    box-shadow: -14px 0 36px rgba(0, 0, 0, 0.10);
  }

  html[data-zyh-app-drawer-open="wide"] body #app .daily-page > .daily-layout > .zyh-app-drawer {
    width: min(680px, 96%);
  }
}

@media (max-width: 1319px) {
  html[data-zyh-app-drawer-open] body #app .social-app > .social-main:has(> .social-chat),
  html[data-zyh-app-drawer-open="wide"] body #app .social-app > .social-main:has(> .social-chat) {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-zyh-app-drawer-open] body #app .social-app > .social-main > .zyh-app-drawer {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 55;
    width: min(460px, 94%);
    max-width: 100%;
    height: 100%;
    border-inline-start: 1px solid var(--wb-line-strong);
    box-shadow: -14px 0 36px rgba(0, 0, 0, 0.10);
  }

  html[data-zyh-app-drawer-open="wide"] body #app .social-app > .social-main > .zyh-app-drawer {
    width: min(660px, 96%);
  }
}

/* C. 顶部新手引导条：收轻为精致单行辅助提示条，绝不抢戏、绝不出现孤立两字折行 */
body #app .ref-task-main > .welcome-banner {
  margin: 8px 18px 2px;
  padding: 6px 12px;
  min-height: 38px;
  gap: 8px;
  flex-wrap: nowrap;
  border-radius: 10px;
  border: 1px solid var(--wb-line);
  background: var(--wb-subtle);
  color: var(--wb-muted);
  font-size: 13px;
}

body #app .ref-task-main > .welcome-banner > span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body #app .ref-task-main > .welcome-banner .button {
  flex: none;
  white-space: nowrap;
  min-height: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
}

@media (max-width: 640px) {
  body #app .ref-task-main > .welcome-banner {
    flex-wrap: wrap;
    margin: 6px 12px 2px;
  }
}

/* D. 输入器模型名保持单行清爽不折断 + 窄容器优雅两行排布 */
body #app .assistant-workspace .model-picker-model-trigger {
  max-width: 220px;
}

body #app .assistant-workspace .model-picker-trigger-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body #app .workbench-chat-composer [data-workbench-composer-toolbar] {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 6px;
}

body #app [data-workbench-composer-toolbar] .workbench-composer-tools {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
}

body #app [data-workbench-composer-toolbar] .workbench-composer-submit {
  display: flex;
  flex: 0 1 auto;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  max-width: 72%;
  margin-inline-start: auto;
  gap: 5px;
}

body #app .workbench-composer-submit :is(.conversation-model-picker, .model-picker-model-trigger, .social-composer-model) {
  min-width: 0;
}

body #app .workbench-composer-submit :is(.model-picker-model-trigger, .social-composer-model) {
  overflow: hidden;
  justify-content: flex-start;
}

@media (max-width: 460px) {
  body #app .workbench-composer-submit .model-picker-model-trigger :is(.model-picker-unavailable, .model-picker-effort) {
    display: none;
  }
}

body #app .workbench-composer-submit :is(.model-picker-trigger-name, [data-social-model-selection]) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body #app .workbench-composer-submit :is(.workbench-chat-send, button[type="submit"]) {
  flex: none;
  margin-inline-start: 0;
  white-space: nowrap;
}

body .model-selection-context {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
  margin-block: 4px;
  padding: 4px 0;
  border-bottom: 1px solid var(--wb-line);
  color: var(--wb-muted);
  font-size: 12px;
  line-height: 1.45;
}

body .model-selection-context .model-selection-scope {
  color: var(--wb-ink);
  font-weight: 600;
  white-space: nowrap;
}

body .model-selection-context .model-selection-payer {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body .model-picker-dialog .model-selection-context {
  margin-inline: 12px;
}

.assistant-activity-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assistant-activity-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  padding-block: 7px;
  border-bottom: 1px solid var(--wb-line);
}

.assistant-activity-card-copy {
  flex: 1 1 116px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.assistant-activity-card-copy h3 {
  margin: 0;
  color: var(--wb-ink);
  font-size: 13px;
  font-weight: 600;
}

.assistant-activity-state,
.assistant-activity-scope {
  color: var(--wb-muted);
  font-size: 12px;
}

.assistant-activity-receipt {
  margin-block: 8px;
  padding: 10px;
  border: 1px solid var(--wb-line-strong);
  border-radius: var(--wb-control-radius);
  background: var(--wb-canvas);
}

.assistant-activity-focus {
  outline: 2px solid var(--wb-accent);
  outline-offset: 2px;
}

/* E. 消息顶栏窄屏收紧「快速前往」释放标题空间 + 资源库中屏工整两行筛选 + App 商店顶距微调 */
@media (max-width: 1120px) {
  body.reference-mode #app .social-chat-head .ref-workspace-search {
    width: 32px;
    min-width: 32px;
    padding: 0;
    justify-content: center;
  }

  body.reference-mode #app .social-chat-head .ref-workspace-search :is(.ref-workspace-search-label, kbd) {
    display: none;
  }
}

@media (max-width: 1239px) {
  body #app .dlb-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body #app .dlb-tools {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  body #app .dlb-tools .dlb-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  body #app .dlb-tools .dlb-search input {
    width: 100%;
  }
}

@media (max-width: 960px) {
  body #app .zyh-app-store {
    padding: 18px 24px 56px;
  }
}

/* 鱼摆摆首屏渔具专属引导与对话气泡内渔具方案胶囊高亮 */
body #app .ref-task-empty .zyh-fishing-empty-sub {
  margin: 0;
  max-width: 560px;
  color: var(--wb-muted);
  font-size: 14px;
  font-weight: 470;
  line-height: 1.55;
  text-align: center;
}

body #app .ref-task-empty .zyh-fishing-starters {
  justify-content: center;
  max-width: 680px;
  margin-top: 6px;
}

body #app .xiaoyu-concierge-option.is-selected {
  background: var(--wb-accent);
  color: var(--wb-accent-text);
  border-color: var(--wb-accent);
  font-weight: 600;
}

body #app .zyh-chat-apps-main-btn {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body #app .zyh-agent-followup-pills {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--wb-line-strong);
}

/* ==========================================================================
   鱼摆摆 · 对话框上方浮层式分步提问卡（对齐 Claude / GPT 交互提问体验）
   ========================================================================== */
@keyframes zyhAskDockIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body #app .zyh-ask-dock-host {
  width: 100%;
  margin: 0 0 8px;
}

body #app .zyh-ask-dock-host[hidden] {
  display: none;
}

body #app .daily-chat.has-feed > .daily-messages {
  min-height: 0;
}

body #app .zyh-ask-dock {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 13px 9px;
  border-radius: 15px;
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line-strong);
  box-shadow: var(--wb-overlay-shadow);
  animation: zyhAskDockIn 180ms var(--wb-ease);
}

body #app .zyh-ask-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body #app .zyh-ask-dock-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body #app .zyh-ask-dock-brand .xiaoyu-concierge-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

body #app .zyh-ask-dock-brand .xiaoyu-concierge-avatar img {
  width: 24px;
  height: 24px;
}

body #app .zyh-ask-dock-brand strong {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--wb-ink);
  letter-spacing: -0.01em;
}

body #app .zyh-ask-dock-progress {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--wb-muted);
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
  padding: 2px 8px;
  border-radius: 999px;
}

body #app .zyh-ask-dock-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

body #app .zyh-ask-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  color: var(--wb-ink-2);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

body #app .zyh-ask-icon-btn:hover:not(:disabled) {
  background: var(--wb-hover);
  border-color: var(--wb-line-strong);
  color: var(--wb-ink);
}

body #app .zyh-ask-icon-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

body #app .zyh-ask-dock-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--wb-line);
}

body #app .zyh-ask-step-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--wb-subtle);
  color: var(--wb-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

body #app .zyh-ask-step-tab:hover {
  background: var(--wb-hover);
  color: var(--wb-ink);
}

body #app .zyh-ask-step-tab.is-active {
  background: var(--wb-accent);
  color: var(--wb-accent-text);
  font-weight: 600;
}

body #app .zyh-ask-step-tab.has-value:not(.is-active) {
  border-color: var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink);
}

body #app .zyh-ask-step-num {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  background: rgba(127, 127, 127, 0.16);
}

body #app .zyh-ask-step-tab.is-active .zyh-ask-step-num {
  background: rgba(255, 255, 255, 0.22);
}

body #app .zyh-ask-step-badge {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.18);
}

body #app .zyh-ask-dock-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(190px, 28vh);
  overflow-y: auto;
}

body #app .zyh-ask-dock-question {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

body #app .zyh-ask-dock-question strong {
  font-size: 14px;
  font-weight: 640;
  color: var(--wb-ink);
}

body #app .zyh-ask-dock-question span {
  font-size: 12px;
  color: var(--wb-muted);
}

body #app .zyh-ask-dock-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

body #app .zyh-ask-group-label {
  flex: 0 0 58px;
  padding-top: 6px;
  font-size: 12px;
  font-weight: 560;
  color: var(--wb-muted);
}

body #app .zyh-ask-dock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1 1 auto;
}

body #app .zyh-ask-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  color: var(--wb-ink-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms var(--wb-ease);
}

body #app .zyh-ask-chip.is-compact {
  padding: 5px 10px;
  font-size: 12.5px;
}

body #app .zyh-ask-chip:hover:not(:disabled) {
  background: var(--wb-hover);
  border-color: var(--wb-ink-2);
  color: var(--wb-ink);
}

body #app .zyh-ask-chip.is-selected {
  background: var(--wb-accent);
  border-color: var(--wb-accent);
  color: var(--wb-accent-text);
  font-weight: 600;
}

body #app .zyh-ask-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 9px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-subtle);
  color: var(--wb-ink);
  font-size: 13px;
  outline: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

body #app .zyh-ask-input:focus {
  border-color: var(--wb-accent);
  background: var(--wb-canvas);
}

body #app .zyh-ask-dock-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
  font-size: 12px;
  line-height: 1.45;
}

body #app .zyh-ask-summary-label {
  flex: 0 0 auto;
  font-weight: 640;
  color: var(--wb-ink);
}

body #app .zyh-ask-summary-text {
  color: var(--wb-ink-2);
}

body #app .zyh-ask-dock-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--wb-line);
}

body #app .zyh-ask-dock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

@media (max-width: 640px) {
  body #app .zyh-ask-dock-group {
    flex-direction: column;
    gap: 5px;
  }

  body #app .zyh-ask-group-label {
    flex: none;
    padding-top: 0;
  }
}

/* ==========================================================================
   鱼摆摆 · 视频四步导演流程卡片（1.选条件 → 2.选剧情 → 3.参考图与分镜词 → 4.确认生视频）
   ========================================================================== */
body #app .zyh-vpipe-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

body #app .zyh-vpipe-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body #app .zyh-vpipe-step {
  font-size: 12px;
  font-weight: 560;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
  color: var(--wb-muted);
}

body #app .zyh-vpipe-step.is-active {
  background: var(--wb-accent);
  border-color: var(--wb-accent);
  color: var(--wb-accent-text);
  font-weight: 620;
}

body #app .zyh-vpipe-step.is-done {
  background: var(--wb-canvas);
  border-color: var(--wb-line-strong);
  color: var(--wb-ink);
}

body #app .zyh-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

body #app .zyh-story-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 13px;
  border-radius: 13px;
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line-strong);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

body #app .zyh-story-card:hover {
  border-color: var(--wb-ink);
  box-shadow: var(--wb-float-shadow);
}

body #app .zyh-story-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body #app .zyh-story-tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 620;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
  color: var(--wb-ink);
}

body #app .zyh-story-head strong {
  font-size: 14px;
  line-height: 1.4;
  color: var(--wb-ink);
}

body #app .zyh-story-summary,
body #app .zyh-story-line {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--wb-ink-2);
}

body #app .zyh-story-actions {
  margin-top: auto;
  padding-top: 6px;
}

body #app .zyh-ref-card,
body #app .zyh-shots-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line-strong);
}

body #app .zyh-ref-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

body #app .zyh-ref-thumb {
  display: inline-block;
  max-width: 240px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--wb-line-strong);
}

body #app .zyh-ref-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

body #app .zyh-shot-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
}

body #app .zyh-shot-time {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line-strong);
  color: var(--wb-ink);
}

body #app .zyh-shot-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--wb-ink);
}

body #app .zyh-shot-copy small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--wb-muted);
}

body #app .zyh-vpipe-prompt {
  min-height: 104px;
  line-height: 1.55;
  resize: vertical;
}

/* 多关键转场参考图画廊与全链路 AI 自检报告卡片 */
body #app .zyh-ref-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px;
}

body #app .zyh-ref-gallery.is-single {
  grid-template-columns: minmax(0, 320px);
}

body #app .zyh-ref-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
}

body #app .zyh-ref-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

body #app .zyh-ref-item-head strong {
  font-size: 13px;
  font-weight: 650;
  color: var(--wb-ink);
}

body #app .zyh-ref-badge {
  font-size: 11.5px;
  font-weight: 640;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line-strong);
  color: var(--wb-ink);
}

body #app .zyh-ref-reason {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--wb-muted);
}

body #app .zyh-ref-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 14px;
  border-radius: 9px;
  background: var(--wb-canvas);
  border: 1px dashed var(--wb-line-strong);
  font-size: 12.5px;
  color: var(--wb-muted);
  text-align: center;
}

body #app .zyh-ref-item-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body #app .zyh-qc-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--wb-line-strong);
  background: var(--wb-canvas);
  margin-top: 4px;
}

body #app .zyh-qc-box.is-compact {
  padding: 7px 9px;
}

body #app .zyh-qc-box.is-pass {
  border-color: rgb(34 139 94 / 0.35);
  background: rgb(240 250 245);
}

body #app .zyh-qc-box.is-fixed {
  border-color: rgb(37 99 235 / 0.32);
  background: rgb(239 246 255);
}

body #app .zyh-qc-box.is-warn {
  border-color: rgb(217 119 6 / 0.45);
  background: rgb(255 251 235);
}

body #app .zyh-qc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

body #app .zyh-qc-badge {
  font-size: 12.5px;
  font-weight: 660;
  color: var(--wb-ink);
}

body #app .zyh-qc-model {
  font-size: 11.5px;
  color: var(--wb-muted);
}

body #app .zyh-qc-summary {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--wb-ink);
}

body #app .zyh-qc-issues {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: rgb(146 64 14);
}

body #app .zyh-qc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

/* ==========================================================================
   全站精工自定义下拉选择（替代浏览器原生直角黑框）& 四大高频界面细节精修
   ========================================================================== */

select.zyh-select-native {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
  overflow: hidden;
}

html body .zyh-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 11px 7px 12px;
  border: 1px solid var(--wb-line-strong);
  border-radius: 10px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-family: var(--wb-font);
  font-size: 13.5px;
  font-weight: 480;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

html body .zyh-select-trigger:hover:not(:disabled) {
  border-color: rgba(15, 23, 42, 0.28);
  background: var(--wb-subtle);
}

html body .zyh-select-trigger:focus-visible,
html body .zyh-select-trigger.is-open {
  outline: none;
  border-color: var(--wb-accent);
  background: var(--wb-canvas);
  box-shadow: 0 0 0 3px var(--wb-accent-soft);
}

html body .zyh-select-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  background: var(--wb-subtle);
}

html body .zyh-select-trigger.is-placeholder .zyh-select-text {
  color: var(--wb-muted);
}

html body .zyh-select-trigger.is-settings {
  min-height: 40px;
  font-size: 14px;
  background: var(--ds-paper, var(--wb-canvas));
  border-color: var(--ds-field-border, var(--wb-line-strong));
  color: var(--ds-fg, var(--wb-ink));
}

html body .zyh-select-trigger.is-settings:hover:not(:disabled) {
  border-color: var(--ds-accent, var(--wb-accent));
  background: var(--ds-surface, var(--wb-subtle));
}

html body .zyh-select-trigger.is-inline {
  width: auto;
  min-width: 136px;
  max-width: 100%;
  flex-shrink: 0;
}

.desktop-settings-dialog .ds-row > .zyh-select-trigger {
  width: auto;
  min-width: 148px;
  max-width: 52%;
  flex-shrink: 0;
}

.ds-usage-pages .zyh-select-trigger.is-compact {
  min-height: 30px;
  min-width: 74px;
  padding: 4px 8px 4px 10px;
  border-radius: 8px;
  font-size: 12.5px;
}

html body .zyh-select-trigger.is-compact {
  min-height: 30px;
  padding: 4px 8px 4px 10px;
  border-radius: 8px;
  font-size: 12.5px;
}

/* 图 4：对话模型选择器内来源切换胶囊（单行、单箭头、零换行） */
.social-model-filter:has(> .zyh-select-trigger) > svg {
  display: none;
}

html body .social-model-menu.is-desktop-compact .social-model-filter > .zyh-select-trigger.is-social-filter {
  min-height: 28px;
  padding: 3px 8px 3px 9px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  background: var(--wb-subtle);
  color: var(--wb-ink);
  font-size: 12.5px;
  font-weight: 540;
  box-shadow: none;
  gap: 5px;
}

html body .social-model-menu.is-desktop-compact .social-model-filter > .zyh-select-trigger.is-social-filter:hover:not(:disabled),
html body .social-model-menu.is-desktop-compact .social-model-filter > .zyh-select-trigger.is-social-filter.is-open {
  background: var(--wb-hover);
  border-color: var(--wb-line-strong);
  box-shadow: none;
}

.zyh-select-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.zyh-select-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zyh-select-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--wb-ink-2);
}

.zyh-select-mark img,
.zyh-select-mark svg {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.zyh-select-chevron {
  flex: 0 0 auto;
  color: var(--wb-muted);
  transition: transform 160ms var(--wb-ease), color 140ms ease;
}

.zyh-select-trigger.is-open .zyh-select-chevron {
  transform: rotate(180deg);
  color: var(--wb-ink);
}

/* Top-Layer 悬浮圆角下拉菜单卡片 */
html body .zyh-select-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 5px;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid var(--wb-line-strong);
  border-radius: 14px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-family: var(--wb-font);
  box-shadow: 0 18px 42px -12px rgba(15, 23, 42, 0.22), 0 4px 14px -4px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transform-origin: top center;
  animation: zyhSelectMenuIn 150ms var(--wb-ease);
}

html body .zyh-select-menu[data-placement="top"] {
  transform-origin: bottom center;
  animation: zyhSelectMenuInTop 150ms var(--wb-ease);
}

html body .zyh-select-menu.is-compact {
  border-radius: 12px;
  padding: 4px;
}

@keyframes zyhSelectMenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes zyhSelectMenuInTop {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

html body .zyh-select-menu .zyh-select-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 1px 1px 5px;
  padding: 0 9px;
  min-height: 32px;
  border: 1px solid var(--wb-line);
  border-radius: 9px;
  background: var(--wb-subtle);
  color: var(--wb-muted);
  flex: none;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

html body .zyh-select-menu .zyh-select-search:focus-within {
  border-color: var(--wb-line-strong);
  background: var(--wb-canvas);
  box-shadow: 0 0 0 2px var(--wb-accent-soft);
}

html body .zyh-select-menu .zyh-select-search input,
html body .zyh-select-menu .zyh-select-search input:hover,
html body .zyh-select-menu .zyh-select-search input:focus,
html body .zyh-select-menu .zyh-select-search input:focus-visible {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 30px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: var(--wb-ink);
  font-family: inherit;
  font-size: 12.5px;
  --field-focus-border: transparent;
  --yb-glow: none;
}

html body .zyh-select-menu .zyh-select-search input::placeholder {
  color: var(--wb-faint);
}

html body .zyh-select-menu .zyh-select-search input::-webkit-search-cancel-button {
  display: none;
}

.zyh-select-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1 1 auto;
  padding: 1px;
}

.zyh-select-group-label {
  padding: 7px 10px 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wb-faint);
  letter-spacing: 0.02em;
  user-select: none;
}

.zyh-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--wb-ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 460;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color 110ms ease, color 110ms ease;
}

.zyh-select-menu.is-compact .zyh-select-option {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12.5px;
}

.zyh-select-option:hover:not(:disabled) {
  background: var(--wb-subtle);
}

.zyh-select-option:focus-visible {
  outline: none;
  background: var(--wb-hover);
  box-shadow: inset 0 0 0 1px var(--wb-line-strong);
}

.zyh-select-option.is-selected {
  background: var(--wb-accent-soft);
  color: var(--wb-ink);
  font-weight: 590;
}

.zyh-select-option.is-selected:hover:not(:disabled) {
  background: var(--wb-hover);
}

.zyh-select-option:disabled {
  opacity: 0.45;
  cursor: default;
}

.zyh-select-option-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.zyh-select-option-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zyh-select-option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  color: var(--wb-accent);
}

.zyh-select-empty {
  padding: 14px 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--wb-muted);
}

/* 深色模式适配 */
html[data-yb-theme="dark"] body .zyh-select-trigger {
  background: var(--wb-subtle);
  border-color: var(--wb-line-strong);
  color: var(--wb-ink);
  box-shadow: none;
}

html[data-yb-theme="dark"] body .zyh-select-trigger:hover:not(:disabled) {
  background: var(--wb-hover);
  border-color: rgba(255, 255, 255, 0.24);
}

html[data-yb-theme="dark"] body .zyh-select-trigger.is-open,
html[data-yb-theme="dark"] body .zyh-select-trigger:focus-visible {
  background: var(--wb-canvas);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

html[data-yb-theme="dark"] body .zyh-select-menu {
  background: rgb(26 29 36);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--wb-ink);
  box-shadow: 0 22px 54px -12px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-yb-theme="dark"] body .zyh-select-option.is-selected {
  background: rgba(255, 255, 255, 0.11);
  color: rgb(250 250 252);
}

html[data-yb-theme="dark"] body .zyh-select-option:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.07);
}

html[data-yb-theme="dark"] .zyh-select-brand-mono {
  filter: invert(1) brightness(1.08);
}

/* 图 1 精修：设置弹窗「账户与安全」顶部呼吸感与首屏完整展示（告别半截头像） */
.desktop-settings-dialog .ds-header {
  padding: 18px var(--ds-gutter) 13px;
}

.desktop-settings-dialog .ds-header:has(.ds-section-index:not([hidden])) {
  padding-bottom: 0;
}

.desktop-settings-dialog .ds-header h2 {
  font-size: 23px;
  letter-spacing: -0.015em;
}

.desktop-settings-dialog .ds-section-index {
  margin-top: 6px;
}

.desktop-settings-dialog .ds-body {
  padding: 16px var(--ds-gutter) 26px;
}

.desktop-settings-dialog .ds-content:has(.ds-section-index:not([hidden])) .ds-body > div > .ds-section-anchor:first-child > .ds-section > .ds-section-head {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.desktop-settings-dialog .ds-identity-card {
  padding: 14px 16px;
  margin-top: 2px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--ds-surface, var(--wb-subtle));
  border: 1px solid var(--ds-line, var(--wb-line));
}

.desktop-settings-dialog .ds-identity-main img.xiaoyu-profile-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--ds-line, var(--wb-line));
}

.desktop-settings-dialog .ds-profile-form {
  margin-top: 12px;
  gap: 14px 18px;
}

/* 图 4 精修：消除模型选择器选中项左侧生硬黑弧线与刺眼聚焦黑方框 */
html body .social-model-menu.is-desktop-compact .social-model-option,
html body .model-picker-dialog.model-picker-popover .model-picker-model {
  border-radius: 9px;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease;
}

html body .social-model-menu.is-desktop-compact .social-model-option[aria-pressed="true"],
html body .model-picker-dialog.model-picker-popover .model-picker-model.selected {
  background: var(--wb-accent-soft);
  border-color: var(--wb-line-strong);
  box-shadow: none;
  color: var(--wb-ink);
}

html body .social-model-menu.is-desktop-compact .social-model-option:focus-visible,
html body .model-picker-dialog.model-picker-popover .model-picker-model:focus-visible {
  outline: none;
  border-color: var(--wb-line-strong);
  box-shadow: 0 0 0 2px var(--wb-accent-soft);
}

html[data-yb-theme="dark"] body .social-model-menu.is-desktop-compact .social-model-option[aria-pressed="true"],
html[data-yb-theme="dark"] body .model-picker-dialog.model-picker-popover .model-picker-model.selected {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

/* 统一全站现代超细圆角滚动条：重置全局 scrollbar-width 让 ::-webkit-scrollbar 接管，彻底消除 Windows 原生上下小三角 */
html body,
html body * {
  scrollbar-width: auto;
  scrollbar-color: auto;
}

html body ::-webkit-scrollbar,
html body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html body ::-webkit-scrollbar-button,
html body ::-webkit-scrollbar-button:single-button,
html body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

html body ::-webkit-scrollbar-track,
html body::-webkit-scrollbar-track {
  background: transparent;
}

html body ::-webkit-scrollbar-thumb,
html body::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.16);
  border-radius: 999px;
}

html body ::-webkit-scrollbar-thumb:hover,
html body::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.30);
}

html[data-yb-theme="dark"] body ::-webkit-scrollbar-thumb,
html[data-yb-theme="dark"] body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
}

html[data-yb-theme="dark"] body ::-webkit-scrollbar-thumb:hover,
html[data-yb-theme="dark"] body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* 全站可见原生文件选择框与复选/单选/时间控件精修（告别 Windows 灰直角按钮） */
html body input[type="file"]:not([hidden], [data-ez-upload-input]) {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px dashed var(--wb-line-strong);
  border-radius: 10px;
  background: var(--wb-subtle);
  color: var(--wb-muted);
  font-family: var(--wb-font);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}

html body input[type="file"]:not([hidden], [data-ez-upload-input]):hover:not(:disabled) {
  border-color: var(--wb-accent);
  background: var(--wb-canvas);
}

html body input[type="file"]:not([hidden], [data-ez-upload-input])::file-selector-button {
  margin-inline-end: 10px;
  padding: 6px 12px;
  border: 1px solid var(--wb-line-strong);
  border-radius: 8px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-family: var(--wb-font);
  font-size: 12.5px;
  font-weight: 540;
  cursor: pointer;
  transition: background-color 130ms ease, border-color 130ms ease;
}

html body input[type="file"]:not([hidden], [data-ez-upload-input])::file-selector-button:hover {
  background: var(--wb-hover);
  border-color: var(--wb-accent);
}

html body input[type="checkbox"]:not(.ds-toggle),
html body input[type="radio"] {
  accent-color: var(--wb-accent);
  cursor: pointer;
}

html body input[type="time"],
html body input[type="date"] {
  color-scheme: light;
}

html[data-yb-theme="dark"] body input[type="time"],
html[data-yb-theme="dark"] body input[type="date"] {
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html body .zyh-select-menu,
  html body .zyh-select-trigger,
  .zyh-select-chevron,
  .zyh-select-option {
    animation: none;
    transition: none;
  }
}

html[data-motion="off"] .zyh-select-menu,
html[data-motion="off"] .zyh-select-trigger,
html[data-motion="off"] .zyh-select-chevron {
  animation: none;
  transition: none;
}

.social-search-dialog {
  box-sizing: border-box;
  width: min(568px, calc(100vw - 28px));
  max-height: min(72dvh, 640px);
  padding: 18px;
  border: 1px solid var(--wb-line-strong);
  border-radius: 16px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.16);
  font-family: var(--wb-font);
}

.social-search-dialog::backdrop {
  background: rgba(0, 0, 0, 0.25);
}

.social-search-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.social-search-dialog h2 {
  margin: 0;
  font-size: 18px;
}

.social-search-dialog .social-icon-button {
  color: var(--wb-muted);
}

.social-search-dialog .social-icon-button:hover {
  background: var(--wb-hover);
  color: var(--wb-ink);
}

.social-search-types,
.social-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.social-search-tab {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--wb-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.social-search-tab[aria-pressed="true"],
.social-search-tab:hover {
  border-color: var(--wb-line);
  background: var(--wb-subtle);
  color: var(--wb-ink);
}

.social-search-dialog input,
.social-search-dialog select,
.prompt-picker .prompt-picker-search {
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--wb-line-strong);
  border-radius: 8px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font: inherit;
  font-size: 14px;
}

.social-search-dialog > input {
  width: 100%;
  margin-bottom: 10px;
}

.social-search-filters label:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--wb-muted);
  font-size: 13px;
}

.social-search-filters select {
  max-width: min(200px, 46vw);
}

.social-search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-search-more {
  padding: 6px 8px;
}

.social-search-status,
.social-search-result small,
.social-search-history {
  color: var(--wb-muted);
  font-size: 13px;
}

.social-search-result,
.prompt-picker-option {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 3px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wb-ink);
  text-align: left;
  text-decoration: none;
  font: inherit;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.social-search-result:hover,
.prompt-picker-option:hover,
.prompt-picker-option[aria-selected="true"] {
  background: var(--wb-subtle);
}

.social-search-dialog :focus-visible,
.prompt-picker :focus-visible,
.prompt-picker-trigger:focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: 2px;
}

.social-search-history {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px 8px;
  border-bottom: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

.social-message[data-social-message-highlight] .social-bubble {
  box-shadow: 0 0 0 1px var(--wb-accent), 0 0 0 4px var(--wb-accent-soft);
}

.social-directory-lookup {
  align-self: flex-start;
  margin: 6px 8px;
}

.prompt-picker-host {
  position: relative;
  z-index: 3;
  height: 0;
  min-width: 0;
}

.prompt-picker {
  position: absolute;
  inset-inline: 0 auto;
  bottom: 8px;
  width: min(400px, 100%);
  max-height: min(280px, 45dvh);
  padding: 8px;
  overflow: auto;
  border: 1px solid var(--wb-line-strong);
  border-radius: 12px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.13);
}

.prompt-picker-head,
.prompt-library-tabs,
.prompt-library-actions,
.dlb-ai-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.prompt-picker-head {
  justify-content: space-between;
  padding: 4px 8px 8px;
  font-size: 13px;
}

.prompt-picker-head span,
.prompt-picker-meta,
.prompt-picker-variable,
.prompt-picker-status,
.dlb-ai-model,
.dlb-ai-recent time {
  color: var(--wb-muted);
  font-size: 12px;
}

.prompt-picker-search {
  width: 100%;
  margin-bottom: 4px;
}

.prompt-picker-status {
  margin: 4px 8px;
}

.prompt-picker-trigger {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  background: transparent;
  color: var(--wb-ink-2);
  font: 15px var(--wb-mono);
  cursor: pointer;
}

.prompt-picker-trigger:hover,
.prompt-picker-trigger[aria-expanded="true"] {
  background: var(--wb-subtle);
}

.prompt-picker-trigger:disabled {
  opacity: 0.55;
  cursor: default;
}

.prompt-library-tabs {
  margin-block: 8px 12px;
}

.prompt-library-tabs [aria-pressed="true"] {
  background: var(--wb-subtle);
  color: var(--wb-ink);
}

.prompt-library-form,
.prompt-library-row,
.dlb-ai-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  background: var(--wb-canvas);
}

.prompt-library-content > * + * {
  margin-top: 8px;
}

.prompt-library-row h3,
.prompt-library-row p,
.dlb-ai-card p,
.dlb-ai-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.prompt-library-form textarea {
  min-height: 96px;
  resize: vertical;
}

.prompt-library-form {
  gap: 12px;
}

.prompt-library-form label {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.prompt-library-form :is(input, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  color: var(--wb-ink);
  background: var(--wb-canvas);
  font: inherit;
}

.dlb-ai-card-identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dlb-ai-card-head {
  min-width: 0;
}

.dlb-ai-state,
.social-room-branch {
  display: inline-block;
  margin-block: 2px;
  padding: 1px 6px;
  border: 1px solid var(--wb-line);
  border-radius: 5px;
  color: var(--wb-muted);
  font-size: 11px;
}

.dlb-ai-state[data-agent-status="ready"] {
  background: var(--wb-accent-soft);
  color: var(--wb-ink);
}

.social-room-branch {
  margin-block: 0;
  margin-inline-end: 5px;
  white-space: nowrap;
  line-height: 1.25;
}

.dlb-ai-recent {
  display: grid;
  gap: 4px;
  padding-block: 6px;
  border-top: 1px solid var(--wb-line);
  color: var(--wb-ink-2);
  font-size: 13px;
}

/* Social dialogs share a fixed heading and actions around a scrolling form body. */
.social-app .social-modal {
  --social-modal-inset: 24px;
  max-height: min(720px, calc(100dvh - 48px));
  padding: 0;
  border-color: var(--wb-line);
  scrollbar-gutter: auto;
}

.social-app .social-modal > .social-modal-heading {
  flex: none;
  min-height: 60px;
  margin: 0;
  padding: 14px var(--social-modal-inset);
}

.social-app .social-modal > .social-modal-heading h2 {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

.social-app .social-modal > .social-modal-layout {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.social-app .social-modal .social-modal-body {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 16px var(--social-modal-inset);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.social-app .social-modal .social-modal-body > :is(p, fieldset, figure, .social-budget-entry),
.social-app .social-modal .social-modal-body :is(.social-form > p, .social-invite-people) {
  margin: 0;
}

.social-app .social-modal .social-modal-body :is(.field, fieldset, .social-form-grid) {
  min-width: 0;
}

.social-app .social-modal .social-modal-body .field-label {
  color: var(--wb-ink);
  font-size: 13px;
}

.social-app .social-modal .social-modal-body :is(.field-hint, .social-muted) {
  color: var(--wb-muted);
}

.social-app .social-modal .social-modal-body .social-form-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 14px;
}

.social-app .social-modal .social-modal-body .social-budget-entry {
  padding: 10px 12px;
  border: 1px solid var(--wb-line);
  border-radius: 10px;
  background: var(--wb-subtle);
}

.social-app .social-modal .social-modal-body :is(.social-agent-checklist, .social-file-access-members) {
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--wb-line);
  border-radius: 10px;
}

.social-app .social-modal .social-modal-body fieldset legend {
  padding-inline: 5px;
  color: var(--wb-ink);
  font-size: 13px;
}

.social-app .social-modal .social-modal-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 12px var(--social-modal-inset) 16px;
  border-top: 1px solid var(--wb-line);
  background: var(--wb-canvas);
}

.social-app .social-modal .social-modal-actions > button {
  flex: 0 0 auto;
  width: auto;
  min-height: 36px;
  max-width: 100%;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .social-app .social-modal {
    --social-modal-inset: 16px;
    max-height: calc(100dvh - 24px);
  }

  .social-app .social-modal .social-modal-body .social-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

:root {
  --bb-width: clamp(320px, 37vw, 520px);
}

@media (min-width: 1000px) {
  html body #app.bb-docked {
    width: calc(100% - var(--bb-width));
    align-self: flex-start;
  }

  html body #app.bb-docked .ref-planning-open .daily-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  html body #app.bb-docked .daily-aside.yb-companion-pane {
    display: none;
  }
}

.bb-panel {
  position: fixed;
  z-index: 110;
  inset: calc(var(--zyh-titlebar-h, 0px) + 4px) 5px 5px auto;
  width: calc(var(--bb-width) - 5px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--wb-line-strong);
  border-radius: 12px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  font-family: var(--wb-font);
  font-size: 13px;
}

.bb-panel [hidden] {
  display: none;
}

.bb-head,
.bb-address,
.bb-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 9px 12px;
}

.bb-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto 0 0;
  color: var(--wb-ink);
  font-size: 14px;
}

.bb-address {
  border-bottom: 1px solid var(--wb-line);
}

.bb-address input {
  min-width: 0;
  flex: 1 1 120px;
  height: 34px;
  padding-inline: 10px;
  border: 1px solid var(--wb-line-strong);
  border-radius: 7px;
  background: var(--wb-subtle);
  color: var(--wb-ink);
  font: inherit;
}

.bb-address input::placeholder {
  color: var(--wb-muted);
}

.bb-panel :is(button, a):focus-visible,
.bb-address input:focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: 1px;
}

.bb-icon,
.bb-go,
.bb-plain,
.bb-primary {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: var(--wb-ink-2);
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.bb-icon,
.bb-go {
  display: grid;
  flex: 0 0 auto;
  width: 29px;
  height: 30px;
  place-items: center;
}

.bb-plain,
.bb-primary {
  padding: 6px 9px;
}

.bb-go,
.bb-primary {
  border-color: var(--wb-line-strong);
  background: var(--wb-accent-soft);
  color: var(--wb-ink);
}

.bb-panel :is(.bb-icon, .bb-plain, .bb-primary, .bb-go):hover:not(:disabled) {
  background: var(--wb-hover);
  color: var(--wb-ink);
}

.bb-panel button:disabled {
  opacity: .48;
  cursor: default;
}

.bb-status {
  margin: 0;
  padding: 9px 12px;
  border-bottom: 1px solid var(--wb-line);
  color: var(--wb-ink-2);
  background: var(--wb-subtle);
}

.bb-reading {
  flex: 1 1 0;
  min-height: 0;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}

.bb-reading h3 {
  margin: 0 0 6px;
  color: var(--wb-ink);
  font-size: 16px;
}

.bb-page-url,
.bb-message-sources a {
  color: var(--wb-ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bb-page-text {
  margin: 14px 0;
  color: var(--wb-ink);
  line-height: 1.7;
  white-space: pre-wrap;
}

.bb-muted {
  color: var(--wb-muted);
  line-height: 1.6;
}

.bb-footer {
  flex-wrap: wrap;
  justify-content: flex-end;
  border-top: 1px solid var(--wb-line);
}

.bb-source-link,
.bb-message-action {
  padding: 3px 0;
  border: 0;
  background: none;
  color: var(--wb-ink-2);
  font: inherit;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.bb-message-action,
.bb-message-sources {
  margin-top: 6px;
  font-size: 12px;
}

.bb-message-quick .bb-message-action {
  margin-top: 2px;
}

.bb-message-sources ul {
  margin: 4px 0 0;
  padding-inline-start: 18px;
}

.bb-search-results article + article {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--wb-line);
}

#app .bb-tool,
#app .bb-head-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 29px;
  min-height: 29px;
}

#app .bb-head-button {
  padding: 3px 6px;
  border: 1px solid var(--wb-line);
  border-radius: 7px;
  background: var(--wb-canvas);
  color: var(--wb-muted);
  cursor: pointer;
}

#app :is(.bb-tool, .bb-head-button)[aria-pressed="true"] {
  color: var(--wb-accent);
  background: var(--wb-accent-soft);
}

@media (max-width: 999px) {
  .bb-panel {
    width: min(460px, calc(100vw - 10px));
  }
}

.bb-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
}

.bb-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-inline-end: auto;
  color: var(--wb-ink-2);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.bb-live-badge::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wb-line-strong);
}

.bb-live-badge:is([data-status="running"], [data-status="paused"], [data-status="awaiting_human"])::before {
  background: var(--wb-accent);
}

.bb-live-content {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  min-height: 80px;
  overflow: auto;
  overscroll-behavior: contain;
}

.bb-live-stage {
  display: grid;
  min-height: 92px;
  margin: 0 10px 10px;
  padding: 1px;
  place-items: start stretch;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  background: var(--wb-subtle);
}

.bb-live-screen {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
}

.bb-live-screen.bb-live-interactive {
  touch-action: none;
  cursor: crosshair;
}

.bb-live-screen:focus-visible,
.bb-manual input:focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: -2px;
}

.bb-live-frame {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.bb-frame-note {
  align-self: center;
  margin: 0;
  padding: 16px;
  color: var(--wb-ink-2);
  line-height: 1.55;
}

.bb-target {
  position: absolute;
  border: 2px solid rgb(37, 130, 246);
  border-radius: 4px;
  background: rgba(37, 130, 246, 0.18);
  animation: bb-target-focus 240ms ease-out both;
  pointer-events: none;
}

.bb-target-label {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 20ch;
  padding: 2px 5px;
  overflow: hidden;
  border-radius: 3px;
  background: rgb(19, 70, 143);
  color: rgb(255, 255, 255);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes bb-target-focus {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .bb-target {
    animation: none;
  }
}

.bb-manual {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 10px 10px;
}

.bb-manual input {
  flex: 1 1 0;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--wb-line-strong);
  border-radius: 7px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font: inherit;
}

.bb-manual input::placeholder {
  color: var(--wb-ink-2);
}

.bb-trace {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 74px;
  border-top: 1px solid var(--wb-line);
  overflow: hidden;
}

.bb-trace:not([open]) {
  flex: none;
  min-height: 0;
}

.bb-trace > summary {
  flex: none;
  padding: 10px 12px;
  color: var(--wb-ink);
  font-weight: 650;
  cursor: pointer;
}

.bb-trace-count {
  margin-inline-start: 8px;
  color: var(--wb-ink-2);
  font-size: 12px;
  font-weight: normal;
  font-variant-numeric: tabular-nums;
}

.bb-trace-list {
  max-height: min(31vh, 240px);
  margin: 0;
  padding: 0 12px 8px;
  overflow: auto;
  overscroll-behavior: contain;
  list-style: none;
}

.bb-trace-list li {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--wb-line);
  color: var(--wb-ink-2);
}

.bb-trace-list li:last-child {
  border-bottom: 0;
}

.bb-trace-label {
  display: grid;
  gap: 2px;
  color: var(--wb-ink);
  overflow-wrap: anywhere;
}

.bb-trace-label small,
.bb-trace-list time {
  color: var(--wb-ink-2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.bb-direct {
  flex: none;
  padding: 0 12px 8px;
  color: var(--wb-ink);
}

.bb-direct summary,
.bb-result summary {
  font-weight: 600;
  cursor: pointer;
}

.bb-direct form {
  display: grid;
  justify-items: start;
  gap: 7px;
  margin-top: 7px;
}

.bb-direct textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  max-height: 18vh;
  padding: 7px 9px;
  border: 1px solid var(--wb-line-strong);
  border-radius: 7px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font: inherit;
  line-height: 1.4;
  resize: vertical;
}

.bb-result {
  flex: none;
  padding: 7px 12px;
  border-top: 1px solid var(--wb-line);
  color: var(--wb-ink);
}

.bb-result-text {
  max-height: min(19vh, 145px);
  overflow: auto;
  overflow-wrap: anywhere;
}

.bb-confirm {
  width: min(440px, calc(100vw - 30px));
  padding: 20px;
  border: 1px solid var(--wb-line-strong);
  border-radius: 12px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font: 13px/1.6 var(--wb-font);
}

.bb-confirm::backdrop {
  background: rgba(0, 0, 0, 0.32);
}

.bb-confirm h2 {
  margin: 0;
  font-size: 17px;
}

.bb-confirm p {
  margin: 8px 0 0;
  color: var(--wb-ink-2);
}

.bb-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.zyh-doc-preview {
  box-sizing: border-box;
  width: min(960px, calc(100vw - 24px));
  height: min(800px, calc(100dvh - 30px));
  max-width: none;
  max-height: none;
  overflow: hidden;
  margin: auto;
  padding: 0;
  border: 1px solid var(--wb-line-strong);
  border-radius: var(--wb-modal-radius);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: var(--wb-modal-shadow);
}

.zyh-doc-preview[open] {
  display: flex;
  flex-direction: column;
}

.zyh-doc-preview::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.zyh-doc-preview-heading,
.zyh-doc-preview-toolbar,
.zyh-doc-preview-buttons,
.zyh-library-doc-upload,
.zyh-library-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.zyh-doc-preview-heading,
.zyh-doc-preview-toolbar {
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--wb-line);
}

.zyh-doc-preview-heading h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.zyh-doc-preview-toolbar,
.zyh-doc-preview-buttons,
.zyh-library-doc-upload,
.zyh-library-doc-actions {
  flex-wrap: wrap;
  font-size: 12px;
}

.zyh-doc-preview-toolbar > a {
  margin-inline-start: auto;
}

.zyh-doc-preview-status {
  margin: 12px 16px;
  color: var(--wb-muted);
  font-size: 13px;
}

.zyh-doc-preview-status:empty {
  display: none;
}

.zyh-doc-preview-viewport {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--wb-subtle);
}

.zyh-doc-preview-viewport canvas {
  display: block;
  max-width: none;
  margin: 16px auto;
  background: rgb(255, 255, 255);
  box-shadow: var(--wb-overlay-shadow);
}

.local-image-preview {
  display: grid;
  padding: 16px;
  place-items: center;
}

.local-image-preview img {
  display: block;
  max-inline-size: 100%;
  max-block-size: 100%;
  object-fit: contain;
}

.zyh-doc-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(255, 255, 255);
}

.zyh-office-dialog {
  box-sizing: border-box;
  width: min(660px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 30px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--wb-line-strong);
  border-radius: var(--wb-modal-radius);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: var(--wb-modal-shadow);
}

.zyh-office-dialog[open] {
  display: flex;
  flex-direction: column;
}

.zyh-office-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.zyh-office-dialog-body,
.zyh-office-version-form {
  display: grid;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.zyh-office-dialog-body {
  overflow: auto;
  padding: 16px;
}

.zyh-office-summary,
.zyh-office-version-form h3,
.zyh-office-version-form p {
  margin: 0;
}

.zyh-office-summary,
.zyh-office-version-form p {
  font-size: 13px;
  color: var(--wb-muted);
}

.zyh-office-summary:empty,
.zyh-office-version-edit:empty {
  display: none;
}

.zyh-office-version-buttons {
  justify-content: flex-end;
}

.zyh-office-version-form {
  padding: 14px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-control-radius);
}

.zyh-office-version-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 13px;
}

.zyh-office-version-form :is(input, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.zyh-office-version-form pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.zyh-office-version-form [type="submit"] {
  justify-self: end;
}
.zyh-office-version-form button[hidden] { display: none; }
.zyh-office-version-form [type="submit"].primary {
  color: var(--wb-accent-text);
  background: var(--wb-accent);
}
.zyh-office-version-form [role="alert"] { color: rgb(167, 47, 49); }
html[data-yb-theme="dark"] .zyh-office-version-form [role="alert"] { color: rgb(255, 166, 169); }

.zyh-office-workbook {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.zyh-office-split {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.local-office-filename {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.zyh-office-message-actions {
  margin-block: 5px;
}

.zyh-office-sheet-tabs,
.zyh-office-slide-controls,
.zyh-office-sheet-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  min-width: 0;
  border-bottom: 1px solid var(--wb-line);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-size: 13px;
}

.zyh-office-sheet-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.zyh-office-sheet-tabs > button {
  flex: 0 0 auto;
  max-inline-size: min(18rem, 75vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zyh-office-sheet-tabs > button[aria-selected="true"] {
  background: var(--wb-subtle);
  border-color: var(--wb-line-strong);
  color: var(--wb-ink);
}

.zyh-office-sheet-controls > input {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 22rem;
}

.zyh-office-sheet-scroll {
  min-height: 0;
  overflow: auto;
  flex: 1;
  overscroll-behavior: contain;
}

.zyh-office-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font-variant-numeric: tabular-nums;
}

.zyh-office-table :is(th, td) {
  border-bottom: 1px solid var(--wb-line);
  border-inline-end: 1px solid var(--wb-line);
  padding: 6px 10px;
  max-width: 16rem;
  min-width: 5rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 12px;
  text-align: start;
}

.zyh-office-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: var(--wb-subtle);
}

.zyh-office-table th {
  z-index: 1;
  background: var(--wb-subtle);
  color: var(--wb-muted);
  text-align: center;
}

.zyh-office-table :is(th[scope="row"], thead th:first-child) {
  position: sticky;
  inset-inline-start: 0;
  min-width: 2rem;
}

.zyh-office-sheet-controls button[aria-pressed="true"] {
  border-color: var(--wb-line-strong);
  background: var(--wb-subtle);
}

.zyh-office-table td.zyh-office-found {
  background: rgba(217, 162, 42, 0.24);
  box-shadow: inset 0 0 0 1px rgba(187, 131, 23, 0.68);
}

.zyh-office-empty {
  margin: 16px;
  color: var(--wb-muted);
}

.zyh-office-slide-controls > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.zyh-office-slide-stage {
  position: relative;
  box-sizing: border-box;
  width: min(900px, calc(100% - 20px));
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  margin: 14px auto;
  padding: 3%;
  overflow: hidden;
  background: rgb(255, 255, 255);
  color: rgb(23, 32, 41);
  box-shadow: var(--wb-overlay-shadow);
}

.zyh-office-slide-shape {
  max-width: 100%;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: clamp(0.65rem, 2.6cqw, 1.35rem);
}

.zyh-office-slide-shape.positioned {
  position: absolute;
}

.zyh-office-slide-shape.title {
  font-size: clamp(0.85rem, 4cqw, 2.5rem);
  font-weight: 650;
}

.zyh-office-slide-shape p {
  margin: 0 0 0.35em;
}

.zyh-office-slide-shape p.right { text-align: right; }
.zyh-office-slide-shape p.center { text-align: center; }

.zyh-office-slide-shape table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78em;
}

.zyh-office-slide-shape td {
  border: 1px solid rgba(23, 32, 41, 0.22);
  padding: 0.25em 0.45em;
}

.zyh-library-documents {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.zyh-library-doc-upload input[type="file"] {
  max-width: 100%;
}

.zyh-library-doc-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zyh-library-doc-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-control-radius);
}

.zyh-library-doc-list li > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.zyh-library-doc-list small {
  color: var(--wb-muted);
}

.mcp-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--wb-line-strong);
  border-radius: var(--wb-modal-radius);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: var(--wb-modal-shadow);
  font-family: var(--wb-font);
}

.mcp-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.mcp-dialog-heading,
.mcp-admin-title,
.mcp-actions,
.mcp-draft-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mcp-dialog-heading,
.mcp-admin-title {
  justify-content: space-between;
}

.mcp-dialog h2,
.mcp-admin h2,
.mcp-admin h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.mcp-dialog h2 {
  font-size: 1.14rem;
}

.mcp-admin,
.mcp-form,
.mcp-field,
.mcp-service-row,
.mcp-picker {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.mcp-new-service {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.mcp-form .button {
  justify-self: start;
}

.mcp-field {
  gap: 4px;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.mcp-field :is(input, select) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--wb-line-strong);
  border-radius: var(--wb-control-radius);
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font: inherit;
}

.mcp-picker .button {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  text-align: start;
}

.mcp-picker .button :is(strong, small),
.mcp-service-row {
  overflow-wrap: anywhere;
}

.mcp-service-row {
  padding: 12px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-panel-radius);
}

.mcp-service-row :is(small, p),
.mcp-picker small {
  color: var(--wb-muted);
}

.mcp-service-row p {
  margin: 0;
}

.mcp-checkbox {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.mcp-checkbox input {
  flex: 0 0 auto;
  accent-color: var(--wb-accent);
}

.mcp-status {
  color: var(--wb-danger);
}

.mcp-draft-chip,
.mcp-receipt {
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-control-radius);
  background: var(--wb-subtle);
  color: var(--wb-ink-2);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.mcp-receipt {
  margin: 6px 0;
}

.mcp-receipt summary {
  cursor: pointer;
}

.mcp-dialog pre,
.mcp-receipt pre,
.mcp-token-output code {
  display: block;
  max-width: 100%;
  margin: 6px 0;
  padding: 8px;
  border-radius: var(--wb-control-radius);
  background: var(--wb-subtle);
  font: 0.8125rem/1.5 var(--wb-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 500px) {
  .mcp-new-service {
    grid-template-columns: minmax(0, 1fr);
  }
}

.zyh-kanban-dialog {
  inline-size: min(960px, calc(100vw - 32px));
  max-block-size: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--wb-ink);
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line-strong);
  border-radius: var(--wb-modal-radius);
  box-shadow: var(--wb-overlay-shadow);
}

.zyh-kanban-dialog::backdrop {
  background: rgba(12, 14, 18, 0.38);
}

.zyh-kanban-dialog-bar,
.zyh-kanban-header,
.zyh-kanban-header > div,
.zyh-kanban-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.zyh-kanban-dialog-bar,
.zyh-kanban-header {
  justify-content: space-between;
}

.zyh-kanban-dialog-bar {
  padding: 10px clamp(12px, 3vw, 24px);
  border-block-end: 1px solid var(--wb-line);
}

.zyh-kanban {
  display: grid;
  gap: 12px;
  min-inline-size: 0;
  padding: clamp(10px, 2vw, 20px);
  color: var(--wb-ink);
}

.zyh-kanban h3,
.zyh-kanban h4,
.zyh-kanban p {
  margin: 0;
  overflow-wrap: anywhere;
}

.zyh-kanban-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.zyh-kanban button {
  white-space: normal;
}

.zyh-kanban-filters,
.zyh-kanban-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
  gap: 10px;
}

.zyh-kanban :is(input, select, textarea) {
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 32px;
  padding: 6px 9px;
  color: var(--wb-ink);
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line-strong);
  border-radius: var(--wb-control-radius);
  font: inherit;
}

.zyh-kanban :is(label, .zyh-kanban-editor, .zyh-kanban-card) {
  display: grid;
  gap: 8px;
  min-inline-size: 0;
}

.zyh-kanban-editor {
  padding: 14px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-panel-radius);
}

.zyh-kanban-editor-slot:empty,
.zyh-kanban-status:empty {
  display: none;
}

.zyh-kanban-actions {
  justify-content: flex-end;
}
.zyh-kanban-editor [hidden] { display: none; }
.zyh-kanban-editor [role="alert"] { color: rgb(167, 47, 49); }
html[data-yb-theme="dark"] .zyh-kanban-editor [role="alert"] { color: rgb(255, 166, 169); }

.zyh-kanban-status,
.zyh-kanban-empty,
.zyh-kanban-card p {
  color: var(--wb-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.zyh-kanban-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  align-items: start;
  gap: 10px;
}

.zyh-kanban-lane {
  display: grid;
  gap: 9px;
  min-inline-size: 0;
  min-block-size: 105px;
  padding: 10px;
  background: var(--wb-subtle);
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-panel-radius);
}

.zyh-kanban-lane h4 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.zyh-kanban-lane h4 small {
  color: var(--wb-muted);
  font-variant-numeric: tabular-nums;
}

.zyh-kanban-card {
  padding: 9px;
  background: var(--wb-canvas);
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-control-radius);
}

.zyh-kanban-card-title,
.zyh-kanban-message-action {
  padding: 3px 0;
  color: var(--wb-ink-2);
  background: transparent;
  border: 0;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.zyh-kanban-card-title {
  font-weight: 600;
  line-height: 1.5;
}

.zyh-kanban-card-title:hover,
.zyh-kanban-message-action:hover {
  text-decoration: underline;
}

.zyh-kanban-message-action {
  color: var(--wb-muted);
  font-size: 0.75rem;
}

.zyh-kanban-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  white-space: pre-wrap;
}

.zyh-kanban-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--wb-muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.zyh-kanban-card-meta [data-priority="urgent"] {
  color: var(--wb-danger);
}

.zyh-kanban-card > .button {
  justify-self: start;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.zyh-calendar-dialog {
  inline-size: min(880px, calc(100vw - 32px));
  max-block-size: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--wb-line);
  border-radius: 20px;
  color: var(--wb-ink);
  background: var(--wb-canvas);
  box-shadow: 0 18px 60px rgb(0 0 0 / 22%);
}

.zyh-calendar-dialog::backdrop { background: rgb(0 0 0 / 30%); }
.zyh-calendar-dialog-inner { display: flex; flex-direction: column; max-block-size: inherit; }
.zyh-calendar-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-block-end: 1px solid var(--wb-line);
}
.zyh-calendar-dialog-head h2, .zyh-calendar h3, .zyh-calendar h4, .zyh-calendar-review h3 { margin: 0; }
.zyh-calendar-dialog-head h2 { font-size: 1.04rem; }
.zyh-calendar-body, .zyh-calendar-daily { min-inline-size: 0; overflow: auto; }
.zyh-calendar {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  align-items: start;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.zyh-calendar-month, .zyh-calendar-day-wrap { min-inline-size: 0; padding: 16px; }
.zyh-calendar-day-wrap { border-inline-start: 1px solid var(--wb-line); }
.zyh-calendar-toolbar, .zyh-calendar-month-head, .zyh-calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 12px;
}
.zyh-calendar-actions, .zyh-calendar-scope, .zyh-calendar-event-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.zyh-calendar-button, .zyh-calendar-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-block-size: 30px;
  padding: 3px 9px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  color: inherit;
  background: var(--wb-canvas);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.zyh-calendar-button[aria-pressed="true"], .zyh-calendar-date[aria-pressed="true"],
.zyh-calendar-button:hover:not(:disabled), .zyh-calendar-date:hover:not(:disabled) { background: var(--wb-subtle); }
.zyh-calendar-button.is-primary { background: var(--wb-ink); color: var(--wb-canvas); border-color: transparent; }
.zyh-calendar-button.is-primary:hover:not(:disabled) { background: var(--wb-ink); filter: brightness(.86); }
.zyh-calendar-button:disabled, .zyh-calendar-date:disabled { cursor: default; opacity: .58; }
.zyh-calendar-button:focus-visible, .zyh-calendar-date:focus-visible { outline: 2px solid var(--wb-ink); outline-offset: 1px; }
.zyh-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.zyh-calendar-weekday { padding-block: 2px 5px; text-align: center; color: var(--wb-muted); font-size: .74rem; }
.zyh-calendar-date { position: relative; padding: 3px 0; min-inline-size: 0; border-color: transparent; font-variant-numeric: tabular-nums; }
.zyh-calendar-date.is-adjacent { color: var(--wb-muted); }
.zyh-calendar-date[aria-current="date"] { border-color: var(--wb-accent); }
.zyh-calendar-date[aria-pressed="true"] { font-weight: 700; box-shadow: inset 0 0 0 1px var(--wb-line); }
.zyh-calendar-count { padding-inline: 2px; color: var(--wb-accent); font-size: .63rem; }
.zyh-calendar-zone, .zyh-calendar-status { margin: 12px 0 0; color: var(--wb-muted); font-size: .78rem; }
.zyh-calendar-status.is-error { color: var(--wb-danger); }
.zyh-calendar-day, .zyh-calendar-timeline, .zyh-calendar-editor, .zyh-calendar-review { display: grid; gap: 12px; }
.zyh-calendar-day-head { margin-block-end: 0; }
.zyh-calendar-hour { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; font-size: .82rem; }
.zyh-calendar-hour > h4 { padding-block-start: 9px; color: var(--wb-muted); font-weight: 550; font-variant-numeric: tabular-nums; }
.zyh-calendar-hour > div { display: grid; gap: 6px; }
.zyh-calendar-event { display: grid; gap: 5px; padding: 9px 11px; min-inline-size: 0; border: 1px solid var(--wb-line); border-radius: 10px; }
.zyh-calendar-event.is-selected { border-color: var(--wb-accent); }
.zyh-calendar-tag, .zyh-calendar-reminder { color: var(--wb-muted); font-size: .73rem; }
.zyh-calendar-event-line time { font-variant-numeric: tabular-nums; font-weight: 600; }
.zyh-calendar-event p, .zyh-calendar-review p { margin: 0; white-space: pre-wrap; }
.zyh-calendar-review { padding: 16px 18px; }
.zyh-calendar-review > .zyh-calendar-actions, .zyh-calendar-editor > .zyh-calendar-actions { justify-content: flex-end; }
.zyh-calendar-editor { padding: 12px; border: 1px solid var(--wb-line); border-radius: 12px; }
.zyh-calendar-field { display: grid; gap: 5px; min-inline-size: 0; font-size: .78rem; }
.zyh-calendar-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.zyh-calendar-field input, .zyh-calendar-field textarea, .zyh-calendar-field select {
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--wb-canvas);
  color: inherit;
  font: inherit;
}
.zyh-calendar-check { display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.zyh-calendar-delete { display: grid; gap: 6px; }
.zyh-calendar-notices { display: grid; justify-items: start; gap: 6px; font-size: .78rem; }
.zyh-calendar-notices .zyh-calendar-button { max-inline-size: 100%; text-align: start; }
.zyh-calendar-receipt { display: grid; justify-items: start; gap: 6px; margin-block-start: 8px; }
.zyh-calendar-receipt-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; overflow-wrap: anywhere; }
.zyh-calendar-receipt-line time { flex: 0 0 auto; color: var(--wb-muted); font-variant-numeric: tabular-nums; font-size: .78rem; }
.zyh-calendar-daily .zyh-calendar, .workspace-pane .zyh-calendar { grid-template-columns: minmax(0, 1fr); }
.zyh-calendar-daily .zyh-calendar-day-wrap, .workspace-pane .zyh-calendar-day-wrap { border-inline-start: 0; border-block-start: 1px solid var(--wb-line); }

@media (max-width: 650px) {
  .zyh-calendar { grid-template-columns: minmax(0, 1fr); }
  .zyh-calendar-day-wrap { border-inline-start: 0; border-block-start: 1px solid var(--wb-line); }
}

/* Data Lens source selection, chart and chat card. */
.zyh-lens-dialog {
  box-sizing: border-box;
  inline-size: min(800px, calc(100vw - 24px));
  max-block-size: calc(100dvh - 32px);
  border: 1px solid var(--wb-line, rgb(191, 204, 213));
  border-radius: 18px;
  padding: clamp(12px, 3vw, 24px);
  background: var(--wb-canvas, rgb(247, 250, 250));
  color: var(--wb-ink, rgb(32, 46, 56));
  overflow: auto;
}

.zyh-lens-dialog::backdrop { background: rgba(21, 32, 44, .42); }

[data-theme="dark"] .zyh-lens-dialog {
  background: var(--wb-canvas, rgb(32, 46, 56));
  color: var(--wb-ink, rgb(240, 247, 248));
}

.zyh-lens-dialog > header,
.zyh-lens-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.zyh-lens-dialog > header h2 { margin: 0; font-size: 1.15rem; }
.zyh-lens-dialog > header { margin-block-end: 16px; }

.zyh-data-lens { display: grid; min-inline-size: 0; gap: 12px; max-inline-size: 100%; }
.zyh-lens-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 10px; }
.zyh-lens-controls label { display: grid; gap: 5px; min-inline-size: 0; font-size: .8rem; }
.zyh-lens-controls :is(input, select, .zyh-custom-select) { box-sizing: border-box; inline-size: 100%; min-inline-size: 0; }
.zyh-lens-status { min-inline-size: 0; margin: 0; color: var(--wb-muted); overflow-wrap: anywhere; font-size: .78rem; }
.zyh-lens-status[role="alert"] { color: var(--wb-ink); }
.zyh-lens-visual, .zyh-lens-card {
  box-sizing: border-box;
  min-inline-size: 0;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  padding: clamp(6px, 2vw, 12px);
  background: var(--wb-surface, transparent);
}

.zyh-lens-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(92px, 100%), 1fr)); gap: 10px; }
.zyh-lens-kpi > div { min-inline-size: 0; display: grid; gap: 3px; padding: 6px; overflow-wrap: anywhere; }
.zyh-lens-kpi strong { font-size: clamp(1rem, 3vw, 1.65rem); font-variant-numeric: tabular-nums; }
.zyh-lens-kpi span { color: var(--wb-muted); font-size: .78rem; }
.zyh-lens-visual svg, .zyh-lens-card-summary svg { display: block; block-size: auto; inline-size: 100%; }
.zyh-lens-actions { justify-content: flex-start; }
.zyh-lens-table { max-inline-size: 100%; max-block-size: 360px; overflow: auto; }
.zyh-lens-table table { inline-size: 100%; border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.zyh-lens-table :is(td, th) { min-inline-size: 65px; border-block-end: 1px solid var(--wb-line); text-align: start; padding: 7px; overflow-wrap: anywhere; }
.zyh-lens-table th { position: sticky; inset-block-start: 0; background: var(--wb-canvas); }
.zyh-lens-fields ul { margin: 6px 0; padding: 0; list-style: none; }
.zyh-lens-fields li { display: flex; flex-wrap: wrap; gap: 8px; padding: 5px 0; overflow-wrap: anywhere; }
.zyh-lens-fields span { color: var(--wb-muted); font-size: .78rem; }
.zyh-lens-card { inline-size: min(100%, 380px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 5px; }
.zyh-lens-card-summary { flex-basis: 100%; min-inline-size: 0; overflow-wrap: anywhere; font-size: .78rem; }

/* Local task controls, approvals and read-only file panes. */
.local-task-context:not([hidden]) {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-inline-size: 0;
  margin: 0 12px -1px; padding: 7px 14px 8px;
  border: 1px solid var(--wb-line); border-block-end: 0; border-radius: 14px 14px 0 0;
  background: var(--wb-subtle);
}
.local-task-context .local-task-meta { min-inline-size: 0; overflow-wrap: anywhere; }
.local-task-with-mode[data-local-task-mode="chat"]:not([hidden]) {
  margin: 0 4px 6px; padding: 0; border: 0; background: transparent;
}
.local-task-mode-switch {
  display: inline-flex; flex: none; align-items: center; gap: 2px; padding: 2px;
  border-radius: 9px; background: var(--wb-subtle);
}
.local-task-mode-button {
  min-block-size: 26px; padding: 2px 8px; border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: var(--wb-muted); font: 500 .75rem/1.2 var(--wb-font); white-space: nowrap; cursor: pointer;
}
.local-task-mode-button:hover:not(:disabled) { color: var(--wb-ink); }
.local-task-mode-button[aria-pressed="true"] {
  border-color: var(--wb-line); background: var(--wb-canvas); color: var(--wb-ink);
}
.local-task-mode-button:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 1px; }
.local-task-mode-button:disabled { opacity: .58; cursor: default; }
.local-task-with-mode [data-local-scope-summary]:not([hidden]) { order: 2; flex-basis: 100%; }
.local-task-handoff:not([hidden]),
.local-task-lineage { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-inline-size: 0; }
.local-task-handoff { color: var(--wb-ink, currentColor); font-size: .78rem; }
.local-task-history-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.local-task-history-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  margin-inline-start: calc(var(--local-task-depth, 0) * 10px); padding: 8px 12px;
  border: 1px solid var(--wb-line, rgba(80, 90, 96, .35)); border-radius: 8px; overflow-wrap: anywhere;
}
.local-task-history-row > div { flex: 1 1 180px; min-inline-size: 0; }
.local-task-history-row small { display: block; margin-block-start: 4px; color: var(--wb-muted, currentColor); }
.local-task-handoff-choice { display: grid; gap: 6px; min-inline-size: 0; margin-block: 12px; }
.local-host-badge {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--wb-muted); font: 500 .75rem/1.2 var(--wb-font); white-space: nowrap;
}
.zyh-brand {
  --brand-size: 20px;
  box-sizing: border-box;
  inline-size: var(--brand-size);
  block-size: var(--brand-size);
  display: inline-grid;
  flex: none;
  place-items: center;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: calc(var(--brand-size) * .24);
  vertical-align: middle;
}
.zyh-brand-16 { --brand-size: 16px; padding: 1px; }
.zyh-brand-20 { --brand-size: 20px; }
.zyh-brand-24 { --brand-size: 24px; padding: 3px; }
.zyh-brand-32 { --brand-size: 32px; padding: 4px; }
.zyh-brand-40 { --brand-size: 40px; padding: 5px; }
.zyh-brand > img { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; }
.zyh-brand[data-brand-fallback="true"] { background: var(--wb-subtle); border-color: var(--wb-line); }
.zyh-brand[data-brand-semantic] {
  background: color-mix(in srgb, var(--wb-accent) 10%, var(--wb-canvas));
}
html[data-yb-theme="dark"] .zyh-brand[data-brand-semantic] > img { filter: invert(1); }
html[data-yb-theme="dark"] .zyh-brand[data-brand-mono="true"] {
  background: rgb(245 246 247); border-color: rgb(245 246 247);
}
.zyh-brand.tactile-agent-model-badge { padding: 1px; }
.account-source-mark:has(.zyh-brand),
.model-picker-option-mark:has(.zyh-brand),
.zyh-resource-card-mark:has(.zyh-brand) { background: var(--wb-subtle); border-color: var(--wb-line); }
body #app .assistant-workspace .model-picker-source-trigger > .zyh-brand { display: inline-grid; }
.local-choice-capsule > .zyh-brand,
.model-picker-trigger > .zyh-brand { flex: none; }
.model-picker-trigger > .model-picker-trigger-name { min-inline-size: 0; }
.local-choice-capsule:focus-visible,
.model-picker-trigger:focus-visible,
.account-source-option:focus-visible,
.zyh-resource-tab:focus-visible,
.zyh-store-cta button:focus-visible,
.zyh-connect-dialog button:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 2px; }
.zyh-store-row:focus-within { border-color: var(--wb-line-strong); }
.zyh-store-grid > [role="status"], .zyh-store-grid > [role="alert"] { grid-column: 1 / -1; }
.zyh-connect-notice:not([hidden]) { padding: 8px 12px; border: 1px solid var(--wb-line); border-radius: 8px; }
.local-choice-lead { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.local-choice-capsule:not([hidden]) { display: inline-flex; align-items: center; justify-content: flex-start; }
.local-choice-capsule {
  gap: 5px; min-inline-size: 0; max-inline-size: 100%; min-block-size: 30px; padding: 3px 9px;
  border: 1px solid transparent; border-radius: 999px; background: transparent;
  color: var(--wb-ink); font: 500 .8rem/1.2 var(--wb-font); cursor: pointer;
}
.local-choice-capsule > .local-choice-label { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-choice-capsule > svg { flex: none; color: var(--wb-muted); }
.local-choice-capsule > svg:last-child { transform: rotate(90deg); opacity: .6; }
.local-choice-capsule:is(:hover, [aria-expanded="true"]) { background: var(--wb-hover); }
.local-choice-capsule:disabled { opacity: .58; cursor: default; }
.local-choice-capsule[data-local-engine-trigger] { flex: none; max-inline-size: min(148px, 40vw); }
.local-choice-capsule[data-local-model-trigger] { max-inline-size: 186px; }
.local-choice-capsule:is([data-local-engine-trigger], [data-local-model-trigger]) { border-color: var(--wb-line); }
.local-model-billing:not([hidden]) {
  flex: none; padding: 2px 5px; background: var(--wb-subtle); border-radius: 5px;
  color: var(--wb-muted); font-size: .68rem; white-space: nowrap;
}
.local-choice-capsule[data-local-permission-trigger] { flex: none; min-block-size: 28px; padding-inline: 8px; color: var(--wb-muted); }
.local-choice-capsule[data-local-permission-trigger]:is(:hover, [aria-expanded="true"]) { color: var(--wb-ink); }
.local-choice-capsule[data-local-workspace-trigger] { max-inline-size: min(280px, 100%); min-block-size: 24px; padding: 1px 6px; color: var(--wb-muted); font-size: .75rem; }
.local-choice-capsule[data-local-workspace-trigger]:is(:hover, [aria-expanded="true"]) { color: var(--wb-ink); }
html body #app .workbench-composer-submit :is(.social-composer-model, .social-agent-start-model, .model-picker-model-trigger) {
  gap: 5px; min-block-size: 30px; padding: 3px 9px;
  border: 1px solid transparent; border-radius: 999px; background: transparent; box-shadow: none;
  color: var(--wb-ink); font: 500 .8rem/1.2 var(--wb-font);
}
html body #app .workbench-composer-submit :is(.social-composer-model, .social-agent-start-model, .model-picker-model-trigger) > svg:last-child {
  flex: none; color: var(--wb-muted); transform: rotate(90deg); opacity: .6;
}
html body #app .workbench-composer-submit :is(.social-composer-model, .social-agent-start-model, .model-picker-model-trigger):is(:hover, [aria-expanded="true"]) {
  background: var(--wb-hover);
}
html body #app .workbench-composer-submit :is(.social-send, .daily-send, .workbench-chat-send) {
  border-radius: 999px;
}
html body #app :is(.social-composer-unified, .daily-composer, .social-agent-start-composer) {
  border-radius: 18px; border: 1px solid var(--wb-line-strong); background: var(--wb-canvas);
}
html body #app .daily-compose-area [data-model-picker-source="daily"],
html body #app .daily-composer .workbench-composer-tools :is(.daily-agent-tools, .ref-tone-menu, [data-daily-agent-mailbox]),
html body #app .social-composer-tools .social-task-shortcut { display: none; }
html body #app .social-composer-dock > .social-reply-bar { padding: 0 8px 6px; background: transparent; border: 0; }
html body #app .social-agent-start-stage {
  display: flex; flex-direction: column; justify-content: space-between; min-block-size: calc(100dvh - 110px);
  padding-block: clamp(32px, 12vh, 120px) 24px;
}
html body #app .social-agent-start-title { text-align: center; margin-block: auto; padding-block-end: 36px; }
html body #app .social-agent-start-form { inline-size: min(760px, 100%); margin-inline: auto; gap: 0; }
html body #app .social-agent-start .workbench-chat-input { resize: none; }
html body #app .social-agent-start-composer { border-radius: 18px; padding: 14px 16px 12px; }
html body #app :is(.social-agent-start-status, .social-agent-start-error) { margin-block-start: 8px; }
html body #app :is(.social-composer-dock, .daily-compose-area, .social-agent-start-form):has([data-local-task-mode="workspace"]) :is([data-social-model-trigger], [data-social-agent-start-model], .daily-model-label, .conversation-model-picker, .daily-model-empty, .social-reply-bar, .yb-compose-header-row, .yb-inspiration-tray, .ref-task-context) { display: none; }
html body #app :is(.social-composer-dock, .daily-compose-area, .social-agent-start-form):has([data-local-task-mode="workspace"]) [data-workbench-composer-toolbar] .workbench-composer-tools { flex: none; flex-wrap: nowrap; gap: 2px; }
html body #app :is(.social-composer-dock, .daily-compose-area, .social-agent-start-form):has([data-local-task-mode="workspace"]) [data-workbench-composer-toolbar] .workbench-composer-tools > :not(input[type="file"]):not([data-local-permission-trigger]):not([aria-label="添加图片或文档"]):not([aria-label="输入内容"]):not([data-concierge-local-upload]):not([data-daily-local-image]):not(.daily-local-image-wrap),
html body #app :is(.social-composer-dock, .daily-compose-area, .social-agent-start-form):has([data-local-task-mode="workspace"]) [data-builtin-browser-toggle="tool"] { display: none; }
.local-choice-popover {
  position: fixed; inset: auto; margin: 0; box-sizing: border-box;
  inline-size: min(320px, calc(100vw - 16px)); max-block-size: min(430px, calc(100dvh - 20px));
  overflow: hidden; padding: 8px; border: 1px solid var(--wb-line-strong); border-radius: 16px;
  background: var(--wb-canvas); color: var(--wb-ink); font-family: var(--wb-font);
  box-shadow: 0 14px 32px rgba(17, 24, 39, .13);
}
.local-choice-popover:popover-open { display: flex; flex-direction: column; }
.local-choice-popover .local-choice-search { flex: none; }
.local-choice-popover .local-choice-list { min-block-size: 0; overflow: auto; overscroll-behavior: contain; }
.local-choice-search, .local-choice-form-label input {
  inline-size: 100%; min-inline-size: 0; box-sizing: border-box; border-radius: 9px;
  border: 1px solid var(--wb-line); background: var(--wb-subtle); color: var(--wb-ink);
  padding: 8px 10px; font-size: .82rem;
}
.local-choice-list { display: grid; gap: 3px; margin-block-start: 6px; }
.local-choice-group { display: grid; gap: 2px; min-inline-size: 0; }
.local-choice-group + .local-choice-group { padding-block-start: 7px; border-block-start: 1px solid var(--wb-line); }
.local-choice-group > h3, .local-directory-starts > h3 { margin: 4px 8px; color: var(--wb-muted); font: 550 .72rem/1.4 var(--wb-font); }
.local-choice-row {
  display: grid; gap: 2px; align-items: start; min-inline-size: 0; inline-size: 100%; padding: 7px 9px;
  border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--wb-ink);
  text-align: start; font: 550 .82rem/1.3 var(--wb-font); overflow-wrap: anywhere; cursor: pointer;
}
.local-choice-row > .local-choice-main { display: flex; align-items: center; gap: 8px; min-inline-size: 0; inline-size: 100%; }
.local-choice-row > .local-choice-main > span:not(.local-choice-check) { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
.local-choice-check { margin-inline-start: auto; flex: none; color: var(--wb-ink); font-size: .8rem; }
.local-choice-row > small { color: var(--wb-faint); font: 400 .7rem/1.4 var(--wb-font); padding-inline-start: 26px; }
.local-choice-row:hover { background: var(--wb-subtle); }
.local-choice-row[aria-pressed="true"] { background: var(--wb-hover); }
.local-choice-row:disabled { opacity: .6; cursor: default; }
.local-choice-note { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 1px 7px; color: var(--wb-muted); font-size: .75rem; }
.local-choice-popover .local-task-meta { margin: 3px 7px 5px; }
.local-choice-catalog-error {
  display: grid; gap: 5px; justify-items: start; min-inline-size: 0; padding: 6px 8px;
  border-block-end: 1px solid var(--wb-line); overflow-wrap: anywhere; font-size: .78rem;
}
.local-choice-catalog-error p { margin: 0; }
.local-task-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-inline-size: 0; }
.local-task-actions { justify-content: flex-end; }
.local-task-review { inline-size: min(530px, calc(100% - 24px)); max-block-size: calc(100dvh - 24px); padding: clamp(14px, 4vw, 24px); overflow: auto; border: 1px solid var(--wb-line, rgba(80, 90, 96, .35)); border-radius: 16px; color: var(--wb-ink, rgb(27, 35, 41)); background: var(--wb-canvas, rgb(250, 251, 251)); box-shadow: 0 18px 48px rgba(0, 0, 0, .24); }
html[data-yb-theme="dark"] .local-task-review { color: var(--wb-ink, rgb(232, 236, 238)); background: var(--wb-canvas, rgb(26, 32, 37)); }
.local-task-review::backdrop { background: rgba(13, 21, 26, .45); }
.local-task-review h2 { margin-block-start: 0; font-size: 1.12rem; }
.local-task-review .local-task-actions { margin-block-start: 18px; }
.local-task-review .local-task-actions > [hidden] { display: none; }
.local-task-primary {
  min-block-size: 31px;
  border: 1px solid var(--wb-accent);
  border-radius: 9px;
  padding: 5px 10px;
  color: var(--wb-accent-text);
  background: var(--wb-accent);
  font: 600 .78rem/1.2 var(--wb-font);
  cursor: pointer;
}
.local-task-primary:disabled { opacity: .55; cursor: default; }
.local-task-primary:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 2px; }
.local-choice-dialog[data-local-choice-wide] { inline-size: min(610px, calc(100% - 24px)); }
.local-choice-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-block-end: 12px; }
.local-choice-dialog-header h2 { margin: 0; }
.local-choice-close {
  display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none;
  padding: 0; border: 1px solid var(--wb-line); border-radius: 8px; background: var(--wb-subtle);
  color: var(--wb-ink); cursor: pointer;
}
.local-choice-close:disabled { opacity: .42; cursor: default; }
.local-choice-form-label { display: grid; gap: 6px; color: var(--wb-muted); font-size: .82rem; }
.local-engine-detail-overview { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.local-engine-detail-overview p, .local-engine-detail-probe p, .local-engine-install-progress p { margin: 4px 0 0; color: var(--wb-muted); font-size: .78rem; }
.local-engine-detail-mark { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 11px; background: var(--wb-subtle); color: var(--wb-ink); }
.local-engine-detail-description { color: var(--wb-muted); line-height: 1.55; font-size: .84rem; }
.local-engine-detail-probe {
  display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 10px;
  border: 1px solid var(--wb-line); border-radius: 10px; background: var(--wb-subtle); font-size: .83rem;
}
.local-engine-detail-probe button { flex: none; }
.local-engine-detail-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.local-engine-install-guide {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--wb-line);
  border-radius: 10px;
  background: var(--wb-subtle);
  color: var(--wb-ink);
}
.local-engine-install-guide code { overflow-wrap: anywhere; user-select: text; }
.local-engine-install-guide a { color: var(--wb-accent); }
.local-engine-detail-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 14px 0; border-block-start: 1px solid var(--wb-line); }
.local-engine-detail-specs > div { padding: 9px 6px 1px; min-inline-size: 0; overflow-wrap: anywhere; }
.local-engine-detail-specs > div + div { border-inline-start: 1px solid var(--wb-line); }
.local-engine-detail-specs dt { color: var(--wb-muted); font-size: .71rem; }
.local-engine-detail-specs dd { margin: 4px 0 0; font-size: .8rem; font-weight: 600; }
.local-engine-install-progress { padding-block: 8px; }
.local-engine-install-progress progress { inline-size: 100%; block-size: 10px; accent-color: var(--wb-accent); }
.local-install-primary {
  border-radius: 9px; border: 1px solid var(--wb-accent); color: var(--wb-accent-text); background: var(--wb-accent);
  min-block-size: 31px; padding: 5px 10px; max-inline-size: 100%; font: 600 .78rem/1.2 var(--wb-font); cursor: pointer;
}
.local-install-primary:disabled { opacity: .5; cursor: default; }
.local-directory-grid { display: grid; grid-template-columns: minmax(112px, 27%) minmax(0, 1fr); min-inline-size: 0; gap: 9px; }
.local-directory-starts, .local-directory-browser { min-inline-size: 0; border: 1px solid var(--wb-line); border-radius: 10px; padding: 6px; }
.local-directory-starts { background: var(--wb-subtle); }
.local-directory-starts .local-choice-row { padding-block: 5px; }
.local-directory-crumb { display: flex; align-items: center; gap: 6px; margin-block-end: 5px; min-inline-size: 0; }
.local-directory-crumb > span { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: .73rem var(--wb-mono); }
.local-directory-contents { max-block-size: min(260px, 36dvh); overflow: auto; }
.local-directory-contents p, .local-directory-browser .local-task-error { padding-inline: 4px; }
@media (max-width: 460px) {
  body #app [data-workbench-composer-toolbar] .workbench-composer-submit:has([data-local-engine-trigger]) { max-inline-size: 74%; gap: 3px; }
  html body #app :is(.social-composer-dock, .daily-compose-area, .social-agent-start-form):has([data-local-task-mode="workspace"]) [data-workbench-composer-toolbar] {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
  }
  body #app [data-workbench-composer-toolbar] .workbench-composer-submit:has([data-local-model-trigger]:not([hidden])) {
    max-inline-size: 100%; justify-self: end;
  }
  .local-choice-capsule { padding-inline: 6px; }
  .local-choice-capsule[data-local-model-trigger] { min-inline-size: 65px; max-inline-size: 112px; }
  .local-choice-capsule[data-local-model-trigger] > :is(.local-choice-lead, .local-model-billing) { display: none; }
  .local-directory-grid { grid-template-columns: minmax(86px, 30%) minmax(0, 1fr); gap: 6px; }
}
.local-task-review-body { overflow-wrap: anywhere; }
.local-task-facts { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr); gap: 7px 10px; margin-block: 10px; font-size: .78rem; }
.local-task-facts dt, .local-task-meta { color: var(--wb-muted, currentColor); }
.local-task-facts dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.local-task-card { display: grid; gap: 7px; max-inline-size: 100%; padding: 11px 12px; margin-block: 8px; border: 1px solid var(--wb-line); border-radius: 12px; background: var(--wb-surface, var(--wb-canvas)); overflow-wrap: anywhere; }
.local-task-card-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.local-task-card-heading button { margin-inline-start: auto; }
.local-task-path, .local-task-meta { font-size: .78rem; }
.local-task-card p { margin-block: 0; }
.local-task-panel { display: grid; align-content: start; gap: 9px; inline-size: 100%; min-inline-size: 0; padding: 13px; overflow-wrap: anywhere; }
.local-task-panel :is(p, h3, h4) { margin-block: 0; }
.local-task-panel button { justify-self: start; max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
.local-task-approval { display: grid; gap: 7px; min-inline-size: 0; padding: 10px; border: 1px solid var(--wb-line); border-radius: 9px; background: var(--wb-canvas); }
.local-task-approval summary, .local-task-review summary { cursor: pointer; }
.local-task-event-list { min-inline-size: 0; border: 1px solid var(--wb-line); border-radius: 9px; }
.local-task-event { min-inline-size: 0; font-size: .78rem; }
.local-task-event + .local-task-event { border-block-start: 1px solid var(--wb-line); }
.local-task-event-row {
  display: flex; align-items: center; gap: 7px; min-inline-size: 0; min-block-size: 34px; box-sizing: border-box;
  padding: 3px 8px; line-height: 1.35;
}
summary.local-task-event-row { cursor: pointer; list-style: none; }
summary.local-task-event-row::-webkit-details-marker { display: none; }
summary.local-task-event-row:hover { background: var(--wb-subtle); }
summary.local-task-event-row:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: -2px; }
.local-task-event-row > svg { flex: none; color: var(--wb-muted); }
.local-task-event[open] > summary > svg { transform: rotate(90deg); }
.local-task-event-label { flex: none; font-weight: 600; }
.local-task-event-target { flex: 1 1 0; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wb-muted); }
.local-task-event-meta { display: flex; gap: 5px; align-items: center; margin-inline-start: auto; color: var(--wb-muted); white-space: nowrap; }
.local-task-event-exit { flex: none; padding: 2px 5px; border-radius: 5px; background: var(--wb-subtle); color: var(--wb-ink); white-space: nowrap; }
.local-task-event-exit[data-local-exit="error"] { background: var(--wb-danger-soft); }
.local-task-event-row > button[data-local-task-diff] { flex: none; min-block-size: 26px; padding: 2px 6px; margin-inline-start: auto; white-space: nowrap; }
.local-task-event-content { min-inline-size: 0; padding: 1px 8px 7px 26px; }
.local-task-event-content > pre { max-block-size: 15rem; overflow: auto; overscroll-behavior: contain; }
.local-task-command-text { max-block-size: 18rem; overflow: auto; overscroll-behavior: contain; }
.local-task-command-text:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 2px; }
.local-task-followup {
  display: grid; gap: 8px; min-inline-size: 0; padding: 12px;
  background: var(--wb-subtle); border: 1px solid var(--wb-line); border-radius: 10px;
}
.local-task-followup label { display: grid; gap: 5px; }
.local-task-followup textarea {
  inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; padding: 8px;
  background: var(--wb-canvas); color: var(--wb-ink); border: 1px solid var(--wb-line); border-radius: 8px; resize: vertical;
}
.local-task-followup textarea:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 1px; }
@media (max-width: 480px) {
  .local-task-event-row { gap: 4px; padding-inline: 6px; }
  .local-task-event-meta { font-size: .69rem; }
}
.local-task-error { color: rgb(167, 47, 49); }
html[data-yb-theme="dark"] .local-task-error { color: rgb(255, 166, 169); }
.local-task-panel pre, .local-task-review pre { max-inline-size: 100%; margin-block: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.local-task-preview { padding: 10px; min-inline-size: 0; border: 1px solid var(--wb-line); border-radius: 9px; }
.local-task-diff { border: 1px solid var(--wb-line); border-radius: 8px; overflow: auto; font-size: .76rem; }
.local-task-diff-row { display: grid; grid-template-columns: 3ch 3ch minmax(0, 1fr); gap: 6px; min-inline-size: 0; padding: 2px 5px; }
.local-task-diff-row > span { text-align: end; color: var(--wb-muted); font-variant-numeric: tabular-nums; }
.local-task-diff-row > code { white-space: pre-wrap; overflow-wrap: anywhere; }
.local-task-diff-row.addition { background: rgba(56, 148, 96, .23); }
.local-task-diff-row.deletion { background: rgba(187, 78, 89, .22); }
.local-task-diff-row.header { background: rgba(103, 116, 137, .17); }

/* Conversation workspace tabs */
html body #app .social-app > .social-main[data-workspace-pane]:has(> .workspace-pane),
html body #app .daily-page > .daily-layout[data-workspace-pane]:has(> .workspace-pane) {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  min-inline-size: 0;
  min-block-size: 0;
  gap: 0;
}

html body #app .daily-layout[data-workspace-pane] > :is(.daily-aside, .zyh-calendar-daily) {
  display: none;
}

html[data-zyh-app-drawer-open] body #app :is(.social-main, .daily-layout)[data-workspace-pane] > .zyh-app-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 55;
  inline-size: min(460px, 94%);
  box-shadow: -14px 0 36px rgba(0, 0, 0, 0.10);
}

html[data-zyh-app-drawer-open="wide"] body #app :is(.social-main, .daily-layout)[data-workspace-pane] > .zyh-app-drawer {
  inline-size: min(660px, 96%);
}

html body #app :is(.social-main, .daily-layout)[data-workspace-pane="split"] > :is(.social-chat, .daily-chat) {
  box-sizing: border-box;
  flex: 1 1 0;
  min-inline-size: 360px;
}

html body #app :is(.social-main, .daily-layout)[data-workspace-pane="split"] > .workspace-pane {
  box-sizing: border-box;
  flex: 0 0 var(--workspace-pane-width, 50%);
}

html body #app :is(.social-main, .daily-layout)[data-workspace-pane="split"][data-workspace-pane-axis="block"]:has(> .workspace-pane) {
  flex-direction: column;
}

html body #app :is(.social-main, .daily-layout)[data-workspace-pane="split"][data-workspace-pane-axis="block"] > :is(.social-chat, .daily-chat) {
  block-size: auto;
  min-inline-size: 0;
  min-block-size: 0;
}

html body #app :is(.social-main, .daily-layout)[data-workspace-pane="split"][data-workspace-pane-axis="block"] > .workspace-pane {
  flex-basis: var(--workspace-pane-height, 42%);
  border-inline-start: 0;
  border-block-start: 1px solid var(--wb-line);
}

[data-workspace-pane-axis="block"] > .workspace-pane > .workspace-pane-resizer {
  inset: -4px 0 auto;
  inline-size: auto;
  block-size: 7px;
  cursor: row-resize;
}

html body #app :is(.social-main, .daily-layout)[data-workspace-pane="full"] > :is(.social-chat, .daily-chat) {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

html body #app :is(.social-main, .daily-layout)[data-workspace-pane="overlay"] > .workspace-pane {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-inline-start: 0;
}

.workspace-pane [hidden],
[data-workspace-pane]:not([data-workspace-pane="split"]) > .workspace-pane > .workspace-pane-resizer {
  display: none;
}

.workspace-pane .workspace-pane-header {
  gap: 3px;
  padding-inline: 8px;
}

.workspace-pane-tabs {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 4px;
  min-inline-size: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-block: 3px;
}

.workspace-pane-tab-row {
  display: flex;
  flex: none;
  align-items: center;
  max-inline-size: min(172px, 100%);
  padding-inline-end: 2px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.workspace-pane-tab-row:has(.workspace-pane-tab[aria-selected="true"]) {
  border-color: var(--wb-line);
  background: var(--wb-surface);
}

.workspace-pane-tab {
  display: flex;
  align-items: center;
  min-inline-size: 0;
  gap: 6px;
  padding: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--wb-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.workspace-pane-tab[aria-selected="true"] { color: var(--wb-ink); }
.workspace-pane-tab svg { flex: none; }
.workspace-pane-tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-pane-tab-row [data-workspace-tab-close] { min-inline-size: 24px; block-size: 24px; padding: 3px; }

.workspace-pane-tab[draggable="true"] { cursor: grab; }
.workspace-pane-tab-row[data-workspace-tab-dragging] { opacity: .62; }
.workspace-pane-tab-row[data-workspace-tab-drop="before"] { box-shadow: inset 2px 0 var(--wb-accent); }
.workspace-pane-tab-row[data-workspace-tab-drop="after"] { box-shadow: inset -2px 0 var(--wb-accent); }
.workspace-pane-tab-notice {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.workspace-pane :is(.workspace-pane-tab, .workspace-pane-action, .workspace-pane-body):focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: -2px;
}

.workspace-pane-actions { display: flex; flex: none; align-items: center; }
.workspace-pane-bodies { display: flex; flex: 1 1 0; min-block-size: 0; min-inline-size: 0; }
.workspace-pane-bodies > .workspace-pane-body { padding: clamp(8px, 1.1vw, 16px); }
.workspace-pane-body:not([hidden]):has(> .workspace-browser-slot) { display: flex; padding: 0; overflow: hidden; }
.workspace-browser-slot { display: flex; flex: 1; min-inline-size: 0; min-block-size: 0; }
.workspace-browser-slot .bb-panel {
  position: relative;
  z-index: auto;
  inset: auto;
  inline-size: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.zyh-resource-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.zyh-resource-tab, .zyh-resource-filter {
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--wb-muted);
  cursor: pointer;
  white-space: nowrap;
}
.zyh-resource-tab:hover, .zyh-resource-filter:hover,
.zyh-resource-tab[aria-pressed="true"], .zyh-resource-filter[aria-pressed="true"] {
  color: var(--wb-ink);
  background: var(--wb-hover);
  border-color: var(--wb-line);
}
.zyh-resource-card-mark {
  display: grid;
  place-content: center;
  inline-size: 46px;
  block-size: 46px;
  flex: 0 0 46px;
  border: 1px solid var(--wb-line);
  border-radius: 13px;
  background: var(--wb-subtle);
  color: var(--wb-accent);
}
.zyh-connect-dialog {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(14px, 3vw, 22px);
  overflow: auto;
  border: 1px solid var(--wb-line);
  border-radius: 18px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: 0 16px 48px rgb(0 0 0 / 18%);
}
.zyh-connect-dialog::backdrop { background: rgb(0 0 0 / 40%); }
.zyh-connect-head, .zyh-connect-actions, .zyh-connect-controls, .zyh-connect-receipt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.zyh-connect-head { justify-content: space-between; margin-block-end: 14px; }
.zyh-connect-head h2 { margin: 0; font-size: 1.14rem; overflow-wrap: anywhere; }
.zyh-connect-content, .zyh-connect-form, .zyh-connect-permissions {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.zyh-connect-content > *, .zyh-connect-form > *, .zyh-connect-permissions > * { margin: 0; min-width: 0; }
.zyh-connect-content > button { justify-self: start; }
.zyh-connect-actions { justify-content: flex-end; }
.zyh-connect-field {
  display: grid;
  gap: 5px;
  color: var(--wb-muted, CanvasText);
  font-size: .86rem;
}
.zyh-connect-field :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font: inherit;
}
.zyh-connect-field textarea { resize: vertical; }
.zyh-connect-permissions { border-top: 1px solid var(--wb-line); padding-block-start: 10px; }
.zyh-connect-check { display: flex; gap: 8px; align-items: start; overflow-wrap: anywhere; }
.zyh-connect-check small { display: block; color: var(--wb-muted); }
.zyh-connect-output, .zyh-connect-review {
  max-width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--wb-line);
  border-radius: 9px;
}
.zyh-connect-review > *, .zyh-connect-output {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.zyh-connect-review dt { color: var(--wb-muted); font-size: .8rem; }
.zyh-connect-review dd:not(:last-child) { margin-block-end: 8px; }
.zyh-connect-results {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.zyh-connect-results li {
  padding: 8px 10px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.zyh-connect-results small { display: block; color: var(--wb-muted); }
.zyh-connect-results p { margin: 3px 0 0; white-space: pre-wrap; }
.zyh-connect-notice { margin: 0 0 12px; color: var(--wb-muted); overflow-wrap: anywhere; }
.zyh-connect-notice[role="alert"] { color: var(--wb-danger, CanvasText); }
.zyh-connect-profile.zyh-connect-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(16px, 3.5vw, 24px);
  border: 0;
  border-radius: 20px;
  box-shadow: var(--wb-modal-shadow, 0 20px 56px rgb(0 0 0 / 24%));
}
.zyh-connect-profile .zyh-connect-head {
  flex-wrap: nowrap;
  gap: 12px;
  margin-block-end: 16px;
}
.zyh-connect-profile .zyh-connect-head h2 { flex: 1; font-size: 1.4rem; }
.zyh-connect-profile .zyh-connect-head h2[tabindex="-1"]:focus { outline: none; }
.zyh-connect-profile-mark {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  block-size: 52px;
  border-radius: 14px;
  background: var(--wb-subtle);
}
.zyh-connect-profile-mark > svg { inline-size: 52px; block-size: 52px; }
.zyh-connect-profile .zyh-connect-close {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  block-size: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--wb-muted);
  cursor: pointer;
}
.zyh-connect-profile .zyh-connect-close:hover { background: var(--wb-hover); color: var(--wb-ink); }
.zyh-connect-profile .zyh-connect-content { gap: 16px; }
.zyh-connect-profile-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.zyh-connect-profile-status { color: var(--wb-muted); font-size: .82rem; }
.zyh-connect-profile-action {
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--wb-subtle);
  color: var(--wb-ink);
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}
.zyh-connect-profile-action:hover { border-color: var(--wb-line); background: var(--wb-hover); }
.zyh-connect-profile :is(.zyh-connect-close, .zyh-connect-profile-action):focus-visible {
  outline: 1px solid color-mix(in srgb, var(--wb-alpine-water) 68%, var(--wb-ink));
  outline-offset: 2px;
}
.zyh-connect-profile [hidden] { display: none; }
.zyh-connect-summary { color: var(--wb-muted); line-height: 1.6; }
.zyh-connect-settings { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: var(--wb-subtle); }
.zyh-connect-profile section h3 { margin: 0 0 8px; font-size: .94rem; }
.zyh-connect-capabilities ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.zyh-connect-capabilities li { display: flex; gap: 8px; align-items: baseline; font-size: .87rem; }
.zyh-connect-capabilities li > span { flex: none; color: var(--wb-accent); }
.zyh-connect-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zyh-connect-example {
  display: grid;
  gap: 7px;
  align-content: start;
  justify-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  font-size: .88rem;
  overflow-wrap: anywhere;
}
.zyh-connect-example h4 { margin: 0; font: inherit; font-weight: 650; }
.zyh-connect-example p { margin: 0; color: var(--wb-muted); line-height: 1.55; }
@media (max-width: 510px) { .zyh-connect-example-grid { grid-template-columns: 1fr; } }
.zyh-connect-receipt {
  margin: 5px 0;
  padding: 8px 10px;
  border: 1px solid var(--wb-line);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.zyh-connect-receipt > span { color: var(--wb-muted); }
@media (max-width: 560px) {
  .zyh-app-store .zyh-store-head-left { flex: 1 1 auto; min-width: 0; }
  .zyh-connect-trigger-label { display: none; }
}
.model-picker-local-import { display: grid; gap: 6px; padding-block-end: 8px; margin-block-end: 6px; border-block-end: 1px solid var(--wb-line); }
.model-picker-local-import-row { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid var(--wb-line); border-radius: 10px; background: var(--wb-subtle); }
.model-picker-local-import-copy { display: grid; gap: 2px; min-inline-size: 0; flex: 1; }
.model-picker-local-import-copy strong { font-size: .8rem; color: var(--wb-ink); }
.model-picker-local-import-copy small { font-size: .72rem; color: var(--wb-muted); }
.model-picker-local-import-btn { flex: none; padding: 5px 10px; border: 1px solid var(--wb-accent); border-radius: 8px; background: var(--wb-accent); color: var(--wb-accent-text); font: 600 .74rem/1.2 var(--wb-font); cursor: pointer; }
.model-picker-local-import-btn:disabled { opacity: .55; cursor: default; }
.model-picker-local-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; margin-block-end: 6px; border: 1px dashed var(--wb-line); border-radius: 9px; font-size: .76rem; color: var(--wb-muted); }
.model-picker-local-link { flex: none; padding: 3px 8px; border: 1px solid var(--wb-line); border-radius: 7px; background: var(--wb-canvas); color: var(--wb-ink); font-size: .74rem; cursor: pointer; }

.workspace-terminal { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 12px; }
.workspace-terminal-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.workspace-terminal-controls label { display: inline-flex; align-items: center; gap: 6px; }
.workspace-terminal-controls select { max-width: 100%; color: var(--wb-ink); background: var(--wb-canvas); }
.workspace-terminal-surface { min-height: 220px; height: min(49dvh, 520px); background: var(--wb-canvas); border: 1px solid var(--wb-line); border-radius: 8px; }
.workspace-terminal-surface[hidden] { display: none; }
.local-dispatch-dialog { width: min(42rem, calc(100vw - 32px)); overflow: hidden; }
.local-dispatch-header, .local-dispatch-child-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.local-dispatch-header { padding-block-end: 12px; border-block-end: 1px solid var(--wb-line); }
.local-dispatch-header h2 { margin: 0; }
.local-dispatch-body, .local-dispatch-form, .local-dispatch-tree { display: grid; gap: 12px; min-width: 0; }
.local-dispatch-body { max-block-size: calc(100dvh - 10rem); padding: 12px 3px 4px; overflow: auto; overscroll-behavior: contain; }
.local-dispatch-body > [role="status"]:empty { display: none; }
.local-dispatch-tree { margin: 0; padding: 0; list-style: none; }
.local-dispatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.local-dispatch-card { box-sizing: border-box; min-width: 0; padding: 12px; border: 1px solid var(--wb-line); border-radius: 12px; }
.local-dispatch-form label { display: grid; gap: 6px; min-width: 0; }
.local-dispatch-form input:not([type="checkbox"]), .local-dispatch-form textarea, .local-dispatch-form select {
  box-sizing: border-box; min-width: 0; max-width: 100%; width: 100%; padding: 7px 9px;
  border: 1px solid var(--wb-line-strong); border-radius: 8px; color: var(--wb-ink); background: var(--wb-subtle);
}
.local-dispatch-form input[type="datetime-local"] { color-scheme: light; }
html[data-yb-theme="dark"] .local-dispatch-form input[type="datetime-local"] { color-scheme: dark; }
.local-dispatch-form .local-dispatch-checkbox { display: flex; align-items: center; gap: 8px; min-block-size: 28px; }
.local-dispatch-checkbox > input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; padding: 0; }
.local-dispatch-goal, .local-dispatch-path, .local-dispatch-files { overflow-wrap: anywhere; }
.local-dispatch-state { padding: 4px 8px; border-radius: 999px; border: 1px solid var(--wb-line); font-size: .8125rem; }

/* Resource plaza */
body #app .zyh-resource-plaza.zyh-app-store {
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 1264px;
  padding: 18px clamp(14px, 3vw, 40px) 36px;
}
body #app .zyh-resource-plaza .zyh-store-head {
  gap: 10px 18px;
  padding-block-end: 12px;
  border-block-end: 1px solid var(--wb-line);
}
.zyh-resource-plaza :is(.zyh-resource-tab, .zyh-resource-filter, .workbench-status-filter) {
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--wb-muted);
  font-weight: 500;
}
.zyh-resource-plaza :is(.zyh-resource-tab, .zyh-resource-filter, .workbench-status-filter):hover {
  background: var(--wb-subtle);
  color: var(--wb-ink);
}
.zyh-resource-plaza :is(.zyh-resource-tab, .zyh-resource-filter, .workbench-status-filter)[aria-pressed="true"] {
  background: var(--wb-hover);
  color: var(--wb-ink);
  font-weight: 650;
}
.zyh-plaza-header-tools { display: flex; align-items: center; gap: 8px; min-inline-size: 0; }
body #app .zyh-resource-plaza .zyh-store-search {
  box-sizing: border-box;
  inline-size: clamp(120px, 19vw, 224px);
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--wb-subtle);
}
html body #app .zyh-resource-plaza .zyh-store-search .zyh-store-search-input {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.zyh-plaza-installed { display: inline-flex; align-items: center; gap: 6px; }
.zyh-plaza-filter-dot { inline-size: 5px; block-size: 5px; border-radius: 50%; background: currentColor; }
body #app .zyh-resource-plaza .zyh-store-section-head {
  margin: 0;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
}
.zyh-resource-plaza .zyh-store-status-actions { max-inline-size: 100%; min-inline-size: 0; }
.zyh-plaza-app-filters .zyh-store-status-actions > span { order: 1; flex-basis: 100%; }
.zyh-resource-plaza .zyh-store-status-actions > span { color: var(--wb-muted); font-size: .8rem; }
.zyh-plaza-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-inline-size: 0; }
.zyh-plaza-grid > .zyh-store-empty { grid-column: 1 / -1; }
.zyh-resource-plaza [hidden], .zyh-plaza-drawer [hidden] { display: none; }
.zyh-plaza-featured { display: grid; gap: 12px; min-inline-size: 0; }
.zyh-plaza-featured > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zyh-plaza-featured h2 { margin: 0; color: var(--wb-ink); font-size: 1.05rem; font-weight: 670; }
.zyh-plaza-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--wb-muted); }
.zyh-plaza-footer { display: flex; justify-content: flex-end; }
.zyh-plaza-compatibility > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  inline-size: fit-content;
  padding: 6px 8px;
  color: var(--wb-muted);
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}
.zyh-plaza-compatibility > summary::-webkit-details-marker { display: none; }
.zyh-plaza-compatibility[open] > summary svg { transform: rotate(90deg); }
.zyh-plaza-compatibility > .zyh-plaza-grid { margin-block-start: 8px; }
.zyh-plaza-card {
  --zyh-plaza-icon-size: 40px;
  position: relative;
  display: grid;
  grid-template-columns: var(--zyh-plaza-icon-size) minmax(0, 1fr) 28px;
  grid-template-rows: var(--zyh-plaza-icon-size) auto;
  align-items: center;
  gap: 9px 11px;
  box-sizing: border-box;
  min-inline-size: 0;
  padding: 14px;
  border: 1px solid var(--wb-line);
  border-radius: 13px;
  background: var(--wb-canvas);
  transition: box-shadow 150ms ease;
}
.zyh-plaza-card:hover { box-shadow: var(--wb-float-shadow); }
.zyh-resource-plaza[data-resource-plaza="apps"] .zyh-plaza-card { --zyh-plaza-icon-size: 44px; }
.zyh-plaza-mark {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  inline-size: var(--zyh-plaza-icon-size);
  block-size: var(--zyh-plaza-icon-size);
  grid-area: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--wb-accent-soft);
  color: var(--wb-ink);
  font: 700 18px var(--wb-font);
}
.zyh-plaza-mark:has(.zyh-brand) { background: var(--wb-subtle); }
.zyh-plaza-card .zyh-store-copy { grid-area: 1 / 2; }
body #app .zyh-plaza-card .zyh-store-copy :is(strong, p) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zyh-resource-plaza[data-resource-plaza="agents"] .zyh-plaza-card { grid-template-rows: minmax(40px, auto) auto; }
.zyh-resource-plaza[data-resource-plaza="agents"] .zyh-plaza-mark { align-self: start; }
body #app .zyh-resource-plaza[data-resource-plaza="agents"] .zyh-plaza-card .zyh-store-copy p {
  white-space: normal;
  overflow-wrap: anywhere;
}
.zyh-plaza-mark:has([data-connector-illustration]) { background: none; }
.zyh-plaza-card-meta {
  display: block;
  grid-area: 2 / 1 / 2 / -1;
  min-inline-size: 0;
  overflow: hidden;
  color: var(--wb-muted);
  font-size: .75rem;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.zyh-plaza-card-meta > span + span::before { content: ' · '; }
.zyh-plaza-card-hit { position: absolute; inset: 0; z-index: 1; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.zyh-plaza-icon-button {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 28px;
  block-size: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--wb-subtle);
  color: var(--wb-muted);
  cursor: pointer;
}
.zyh-plaza-icon-button:hover:not(:disabled) { background: var(--wb-hover); color: var(--wb-ink); }
.zyh-plaza-icon-button:disabled { opacity: .6; cursor: default; }
.zyh-plaza-card-action { position: relative; z-index: 2; grid-area: 1 / 3; align-self: start; }
.zyh-resource-plaza :is(.zyh-resource-tab, .zyh-resource-filter, .workbench-status-filter):focus-visible,
.zyh-plaza-card-hit:focus-visible, button.zyh-plaza-icon-button:focus-visible,
.zyh-plaza-compatibility > summary:focus-visible, .zyh-resource-plaza .zyh-store-search:focus-within {
  outline: 1px solid color-mix(in srgb, var(--wb-alpine-water) 68%, var(--wb-ink));
  outline-offset: 2px;
}
html[data-motion="off"] .zyh-plaza-card { transition: none; }
@media (prefers-reduced-motion: reduce) { .zyh-plaza-card { transition: none; } }
dialog.zyh-plaza-drawer[data-resource-drawer] {
  position: fixed;
  inset-block: 0;
  inset-inline: auto 0;
  box-sizing: border-box;
  inline-size: min(460px, 100vw);
  block-size: 100dvh;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: clamp(16px, 4vh, 26px);
  overflow: auto;
  border: 0;
  border-inline-start: 1px solid var(--wb-line);
  border-radius: 0;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: var(--wb-modal-shadow);
}
.zyh-plaza-drawer[open] { animation: zyh-plaza-enter 170ms ease-out; }
@keyframes zyh-plaza-enter { from { transform: translateX(24px); opacity: .7; } }
html[data-motion="off"] .zyh-plaza-drawer[open] { animation: none; }
@media (prefers-reduced-motion: reduce) { .zyh-plaza-drawer[open] { animation: none; } }
.zyh-plaza-access { border-block-start: 1px solid var(--wb-line); padding-block-start: 12px; }
.zyh-plaza-access :is(h3, p) { margin: 0 0 6px; }
.zyh-plaza-access h3 { font-size: .9rem; }
.zyh-plaza-technical > summary { inline-size: fit-content; padding-block: 6px; color: var(--wb-ink); cursor: pointer; }
@media (max-width: 850px) { .zyh-plaza-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .zyh-plaza-grid { grid-template-columns: minmax(0, 1fr); }
  .zyh-plaza-header-tools { inline-size: 100%; }
  body #app .zyh-resource-plaza .zyh-store-search { flex: 1 1 auto; }
}
.bot-command,
.bot-resource { display: none; }

.has-bot-workbench .zyh-tb-center { pointer-events: auto; }
.has-bot-workbench :is(.zyh-tb-crumb, .zyh-tb-pid) { display: none; }

.bot-capsule:not([hidden]),
.has-bot-workbench .bot-command,
.has-bot-workbench .bot-resource {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 8px;
  border: 1px solid var(--wb-line-strong);
  border-radius: 999px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font: inherit;
  white-space: nowrap;
  -webkit-app-region: no-drag;
}

.bot-capsule:not([hidden]) { max-width: min(340px, 32vw); }
.bot-capsule :is(strong, .bot-capsule-status) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bot-capsule strong { flex: 0 1 auto; }
.bot-capsule-status { color: var(--wb-muted); }
.bot-resource { color: var(--wb-muted); }
.bot-resource[data-connection="offline"] { border-color: var(--wb-danger); }
.bot-command kbd { font-size: inherit; opacity: .8; }
.bot-capsule:hover, .bot-command:hover, .bot-action:hover:not(:disabled) { background: var(--wb-hover); }
.bot-capsule:active, .bot-command:active, .bot-action:active:not(:disabled) { border-color: var(--wb-ink); }
:is(.bot-capsule, .bot-command, .bot-action, .bot-profile-form :is(input, select, textarea)):focus-visible {
  outline: 2px solid var(--wb-ink);
  outline-offset: 2px;
}

.bot-avatar {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
}
.bot-avatar-custom {
  display: inline-grid;
  place-items: center;
  background: var(--wb-hover);
  color: var(--wb-ink);
  font-size: 14px;
}

.bot-workbench {
  --bot-warning-ink: color-mix(in srgb, var(--wb-danger) 66%, var(--wb-ink));
  --bot-warning-soft: color-mix(in srgb, var(--wb-danger) 9%, var(--wb-canvas));
  --bot-success-ink: color-mix(in srgb, var(--wb-alpine-water) 58%, var(--wb-ink));
  --bot-success-soft: color-mix(in srgb, var(--wb-alpine-water) 11%, var(--wb-canvas));
  width: min(860px, calc(100vw - 40px));
  max-height: calc(100dvh - 54px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--wb-line);
  border-radius: 16px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: 0 20px 56px rgb(0 0 0 / 18%);
}
.bot-workbench[open] { display: flex; flex-direction: column; }
.bot-workbench::backdrop { background: rgb(0 0 0 / 22%); }
.bot-workbench-header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 16px 22px; border-bottom: 1px solid var(--wb-line); }
.bot-workbench-header h2 { margin: 0 auto 0 0; font-size: 18px; }
.bot-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: none;
  margin: 16px 22px 0;
  padding: 10px 0;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-control-radius);
  background: var(--wb-subtle);
}
.bot-summary-metric { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding: 0 12px; }
.bot-summary-metric + .bot-summary-metric { border-inline-start: 1px solid var(--wb-line); }
.bot-summary-metric dt { color: var(--wb-muted); font-size: 12px; }
.bot-summary-metric dd { margin: 0; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.bot-summary[data-ready] [data-bot-summary="guard"] { color: var(--bot-success-ink); }
.bot-workbench-body { min-height: 0; padding: 18px 22px 22px; overflow: auto; scrollbar-gutter: stable; }
.bot-workbench-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.bot-workbench-section { display: grid; min-width: 0; gap: 12px; padding: 16px;
  border: 1px solid var(--wb-line); border-radius: 12px; }
.bot-workbench-section header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.bot-workbench :is(h3, p) { margin: 0; }
.bot-workbench p, .bot-workbench small { color: var(--wb-muted); font-size: 13px; }
.bot-workbench .bot-workbench-error { padding: 12px 18px 0; color: var(--wb-ink); }
.bot-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.bot-line > :is(span, small) { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.bot-line > span:first-child { flex: 1 1 120px; }
.bot-line select { min-width: 0; max-width: 100%; flex: 1 1 130px; }
.bot-account-list .bot-line > .bot-action:first-child { box-sizing: border-box; min-width: 0; max-width: 100%; }
.bot-profile-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bot-profile-form > h3 { overflow-wrap: anywhere; }
.bot-trigger-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.bot-trigger-row { display: grid; min-width: 0; gap: 7px; padding: 9px 0; }
.bot-trigger-row + .bot-trigger-row { border-top: 1px solid var(--wb-line); }
.bot-trigger-heading { display: flex; align-items: flex-start; gap: 8px; }
.bot-trigger-icon { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px;
  border-radius: 7px; background: var(--wb-subtle); color: var(--wb-muted); }
.bot-trigger-description { flex: 1; min-width: 0; }
.bot-trigger-description strong { font-size: 13px; font-weight: 650; }
.bot-trigger-row .bot-trigger-description p { margin-top: 2px; font-size: 12px; line-height: 1.4; }
.bot-trigger-state { flex: none; padding: 2px 7px; border-radius: 999px; background: var(--wb-subtle);
  color: var(--wb-muted); font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.bot-trigger-state[data-bot-state="启用"] { background: var(--bot-success-soft); color: var(--bot-success-ink); }
.bot-trigger-state[data-bot-state="已暂停"] { background: var(--bot-warning-soft); color: var(--bot-warning-ink); }
.bot-trigger-row > .bot-action { justify-self: start; }
.bot-trigger-row .bot-line > .zyh-select-trigger { flex: 1 1 145px; width: auto; min-width: 0; }
.bot-trigger-rule > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  min-height: 30px;
  white-space: nowrap;
  border: 1px solid var(--wb-line-strong);
  border-radius: 7px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  font: inherit;
}
.bot-action:disabled { opacity: .7; cursor: default; }
.bot-action[aria-pressed="true"] { border-color: var(--wb-ink); background: var(--wb-hover); }
.bot-action.bot-action-primary {
  background: var(--wb-ink);
  color: var(--wb-canvas);
}
.bot-action.bot-action-primary:hover:not(:disabled) {
  opacity: .85;
}
.bot-workbench-header .bot-action[data-bot-emergency-pause] {
  --bot-action-tint: var(--wb-danger);
  --bot-action-soft: var(--bot-warning-soft);
  padding: 5px 10px;
  border-radius: 999px;
  border-color: color-mix(in srgb, var(--bot-action-tint) 38%, var(--wb-line));
  background: var(--bot-action-soft);
  color: var(--bot-warning-ink);
  font-size: 12px;
  font-weight: 650;
}
.bot-workbench-header .bot-action[data-bot-emergency-pause].is-paused {
  --bot-action-tint: var(--wb-alpine-water);
  --bot-action-soft: var(--bot-success-soft);
  color: var(--bot-success-ink);
}
.bot-workbench-header .bot-action[data-bot-emergency-pause]:hover:not(:disabled) {
  background: color-mix(in srgb, var(--bot-action-tint) 16%, var(--wb-canvas));
}
.bot-workbench-header .bot-action.bot-workbench-close {
  justify-content: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-color: transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--wb-muted);
}
.bot-workbench-header .bot-action.bot-workbench-close:hover { background: var(--wb-hover); color: var(--wb-ink); }
.bot-workbench-header .bot-action.bot-workbench-close:focus-visible { outline: 1px solid var(--wb-muted); outline-offset: 0; }
.bot-profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bot-profile-form > :is(h3, footer, fieldset), .bot-profile-form .bot-field:has(textarea, [name="directories"]) { grid-column: 1 / -1; }
.bot-field { display: grid; align-content: start; gap: 5px; min-width: 0; }
.bot-workbench :is(select, textarea, input:not([type="checkbox"])) {
  box-sizing: border-box;
  min-height: 34px;
  width: 100%;
  padding: 7px 9px;
  color: var(--wb-ink);
  border: 1px solid var(--wb-line-strong);
  border-radius: 7px;
  background: var(--wb-canvas);
  font: inherit;
}
.bot-workbench textarea { min-width: 0; resize: vertical; }
.bot-choice-group { display: flex; flex-wrap: wrap; gap: 8px 16px; min-width: 0; margin: 0;
  border: 1px solid var(--wb-line-strong); border-radius: 8px; }
.bot-choice-group label { display: flex; align-items: center; gap: 5px; }
.bot-profile-form footer { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 780px) {
  .bot-command kbd, .bot-command span, .bot-capsule-separator, .bot-capsule-status { display: none; }
}
@media (max-width: 660px) {
  .bot-workbench { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); }
  .bot-workbench-grid, .bot-profile-form { grid-template-columns: minmax(0, 1fr); }
  .bot-workbench-body, .bot-workbench-header { padding: 12px; }
  .bot-summary { margin-inline: 12px; }
  .bot-summary-metric { flex-direction: column; padding-inline: 8px; }
  .has-bot-workbench .bot-resource { display: none; }
}

/* Local configuration import */
html body #app .config-import-page[open] {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  inline-size: min(960px, calc(100vw - 40px));
  block-size: min(610px, calc(100dvh - 40px));
  max-inline-size: none;
  max-block-size: none;
  min-inline-size: 0;
  margin: auto;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--wb-canvas);
  color: var(--wb-ink);
  box-shadow: 0 28px 85px rgba(0, 0, 0, .26), 0 6px 20px rgba(0, 0, 0, .10);
  animation: none;
}
html body #app .config-import-page::backdrop {
  background: color-mix(in srgb, var(--wb-dock) 28%, transparent);
  backdrop-filter: blur(7px);
}
html[data-yb-theme="dark"] body #app .config-import-page::backdrop {
  background: rgba(0, 0, 0, .57);
}
.config-import-page > * { min-inline-size: 0; min-block-size: 0; }
.config-import-cover {
  --dark-heading-color: var(--xy-paper);
  --dark-detail-color: var(--xy-paper);
  align-self: stretch;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  justify-items: start;
  gap: 15px;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(150deg, var(--wb-alpine-water), var(--wb-dock));
  color: var(--xy-paper);
}
html body #app .config-import-cover > :is(h1, strong, p) { color: var(--xy-paper); }
.config-import-cover h1 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 41px);
  font-weight: 720;
  letter-spacing: -.025em;
  line-height: 1.14;
  text-wrap: balance;
}
.config-import-cover-phrase { display: inline-block; color: inherit; }
.config-import-cover p { margin: 0; font-size: 13px; line-height: 1.55; text-wrap: pretty; }
.config-import-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.config-import-brand-mark { display: block; inline-size: 24px; block-size: 24px; }
.config-import-mascot {
  align-self: center;
  justify-self: center;
  display: block;
  inline-size: min(100%, 265px);
  block-size: min(100%, 265px);
  object-fit: contain;
  filter: drop-shadow(0 14px 19px rgba(0, 0, 0, .24));
}
.config-import-panel {
  --import-inset: clamp(16px, 3.2vw, 34px);
  display: flex;
  flex-direction: column;
}
.config-import-panel h2 { margin: 8px 0 0; color: var(--wb-ink); font-size: clamp(21px, 2vw, 30px); }
.config-import-panel h2:focus { outline: none; }
.config-import-header {
  flex: none;
  padding: 24px var(--import-inset) 12px;
  color: var(--wb-muted);
  font-size: 13px;
}
.config-import-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-block-size: 30px;
}
.config-import-header-line .config-import-skip-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-block-size: 30px;
  padding: 4px 6px;
  white-space: nowrap;
}
.config-import-body {
  flex: 1 1 auto;
  min-block-size: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px var(--import-inset) 16px;
}
.config-import-body:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: -2px; }
.config-import-footer {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px var(--import-inset) 16px;
  border-top: 1px solid var(--wb-line);
}
.config-import-footer .config-import-skip { margin-inline-end: auto; }
.config-import-footer .button { min-block-size: 38px; }
html body #app .config-import-footer .button.primary:not(:disabled) {
  border-color: transparent;
  background: color-mix(in srgb, var(--wb-alpine-water) 90%, var(--wb-dock));
  color: var(--xy-paper);
}
html body #app .config-import-footer .button.primary:not(:disabled):hover {
  background: color-mix(in srgb, var(--wb-alpine-water) 77%, var(--wb-dock));
}
.config-import-stack { display: grid; gap: 10px; }
.config-import-sources { gap: 7px; }
.config-import-stack > p { margin: 0 0 4px; color: var(--wb-muted); }
.config-import-option {
  display: flex;
  align-items: start;
  gap: 10px;
  min-inline-size: 0;
  padding: 9px 12px;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-control-radius);
  cursor: pointer;
}
.config-import-option:hover { background: var(--wb-hover); }
.config-import-option:focus-within { outline: 2px solid var(--wb-accent); outline-offset: 2px; }
.config-import-option input { flex: none; margin-top: 3px; accent-color: var(--wb-accent); }
.config-import-option small { display: block; margin-top: 2px; color: var(--wb-muted); }
.config-import-option > span, .config-import-group { min-inline-size: 0; overflow-wrap: anywhere; }
.config-import-sources .config-import-option {
  align-items: center;
  min-block-size: 46px;
  padding: 6px 12px;
}
.config-import-sources .config-import-option:has(input:checked) {
  background: color-mix(in srgb, var(--wb-alpine-water) 6%, var(--wb-canvas));
}
.config-import-sources .config-import-option:hover {
  background: color-mix(in srgb, var(--wb-alpine-water) 10%, var(--wb-canvas));
}
.config-import-sources .config-import-option input { accent-color: var(--wb-alpine-water); }
.config-import-sources .config-import-option > span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.config-import-sources .config-import-option strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.config-import-sources .config-import-option small {
  flex: none;
  margin: 0;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--wb-subtle);
  white-space: nowrap;
}
.config-import-sources .config-import-option input { margin: 0; }
.config-import-field { display: grid; gap: 6px; }
.config-import-field input, .config-import-field select { min-inline-size: 0; width: 100%; }
.config-import-group { display: grid; gap: 6px; margin: 0; padding: 12px; border: 1px solid var(--wb-line); border-radius: var(--wb-panel-radius); }
.config-import-group h3 { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 14px; }
.config-import-group .config-import-option { border-color: transparent; }
.config-import-empty { margin: 4px 0; color: var(--wb-muted); font-size: 13px; }
.config-import-counts { display: grid; gap: 8px; padding: 0; margin: 4px 0 0; list-style: none; }
.config-import-counts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.config-import-error { padding: 10px 12px; border-radius: var(--wb-control-radius); background: var(--wb-danger-soft); color: var(--wb-ink); }
@media (max-width: 720px) {
  html body #app .config-import-page[open] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    inline-size: calc(100vw - 24px);
    block-size: min(766px, calc(100dvh - 24px));
  }
  .config-import-cover {
    grid-template-columns: minmax(0, 1fr) minmax(50px, 20%);
    grid-template-rows: auto auto auto;
    align-content: center;
    gap: 5px 12px;
    padding: 15px 20px;
  }
  .config-import-mascot { grid-column: 2; grid-row: 1 / span 3; inline-size: 100%; block-size: auto; }
  .config-import-cover :is(h1, p) { grid-column: 1; text-wrap: wrap; }
  .config-import-cover h1 { font-size: clamp(18px, 4vw, 27px); }
  .config-import-cover p { font-size: 12px; }
  .config-import-header { padding-top: 12px; }
}
@media (max-width: 420px) {
  .config-import-footer { column-gap: 6px; }
  .config-import-footer .button { padding-inline: 8px; }
  .config-import-sources .config-import-option { padding-inline: 9px; }
  .config-import-sources .config-import-option small { padding-inline: 5px; }
}
