    .fab-hub { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; align-items:flex-end; gap:10px; cursor:grab; }

    .fab-hub:active { cursor:grabbing; }



    /* Main toggle button */

    .fab-main {

      width:48px; height:48px; border-radius:50%;

      border:1px solid rgba(7,19,47,0.12); background:rgba(255,255,255,0.88);

      backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);

      box-shadow:0 2px 14px rgba(7,19,66,0.14); cursor:pointer;
      box-shadow:0 2px 14px color-mix(in srgb, var(--navy) 14%, transparent); cursor:pointer; /* 主题套装跟随（fallback：上一行原值） */

      display:grid; place-items:center; transition:all 0.2s ease;

      color:#60708f; user-select:none;

    }

    .fab-main:hover { transform:scale(1.08); box-shadow:0 4px 24px rgba(7,19,66,0.18); color:#0068ff; }
    .fab-main:hover { transform:scale(1.08); box-shadow:0 4px 24px color-mix(in srgb, var(--navy) 18%, transparent); color:var(--accent-strong); }; /* 主题套装跟随（fallback：上一行原值） */

    .fab-main svg { width:22px; height:22px; transition:transform 0.3s ease; }

    .fab-main.open svg { transform:rotate(45deg); }



    /* Sub-action buttons */

    .fab-actions {

      display:flex; flex-direction:column; align-items:flex-end; gap:8px;

      opacity:0; transform:translateY(10px) scale(0.95);

      pointer-events:none;

      transition:opacity 0.22s ease, transform 0.22s ease;

    }

    .fab-actions.open { opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }

    .fab-action-item {

      display:flex; align-items:center; gap:8px; cursor:pointer;

    }

    .fab-action-label {

      font-size:0.75rem; color:#07132f; white-space:nowrap;

      background:rgba(255,255,255,0.88); backdrop-filter:blur(8px);

      -webkit-backdrop-filter:blur(8px);

      padding:3px 10px; border-radius:12px;

      border:1px solid rgba(7,19,47,0.08);

      box-shadow:0 1px 4px rgba(7,19,66,0.06);
      box-shadow:0 1px 4px color-mix(in srgb, var(--navy) 6%, transparent); /* 主题套装跟随（fallback：上一行原值） */

    }

    .fab-action-btn {

      width:42px; height:42px; border-radius:50%; border:1px solid rgba(7,19,47,0.1);

      background:rgba(255,255,255,0.92); backdrop-filter:blur(12px);

      box-shadow:0 2px 10px rgba(7,19,66,0.1); cursor:pointer;
      box-shadow:0 2px 10px color-mix(in srgb, var(--navy) 10%, transparent); cursor:pointer; /* 主题套装跟随（fallback：上一行原值） */

      display:grid; place-items:center; transition:all 0.18s ease; color:#60708f;

    }

    .fab-action-btn:hover { transform:scale(1.1); color:#0068ff; box-shadow:0 4px 16px rgba(7,19,66,0.16); }
    .fab-action-btn:hover { transform:scale(1.1); color:var(--accent-strong); box-shadow:0 4px 16px color-mix(in srgb, var(--navy) 16%, transparent); }; /* 主题套装跟随（fallback：上一行原值） */

    .fab-action-btn svg { width:18px; height:18px; }



    /* Panels (feedback/tip/share) */

    .fab-panel {

      display:none; position:absolute; bottom:60px; right:0;

      min-width:320px; max-width:420px;

      background:rgba(255,255,255,0.96); border-radius:10px; border:1px solid rgba(7,19,47,0.1);

      box-shadow:0 8px 40px rgba(7,19,66,0.16); overflow:auto;
      box-shadow:0 8px 40px color-mix(in srgb, var(--navy) 16%, transparent); overflow:auto; /* 主题套装跟随（fallback：上一行原值） */

      backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);

      resize:both;

    }

    .fab-panel.open { display:block; }

    .fab-panel-hdr {

      display:flex; align-items:center; justify-content:space-between;

      padding:14px 18px 8px;

    }

    .fab-panel-hdr h3 { font-size:0.92rem; font-weight:600; color:#07132f; margin:0; }

    .fab-panel-close {

      width:28px; height:28px; border-radius:50%; border:none;

      background:rgba(7,19,47,0.05); cursor:pointer; font-size:1.1rem;

      color:#60708f; display:grid; place-items:center; transition:all 0.15s;

    }

    .fab-panel-close:hover { background:rgba(7,19,47,0.1); color:#07132f; }

    .fab-panel-body { padding:16px 18px; }



    /* ── Feedback styles ── */

    .fb-editor {

      width:100%; min-height:100px; max-height:300px; padding:10px 12px;

      border:1px solid rgba(7,19,47,0.1); border-radius:8px;

      font:inherit; font-size:0.85rem; outline:none;

      background:#fff; color:#07132f; transition:border-color 0.15s;

      margin-bottom:10px; overflow-y:auto; line-height:1.6; resize:both; box-sizing:border-box;

    }

    .fb-editor:focus { border-color:#0068ff; }
    .fb-editor:focus { border-color:var(--accent-strong); }; /* 主题套装跟随（fallback：上一行原值） */

    .fb-editor:empty::before { content:attr(placeholder); color:#a0aec0; pointer-events:none; }

    .fb-editor img { max-width:100%; border-radius:6px; margin:8px 0; border:1px solid rgba(7,19,47,0.08); }

    .fb-editor ul,.fb-editor ol { padding-left:20px; margin:4px 0; }

    .fb-toolbar { display:flex; gap:2px; margin-bottom:8px; flex-wrap:wrap; }

    .fb-tool-btn {

      width:28px; height:28px; border-radius:6px; border:none;

      background:transparent; cursor:pointer; font-size:0.78rem; color:#60708f;

      display:grid; place-items:center; transition:all 0.15s;

    }

    .fb-tool-btn:hover { background:rgba(0,104,255,0.08); color:#0068ff; }
    .fb-tool-btn:hover { background:color-mix(in srgb, var(--accent-strong) 8%, transparent); color:var(--accent-strong); }; /* 主题套装跟随（fallback：上一行原值） */

    .fb-sep { width:1px; background:rgba(7,19,47,0.1); margin:0 4px; align-self:stretch; }

    .fab-input {

      width:100%; padding:10px 12px; margin-bottom:12px; box-sizing:border-box;

      border:1px solid rgba(7,19,47,0.1); border-radius:8px;

      font:inherit; font-size:0.85rem; outline:none;

      background:#fff; color:#07132f; transition:border-color 0.15s;

    }

    .fab-input:focus { border-color:#0068ff; }
    .fab-input:focus { border-color:var(--accent-strong); }; /* 主题套装跟随（fallback：上一行原值） */

    .fab-input::placeholder { color:#a0aec0; }

    .fab-btn {

      width:100%; padding:10px; border:none; border-radius:8px;

      background:linear-gradient(135deg,#0068ff,#3b82f6); color:#fff;
      background:linear-gradient(135deg,var(--accent-strong),var(--accent-strong)); color:#fff; /* 主题套装跟随（fallback：上一行原值） */

      font:inherit; font-size:0.88rem; font-weight:600; cursor:pointer;

      transition:opacity 0.15s;

    }

    .fab-btn:hover { opacity:0.9; }

    .fab-btn:disabled { opacity:0.5; cursor:default; }

    .fab-btn.secondary {

      background:rgba(7,19,47,0.06); color:#07132f; margin-top:8px;

    }

    .fab-msg { text-align:center; padding:16px; font-size:0.85rem; color:#60708f; }

    .fab-msg.success { color:#16a34a; }

    .fab-msg.error { color:#dc2626; }



    /* ── Tip panel styles ── */

    .tip-qr-wrap { text-align:center; padding:8px 0 16px; }

    .tip-qr-wrap img { width:180px; height:180px; border-radius:12px; border:1px solid rgba(7,19,47,0.1); }

    /* ── Tip Sticker Picker ── */

    .tip-sticker-picker { margin: 8px 0 12px; }

    .tip-sticker-cats { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }

    .tip-sticker-cat { padding: 3px 10px; border-radius: 12px; border: 1px solid #e2e8f0; background: transparent; font-size: 0.72rem; color: #60708f; cursor: pointer; transition: all 0.15s; }

    .tip-sticker-cat.active { background: #07132f; color: white; border-color: #07132f; }

    .tip-sticker-cat:hover:not(.active) { background: #f0f4f8; }

    .tip-sticker-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-height: 220px; overflow-y: auto; }

    .tip-sticker-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; padding: 4px 2px; border-radius: 8px; transition: all 0.15s; border: 2px solid transparent; }

    .tip-sticker-item:hover { background: #f0f4f8; }

    .tip-sticker-item.selected { border-color: #FFD54F; background: #FFFDE7; }

    .tip-sticker-item img { width: 42px; height: 42px; object-fit: contain; }

    .tip-sticker-item span { font-size: 0.62rem; color: #60708f; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

    .tip-sticker-selected { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; min-height: 0; }

    .tip-sticker-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 4px; background: #f0f4f8; border-radius: 12px; font-size: 0.72rem; color: #1a1a2e; }

    .tip-sticker-tag img { width: 18px; height: 18px; }

    .tip-sticker-tag button { background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 0.8rem; padding: 0 0 0 2px; line-height: 1; }

    .tip-sticker-tag button:hover { color: #ef4444; }

    .tip-anon-toggle {

      display:flex; align-items:center; gap:8px; margin-bottom:12px;

      font-size:0.82rem; color:#60708f; cursor:pointer; user-select:none;

    }

    .tip-section-divider { text-align:center; color:#a0aec0; font-size:0.78rem; margin:12px 0; position:relative; }

    .tip-section-divider::before, .tip-section-divider::after {

      content:""; position:absolute; top:50%; width:40%; height:1px; background:rgba(7,19,47,0.08);

    }

    .tip-section-divider::before { left:0; } .tip-section-divider::after { right:0; }



    /* ── Share panel styles ── */

    .share-grid { display:flex; gap:12px; justify-content:center; margin-bottom:6px; flex-wrap:wrap; }

    .share-btn-item {

      display:flex; flex-direction:column; align-items:center; gap:6px;

      border:none; background:transparent; cursor:pointer; font:inherit; padding:4px;

      transition:transform 0.15s; min-width:64px;

    }

    .share-btn-item:hover { transform:scale(1.08); }

    .share-btn-item .share-icon-circle {

      width:48px; height:48px; border-radius:50%; display:grid; place-items:center;

      box-shadow:0 2px 10px rgba(0,0,0,0.12); transition:box-shadow 0.15s;

    }

    .share-btn-item:hover .share-icon-circle { box-shadow:0 4px 16px rgba(0,0,0,0.2); }

    .share-btn-item .share-icon-circle svg { width:22px; height:22px; color:#fff; }

    .share-btn-item .share-label { font-size:0.72rem; color:#60708f; }

    .share-url-row { display:flex; gap:6px; margin-top:12px; }

    .share-url-input {

      flex:1; padding:8px 12px; border:1px solid rgba(7,19,47,0.1); border-radius:8px;

      font:inherit; font-size:0.8rem; color:#60708f; background:#f9fafb; outline:none;

    }

    .share-copy-btn {

      padding:8px 16px; border:none; border-radius:8px;

      background:#0068ff; color:#fff; font:inherit; font-size:0.82rem; cursor:pointer;
      background:var(--accent-strong); color:#fff; font:inherit; font-size:0.82rem; cursor:pointer; /* 主题套装跟随（fallback：上一行原值） */

      transition:opacity 0.15s; white-space:nowrap;

    }

    .share-copy-btn:hover { opacity:0.88; }



    @media(max-width:768px){

      .fab-panel { width:calc(100vw - 48px); right:0; }

      .fab-hub { bottom:16px; right:16px; }

    }

    /* ── Block Divider（管理端在 items 中插入的分割线模块） ─────── */
    .block-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--muted, #60708f);
      font-size: 0.78rem;
      letter-spacing: 0.04em;
      padding: 4px 0;
      user-select: none;
    }
    .block-divider-line {
      flex: 1 1 auto;
      height: 1px;
      background: rgba(7, 19, 47, 0.16);
      background: var(--theme-line-raw, rgba(7, 19, 47, 0.16)); /* 主题套装跟随（fallback：上一行原值） */
    }
    .block-divider[data-style="dashed"] .block-divider-line {
      background: none;
      border-top: 1px dashed rgba(7, 19, 47, 0.22);
      border-top: 1px dashed var(--theme-line-raw, rgba(7, 19, 47, 0.22)); /* 主题套装跟随（fallback：上一行原值） */
    }
    .block-divider[data-style="dotted"] .block-divider-line {
      background: none;
      border-top: 1px dotted rgba(7, 19, 47, 0.22);
      border-top: 1px dotted var(--theme-line-raw, rgba(7, 19, 47, 0.22)); /* 主题套装跟随（fallback：上一行原值） */
    }
    .block-divider[data-style="solid"] .block-divider-line {
      height: 1px;
      background: rgba(7, 19, 47, 0.16);
      background: var(--theme-line-raw, rgba(7, 19, 47, 0.16)); /* 主题套装跟随（fallback：上一行原值） */
      border: none;
    }
    .block-divider-label {
      flex: 0 0 auto;
      padding: 0 6px;
      color: var(--muted, #60708f);
      color: var(--theme-line-raw, var(--muted)); /* 主题套装跟随：名称与分割线同色（fallback：上一行原值） */
      font-size: 0.93rem;
      font-weight: 600;
      white-space: nowrap;
    }
    /* 简单纯线（无 label） */
    .block-divider:not(:has(.block-divider-label)) .block-divider-line-before { flex: 1; }
    .block-divider:not(:has(.block-divider-label)) .block-divider-line-after { flex: 1; }





/* 2026-08-19: 答题时隐藏关于区原文，复用关于区空间（不另造暗色卡片） */
#about.eqz-on > :not(#eqz) { visibility: hidden; }


/* ── 骨架屏 shimmer（2026-08-20：加载中显示动画，不静默空白）── */
@keyframes endril-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-line,
.skeleton-media,
.tool-card.skeleton-card {
  background: linear-gradient(90deg, rgba(226,232,240,0.55) 25%, rgba(244,247,251,0.95) 50%, rgba(226,232,240,0.55) 75%);
  background-size: 200% 100%;
  animation: endril-shimmer 1.4s ease-in-out infinite;
}
/* 骨架卡媒体区：模拟 16:9 图区 */
.skeleton-card .tool-media.skeleton-media {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: none;
}
.skeleton-line {
  display: block;
  border-radius: 6px;
}
/* 图片加载中 shimmer：img 加载完成前背景可见，加载后自动覆盖 */
.tool-media img:not([src=""]),
.panel-feature img:not([src=""]) {
  background: linear-gradient(90deg, rgba(226,232,240,0.55) 25%, rgba(244,247,251,0.95) 50%, rgba(226,232,240,0.55) 75%);
  background-size: 200% 100%;
  animation: endril-shimmer 1.4s ease-in-out infinite;
}
/* 无 JS 用户：骨架卡隐藏，显示 noscript 内容 */
html.no-js .skeleton-card { display: none; }

/* ── 留言加载中骨架（2026-08-21：comments-list 内，fab-hub 填充时被清空）── */
.cmt-skeleton {
  padding: 14px 4px;
  border-bottom: 1px solid rgba(7, 19, 47, 0.08);
}
.cmt-skeleton-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

/* ── 关于区点击加载动画（2026-08-21：quiz.js 题库未就绪时显示）── */
/* loader 挂 .about 卡片内 → 尺寸/边框/圆角自动与关于区一致 */
#about .about { position: relative; }
.about-loader {
  position: absolute;
  inset: 0;
  z-index: 5;                       /* 与 #eqz 同层，覆盖卡片内容 */
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius, 6px); /* 与卡片同圆角 */
}
.about-loader.is-show { display: flex !important; }
.about-loader-shimmer {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(0,104,255,0.35) 25%, rgba(0,223,246,0.85) 50%, rgba(0,104,255,0.35) 75%);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-strong) 35%, transparent) 25%, color-mix(in srgb, var(--accent) 85%, transparent) 50%, color-mix(in srgb, var(--accent-strong) 35%, transparent) 75%); /* 主题套装跟随（fallback：上一行原值） */
  background-size: 200% 100%;
  animation: endril-shimmer 1.2s ease-in-out infinite;
}
.about-loader-text {
  font-size: 0.92rem;
  color: var(--ink, #07132f);
  font-weight: 600;
}


/* 分割线 (line) 只控制两处：① .block-divider 模块（上文）；② 主站首页留言区"写留言"按钮下方横线 .cmt-header（本文件最下方）。
   其余所有原本 var(--theme-line-raw) 的元素（FAB 按钮/输入框/面板描边 + FAB 内其它分隔线 + 首页 .tools-count 计数 chip）
   全部改由 fabBorder 独立控制，不再受 line 影响。fab-hub.css 不可修改（铁律#5），用页级 !important 覆盖。
   fabBorder 默认 = 该套装的 line 提取值，视觉零变化。 */
.fab-main,
.fab-action-label,
.fab-action-btn,
.fab-panel,
.fb-editor,
.fb-editor img,
.fab-input,
.fb-email-labeled,
.fb-email-label,
.tip-qr-wrap img,
.tip-fold-toggle,
.tip-sticker-cat,
.cmt-field-row,
.cmt-field-label,
.share-url-input,
.cmt-write-btn,
.qr-lightbox-inner,
.reply-modal,
.reply-modal-hdr,
.reply-modal-body textarea,
.reply-modal-body input {
  border-color: var(--fab-border, rgba(7, 19, 47, 0.1)) !important;
}
.fb-sep,
.tip-section-divider::before,
.tip-section-divider::after {
  background-color: var(--fab-border, rgba(7, 19, 47, 0.1)) !important;
}
/* 唯一继续受 line 控制的 FAB 元素：主站首页留言区"写留言"按钮下方那条横线。
   本文件仅首页加载 → 其它页面不受影响（页面级天然隔离）。 */
.cmt-header {
  border-bottom-color: var(--theme-line-raw, rgba(7, 19, 47, 0.06)) !important;
}

/* ── 召唤 AI（AI Launcher）按钮 + 浮动对话框（2026-09-10）── */

/* 搜索框按钮容器：包住 input + button，用 position: relative 让 button 绝对定位到右端。
   仅当按钮实际存在时启用：避免 .search padding-right 让位在无按钮时留白。 */
.home-ai-launcher-search-wrap {
  position: relative;
}
.home-ai-launcher-search-wrap .search {
  padding-right: 116px;
}
.home-ai-launcher-btn {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(0, 223, 246, 0.54);
  border: 1px solid color-mix(in srgb, var(--accent) 54%, transparent); /* 主题套装跟随（fallback：上一行原值）——与 .button.primary 一致，近乎不可见 */
  border-radius: var(--radius);
  /* 渐变背景与 .button.primary（Explore My Skills）同结构，但整体调浅一档（各色停混 28% 白）+ 无动画（静态渐变） */
  background: linear-gradient(135deg, #4d70ff, #4d84ff, #66e6fa, #4d70ff);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-strong) 72%, #fff),
    color-mix(in srgb, var(--accent-strong) 72%, #fff),
    color-mix(in srgb, var(--accent) 72%, #fff),
    color-mix(in srgb, var(--accent-strong) 72%, #fff)); /* 主题套装跟随（fallback：上一行原值） */
  background-size: 300% 300%;
  background-position: 0% 50%;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 6px 16px rgba(0, 104, 255, 0.18);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent-strong) 18%, transparent); /* 主题套装跟随（fallback：上一行原值） */
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.home-ai-launcher-btn:hover {
  filter: brightness(1.08);
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 10px 22px rgba(0, 104, 255, 0.3);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent-strong) 30%, transparent); /* 主题套装跟随（fallback：上一行原值） */
}
.home-ai-launcher-btn:active {
  filter: brightness(0.96);
  transform: translateY(-50%);
}
.home-ai-launcher-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.home-ai-launcher-btn .home-ai-launcher-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #fff; /* 跟随文案白色（渐变底上 accent 蓝会看不清） */
}
.home-ai-launcher-btn .home-ai-launcher-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.home-ai-launcher-btn .home-ai-launcher-text {
  white-space: nowrap;
}

/* 浮动对话框 */
.home-ai-launcher-dialog {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(7, 19, 47, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  /* 注：禁止点击遮罩关闭（用户原话：避免误触）—— wrap 上不挂任何 close 监听 */
  /* 窗口用 position:absolute + JS 设置 left/top —— 此容器不再用 grid 居中，避免两套定位模型叠加 */
  animation: home-ai-launcher-fade 180ms ease;
}
@keyframes home-ai-launcher-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.home-ai-launcher-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  background: var(--paper-solid);
  border: 1px solid rgba(7, 19, 47, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 28px 78px rgba(7, 19, 66, 0.28);
  overflow: hidden;
  min-width: 320px;
  min-height: 220px;
  /* width/height/left/top 由 JS 设置 */
}
.home-ai-launcher-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 44px;
  padding: 0 12px 0 14px;
  background: linear-gradient(180deg, rgba(0, 223, 246, 0.06), rgba(0, 223, 246, 0));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), color-mix(in srgb, var(--accent) 0%, transparent));
  border-bottom: 1px solid rgba(7, 19, 47, 0.08);
  cursor: move;
  user-select: none;
  flex: 0 0 auto;
}
.home-ai-launcher-title {
  font-size: 0.86rem;
  font-weight: 760;
  color: var(--ink);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-ai-launcher-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.home-ai-launcher-close:hover {
  background: rgba(7, 19, 47, 0.08);
  color: var(--ink);
}
.home-ai-launcher-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.home-ai-launcher-close svg {
  width: 16px;
  height: 16px;
}
.home-ai-launcher-body {
  flex: 1 1 auto;
  min-height: 0;
  background: #f5fbff;
  background: color-mix(in srgb, var(--bg-soft, #f5fbff) 100%, transparent);
}
.home-ai-launcher-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}
/* 调整大小手柄（仅 SE 右下角，符合用户"圆角轻微"诉求 → 不放 8 个手柄） */
.home-ai-launcher-resize-se {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  /* 透明手柄，但提供可点击热区 + 视觉提示（小三角） */
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(7, 19, 47, 0.28) 50% 60%, transparent 60% 70%, rgba(7, 19, 47, 0.28) 70% 80%, transparent 80% 90%, rgba(7, 19, 47, 0.28) 90% 100%);
}
.home-ai-launcher-resize-se:hover {
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(0, 104, 255, 0.55) 50% 60%, transparent 60% 70%, rgba(0, 104, 255, 0.55) 70% 80%, transparent 80% 90%, rgba(0, 104, 255, 0.55) 90% 100%);
}

/* 移动端：对话框全屏，无遮罩模糊干扰 */
.home-ai-launcher-dialog.is-mobile {
  background: #ffffff;
  background: var(--paper-solid);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.home-ai-launcher-dialog.is-mobile .home-ai-launcher-window {
  width: 100vw !important;
  height: 100dvh !important;
  left: 0 !important;
  top: 0 !important;
  border-radius: 0;
  border: 0;
}
@media (max-width: 768px) {
  /* JS 也按 is-mobile 注入，但纯 CSS 也保证窄屏体验一致 */
  .home-ai-launcher-dialog .home-ai-launcher-window {
    width: 100vw !important;
    height: 100dvh !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0;
    border: 0;
  }
  .home-ai-launcher-resize-se { display: none; }
  .home-ai-launcher-btn .home-ai-launcher-text {
    /* 极窄屏隐藏文字，只剩图标，避免按钮太宽挤占输入空间 */
    display: none;
  }
  .home-ai-launcher-btn {
    padding: 0 10px;
  }
}