/* ==========================================================================
   小鹦鹉 — 极简纯净风（方案 C）
   配色：米白底 #FBF9F6 · 珊瑚 #E98275 · 石墨 #6C675F
   与 xiaowang 风格相近的布局骨架，但主题色与按钮体系全部重写
   ========================================================================== */

:root {
  --paper:        #FBF9F6;   /* 页面底色 */
  --bg:           #FFFFFF;   /* 卡片底色 */
  --ink:          #1F1D1A;   /* 主文字 */
  --ink-2:        #5F5E5A;   /* 次文字 */
  --ink-3:        #888780;   /* 弱文字 */
  --ink-4:        #B4B2A9;   /* 极弱文字/禁用 */
  --border:       #EDE7DE;   /* 0.5px 分隔线 */
  --border-2:     #D3D1C7;   /* 较强分隔线 */
  --coral:        #E98275;
  --coral-deep:   #D25448;
  --coral-soft:   #FAECE7;   /* 红豆色底胶囊 */
  --amber-soft:   #FAEEDA;   /* 黄豆色底胶囊 */
  --graphite:     #6C675F;   /* 石墨按钮主色 */
  --graphite-hi:  #7F7A72;
  --graphite-lo:  #57534D;
  --graphite-ink: #2E2C28;
  --red-up:       #D25448;   /* 积分增加-红涨 */
  --blue-down:    #3F6FB1;   /* 积分减少-蓝跌 */
  --radius:       14px;
  --radius-sm:    10px;
  --radius-lg:    22px;
  --shadow-card:  0 1px 2px rgba(60,55,48,.04), 0 4px 16px rgba(60,55,48,.06);
  --shadow-pop:   0 8px 28px rgba(60,55,48,.18);
  --safe-top:     env(safe-area-inset-top, 0px);
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
  --van-primary-color: var(--coral);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; }
input, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ========== Vue 启动前的兜底首屏 ========== */
.boot-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100vh; gap: 16px;
}
.boot-logo {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--coral);
  /* LOGO 统一存放：app/static/assets/logo/（替换图片见该目录 README.txt） */
  background-image: url('/assets/logo/logo.png');
  background-size: cover; background-position: center;
  box-shadow: 0 4px 16px rgba(233,130,117,.35);
}
.boot-text { color: var(--ink-3); font-size: 13px; }

/* ========== 主壳 ========== */
.app-shell {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  padding-top: var(--safe-top); padding-bottom: var(--safe-bottom);
  max-width: 480px; margin: 0 auto;
  position: relative;
  background: var(--paper);
}

.page { flex: 1; overflow-y: auto; padding: 16px 18px 96px; }
.page-pad-sm { padding: 12px 16px 96px; }
.page-noscroll { overflow: hidden; }

/* ========== 顶栏 ========== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; }
.topbar .brand-logo {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--coral);
  /* LOGO 统一存放：app/static/assets/logo/（替换图片见该目录 README.txt） */
  background-image: url('/assets/logo/logo.png');
  background-size: cover; background-position: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(233,130,117,.25);
}
.topbar .brand-name {
  font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .5px;
}
.topbar .right { display: flex; align-items: center; gap: 10px; }

.checkin-entry {
  display: flex; flex-direction: column; align-items: flex-end;
  font-size: 11px; color: var(--ink-3); line-height: 1.3;
}
.checkin-entry .label { opacity: .85; }
.checkin-entry .beans {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 12px; font-weight: 600; margin-top: 4px;
}
.checkin-entry .beans.disabled { background: #F0EDE7; color: var(--ink-4); }
.checkin-entry.checked .beans { background: #F0EDE7; color: var(--ink-3); }
.checkin-entry.checked { cursor: default; }

/* ========== 首页 slogan ========== */
.slogan {
  text-align: center;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  letter-spacing: 1.5px;
  padding: 8px 16px 18px;
}

/* ========== 中央珊瑚红大圆（仅首页） ========== */
.center-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex: 1; min-height: 0;
}
.coral-circle {
  width: 152px; height: 152px; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #F2A097 0%, var(--coral) 55%, var(--coral-deep) 100%);
  box-shadow:
    inset 0 -10px 20px rgba(142,47,38,.18),
    inset 0 4px 0 rgba(255,255,255,.28),
    0 12px 32px rgba(210,84,72,.35);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: 2px;
  cursor: pointer; user-select: none;
  transition: transform .15s ease, box-shadow .15s ease;
  position: absolute;
  top: 33.3333%;     /* 圆心对齐 2/3 屏高（上方 1/3 占位） */
  left: 50%; transform: translate(-50%, -50%);
}
.coral-circle:active { transform: translate(-50%, -50%) scale(.96); }
.coral-circle::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.32); pointer-events: none;
}

/* ========== 底部文字导航 ========== */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 0 calc(8px + var(--safe-bottom));
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(251,249,246,.94); backdrop-filter: blur(12px);
  border-top: .5px solid var(--border);
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  font-size: 12px; color: var(--ink-3); cursor: pointer;
  padding: 6px 0;
}
.tabbar .tab.active { color: var(--coral); }
.tabbar .tab .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral); margin-bottom: 4px; opacity: 0; transition: opacity .2s;
}
.tabbar .tab.active .dot { opacity: 1; }

/* ========== 登录/注册页（全屏独立，无底导） ========== */
.auth-shell {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--paper);
  padding-top: var(--safe-top);
  max-width: 480px; margin: 0 auto;
}
.auth-top {
  padding: 12px 16px;
  display: flex; align-items: center;
}
.auth-back {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ink-2); cursor: pointer;
}
.auth-body {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 24px 32px 32px;
}
.auth-logo {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--coral);
  background-image: url('/assets/logo/logo.png');
  background-size: cover; background-position: center;
  margin-top: 24px;
  box-shadow: 0 6px 18px rgba(233,130,117,.3);
}
.auth-title {
  margin-top: 18px; font-size: 22px; font-weight: 700; color: var(--ink);
  letter-spacing: 1px;
}
.auth-sub {
  margin-top: 6px; font-size: 12px; color: var(--ink-3);
  letter-spacing: 1px;
}
.auth-form {
  width: 100%; margin-top: 36px; display: flex; flex-direction: column; gap: 14px;
}
.auth-field {
  background: var(--bg);
  border: .5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.auth-field label { font-size: 11px; color: var(--ink-3); letter-spacing: 1px; }
.auth-field input {
  border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--ink); padding: 0;
}
.auth-field input::placeholder { color: var(--ink-4); }
.auth-actions { margin-top: 28px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.auth-link {
  text-align: center; font-size: 13px; color: var(--ink-2);
  margin-top: 8px;
}
.auth-link a { color: var(--coral); font-weight: 600; }
.auth-footer {
  margin-top: auto; padding: 16px 0 calc(16px + var(--safe-bottom));
  text-align: center; font-size: 11px; color: var(--ink-4);
}

/* ========== 通用按钮体系（仅两类） ========== */
/* 1. 石墨操作按钮 */
.btn-graphite {
  width: 100%; height: 48px; border-radius: 999px;
  border: none; outline: none; cursor: pointer;
  background: linear-gradient(180deg, var(--graphite-hi) 0%, var(--graphite) 50%, var(--graphite-lo) 100%);
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 2.5px 3px rgba(58,53,47,.16);
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex; align-items: center; justify-content: center;
}
.btn-graphite:active { transform: scale(.98); }
.btn-graphite[disabled] { opacity: .55; cursor: not-allowed; }
.btn-graphite.ghost {
  background: transparent;
  color: var(--ink-2);
  border: .5px solid var(--border-2);
  box-shadow: none;
}

/* 2. 描边圆钮（小尺寸） */
.btn-outline {
  height: 40px; padding: 0 18px; border-radius: 999px;
  background: transparent;
  border: .5px solid var(--border-2);
  color: var(--ink-2); font-size: 14px; cursor: pointer;
}

/* ========== 底部弹层（游客态点开始） ========== */
.popover-mask {
  position: fixed; inset: 0;
  background: rgba(20,18,15,.42);
  z-index: 100;
  display: flex; flex-direction: column; justify-content: flex-end;
  animation: maskIn .25s ease;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.popover-card {
  background: var(--bg);
  border-top-left-radius: 22px; border-top-right-radius: 22px;
  padding: 28px 24px calc(28px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 16px;
  animation: cardIn .32s cubic-bezier(.2,.7,.3,1);
  position: relative;
}
@keyframes cardIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.popover-card .close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--ink-3); cursor: pointer;
}
.popover-card h3 {
  margin: 0; font-size: 18px; font-weight: 700; color: var(--ink);
  text-align: center; letter-spacing: 1px;
}
.popover-card .sub {
  text-align: center; font-size: 13px; color: var(--ink-3); margin: -8px 0 8px;
  letter-spacing: 1px;
}

/* ========== 首页文字翻译面板（第 2 步翻译核心） ========== */
.translate-card { max-height: 84vh; overflow-y: auto; }
.tr-input {
  width: 100%; box-sizing: border-box;
  border: .5px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 12px 14px;
  font-size: 15px; line-height: 1.6; color: var(--ink);
  font-family: inherit; resize: none; outline: none;
}
.tr-input::placeholder { color: var(--ink-4); }
.tr-result {
  background: var(--paper);
  border: .5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.tr-line { display: flex; gap: 10px; align-items: flex-start; }
.tr-tag {
  flex: none; margin-top: 3px;
  font-size: 11px; color: var(--ink-3); letter-spacing: 1px;
  background: #F0EDE7; border-radius: 6px; padding: 1px 7px;
}
.tr-zh { font-size: 15px; color: var(--ink); line-height: 1.6; }
.tr-en { font-size: 15px; color: var(--ink); font-style: italic; line-height: 1.6; }
.tr-speak {
  align-self: flex-start;
  border: .5px solid var(--border-2);
  background: transparent; color: var(--ink-2);
  border-radius: 999px; padding: 6px 14px;
  font-size: 13px; cursor: pointer;
}
.tr-meta {
  font-size: 12px; color: var(--coral-deep);
  align-self: flex-start; letter-spacing: .5px;
}
.tr-balance {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border: .5px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 12px; color: var(--ink-3);
}
.tr-balance-label { letter-spacing: 1px; }
.tr-balance-red {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  background: var(--coral-soft); color: var(--coral-deep); font-weight: 600;
}
.tr-balance-yellow {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  background: var(--amber-soft); color: #B07B00; font-weight: 600;
}
.tr-recent { display: flex; flex-direction: column; gap: 8px; }
.tr-recent-title { font-size: 12px; color: var(--ink-3); letter-spacing: 1px; }
.tr-recent-item {
  border-top: .5px solid var(--border); padding-top: 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.tr-recent-zh { font-size: 13px; color: var(--ink-2); }
.tr-recent-en { font-size: 13px; color: var(--ink-3); font-style: italic; }
.tr-recent-meta { font-size: 11px; color: var(--coral-deep); margin-top: 2px; letter-spacing: .5px; }

/* ========== 打卡弹层（第 4 步） ========== */
.checkin-card { align-items: center; text-align: center; }
.checkin-card .checkin-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  margin: 4px auto 8px;
  box-shadow: 0 4px 14px rgba(210,84,72,.3);
}
.checkin-card h3 { margin-top: 4px; }
.checkin-card .sub { letter-spacing: .5px; }
.checkin-card .checkin-tip {
  font-size: 11px; color: var(--ink-3); letter-spacing: 1px;
  background: var(--paper); padding: 8px 14px;
  border-radius: var(--radius-sm); border: .5px solid var(--border);
}

/* ========== 英文语速调节（首页常驻，位于大圆与底导之间） ========== */
.speed-bar {
  margin: 0 18px calc(64px + var(--safe-bottom));
  background: var(--bg);
  border: .5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 2px 10px rgba(58,53,47,.05);
}
.speed-head { display: flex; align-items: baseline; justify-content: space-between; }
.speed-title { font-size: 12px; color: var(--ink-3); letter-spacing: 1px; }
.speed-val { font-size: 13px; font-weight: 700; color: var(--coral-deep); }
.speed-row { display: flex; align-items: center; gap: 10px; }
.speed-edge { flex: none; font-size: 11px; color: var(--ink-4); }
.speed-range {
  flex: 1; min-width: 0; height: 22px; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; outline: none; cursor: pointer;
}
.speed-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px; background: #EDE8E1;
}
.speed-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--coral); border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(210,84,72,.35);
  margin-top: -7px;
}
.speed-range::-moz-range-track {
  height: 4px; border-radius: 999px; background: #EDE8E1;
}
.speed-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--coral); border: 2px solid #fff; cursor: pointer;
}
.speed-test {
  flex: none; height: 30px; padding: 0 12px;
  border-radius: 999px; border: .5px solid var(--border-2);
  background: transparent; color: var(--ink-2);
  font-size: 12px; cursor: pointer; white-space: nowrap;
}
.speed-test:active { transform: scale(.97); }

/* ========== 对话清单页（第 5 步） ========== */
.convo-topbar { padding: 8px 14px; }
.convo-topbar .brand-name { font-size: 16px; font-weight: 700; }
.export-btn {
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--coral); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(210,84,72,.25);
}
.export-btn:active { transform: scale(.97); }

.range-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px 10px;
}
.range-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg); border: .5px solid var(--border-2);
  font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.range-chip .rc-icon { font-size: 13px; }
.range-chip .rc-text { letter-spacing: .5px; }
.range-count {
  margin-left: auto; font-size: 12px; color: var(--ink-3); letter-spacing: .5px;
}

.convo-list {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 4px 18px calc(64px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 10px;
}
.convo-day-head {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; font-size: 12px; color: var(--ink-3); letter-spacing: 1px;
}
.convo-day-head .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--coral);
}
.convo-day-head .d-count { margin-left: auto; color: var(--ink-4); font-size: 11px; }
.convo-card {
  background: var(--bg); border: .5px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 1px 3px rgba(60,55,48,.04);
}
.cc-zh { font-size: 14px; color: var(--ink); line-height: 1.55; }
.cc-en { font-size: 13px; color: var(--ink-2); font-style: italic; line-height: 1.5; }
.cc-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 4px; font-size: 11px; color: var(--ink-3);
}
.cc-cost { color: var(--ink-2); font-weight: 600; }   /* 灰黑色：不标明红豆/黄豆，统称豆豆 */
.cc-time { margin-left: auto; }

.loading, .empty {
  text-align: center; padding: 60px 16px;
  color: var(--ink-3); font-size: 13px;
}
.empty-emoji { font-size: 36px; margin-bottom: 8px; }
.load-more, .list-end {
  text-align: center; padding: 14px 0;
  font-size: 12px; color: var(--ink-3); cursor: pointer;
}

/* ---- 第 6 步：单词记忆卡页 ---- */
.word-list {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 4px 18px calc(64px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 10px;
}
.word-card {
  background: var(--bg); border: .5px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 5px;
  box-shadow: 0 1px 3px rgba(60,55,48,.04);
}
.wc-word {
  font-family: 'Times New Roman', serif;
  font-size: 19px; font-weight: 700; color: var(--ink);
  letter-spacing: .5px; line-height: 1.2;
}
.wc-meanings { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-meanings .wc-m {
  font-size: 12px; color: var(--ink-2);
  background: var(--paper); border-radius: 999px;
  padding: 2px 9px;
}
.wc-meanings.wc-pending { font-size: 12px; color: var(--ink-4); font-style: italic; }
.wc-examples { display: flex; flex-direction: column; gap: 2px; }
.wc-examples .wc-ex {
  font-family: 'Times New Roman', serif;
  font-size: 12px; color: var(--ink-2); font-style: italic; line-height: 1.5;
}
.wc-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 2px; font-size: 11px; color: var(--ink-3);
}
.wc-day { margin-left: auto; }

/* 导出确认弹层 */
.export-card { max-height: 86vh; overflow-y: auto; }
.export-charge {
  background: var(--paper); border: .5px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ec-title { font-size: 12px; color: var(--ink-3); letter-spacing: 1px; }
.ec-formula {
  font-size: 14px; color: var(--ink-2); letter-spacing: .5px;
}
.ec-formula b { color: var(--coral-deep); font-weight: 700; }
.ec-pills {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.ec-red, .ec-yellow {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.ec-red { background: var(--coral-soft); color: var(--coral-deep); }
.ec-yellow { background: var(--amber-soft); color: #B07B00; }
.ec-after { font-size: 12px; color: var(--ink-2); letter-spacing: .5px; }
.ec-tip { font-size: 11px; color: var(--ink-3); letter-spacing: .5px; }
.ec-tip.ec-warn { color: #C0392B; font-weight: 600; }   /* 黄豆不足警示 */

.export-actions {
  display: flex; gap: 12px;
}
.export-actions .btn-outline { flex: 1; }
.export-actions .btn-graphite { flex: 1.4; }

/* 日期范围选择弹层 */
.range-card .range-form {
  display: flex; flex-direction: column; gap: 12px;
}
.range-card .range-form label {
  display: flex; flex-direction: column; gap: 4px;
}
.range-card .range-form span { font-size: 11px; color: var(--ink-3); letter-spacing: 1px; }
.range-card .range-form input {
  height: 40px; padding: 0 12px;
  border: .5px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--paper); font-size: 14px; outline: none;
}
.range-presets {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.range-presets .btn-outline.sm {
  height: 32px; padding: 0 12px; font-size: 12px;
}

/* ========== 通用 ========== */
.divider { height: .5px; background: var(--border); margin: 12px 0; }
.row { display: flex; align-items: center; gap: 10px; }
.muted { color: var(--ink-3); font-size: 12px; }

/* Vant 主题覆写 */
.van-button--primary { background: var(--coral) !important; border-color: var(--coral) !important; }
/* ========== 语音会话（第 3 步） ========== */
/* 大圆状态：listening=浅绿待停止；receiving=深绿框闪烁；silent=黄框闪烁；translating=深绿常亮 */
.coral-circle.vs-listening {
  background: radial-gradient(circle at 50% 32%, #D6E8B8 0%, #C0DD97 55%, #A3C47B 100%);
  box-shadow:
    inset 0 -10px 20px rgba(90,120,44,.16),
    inset 0 4px 0 rgba(255,255,255,.35),
    0 12px 32px rgba(160,195,110,.38);
  color: #2E4F14;
}
.coral-circle.vs-listening::before { border-color: rgba(255,255,255,.42); }
.coral-circle.vs-receiving,
.coral-circle.vs-silent,
.coral-circle.vs-translating,
.coral-circle.vs-speaking {
  outline: 6px solid var(--blink-c, #3B6D11);
  outline-offset: 4px;
}
.coral-circle.vs-receiving { --blink-c: #3B6D11; animation: vsBlink 1s ease-in-out infinite; }
.coral-circle.vs-silent    { --blink-c: #EF9F27; animation: vsBlink 1.4s ease-in-out infinite; }
.coral-circle.vs-translating { --blink-c: #3B6D11; }
.coral-circle.vs-speaking  { --blink-c: #2E6BD6; animation: vsBlink 1.2s ease-in-out infinite; }
@keyframes vsBlink {
  0%, 100% { outline-color: var(--blink-c); }
  50%     { outline-color: transparent; }
}

/* 会话转写区（大圆下方） */
.session-box {
  flex: none;
  max-height: 32vh;
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 20px 10px;
  min-height: 0;
}
.session-hint {
  text-align: center; font-size: 12px; color: #B8860B;
  letter-spacing: 1px;
}
.session-speaking {
  text-align: center; font-size: 13px; color: #2E6BD6;
  letter-spacing: 1px; font-weight: 600;
}
.session-partial {
  text-align: center; font-size: 14px; color: var(--ink-2);
  line-height: 1.5; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.session-tip {
  text-align: center; font-size: 12px; color: var(--ink-3);
  letter-spacing: 1px;
}
.session-list {
  overflow-y: auto; min-height: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 4px;
}
.session-item {
  background: #FFFFFF; border: .5px solid var(--border-2);
  border-radius: 14px; padding: 10px 14px;
}
.session-item .s-zh { font-size: 14px; color: var(--ink); line-height: 1.5; }
.session-item .s-en {
  font-size: 13px; color: var(--ink-2); font-style: italic;
  line-height: 1.5; margin-top: 2px;
}
.session-item .s-meta {
  font-size: 11px; color: var(--ink-3); margin-top: 6px;
  letter-spacing: .5px;
}

/* ==================== 第 7 步：我的页 / 声音录入 / 豆豆明细 / 导出记录 ==================== */

/* ---- 我的页 ---- */
.me-body {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 4px 18px calc(72px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 14px;
}
.me-section {
  background: #FFFFFF; border: .5px solid var(--border, #EDE7DE);
  border-radius: 16px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.me-sec-head { display: flex; align-items: center; justify-content: space-between; }
.me-sec-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.me-sec-link { font-size: 12px; color: var(--ink-3); cursor: pointer; }
.me-beans { display: flex; gap: 10px; }
.me-bean {
  flex: 1; border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.me-bean-red { background: var(--coral-soft); }
.me-bean-yellow { background: var(--amber-soft); }
.me-bean .bean-name { font-size: 11px; color: var(--ink-2); }
.me-bean .bean-num { font-size: 22px; font-weight: 700; color: var(--ink); }
.me-bean .bean-note { font-size: 10px; color: var(--ink-3); }
.me-checkin-btn { width: 100%; padding: 11px 0; font-size: 14px; }

.me-voice-row, .me-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 2px; cursor: pointer;
  border-bottom: .5px solid #EFE9E0;
}
.me-voice-row:last-of-type, .me-row:last-of-type { border-bottom: none; }
.me-voice-name, .me-row-name { font-size: 14px; color: var(--ink); }
.me-voice-state { font-size: 12px; color: var(--ink-3); }
.me-voice-state.todo { color: var(--coral-deep); }
.me-voice-state.enrolled { color: var(--ink-3); }
.me-voice-note { font-size: 11px; color: var(--ink-4); }
.me-row-brief { font-size: 12px; color: var(--ink-3); }
.me-logout {
  width: 100%; padding: 12px 0; border: none; border-radius: 14px;
  background: #FFFFFF; border: .5px solid var(--border, #EDE7DE);
  font-size: 14px; color: var(--ink-2); cursor: pointer;
}
.me-logout:active { opacity: .7; }

/* ---- 声音录入页 ---- */
.vr-body {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 20px 24px calc(72px + var(--safe-bottom));
  display: flex; flex-direction: column; align-items: center;
}
.vr-role-line {
  margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--ink);
}
.vr-tips { margin-top: 22px; text-align: center; }
.vr-tip-line { font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.vr-sentence {
  margin-top: 18px; width: 100%;
  background: #FFFFFF; border: .5px solid var(--border, #EDE7DE);
  border-radius: 14px; padding: 14px 16px; text-align: center;
}
.vr-sentence-label { font-size: 10px; color: var(--ink-4); letter-spacing: 2px; }
.vr-sentence-text { margin-top: 6px; font-size: 15px; color: var(--ink); font-weight: 600; }
.vr-stage { margin-top: 26px; }
.vr-circle { font-size: 16px; user-select: none; touch-action: none; cursor: pointer; }
.vr-circle.vr-holding {
  background: radial-gradient(circle at 50% 32%, #F2A097 0%, var(--coral-deep) 55%, #B8433A 100%);
}
.vr-circle.vr-uploading { opacity: .7; }
.vr-note {
  margin-top: 26px; text-align: center;
  font-size: 11px; color: var(--ink-4); line-height: 1.9;
}
.vr-error {
  margin-top: 14px; font-size: 12px; color: var(--coral-deep);
  text-align: center; line-height: 1.7;
}

/* ---- 豆豆明细页 ---- */
.ph-tabs {
  display: flex; gap: 8px; padding: 10px 18px 4px;
}
.ph-tab {
  flex: 1; text-align: center; padding: 7px 0; border-radius: 999px;
  font-size: 12px; color: var(--ink-2); background: #FFFFFF;
  border: .5px solid var(--border, #EDE7DE); cursor: pointer;
}
.ph-tab.active { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.ph-list {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 10px 18px calc(72px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 8px;
}
.ph-item {
  background: #FFFFFF; border: .5px solid var(--border, #EDE7DE);
  border-radius: 12px; padding: 10px 14px;
}
.ph-line { display: flex; align-items: center; gap: 8px; }
.ph-reason { font-size: 13px; color: var(--ink); font-weight: 600; flex: 1; }
.ph-delta { font-size: 15px; font-weight: 700; }
.ph-delta.up { color: #D25448; }    /* 红涨 */
.ph-delta.down { color: #4A6FA5; }  /* 蓝减 */
.ph-sub { margin-top: 6px; flex-wrap: wrap; }
.ph-pool { font-size: 10px; padding: 2px 8px; border-radius: 999px; }
.ph-pool.red { background: var(--coral-soft); color: var(--coral-deep); }
.ph-pool.yellow { background: var(--amber-soft); color: #B8860B; }
.ph-after { font-size: 11px; color: var(--ink-3); }
.ph-time { font-size: 11px; color: var(--ink-4); margin-left: auto; }

/* ---- 导出记录页 ---- */
.er-list {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 12px 18px 4px;
  display: flex; flex-direction: column; gap: 10px;
}
.er-card {
  background: #FFFFFF; border: .5px solid var(--border, #EDE7DE);
  border-radius: 12px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.er-line { display: flex; align-items: center; gap: 8px; }
.er-type { font-size: 14px; font-weight: 700; color: var(--ink); flex: 1; }
.er-dl { padding: 6px 18px; font-size: 12px; }
.er-sub { font-size: 11px; color: var(--ink-3); }
.er-cost { color: var(--ink-2); }
.er-time { margin-left: auto; color: var(--ink-4); }
.er-foot { padding-bottom: calc(72px + var(--safe-bottom)); }

/* ---- 会话卡片「未识别」标注 ---- */
.s-unmatched { color: var(--ink-4); }

/* ============================================================
   第 8 步：管理后台（.adm-*）
   ============================================================ */
.adm-tabs {
  display: flex; gap: 8px; padding: 0 20px 14px;
}
.adm-tab {
  flex: 1; text-align: center; padding: 8px 0;
  font-size: 13px; color: var(--ink-2, #5F5E5A);
  border: 0.5px solid #D3D1C7; border-radius: 18px;
  background: #FFFFFF; cursor: pointer;
}
.adm-tab.active {
  background: var(--ink, #1F1D1A); color: #FFFFFF; border-color: var(--ink, #1F1D1A);
}
.adm-body { padding: 4px 20px 40px; }
.adm-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px;
}
.adm-stat {
  background: #FFFFFF; border-radius: 14px; padding: 14px 10px; text-align: center;
  border: 0.5px solid #EFE9E0;
}
.adm-stat-num { font-size: 22px; font-weight: 700; color: var(--ink, #1F1D1A); }
.adm-stat-name { font-size: 11px; color: #888780; margin-top: 4px; }
.adm-section {
  background: #FFFFFF; border-radius: 14px; padding: 16px 16px 14px;
  margin-bottom: 18px; border: 0.5px solid #EFE9E0;
}
.adm-sec-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.adm-sec-title { font-size: 14px; font-weight: 600; color: var(--ink, #1F1D1A); }
.adm-sec-link { font-size: 12px; color: #B4B2A9; cursor: pointer; }
.adm-dist-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 0.5px solid #EFE9E0; font-size: 13px;
}
.adm-dist-row:last-child { border-bottom: none; }
.adm-dist-name { font-weight: 600; color: var(--ink, #1F1D1A); flex: 1; }
.adm-dist-pts { color: #888780; font-size: 12px; margin-right: 12px; }
.adm-dist-count {
  font-size: 12px; color: #1F1D1A; background: #FAECE7; border-radius: 10px; padding: 2px 10px;
}
.adm-user-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 0.5px solid #EFE9E0;
}
.adm-user-row:last-child { border-bottom: none; }
.adm-user-info { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.adm-user-name {
  font-size: 13px; color: var(--ink, #1F1D1A);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adm-user-role {
  font-size: 10px; color: #D25448; border: 0.5px solid #E98275;
  border-radius: 8px; padding: 1px 6px; flex-shrink: 0;
}
.adm-user-plan {
  font-size: 12px; color: var(--ink-2, #5F5E5A);
  border: 0.5px solid #D3D1C7; border-radius: 10px;
  padding: 5px 8px; background: #FBF9F6; max-width: 46%;
}
.adm-empty { font-size: 12px; color: #B4B2A9; text-align: center; padding: 18px 0; }
.adm-back-me { width: 100%; margin-top: 4px; }
.adm-plan-card {
  background: #FFFFFF; border-radius: 14px; padding: 14px 16px;
  margin-bottom: 12px; border: 0.5px solid #EFE9E0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.adm-plan-main { min-width: 0; flex: 1; }
.adm-plan-name { font-size: 14px; font-weight: 600; color: var(--ink, #1F1D1A); }
.adm-plan-sub { font-size: 11px; color: #888780; margin-top: 4px; }
.adm-badge {
  display: inline-block; font-size: 10px; border-radius: 8px; padding: 1px 6px; margin-left: 6px;
}
.adm-badge.off { color: #B4B2A9; border: 0.5px solid #D3D1C7; }
.adm-plan-ops { display: flex; gap: 12px; flex-shrink: 0; }
.adm-op { font-size: 12px; color: var(--ink-2, #5F5E5A); cursor: pointer; }
.adm-op.danger { color: #D25448; }
.adm-new-btn { width: 100%; margin-top: 6px; }
.adm-form-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 0.5px solid #EFE9E0;
}
.adm-form-row:last-of-type { border-bottom: none; }
.adm-form-row label { font-size: 13px; color: var(--ink-2, #5F5E5A); display: flex; align-items: center; gap: 6px; }
.adm-form-main { min-width: 0; flex: 1; }
.adm-form-name { font-size: 13px; font-weight: 600; color: var(--ink, #1F1D1A); }
.adm-input {
  width: 120px; padding: 8px 10px; font-size: 13px; color: var(--ink, #1F1D1A);
  border: 0.5px solid #D3D1C7; border-radius: 10px; background: #FBF9F6; outline: none;
}
.adm-input-narrow { width: 84px; text-align: center; }
.adm-form-hint { font-size: 11px; color: #B4B2A9; font-weight: 400; }
.adm-save-note { padding: 8px 0 12px; }

/* ==========================================================================
   后台补全 A · 统一侧边栏外壳（AdminShell） + 4 个页面（Dashboard / Plans / Users / PointsConfig）
   左侧 220px 固定，右侧自适应；菜单 10 项（6 项 P2 上线提示）；设计稿复刻
   ========================================================================== */
.adm-shell {
  min-height: 100vh;
  display: flex;
  background: #FBF9F6;
}
.adm-side {
  width: 220px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-right: 0.5px solid #EDE7DE;
  display: flex;
  flex-direction: column;
  padding: 22px 0 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.adm-side-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 18px;
  border-bottom: 0.5px solid #EDE7DE;
}
.adm-side-logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--coral, #E98275);
  /* LOGO 统一存放：app/static/assets/logo/（替换图片见该目录 README.txt） */
  background-image: url('/assets/logo/logo.png');
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.adm-side-titles { min-width: 0; }
.adm-side-name { font-size: 15px; font-weight: 700; color: #1F1D1A; line-height: 1.1; }
.adm-side-sub  { font-size: 11px; color: #888780; margin-top: 2px; }

.adm-menu {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto;
}
.adm-menu-item {
  font-size: 13px;
  color: #5F5E5A;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.adm-menu-item:hover { background: #FBF9F6; color: #1F1D1A; }
.adm-menu-item.active {
  background: #FAECE7;
  color: #D25448;
  font-weight: 600;
}
.adm-menu-item.soon { color: #B4B2A9; }
.adm-menu-item.soon::after {
  content: "P2";
  font-size: 9px;
  border: 0.5px solid #D3D1C7;
  color: #B4B2A9;
  padding: 0 5px;
  border-radius: 6px;
  margin-left: 6px;
}

.adm-side-foot {
  padding: 14px 20px 0;
  border-top: 0.5px solid #EDE7DE;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-side-user { font-size: 13px; font-weight: 600; color: #1F1D1A; }
.adm-side-role { font-size: 11px; color: #888780; }

.adm-main {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.adm-page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 4px;
}
.adm-page-main { min-width: 0; }
.adm-page-title { font-size: 22px; font-weight: 700; color: #1F1D1A; line-height: 1.2; }
.adm-page-sub   { font-size: 12px; color: #888780; margin-top: 6px; }
.adm-page-actions { display: flex; gap: 8px; flex-shrink: 0; padding-top: 4px; }

.adm-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 0.5px solid #EDE7DE;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 概览页：6 张统计卡 */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.adm-stat {
  background: #FFFFFF;
  border-radius: 14px;
  border: 0.5px solid #EDE7DE;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 80px;
}
.adm-stat-name { font-size: 11px; color: #888780; }
.adm-stat-num  { font-size: 22px; font-weight: 700; color: #1F1D1A; line-height: 1.1; }
.adm-unit      { font-size: 11px; font-weight: 400; color: #888780; margin-left: 4px; }
.adm-stat-bal  { display: flex; align-items: baseline; gap: 6px; font-size: 18px; font-weight: 700; }
.adm-bal-red    { color: #D25448; }
.adm-bal-sep    { color: #B4B2A9; font-weight: 400; }
.adm-bal-yellow { color: #B58A1F; }

/* 概览页：折线 + 柱图（双列） */
.adm-charts {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.adm-line  { width: 100%; height: 96px; display: block; }
.adm-x-axis {
  display: flex; justify-content: space-between;
  font-size: 10px; color: #B4B2A9; padding: 4px 4px 0;
}
.adm-legend { display: flex; gap: 14px; font-size: 11px; color: #888780; }
.adm-legend-item { display: inline-flex; align-items: center; gap: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #B4B2A9; }
.dot.coral { background: #E98275; }
.dot.gray  { background: #888780; }

.adm-bars {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 6px; height: 96px; padding: 4px 0;
}
.adm-bar-day  { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.adm-bar-pair { display: flex; align-items: flex-end; gap: 2px; height: 76px; }
.adm-bar      { width: 6px; border-radius: 3px; min-height: 1px; }
.adm-bar.grant   { background: #E98275; }
.adm-bar.consume { background: #888780; }
.adm-bar-label { font-size: 10px; color: #B4B2A9; }

/* 概览页：套餐分布行 */
.adm-dist-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 0.5px solid #EFE9E0;
  font-size: 13px;
}
.adm-dist-row:last-child { border-bottom: none; }
.adm-dist-name  { font-weight: 600; color: #1F1D1A; flex: 1; }
.adm-dist-pts   { color: #888780; font-size: 12px; }
.adm-dist-count {
  font-size: 12px; color: #D25448;
  background: #FAECE7; padding: 2px 8px; border-radius: 8px;
}

/* 通用表格 */
.adm-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.adm-table thead th {
  font-size: 11px; font-weight: 600; color: #888780;
  padding: 8px 6px; text-align: left; border-bottom: 0.5px solid #EFE9E0;
}
.adm-table tbody td {
  padding: 12px 6px; color: #1F1D1A; border-bottom: 0.5px solid #EFE9E0;
  vertical-align: middle;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-col-time, .adm-td-time { width: 110px; color: #888780; font-size: 12px; }
.adm-col-user, .adm-td-name  { min-width: 80px; font-weight: 600; }
.adm-col-num,  .adm-td-num   { width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.adm-col-role, .adm-td-role  { width: 70px; }
.adm-col-status { width: 90px; }
.adm-col-plan   { width: 130px; }
.adm-col-ops    { width: 140px; }
.ta-r { text-align: right; }

/* 通用工具栏 */
.adm-toolbar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 4px;
}
.adm-search {
  width: 220px; padding: 8px 12px; font-size: 13px;
  border: 0.5px solid #D3D1C7; border-radius: 10px;
  background: #FBF9F6; color: #1F1D1A; outline: none;
}
.adm-search:focus { border-color: #E98275; background: #FFFFFF; }
.adm-select {
  padding: 8px 10px; font-size: 13px;
  border: 0.5px solid #D3D1C7; border-radius: 10px;
  background: #FFFFFF; color: #1F1D1A; outline: none;
}
.adm-grow { flex: 1; }

/* 状态徽标 */
.adm-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 2px 8px; border-radius: 8px;
  color: #D25448; background: #FAECE7;
}
.adm-status.off { color: #B4B2A9; background: #F2EFE8; }
.adm-status .dot { width: 6px; height: 6px; background: currentColor; }

/* 套餐内联 select */
.adm-plan-select {
  padding: 6px 8px; font-size: 12px;
  border: 0.5px solid #D3D1C7; border-radius: 8px;
  background: #FBF9F6; color: #1F1D1A;
  max-width: 130px;
}
.adm-ops { display: flex; gap: 12px; justify-content: flex-end; }
.adm-op  { font-size: 12px; color: #5F5E5A; cursor: pointer; }
.adm-op:hover { color: #1F1D1A; }
.adm-op.danger { color: #D25448; }
.adm-op.danger:hover { color: #B23F33; }

/* 按钮（与用户端 .btn-graphite 一致 + 圆角胶囊变体） */
.adm-pill {
  background: var(--coral, #E98275); color: #FFFFFF;
  font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  border: 0; cursor: pointer;
}
.adm-pill:hover { background: var(--coral-deep, #D25448); }
.adm-pill:disabled { background: #B4B2A9; cursor: not-allowed; }

.adm-ghost {
  background: transparent; color: #5F5E5A;
  font-size: 13px; padding: 8px 14px; border-radius: 999px;
  border: 0.5px solid #D3D1C7; cursor: pointer;
}
.adm-ghost:hover { color: #1F1D1A; border-color: #888780; }
.adm-ghost:disabled { color: #B4B2A9; cursor: not-allowed; }

/* 豆池配置：2 列字段网格 */
.adm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.adm-cell { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.adm-cell .adm-input { width: 100%; box-sizing: border-box; }
.adm-cell-name { font-size: 13px; font-weight: 600; color: #1F1D1A; }
.adm-cell-hint { font-size: 11px; color: #B4B2A9; }
.adm-cell.ro .adm-cell-ro {
  padding: 8px 10px; font-size: 13px;
  border: 0.5px solid #EDE7DE; border-radius: 10px;
  background: #FBF9F6; color: #5F5E5A;
}
.adm-tip {
  font-size: 11px; color: #888780;
  padding: 8px 14px;
  border-left: 3px solid #E98275;
  background: #FAECE7;
  border-radius: 0 10px 10px 0;
  line-height: 1.6;
}

/* ---- 后台补全 B：6 个业务查阅页（设计稿 20–25）---- */
/* 工具栏附加件：日期筛选 / 「至」/ 计数 */
.adm-date {
  height: 32px; padding: 0 8px; border: 1px solid #E7E3DA; border-radius: 8px;
  background: #FBFAF7; font-size: 12px; color: var(--ink, #1F1D1A);
  font-family: inherit; outline: none;
}
.adm-date:focus { border-color: #E98275; background: #FFFFFF; }
.adm-sep { font-size: 12px; color: #B4B2A9; }
.adm-count { font-size: 12px; color: #888780; font-variant-numeric: tabular-nums; }

/* 列宽（业务页新增列） */
.adm-col-reason  { width: 92px; }
.adm-col-pool    { width: 72px; }
.adm-col-cause   { width: 200px; }
.adm-col-delta   { width: 84px; }
.adm-col-bal     { width: 104px; }
.adm-col-speaker { width: 76px; }
.adm-col-zh      { min-width: 180px; }
.adm-col-en      { min-width: 180px; }
.adm-col-cost    { width: 70px; }
.adm-col-word    { width: 130px; }
.adm-col-mean    { min-width: 180px; }
.adm-col-ex      { width: 76px; }
.adm-col-src     { width: 120px; }
.adm-col-measure { width: 90px; }
.adm-col-listen  { width: 110px; }

/* 单元格：类型 / 原因 / 中英文 / 释义 / 结余 / 说话人 */
.adm-td-reason { font-size: 12px; color: var(--ink-2, #5F5E5A); }
.adm-td-cause, .adm-td-zh, .adm-td-en, .adm-td-mean {
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adm-td-en { font-style: italic; color: #6B6A64; }
.adm-td-speaker { font-size: 12px; color: var(--ink-2, #5F5E5A); }
.adm-td-word { font-weight: 700; letter-spacing: .2px; }
.adm-td-bal {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.adm-td-bal .adm-bal-sep { margin: 0 4px; }

/* 豆池色块 */
.adm-pool { font-size: 12px; font-weight: 600; white-space: nowrap; }
.adm-pool.red    { color: #D25448; }
.adm-pool.yellow { color: #B58A1F; }

/* 变动涨跌（与用户端 .ph-delta 同色语言：红涨蓝减） */
.adm-delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.adm-delta.up   { color: #D25448; }
.adm-delta.down { color: #4A6FA5; }

/* 试听（角色声纹） */
.adm-listen { font-size: 12px; color: #D25448; cursor: pointer; white-space: nowrap; }
.adm-listen:hover { color: #B23F33; }
.adm-listen.off { color: #B4B2A9; cursor: default; }
.adm-listen-dur { color: #888780; }

/* 卡片底注（设计稿 24 的说明行） */
.adm-foot-tip {
  font-size: 12px; color: #B4B2A9; line-height: 1.7;
  padding: 12px 2px 2px; border-top: 1px solid #F2EFE8; margin-top: 6px;
}

/* 详情弹层正文（对话查看） */
.adm-detail-text {
  flex: 1; font-size: 13px; color: var(--ink, #1F1D1A); line-height: 1.7;
  word-break: break-word; white-space: pre-wrap;
}
.adm-detail-text.en { font-style: italic; color: #6B6A64; }

/* 系统设置：单列表单域 + 底部按钮区 */
.adm-card-narrow { max-width: 620px; }
.adm-form-field { display: flex; flex-direction: column; gap: 6px; padding: 6px 0 14px; }
.adm-form-field .adm-input { width: 100%; box-sizing: border-box; }
.adm-form-actions { padding-top: 16px; }

/* 操作链接禁用态（导出记录：文件已清理） */
.adm-op.off { color: #B4B2A9; cursor: default; }
.adm-op.off:hover { color: #B4B2A9; }

/* 响应式：窄屏 2 列变 1 列、6 张统计卡变 3×2 */
@media (max-width: 960px) {
  .adm-shell { flex-direction: column; }
  .adm-side { width: 100%; height: auto; position: static; }
  .adm-menu { display: flex; overflow-x: auto; padding: 8px 12px; gap: 4px; }
  .adm-menu-item { flex-shrink: 0; margin-bottom: 0; }
  .adm-main { padding: 16px; }
  .adm-stats { grid-template-columns: repeat(3, 1fr); }
  .adm-charts { grid-template-columns: 1fr; }
  .adm-grid { grid-template-columns: 1fr; }
  .adm-toolbar { flex-wrap: wrap; }
  .adm-date { flex: 1 1 130px; min-width: 0; }
}
@media (max-width: 600px) {
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
  .adm-toolbar .adm-search { width: 100%; }
  .adm-toolbar .adm-select { flex: 1 1 45%; min-width: 0; }
  .adm-card { overflow-x: auto; }
  .adm-table { min-width: 640px; }
  /* 用户页：首页大圆 + 底部导航 + 卡片紧凑化 */
  .coral-circle { width: 120px; height: 120px; font-size: 14px; }
  .tabbar { padding: 6px 0 calc(6px + var(--safe-bottom)); }
  .tabbar .tab { font-size: 11px; padding: 4px 0; }
  .convo-topbar { padding: 6px 10px; }
  .convo-card { margin: 8px 10px; padding: 10px 12px; }
  .translate-card { max-width: calc(100vw - 24px); }
  .session-box { padding: 0 12px 8px; }
}
