/* 工具箱筛选器 复用首页cat-chip样式 v10 */
.tb-nav-mobile { padding: 8px 12px; }
.tb-nav-mobile .tb-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}
.tb-nav-mobile .tb-filter-label {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--ink-2);
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}
.tb-nav-mobile .tb-filter-options {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}
.tb-nav-mobile .tb-filter-row:first-child .tb-filter-options {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    gap: 8px;
}
.tb-nav-mobile .tb-filter-row:first-child .tb-filter-options::-webkit-scrollbar { display: none; }
.tb-nav-mobile .tb-filter-row:last-child .tb-filter-options {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    gap: 8px;
}
.tb-nav-mobile .tb-filter-row:last-child .tb-filter-options::-webkit-scrollbar { display: none; }
/* r418: 与 AI 工具页移动端 .side-link 视觉统一 —— 36px 高、999px 药丸圆角、白底灰边、激活蓝白 */
.tb-nav-mobile .tb-cat {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    line-height: 1;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background-color .15s, color .15s, border-color .15s;
}
.tb-nav-mobile .tb-cat:hover {
    color: var(--ink);
    border-color: var(--border-2);
}
.tb-nav-mobile .tb-cat.on {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
}
/* r415: .tb-opt 是旧残留类，样式已由 .tb-cat 统一接管，不再单独定义 */
.tb-nav-mobile .tb-tool-group { display: none; }
.tb-nav-mobile .tb-tool-group.active {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: max-content;
    min-width: 100%;
}

/* ===== v11 移动端修复 D1/D2 20261104 audit ===== */
/* D1: grid 子项允许收缩(min-width:0)，避免 chips 行把 .tb-nav-mobile/.tb-panel 撑出 375 视口 */
.tb-wrap > * { min-width: 0; }
.tb-nav-mobile,
.tb-nav-mobile .tb-filter-row { min-width: 0; }
.tb-nav-mobile .tb-filter-row:first-child .tb-filter-options { max-width: 100%; }
/* D2: 面板底部安全间距避让 fixed bottom-nav(h=58px)；操作按钮行可滚动至 nav 上方 */
.tb-panel { padding-bottom: 86px; }
.tb-panel .form-actions { scroll-margin-bottom: 80px; }
/* D2-补: 移动端压缩面板垂直占用，使首屏操作按钮行完整露出、不被 bottom-nav 覆盖 */
@media (max-width: 640px) {
  .tb-panel { padding-top: 16px; padding-left: 16px; padding-right: 16px; }
  .tb-panel .tb-tip { margin-bottom: 8px; }
  .tb-panel .tb-input { height: 168px; }
}
