/* ==========================================================================
   AI 效率工具集（都是宝迁移版） 2026-10-22
   沿用交付平台设计 token（--bg / --canvas / --surface / --border / --text / --accent）。
   只用新增命名空间 .ai-*，不覆盖主站任何既有类。
   ========================================================================== */

/* AI 效率工具集挂载容器（效率工具 → 卡片进入后的宿主） */
.ai-host { padding: 14px 2px 24px; }

/* ---------- 外壳：左侧工具导航 + 右侧内容 ---------- */
.ai-shell { display: flex; gap: 18px; align-items: flex-start; min-height: calc(100vh - 210px); }
.ai-nav { width: 176px; flex: none; background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 14px; padding: 8px; position: sticky; top: 8px; }
.ai-nav-title { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: .06em; padding: 8px 10px 6px; }
.ai-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; margin: 2px 0; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.ai-nav-item:hover { background: var(--surface-3, #f4f5f7); color: var(--text); }
.ai-nav-item.active { background: var(--accent, #3C83F6); color: #fff; }
.ai-nav-item .ic-svg { width: 17px; height: 17px; flex: none; }
.ai-main { flex: 1; min-width: 0; }

/* ---------- 通用块 ---------- */
.ai-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ai-bar h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.ai-card { background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 14px; padding: 18px; }
.ai-card + .ai-card { margin-top: 14px; }
.ai-card h4 { margin: 0 0 12px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.ai-grid { display: grid; gap: 14px; }
.ai-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ai-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ai-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ai-row .field { flex: 1; min-width: 150px; margin-bottom: 0; }
.ai-spacer { flex: 1; }
.ai-hint { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.ai-sep { height: 1px; background: var(--border, #e5e7eb); margin: 14px 0; }
.ai-muted-box { padding: 22px; text-align: center; color: var(--text-3); font-size: 13px; background: var(--surface-2, #fafafa); border: 1px dashed var(--border-strong, #d1d5db); border-radius: 12px; }

/* 分段选择器 / 开关行 */
.ai-seg { display: inline-flex; padding: 3px; background: var(--surface-3, #f4f5f7); border-radius: 10px; gap: 3px; }
.ai-seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.ai-seg button.active { background: var(--surface, #fff); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.ai-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.ai-check input { width: 16px; height: 16px; accent-color: var(--accent, #3C83F6); }
.ai-inline { display: flex; align-items: center; gap: 8px; }

/* 表格 */
.ai-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ai-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--border, #e5e7eb); white-space: nowrap; }
.ai-table td { padding: 9px 10px; border-bottom: 1px solid var(--border, #e5e7eb); color: var(--text-2); white-space: nowrap; }
.ai-table tbody tr:hover td { background: var(--surface-2, #fafafa); }
.ai-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ai-scroll { overflow: auto; max-height: 460px; border-radius: 10px; }

/* 结果数值块 */
.ai-figure { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ai-fig-item { background: var(--surface-2, #fafafa); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 12px 14px; }
.ai-fig-item .k { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.ai-fig-item .v { font-size: 19px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.ai-fig-item.hl .v { color: var(--accent, #3C83F6); }
.ai-fig-item.ok .v { color: #059669; }

/* 进度与状态 */
.ai-prog { height: 6px; border-radius: 4px; background: var(--surface-3, #f4f5f7); overflow: hidden; }
.ai-prog i { display: block; height: 100%; background: var(--accent, #3C83F6); transition: width .3s; }
.ai-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.ai-status.pending { background: #f1f5f9; color: #64748b; }
.ai-status.processing { background: #eff6ff; color: #2563eb; }
.ai-status.success { background: #ecfdf5; color: #059669; }
.ai-status.failed { background: #fef2f2; color: #dc2626; }
.ai-status.completed { background: #ecfdf5; color: #059669; }
.ai-status.partially_failed { background: #fffbeb; color: #b45309; }

/* 证书编辑器 */
.ai-cert-wrap { display: flex; gap: 14px; align-items: flex-start; }
.ai-cert-stage { flex: 1; min-width: 0; overflow: auto; background: var(--canvas, #f2f3f5); border-radius: 12px; padding: 12px; display: grid; place-items: center; }
.ai-canvas { position: relative; background: #fff; box-shadow: 0 4px 20px rgba(15,23,42,.12); overflow: hidden; transform-origin: top left; }
.ai-canvas .ai-el { position: absolute; cursor: move; user-select: none; white-space: pre; }
.ai-canvas .ai-el.selected { outline: 2px solid var(--accent, #3C83F6); outline-offset: 1px; }
.ai-canvas .ai-el[data-type="shape"] { border-radius: 4px; }
.ai-side { width: 288px; flex: none; background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 14px; padding: 16px; }
.ai-side .field { margin-bottom: 11px; }
.ai-side label { font-size: 12px; }
.ai-palette { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ai-palette button { border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); border-radius: 9px; padding: 9px 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.ai-palette button:hover { border-color: var(--accent, #3C83F6); color: var(--accent); }
.ai-color-row { display: flex; align-items: center; gap: 8px; }
.ai-color-row input[type="color"] { width: 34px; height: 30px; padding: 0; border: 1px solid var(--border, #e5e7eb); border-radius: 8px; background: transparent; }
.ai-swatches { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.ai-swatch { width: 20px; height: 20px; border-radius: 5px; border: 1px solid rgba(15,23,42,.12); cursor: pointer; }

/* 模板列表 */
.ai-tpl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ai-tpl { border: 1px solid var(--border, #e5e7eb); border-radius: 11px; overflow: hidden; background: var(--surface, #fff); cursor: pointer; transition: border-color .15s; position: relative; }
.ai-tpl:hover { border-color: var(--accent, #3C83F6); }
.ai-tpl.active { border-color: var(--accent, #3C83F6); box-shadow: 0 0 0 3px rgba(60,131,246,.14); }
.ai-tpl img { width: 100%; height: 96px; object-fit: cover; display: block; background: var(--surface-3, #f4f5f7); }
.ai-tpl .n { font-size: 12.5px; padding: 7px 9px; color: var(--text-2); display: flex; justify-content: space-between; gap: 6px; }
.ai-tpl .del { border: 0; background: transparent; color: #dc2626; cursor: pointer; padding: 0; }

/* 延展宝 */
.ai-ext-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ai-ext-card { border: 1px solid var(--border, #e5e7eb); border-radius: 12px; overflow: hidden; background: var(--surface, #fff); }
.ai-ext-card .ph { height: 148px; display: grid; place-items: center; background: var(--surface-3, #f4f5f7); color: var(--text-3); font-size: 12px; }
.ai-ext-card img { width: 100%; height: 148px; object-fit: cover; display: block; }
.ai-ext-card .meta { padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ai-ext-card .sz { font-size: 12.5px; color: var(--text-2); }
.ai-size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; }
.ai-size-chip { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 9px 11px; cursor: pointer; background: var(--surface, #fff); text-align: left; }
.ai-size-chip.active { border-color: var(--accent, #3C83F6); background: rgba(60,131,246,.06); }
.ai-size-chip .p { font-size: 13px; font-weight: 700; color: var(--text); }
.ai-size-chip .s { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* 转换宝 */
.ai-conv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.ai-conv-item { border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 14px; cursor: pointer; background: var(--surface, #fff); text-align: left; transition: border-color .15s, transform .15s; display: flex; gap: 10px; align-items: flex-start; }
.ai-conv-item:hover { border-color: var(--accent, #3C83F6); transform: translateY(-1px); }
.ai-conv-item .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.ai-conv-item .t { font-size: 13px; font-weight: 700; color: var(--text); }
.ai-conv-item .d { font-size: 11.5px; color: var(--text-3); margin-top: 2px; line-height: 1.5; }
.ai-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; margin-bottom: 8px; font-size: 13px; }
.ai-drop { border: 2px dashed var(--border-strong, #d1d5db); border-radius: 12px; padding: 26px; text-align: center; color: var(--text-3); font-size: 13px; cursor: pointer; background: var(--surface-2, #fafafa); }
.ai-drop.over { border-color: var(--accent, #3C83F6); background: rgba(60,131,246,.06); }

/* ---------- 表单通用（付款宝 / 个税试算 等） ---------- */
.ai-frm { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px 12px; }
.ai-frm .lb { font-size: 13px; font-weight: 600; color: var(--text-2); text-align: right; }
.ai-frm .ct { min-width: 0; }
.ai-frm .err { grid-column: 2; font-size: 12px; color: #dc2626; margin-top: -4px; }
.ai-inp { width: 100%; height: 35px; box-sizing: border-box; padding: 0 10px; font-size: 13px; color: var(--text); background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 8px; outline: none; }
.ai-inp:focus { border-color: var(--accent, #3C83F6); box-shadow: 0 0 0 3px rgba(60,131,246,.12); }
.ai-inp::placeholder { color: var(--text-3); }
textarea.ai-inp { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }
.ai-readonly { height: 35px; display: flex; align-items: center; padding: 0 10px; font-size: 13px; color: var(--text-3); background: var(--surface-2, #fafafa); border: 1px solid var(--border, #e5e7eb); border-radius: 8px; }
.ai-money { position: relative; }
.ai-money .unit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-3); pointer-events: none; }
.ai-money .ai-inp { padding-right: 30px; }
.ai-opts { display: grid; gap: 8px; }
.ai-opts.c2 { grid-template-columns: repeat(2, 1fr); }
.ai-opts.c3 { grid-template-columns: repeat(3, 1fr); }
.ai-opt { height: 35px; border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); border-radius: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; padding: 0 6px; transition: all .15s; }
.ai-opt:hover { border-color: var(--border-strong, #d1d5db); background: var(--surface-2, #fafafa); }
.ai-opt.on { background: rgba(60,131,246,.08); border-color: rgba(60,131,246,.35); color: var(--accent, #3C83F6); font-weight: 600; }
.ai-round { display: inline-flex; align-items: center; gap: 7px; height: 35px; padding: 0 10px; border: 1px solid var(--border, #e5e7eb); border-radius: 8px; background: var(--surface, #fff); font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.ai-round i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong, #d1d5db); display: grid; place-items: center; flex: none; }
.ai-round.on i { border-color: var(--accent, #3C83F6); background: var(--accent, #3C83F6); }
.ai-round.on i::after { content: ''; width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.ai-pop { position: relative; }
.ai-pop-menu { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; max-height: 240px; overflow: auto; background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 10px; box-shadow: 0 12px 28px rgba(15,23,42,.14); padding: 5px; }
.ai-pop-menu .it { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.ai-pop-menu .it:hover { background: var(--surface-2, #fafafa); }
.ai-pop-menu .it .ck { width: 14px; height: 14px; flex: none; opacity: 0; color: var(--accent, #3C83F6); }
.ai-pop-menu .it.on .ck { opacity: 1; }
.ai-pop-menu .none { padding: 14px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.ai-tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ai-tab { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); font-size: 12px; color: var(--text-2); cursor: pointer; }
.ai-tab.on { background: var(--accent, #3C83F6); border-color: var(--accent, #3C83F6); color: #fff; font-weight: 600; }
.ai-info { background: var(--surface-2, #fafafa); border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 10px 12px; }
.ai-info .r { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 3px 0; }
.ai-info .r span:first-child { color: var(--text-3); }
.ai-info .r span:last-child { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.ai-bearer { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 500; background: rgba(60,131,246,.1); color: #3c83f6; border: 1px solid rgba(60,131,246,.28); }
.ai-result-card { background: var(--surface-2, #fafafa); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 16px; }
.ai-result-block { background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ai-result-block .h { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; margin-bottom: 8px; }
.ai-result-block .h b { color: var(--text); font-weight: 700; }
.ai-result-block .h em { font-style: normal; color: var(--text-3); }
.ai-lr { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; padding: 4px 0; }
.ai-lr .k { color: var(--text-3); }
.ai-lr .v { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ai-lr.big .v { font-size: 22px; font-weight: 800; color: var(--accent, #3C83F6); }
.ai-hr { height: 1px; background: var(--border, #e5e7eb); margin: 10px 0; }
.ai-note { font-size: 11px; color: var(--text-3); line-height: 1.7; margin-top: 10px; }
.ai-note a { color: inherit; }
.ai-note a:hover { color: var(--accent, #3C83F6); }
.ai-2col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.ai-2col-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .ai-2col, .ai-2col-wide { grid-template-columns: 1fr; } }

/* 分享卡片（付款宝） */
.ai-share { width: 340px; background: linear-gradient(160deg, #0f172a, #1e293b); color: #fff; border-radius: 16px; padding: 20px; font-family: -apple-system, 'PingFang SC', sans-serif; }
.ai-share .top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; opacity: .85; }
.ai-share .amt { font-size: 30px; font-weight: 800; margin: 12px 0 4px; letter-spacing: -.5px; }
.ai-share .sub { font-size: 12px; opacity: .7; }
.ai-share .rows { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; }
.ai-share .row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 3px 0; }
.ai-share .row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }

@media (max-width: 900px) {
  .ai-shell { flex-direction: column; }
  .ai-nav { width: 100%; display: flex; overflow: auto; position: static; }
  .ai-nav-title { display: none; }
  .ai-nav-item { white-space: nowrap; }
  .ai-cert-wrap { flex-direction: column; }
  .ai-side { width: 100%; }
}

/* 延展宝尺寸 chip（比例 icon + 比例标签 + 像素）与工作证「显示文字」面板（2026-10-22 晚） */
.ai-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); font-size: 12.5px; color: var(--text); cursor: pointer; white-space: nowrap; transition: all .15s; }
.ai-chip:hover { border-color: var(--accent, #3C83F6); }
.ai-chip.on { background: var(--accent, #3C83F6); border-color: var(--accent, #3C83F6); color: #fff; font-weight: 600; }
.ai-chip .sub { color: var(--text-3); font-weight: 400; }
.ai-chip.on .sub { color: rgba(255, 255, 255, .78); }
.ai-chip .same { font-size: 10px; background: rgba(255, 255, 255, .25); padding: 1px 7px; border-radius: 999px; }
.ai-badge-panel { border: 1px solid rgba(60, 131, 246, .35); background: rgba(60, 131, 246, .05); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: 12.5px; color: var(--text); }

/* ===== 延展宝 对话式改版（2026-10-22 晚）：参考即梦 / AI 对话框 ===== */
.ai-chat { display: flex; flex-direction: column; height: calc(100vh - 196px); min-height: 420px; }
.ai-chat-flow { flex: 1 1 auto; min-height: 220px; overflow: auto; padding: 6px 2px 10px; scroll-behavior: smooth; }
.ai-welcome { text-align: center; color: var(--text); padding: 46px 20px; }
.ai-wel-ic { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #3C83F6, #7C3AED); color: #fff; font-size: 22px; }
.ai-wel-ic .ic-svg { width: 22px; height: 22px; }

.ai-msg { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.ai-msg.me { flex-direction: row-reverse; }
.ai-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #3C83F6, #7C3AED); color: #fff; }
.ai-avatar.me { background: var(--surface-2, #eef2f7); color: var(--text-2); }
.ai-avatar .ic-svg { width: 16px; height: 16px; }
.ai-bubble { max-width: min(78%, 820px); background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--text); min-width: 0; }
.ai-msg.me .ai-bubble { background: rgba(60, 131, 246, .08); border-color: rgba(60, 131, 246, .3); }
.ai-msg.hist .ai-bubble { background: var(--surface-2, #fafafa); }
.ai-bubble-head { font-size: 12px; color: var(--text-2); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-bubble-text { line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.ai-bubble-time { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.ai-bubble-foot { display: flex; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border, #e5e7eb); flex-wrap: wrap; }
.ai-att-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ai-att-row img { height: 74px; width: auto; border-radius: 8px; border: 1px solid var(--border, #e5e7eb); object-fit: cover; cursor: pointer; }
.ai-att { position: relative; display: inline-block; }
.ai-att img { height: 60px; border-radius: 8px; border: 1px solid var(--border, #e5e7eb); object-fit: cover; }
.ai-att .x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); color: var(--text-2); font-size: 12px; line-height: 1; cursor: pointer; padding: 0; }
.ai-tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ai-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2, #f3f4f6); border: 1px solid var(--border, #e5e7eb); font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.ai-tag.pick { cursor: pointer; }
.ai-tag.pick:hover { border-color: #dc2626; color: #dc2626; }
.ai-tag.preset { cursor: pointer; border-style: dashed; }
.ai-tag.preset:hover { border-color: var(--accent, #3C83F6); color: var(--accent, #3C83F6); }

.ai-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.ai-shot { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; overflow: hidden; background: var(--surface, #fff); display: flex; flex-direction: column; }
.ai-shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in; background: var(--surface-2, #fafafa); display: block; }
.ai-shot .ph { width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center; font-size: 12px; color: var(--text-3); background: var(--surface-2, #fafafa); }
.ai-shot .ph.loading { animation: ai-pulse 1.2s ease-in-out infinite; }
@keyframes ai-pulse { 0%,100% { opacity: .55 } 50% { opacity: 1 } }
.ai-shot-meta { padding: 7px 9px; font-size: 11.5px; color: var(--text-2); line-height: 1.5; }
.ai-shot-meta b { color: var(--text); }
.ai-shot .btn { margin: 0 9px 9px; align-self: flex-start; }

/* 输入区 */
.ai-comp { border-top: 1px solid var(--border, #e5e7eb); padding-top: 10px; background: var(--surface, #fff); }
.ai-comp-row { display: flex; align-items: flex-end; gap: 8px; }
.ai-icon-btn { width: 34px; height: 34px; flex: none; border-radius: 9px; border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.ai-icon-btn:hover { border-color: var(--accent, #3C83F6); color: var(--accent, #3C83F6); }
.ai-icon-btn.on { background: rgba(60, 131, 246, .1); border-color: var(--accent, #3C83F6); color: var(--accent, #3C83F6); }
.ai-comp-inp { flex: 1; min-height: 34px; max-height: 120px; padding: 7px 10px; font-size: 13px; line-height: 1.5; color: var(--text); background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 10px; outline: none; resize: none; font-family: inherit; }
.ai-comp-inp:focus { border-color: var(--accent, #3C83F6); box-shadow: 0 0 0 3px rgba(60, 131, 246, .12); }
.ai-send { height: 34px; flex: none; }
.ai-size-panel { max-height: 260px; overflow: auto; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--surface-2, #fafafa); }
/* 快捷提示词单行横向滚动，避免竖排挤占对话区 */
.ai-tag-row.presets { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.ai-size-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
