:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e6e8eb;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-light: #eff6ff;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --amber: #b45309;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --slate: #475569;
  --slate-light: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.hidden { display: none !important; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff; font-weight: 700; font-size: 20px;
  border-radius: 10px;
}
.brand-text h1 { margin: 0; font-size: 18px; font-weight: 600; }
.brand-text h1 .en { color: var(--muted); font-weight: 400; font-size: 14px; }
.brand-text p { margin: 0; font-size: 12px; color: var(--muted); }
.ghost-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.ghost-btn:hover { background: var(--bg); }

/* Container */
.container {
  max-width: 920px;
  margin: 24px auto;
  padding: 0 20px 60px;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-head h2 { margin: 0; font-size: 15px; font-weight: 600; }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 14px;
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--muted); font-weight: 500; }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-actions { display: flex; gap: 10px; margin-top: 4px; }

/* Simple mode */
.simple-input-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.simple-input-wrap textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  min-height: 44px;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.5;
}
.simple-input-wrap textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.simple-input-wrap .simple-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.simple-input-wrap .simple-btns button {
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
  padding: 8px 18px;
  cursor: pointer;
  border: 1px solid var(--border);
}
.simple-input-wrap .primary-btn {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.simple-input-wrap .primary-btn:hover { background: var(--primary-light); }
.simple-input-wrap .ghost-btn {
  background: var(--surface);
  color: var(--text);
}
.simple-input-wrap .ghost-btn:hover { background: var(--bg); border-color: var(--primary); }

.smart-preview {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--bg);
}
.preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.preview-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.preview-reasoning {
  font-size: 12px;
  color: var(--muted);
  max-width: 100%;
  line-height: 1.4;
}
.preview-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px 16px;
  margin-bottom: 14px;
}
.preview-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.preview-item label {
  color: var(--muted);
  font-size: 12px;
  min-width: 36px;
}
.preview-item .stars { color: var(--amber); letter-spacing: -1px; }
.deadline-label { color: var(--red); font-weight: 500; }
.preview-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.project-chip.candidates {
  border: 1px dashed var(--amber);
}
.primary-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.primary-btn:hover { background: #1d4ed8; }
.primary-btn.disabled,
.primary-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* Match hint */
.match-hint {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 7px;
  margin-top: 2px;
}
.match-hint.auto {
  background: #dcfce7;
  color: #16a34a;
}
.match-hint.candidates {
  background: var(--amber-light);
  color: var(--amber);
}
.match-hint.none {
  background: var(--slate-light);
  color: var(--slate);
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.filters { display: flex; gap: 10px; }
.filters select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  background: var(--surface);
  cursor: pointer;
}
.toolbar-right { display: flex; align-items: center; gap: 14px; }
.count-badge {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}
.switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.switch input { cursor: pointer; }

/* Task list */
.task-section { margin-bottom: 10px; }
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 13px 15px;
  box-shadow: var(--shadow);
}
.task-card.archived { border-left-color: var(--slate); opacity: 0.85; }
.task-card.subtask {
  border-left-color: var(--slate);
  margin-left: 32px;
  padding: 10px 14px;
  background: #fafbff;
  position: relative;
}
.task-card.subtask::before {
  content: "\21B3";
  position: absolute;
  left: -22px;
  top: 16px;
  color: var(--slate);
  font-size: 16px;
}
.task-card.parent-task {
  border-left-color: #534ab7;
  background: linear-gradient(180deg, #fbfaff 0%, var(--surface) 60%);
}
.subtask-badge {
  font-size: 11px;
  background: #534ab7;
  color: white;
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.task-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.status-badge { color: #fff; }
.chip {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--slate-light);
  color: var(--slate);
}
.project-chip {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.project-chip:hover { filter: brightness(0.92); }
.project-chip.unassigned:hover { background: var(--slate-light); }
.project-chip.unassigned {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--border);
}
.task-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.icon-btn:hover { background: var(--bg); color: var(--text); }
.icon-btn.danger:hover { color: var(--red); border-color: var(--red); }
.icon-btn.done {
  color: #16a34a;
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.icon-btn.done:hover { background: #dcfce7; color: #15803d; }
.task-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.task-desc { font-size: 13px; color: var(--muted); margin: 0 0 8px; white-space: pre-wrap; }
.task-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.meta-item { display: flex; align-items: center; gap: 4px; }
.meta-item .stars { color: var(--amber); letter-spacing: -1px; }
.meta-item.deadline { color: var(--red); }
.tag-pill {
  font-size: 11px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 1px 8px;
  border-radius: 999px;
}
.status-select {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px 6px;
  font-size: 12px;
  background: var(--surface);
  cursor: pointer;
}

/* Status colors */
.st-idea { background: var(--slate); }
.st-todo { background: var(--primary); }
.st-doing { background: var(--teal); }
.st-blocked { background: var(--red); }
.st-review { background: var(--amber); }
.st-archived { background: var(--slate); }

/* Empty */
.empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 24px 28px;
  width: 420px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-content h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}
.modal-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.candidate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.candidate-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.candidate-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.candidate-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.candidate-name {
  font-size: 14px;
  font-weight: 500;
}
.candidate-score {
  font-size: 11px;
  color: var(--muted);
  background: var(--slate-light);
  padding: 2px 8px;
  border-radius: 999px;
}
.candidate-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.toast.error { background: var(--red); }

/* Suggestions */
.suggest-list { display: flex; flex-direction: column; gap: 10px; }
.suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
}
.suggest-main { flex: 1; min-width: 0; }
.suggest-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.suggest-reason { font-size: 12px; color: var(--muted); line-height: 1.4; }
.suggest-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.suggest-imp { font-size: 12px; color: var(--muted); }
.suggest-imp .stars { color: var(--amber); letter-spacing: -1px; }

/* Plan modal */
.plan-modal { width: 560px; }
.plan-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.plan-tab {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.plan-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
}
.plan-day-head { margin-bottom: 12px; }
.plan-day-title { font-size: 14px; font-weight: 600; }
.plan-day-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.plan-list { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; }

.plan-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
}
.plan-item-main { flex: 1; min-width: 0; }
.plan-item-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.plan-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.plan-imp { font-size: 12px; color: var(--muted); }
.plan-imp .stars { color: var(--amber); letter-spacing: -1px; }
.plan-tag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--slate-light);
  color: var(--slate);
}
.plan-tag.tag-due { background: var(--amber-light); color: var(--amber); }
.plan-tag.tag-overdue { background: var(--red-light); color: var(--red); }
.plan-item-reason { font-size: 12px; color: var(--muted); line-height: 1.4; }
.plan-item-side { flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.plan-existing { font-size: 12px; color: var(--muted); }

/* -- 计划项操作按钮 -- */
.icon-btn.skip {
  color: #d97706;
  border-color: #fde68a;
  background: #fffbeb;
}
.icon-btn.skip:hover { background: #fef3c7; color: #b45309; }
.icon-btn.split {
  color: #7c3aed;
  border-color: #ddd6fe;
  background: #f5f3ff;
}
.icon-btn.split:hover { background: #ede9fe; color: #5b21b6; }

/* -- 子任务分解弹窗 -- */
.split-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  flex-wrap: wrap;
}
.split-row .split-title { flex: 1 1 220px; }
.split-row .split-meta { flex: 1 1 100%; justify-content: flex-end; }
.split-title {
  flex: 1;
  min-width: 180px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}
.split-meta {
  display: flex;
  gap: 6px;
  align-items: center;
}
.split-meta select,
.split-meta input[type="date"] {
  padding: 5px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  background: var(--bg);
}
.split-meta input[type="date"] { width: 120px; }

/* -- 分割顶部（AI推荐按钮行） -- */
.split-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.split-reasoning {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 12px;
  color: #1e40af;
  line-height: 1.5;
}
.split-reason-hint {
  font-size: 14px;
  cursor: help;
  margin-right: 4px;
}

/* -- 完成/跟进决策弹窗 -- */
.outcome-task-title {
  margin: -8px 0 12px;
  padding: 8px 12px;
  background: var(--bg);
  border-left: 3px solid var(--primary);
  font-weight: 600;
  color: var(--text);
}
#outcomeNote {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
}
.followup-fields {
  display: none;
  gap: 8px;
  margin-bottom: 12px;
}
.followup-fields.show {
  display: flex;
  flex-direction: column;
}
.followup-fields input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}
#outcomeModal .modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* -- 进度播报弹窗 -- */
.report-modal { width: 520px; }
.report-project {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 10px;
  background: var(--surface);
}
#reportText {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
  line-height: 1.5;
}
.report-result {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
  margin-bottom: 12px;
}
.report-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.report-cat { font-size: 12px; color: var(--muted); }
.report-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.report-row:last-of-type { border-bottom: none; }
.report-row.unchecked { opacity: 0.45; }
.report-row.unchecked .report-title { text-decoration: line-through; }
.report-row input[type="checkbox"] { flex-shrink: 0; cursor: pointer; }
.report-row input[type="text"] {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg);
}
.report-act { flex-shrink: 0; font-size: 12px; white-space: nowrap; }
.report-title { flex: 1; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.report-row.unrecognized .report-title { color: var(--muted); }
.report-next {
  margin-top: 10px;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 13px;
  color: #1e40af;
}

/* -- 秘书简报 -- */
.digest-modal { width: 520px; }
.digest-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.digest-head h3 { margin: 0; }
.digest-date { font-size: 12px; color: var(--muted); }
.digest-body { max-height: 60vh; overflow-y: auto; }
.digest-sec {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.digest-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}
.digest-ico { flex-shrink: 0; width: 20px; text-align: center; }
.digest-t {
  flex: 1;
  min-width: 0;               /* 允许被压缩，避免长文本撑破 flex 行 */
  color: var(--text);
  overflow-wrap: anywhere;    /* 长中文项目名正常换行，不竖排断字 */
}
.digest-proj { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.digest-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.digest-next {
  margin-top: 12px;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.6;
}
.digest-empty { padding: 16px 4px; font-size: 13px; color: var(--muted); text-align: center; }
.report-reason { font-size: 12px; color: #3b82f6; margin-top: 4px; line-height: 1.5; }
.report-apply { margin-top: 10px; text-align: right; }

.plan-proj-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
}
.proj-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.proj-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.proj-point { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.proj-point.muted { color: var(--muted); }
.proj-reason { font-size: 12px; color: var(--muted); line-height: 1.4; margin-bottom: 8px; }
.proj-actions { display: flex; gap: 8px; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 14px 40px; }
  .filters { flex-wrap: wrap; }
}

/* -- 移动端打磨（PWA 局域网版） -- */
@media (max-width: 480px) {
  /* 弹窗全屏 */
  .modal-content {
    width: 100vw;
    max-width: 100vw;
    max-height: 88vh;
    border-radius: 0;
    padding: 18px 16px;
    box-sizing: border-box;
  }
  .report-modal, .digest-modal { width: 100vw; }
  .modal-overlay { background: rgba(0, 0, 0, 0.5); }

  /* 触控目标放大（>=44px） */
  .icon-btn, .primary-btn, .ghost-btn,
  .status-select, .task-actions select,
  .report-row input[type="checkbox"],
  .split-meta select, .split-meta input[type="date"] {
    min-height: 40px;
    font-size: 14px;
  }
  .icon-btn { padding: 8px 12px; }
  .task-actions { gap: 6px; flex-wrap: wrap; }

  /* 输入区纵向堆叠 */
  .simple-input-wrap { flex-direction: column; }
  .simple-input-wrap textarea { width: 100%; box-sizing: border-box; }
  .simple-btns { flex-direction: row; }
  .simple-btns button { flex: 1; }

  /* 任务卡可点区域与留白 */
  .task-card { padding: 12px; }
  .task-top { flex-wrap: wrap; }

  /* 摘要行可换行 */
  .digest-row { flex-wrap: wrap; }
  .digest-meta { white-space: normal; }

  /* 顶部栏紧凑 */
  .topbar { flex-wrap: wrap; padding: 10px 12px; }
  .topnav .ghost-btn { padding: 8px 12px; }
}
