:root {
  --bg: #f3f0ea;
  --ink: #1c2a24;
  --muted: #5f6f68;
  --card: #fffdf8;
  --line: #d8d2c6;
  --accent: #2f6f5e;
  --accent-2: #c47a3a;
  --danger: #b33b3b;
  --ok: #2f6f5e;
  --shadow: 0 10px 30px rgba(28, 42, 36, 0.08);
  --radius: 16px;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "Source Code Pro", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
/* 预留滚动条槽，避免长短页切换时整页水平晃动 */
html { scrollbar-gutter: stable; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #e7f0ea 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f7e8d8 0%, transparent 50%),
    var(--bg);
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; margin-bottom: 18px;
}
.brand { font-weight: 760; letter-spacing: 0.04em; font-size: 18px; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.spacer { flex: 1; }
.nav a {
  margin-left: 14px; color: var(--muted); font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.nav a.active, .nav a:hover { color: var(--accent); }
.nav a.nav-muted { color: var(--muted); font-weight: 500; }
.nav a.nav-muted:hover { color: var(--ink); }
.page-actions { margin: -6px 0 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.card h2, .card h3 { margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.grid-stats-4 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .grid-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px; }
}
@media (max-width: 480px) {
  .grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.stat {
  padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f7f4ee);
  border: 1px solid var(--line);
  text-align: center;
}
.stat .n { font-size: 24px; font-weight: 760; color: var(--accent); line-height: 1.1; }
.stat .l { font-size: 11px; color: var(--muted); margin-top: 2px; }
/* 次要指标：矮行、不抢视觉 */
.stat-sm {
  padding: 8px 10px;
  min-height: 52px;
  max-height: 56px;
  box-sizing: border-box;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.stat-sm .n { font-size: 18px; font-weight: 720; line-height: 1.1; }
.stat-sm .l { font-size: 11px; margin-top: 2px; line-height: 1.2; }
/* 辅助统计：沿用海报深色 #1c2a24，高度介于旧版与过高版之间 */
.grid-stats-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.stat-xs {
  padding: 10px 6px;
  border-radius: 12px;
  background: #1c2a24;
  border: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  box-shadow: 0 4px 12px rgba(28, 42, 36, 0.16);
}
.stat-xs .n {
  font-size: 18px;
  font-weight: 780;
  color: #fff;
  line-height: 1.15;
}
.stat-xs .l {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 3px;
  line-height: 1.2;
  font-weight: 560;
}
label { display: block; font-size: 13px; font-weight: 650; margin: 10px 0 6px; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,111,94,.12);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 12px; padding: 10px 16px;
  font: inherit; font-weight: 700; cursor: pointer;
  background: var(--accent); color: #fff;
}
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .55; cursor: default; filter: none; }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.btn-warn { background: var(--accent-2); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.auth-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.auth-card { width: min(440px, 100%); }
.hero-mark {
  font-size: 34px; font-weight: 800; letter-spacing: 0.08em; margin: 0 0 6px;
}
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 8px; }
.ok { color: var(--ok); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td {
  border-bottom: 1px solid var(--line); text-align: left; padding: 12px 10px; vertical-align: middle;
}
.table th { font-size: 12px; color: var(--muted); font-weight: 700; }
.table th:last-child, .table td:last-child { text-align: right; }
.table select {
  width: auto;
  min-width: 132px;
  max-width: 200px;
  padding: 7px 10px;
  height: 36px;
  margin: 0;
}
.table .cell-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.table .cell-actions .btn { flex: none; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: #e8f1ed; color: var(--accent);
}
.tag.warn { background: #f8eadc; color: #9a5a1f; }
.tag.danger { background: #f8e2e2; color: var(--danger); }
.tag.muted { background: #eee; color: #666; }
.list-item {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.list-item:hover { background: rgba(47,111,94,.04); }
.banner {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: #1c2a24; color: #fff; min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.banner .t { padding: 18px; font-size: 20px; font-weight: 750; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(12px);
  background: rgba(28,42,36,.92); color: #fff; padding: 10px 16px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: .15s; z-index: 50; font-size: 14px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pre {
  white-space: pre-wrap; word-break: break-word; font-family: var(--mono);
  font-size: 13px; background: #f7f4ee; padding: 12px; border-radius: 12px;
}
.md h1,.md h2,.md h3 { margin: .8em 0 .4em; }
.md p { margin: .5em 0; }
/* 顶部品牌与用户问候栏增强 */
.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 16px;
}
.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(47, 111, 94, 0.15);
  flex-shrink: 0;
}
.header-info {
  display: flex;
  flex-direction: column;
}
.header-info .name {
  font-size: 18px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.2;
}
.header-info .subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* 核心行动区域今日记录卡片：shouye 铺满卡片高度 */
.card-today {
  background-color: #f4f0e6;
  background-image: url("/img/shouye.png");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  min-height: 168px;
}
.card-today .today-inner {
  position: relative;
  z-index: 1;
  max-width: 62%;
}
.card-today h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--accent);
}
@media (max-width: 460px) {
  .card-today {
    background-size: cover;
    background-position: center right;
    min-height: 176px;
  }
  .card-today .today-inner { max-width: 68%; }
}
.btn-pill {
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(47, 111, 94, 0.25);
}

/* 移动端底部 Tab Bar 矢量图标集成 */
.mobile-tabbar a .tab-icon,
.mobile-tabbar a svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  margin-bottom: 3px;
  fill: currentColor;
  flex: none;
}
.progress-bar-bg {
  height: 8px; background: #e0d8c8; border-radius: 999px; overflow: hidden; margin: 8px 0 6px;
}
.progress-bar-fill {
  height: 100%; background: var(--accent); transition: width 0.3s ease; border-radius: 999px;
}

/* 月度评估报告卡片 */
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; filter: brightness(0.995); }
.monthly-head { display: flex; align-items: center; gap: 12px; }
.monthly-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: #e8f1ed; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.monthly-title { flex: 1; min-width: 0; }
.monthly-line { display: flex; align-items: baseline; gap: 8px; }
.monthly-line strong { font-size: 15px; }
.monthly-line .muted { font-size: 12px; }
.chevron { color: var(--muted); font-size: 22px; line-height: 1; flex: none; }
.progress-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.progress-row .muted { font-size: 12px; flex: none; }

.fb-card {
  background: rgba(47, 111, 94, 0.04);
  border-radius: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
}
.footer-disclaimer {
  margin: 28px 0 36px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  border-top: 1px dashed var(--line);
}

/* ========== 统一页头 (page-head) ========== */
.page-head, .diary-head { padding: 4px 0 2px; }
.page-head h1, .diary-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--ink);
}
.page-head .sub, .diary-head .sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.section-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 750; color: var(--ink);
  margin: 0 0 12px;
}
.section-label .leaf { font-size: 15px; }
.section-label + .section-label,
.mood-pills + .section-label { margin-top: 20px; }

.mood-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.mood-pill {
  flex: 1 1 calc(25% - 10px);
  min-width: 72px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 12px 8px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-size: 13px; font-weight: 650;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s, transform .1s;
  user-select: none;
}
.mood-pill:active { transform: scale(0.97); }
.mood-calm   { background: #e8f1ed; color: #2f6f5e; }
.mood-happy  { background: #f3f0e4; color: #8a7a3a; }
.mood-expect { background: #f7ead6; color: #a5722f; }
.mood-anx    { background: #f8eadc; color: #9a5a1f; }
.mood-tired  { background: #eae7ee; color: #6a6480; }
.mood-down   { background: #e8eef2; color: #5a6b7a; }
.mood-anger  { background: #f5e6e4; color: #9a5550; }
.mood-lost   { background: #ebe8f0; color: #6f6585; }
.mood-custom-ro { background: #f0eee8; color: #6a6558; }
.mood-pill.active {
  background: #fffdf8;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.14);
}
.mood-custom { margin-top: 12px; }
.mood-custom input {
  width: 100%; margin: 0; font-size: 14px;
  border-radius: 12px; background: #fffdf8;
  color: var(--ink);
}
.mood-custom input::placeholder {
  color: var(--muted); opacity: 1; font-size: 13px;
}
.mood-custom input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.12);
}
.mood-custom.has-value input {
  border-color: var(--accent);
  background: #fffdf8;
}
.section-label-prompts,
.mood-custom + .section-label { margin-top: 28px; }

.prompt-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.leave-block { margin-top: 4px; }
.explore-sub {
  background: linear-gradient(135deg, #fff8f2 0%, #f7fbf8 100%);
  border: 1px solid #eadfd2;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.explore-sub .explore-prompt {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}
.explore-sub .explore-actions { margin-top: 0; }
.explore-sub .explore-note { margin: 8px 0 0; }
.chip {
  display: inline-flex; align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: #f4f1ea;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { background: #eef1ec; color: var(--accent); border-color: var(--accent); }

.diary-compose {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 11px 12px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.diary-compose:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.12);
}
.diary-compose textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 160px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  resize: none;
  overflow: hidden;
  line-height: 1.6;
}
.diary-compose textarea:focus {
  outline: none;
  border: none;
  box-shadow: none;
}
.diary-compose-meta {
  margin-top: 1.6em; /* 与正文末行始终空一行 */
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  pointer-events: none;
  user-select: none;
}
.diary-compose-meta .dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  flex: none;
}

.diary-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin-top: 14px; flex-wrap: wrap;
}
.diary-actions .btn { flex: none; white-space: nowrap; }

.modal-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

/* 溏宝对话式反馈卡片 */
.buddy-card {
  background: #fcf9f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.buddy-head { display: flex; align-items: center; gap: 12px; }
.buddy-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; flex: none;
  border: 1px solid var(--line);
  background: #fff;
}
.buddy-name-wrap { display: flex; flex-direction: column; gap: 2px; flex: none; min-width: 0; justify-content: center; }
.buddy-name { font-size: 16px; font-weight: 780; color: var(--ink); line-height: 1.2; }
.buddy-badge {
  font-size: 12px; font-weight: 560; color: var(--muted);
  line-height: 1.2; padding: 0; background: transparent; border-radius: 0;
}
.buddy-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.buddy-intro { margin: 12px 0 4px; font-size: 14px; color: #4a5851; line-height: 1.6; }

.fb-module { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid #efece4; }
.fb-module:first-of-type { border-top: none; }
.fb-module-icon {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.fb-module-icon svg { width: 20px; height: 20px; }
.fb-ic-observe { background: #eaeef2; color: #5a6b7a; }
.fb-ic-resource { background: #e8f1ed; color: #2f6f5e; }
.fb-ic-action  { background: #f8f0dc; color: #a5722f; }
.fb-module-body { flex: 1; min-width: 0; }
.fb-module-title { font-size: 14px; font-weight: 750; color: var(--ink); margin: 2px 0 4px; }
.fb-module-text { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ========== 查阅历史详情 (entry) ========== */
.entry-topline { padding: 6px 0 2px; }
.back-link { font-size: 14px; font-weight: 650; color: var(--muted); }
.back-link:hover { color: var(--accent); text-decoration: none; }
.entry-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.entry-card-head .spacer { flex: 1; }
.tag.ok-tag { background: #e3efe8; color: #2f6f5e; }
.mood-readonly {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 650;
}
.letter {
  white-space: pre-wrap; word-break: break-word;
  font-family: var(--font);
  font-size: 15px; line-height: 1.85; color: var(--ink);
  padding: 4px 2px 2px;
}
.entry-nav {
  display: flex; align-items: center;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid #efece4;
}
.entry-nav .spacer { flex: 1; }
.nav-btn {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 8px 14px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.nav-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.nav-btn:disabled { opacity: .4; cursor: default; }

/* 移动端底部 Tab Bar & TopBar 响应式优化 */
.mobile-tabbar {
  display: none;
}

@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .topbar { margin-bottom: 12px; }
  .topbar .nav { display: none; }
  .mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 56px;
    background: rgba(255, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
  }
  .mobile-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    flex: 1;
    height: 100%;
  }
  .mobile-tabbar a.active {
    color: var(--accent);
  }
}

/* ========== 首页头像 & 欢迎横幅 ========== */
.user-avatar-img {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 4px 12px rgba(47, 111, 94, 0.12);
}
.welcome-banner {
  display: flex; align-items: center; gap: 12px;
  background: #fdf6eb;
  border: 1px solid #f0e6d6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 10px 12px 18px;
  margin-bottom: 14px;
  overflow: hidden;
}
.welcome-mascot {
  width: 112px; height: 112px; object-fit: contain; flex: none;
  margin: -4px 0;
}
.welcome-text { flex: 1; min-width: 0; }
.welcome-quote {
  margin: 0;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.55;
  color: #3a3326;
}
.welcome-title {
  margin: 0 0 8px;
  font-size: 22px; font-weight: 820; color: #3a3326; line-height: 1.2;
}
.welcome-sub {
  margin: 0; font-size: 13.5px; line-height: 1.6; color: #6d6350;
}
.today-status {
  margin: 0;
  line-height: 1.55;
  max-width: 12.5em;
}
@media (max-width: 400px) {
  .welcome-mascot { width: 92px; height: 92px; }
  .welcome-quote { font-size: 15px; }
  .today-status { max-width: 11.5em; }
}

/* 首页反馈卡片（可点击） */
.fb-card-link {
  display: flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none;
  border-left: none;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px 14px;
  margin-bottom: 16px;
}
.fb-card-link:hover { text-decoration: none; }
.fb-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex: none;
  border: 1px solid var(--line); background: #fff;
}
.fb-body { flex: 1; min-width: 0; }
.fb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.fb-name-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fb-name { color: var(--accent); font-size: 14px; }
.fb-date { color: var(--muted); font-size: 12px; flex: none; }
.fb-quote {
  font-size: 13.5px; line-height: 1.6; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ========== 我的页面 (counselor.html) ========== */
.profile-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px;
  margin-bottom: 16px;
}
.profile-avatar-wrap { position: relative; flex: none; }
.profile-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line); background: #fff;
}
.avatar-cam {
  position: absolute; right: -2px; bottom: -2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--card); cursor: pointer;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.profile-account { font-size: 13px; color: var(--muted); margin-top: 6px; }

.section-block { margin-bottom: 18px; }
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 780; color: var(--ink);
  margin: 0 2px 12px;
}
.section-ico {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.section-ico.ico-shield { background: #e8f1ed; color: var(--accent); }
.section-ico.ico-person { background: #e8f1ed; color: var(--accent); }

/* 折叠区块 */
button.fold-toggle.section-title {
  width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}
button.fold-toggle.section-title:hover { border-color: #cfc8b8; }
.fold-title-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.fold-main { font-size: 15px; font-weight: 780; color: var(--ink); line-height: 1.3; }
.fold-summary { font-size: 12.5px; font-weight: 550; color: var(--muted); }
.fold-chevron {
  flex: none; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease;
}
.fold-block.open .fold-chevron { transform: rotate(180deg); }
.fold-block.open button.fold-toggle.section-title {
  margin-bottom: 12px;
  border-color: rgba(47, 111, 94, 0.28);
}
.fold-body[hidden] { display: none !important; }

.mode-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.mode-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.12);
  background: #fbfdfb;
}
.mode-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.mode-ico.ico-green { background: #e8f1ed; color: var(--accent); }
.mode-ico.ico-orange { background: #f8ecda; color: var(--accent-2); }
.mode-body { flex: 1; min-width: 0; }
.mode-name { font-size: 16px; font-weight: 780; color: var(--ink); }
.mode-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.mode-tag {
  display: inline-block; margin-top: 10px;
  font-size: 12px; font-weight: 650; color: var(--accent);
  background: #e8f1ed; border-radius: 8px; padding: 4px 10px;
}
.mode-check {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center;
  align-self: center;
}
.mode-check.on { border-color: var(--accent); background: var(--accent); color: #fff; }

.counselor-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 16px;
}
.counselor-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
}
.counselor-row.bordered { border-top: 1px solid #efece4; }
.counselor-ava {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: #e8f1ed; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 750;
}
.counselor-meta { flex: 1; min-width: 0; }
.counselor-name { font-size: 16px; font-weight: 750; color: var(--ink); }
.counselor-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.counselor-action { flex: none; }
.chip-bound {
  display: inline-block; font-size: 13px; font-weight: 650;
  color: var(--accent); background: #e3efe8;
  border-radius: 10px; padding: 8px 14px;
}

/* 修改密码弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28, 42, 36, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
/* display:flex 会覆盖浏览器对 [hidden] 的 display:none，必须显式关掉 */
.modal-mask[hidden] {
  display: none !important;
}
.modal-card {
  width: 100%; max-width: 340px;
  background: var(--card); border-radius: 18px;
  padding: 22px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.modal-title { margin: 0 0 16px; font-size: 18px; font-weight: 780; color: var(--ink); }
.field-label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

/* 新用户欢迎信 */
.letter-mask {
  z-index: 260;
  background: rgba(28, 42, 36, 0.42);
  backdrop-filter: blur(2px);
}
.letter-card {
  max-width: 360px;
  padding: 28px 24px 22px;
  background: #f4f2ed;
  border: 1px solid rgba(216, 210, 198, 0.7);
  box-shadow: 0 24px 60px rgba(28, 42, 36, 0.18);
}
.letter-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 20px;
  font-weight: 780;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.letter-body {
  margin: 0;
  color: #3a4741;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-line;
}
.letter-sign {
  margin: 18px 0 0;
  text-align: right;
  color: #3a4741;
  font-size: 15px;
  line-height: 1.6;
}
.letter-actions {
  margin-top: 22px;
}
.letter-actions .btn {
  width: 100%;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
}

/* 新手任务 */
.ob-progress-card { padding-bottom: 16px; }
.ob-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ob-step {
  background: #f3f0ea;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.ob-step .n {
  display: block;
  font-size: 16px;
  font-weight: 780;
  color: var(--ink);
  margin-bottom: 2px;
}
.ob-step.current {
  background: #e8f1ed;
  color: var(--accent);
}
.ob-step.current .n { color: var(--accent); }
.ob-step.done {
  background: #eef6f2;
  color: var(--accent);
}
.ob-step.done .n::after { content: ' ✓'; font-size: 12px; }

.ob-steps-2 { grid-template-columns: repeat(2, 1fr); }

.privacy-card {
  background: linear-gradient(135deg, #fff8f2 0%, #f4f8f5 100%);
  border: 1px solid #eadfd2;
}
.privacy-card p { margin: 0 0 12px; color: var(--muted); line-height: 1.7; }
.privacy-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}
.choice-pill {
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  cursor: pointer;
  line-height: 1.4;
}
.choice-pill.active {
  background: #e8f1ed;
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 650;
}
.q-label { font-size: 15px; font-weight: 700; margin: 4px 0 2px; }
.q-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }

.explore-card {
  background: linear-gradient(135deg, #fff8f2 0%, #f7fbf8 100%);
  border: 1px solid #eadfd2;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0;
}
.card .explore-card {
  margin: 12px 0 4px;
}
.explore-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.explore-prompt {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
}
.explore-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.explore-note { margin: 10px 0 0; font-size: 12px; }

.promise-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.recap-card {
  background: #fff8f2;
  border-color: #eadfd2;
  padding: 16px 16px 14px;
  margin-top: 14px;
}
.recap-card .recap-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.recap-card p { margin: 0; line-height: 1.65; color: var(--ink); }
.recap-tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.rate-stars {
  display: flex;
  gap: 8px;
}
.rate-star {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.rate-star.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 月历（简约：当天底色框 / 已记录下划线 / 不可记灰色） */
.cal-card {
  padding: 14px 12px 16px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.cal-head strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 4px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.cal-weekdays span {
  padding: 4px 0;
  min-width: 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px 0;
  width: 100%;
}
.cal-cell {
  min-width: 0;
  width: 100%;
  height: 42px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  box-sizing: border-box;
}
a.cal-cell:hover { text-decoration: none; }
a.cal-cell:active { background: rgba(47, 111, 94, 0.08); }
.cal-cell.empty { background: transparent; pointer-events: none; }
.cal-cell.muted-day {
  color: #b7beb9;
  font-weight: 500;
}
.cal-cell.has-entry .cal-num {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  line-height: 1.1;
}
.cal-cell.is-today {
  background: var(--accent);
  color: #fff;
}
.cal-cell.is-today.has-entry .cal-num {
  border-bottom-color: rgba(255, 255, 248, 0.9);
}
.cal-num { line-height: 1.2; }
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
}
.cal-legend .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  vertical-align: middle;
  box-sizing: border-box;
}
.cal-legend .mark.today {
  border-radius: 5px;
  background: var(--accent);
}
.cal-legend .mark.filled {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  height: 16px;
  width: auto;
  min-width: 12px;
  padding: 0 1px 1px;
}
.cal-legend .mark.muted {
  color: #b7beb9;
  font-size: 13px;
  font-weight: 500;
  width: auto;
}

/* ==========================================================================
   控制台（咨询师工作台 / 超级管理后台）Console Dashboards
   ========================================================================== */
.wrap-wide { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

/* 页眉占位：咨询师顶栏含问候/伦理条，预留更高，避免鉴权后下移 */
#consoleTop { min-height: 168px; }

/* 顶栏 */
.console-header {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0 14px;
  flex-wrap: nowrap;
  min-height: 52px;
}
.console-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.console-logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: #e8f1ed; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.console-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
.console-title .sep { color: var(--line); margin: 0 4px; font-weight: 500; }
.console-greet {
  font-size: 15px; color: var(--muted); font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: min(320px, 28vw);
}
.console-header .spacer { flex: 1; min-width: 8px; }
.ethics-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef3f0; color: var(--accent);
  border: 1px solid #dce7e1; border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 650; white-space: nowrap; flex: none;
}
@media (max-width: 960px) {
  .ethics-pill { display: none; }
  .console-greet { max-width: min(220px, 36vw); }
}
.console-user-wrap {
  position: relative;
  flex: none;
}
.console-user {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 650; color: var(--ink); cursor: pointer;
  background: transparent; border: none; padding: 0; font: inherit;
}
.console-user .avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 750;
  border: 1px solid var(--line);
}
.console-user .chev { color: var(--muted); font-size: 12px; }
.console-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 168px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(28, 42, 36, 0.12);
  padding: 6px;
  z-index: 80;
}
.console-menu[hidden] { display: none !important; }
.console-menu button {
  display: block; width: 100%;
  text-align: left;
  background: transparent; border: none;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit; font-size: 14px; font-weight: 650;
  color: var(--ink); cursor: pointer;
}
.console-menu button:hover { background: #f3f0ea; }
.console-menu button.danger { color: var(--danger); }
.console-menu button.danger:hover { background: #fdeeee; }

/* 分组导航 */
.console-nav {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 8px; margin-bottom: 18px;
}
.console-nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 650; color: var(--muted);
  text-decoration: none; white-space: nowrap;
}
.console-nav a:hover { color: var(--accent); text-decoration: none; }
.console-nav a svg { width: 17px; height: 17px; }
.console-nav .grow { flex: 1; }
.console-nav .badge-n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px;
  border-radius: 999px; font-size: 11px; font-weight: 780;
  background: var(--danger); color: #fff; line-height: 1;
}
.console-nav .badge-n:empty,
.console-nav .badge-n[hidden] { display: none; }
/* 咨询师：填充式高亮 + 吸顶，减少切换跳动 */
.console-nav.pill {
  position: sticky; top: 0; z-index: 30;
  background: var(--card);
}
.console-nav.pill a.active { background: var(--accent); color: #fff; }
/* 有待处理风险时：风险预警标签醒目红色（非常驻） */
.console-nav.pill a.risk-hot {
  background: #fdeeee; color: #b33b3b;
  box-shadow: inset 0 0 0 1px #f0c8c8;
}
.console-nav.pill a.risk-hot:hover { color: #9a2f2f; text-decoration: none; }
.console-nav.pill a.risk-hot.active {
  background: var(--danger); color: #fff;
  box-shadow: none;
}
.console-nav.pill a.risk-hot.active .badge-n {
  background: #fff; color: var(--danger);
}
/* 管理端：下划线式高亮；吸顶减少切换后的视线跳动 */
.console-nav.line {
  background: color-mix(in srgb, var(--bg) 92%, #fff);
  border: none; box-shadow: none;
  border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 0 4px; gap: 8px; margin-bottom: 18px;
  position: sticky; top: 0; z-index: 30;
}
@supports not (background: color-mix(in srgb, white 50%, black)) {
  .console-nav.line { background: #f3f0ea; }
}
.console-nav.line a { border-radius: 0; padding: 12px 10px; border-bottom: 2px solid transparent; }
.console-nav.line a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 750; }

/* 指标卡网格 */
.metric-grid { display: grid; gap: 14px; margin-bottom: 18px; }
.metric-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
}
.metric-card .mc-icon {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; margin-bottom: 2px;
}
.metric-card .mc-icon svg { width: 24px; height: 24px; }
.metric-card .mc-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.metric-card .mc-num { font-size: 30px; font-weight: 820; color: var(--ink); line-height: 1.1; }
.metric-card .mc-num.red { color: var(--danger); }
.metric-card .mc-num.amber { color: var(--accent-2); }
.metric-card .mc-tag {
  font-size: 11px; font-weight: 650; border-radius: 999px; padding: 2px 9px;
}
.mc-tag.amber { background: #f8ecda; color: var(--accent-2); }
.mc-tag.red { background: #f8e2e2; color: var(--danger); }
.mc-green { background: #e8f1ed; color: var(--accent); }
.mc-amber { background: #f8ecda; color: var(--accent-2); }
.mc-blue  { background: #e6eef4; color: #4a7196; }
.mc-red   { background: #f8e2e2; color: var(--danger); }
.mc-purple{ background: #eee8f3; color: #7a5ea3; }

/* 管理端指标卡：横向布局，含副提示 */
.metric-4 .metric-card {
  flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 20px 20px;
}
.metric-4 .metric-card .mc-icon { width: 52px; height: 52px; margin: 0; }
.metric-4 .metric-card .mc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.metric-4 .metric-card .mc-num { font-size: 28px; }
.metric-4 .metric-card .mc-num small { font-size: 15px; font-weight: 700; color: var(--muted); }
.metric-4 .metric-card .mc-sub { font-size: 12px; color: var(--muted); }
.metric-4 .metric-card .mc-sub b { color: var(--accent-2); }
a.metric-card {
  text-decoration: none; color: inherit; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
a.metric-card:hover {
  text-decoration: none; color: inherit;
  border-color: #b9d0c6; box-shadow: 0 12px 28px rgba(47, 111, 94, 0.12);
  transform: translateY(-1px);
}
a.metric-card:hover .mc-num { color: var(--accent); }
a.metric-card.metric-link-warn:hover .mc-num { color: var(--accent-2); }

/* 三大工作流 */
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.workflow-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: flex; flex-direction: column;
}
.wf-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wf-title { font-size: 15.5px; font-weight: 780; display: flex; align-items: center; gap: 7px; }
.wf-title.danger { color: var(--danger); }
.wf-title.tree { color: var(--accent); }
.wf-all { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.wf-all:hover { color: var(--accent); text-decoration: none; }
.wf-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.wf-list { display: flex; flex-direction: column; flex: 1; }
.wf-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #efece4; }
.wf-item:first-child { border-top: none; }
.wf-thumb {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  background: #eef0ec; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.wf-item-body { flex: 1; min-width: 0; }
.wf-item-top { display: flex; align-items: center; gap: 8px; }
.wf-item-title { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-time { margin-left: auto; font-size: 11.5px; color: var(--muted); flex: none; }
.wf-line { display: flex; align-items: center; gap: 6px; margin: 4px 0; flex-wrap: wrap; }
.wf-user { font-size: 12px; color: var(--muted); }
.wf-snippet {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wf-foot { margin-top: 14px; }
.wf-foot .btn { width: 100%; }
.wf-empty { color: var(--muted); font-size: 13px; padding: 20px 0; text-align: center; flex: 1; }

/* 待确认绑定卡片 */
.bind-card { border-top: 1px solid #efece4; padding: 14px 0; }
.bind-card:first-child { border-top: none; }
.bind-head { display: flex; align-items: center; gap: 10px; }
.bind-ava {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: #e8f1ed; color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 750; font-size: 16px;
}
.bind-name { font-size: 15px; font-weight: 750; color: var(--ink); }
.bind-time { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bind-msg {
  background: #f6f8f6; border-radius: 10px; padding: 10px 12px;
  font-size: 13px; color: #4a5851; line-height: 1.6; margin: 12px 0;
}
.bind-msg .lbl { color: var(--muted); font-weight: 650; }
.bind-actions { display: flex; gap: 10px; }
.bind-actions .btn { flex: 1; }

/* 管理端主区（表格 + 配置） */
.admin-main { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.card-head-ico { display: flex; align-items: center; gap: 8px; }
.card-head-ico .chi {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: #e8f1ed; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.card-head-ico h2 { margin: 0; font-size: 17px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.pager .pg-num { min-width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.pager .pg-arrow { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }

/* 系统快捷配置 */
.config-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start;
}
.config-card:last-child { margin-bottom: 0; }
.config-ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #e8f1ed; color: var(--accent);
}
.config-ic.warn { background: #f8ecda; color: var(--accent-2); }
.config-body { flex: 1; min-width: 0; }
.config-title { font-size: 14.5px; font-weight: 750; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.config-badge { font-size: 11px; font-weight: 650; background: #e3efe8; color: var(--accent); border-radius: 999px; padding: 2px 9px; }
.config-desc { font-size: 12.5px; color: var(--muted); margin: 6px 0 8px; }
.config-link { font-size: 13px; font-weight: 650; color: var(--accent); }

.tag.soft { background: #eef0ec; color: #6a7369; }

/* 响应式：控制台在窄屏下降列 */
@media (max-width: 1000px) {
  .metric-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workflow-grid { grid-template-columns: 1fr; }
  .admin-main { grid-template-columns: 1fr; }
  .metric-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .console-header { flex-wrap: wrap; gap: 10px; }
  .console-greet { width: 100%; order: 5; }
  .metric-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-nav { overflow-x: auto; flex-wrap: nowrap; }
}
