:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #352c3e;
  background: #faf6f8;
  --muted: #7c7183;
  --accent: #7a3f7d;
  --border: #eadfe9;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 90% 0, #f0e5f4 0, transparent 55%); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid #b684b6; outline-offset: 5px; }
button { font: inherit; cursor: pointer; }
.page { width: min(1040px, 100%); margin: auto; padding: 0 28px; }
.topbar { min-height: 96px; display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--border); }
.brand { font-size: 19px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.brand span { margin-right: 5px; color: #b56c9c; font-size: 27px; vertical-align: middle; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 26px; margin-left: auto; font-size: 14px; }
.topbar nav a { color: var(--muted); }
.topbar nav [aria-current] { color: var(--accent); font-weight: 700; }
.topbar form { margin: 0; }
.quiet-button { border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; color: var(--muted); background: #ffffffa6; }
.welcome { min-height: 300px; display: flex; align-items: center; justify-content: space-between; padding: 44px 0 40px; gap: 28px; }
.welcome-copy { min-width: 0; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: 1.4px; margin: 0 0 12px; }
h1 { font-size: clamp(26px, 4.5vw, 38px); line-height: 1.5; font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.intro { color: var(--muted); line-height: 1.9; margin: 12px 0 24px; font-size: 14px; }
.primary-button, .secondary-button { display: inline-flex; gap: 22px; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 12px; font-size: 14px; }
.primary-button { background: var(--accent); color: white; box-shadow: 0 6px 16px #7a3f7d20; }
.welcome-flower { flex-shrink: 0; width: 190px; height: 190px; display: grid; place-items: center; border-radius: 50%; color: #c995b5; font-size: 146px; background: radial-gradient(circle, #f2dfec, #f6edf700 72%); transform: rotate(-15deg); user-select: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { background: #ffffffc9; border: 1px solid var(--border); border-radius: 18px; padding: 23px; }
.stat-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.stat-card strong { display: block; font-size: 36px; font-weight: 600; color: var(--accent); }
.stat-card span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.panel { border: 1px solid var(--border); border-radius: 20px; background: #ffffffdf; padding: 28px; }
.section-heading, .entry-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-heading { margin-bottom: 8px; }
.section-heading a { font-size: 13px; flex-shrink: 0; }
h2 { font-size: 20px; margin: 0; font-weight: 600; }
.section-heading .eyebrow { margin-bottom: 8px; font-size: 10px; }
.recent-entry { padding: 22px 0; border-bottom: 1px solid #f0e9ef; overflow-wrap: anywhere; }
.recent-entry:last-child { padding-bottom: 0; border-bottom: 0; }
.entry-heading h3 { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 600; }
.entry-heading time { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.recent-entry > p { color: var(--muted); margin: 8px 0 0; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.empty-state { padding: 36px 12px; text-align: center; }
.empty-state > span { font-size: 36px; color: #b687ac; }
.empty-state h3 { font-size: 17px; font-weight: 500; }
.empty-state p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.empty-state a { display: inline-block; margin-top: 8px; font-size: 14px; }
.shortcut { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.shortcut h2 { font-size: 17px; }
.shortcut p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 0; }
.secondary-button { border: 1px solid var(--border); flex-shrink: 0; }
footer { padding: 30px 0; text-align: center; color: #a398a7; font-size: 12px; }
.task-preview { margin-top: 22px; }
.task-preview-summary { color: var(--muted); font-size: 13px; line-height: 1.8; }
.task-preview-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-top: 1px solid var(--border); }
.task-preview-row a { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.task-preview-row span { flex-shrink: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .page { padding: 0 18px; }
  .topbar { min-height: 84px; flex-wrap: wrap; gap: 16px; padding: 18px 0; }
  .topbar nav { order: 3; width: 100%; margin: 0; gap: 24px; }
  .topbar form { margin-left: auto; }
  .welcome { min-height: 260px; padding: 32px 0; }
  .welcome-flower { display: none; }
  .stats { gap: 9px; }
  .stat-card { padding: 18px 12px; border-radius: 14px; }
  .stat-card strong { font-size: 29px; }
  .stat-card span { line-height: 1.6; }
  .panel { padding: 22px 18px; }
  .entry-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .shortcut { flex-direction: column; align-items: flex-start; gap: 18px; }
}
