/* 撸了吗 · 纯戒色模式（只给 abstain.html / abstain-checkin.html / abstain-calendar.html 用）
 * 基础样式复用 app.css；底部选项卡的样式也放在 app.css 里（三个版本共用），这里不重复定义。
 */

.topbar a.back { text-decoration: none; display: inline-block; line-height: 1; }
.topbar a.back:active { opacity: .7; }

/* ===== 首页：连续天数大卡 ===== */
.ab-streak-card { text-align: center; }
.ab-streak-label { display: block; color: var(--muted); font-size: 13px; letter-spacing: 2px; }
.ab-streak-num { font-size: 76px; font-weight: 800; line-height: 1.1; margin: 4px 0 2px; letter-spacing: 2px; }
.ab-streak-num.orange { color: var(--brand); }
.ab-streak-num.green { color: var(--green); }
.ab-streak-num.red { color: var(--red); }
.ab-streak-unit { font-size: 20px; font-weight: 700; margin-left: 6px; color: var(--muted); letter-spacing: 0; }
.ab-streak-sub { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
.ab-streak-card .metric-grid { margin-top: 18px; }
.ab-streak-card .metric { background: rgba(255,255,255,0.05); }
html[data-theme="light"] .ab-streak-card .metric { background: rgba(15,23,42,0.05); }

.ab-start { text-align: center; padding: 28px 20px; }

/* ===== 首页：两个工具的入口 ===== */
.ab-tools-title { color: var(--muted); font-size: 13px; margin: 6px 2px 10px; }
button.ab-tool-item {
  display: block; width: 100%; text-align: left; font-family: inherit; font-size: inherit;
  background: var(--card); color: var(--text); border: 2px solid transparent; border-radius: 16px;
  padding: 20px; cursor: pointer; transition: border-color .15s, transform .15s;
}
button.ab-tool-item:active { border-color: var(--brand); transform: scale(0.99); }
html[data-theme="light"] button.ab-tool-item { background: #ffffff; border-color: rgba(15,23,42,0.08); }
html[data-theme="light"] button.ab-tool-item:active { border-color: var(--brand); }

/* ===== 今日状态摘要 ===== */
.ab-pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; margin-bottom: 10px; }
.ab-pill.good { background: rgba(34,197,94,0.14); color: var(--green); }
.ab-pill.bad { background: rgba(239,68,68,0.14); color: #f87171; }
html[data-theme="light"] .ab-pill.good { color: #15803d; }
html[data-theme="light"] .ab-pill.bad { color: #b91c1c; }
.ab-sum-line { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.ab-sum-line b { color: var(--text-strong); }

/* ===== 日历标记 ===== */
.ab-mark-good { background: var(--green); font-weight: 700; }
.ab-mark-bad { background: var(--red); font-weight: 700; }
html[data-theme="light"] .ab-mark-good,
html[data-theme="light"] .ab-mark-bad { color: #ffffff; }
.ab-month-stat { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ===== 顶部三格统计 ===== */
.ab-stat-row { display: flex; gap: 10px; }
.ab-stat {
  flex: 1; background: var(--card); border: 1px solid rgba(255,255,255,0.055); border-radius: 14px;
  padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
html[data-theme="light"] .ab-stat { background: #ffffff; border-color: rgba(15,23,42,0.08); }
.ab-stat-num { font-size: 24px; font-weight: 800; color: var(--brand); }
.ab-stat-label { font-size: 11px; color: var(--muted); text-align: center; }

/* ===== 打卡里的一句话输入 ===== */
.ab-note {
  width: 100%; display: block; font-family: inherit; font-size: 14px; line-height: 1.6;
  color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 12px 14px; min-height: 76px; resize: vertical;
}
.ab-note:focus { border-color: var(--brand); outline: none; }
html[data-theme="light"] .ab-note { background: rgba(15,23,42,0.04); border-color: rgba(15,23,42,0.12); color: #1f2937; }

/* ===== 首页三个模块：我的状态 / 我的目标 / 这周小结 ===== */
.ab-card-title { font-size: 17px; font-weight: 700; color: var(--text-strong); letter-spacing: .2px; margin-bottom: 12px; }
.ab-streak-num.idle { color: var(--muted); }
.ab-today {
  margin-top: 16px; padding-top: 14px; text-align: left;
  border-top: 1px solid rgba(255,255,255,0.08);
}
html[data-theme="light"] .ab-today { border-top-color: rgba(15,23,42,0.08); }
.ab-today-key { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; letter-spacing: .3px; }
.ab-goal-line { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; }
.ab-goal-key { flex: 0 0 64px; color: var(--muted); font-size: 13px; }
.ab-goal-val { flex: 1; color: var(--text-strong); font-size: 14px; line-height: 1.55; }
.ab-goal-bar { height: 8px; border-radius: 999px; overflow: hidden; margin: 14px 0 8px; background: rgba(255,255,255,0.08); }
html[data-theme="light"] .ab-goal-bar { background: rgba(15,23,42,0.07); }
.ab-goal-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #a78bfa, #6d28d9); transition: width .3s; }
.ab-goal-pct { font-size: 12px; color: var(--muted); }
.goal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
