:root {
  --ink:      #1a1d21;
  --ink-2:    #4a5158;
  --ink-3:    #878e96;
  --line:     #e3e6ea;
  --bg:       #f4f2ee;
  --card:     #ffffff;
  --accent:   #1f4e79;
  --accent-2: #2d6da3;
  --good:     #1f7a4d;
  --good-bg:  #e8f4ee;
  --warn:     #9a6a00;
  --warn-bg:  #fdf4e0;
  --bad:      #b3382f;
  --bad-bg:   #fbeceb;
  --detour:   #6b4fa8;   /* 绕远:做对了但慢。既不是 good 绿,也不是 bad 红 */
  --detour-bg:#f0ecf9;
  --radius:   14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: Consolas, "Courier New", monospace;
  background: #eceef1;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

.hidden { display: none !important; }
.spacer { flex: 1; }
.muted { color: var(--ink-3); font-size: 13px; }

/* ---------------------------------------------------- 顶栏 */
.topbar {
  background: var(--accent);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 12px rgba(31, 78, 121, .18);
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  font-size: 19px;
  font-weight: 700;
}
.brand-title { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.brand-sub { font-size: 12px; opacity: .75; line-height: 1.3; }

.stats { margin-left: auto; display: flex; gap: 22px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 11px; opacity: .72; }

/* ---------------------------------------------------- 主体 */
/* 四步法是左右两栏,得给它宽度;纯阅读的视图自己收窄(见 #view-quick) */
.wrap { max-width: 1120px; margin: 0 auto; padding: 20px 18px 40px; }
/* 一行太长的字难读,答题/读题类视图还是窄栏 */
#view-quick { max-width: 780px; margin: 0 auto; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(20, 30, 45, .04);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.card-title { font-weight: 700; font-size: 15px; color: var(--accent); }
.card-foot { display: flex; gap: 8px; margin-top: 14px; }

.chip {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef0f3;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip-blue { background: #e6eef6; color: var(--accent); font-weight: 600; }
.chip-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-3); }

.timer {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef0f3;
}
.timer.urgent { color: var(--bad); background: var(--bad-bg); }
.timer.done { color: var(--ink-3); background: #eef0f3; }

/* ---------------------------------------------------- 题目 */
.stem {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 14px;
}
.goal-wrap {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 12px 14px;
  background: #f7f8fa;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.goal-label {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.goal { font-size: 16px; font-weight: 600; }

.hint {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 8px;
  font-size: 14px;
}

/* ---------------------------------------------------- 表单 */
.field-label { display: block; font-size: 14px; margin: 4px 0 7px; color: var(--ink-2); }
.field-label b { color: var(--accent); }

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: #fcfcfd;
  resize: vertical;
  margin-bottom: 16px;
  transition: border-color .15s, box-shadow .15s;
}
textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45, 109, 163, .12);
}

input[type="password"], input[type="text"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
}
input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(45, 109, 163, .12); }

/* ---------------------------------------------------- 按钮 */
.btn {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 18px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); }

.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink-3); color: var(--ink); }

.btn-sm { padding: 6px 13px; font-size: 13px; font-weight: 500; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tip { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }

/* ---------------------------------------------------- 反馈 */
.feedback { border-color: #cfe0ee; background: #fbfcfe; }
.feedback-body {
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}
.chip-good { background: var(--good-bg); color: var(--good); font-weight: 700; }
.chip-warn { background: var(--warn-bg); color: var(--warn); font-weight: 700; }
.chip-bad  { background: var(--bad-bg);  color: var(--bad);  font-weight: 700; }
/* 「绕远」—— 单独的色:这题入口找对了、也走通了,只是走长了 */
.chip-detour { background: var(--detour-bg); color: var(--detour); font-weight: 700; }

.answer { border-color: #d9e6f2; background: #f8fbfd; }
.ans-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ans-row:last-child { border-bottom: none; }
.ans-key {
  flex: 0 0 44px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 2px;
}
.ans-val { flex: 1; font-size: 15px; }

/* ---------------------------------------------------- 配置条 */
.banner {
  background: #fff9e8;
  border-bottom: 1px solid #f0e0b8;
  padding: 18px 0;
}
.banner-inner { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.banner-inner strong { color: var(--warn); font-size: 15px; }
.banner-inner p { margin: 8px 0; font-size: 13.5px; color: var(--ink-2); }
.banner-row { display: flex; gap: 9px; margin: 12px 0 6px; }
.banner-note { color: var(--ink-3) !important; font-size: 12.5px !important; }
.key-msg { font-size: 13px; min-height: 18px; }
.key-msg.ok { color: var(--good); }
.key-msg.err { color: var(--bad); }
/* 读图只读回来一半 —— 读到了,但得自己补,跟「彻底没读出来」的红要分开 */
.key-msg.warn { color: var(--warn); }

/* ---------------------------------------------------- Key 设置面板 */
/* 标题行:左边标题,右边关闭按钮(复用 .modal-x 的 margin-left:auto) */
.banner-head { display: flex; align-items: center; gap: 10px; }
/* 当前 Key 从哪来 —— 环境变量会盖掉界面保存的,必须让用户看见,不然「改了没生效」无从排查 */
.key-status { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 2px; }
.key-status.warn { color: var(--warn); }
.banner-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.banner-sep { border: none; border-top: 1px dashed #eadfc0; margin: 14px 0 0; }
/* 藏起来的文件选择框 —— 由「导入记录」按钮代为点击 */
.key-file { display: none; }

/* 间距工具类:CSP 收紧后内联 style 会被拦,这两处间距挪到这里 */
.mt-14 { margin-top: 14px; }
.mb-12 { margin-bottom: 12px; }

/* 顶栏里的「API 设置」:深色底上要透气,不能是一块死白(跟 .nav-tab 一个色系) */
.topbar .btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
}
.topbar .btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, .22);
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

/* ---------------------------------------------------- 页脚 */
.footer {
  text-align: center;
  padding: 22px 18px 34px;
  font-size: 12px;
  color: var(--ink-3);
}
.dot { margin: 0 8px; }

/* ---------------------------------------------------- 手机 */
@media (max-width: 620px) {
  .brand-sub { display: none; }
  .stats { gap: 14px; margin-left: 0; width: 100%; }
  .stat { flex: 1; }
  .wrap { padding: 14px 12px 30px; }
  .card { padding: 15px 15px; }
  .stem { font-size: 16px; }
  .actions .btn { flex: 1; }
  .footer .dot { display: none; }
  .footer span { display: block; }
}

/* ============================================================
 * M2 新增:导航 / 四步法 / 卡片库 / 弹窗 / 提示条
 * ============================================================ */

/* ---------------------------------------------------- 导航 */
.nav { display: flex; gap: 4px; }
.nav-tab {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .88);
  border-radius: 9px;
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-tab:hover { background: rgba(255, 255, 255, .18); }
.nav-tab.active { background: #fff; color: var(--accent); border-color: #fff; }
.nav-dot {
  position: absolute;
  top: -3px; right: -3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff9f1a;
  border: 2px solid var(--accent);
}

/* 只做透明度淡入,不碰 transform。
   原因:动画里的 transform 会给 .view 建一个「包含块」,
   使内部 position:sticky 的题目卡在动画期间吸附位置错乱(滚到第 3、4 步时图就不见了)。 */
.view { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------- 四步法 */
.coach-tip { margin-top: 0; }

.step { transition: opacity .15s; }
/* 未解锁的栏也压暗,但别压到读不动 —— 那几栏的说明文字你也得先看明白 */
.step.locked { opacity: .8; background: #fafbfc; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.step-no {
  width: 25px; height: 25px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 25px;
}
.step.locked .step-no { background: var(--ink-3); }
.step-title { font-weight: 700; font-size: 15px; color: var(--accent); }
.step-state { font-size: 12px; color: var(--ink-3); }
.step-state.ok { color: var(--good); font-weight: 700; }
.step-desc { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.7; }

.step-body { display: flex; gap: 10px; align-items: flex-start; }
.step-body textarea { margin-bottom: 0; }
.step-body .step-go { margin-top: 2px; }

.step-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fbfcfe;
  border: 1px solid #cfe0ee;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}

/* 「教练判了绕远」时冒出来的退回按钮。点评块藏起来时它是第一个可见元素,所以自带外边距 */
.step-redo { margin-top: 10px; }

/* ---------------------------------------------------- 卡片库 */
.cards-filter { display: flex; gap: 7px; margin-top: 12px; }
.pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 5px 15px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.pill:hover { border-color: var(--ink-3); }
.pill.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 13px;
}
.card-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(20, 30, 45, .04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-item-head { display: flex; align-items: center; gap: 8px; }
.ci-feature {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink);
}
.ci-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.ci-row { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.65; }
.ci-row b {
  flex: 0 0 58px;
  color: var(--accent);
  font-size: 12.5px;
  padding-top: 1px;
}
.ci-row span { flex: 1; color: var(--ink-2); }
.ci-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
.ci-bad:hover:not(:disabled) { border-color: var(--bad); color: var(--bad); }
.ci-good:hover:not(:disabled) { background: var(--accent-2); }

.empty {
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  padding: 34px 20px;
  grid-column: 1 / -1;
}

/* ---------------------------------------------------- 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 45, .48);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 50px rgba(15, 25, 40, .3);
}
.modal-head {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-x {
  margin-left: auto;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0 4px;
}
.modal-x:hover { color: var(--ink); }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-body textarea { margin-bottom: 14px; }
.modal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.req { color: var(--ink-3); font-size: 12px; font-weight: 400; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #9c2f27; }

/* 搜索条:输入框占满,右边跟一个「找到几道」 */
.import-bar { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; }
.import-search {
  flex: 1;
  min-width: 0;
  padding: 8px 11px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.import-search:focus { outline: none; border-color: var(--accent-2); }
.import-count { font-size: 12.5px; white-space: nowrap; }

.import-list { display: flex; flex-direction: column; gap: 9px; }
.import-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfcfd;
}
.import-info { flex: 1; min-width: 0; }
/* 序号 + 日期:窄窄一条贴左边,等宽数字对齐,几十行扫下来不跳 */
.import-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 76px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.import-seq { font-size: 13px; font-weight: 600; color: var(--accent); }
.import-date { font-size: 11.5px; color: var(--ink-3); }
.import-stem {
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 删题:一样是 ghost 按钮,只把字和悬停底色换成红的,跟「生成」拉开距离 */
.import-del { color: var(--bad); }
.import-del:hover:not(:disabled) { background: var(--bad-bg); }

/* ---------------------------------------------------- 提示条 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(15, 25, 40, .28);
  animation: fade .18s ease-out;
}
.toast-ok { background: var(--good); }
.toast-bad { background: var(--bad); }

/* ---------------------------------------------------- 追问行 */
.followup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.followup-q { font-size: 12.5px; color: var(--warn); }

.key-msg.bad { color: var(--bad); }

/* ---------------------------------------------------- 手机 */
@media (max-width: 620px) {
  .nav { order: 3; width: 100%; }
  .nav-tab { flex: 1; text-align: center; padding: 7px 8px; }
  .cards-grid { grid-template-columns: 1fr; }
  .step-body { flex-direction: column; }
  .step-body .step-go { width: 100%; }
  .modal-box { max-height: 92vh; }
  .ans-row { flex-direction: column; gap: 3px; }
  .ans-key { flex: none; }
}

/* ============================================================
 * 导入真题 / 题目配图 / 悬停放大 / AI提示
 * ============================================================ */

/* ---------------------------------------------------- 题目配图 */
/* 缩略图:保持题目卡矮,才能配合下面的 sticky 吸附 */
.stem-img {
  display: block;
  max-width: 100%;
  max-height: 110px;
  width: auto;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: zoom-in;
}
/* 固定住之后,缩略图自己就是「取消」的按钮 —— 浮层是 pointer-events:none,
   光标提示只能挂在缩略图上,挂在浮层上永远不生效 */
.stem-img.pinned { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(45, 109, 163, .14); cursor: zoom-out; }

/* ---------------------------------------------------- 四步法:左右两栏 */
/* 以前是「题目在上、四栏在下」。题目卡一吸顶就压住下面的步骤,
   卡片越高压得越多(导入的题带图之后更明显)——
   改成左右:题目在左、四栏在右,谁也不压谁,滚到第 4 步图还在眼前。 */
#view-coach {
  display: grid;
  grid-template-columns: minmax(300px, 2fr) minmax(0, 3fr);
  gap: 18px;
  align-items: start;
}
#coachSteps { min-width: 0; }
#coachFinish { grid-column: 1 / -1; }   /* 走完之后的答案横跨整行 */
.problem-card { margin-bottom: 0; }
.problem-card .card-head { flex-wrap: wrap; }   /* 左栏窄,标题跟三个按钮一行挤不下 */
#view-coach > #coachFinish { margin-bottom: 0; }

/* 屏幕够宽,题目卡才吸顶;并且比屏幕高时自己内部滚,别被顶栏切掉下半截 */
@media (min-width: 901px) {
  .problem-card {
    position: sticky;
    top: calc(var(--topbar-h, 68px) + 6px);
    z-index: 12;
    max-height: calc(100vh - var(--topbar-h, 68px) - 24px);
    overflow-y: auto;
  }
  /* 左栏有地方了,图可以给大一点(鼠标放上去还能再放大) */
  .problem-card .stem-img { max-height: 260px; }
  /* 显式把图卡和四栏都钉在右栏。不写这条会怎样(2026-10-09 真的发生了):
     两列 grid 是按 DOM 顺序自动排版的 —— 图卡占掉「第 1 行第 2 列」之后,
     四栏被顺延到「第 2 行第 1 列」,也就是【左栏】,正好压在下面那张
     position:sticky 的题目卡底下。吸顶卡不透明、z-index:12,滚动时四栏从它下面
     钻过去,学生看到的是右栏图卡下面一片空白 —— 报的就是「带图题核对了进不去四步法」。
     无图题从来没这毛病:那时图卡 display:none 不占格,四栏正好落在第 1 行第 2 列。
     所以这不是"排得难看",是【带图题的专属失效】,而带图题恰恰是读图闸唯一存在的理由。
     (钉在 ≥901px 里:窄屏是单列,写 grid-column:2 会凭空多出一个隐式列、横向溢出。) */
  #coachFigure, #coachSteps { grid-column: 2; }
}

/* 窄屏回退成上下排 —— 此时题目卡不能再吸顶,否则又压住步骤 */
@media (max-width: 900px) {
  #view-coach { grid-template-columns: 1fr; }
  .problem-card { position: static; max-height: none; overflow: visible; }
}

/* ---------------------------------------------------- 放大浮层 */
.img-zoom {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 30, 45, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  /* 关键:浮层铺满视口,一旦能接指针,它盖上来就抢走光标 →
     缩略图收到 mouseleave 关掉浮层 → 指针又落回缩略图 → 再盖上,高频闪屏。
     设成 none 之后浮层对指针完全透明:悬停/点击/双击都直达下面的缩略图,
     所以「点一下固定住、再点一下或 Esc 取消」靠的都是缩略图自己的事件。
     (别删这条 —— core.js 的 bindZoom 注释里也记着同一个坑) */
  pointer-events: none;
}
.img-zoom img {
  max-width: 94vw;
  max-height: 88vh;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

/* ---------------------------------------------------- 四步法工具条 */
.coach-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.hint-level {
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff;
  cursor: pointer;
}
.hint-level:focus { outline: none; border-color: var(--accent-2); }

/* ---------------------------------------------------- 读图复述确认(四步法第一道闸) */
/* 这张卡一直挂在四栏上面,别让它抢戏 —— 它是「先办一件事」,不是内容本身。
   左边那条竖线是唯一的强调色:没核对是蓝的,核对完转绿,跳过转灰。 */
.fig-card { border-left: 3px solid var(--accent-2); }
.fig-card.done { border-left-color: var(--good); }
.fig-card.skipped { border-left-color: var(--ink-3); }
.fig-intro { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin-bottom: 12px; }
.fig-box { display: flex; flex-direction: column; gap: 10px; }
.fig-text {
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  resize: vertical;          /* 复述能写很长,给他一个自己拉高的余地 */
  min-height: 140px;
  width: 100%;
}
.fig-text:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(45, 109, 163, .12); }
.fig-text:disabled { background: #fafbfc; color: var(--ink-3); }
.fig-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fig-done { display: flex; flex-direction: column; gap: 10px; }
.fig-summary {
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}
.fig-summary-k { font-size: 12.5px; color: var(--ink-3); margin-bottom: 5px; }
/* 只给 4 行高 —— 整段复述能有五条、好几屏,全铺开会把下面四栏顶得看不见。
   想看全就点「展开看看 / 再改」,那儿是满高的输入框。 */
.fig-summary-v {
  max-height: 6.4em;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.7;
}
.fig-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.fig-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; min-width: 0; }
.fig-note.bad { color: var(--bad); }
.fig-note.warn { color: var(--warn); }

/* ---------------------------------------------------- 每步的 AI提示 */
.step-actions { display: flex; gap: 7px; flex: 0 0 auto; flex-direction: column; }
.step-hint { color: var(--warn); border-color: #f0dfb4; background: #fffdf7; }
.step-hint:hover:not(:disabled) { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }

.step-hintbox {
  margin-top: 10px;
  padding: 11px 14px;
  background: var(--warn-bg);
  border: 1px solid #f0dfb4;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.step-hintbox .hb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--warn);
}
.step-hintbox .hb-body { color: var(--ink); }
.step-hintbox .hb-foot { margin-top: 9px; }

/* ---------------------------------------------------- 每步的手写稿照片 */
/* 缩略图条默认带 .hidden,只有真传了照片才出现。照片本身不进批改 ——
   它摆在这儿只是给学生对着核 AI 认出来的字,所以要小、要安静,别抢正文。 */
.step-shot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;      /* 那行说明可能很长,窄卡片上让它整段掉到第二行,别把缩略图挤扁 */
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  background: #fbfcfe;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.shot-img {
  width: 74px; height: 74px;
  flex: 0 0 74px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;      /* 放大走全局的 #imgZoom 浮层,和题目图共用一套 */
}
/* 钉住时给个环:不然鼠标一离开就看不出「这张正被放大」,再点一下也像没反应 */
.shot-img.pinned { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 109, 163, .16); }
.shot-note { min-width: 0; line-height: 1.6; }

/* 「重置本栏」自己占一行,和上面的输入框拉开距离 ——
   它是破坏性操作,贴着正文放太容易误点 */
.step-tools { display: flex; gap: 8px; margin-top: 10px; }
.step-reset { color: var(--ink-3); }
.step-reset:hover:not(:disabled) { color: var(--bad); border-color: var(--bad); }

/* ---------------------------------------------------- 导入表单 */
.modal-body input[type="text"] { width: 100%; margin-bottom: 14px; }
.modal-body .field-label { margin-top: 0; }

.import-sep {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

/* 「AI 帮我读图」那一行:按钮 + 一句提醒 */
.read-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.read-row .muted { font-size: 12.5px; line-height: 1.5; }

.drop-zone {
  border: 2px dashed #cfd6dd;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
  background: #fcfcfd;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop-zone:hover { border-color: var(--accent-2); background: #f7fafd; }
.drop-zone.over { border-color: var(--accent-2); background: #eef4fa; color: var(--accent); }
.dz-link { color: var(--accent-2); text-decoration: underline; }
.dz-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }
.dz-busy { color: var(--accent-2); font-weight: 600; }

.dz-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.dz-thumb {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.dz-thumb img { display: block; width: 100%; height: 74px; object-fit: cover; }
.dz-thumb .dz-no {
  position: absolute;
  left: 4px; top: 4px;
  background: rgba(20, 30, 45, .7);
  color: #fff;
  font-size: 11px;
  padding: 0 6px;
  border-radius: 999px;
}
.dz-thumb.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 109, 163, .16); }
.dz-thumb.sel .dz-no { background: var(--accent); }

@media (max-width: 620px) {
  /* 传照片现在有两个按钮(手写照片 / 粘贴截图),窄屏一行排不下就折行 ——
     原来的 flex:1 会一直把它们压扁,压到字都糊在一起 */
  .step-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .step-actions .btn { flex: 1 1 auto; min-width: 92px; }
}

/* ---------------------------------------------------- 每日训练清单 */
.daily-head .card-head { flex-wrap: wrap; gap: 8px; }

.daily-progress { display: flex; align-items: baseline; margin: 14px 0 6px; }
.daily-count { font-weight: 600; }
.daily-pct { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }

.daily-bar { height: 8px; border-radius: 999px; background: #e9ecf0; overflow: hidden; }
.daily-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width .25s ease;
}

.daily-meta { display: flex; align-items: center; flex-wrap: wrap; margin-top: 10px; }
/* 近 7 天绕远统计。文字里自带前导「 · 」,整块藏起来时分隔符跟着一起消失 */
.daily-long { color: var(--detour); }
.daily-tip { margin-top: 10px; }

#dailyList { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.daily-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.daily-item.is-done { background: #f7faf8; border-color: #d8e7de; }
.daily-item.is-done .daily-seq,
.daily-item.is-done .daily-topic { color: var(--ink-3); text-decoration: line-through; }

.daily-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.daily-check { display: inline-flex; align-items: center; cursor: pointer; }
.daily-check-input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }

.daily-seq { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.daily-topic { font-size: 13px; color: var(--ink-3); }

/* 学科 chip 是个 <button>,得把按钮的默认外观抹掉才像 chip */
.daily-subject {
  border: 1px solid var(--line);
  background: #f2f5f8;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
}
.daily-subject:hover { border-color: var(--accent-2); color: var(--accent); }
.daily-subject-sel {
  font-family: inherit;
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--accent-2);
  background: #fff;
  color: var(--accent);
}

.daily-body { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.daily-img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: zoom-in;
}
/* 固定住之后缩略图自己就是「取消」的按钮 —— 浮层 pointer-events:none,
   cursor 挂在它上面永远不生效。和 .stem-img.pinned 是一回事 */
.daily-img.pinned { border-color: var(--accent-2); cursor: zoom-out; }
.daily-stem { font-size: 15px; line-height: 1.8; }
.daily-goal-wrap { margin-top: 8px; }
.daily-goal { font-size: 15px; }

.daily-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fbfcfd;
}
.daily-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daily-card-title { font-weight: 600; }
.daily-card-body { margin-top: 8px; }
/* 单独一格的卡片:外面那层就是它的容器,里面别再套一层框 */
.daily-item-card { padding: 10px 12px; background: #fbfcfd; }
.daily-item-card .daily-card { margin-top: 0; border: 0; padding: 0; background: transparent; }

/* ---------------------------------------------------- 问 AI(常驻浮窗) */
/* z-index 70:盖住正文和四步法卡片,但压不住放大浮层(80)和提示条(90)——
   照片放大和「已导出」这类反馈都比它更该在最上面。 */
.ask-launch {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(31, 78, 121, .34);
  transition: background .15s ease, transform .15s ease;
}
.ask-launch:hover { background: var(--accent-2); transform: translateY(-1px); }
.ask-launch-ico { font-size: 15px; line-height: 1; }

/* 四步法工具条里那颗「问 AI」:和右下角的浮标是同一个窗口。
   染成主色,让它在「提示力度」那个下拉和说明文字中间一眼能认出来 ——
   那正是学生三档提示都用完、抬头找出口的位置。 */
.btn-ask { color: var(--accent); border-color: var(--accent-2); background: #f2f7fc; }
.btn-ask:hover { background: #e6f0f9; border-color: var(--accent); }

.ask-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: min(94vw, 400px);
  height: min(74vh, 580px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(15, 25, 40, .28);
  overflow: hidden;
}

/* 题号一行单独占一行:它是「现在问的是哪道题」的唯一线索,
   挤在标题旁边会被截断成一串省略号(见 ask-ctx) */
/* 整个标题栏就是拖动手柄(cursor: move 是唯一提示,再加左边那撮小圆点)。
   touch-action:none 是给触屏留的 —— 不然在标题上按住拖动会先被当成页面滚动。
   宽屏才有拖动,窄屏下面板是整幅底部抽屉,没法拖也没必要拖。 */
.ask-head {
  padding: 11px 12px 9px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfd;
  cursor: move;
  touch-action: none;
}
.ask-head-top { display: flex; align-items: center; gap: 8px; }
.ask-title { font-weight: 600; color: var(--accent); }
/* 标题左边那撮 3×3 小圆点:纯 CSS 画的,不引图标库,也就是个「这儿能拖」的暗示 */
.ask-grip {
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: -2px;
  color: var(--line);
  background-image: radial-gradient(currentColor 1.1px, transparent 1.1px);
  background-size: 4px 4px;
}
.ask-head:hover .ask-grip { color: var(--ink-3); }
.ask-head .modal-x { font-size: 22px; margin-left: 0; }
.ask-ctx {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ask-body { flex: 1; overflow-y: auto; padding: 14px; background: #fbfcfd; }
.ask-empty { font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.ask-empty p { margin: 0 0 8px; }
.ask-eg {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 7px;
  padding: 8px 11px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
}
.ask-eg:hover { border-color: var(--accent-2); background: #f4f8fc; }

.ask-msg { display: flex; margin-bottom: 12px; }
.ask-msg.me { justify-content: flex-end; }
.ask-bubble {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;       /* AI 的回答是一行行写的,别把换行吃掉 */
  word-break: break-word;
  overflow-x: auto;            /* KaTeX 公式比气泡宽时自己滚,别撑破面板 */
}
.ask-msg.me .ask-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.ask-msg.ai .ask-bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
/* 「直接要完整解答」拿到的那份:和普通回答区分开 —— 它会被一起导进 Word */
.ask-msg.ai .ask-bubble.answer { border-color: #d9e6f2; background: #f4f8fc; }
.ask-msg.ai .ask-bubble.bad { border-color: #e8bdb8; background: var(--bad-bg); color: var(--bad); }
.ask-sys { text-align: center; font-size: 12px; color: var(--ink-3); margin: 2px 0 12px; }

/* 右边多留 20px 给缩放手柄:不留的话角落上会压住「发送」按钮的那一角,
   想点发送却把它拖成了缩放。 */
.ask-foot { border-top: 1px solid var(--line); padding: 10px 20px 10px 12px; background: #fff; }
.ask-foot textarea { width: 100%; resize: none; margin-bottom: 7px; }
.ask-foot-row { display: flex; align-items: center; gap: 8px; }

/* ---- 贴进来的截图 ---- */
/* 待发区:挂在输入框上方。贴在气泡外面的图不会被流式的重画抹掉(见 view-chat.js 的 buildRow) */
.ask-pend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 7px; }
.ask-pend-item { position: relative; display: block; }
.ask-pend-item img {
  display: block;
  max-width: 92px;
  max-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ask-pend-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.ask-pend-x:hover { border-color: var(--bad); color: var(--bad); }
.ask-pend-hint { font-size: 12px; color: var(--ink-3); }

/* 发出去的那张图:和气泡并排但各占一行 —— 所以整行改成竖排、按左右对齐 */
.ask-msg.has-shot { flex-direction: column; }
.ask-msg.has-shot.me { align-items: flex-end; }
.ask-msg.has-shot.ai { align-items: flex-start; }
.ask-shots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ask-shot {
  display: block;
  max-width: 190px;
  max-height: 190px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: zoom-in;
}
/* 只贴了图、没写字的那条:气泡里是空的,别留个空壳在那儿 */
.ask-bubble:empty { display: none; }

/* ---- 拖动 / 缩放 ---- */
/* 缩放手柄就压在面板右下角。面板是 position:fixed,所以这里的 absolute 是相对面板定位的。 */
.ask-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  z-index: 2;
  cursor: nwse-resize;
  touch-action: none;
}
/* 手柄本身没颜色,只画那道 ↘ 的斜杠 —— 和浏览器自带的缩放手势长得一样 */
.ask-resize::after {
  content: '';
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  border-bottom-right-radius: 2px;
  opacity: .5;
}
.ask-resize:hover::after { opacity: 1; border-color: var(--accent); }
/* 拖着的时候全局禁掉文字选中:不然鼠标划过面板会把里面的字刷成一片蓝 */
body.ask-dragging { user-select: none; }

/* 窄屏:面板退化成底部整幅抽屉(手机上没有「右下角」这个位置)。
   必须排在上面那批基础规则【之后】—— 同权重下后面的赢,放前面会被 right:20px 盖掉。 */
@media (max-width: 620px) {
  .ask-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: min(82vh, 640px); }
  .ask-launch { right: 12px; bottom: 12px; }
  /* 抽屉形态的尺寸由上面这条决定,拖动和缩放都关掉(view-chat.js 里也同步早退) */
  .ask-head { cursor: default; touch-action: auto; }
  .ask-grip, .ask-resize { display: none; }
}

/* ---------------------------------------------------- 打印:纸上作业单 */
/* 打出来要能带去做题 —— 所以留下真的复选框(它比生成的方框可靠),
   藏掉所有按钮和下拉,题干一律铺开,每道题别跨页断开。 */
@media print {
  :root { --bg: #fff; }
  body { background: #fff; font-size: 12.5pt; }
  .topbar, .footer, .nav, .banner, #keyBanner, #toast, .img-zoom,
  .ask-launch, .ask-panel { display: none !important; }
  .wrap { max-width: none; margin: 0; padding: 0; }
  .view { animation: none; }
  .card { border: 0; box-shadow: none; padding: 0; }

  #view-daily .card-head select,
  #view-daily .btn,
  #dailyList .btn,
  #dailyList select { display: none !important; }

  #dailyList .daily-body,
  #dailyList .daily-body.hidden { display: block !important; }   /* 不看折叠状态 */

  .daily-check-input {
    -webkit-appearance: none;
    appearance: none;
    width: 12pt; height: 12pt;
    border: 1px solid #333;
    border-radius: 0;
    vertical-align: middle;
  }
  .daily-check-input:checked { background: #333; }

  .daily-item {
    break-inside: avoid;
    page-break-inside: avoid;
    border-color: #bbb;
    background: #fff;
  }
  .daily-item.is-done { background: #fff; }
  .daily-item.is-done .daily-seq,
  .daily-item.is-done .daily-topic { color: #333; text-decoration: none; }
  .daily-bar { display: none !important; }
  .daily-meta { display: flex !important; }
  .daily-img { max-height: none; }
}

/* ---------------------------------------------------- 当前用户 / 账号管理 */
.userbox { display: flex; align-items: center; gap: 8px; }
.userbox-name {
  font-size: 13px;
  color: #fff;
  opacity: .88;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 勾选项:新建账号那一排和每个账号那一排共用 */
.chk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.chk input[type="checkbox"] { margin: 0; cursor: pointer; }
.chk input[type="checkbox"]:disabled { cursor: default; }

/* 新建账号:一行塞不下就换行,输入框给个下限免得被挤成一条缝 */
.users-new {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.users-new .import-search { width: auto; flex: 1 1 170px; min-width: 150px; }

.users-list { display: flex; flex-direction: column; gap: 10px; }

.users-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  background: #fcfcfd;
}
.users-row-off { background: #f7f7f8; }
.users-row-off .users-name,
.users-row-off .users-login { color: var(--ink-3); }

.users-row-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 190px; }
.users-name { font-weight: 600; font-size: 14px; }
.users-login { font-size: 12.5px; color: var(--ink-3); }

.users-tag {
  font-size: 11px;
  line-height: 1.5;
  padding: 0 6px;
  border-radius: 5px;
  background: #eceef1;
  color: var(--ink-2);
  white-space: nowrap;
}
.users-tag-admin { background: rgba(31, 78, 121, .1); color: var(--accent); }
.users-tag-off { background: var(--bad-bg); color: var(--bad); }

.users-row-perms { display: flex; flex-wrap: wrap; gap: 4px 14px; flex: 1 1 260px; }
.users-row-acts { display: flex; flex-wrap: wrap; gap: 7px; margin-left: auto; }

/* 这一块的提示:密码重置、权限失败之类的即时反馈 */
.users-msg {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.users-msg-good { background: var(--good-bg); color: var(--good); border: 1px solid rgba(31, 122, 77, .2); }
.users-msg-bad { background: var(--bad-bg); color: var(--bad); border: 1px solid rgba(179, 56, 47, .2); }

@media (max-width: 640px) {
  .users-row-acts { margin-left: 0; width: 100%; }
}
