/* ============================================================
 * style.css — 深色主题 · 极简 · 青绿色强调（TickTick 风格复刻）
 * 适配 iPhone 15 Pro Max (430pt 宽)，移动优先
 * ============================================================ */

:root {
  --bg: #0F1115;
  --bg-elevated: #15181E;
  --surface: #1C2027;
  --surface-2: #23272F;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ECEDEE;
  --text-2: #8A8F98;
  --text-3: #5C616B;
  --accent: #1D9E75;        /* 主强调色 青绿 */
  --accent-strong: #25C28F; /* 高亮青绿 */
  --accent-soft: rgba(29, 158, 117, 0.16);
  --danger: #EB5757;
  --warning: #F2C94C;
  --info: #2D9CDB;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 48px;
  --header-h: 56px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

#app {
  max-width: 460px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* ---------- 顶部 Header ---------- */
.header {
  padding: calc(var(--safe-top) + 10px) 18px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  z-index: 5;
}
.header .title-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-right: 44px;
}
.header h1 {
  font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -0.5px;
}
.header .sub {
  font-size: 13px; color: var(--text-2); margin-top: 2px;
}
.header .lunar {
  font-size: 13px; color: var(--accent-strong); font-weight: 500;
}

/* 日历视图：顶部放月份导航，高度压缩到只留安全区+按钮 */
.header.calendar-only {
  padding: calc(var(--safe-top) + 4px) 14px 2px;
  min-height: calc(var(--safe-top) + 44px);
  border-bottom: none;
  background: transparent;
  display: flex; align-items: center;
}
.cal-top-nav {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.cal-top-nav .month {
  font-size: 17px; font-weight: 700; color: var(--text);
  flex: 1; text-align: center;
}
.cal-top-nav button {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); width: 34px; height: 34px; border-radius: 10px;
  font-size: 16px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cal-top-nav button.back-text {
  width: auto; padding: 0 12px; font-size: 15px; font-weight: 600;
  background: transparent; border: none; color: var(--accent-strong);
}
.header.calendar-only ~ .content .calendar-view.month-mode .cal-header {
  padding-top: 0;
}

.settings-btn {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  right: 14px;
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  padding: 7px;
  z-index: 10;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.settings-btn:active { background: var(--surface-2); color: var(--text); }

.search-btn {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  right: 56px;
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  z-index: 10;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.search-btn svg { width: 20px; height: 20px; }
.search-btn:active { background: var(--surface-2); color: var(--text); }

/* ---------- 内容区 ---------- */
.content {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px 14px calc(var(--tabbar-h) + var(--safe-bottom));
}

/* ---------- 任务行 ---------- */
.task-list { display: flex; flex-direction: column; gap: 8px; }

.task-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface);
  border-radius: 0;                 /* 任务卡片：方形，无圆角 */
  padding: 13px 14px;
  border: 1px solid var(--border);
  transition: background .15s ease;
  position: relative;
}
.task-item:active { background: var(--surface-2); }
.task-item .pri-bar {
  position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0; background: transparent;
}
.task-item.pri-3 .pri-bar { background: var(--danger); }
.task-item.pri-2 .pri-bar { background: var(--warning); }
.task-item.pri-1 .pri-bar { background: var(--info); }

/* 圆形勾选框 */
.check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--text-3); margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .18s ease;
}
.check svg { width: 13px; height: 13px; opacity: 0; transition: opacity .15s; }
.task-item.done .check {
  background: var(--accent); border-color: var(--accent);
}
.task-item.done .check svg { opacity: 1; }
.task-item.done .t-title { color: var(--text-3); text-decoration: line-through; }

.task-body { flex: 1; min-width: 0; }
.t-title { font-size: 16px; font-weight: 500; line-height: 1.35; word-break: break-word; }
.t-meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 5px;
  font-size: 12.5px; color: var(--text-2);
}
.t-meta .m { display: inline-flex; align-items: center; gap: 4px; }
.t-meta .overdue { color: var(--danger); font-weight: 600; }
.t-meta .tag {
  background: var(--accent-soft); color: var(--accent-strong);
  padding: 1px 7px; border-radius: 0; font-size: 11.5px;
}
.t-meta .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* 分组标题（如「已过期」「今天」） */
.section-label {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 4px 8px; font-size: 13px; font-weight: 600; color: var(--text-2);
}
.section-label:first-child { margin-top: 2px; }
.section-label .count { color: var(--text-3); font-weight: 400; }
.section-label .line { flex: 1; height: 1px; background: var(--border); }

/* 顺延按钮 */
.btn-postpone {
  margin: 4px 4px 0; align-self: flex-start;
  background: var(--accent-soft); color: var(--accent-strong);
  border: none; border-radius: 10px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ---------- 日历视图 ---------- */
#content .calendar-view {
  min-height: 100%; display: flex; flex-direction: column;
  position: relative;
  /* 滴答清单风格：柔和青绿蒙版 + 半透明磨砂深色底，文字更清晰 */
  background:
    radial-gradient(circle at 50% -22%, rgba(37, 194, 143, 0.32), transparent 52%),
    radial-gradient(circle at 100% 0%, rgba(37, 194, 143, 0.12), transparent 40%),
    linear-gradient(180deg, #1B212A 0%, #12151B 100%);
}
/* 日历视图让内容尽量占满左右与上下 */
.header.calendar-only ~ .content {
  padding-left: 6px; padding-right: 6px; padding-top: 6px;
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 12px; flex-shrink: 0;
}
.cal-header.compact { padding-bottom: 8px; }
.cal-header .month { font-size: 17px; font-weight: 700; }
.cal-header .back {
  background: transparent; border: none; color: var(--accent-strong);
  font-size: 15px; font-weight: 600; cursor: pointer; padding: 0;
}
.cal-header .nav { display: flex; gap: 8px; }
.cal-header .nav button {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); width: 34px; height: 34px; border-radius: 10px;
  font-size: 16px; cursor: pointer;
}

/* 月历模式 */
.calendar-view.month-mode { padding-top: 2px; }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 12px; color: var(--text-2);
  padding-bottom: 6px; flex-shrink: 0;
}
.cal-weekdays .we { color: var(--accent-strong); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
  flex: 1; min-height: 0;                /* 填满月历视图剩余高度 */
  grid-template-rows: repeat(6, minmax(0, 1fr)); /* 42 格 = 6 行，行高平均分布 */
}
.cal-cell {
  min-height: 0; min-width: 0;          /* 允许收缩，长标题截断而非撑宽列 */
  display: flex; flex-direction: column;
  align-items: stretch; gap: 2px; overflow: hidden;
  border-radius: 10px; position: relative; cursor: pointer;
  font-size: 12px; color: var(--text);
  padding: 4px 4px 5px;
  /* 非选中日期：不加任何蒙版，仅显示日期 */
  background: transparent;
}
.cal-cell.other { color: var(--text-3); opacity: 0.55; background: transparent; }
.cal-cell .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; line-height: 1;
  font-size: 16px; font-weight: 600;
  margin-left: 1px;                     /* 阳历日期稍微往右一点 */
}
.cal-cell .cell-head {
  display: flex; align-items: flex-end; gap: 3px;
  flex: 0 0 auto; min-width: 0;
  margin-bottom: 2px;                   /* 给今日实心圈留出一点空间 */
}
/* 今日：实心青绿圆 + 白色数字（字号不变，仅增加一个固定 20×20 的圆形容器） */
.cal-cell.today .num {
  background: var(--accent); color: #fff;
  border-radius: 50%; font-weight: 700;
}
.cal-cell .cell-head .lunar {
  font-size: 10px; color: var(--text-2); line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.cal-cell .cell-tasks {
  display: flex; flex-direction: column; justify-content: flex-start;
  gap: 2px; overflow: hidden; min-width: 0;
}
.cal-cell .ct-item {
  display: flex; align-items: center; min-width: 0;
  font-size: 11px; line-height: 1.2; font-weight: 500;
  padding: 2px 4px; border-radius: 0;   /* 日历内任务条：方形 */
  overflow: hidden; white-space: nowrap;
}
/* 已完成：不使用删除线，用更高透明度（更虚化）来区分 */
.cal-cell .ct-item.done {
  opacity: 0.5;
}
.cal-cell .ct-title {
  overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
}
.cal-cell .ct-more {
  font-size: 10px; color: var(--text-2); padding-left: 2px; flex: 0 0 auto;
}
/* 选中日期：用更明显的半透明色块强调（没有外边框） */
.cal-cell.selected {
  background: rgba(29,158,117,0.22);
}

/* 周视图横条 */
.week-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px;
  -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
  flex-shrink: 0;
}
.week-strip::-webkit-scrollbar { display: none; }
.week-day {
  flex: 0 0 auto; width: 46px; display: flex; flex-direction: column;
  align-items: center; gap: 4px; padding: 8px 0; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent;
}
.week-day .wd { font-size: 11px; color: var(--text-2); }
.week-day .wn { font-size: 17px; font-weight: 600; }
.week-day.today .wn { color: var(--accent-strong); }
.week-day.selected { background: var(--accent-soft); border-color: var(--accent); }
.week-day.selected .wn { color: var(--accent-strong); }

/* 单日展开模式 */
.calendar-view.day-mode {
  height: 100%;
  margin: 0 -14px;
  width: calc(100% + 28px);
  padding-bottom: 0;
}
.calendar-view.day-mode .cal-header {
  padding-left: 14px; padding-right: 14px;
}
.calendar-view.day-mode .week-strip {
  margin-top: 0; padding-top: 0;
  padding-left: 14px; padding-right: 14px;
}
.calendar-view.day-mode .day-panel {
  flex: 1; min-height: 0; margin-top: 8px;
  background: var(--bg-elevated);
  border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.calendar-view.day-mode .dd-head {
  padding: 14px 16px 10px;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.calendar-view.day-mode .dd-head .lunar { font-size: 13px; color: var(--text-2); font-weight: 400; }
.calendar-view.day-mode .day-panel-body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 12px 14px calc(14px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}
.empty { color: var(--text-3); font-size: 14px; text-align: center; padding: 28px 0; }

/* ---------- 底部 Tab Bar ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 20;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-2); font-size: 11px; cursor: pointer; padding-top: 4px;
}
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--accent-strong); }
.fab {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(29, 158, 117, 0.45); cursor: pointer;
  margin-top: -14px;
}
.fab svg { width: 26px; height: 26px; }

/* ---------- 任务详情/编辑 抽屉（全屏覆盖） ---------- */
.sheet-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 40; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 92%; background: var(--bg-elevated);
  border-radius: 20px 20px 0 0; z-index: 41;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s;
  visibility: hidden; pointer-events: none;
  display: flex; flex-direction: column;
  padding-bottom: var(--safe-bottom);
}
.sheet.show { transform: translateY(0); visibility: visible; pointer-events: auto; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.sheet .grip { width: 38px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 10px auto 4px; }
.sheet .sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px 10px; border-bottom: 1px solid var(--border);
}
.sheet .sheet-head .h-title { font-size: 16px; font-weight: 600; }
.sheet .sheet-head .close { background: none; border: none; color: var(--text-2); font-size: 22px; cursor: pointer; }
.sheet .sheet-body { padding: 14px 16px; overflow-y: auto; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.field input[type=text], .field input[type=date], .field input[type=time], .field textarea, .field select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 11px 12px; font-size: 15px;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.pri-pick { display: flex; gap: 8px; }
.pri-pick button {
  flex: 1; padding: 9px 0; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 13px; cursor: pointer;
}
.pri-pick button.on { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }

.list-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.list-pick button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer;
}
.list-pick button .d { width: 9px; height: 9px; border-radius: 50%; }
.list-pick button.on { border-color: var(--accent); }

.subtasks .st-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.subtasks .st-item .st-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--text-3); flex-shrink: 0; cursor: pointer; display:flex;align-items:center;justify-content:center; }
.subtasks .st-item.done .st-check { background: var(--accent); border-color: var(--accent); }
.subtasks .st-item.done .st-text { color: var(--text-3); text-decoration: line-through; }
.subtasks .st-item .st-text { flex: 1; font-size: 14.5px; }

.tag-input-row { display: flex; gap: 8px; }
.tag-input-row input { flex: 1; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-list .tg { background: var(--accent-soft); color: var(--accent-strong); padding: 4px 10px; border-radius: 8px; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.tag-list .tg .x { cursor: pointer; opacity: .7; }

.sheet-actions { display: flex; gap: 10px; padding: 4px 16px 16px; }
.sheet-actions button { flex: 1; padding: 13px 0; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; }
.btn-save { background: var(--accent); color: #fff; }
.btn-delete { background: rgba(235,87,87,0.12); color: var(--danger); flex: 0 0 auto; width: 54px; }

/* 通用小工具 */
.hidden { display: none !important; }
.spin { display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-2); }

/* ---------- 时间滚轮选择器 ---------- */
.wheel-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; z-index: 80; transition: opacity .2s;
}
.wheel-mask.show { opacity: 1; pointer-events: auto; }
.wheel-sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--bg-elevated); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: translateY(100%); transition: transform .25s ease-out;
  z-index: 81; padding-bottom: var(--safe-bottom);
  max-height: 70vh; display: flex; flex-direction: column;
}
.wheel-sheet.show { transform: translateY(0); }
.wheel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 6px;
}
.wheel-head .h-title { font-size: 17px; font-weight: 700; }
.wheel-head .close { background: transparent; border: none; color: var(--text-2); font-size: 18px; width: 32px; height: 32px; cursor: pointer; }
.wheel-body {
  position: relative; display: flex; justify-content: center; gap: 16px;
  padding: 10px 0 16px; height: 220px; overflow: hidden;
}
.wheel-col {
  width: 80px; height: 180px; overflow-y: scroll;
  scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; text-align: center;
}
.wheel-col::-webkit-scrollbar { display: none; }
.wheel-pad { height: 72px; scroll-snap-align: none; }
.wheel-item {
  height: 36px; line-height: 36px; font-size: 20px; color: var(--text-2);
  scroll-snap-align: center;
}
.wheel-highlight {
  position: absolute; left: 50%; top: 72px; transform: translateX(-50%);
  width: 200px; height: 36px; border-radius: 8px;
  background: var(--surface); z-index: -1;
}
.wheel-actions {
  display: flex; gap: 10px; padding: 4px 16px 18px;
}
.wheel-actions button { flex: 1; padding: 13px 0; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; }

/* ---------- 提醒选择 ---------- */
.remind-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.remind-pick button {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 7px 13px; border-radius: 10px; font-size: 13px; cursor: pointer;
}
.remind-pick button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }

/* ---------- 循环选择 ---------- */
.repeat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.repeat-pick button {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 7px 13px; border-radius: 10px; font-size: 13px; cursor: pointer;
}
.repeat-pick button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }

/* ---------- 重点颜色选择 ---------- */
.color-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.color-pick button {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.color-pick button.on { border-color: #fff; box-shadow: 0 0 0 1.5px var(--text-2); }

/* ---------- 一句话添加 + 语音 ---------- */
.nl-field { margin-bottom: 4px; }
.nl-row { display: flex; align-items: center; gap: 8px; }
.nl-row #f-nl {
  flex: 1; min-width: 0; padding: 11px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 14px;
}
.nl-mic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 18px; cursor: pointer; line-height: 1;
}
.nl-mic.on { background: var(--accent); border-color: var(--accent); }
.nl-preview {
  min-height: 16px; margin-top: 6px; font-size: 12px; color: var(--accent-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 搜索视图 ---------- */
.search-view { display: flex; flex-direction: column; min-height: 100%; }
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 12px;
  margin-bottom: 12px; flex-shrink: 0;
}
.search-bar svg { color: var(--text-3); flex-shrink: 0; }
.search-bar input {
  flex: 1; min-width: 0; background: transparent; border: none;
  color: var(--text); font-size: 15px; outline: none;
}
.search-bar input::placeholder { color: var(--text-3); }
.search-clear {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--text-3); color: var(--bg);
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer; flex-shrink: 0;
}
.search-results { flex: 1; min-height: 0; overflow-y: auto; }
.search-results .empty { padding-top: 60px; }
.search-results .task-item { cursor: pointer; }

/* ---------- 清单管理 ---------- */
.lists-view { display: flex; flex-direction: column; min-height: 100%; }
.lists-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; font-size: 15px; font-weight: 600;
}
.lists-body {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden;
}
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-bottom: 1px solid var(--border);
  min-height: 52px;
}
.list-row:last-child { border-bottom: none; }
.list-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.list-name { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-count { font-size: 13px; color: var(--text-3); min-width: 24px; text-align: right; }
.list-action {
  background: transparent; border: none; color: var(--text-2);
  font-size: 15px; cursor: pointer; padding: 6px; border-radius: 8px;
}
.list-action:active { background: var(--surface-2); }
.list-row.editing { flex-direction: column; align-items: stretch; gap: 10px; }
.list-edit-row { display: flex; flex-direction: column; gap: 10px; }
.list-name-input {
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font-size: 15px; outline: none;
}
.list-name-input:focus { border-color: var(--accent); }
.list-edit-actions { display: flex; gap: 10px; }
.list-edit-actions .btn-save { flex: 1; }
.list-edit-actions .btn-text { flex: 0 0 auto; padding: 0 12px; }
.color-pick.small button { width: 22px; height: 22px; }
.lists-tip { margin-top: 14px; font-size: 12px; color: var(--text-3); line-height: 1.4; }

.btn-text {
  background: transparent; border: none; color: var(--accent-strong);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-text.small { font-size: 13px; }
.btn-save.small { padding: 8px 14px; font-size: 13px; }
