/* ============ 管理后台 ============ */
html, body { height: 100%; overflow: hidden; }
#app { height: 100%; }
.boot { height: 100%; display: flex; align-items: center; justify-content: center; }

.admin { display: flex; height: 100%; }
.nav { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; background: #fff; border-right: 1px solid var(--border); }
.nav-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-size: 16px; font-weight: 600; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2f66f5, #5b8dff); color: #fff; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: none; border-radius: 8px;
  background: none; color: var(--text-2); text-decoration: none; font-size: 14px; cursor: pointer; text-align: left; width: 100%;
}
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--border-2); }
.nav-me { padding: 8px 12px 0; font-size: 12px; color: var(--text-3); }

.content { flex: 1; min-width: 0; overflow-y: auto; }
.page { max-width: 1120px; padding: 28px 32px 48px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 20px; }
.page-sub { margin: 4px 0 0; font-size: 13px; color: var(--text-3); }
.section-label { margin: 4px 0 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }

/* ---------- KPI 指标 ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; transition: opacity .2s; }
.kpi { padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.kpi-label { font-size: 13px; color: var(--text-2); }
.kpi-value { margin-top: 6px; font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub { margin-top: 4px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stale { opacity: .6; }

/* ---------- 卡片 ---------- */
.card { margin-bottom: 20px; padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: 10px; transition: opacity .2s; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head > div:first-child { flex: 1 1 260px; min-width: 0; }
.card-title { font-size: 15px; font-weight: 600; }
.card-sub { margin-top: 2px; font-size: 12px; color: var(--text-3); }
.card-text { margin: 8px 0 12px; color: var(--text-2); line-height: 1.7; }
.card-text code, .code-box pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.card-text code { padding: 1px 5px; border-radius: 4px; background: var(--bg); font-size: 12px; }

.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--bg); }
.seg button { height: 26px; padding: 0 12px; border: none; border-radius: 6px; background: none; color: var(--text-2); font-size: 13px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-weight: 500; }

/* ---------- 柱状图 ---------- */
.col-chart { position: relative; width: 100%; }
.col-chart svg { display: block; overflow: visible; }
.col-chart .grid { stroke: #eceef1; stroke-width: 1; shape-rendering: crispEdges; }
.col-chart .grid.base { stroke: #cfd3da; }
.col-chart .tick, .col-chart .xlabel { font-size: 12px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.col-chart .xlabel.today { fill: var(--text-2); font-weight: 600; }
.col-chart .cap-label { font-size: 12px; font-weight: 600; fill: var(--text); }
.col-chart .bar { fill: var(--primary); transition: fill .12s; }
.col-chart .bar.hot { fill: #5c8dff; }
.col-chart .hit { fill: transparent; cursor: default; outline: none; }
.col-chart .hit:focus-visible { stroke: var(--primary); stroke-width: 1; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -100%);
  padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); white-space: nowrap;
}
.tip-value { font-weight: 600; color: var(--text); }
.tip-label { font-size: 12px; color: var(--text-3); }

/* ---------- 表格 ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 10px 12px; text-align: left; font-weight: 500; color: var(--text-3); background: var(--bg-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-2); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .actions { text-align: right; white-space: nowrap; width: 1%; }
.data-table .pre { white-space: pre-wrap; color: var(--text-2); }
.card > .data-table { margin: -4px 0; }
.who { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.status-cell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.danger-text { color: var(--danger); }
.danger-text:hover:not(:disabled) { color: var(--danger); background: var(--danger-soft); }

/* ---------- 表单 ---------- */
.form-card { max-width: 680px; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; border-top: 1px solid var(--border-2); }
.form-row-title { font-size: 14px; font-weight: 500; }
.form-actions { padding-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.select { appearance: auto; }

.code-box { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 8px; background: #f6f8fa; border: 1px solid var(--border); margin-bottom: 12px; }
.code-box pre { flex: 1; margin: 0; white-space: pre-wrap; word-break: break-all; font-size: 13px; line-height: 1.6; color: var(--text); }

@media (max-width: 760px) {
  .nav { width: 64px; padding: 12px 8px; }
  .nav-brand span, .nav-me { display: none; }
  .nav-item { justify-content: center; padding: 0; font-size: 0; gap: 0; }
  .page { padding: 20px 16px 40px; }
  .data-table { display: block; overflow-x: auto; }
  .data-table td.empty { white-space: nowrap; text-align: left; }
}

/* 新增页面 */
.settings-section { margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 15px; font-weight: 600; }
.day-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.day-pick { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: 15px; cursor: pointer; font-size: 13px; user-select: none; }
.day-pick input { display: none; }
.day-pick.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.test-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.test-row .input { flex: 1; min-width: 160px; }
.test-answer { display: flex; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--primary-soft); color: var(--text); line-height: 1.6; white-space: pre-wrap; }
.test-answer .ui-icon { color: var(--primary); margin-top: 3px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.small { font-size: 12px; }
.code-inline { padding: 1px 6px; border-radius: 4px; background: var(--bg); font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }

/* ---------- 访客端设置 ---------- */
.page.vc-page { max-width: none; height: 100%; display: flex; flex-direction: column; padding: 20px 24px 0; }
.vc-top { flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.vc-top h1 { margin: 0; font-size: 20px; }
.vc-top .page-sub { display: flex; align-items: center; gap: 6px; }
.vc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dot-warn, .dot-ok { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-warn { background: var(--warning); }
.dot-ok { background: var(--success); }
.vc-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 176px minmax(0, 1fr) 400px; gap: 16px; padding-bottom: 20px; }
.vc-nav { overflow-y: auto; padding: 10px 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.vc-nav-group { padding: 10px 10px 4px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.vc-nav-group:first-child { padding-top: 2px; }
.vc-nav-item { display: block; width: 100%; height: 34px; padding: 0 12px; border: none; border-radius: 6px; background: none; color: var(--text-2); text-align: left; font-size: 14px; cursor: pointer; }
.vc-nav-item:hover { background: var(--bg); color: var(--text); }
.vc-nav-item.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.vc-form { overflow-y: auto; padding: 20px 24px 32px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.vc-form-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border-2); }
.vc-form-head h2 { margin: 0; font-size: 17px; }
.vc-form-head p { margin: 4px 0 0; font-size: 13px; color: var(--text-3); }
.vc-preview { display: flex; flex-direction: column; min-height: 0; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.vc-preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vc-preview-head .seg button { display: inline-flex; align-items: center; gap: 4px; }
.vc-frame-wrap { position: relative; flex: 1; min-height: 420px; overflow: hidden; border-radius: 12px; background: #eef1f5; }
.vc-frame-wrap iframe { position: absolute; border: 0; background: #fff; }
.vc-frame-wrap.mobile iframe { left: 50%; top: 0; width: 360px; height: 100%; max-height: 720px; transform: translateX(-50%); border-radius: 12px; box-shadow: var(--shadow); }
/* 电脑：按约 1000px 宽渲染后缩小显示（宽度 ≥ 900px 才会出现侧边栏） */
.vc-frame-wrap.desktop iframe { left: 0; top: 0; width: 280%; height: 280%; transform: scale(.35714); transform-origin: 0 0; }
.vc-preview > .form-tip { margin-top: 8px; }

.color-row { display: flex; gap: 8px; }
.color-row input[type="color"] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; }
.sub-grid { padding: 12px 14px 0; margin-bottom: 12px; border-radius: 8px; background: var(--bg-2); }
.hint-box { margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: var(--primary-soft); color: var(--text-2); font-size: 13px; line-height: 1.6; }
.hint-box code { padding: 0 4px; border-radius: 3px; background: #fff; font-size: 12px; }
.warn-text { color: var(--warning); }
.img-row { display: flex; align-items: center; gap: 10px; }
.img-thumb { width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; flex-shrink: 0; }
.img-thumb.round { border-radius: 50%; }
.img-thumb.wide { width: 120px; height: 60px; }
.empty-thumb { display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); background: var(--bg); }
.radio-cards { display: grid; gap: 8px; }
.radio-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 10px 36px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.radio-card input { position: absolute; left: 12px; top: 13px; margin: 0; }
.radio-card span { font-size: 12px; color: var(--text-3); }
.radio-card.on { border-color: var(--primary); background: var(--primary-soft); }
.field-editor, .action-editor, .list-editor { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto auto auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--border-2); border-radius: 8px; }
.field-row .field-options { grid-column: 1 / -1; }
.field-row .check-row { white-space: nowrap; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--border-2); border-radius: 8px; }
.action-row > .input:first-child { flex: 1; min-width: 100px; }
.action-row > .select:not(.grow) { width: 140px; flex-shrink: 0; }
/* 动作的具体内容（文字 / 链接 / 知识库条目）单独占一行 */
.action-row > .grow { flex: 1 1 100%; order: 10; }
.grow { flex: 1; min-width: 0; }
.inline-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.list-card { padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.list-card.dragging { opacity: .5; border-style: dashed; }
.list-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.list-card-head .input { flex: 1; }
.drag-handle { display: flex; color: var(--text-4); cursor: grab; }
.label-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.label-cell { display: flex; flex-direction: column; gap: 4px; }
.auto-block { padding: 0 0 4px; }
.faq-pick { max-height: 300px; overflow-y: auto; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; }
.faq-pick-row { padding: 7px 0; border-bottom: 1px solid var(--border-2); }
.faq-pick-row:last-child { border-bottom: none; }

/* 咨询入口预览：模拟网站 */
.mock-site { flex: 1; min-height: 420px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; }
.mock-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; background: #f1f3f6; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d7dbe2; }
.mock-bar span { margin-left: 8px; }
.mock-body { position: relative; flex: 1; padding: 18px; background: #fff; }
.mock-line { height: 10px; margin-bottom: 12px; border-radius: 5px; background: #eef0f3; }
.mock-line.w40 { width: 40%; } .mock-line.w60 { width: 60%; } .mock-line.w70 { width: 70%; } .mock-line.w80 { width: 80%; }
.mock-block { height: 110px; margin-bottom: 12px; border-radius: 8px; background: #f4f6f9; }
.mock-entry { position: absolute; display: flex; flex-direction: column; align-items: flex-end; }
.mock-entry[style*="left"] { align-items: flex-start; }
.mock-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 22px; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); font-size: 13px; font-weight: 600; }
.mock-btn.capsule { width: auto; height: 38px; padding: 0 14px 0 12px; }
.mock-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; border: 2px solid #fff; background: var(--danger); font-size: 10px; font-style: normal; line-height: 14px; text-align: center; }
.mock-invite { position: relative; width: 190px; margin-bottom: 10px; padding: 10px 22px 10px 12px; border-radius: 10px; background: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, .16); font-size: 12px; line-height: 1.5; }
.mock-invite span { position: absolute; top: 4px; right: 8px; color: var(--text-3); }

/* 历史版本 / 留言 */
.version-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-2); }
.version-row:last-child { border-bottom: none; }
.leave-reply-cell { margin-top: 4px; color: var(--success); }
.leave-quote { margin-bottom: 12px; padding: 10px 12px; border-left: 3px solid var(--border); background: var(--bg-2); color: var(--text-2); white-space: pre-wrap; font-size: 13px; }

/* 满意度 */
.sat-grid { display: grid; grid-template-columns: 160px minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.sat-avg { font-size: 34px; font-weight: 600; line-height: 1.1; }
.sat-avg span { font-size: 14px; font-weight: 400; color: var(--text-3); }
.sat-row { display: flex; align-items: center; gap: 10px; height: 24px; font-size: 13px; }
.sat-label { width: 36px; color: var(--text-2); }
.sat-track { flex: 1; height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.sat-track i { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.sat-track i.bad { background: #f08c00; }
.sat-num { width: 40px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.sat-tag { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; border-bottom: 1px solid var(--border-2); }

@media (max-width: 1280px) {
  .vc-body { grid-template-columns: 150px minmax(0, 1fr) 340px; }
  .vc-frame-wrap.mobile iframe { width: 320px; }
}
@media (max-width: 1080px) {
  .vc-body { grid-template-columns: 140px minmax(0, 1fr); }
  .vc-preview { display: none; }
  .sat-grid { grid-template-columns: 1fr; }
}

/* ---------- 分组导航 ---------- */
.nav-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.nav-group { padding: 12px 12px 4px; font-size: 12px; color: var(--text-3); }
.nav-group:first-child { padding-top: 0; }
@media (max-width: 760px) { .nav-group { display: none; } .nav-item span { display: none; } }

/* ---------- 统计报表 ---------- */
.page.page-wide { max-width: 1280px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 20px; }
.mini-bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; margin-top: 12px; padding-bottom: 2px; border-bottom: 1px solid #cfd3da; }
.mini-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.mini-bar i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--primary); min-height: 0; }
.mini-bar:hover i { background: #5c8dff; }
.mini-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--text-3); }
.sat-label.wide { width: 90px; }

/* ---------- 质检记录 ---------- */
.transcript-modal { width: 920px; height: min(720px, calc(100vh - 32px)); }
.transcript-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 260px; border-top: 1px solid var(--border-2); }
.transcript-msgs { overflow-y: auto; padding: 14px 18px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.transcript-side { padding: 14px 18px; overflow-y: auto; border-left: 1px solid var(--border-2); }
.tr-msg { max-width: 80%; }
.tr-meta { font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.tr-content { padding: 7px 10px; border-radius: 8px; background: #fff; white-space: pre-wrap; word-break: break-word; font-size: 13px; }
.tr-agent, .tr-bot { align-self: flex-end; }
.tr-agent .tr-content { background: var(--primary-soft); }
.tr-bot .tr-content { background: #eef3ff; }
.tr-system { align-self: center; }
.tr-system .tr-content { background: none; color: var(--text-3); font-size: 12px; padding: 0; }
.tr-note { align-self: center; }
.tr-note .tr-content { background: #fffbe6; border: 1px dashed #e6c200; }

/* ---------- 站点 ---------- */
.site-switch { display: flex; align-items: center; gap: 6px; padding: 0 4px 0 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text-3); }
.site-switch .select { width: auto; min-width: 120px; height: 30px; border: none; box-shadow: none; padding: 0 4px; }
.site-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-2); }
.site-info { flex: 1; min-width: 0; }
.site-actions { display: flex; align-items: flex-start; }
.small-code { margin: 8px 0 0; padding: 6px 10px; }
.small-code pre { font-size: 12px; }
.site-form { margin-top: 12px; padding: 14px; border-radius: 8px; background: var(--bg-2); }

/* ---------- 工单 ---------- */
.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover td { background: var(--bg-2); }
.ticket-modal { width: 640px; }
.ticket-props-admin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.ticket-props-admin label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
.ticket-props-admin .select, .ticket-props-admin .input { width: 100%; min-width: 0; }
.tl-list { max-height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; }
.tl-row { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.tl-row:last-child { border-bottom: 0; }
.tl-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.tl-meta .muted { margin-left: auto; }
.tl-note .pre { background: var(--warning-soft); border-radius: 6px; padding: 4px 8px; }
.tl-reply .pre { background: var(--primary-soft); border-radius: 6px; padding: 4px 8px; }
@media (max-width: 700px) { .ticket-props-admin { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 开放接口 ---------- */
.key-create { display: flex; gap: 8px; align-items: center; }
.key-create .input { width: 180px; }
.key-reveal { background: var(--success-soft); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.key-reveal .code-box { margin-top: 6px; }
.hook-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.hook-row:last-of-type { border-bottom: 0; }
.hook-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; word-break: break-all; }
.hook-actions { display: flex; gap: 2px; flex-shrink: 0; }
.api-doc td { vertical-align: top; }
.api-doc code { word-break: break-all; }
@media (max-width: 700px) { .hook-row { flex-direction: column; align-items: stretch; } .key-create { width: 100%; } .key-create .input { flex: 1; width: auto; min-width: 0; } .api-doc tr { display: flex; flex-wrap: wrap; } .api-doc td { border: 0; padding: 4px 8px; } .api-doc td:last-child { width: 100%; border-bottom: 1px solid var(--border-2); } }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }

/* ---------- 快捷回复分类 ---------- */
.quick-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.search-box { display: flex; align-items: center; gap: 6px; width: 220px; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-3); background: #fff; }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: 13px; color: var(--text); }
.quick-cats { flex: 1 1 100%; order: 3; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.quick-cats button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--text-2); font-size: 13px; cursor: pointer; }
.quick-cats button span { font-size: 11px; color: var(--text-3); }
.quick-cats button:hover { border-color: var(--primary); color: var(--primary); }
.quick-cats button.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.quick-cats button.on span { color: var(--primary); }
.quick-cat-actions { display: flex; gap: 2px; margin-left: auto; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 12px; border-radius: 8px; background: var(--primary-soft); font-size: 13px; }
.clickable-tag { cursor: pointer; }
@media (max-width: 760px) { .search-box { width: 100%; } }
