:root {
  --ink: #171714;
  --muted: #68665f;
  --paper: #f2eedf;
  --panel: #f9f6ea;
  --line: #171714;
  --green: #144b38;
  --green-soft: #d7e3d6;
  --work: #e14b34;
  --life: #218260;
  --study: #e0a21d;
  --parenting: #5367b7;
  --shadow: none;
  --fs-1: 12px;
  --fs-2: 14px;
  --fs-3: 16px;
  --fs-4: 18px;
  --fs-5: 22px;
  --fs-6: 26px;
  --fs-7: 32px;
  --fs-8: 40px;
  --fs-9: 52px;
  --fs-10: 68px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23,23,20,.055) .6px, transparent .6px);
  background-size: 6px 6px;
  font-family: "Noto Sans SC", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 252px;
  padding: 28px 18px 22px;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 38px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.7); }
.brand-mark {
  width: 52px; height: 52px; border: 1px solid #fff;
  display: grid; place-items: center; border-radius: 14px;
  font-family: "DM Serif Display", serif; font-size: var(--fs-7);
}
.brand strong { display: block; letter-spacing: .08em; font-size: var(--fs-5); }
.brand span { display: block; margin-top: 3px; color: rgba(255,255,255,.55); font-size: var(--fs-1); letter-spacing: .08em; }
.nav-list { display: grid; gap: 8px; }
.nav-item, .filter-item {
  border: 0; color: rgba(255,255,255,.68); background: transparent;
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
}
.nav-item { padding: 13px 10px; border-radius: 10px; border-bottom: 1px solid rgba(255,255,255,.22); font-size: var(--fs-3); font-weight: 700; }
.nav-item.active { color: var(--ink); background: #fff; }
.nav-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 8px; font-size: var(--fs-1); }
.sidebar-section { margin-top: 36px; }
.section-label { color: rgba(255,255,255,.35); font-size: var(--fs-1); letter-spacing: .14em; margin: 0 0 12px 12px; }
.filter-item { padding: 9px 10px; font-size: var(--fs-2); border-bottom: 1px solid rgba(255,255,255,.1); }
.filter-item.active { color: #fff; }
.filter-item b { margin-left: auto; font-size: var(--fs-1); font-weight: 500; color: rgba(255,255,255,.4); }
.filter-dot { width: 7px; height: 7px; border-radius: 50%; }
.filter-dot.all { background: #fff; }.filter-dot.work { background: var(--work); }.filter-dot.life { background: #70b99e; }.filter-dot.study { background: #e0b95f; }.filter-dot.parenting { background: var(--parenting); }
.sidebar-quote { margin-top: auto; padding: 16px 4px; border-top: 1px solid rgba(255,255,255,.7); border-radius: 0; background: none; }
.sidebar-quote span { color: rgba(255,255,255,.4); font-size: var(--fs-1); letter-spacing: .1em; }
.sidebar-quote p { font-family: "DM Serif Display", "Noto Sans SC", serif; margin: 10px 0 0; font-size: var(--fs-4); line-height: 1.55; color: #fff; }

.main-content { margin-left: 252px; width: calc(100% - 252px); padding: 30px 36px 60px; max-width: 1700px; }
.view { display: none; }.view.active { display: block; }
.topbar { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.eyebrow { color: var(--muted); font-size: var(--fs-1); font-weight: 700; letter-spacing: .28em; margin: 0 0 5px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: "DM Serif Display", "Noto Sans SC", serif; font-weight: 400; font-size: var(--fs-10); line-height: .9; letter-spacing: -.04em; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.ghost-button, .icon-button, .primary-button, .report-nav button {
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); padding: 10px 14px; font-size: var(--fs-2); font-weight: 700;
}
.icon-button { width: 36px; padding: 9px 0; }
.primary-button { border-color: var(--ink); background: var(--ink); color: #fff; padding-inline: 20px; }

.module-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 10px; }
.module-heading span { display: block; margin-bottom: 2px; color: var(--muted); font-size: var(--fs-1); font-weight: 700; letter-spacing: .18em; }
.module-heading h2 { margin: 0; font-family: "DM Serif Display", "Noto Sans SC"; font-size: var(--fs-7); line-height: 1; font-weight: 400; }

.overview-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 0; margin-bottom: 20px; border: 1px solid var(--ink); border-radius: 16px; overflow: hidden; }
.overview-card {
  background: var(--panel); border: 0; border-right: 1px solid var(--ink); border-radius: 0; padding: 17px 18px; min-height: 128px;
  display: flex; flex-direction: column; justify-content: center; box-shadow: none;
}
.overview-card:last-child { border-right: 0; }
.overview-card span { font-size: var(--fs-2); color: var(--ink); font-weight: 700; letter-spacing: .08em; }
.overview-card strong { font-family: "DM Serif Display", serif; font-size: var(--fs-9); line-height: .9; font-weight: 400; margin: 12px 0 4px; }
.overview-card strong em { font-style: normal; font-size: var(--fs-7); }
.overview-card small { font-size: var(--fs-1); color: #8c8a82; }
.focus-card { background: var(--study); flex-direction: row; align-items: center; justify-content: space-between; }
.progress-ring {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--green) 0deg, rgba(36,76,60,.12) 0);
  position: relative;
}
.progress-ring::after { content:""; position: absolute; width: 48px; height: 48px; border-radius: 50%; background: var(--study); }
.progress-ring span { position: relative; z-index: 1; font-size: var(--fs-1); color: var(--green); }

.short-plan-section { margin-bottom: 20px; }
.short-plan-heading { align-items: end; }
.short-plan-heading-actions { display: flex; align-items: center; gap: 10px; }
.short-plan-heading-actions > span { color: var(--muted); font-size: var(--fs-1); }
.short-plan-add-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; font-size: var(--fs-4); }
.short-plan-module { border: 1px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--panel); }
.short-plan-list { display: grid; }
.short-plan-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(23,23,20,.35); }
.short-plan-item:last-child { border-bottom: 0; }
.short-plan-item.completed { opacity: .55; }
.short-plan-item.completed strong { text-decoration: line-through; }
.short-plan-check { width: 22px; height: 22px; padding: 0; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 6px; background: #fff; color: #fff; font-size: var(--fs-1); }
.short-plan-item.completed .short-plan-check { background: var(--green); border-color: var(--green); }
.short-plan-copy { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.short-plan-copy strong { font-size: var(--fs-3); }
.short-plan-copy span { color: var(--muted); font-size: var(--fs-1); }
.short-plan-actions { display: flex; gap: 4px; }
.short-plan-actions button { border: 0; background: transparent; color: var(--muted); padding: 3px 5px; font-size: var(--fs-1); }
.short-plan-actions button:hover { color: var(--ink); }
.short-plan-empty { padding: 28px; color: var(--muted); text-align: center; font-size: var(--fs-2); }
.plan-preview-item { grid-template-columns: 28px 1fr auto; }
.plan-preview-item b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: #fff; }
.plan-schedule-field { margin: 8px 0 16px; padding: 12px; border: 1px solid var(--ink); border-radius: 12px; }
.plan-schedule-heading, .plan-calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-schedule-heading > span { color: var(--muted); font-size: var(--fs-1); }
.plan-selection-modes { display: flex; gap: 3px; padding: 3px; border-radius: 9px; background: #ded9ca; }
.plan-selection-modes button { border: 0; border-radius: 7px; padding: 5px 8px; background: transparent; color: var(--muted); font-size: var(--fs-1); }
.plan-selection-modes button.active { background: var(--ink); color: #fff; }
.plan-calendar-toolbar { margin: 12px 0 8px; }
.plan-calendar-toolbar button { width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 8px; background: var(--panel); }
.plan-calendar-toolbar b { font-size: var(--fs-2); }
.plan-calendar-weekdays, .plan-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.plan-calendar-weekdays span { text-align: center; color: var(--muted); font-size: var(--fs-1); }
.plan-calendar-grid { margin-top: 5px; }
.plan-calendar-grid button { aspect-ratio: 1; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); font-size: var(--fs-1); }
.plan-calendar-grid button.other { color: #b6b3aa; }
.plan-calendar-grid button:hover { border-color: var(--ink); }
.plan-calendar-grid button.selected { background: var(--green); color: #fff; }
.plan-calendar-grid button.range-start { box-shadow: inset 0 0 0 2px var(--study); }
.plan-selected-summary { display: block; max-height: 48px; overflow: auto; margin-top: 9px; color: var(--muted); font-size: var(--fs-1); line-height: 1.5; }
.daily-summary-section { margin-top: 20px; padding: 18px; border: 1px solid var(--ink); border-radius: 16px; background: var(--panel); }
.daily-summary-section .module-heading > span { color: var(--muted); font-size: var(--fs-1); }
.daily-summary-section textarea { width: 100%; resize: vertical; border: 1px solid var(--ink); border-radius: 12px; padding: 14px; background: #fbfaf6; color: var(--ink); line-height: 1.7; }
.daily-summary-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.daily-summary-footer span { color: var(--muted); font-size: var(--fs-1); }

.calendar-layout { display: grid; grid-template-columns: 1fr; gap: 18px; }
.calendar-panel, .day-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: none; overflow: hidden; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.calendar-toolbar span { display: block; margin-bottom: 3px; color: var(--muted); font-size: var(--fs-1); font-weight: 700; letter-spacing: .18em; }
.calendar-toolbar h2 { margin: 0; font-family: "DM Serif Display", "Noto Sans SC"; font-size: var(--fs-7); line-height: 1; font-weight: 400; }
.calendar-month-actions { display: flex; gap: 7px; }
.calendar-month-actions button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font-size: var(--fs-3); font-weight: 700; }
.calendar-month-actions button:hover { background: var(--ink); color: #fff; }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.weekday-row { border-bottom: 1px solid var(--line); padding: 13px 0; background: var(--ink); color: #fff; }
.weekday-row span { text-align: center; font-size: var(--fs-1); color: #fff; font-weight: 700; letter-spacing: .08em; }
.calendar-day {
  min-height: 112px; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: transparent; color: inherit; text-align: left; position: relative;
}
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.other { color: #c2c6c3; background: #fbfaf6; }
.calendar-day.selected { background: #f3d950; box-shadow: inset 0 0 0 1px var(--ink); }
.calendar-day.today .day-number { background: var(--ink); color: #fff; }
.calendar-day.review-day::after { content: "周复盘"; position: absolute; top: 10px; right: 7px; color: #84958b; font-size: var(--fs-1); letter-spacing: .04em; }
.day-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-family: "DM Serif Display"; font-size: var(--fs-5); }
.day-tasks { display: grid; gap: 3px; margin-top: 6px; }
.day-task { display: flex; align-items: center; gap: 4px; font-size: var(--fs-1); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #68736e; }
.day-task::before { content:""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--task-color); }
.day-task.done { text-decoration: line-through; opacity: .55; }
.more-tasks { font-size: var(--fs-1); color: #767b78; margin-left: 9px; }

.day-panel { padding: 20px 18px; margin-bottom: 20px; background: #e8e3d3; }
.day-panel-heading { display: flex; justify-content: space-between; align-items: start; padding-bottom: 17px; border-bottom: 2px solid var(--line); }
.day-panel-heading p { margin: 0 0 3px; font-size: var(--fs-1); color: var(--muted); }
.day-panel-heading h2 { margin: 0; display: flex; align-items: baseline; gap: 6px; font-family: "DM Serif Display", serif; font-size: var(--fs-10); line-height: .85; font-weight: 400; }
.day-panel-heading .task-panel-title { font-family: "DM Serif Display", "Noto Sans SC"; font-size: var(--fs-7); line-height: 1; }
.day-panel-heading h2 small { font-family: "Noto Sans SC"; font-size: var(--fs-1); font-weight: 500; color: var(--muted); }
.mini-add { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--ink); border-radius: 10px; color: #fff; }
.task-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-height: none; overflow: visible; padding-top: 14px; }
.task-category-group { border-top: 5px solid var(--task-color); border-radius: 10px; background: rgba(255,255,255,.28); overflow: hidden; }
.task-category-heading { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-bottom: 1px solid var(--ink); }
.task-category-heading span { display: flex; align-items: center; gap: 7px; font-size: var(--fs-3); font-weight: 700; }
.task-category-heading i { width: 7px; height: 7px; border-radius: 50%; background: var(--task-color); }
.task-category-heading b { color: var(--muted); font-size: var(--fs-1); }
.task-category-items { display: grid; }
.task-category-empty { padding: 16px 10px; color: var(--muted); font-size: var(--fs-1); text-align: center; }
.task-item { padding: 10px; border-radius: 0; background: transparent; border: 0; border-bottom: 1px solid rgba(23,23,20,.25); }
.task-item:last-child { border-bottom: 0; }
.task-item.done { opacity: .55; }
.task-item.done .task-name { text-decoration: line-through; }
.task-top { display: flex; gap: 7px; align-items: center; }
.task-name { min-width: 0; flex: 1; font-size: var(--fs-3); font-weight: 700; line-height: 1.35; }
.task-status { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: #737b76; padding: 1px 0; font-size: var(--fs-1); }
.task-status i { width: 14px; height: 14px; display: grid; place-items: center; border: 1px solid #c7cfca; border-radius: 3px; background: #fff; color: #fff; font-size: var(--fs-1); font-style: normal; }
.task-status.done { color: var(--green); }.task-status.done i { border-color: var(--green); background: var(--green); }
.task-status.compact span { display: none; }.task-status.compact i { width: 15px; height: 15px; }
.task-meta { margin: 4px 0 0; display: flex; gap: 7px; color: #747a76; font-size: var(--fs-1); }
.task-actions, .today-task-actions { display: inline-flex; gap: 2px; }
.task-edit, .task-delete { background: none; border: 0; color: #747a76; padding: 1px 3px; font-size: var(--fs-1); }
.task-edit:hover { color: var(--green); }.task-delete:hover { color: var(--work); }
.today-task-actions button { padding: 0 2px; font-size: var(--fs-1); }
.empty-state { padding: 45px 10px; text-align: center; color: #7f8681; font-size: var(--fs-1); line-height: 1.8; }

.report-tabs { display: inline-flex; gap: 4px; background: #ded9ca; padding: 5px; border: 1px solid #c2bdae; border-radius: 14px; margin-bottom: 24px; }
.report-tabs button { position: relative; min-width: 76px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: var(--fs-2); font-weight: 700; padding: 11px 18px 13px; border-radius: 10px; transition: background .18s, color .18s, border-color .18s, box-shadow .18s; }
.report-tabs button:hover { background: rgba(255,255,255,.6); color: var(--ink); border-color: #b8b2a3; }
.report-tabs button:focus-visible { outline: 2px solid var(--parenting); outline-offset: 2px; }
.report-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 3px 8px rgba(23,23,20,.18); }
.report-tabs button.active::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--study); }
.report-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.report-header span { color: var(--muted); font-size: var(--fs-1); }
.report-label-row { display: flex; align-items: center; gap: 8px; }
.report-label-row b { display: none; padding: 3px 7px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: var(--fs-1); font-weight: 600; }
.report-label-row b.visible { display: inline-block; }
.report-header h2 { margin: 3px 0 0; font-family: "DM Serif Display", "Noto Sans SC"; font-size: var(--fs-8); line-height: 1; font-weight: 400; }
.report-nav { display: flex; gap: 4px; }.report-nav button { padding: 7px 12px; }
.report-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 18px; border: 1px solid var(--ink); border-radius: 16px; overflow: hidden; }
.report-stat-grid article { padding: 18px; border-radius: 0; background: var(--panel); border: 0; border-right: 1px solid var(--ink); }
.report-stat-grid article:last-child { border-right: 0; }
.report-stat-grid span { display: block; font-size: var(--fs-1); color: var(--muted); }
.report-stat-grid strong { display: block; margin-top: 8px; font-family: "DM Serif Display"; font-size: var(--fs-9); line-height: .9; font-weight: 400; }
.report-content-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 18px; }
.report-card { min-height: 250px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.card-title { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: var(--fs-4); font-weight: 700; }
.card-title small { color: #747a76; font-size: var(--fs-1); font-weight: 400; }
.donut-wrap { display: flex; align-items: center; justify-content: space-around; height: 180px; }
.donut { width: 126px; height: 126px; border-radius: 50%; display: grid; place-items: center; background: #edf0ed; position: relative; }
.donut::after { content:""; width: 82px; height: 82px; border-radius: 50%; background: var(--panel); position: absolute; }
.donut div { position: relative; z-index: 1; text-align: center; }.donut strong { display: block; font-family: "DM Serif Display"; font-size: var(--fs-6); font-weight: 400; }.donut span { color: var(--muted); font-size: var(--fs-1); }
.legend { display: grid; gap: 12px; min-width: 100px; }
.legend-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 7px; align-items: center; font-size: var(--fs-1); color: var(--muted); }
.legend-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--legend-color); }
.legend-row b { color: var(--ink); font-weight: 600; }
.bar-chart { height: 180px; display: flex; align-items: end; justify-content: space-around; gap: 5px; padding-top: 25px; border-bottom: 1px solid var(--line); }
.bar-column { flex: 1; max-width: 30px; height: 100%; display: flex; align-items: center; flex-direction: column; justify-content: end; gap: 5px; }
.bar-column i { display: block; width: 65%; min-height: 2px; border-radius: 5px 5px 0 0; background: var(--green); opacity: .75; }
.bar-column span { font-size: var(--fs-1); color: #747a76; white-space: nowrap; }
.highlights-list { margin-top: 15px; display: grid; gap: 7px; }
.highlight { display: flex; gap: 9px; padding: 9px; border-radius: 8px; background: #faf9f5; }
.highlight i { width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; background: var(--highlight-color); }
.highlight div { font-size: var(--fs-1); }.highlight small { display: block; margin-top: 2px; color: #747a76; font-size: var(--fs-1); }
.reflection-card { background: var(--ink); color: #fff; }
.reflection-card .card-title small { color: rgba(255,255,255,.45); }
.reflection-card p { margin: 28px 5px 0; font-family: "DM Serif Display", "Noto Sans SC"; font-size: var(--fs-1); line-height: 1.65; color: rgba(255,255,255,.9); }

.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 10; background: rgba(25,34,30,.45); backdrop-filter: blur(4px); place-items: center; }
.modal-backdrop.open { display: grid; }
.task-modal { width: min(520px, calc(100vw - 30px)); background: var(--panel); padding: 28px; border: 1px solid var(--ink); border-radius: 18px; box-shadow: 0 24px 70px rgba(23,23,20,.25); }
.modal-heading { display: flex; justify-content: space-between; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }.modal-heading h2 { font-family: "DM Serif Display", "Noto Sans SC"; font-size: var(--fs-7); font-weight: 400; margin: 0; }
.close-modal { border: 0; background: transparent; color: #747a76; font-size: var(--fs-5); }
.task-modal label { display: grid; gap: 6px; margin-bottom: 13px; color: var(--muted); font-size: var(--fs-1); }
.task-modal input, .task-modal select, .task-modal textarea { width: 100%; border: 1px solid var(--line); background: #fbfaf6; border-radius: 10px; padding: 11px; color: var(--ink); outline: none; }
.task-modal input:focus, .task-modal textarea:focus { border-color: #9db3a7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.submit-task { width: 100%; margin-top: 4px; }
.quick-entry-modal { width: min(720px, calc(100vw - 30px)); max-height: calc(100vh - 32px); overflow: auto; }
.quick-entry-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.quick-entry-actions span { color: var(--muted); font-size: var(--fs-1); line-height: 1.5; }
.quick-entry-preview { display: grid; gap: 8px; margin-bottom: 14px; }
.quick-preview-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-left: 5px solid var(--preview-color); border-radius: 10px; background: rgba(255,255,255,.35); }
.quick-preview-item b { font-size: var(--fs-2); }.quick-preview-item span { color: var(--muted); font-size: var(--fs-1); }
.quick-preview-empty { padding: 18px; border: 1px dashed var(--muted); border-radius: 10px; color: var(--muted); font-size: var(--fs-1); text-align: center; }
.submit-task:disabled { opacity: .4; cursor: not-allowed; }
.cloud-sync-modal { width: min(560px, calc(100vw - 30px)); }
.cloud-sync-note { margin-bottom: 18px; padding: 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: var(--fs-1); line-height: 1.6; }
.sync-auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 16px; padding: 4px; border-radius: 12px; background: #ded9ca; }
.sync-auth-tabs button { border: 0; border-radius: 9px; padding: 9px; background: transparent; color: var(--muted); font-size: var(--fs-2); font-weight: 700; }
.sync-auth-tabs button.active { background: var(--ink); color: #fff; }
.wechat-login-button { display: none; width: 100%; border: 1px solid #07c160; border-radius: 10px; padding: 11px; background: #07c160; color: #fff; font-weight: 700; }
.wechat-qr-panel { display: none; margin-top: 12px; text-align: center; }
.wechat-qr-panel.visible { display: grid; gap: 8px; }
.wechat-qr-panel iframe { width: 100%; height: 420px; border: 1px solid var(--ink); border-radius: 12px; background: #fff; }
.wechat-qr-panel span { color: var(--muted); font-size: var(--fs-1); }
.cloud-auth-actions, .cloud-data-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cloud-data-actions { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ink); }
.local-backup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cloud-data-actions button:disabled { opacity: .4; cursor: not-allowed; }
.cloud-sync-status { margin: 14px 0 0; color: var(--muted); font-size: var(--fs-1); text-align: center; }
.task-modal .sync-auto-label { margin: 14px 0 0; color: var(--green); font-size: var(--fs-1); text-align: center; }

@media (max-width: 1100px) {
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-layout { grid-template-columns: 1fr; }
  .day-panel { min-height: 250px; }
  .task-list { grid-template-columns: repeat(2, 1fr); max-height: none; }
}
@media (max-width: 900px) {
  .sidebar { width: 210px; }
  .main-content { margin-left: 210px; width: calc(100% - 210px); padding-inline: 22px; }
  .topbar { align-items: start; gap: 18px; }
  .topbar-actions { flex-wrap: wrap; justify-content: end; }
  h1 { font-size: var(--fs-9); }
  .calendar-day { min-height: 92px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: 15px; }.app-shell { display: block; }.sidebar-section, .sidebar-quote { display: none; }.brand { margin-bottom: 14px; }.nav-list { grid-template-columns: 1fr 1fr; }
  .main-content { margin: 0; width: 100%; padding: 20px 12px 35px; }.topbar { align-items: start; }.topbar-actions { flex-wrap: wrap; justify-content: end; }.ghost-button { display: none; } h1 { font-size: var(--fs-8); }
  .overview-grid, .report-stat-grid { grid-template-columns: repeat(2, 1fr); }.overview-card { min-height: 90px; }.short-plan-heading-actions { align-items: end; flex-direction: column; }.short-plan-copy { display: grid; gap: 2px; }.calendar-day { min-height: 75px; padding: 5px; }.day-task { display: none; }
  .calendar-day.review-day::after { display: none; }
  .report-content-grid { grid-template-columns: 1fr; }.task-list { grid-template-columns: 1fr; }.report-tabs { width: 100%; justify-content: space-between; }.report-tabs button { padding-inline: 9px; }
  .topbar { display: grid; }.topbar-actions { justify-content: start; }.topbar-actions .ghost-button#open-cloud-sync { display: inline-flex; }
  .calendar-panel { overflow-x: auto; }.weekday-row, .calendar-grid { min-width: 660px; }
  .cloud-auth-actions, .cloud-data-actions { grid-template-columns: 1fr; }
  .local-backup-actions { grid-template-columns: 1fr; }
}
