/* 打卡卡片、小铅笔、积分（首页、数学、语文共用；各页的颜色变量名不一样，这里取得到哪个用哪个） */
.today-card, .pts-chip, .pencil { --tc-bg: var(--surface, var(--card, #fff)); --tc-bg2: var(--surface-2, var(--bg, #FBFAF6)); --tc-ink: var(--text, var(--ink, #18302A));
  --tc-mute: var(--muted, var(--soft, #5E726C)); --tc-line: var(--border, var(--line, #E4E0D6)); --tc-acc: var(--accent, var(--jade, #1D5C4D)); --tc-acc-soft: var(--accent-soft, var(--jade-soft, #E3ECE7)); }
.today-card { display: grid; gap: 12px; padding: 16px; margin-bottom: 14px; background: var(--tc-bg); color: var(--tc-ink); border: 1px solid var(--tc-line); border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04); font-family: inherit; text-align: left; }
.today-card a { text-decoration: none; }
.today-card .tc-top { display: flex; align-items: center; gap: 12px; }
.today-card .sc-flame { position: relative; flex: none; width: 48px; height: 55px; display: grid; place-items: center; }
.today-card .sc-flame svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--tc-line); }
.today-card .sc-flame svg .fl-in { fill: var(--tc-bg); }
.today-card .sc-flame.on svg { fill: #F08A24; }
.today-card .sc-flame.on svg .fl-in { fill: #FFD25E; }
.today-card .sc-flame b { position: relative; top: 8px; font-size: 17px; font-weight: 800; color: var(--tc-ink); }
.today-card .sc-flame.on b { color: #7A3A06; }
.today-card .tc-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.today-card .tc-txt b { font-size: 18px; line-height: 1.3; }
.today-card .tc-txt span { color: var(--tc-mute); font-size: 14px; }
.today-card .sc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.today-card .sc-week span { display: grid; justify-items: center; gap: 4px; }
.today-card .sc-week i { font-style: normal; font-size: 12px; color: var(--tc-mute); line-height: 1.2; }
.today-card .sc-week em { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tc-bg2); border: 2px solid var(--tc-line); color: #fff; font-weight: 800; font-size: 14px; }
.today-card .sc-week .done em { background: #F08A24; border-color: #F08A24; }
.today-card .sc-week .today:not(.done) em { border-color: #F08A24; }
.today-card .sc-week .today i { color: #F08A24; font-weight: 700; }
.tc-items { display: grid; gap: 8px; }
.tc-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--tc-line);
  background: var(--tc-bg); color: var(--tc-ink); font: inherit; text-align: left; cursor: pointer; }
.tc-item span { display: grid; min-width: 0; }
.tc-item b { font-size: 16px; }
.tc-item small { color: var(--tc-mute); font-size: 13px; }
.tc-item em { font-style: normal; font-weight: 800; font-size: 15px; padding: 7px 16px; border-radius: 999px; background: var(--tc-acc); color: #fff; }
.tc-item.done { background: var(--tc-bg2); }
.tc-item.done em { background: #F08A24; padding: 7px 12px; }
.tc-item:disabled { opacity: .6; }
.tc-tag { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--tc-acc-soft); color: var(--tc-acc); }
.tc-tag.s-chinese { background: #F6E7EC; color: #B04A6F; }
.tc-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.tc-foot a { color: var(--tc-acc); }
.today-card.empty { grid-template-columns: 1fr auto; align-items: center; }
.tc-hello { display: flex; align-items: center; gap: 10px; }
.tc-hello .pencil { width: 44px; height: 64px; flex: none; }
.tc-hello b { font-size: 17px; }
.tc-start { padding: 10px 22px; border-radius: 999px; background: var(--tc-acc); color: #fff !important; font-weight: 800; }
.pts-chip { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #FFF4D6; color: #8A5A00; font-weight: 800; font-size: 14px; }
.star { width: 15px; height: 15px; fill: #F5B82E; flex: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tc-tag.s-chinese { background: #3E2630; color: #F29BBB; } :root:not([data-theme="light"]) .pts-chip { background: #3A2F14; color: #F5C85A; } }
:root[data-theme="dark"] .tc-tag.s-chinese { background: #3E2630; color: #F29BBB; }
:root[data-theme="dark"] .pts-chip { background: #3A2F14; color: #F5C85A; }
.tc-add { display: block; text-align: center; padding: 12px; border-radius: 12px; border: 1.5px dashed var(--tc-line); color: var(--tc-acc) !important; font-weight: 700; }
.tc-tag.s-english { background: #DDE9F3; color: #2F6690; }
:root[data-theme="dark"] .tc-tag.s-english { background: #1F3346; color: #8CC0EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tc-tag.s-english { background: #1F3346; color: #8CC0EA; } }
.tc-foot span { display: flex; gap: 16px; }
/* 手机：信息排紧一点 */
@media (max-width: 600px) {
  .today-card { padding: 12px; gap: 10px; border-radius: 14px; margin-bottom: 12px; }
  .today-card .sc-flame { width: 40px; height: 46px; }
  .today-card .sc-flame b { font-size: 15px; top: 7px; }
  .today-card .tc-top { gap: 10px; }
  .today-card .tc-txt b { font-size: 16px; }
  .today-card .tc-txt span { font-size: 13px; }
  .today-card .sc-week { gap: 4px; }
  .today-card .sc-week span { gap: 2px; }
  .today-card .sc-week em { width: 26px; height: 26px; font-size: 12px; }
  .tc-items { gap: 6px; }
  .tc-item { padding: 8px 10px; gap: 8px; }
  .tc-item b { font-size: 15px; }
  .tc-item small { font-size: 12px; }
  .tc-item em { padding: 6px 14px; font-size: 14px; }
  .tc-foot { font-size: 13px; }
}
