:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #98a2b3;
  --line: #e4e7ec;
  --primary: #2563eb;
  --primary-soft: #e8efff;
  --good: #12b76a;
  --good-soft: #e6f7ee;
  --doing: #2563eb;
  --doing-soft: #e8efff;
  --blocked: #f04438;
  --blocked-soft: #feeceb;
  --planned: #7c3aed;
  --planned-soft: #f2ecfe;
  --warn: #b54708;
  --warn-soft: #fef3e2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body { padding-bottom: env(safe-area-inset-bottom); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }

.app-loading, .center-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-2);
}

/* ---------- 登录 / 初始化 ---------- */
.auth-wrap { width: 100%; max-width: 420px; padding: 24px; }
.auth-logo {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: grid; place-items: center; color: #fff; font-size: 26px;
  box-shadow: var(--shadow);
}
.auth-card {
  background: var(--card); border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.auth-card h1 { margin: 0; font-size: 21px; }
.auth-card p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.7; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
input[type='text'], input[type='password'], input[type='date'], input[type='month'], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }

.btn {
  border: 1px solid transparent; border-radius: 10px; padding: 11px 16px;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: filter 0.15s, background 0.15s;
}
.btn:active { filter: brightness(0.94); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.soft { background: var(--primary-soft); color: var(--primary); }
.btn.danger { background: var(--blocked-soft); color: var(--blocked); }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }

.hint { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.alert { padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.alert.error { background: var(--blocked-soft); color: var(--blocked); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.ok { background: var(--good-soft); color: #05603a; }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: calc(env(safe-area-inset-top) + 10px) 14px 10px;
  display: flex; align-items: center; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #2563eb, #7c3aed); display: grid; place-items: center; color: #fff; font-size: 14px; }
.spacer { flex: 1; }

.tabs {
  display: flex; gap: 4px; background: var(--line); padding: 4px; border-radius: 12px;
  overflow-x: auto; max-width: min(72vw, 640px); scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 13.5px;
  padding: 7px 12px; border-radius: 9px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.tabs button .ic { font-size: 14px; }
.tabs button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.filter-row .spacer { flex: 1; }

main { max-width: 1080px; margin: 0 auto; padding: 14px 14px 90px; }

/* ---------- 日历 ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.cal-title { font-size: 19px; font-weight: 700; min-width: 128px; }
.cal-title small { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; font-size: 15px; color: var(--ink-2);
}
.icon-btn:active { background: var(--bg); }

.cal-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.cal-weekdays div { padding: 8px 4px; text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cal-weekdays div.weekend { color: #d92d20; opacity: 0.75; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell {
  position: relative; min-height: 104px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 5px 5px 6px; display: flex; flex-direction: column; gap: 3px; background: #fff;
  transition: background 0.12s;
}
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell:hover { background: #fbfcfe; }
.cal-cell.other { background: #fafbfc; }
.cal-cell.other .cal-date { color: var(--ink-3); opacity: 0.6; }
.cal-cell.weekend { background: #fdfcfd; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--primary); }
.cal-cell.selected { background: var(--primary-soft); }

.cal-cell-head { display: flex; align-items: center; gap: 4px; }
.cal-date { font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.1; }
.cal-cell.today .cal-date { color: var(--primary); }
.cal-count { margin-left: auto; font-size: 10.5px; color: var(--ink-3); }
.lunar { font-size: 10px; color: var(--ink-3); }

.entry-chip {
  display: flex; align-items: center; gap: 4px; width: 100%; text-align: left;
  border: 0; border-radius: 7px; padding: 3px 5px; background: var(--doing-soft); color: #14306b;
  font-size: 11.5px; line-height: 1.35; overflow: hidden;
}
.entry-chip .bar { width: 3px; align-self: stretch; border-radius: 2px; background: currentColor; opacity: 0.65; }
.entry-chip .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-chip .proj { flex: 0 0 auto; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.8; font-weight: 600; }
.entry-chip:active { filter: brightness(0.96); }

.more-btn {
  border: 0; background: transparent; color: var(--primary); font-size: 11px; font-weight: 600;
  text-align: left; padding: 1px 4px;
}
.cell-add {
  margin-top: auto; border: 1px dashed var(--line); background: transparent; color: var(--ink-3);
  border-radius: 6px; font-size: 11px; padding: 2px 0; opacity: 0; transition: opacity 0.12s;
}
.cal-cell:hover .cell-add { opacity: 1; }

.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* 状态色 */
.st-done { background: #e6f7ee; color: #05603a; }
.st-doing { background: #eef2f6; color: #344054; }
.st-blocked { background: #feeceb; color: #912018; }
.st-planned { background: #f2f4f7; color: #344054; }
.st-unknown { background: #f2f4f7; color: #344054; }

/* ---------- 备忘录（整条红色） ---------- */
.memo-banner {
  display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600;
  background: rgba(240, 68, 56, 0.13); color: #912018; border-left: 3px solid var(--blocked);
  border-radius: 6px; padding: 2px 6px; overflow: hidden; white-space: nowrap;
}
.memo-banner em { font-style: normal; opacity: 0.75; font-size: 10px; }
.memo-banner > * { overflow: hidden; text-overflow: ellipsis; }
.span-tag { font-style: normal; opacity: 0.7; font-size: 10px; margin-left: 3px; }
.btn.memo { background: var(--blocked); color: #fff; }
.btn.memo.sm { background: var(--blocked); }
.memo-theme .cal-cell.today { box-shadow: inset 0 0 0 2px var(--blocked); }
.memo-row { border: 1px solid rgba(240, 68, 56, 0.35); background: rgba(240, 68, 56, 0.05); }
.memo-row .field > label { color: #912018; }

/* ---------- 弹层 ---------- */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, 0.42); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center; animation: fade 0.15s ease;
}
@media (min-width: 640px) { .sheet-mask { align-items: center; } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes rise { from { transform: translateY(18px); opacity: 0.4 } to { transform: none; opacity: 1 } }

.sheet {
  background: var(--card); width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto;
  border-radius: 18px 18px 0 0; padding: 16px 16px calc(env(safe-area-inset-bottom) + 18px);
  animation: rise 0.18s ease; box-shadow: 0 -8px 40px rgba(16, 24, 40, 0.18);
}
@media (min-width: 640px) { .sheet { border-radius: 18px; padding-bottom: 18px; } }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; position: sticky; top: -16px; background: var(--card); padding: 4px 0 10px; }
.sheet-head h2 { margin: 0; font-size: 17px; }
.sheet-head .sub { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.sheet-body { display: flex; flex-direction: column; gap: 12px; }
.sheet-foot { display: flex; gap: 8px; margin-top: 14px; }
.sheet-foot .btn { flex: 1; }

.entry-row {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px;
  background: #fcfdff;
}
.entry-row .row-top { display: flex; gap: 8px; align-items: center; }
.entry-row .row-top .field { flex: 1; }
.entry-row textarea { min-height: 68px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.chip-select { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-select button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink-2);
}
.chip-select button.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 28px 10px; }

/* ---------- 统计 / 总结 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.card + .card { margin-top: 12px; }
.card h3 { margin: 0 0 10px; font-size: 15px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.stat {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.stat b { display: block; font-size: 21px; line-height: 1.2; }
.stat span { font-size: 12px; color: var(--ink-3); }

.bar-row { display: grid; grid-template-columns: 92px 1fr 42px; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bar-track { background: var(--line); border-radius: 999px; height: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #7c3aed); }
.bar-row .num { text-align: right; color: var(--ink-3); }

.range-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.range-row .field { flex: 1 1 130px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.presets button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink-2);
}
.presets button.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.md { font-size: 14px; line-height: 1.85; color: var(--ink); overflow-wrap: anywhere; }
.md h1, .md h2 { font-size: 16px; margin: 18px 0 8px; padding-left: 9px; border-left: 3px solid var(--primary); }
.md h3 { font-size: 14.5px; margin: 14px 0 6px; color: #14306b; }
.md p { margin: 8px 0; }
.md ul, .md ol { margin: 8px 0; padding-left: 22px; }
.md li { margin: 4px 0; }
.md table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; }
.md th { background: #f8fafc; }
.md code { background: #f2f4f7; padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
.md blockquote { margin: 10px 0; padding: 8px 12px; background: #f8fafc; border-left: 3px solid var(--line); color: var(--ink-2); font-size: 13px; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.toast-host { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 72px); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 90; pointer-events: none; }
.toast { background: rgba(16, 24, 40, 0.92); color: #fff; padding: 9px 15px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow); animation: rise 0.18s ease; max-width: 88vw; }

.spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

.section-title { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 18px 2px 8px; }

/* ---------- 手机端适配 ---------- */
@media (max-width: 700px) {
  body { font-size: 14px; }
  .topbar { padding-bottom: 8px; }
  .brand span.name { display: none; }
  main { padding: 10px 8px 84px; }
  .cal-cell { min-height: 78px; padding: 4px 3px; gap: 2px; }
  .entry-chip { font-size: 10.5px; padding: 2px 3px; border-radius: 5px; }
  .entry-chip .proj { display: none; }
  .cal-count { display: none; }
  .cal-date { font-size: 11px; }
  .cell-add { display: none; }
  .cal-title { font-size: 16px; min-width: 104px; }
  .md { font-size: 13.5px; }
  .stat b { font-size: 18px; }
  .bar-row { grid-template-columns: 72px 1fr 34px; }
  .tabs { max-width: 62vw; }
  .tabs button { font-size: 12.5px; padding: 6px 9px; }
  .tabs button .ic { display: none; }
  .chat-scroll { max-height: 58vh; }
  .chat-input textarea { min-height: 52px; }
  .tl-text { font-size: 13.5px; }
  .p-toolbar { gap: 8px; }
  .toast-host { bottom: calc(env(safe-area-inset-bottom) + 18px); }
}


/* ---------- 流水情况 ---------- */
.tl-wrap { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.tl-day { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; }
.tl-date { display: flex; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.tl-date b { font-size: 14.5px; }
.tl-date span { font-size: 12px; color: var(--ink-3); }
.tl-item { position: relative; border-left: 3px solid var(--line); padding: 4px 0 10px 10px; margin-left: 4px; background: var(--card); }
.tl-item + .tl-item { margin-top: 2px; }
.tl-item::before { content: ''; position: absolute; left: -6.5px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--ink-3)); }
.tl-meta { font-size: 12px; font-weight: 600; }
.tl-text { font-size: 14px; line-height: 1.75; white-space: pre-wrap; margin-top: 3px; }
.tl-acts { display: flex; gap: 6px; margin-top: 6px; }

/* ---------- AI 伙伴对话 ---------- */
.chat-card { display: flex; flex-direction: column; gap: 10px; }
.chat-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-scroll {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
}
.chat-row { display: flex; }
.chat-row.mine { justify-content: flex-end; }
.chat-row.ai { justify-content: flex-start; }
.chat-bubble {
  max-width: 88%; border-radius: 14px; padding: 9px 12px; font-size: 14px; line-height: 1.75;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.chat-row.mine .chat-bubble { background: var(--primary); border-color: var(--primary); color: #fff; }
.chat-row.mine .chat-bubble a { color: #fff; }
.chat-bubble.typing { color: var(--ink-3); }
.chat-bubble .md > *:first-child { margin-top: 0; }
.chat-bubble .md > *:last-child { margin-bottom: 0; }
.chat-bubble .md h2 { border-left-color: currentColor; font-size: 15px; }
.chat-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { min-height: 64px; }
.chat-input input[type='text'] { flex: 1; }
.chat-input .btn { flex: 0 0 auto; }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #f2f4f7; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; font-size: 12.5px; color: var(--ink-2);
}
.file-chip button { border: 0; background: transparent; color: var(--blocked); font-size: 12px; padding: 0 2px; }

/* ---------- AI 记忆 ---------- */
.mem-list { display: flex; flex-direction: column; gap: 8px; }
.mem-item {
  display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; font-size: 13.5px;
}
.mem-item span { flex: 1; }
.mem-item em { font-style: normal; font-size: 11px; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }

/* ---------- 状态设置行 ---------- */
.status-row { display: grid; grid-template-columns: 1fr 46px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.status-row input[type='color'] { width: 46px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }

/* ---------- 打印 ---------- */
.p-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.print-stage { margin-top: 12px; overflow: auto; background: #e9edf5; border-radius: var(--radius); padding: 16px; }
.print-page {
  background: #fff; margin: 0 auto; padding: 40px 42px; box-shadow: 0 4px 24px rgba(16, 24, 40, 0.16);
  color: #000; font-size: 11.5px;
}
.p-title { font-size: 19px; margin: 0 0 4px; font-weight: 700; }
.p-sub { font-size: 11px; color: #667085; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1.5px solid #344054; }
.p-table { width: 100%; border-collapse: collapse; }
.p-table th, .p-table td { border: 0.6px solid #98a2b3; padding: 5px 7px; vertical-align: top; word-break: break-word; line-height: 1.6; }
.p-table thead th { background: #eef2f6; font-weight: 700; text-align: left; }
.p-table .p-date-row td { background: #e8efff; font-weight: 700; }
.p-table .p-no { width: 6%; text-align: center; color: #475467; }
.p-table .p-proj { width: 17%; }
.p-table .p-st { width: 11%; }
.p-table .p-tags { color: #667085; font-size: 10.5px; margin-top: 3px; }
.p-table tr.p-memo td { color: #b42318; background: #fff6f5; }
.p-table tr { break-inside: avoid; page-break-inside: avoid; }
.p-table thead { display: table-header-group; }
.p-table .p-date-row { break-after: avoid; page-break-after: avoid; }

/* ---------- 打印时的真实输出 ---------- */
#print-style-host { display: none; }

@media print {
  html, body { background: #fff !important; }
  body.printing .topbar,
  body.printing .toast-host,
  body.printing .sheet-mask { display: none !important; }
  body.printing main { padding: 0 !important; max-width: none !important; margin: 0 !important; }
  body.printing .screen-only > *:not(.print-stage) { display: none !important; }
  body.printing .print-stage { background: #fff !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; overflow: visible !important; }
  body.printing .print-page {
    transform: none !important; margin: 0 !important; box-shadow: none !important;
    width: auto !important; min-height: 0 !important; padding: 0 !important;
  }
  body.printing .p-table thead th { background: #eef2f6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing .p-table tr.p-memo td { background: #fff6f5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing .p-table .p-date-row td { background: #e8efff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing .p-title { font-size: 15pt; }
  body.printing .p-table { font-size: 9.5pt; }
}


/* ---------- 重要清单 / 待办清单 ---------- */
.list-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-top: 12px; }
.list-card h3 { margin: 0 0 10px; font-size: 15px; }
.imp-group { margin-bottom: 12px; }
.imp-day { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.imp-day span { font-weight: 500; color: var(--ink-3); }
.todo-line { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: 9px; background: rgba(240, 68, 56, 0.05); margin-bottom: 6px; }
.todo-line:hover { background: rgba(240, 68, 56, 0.09); }
.todo-check {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--blocked);
  background: #fff; color: var(--blocked); font-size: 12px; line-height: 1; display: grid; place-items: center; margin-top: 1px;
}
.todo-check:active { background: var(--blocked-soft); }
.todo-text { flex: 1; font-size: 14px; line-height: 1.6; word-break: break-word; }
.todo-proj { font-style: normal; font-size: 11.5px; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; margin-top: 2px; }
.todo-line.done .todo-text { color: var(--ink-3); text-decoration: line-through; }
.todo-line.done { background: rgba(18, 183, 106, 0.07); }
.todo-line.done .todo-check { border-color: var(--good); background: var(--good); color: #fff; }

.star-btn {
  border: 0; background: transparent; color: var(--ink-3); font-size: 16px; line-height: 1;
  padding: 3px 6px; border-radius: 8px;
}
.star-btn.on { color: #f79009; }
.star-btn:active { background: var(--line); }

/* ---------- 添加类型选择卡片 ---------- */
.choose-card {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.choose-card:hover { border-color: var(--primary); background: #fbfcff; }
.choose-card .cc-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 4px; margin-top: 4px; }
.choose-card b { display: block; font-size: 15px; margin-bottom: 3px; }
.choose-card em { font-style: normal; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
