/* ============================================================
   AI 日报周报 · 面板 / 设置页样式（只使用 app.css 的设计令牌，亮暗主题自动适配）
   ============================================================ */

/* ---------- 日报页：AI 面板 ---------- */
.ai-card {
  margin: 18px 0 20px; border-radius: 18px; overflow: hidden; border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 60%, transparent), color-mix(in srgb, var(--accent-2) 45%, transparent) 55%, color-mix(in srgb, var(--accent) 12%, transparent)) border-box;
  box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow-sm);
}
.ai-head {
  display: flex; align-items: center; gap: 13px; padding: 15px 18px; cursor: pointer; user-select: none;
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 11%, transparent), color-mix(in srgb, var(--accent-2) 6%, transparent) 55%, transparent);
}
.ai-spark {
  flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: var(--accent-grad); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 80%, transparent);
}
.ai-title { flex: 1; min-width: 0; }
.ai-title b { display: block; font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; }
.ai-title small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 1px; }
.ai-model { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-3); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.ai-model.ok { color: #16a34a; background: color-mix(in srgb, #16a34a 12%, transparent); }
[data-theme="dark"] .ai-model.ok { color: #4ade80; }
.ai-model.big { padding: 7px 14px; font-size: 13px; }
.ai-caret { flex: none; color: var(--muted); transition: transform .2s; display: grid; }
.ai-caret.open { transform: rotate(180deg); }
.ai-body { padding: 2px 20px 20px; }

.ai-step { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13.5px; margin: 18px 0 9px; }
.ai-step i { flex: none; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--accent-grad); }
.ai-step small { font-weight: 450; color: var(--muted); font-size: 12.5px; }

.ai-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px; border-radius: 13px; color: var(--text-2);
  background: color-mix(in srgb, #f59e0b 12%, var(--surface)); border: 1px solid color-mix(in srgb, #f59e0b 32%, transparent); }
.ai-banner > .ic { color: #d97706; flex: none; }
.ai-banner > div { flex: 1; min-width: 0; font-size: 13px; }
.ai-banner b { display: block; color: var(--text); font-size: 13.5px; }
.ai-banner.soft { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.ai-banner.soft > .ic { color: var(--accent); }

/* 来源 chips */
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border-strong); transition: all .15s; }
.ai-chip:hover { border-color: var(--accent); color: var(--text); }
.ai-chip em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); }
.ai-chip.on { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.ai-chip.on em { background: var(--accent); color: #fff; }
.ai-chip.zero:not(.on) { opacity: .62; }
.ai-chip.zero.on em { background: var(--muted); }
.ai-link { border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; padding: 6px 4px; }
.ai-link:hover { color: var(--accent); }

/* 零碎记录输入 + 语音 */
.ai-raw { border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ai-raw:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.ai-raw.rec { border-color: #ef4444; box-shadow: 0 0 0 3.5px color-mix(in srgb, #ef4444 14%, transparent); }
.ai-raw textarea { border: 0; border-radius: 0; box-shadow: none !important; display: block; resize: none; min-height: 110px; padding: 13px 15px; background: transparent; line-height: 1.7; }
.ai-raw-bar { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-top: 1px dashed var(--border); background: var(--surface-2); flex-wrap: wrap; }
.ai-mic { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 999px; font-weight: 650; font-size: 13px; color: #fff; border: 0;
  background: var(--accent-grad); box-shadow: 0 6px 14px -7px color-mix(in srgb, var(--accent) 80%, transparent); transition: transform .12s, filter .15s; }
.ai-mic:hover { filter: brightness(1.07); } .ai-mic:active { transform: scale(.97); }
.ai-mic[disabled] { opacity: .55; pointer-events: none; }
.ai-mic.rec { background: #ef4444; animation: ai-pulse 1.5s ease-out infinite; }
@keyframes ai-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70% { box-shadow: 0 0 0 11px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.ai-vlang { width: auto; min-width: 128px; }
.ai-eng button { padding: 4px 10px; font-size: 12px; }
.ai-nomic { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--muted); }
.ai-count { font-size: 12px; color: var(--muted); }
.ai-listen { display: flex; align-items: center; gap: 11px; padding: 9px 15px; border-top: 1px solid color-mix(in srgb, #ef4444 25%, var(--border)); background: color-mix(in srgb, #ef4444 7%, var(--surface)); font-size: 13px; }
.ai-listen-t { font-weight: 650; color: #dc2626; white-space: nowrap; }
[data-theme="dark"] .ai-listen-t { color: #ff8a8a; }
.ai-interim { color: var(--text-2); font-style: italic; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ai-wave { display: inline-flex; align-items: center; gap: 3px; height: 20px; flex: none; }
.ai-wave i { width: 3.5px; border-radius: 3px; background: #ef4444; height: 6px; animation: ai-wave 1s ease-in-out infinite; }
.ai-wave i:nth-child(2) { animation-delay: .15s; } .ai-wave i:nth-child(3) { animation-delay: .3s; } .ai-wave i:nth-child(4) { animation-delay: .45s; } .ai-wave i:nth-child(5) { animation-delay: .6s; }
@keyframes ai-wave { 0%, 100% { height: 5px; } 50% { height: 19px; } }

/* 格式选择 */
.ai-tpls { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-tpl { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border-strong); transition: all .15s; }
.ai-tpl:hover { border-color: var(--accent); color: var(--text); }
.ai-tpl.on { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.ai-tpl.add { border-style: dashed; color: var(--muted); background: transparent; }
.ai-tpl.add:hover { color: var(--accent); }
.ai-fmt-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.ai-gen { padding-left: 24px; padding-right: 26px; }

/* 结果 */
.ai-result { position: relative; margin-top: 18px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.ai-result.busy::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 40%; background: var(--accent-grad); animation: ai-sweep 1.3s ease-in-out infinite; z-index: 1; }
@keyframes ai-sweep { 0% { left: -40%; } 100% { left: 100%; } }
.ai-result-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; flex-wrap: wrap; border-bottom: 1px solid var(--border); background: var(--surface); }
.ai-result-h b { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; } .ai-result-h b .ic { color: var(--accent); }
.ai-result-h .muted { font-size: 12.5px; }
.ai-result textarea { border: 0; border-radius: 0; box-shadow: none !important; display: block; resize: none; background: transparent; padding: 14px 16px; line-height: 1.75; min-height: 180px; font-size: 14px; }
.ai-err { margin: 10px 14px 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 550; color: #dc2626; background: color-mix(in srgb, #ef4444 11%, transparent); display: flex; gap: 8px; align-items: flex-start; }
[data-theme="dark"] .ai-err { color: #ff8a8a; }
.ai-refine { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-top: 1px dashed var(--border-strong); background: var(--surface); }
.ai-refine > .ic { color: var(--accent); flex: none; }
.ai-refine .input { flex: 1; }
.ai-undo { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.ai-editor-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text-2); margin: 6px 0 8px; }
.ai-editor-label .ic { color: var(--accent); }

/* 通用小件 */
.ai-pre-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.ai-pre { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border); font: 12.5px/1.65 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 44vh; overflow: auto; color: var(--text-2); }
.ai-tip { display: flex; gap: 11px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; font-size: 13px; color: var(--text-2); line-height: 1.6;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.ai-tip > .ic { flex: none; margin-top: 2px; color: var(--accent); }
.ai-tip.warn { background: color-mix(in srgb, #f59e0b 11%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 30%, transparent); }
.ai-tip.warn > .ic { color: #d97706; }
.ai-tip code, .ai-page code, .modal code { font-family: var(--mono); font-size: .9em; padding: .1em .4em; border-radius: 6px; background: var(--surface-3); }
.ai-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; color: var(--text-2); cursor: pointer; padding-top: 8px; }
.ai-dim { opacity: .5; pointer-events: none; }

/* ---------- 模板编辑器 ---------- */
.ai-tpl-form { gap: 14px; }
.ai-sample { min-height: 230px; font-size: 13px; line-height: 1.65; }
.ai-trial { border: 1px dashed var(--border-strong); border-radius: 14px; padding: 12px 14px; background: var(--surface-2); }
.ai-trial-out { margin-top: 10px; width: 100%; font-size: 13px; line-height: 1.7; background: var(--surface); }

/* ---------- AI 设置页 ---------- */
.ai-page .tabs { margin-top: 0; }
.ai-form { display: flex; flex-direction: column; gap: 16px; }
.ai-sec { font-weight: 700; font-size: 14px; display: flex; align-items: baseline; gap: 10px; }
.ai-sec small { font-weight: 450; color: var(--muted); font-size: 12.5px; }
.ai-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.ai-prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 11px; margin-bottom: 16px; }
.ai-prov { position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 14px; text-align: left; background: var(--surface); border: 1px solid var(--border); transition: all .16s; }
.ai-prov:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.ai-prov.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }
.ai-prov-av { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.ai-prov-n { min-width: 0; display: flex; flex-direction: column; }
.ai-prov-n b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-prov-n small { font-size: 11.5px; color: var(--muted); }
.ai-prov-ck { position: absolute; right: 9px; top: 9px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.ai-keybox { display: flex; gap: 6px; align-items: center; }
.ai-keybox .input { flex: 1; }
.ai-test { display: flex; gap: 11px; align-items: flex-start; padding: 12px 15px; border-radius: 13px; font-size: 13px; }
.ai-test b { display: block; font-size: 13.5px; } .ai-test span { color: var(--text-2); word-break: break-word; }
.ai-test.ok { background: color-mix(in srgb, #16a34a 11%, var(--surface)); border: 1px solid color-mix(in srgb, #16a34a 30%, transparent); } .ai-test.ok > .ic { color: #16a34a; }
.ai-test.err { background: color-mix(in srgb, #ef4444 10%, var(--surface)); border: 1px solid color-mix(in srgb, #ef4444 30%, transparent); } .ai-test.err > .ic { color: #dc2626; }

.ai-gloss { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.ai-gloss-h, .ai-gloss-r { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.2fr) 34px; gap: 10px; align-items: center; padding: 8px 12px; }
.ai-gloss-h { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.ai-gloss-r { border-bottom: 1px dashed var(--border); } .ai-gloss-r:last-child { border-bottom: 0; }
.ai-gloss-r .muted { text-align: center; }

.ai-tpl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-top: 14px; }
.ai-tplcard { display: flex; flex-direction: column; gap: 9px; padding: 15px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all .16s; }
.ai-tplcard:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.ai-tplcard.mine { border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); }
.ai-tplcard b { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; }
.ai-tplcard b .ic { color: var(--accent); }
.ai-tplcard p { margin: 0; font-size: 12.5px; }
.ai-tplsample { margin: 0; padding: 10px 12px; border-radius: 11px; background: var(--surface-3); font: 12px/1.6 var(--mono); color: var(--text-2); white-space: pre-wrap; overflow: hidden; max-height: 124px; position: relative; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.ai-tplcard.add { align-items: center; justify-content: center; text-align: center; min-height: 190px; border-style: dashed; background: transparent; color: var(--muted); cursor: pointer; }
.ai-tplcard.add:hover { color: var(--accent); background: var(--accent-soft); }
.ai-tplcard.add span { font-size: 12.5px; }

.ai-status { display: flex; gap: 8px; align-items: center; padding: 9px 13px; border-radius: 11px; font-size: 13px; font-weight: 550; }
.ai-status.ok { color: #16a34a; background: color-mix(in srgb, #16a34a 11%, transparent); }
[data-theme="dark"] .ai-status.ok { color: #4ade80; }
.ai-status.no { color: #b45309; background: color-mix(in srgb, #f59e0b 14%, transparent); }
[data-theme="dark"] .ai-status.no { color: #f5c451; }
.ai-switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; font-size: 14px; }
.ai-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ai-sw { position: relative; width: 42px; height: 24px; border-radius: 20px; background: var(--border-strong); transition: background .18s; flex: none; }
.ai-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .18s; }
.ai-switch input:checked + .ai-sw { background: var(--accent); }
.ai-switch input:checked + .ai-sw::after { transform: translateX(18px); }
.ai-switch input:focus-visible + .ai-sw { box-shadow: 0 0 0 3.5px var(--accent-soft); }
.ai-switch em { font-style: normal; color: var(--muted); font-size: 12.5px; }

@media (max-width: 760px) {
  .ai-head { flex-wrap: wrap; gap: 10px 12px; padding: 13px 14px; }
  .ai-title { flex: 1 1 150px; } .ai-title small { display: none; }
  .ai-model { max-width: 100%; order: 3; flex-basis: 100%; justify-content: center; }
  .ai-step { flex-wrap: wrap; row-gap: 2px; } .ai-step small { flex-basis: 100%; margin-left: 30px; }
  .ai-fmt-row .btn.lg { width: 100%; }
  .ai-result-h .spacer { display: none; }
  .ai-refine { flex-wrap: wrap; } .ai-refine .input { flex-basis: 100%; order: 3; }
  .ai-body { padding: 2px 14px 16px; }
  .ai-gloss-h { display: none; }
  .ai-gloss-r { grid-template-columns: 1fr 34px; } .ai-gloss-r .muted { display: none; }
  .ai-gloss-r input:nth-of-type(2) { grid-column: 1; }
  .ai-tpl-list { grid-template-columns: 1fr; }
  .ai-raw-bar .ai-nomic { white-space: normal; }
}

/* ============================================================
   内置模型额度 / 术语积累 提示
   ============================================================ */
.ai-model.warn { color: #b45309; background: color-mix(in srgb, #f59e0b 15%, transparent); }
[data-theme="dark"] .ai-model.warn { color: #f5c451; }
.ai-default { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-radius: 16px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); }
.ai-default.off { background: var(--surface-2); border-color: var(--border); }
.ai-default-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--accent-grad); }
.ai-default.off .ai-default-ic { background: var(--surface-3); color: var(--muted); }
.ai-default-b { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.ai-default-b > b:first-child { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.ai-default-q { flex: none; text-align: right; }
.ai-default-q small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.ai-pips { display: inline-flex; gap: 5px; }
.ai-pips i { width: 20px; height: 8px; border-radius: 6px; background: var(--accent); }
.ai-pips i.used { background: var(--border-strong); }
.ai-quota { text-align: center; padding: 6px 4px 2px; }
.ai-quota-ic { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 17px; display: grid; place-items: center; color: #fff; background: var(--accent-grad); }
.ai-quota p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.7; }
.ai-learned { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; background: var(--surface-2); border: 1px dashed var(--border-strong); }
.ai-learned > .ic { flex: none; color: var(--accent); }
.ai-learned > div { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.ai-learned b { display: block; color: var(--text); font-size: 13px; }
.ai-learned em { font-style: normal; font-weight: 700; color: var(--accent); }

/* 品牌名较长（AI Project Manager）时的侧栏适配 */
.brand b { font-size: 13.5px; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { font-size: 11px; white-space: nowrap; }
.brand > div:nth-child(2) { min-width: 0; }

/* ============================================================
   日报周报页：大标题 / 报告标题吸顶 + 整体字号略小
   --rp-top：顶栏高度；--rp-bar-top：顶栏 + 大标题高度（由 reports.js 在渲染后测量）
   ============================================================ */
.rp-page, .ai-page { font-size: 13px; }
.rp-page .rp-head {
  position: sticky; top: var(--rp-top, 62px); z-index: 14; margin: 0 -28px; padding: 11px 28px; align-items: center; flex-wrap: nowrap;
  background: color-mix(in srgb, var(--bg) 93%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}
.rp-page .rp-head-t { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1; }
.rp-page .page-head h1 { font-size: 19px; margin: 0; white-space: nowrap; }
.rp-page .page-head p { margin: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-page .rp-split { margin-top: 14px; }
.rp-page .side-list { top: calc(var(--rp-bar-top, 118px) + 12px); max-height: calc(100vh - var(--rp-bar-top, 118px) - 28px); }
.rp-page .paper { padding: 0 22px 22px; min-height: 420px; }
.rp-page .rp-bar {
  position: sticky; top: var(--rp-bar-top, 118px); z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  margin: 0 -22px 14px; padding: 10px 22px; background: var(--surface); border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0;
}
.rp-page .rp-bar-t { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; min-width: 0; }
.rp-page .rp-bar-a { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-page .paper h1.title { font-size: 17px; margin: 0; }
.rp-page .paper-meta { margin: 0; font-size: 11.5px; }

/* 整体字号略小（仅日报周报页与 AI 设置页） */
.rp-page .btn, .ai-page .btn { font-size: 12.5px; padding: 7px 13px; }
.rp-page .btn.sm, .ai-page .btn.sm { font-size: 12px; padding: 4px 10px; }
.rp-page .btn.lg, .ai-page .btn.lg { font-size: 13.5px; padding: 9px 18px; }
.rp-page .seg button, .ai-page .seg button { font-size: 12px; padding: 4px 11px; }
.rp-page .badge, .ai-page .badge { font-size: 11px; }
.rp-page .input, .rp-page select, .rp-page textarea, .ai-page .input, .ai-page select, .ai-page textarea { font-size: 13px; }
.rp-page .field > label, .ai-page .field > label, .ai-page .lbl { font-size: 12px; }
.rp-page .cal button { font-size: 12px; height: 30px; } .rp-page .cal .wd { font-size: 10.5px; }
.rp-page .li .t { font-size: 13px; } .rp-page .li .s { font-size: 11.5px; } .rp-page .li .m { font-size: 11px; }
.rp-page .md, .rp-page .mde textarea { font-size: 13px; }
.rp-page .mde-foot { font-size: 11px; } .rp-page .mde-tabs button { font-size: 12px; }
.rp-page .ai-title b { font-size: 14.5px; } .rp-page .ai-title small { font-size: 12px; }
.rp-page .ai-step { font-size: 13px; } .rp-page .ai-step small { font-size: 11.5px; }
.rp-page .ai-chip { font-size: 12.5px; padding: 5px 11px 5px 9px; } .rp-page .ai-tpl { font-size: 12.5px; padding: 6px 12px; }
.rp-page .ai-link, .rp-page .ai-count { font-size: 11.5px; } .rp-page .ai-model { font-size: 11.5px; }
.rp-page .ai-raw textarea, .rp-page .ai-result textarea { font-size: 13px; }
.rp-page .ai-mic { font-size: 12.5px; } .rp-page .ai-result-h b { font-size: 13px; }
.rp-page .ai-banner { font-size: 12.5px; } .rp-page .ai-banner b { font-size: 13px; }
.rp-page .ai-editor-label, .rp-page .ai-listen { font-size: 12.5px; }
.ai-page .ai-prov-n b { font-size: 13px; } .ai-page .ai-tip, .ai-page .hint, .ai-page .ai-test { font-size: 12.5px; }
.ai-page .ai-sec { font-size: 13.5px; } .ai-page .ai-tplcard b { font-size: 14px; }
.ai-page .page-head h1 { font-size: 20px; } .ai-page .page-head p { font-size: 12.5px; }

@media (max-width: 960px) {
  .rp-page .rp-head { position: static; margin: 0 0 12px; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; flex-wrap: wrap; }
  .rp-page .rp-head-t { flex-wrap: wrap; row-gap: 2px; } .rp-page .page-head p { white-space: normal; }
  .rp-page .side-list { top: auto; max-height: 340px; }
  .rp-page .rp-bar { top: var(--rp-bar-top, 62px); }
  .rp-page .rp-split { margin-top: 0; }
  .ai-default { flex-wrap: wrap; } .ai-default-q { text-align: left; }
}

/* 会员与额度（账号与设置） */
.ent-bar { height: 6px; border-radius: 3px; background: var(--surface-3, #eaf1fb); overflow: hidden; margin-top: 6px; max-width: 280px; }
.ent-bar i { display: block; height: 100%; background: var(--accent-grad, #1769d1); border-radius: 3px; }
.ent-meters { align-items: flex-start; gap: 26px; flex-wrap: wrap; }
.ent-redeem { display: flex; gap: 8px; align-items: center; }
.ent-redeem .input { width: 230px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
