/* ============================================================
   Quay 工作台
   - 概览：问候 / 日期 / 天气摘要（纯排版）
   - 统计：细线分隔的信息条
   - 天气（多城市四标签）/ 时钟番茄钟（环形）
     日历（截止圆点）/ 待办（优先级+截止+进度）/ 快捷应用 / 计算器
     最近搜索 / 近 7 天趋势 / 自定义布局
   沿用项目自身的极简排版：细线、留白、单一强调色，不用渐变与装饰图标。
   ============================================================ */

/* 工作台作为首页第二屏，紧接在 100vh 搜索区下方；半透明让壁纸能透过来 */
.dash-screen {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

@supports (background: color-mix(in srgb, red 50%, transparent)) {
  .dash-screen { background: color-mix(in srgb, var(--bg-soft) 94%, transparent); }
}

.dash-shell {
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- 顶栏 ---------- */
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.dash-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.dash-nav { display: flex; align-items: center; gap: 16px; }

.dash-top-clock {
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.dash-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: color .15s;
}

.dash-link:hover { color: var(--accent); }

/* ---------- 布局面板 ---------- */
.dash-layout {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .4);
  flex: none;
}

.dash-layout[hidden] { display: none; }

.dash-layout-head { display: flex; align-items: center; justify-content: space-between; }

.dash-layout-title { font-size: 14px; font-weight: 600; }

.dash-layout-actions { display: flex; align-items: center; gap: 8px; }

.dash-layout-close {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--text-faint);
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 6px;
}

.dash-layout-close:hover { color: var(--text); background: var(--bg-soft); }

.dash-layout-tip { font-size: 12px; color: var(--text-faint); margin: 4px 0 10px; }

.dash-layout-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 8px;
}

.layout-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color .15s, background .15s, opacity .15s;
}

.layout-item:hover { border-color: var(--border-strong); }

.layout-item.dragging { opacity: .45; }

.layout-item.drag-over { border-color: var(--accent); background: var(--accent-soft); }

.layout-handle { cursor: grab; color: var(--text-faint); font-size: 13px; }

.layout-name { flex: 1; font-size: 13px; color: var(--text); }

.dash-layout .switch.small { width: 34px; height: 19px; }

.dash-layout .switch.small .slider:before { height: 13px; width: 13px; }

.dash-layout .switch.small input:checked + .slider:before { transform: translateX(15px); }

/* ---------- 网格 ---------- */
.dash {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-content: start;
}

.dash > .is-hidden { display: none; }

.dash-overview,
.dash-stats { grid-column: span 12; }

.weather-card,
.calendar-card,
.todo-card,
.calc-card,
.recent-card,
.trend-card,
.apps-card { grid-column: span 4; }

.clock-card { grid-column: span 8; }

/* ---------- 卡片通用 ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -24px rgba(0, 0, 0, .4);
  border-color: var(--border-strong);
}

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.card-title { font-size: 14px; font-weight: 600; margin: 0; }

.card-actions { display: flex; gap: 6px; }

.card-action {
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}

.card-action:hover { color: var(--accent); background: var(--accent-soft); }

/* ---------- 按钮 ---------- */
.mini-btn {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}

.mini-btn:hover { background: var(--accent-hover); }
.mini-btn:active { transform: scale(.97); }

.mini-btn.ghost {
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.mini-btn.ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }

.icon-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.card .input {
  height: 32px;
  padding: 0 10px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  outline: none;
  min-width: 0;
  transition: border-color .15s;
}

.card .input:focus { border-color: var(--accent); }

.muted { font-size: 12px; color: var(--text-faint); }

.todo-empty,
.recent-empty {
  font-size: 13px;
  color: var(--text-faint);
  padding: 18px 0;
  text-align: center;
}

/* ---------- 概览（纯排版，不设卡片） ---------- */
.dash-overview {
  grid-column: span 12;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 2px 0;
}

.ov-greeting { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }

.ov-date { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }

.ov-weather {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ov-temp { font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -.02em; }

.ov-city { color: var(--text-faint); }

/* ---------- 进度条 ---------- */
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #fff;
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

.progress-track.slim { height: 6px; }

/* ---------- 统计（一条细线分隔的信息条） ---------- */
.dash-stats {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.stat-cell {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 1px solid var(--border);
}

.stat-cell:first-child { border-left: 0; }

.stat-num {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label { font-size: 12px; color: var(--text-secondary); }

/* ---------- 天气 ---------- */
.weather-cities { display: flex; flex-wrap: wrap; gap: 6px; }

.w-city-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, color .15s, background .15s;
}

.w-city-chip:hover { border-color: var(--accent); color: var(--accent); }

.w-city-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.w-city-remove { font-style: normal; font-size: 10px; opacity: .6; }

.w-city-remove:hover { opacity: 1; }

.w-city-add { font-weight: 600; }

.w-city-input {
  height: 24px;
  padding: 0 10px;
  font-family: var(--font);
  font-size: 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  outline: none;
  width: 140px;
}

.weather-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  padding: 3px;
  border-radius: 10px;
}

.w-tab {
  flex: 1;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.w-tab:hover { color: var(--text); }

.w-tab.active {
  background: var(--bg);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.weather-body { min-height: 158px; }

.weather-main { display: flex; align-items: center; gap: 16px; }

.weather-temp {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}

.weather-temp span { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-left: 2px; }

.weather-city { font-size: 13px; font-weight: 600; }

.weather-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.weather-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 10px;
  border-left: 3px solid var(--accent);
  background: var(--warn-soft);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
}

.weather-alert-badge { color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; }

.weather-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }

.wd-item {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 7px 9px;
}

.wd-item b { font-size: 11px; color: var(--text-faint); font-weight: 500; margin-bottom: 2px; }

.weather-updated { font-size: 11px; color: var(--text-faint); margin-top: 10px; }

.weather-error { font-size: 13px; color: var(--text-faint); padding: 26px 0; text-align: center; }
.weather-error a { color: var(--accent); }

/* 预报 */
.wf-list { display: flex; flex-direction: column; }

.wf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.wf-row:first-child { border-top: 0; }
.wf-row.today { color: var(--accent); font-weight: 600; }

.wf-label { width: 46px; flex: none; color: var(--text-secondary); }
.wf-row.today .wf-label { color: var(--accent); }

.wf-icon { flex: 1; min-width: 0; }
.wf-extras { font-size: 11px; color: var(--text-faint); }
.wf-temp { font-variant-numeric: tabular-nums; }

/* 空气 */
.air-top { display: flex; align-items: center; gap: 16px; }

.air-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--border);
  display: grid;
  place-items: center;
  align-content: center;
  flex: none;
}

.air-circle b { font-size: 24px; line-height: 1.1; }
.air-circle span { font-size: 11px; }

.air-rows { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.air-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 5px;
}

.air-row b { color: var(--text); }

.air-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }

.air-item {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.air-item span { font-size: 11px; color: var(--text-faint); }

/* 生活 */
.tips-list { display: flex; flex-direction: column; gap: 8px; }

.tip-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 9px 11px;
}

.tip-icon { flex: none; }

/* ---------- 时钟 / 番茄钟 ---------- */
.clock-card { flex-direction: row; align-items: stretch; gap: 18px; }

.clock-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }

.panel-caption {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-faint);
}

.clock-time {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.clock-date { font-size: 12px; color: var(--text-secondary); }

.pomodoro-panel {
  width: 200px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.pomo-ring { position: relative; width: 120px; height: 120px; }

.pomo-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.pomo-ring-bg { fill: none; stroke: var(--border); stroke-width: 8; }

.pomo-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset .4s linear, stroke .2s;
}

.pomo-time {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pomodoro-panel.is-break .pomo-ring-fill { stroke: var(--success); }

.pomo-mode { font-size: 12px; color: var(--text-secondary); cursor: pointer; }
.pomo-mode:hover { color: var(--accent); }

.pomo-actions { display: flex; gap: 6px; }

/* ---------- 日历 ---------- */
.cal-nav { display: flex; align-items: center; gap: 6px; }

.cal-title { font-size: 12px; font-weight: 600; min-width: 78px; text-align: center; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }

.cal-weekday { text-align: center; font-size: 11px; color: var(--text-faint); padding: 4px 0; }

.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background .12s;
}

.cal-day:hover { background: var(--bg-soft); }
.cal-day.other { color: var(--text-faint); opacity: .55; }
.cal-day.today { color: var(--accent); font-weight: 700; }
.cal-day.selected { background: var(--accent); color: #fff; }
.cal-day.selected .cal-dot { background: #fff; }
.cal-day.has-due .cal-num { font-weight: 600; }

.cal-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--danger); margin-top: 2px; }

.cal-selected { border-top: 1px solid var(--border); padding-top: 10px; min-height: 58px; }

.cal-selected-head { font-size: 12px; font-weight: 600; margin-bottom: 6px; }

.cal-selected-hint,
.cal-selected-empty { font-size: 12px; color: var(--text-faint); }

.cal-day-todos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 112px;
  overflow-y: auto;
}

.cal-day-todos li { display: flex; align-items: center; gap: 7px; font-size: 12px; }

.cal-day-todos li.done .cal-todo-text { text-decoration: line-through; color: var(--text-faint); }

.cal-day-todos li.prio-high .cal-todo-text { color: var(--danger); }

/* ---------- 待办 ---------- */
.todo-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 1px 9px;
}

.todo-add { display: flex; gap: 6px; flex-wrap: wrap; }

.todo-add #dashTodoInput { flex: 1; min-width: 130px; }
.todo-priority { width: 58px; }
.todo-due { width: 134px; }

.todo-progress { display: flex; align-items: center; gap: 8px; }

.todo-progress .progress-track { flex: 1; background: var(--border); }

.todo-progress .progress-fill { background: linear-gradient(90deg, var(--accent), #5856d6); }

.todo-progress-text { font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 264px;
  overflow-y: auto;
}

.dash-todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  transition: background .12s;
}

.dash-todo-item:hover { background: var(--bg-soft); }

.dash-todo-item.done .dash-todo-text { text-decoration: line-through; color: var(--text-faint); }

.dash-todo-check { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; flex: none; }

.dash-todo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  cursor: pointer;
  background: var(--text-faint);
  transition: transform .12s;
}

.dash-todo-dot:hover { transform: scale(1.3); }

.dash-todo-item.prio-high .dash-todo-dot { background: var(--danger); }
.dash-todo-item.prio-normal .dash-todo-dot { background: #f0a020; }
.dash-todo-item.prio-low .dash-todo-dot { background: var(--success); }

.dash-todo-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-todo-due {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  flex: none;
}

.dash-todo-due.due-soon { background: var(--accent-soft); color: var(--accent); }
.dash-todo-due.due-over { background: var(--danger-soft); color: var(--danger); }

.dash-todo-del {
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0 3px;
  border-radius: 5px;
  flex: none;
}

.dash-todo-del:hover { color: var(--danger); background: var(--danger-soft); }

.todo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* ---------- 快捷应用 ---------- */
.dash-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.dash-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}

.dash-app:hover { background: var(--bg-soft); transform: translateY(-2px); }

.dash-app-icon { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; background: var(--bg-soft); }

.dash-app-name {
  font-size: 11px;
  color: var(--text-secondary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 计算器 ---------- */
.calc-display { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; text-align: right; }

.calc-expr { font-size: 12px; color: var(--text-faint); min-height: 16px; }

.calc-value {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}

.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.calc-btn {
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 9px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .12s, background .12s, transform .1s;
}

.calc-btn:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.calc-btn:active { transform: scale(.95); }
.calc-btn.op { color: var(--accent); }

.calc-btn.eq { background: var(--accent); border-color: var(--accent); color: #fff; }
.calc-btn.eq:hover { background: var(--accent-hover); }
.calc-btn.wide { grid-column: span 2; }

/* ---------- 最近搜索 ---------- */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 236px;
  overflow-y: auto;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
}

.recent-item:hover { background: var(--bg-soft); }

.recent-q { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.recent-time { font-size: 11px; color: var(--text-faint); flex: none; }

/* ---------- 使用趋势 ---------- */
.trend-legend { display: flex; gap: 10px; font-size: 11px; color: var(--text-secondary); }

.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }

.legend-dot.dot-todo { background: #1a56db; }
.legend-dot.dot-search { background: #f0a020; }

.trend-wrap { width: 100%; }
.trend-wrap canvas { display: block; width: 100%; }

/* ---------- 提示 ---------- */
.dash-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translate(-50%, 12px);
  background: var(--text);
  color: #fff;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 1200;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .5);
}

.dash-toast.show { opacity: 1; transform: translate(-50%, 0); }
.dash-toast.success { background: var(--success); }
.dash-toast.error { background: var(--danger); }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {

  .weather-card,
  .clock-card,
  .calendar-card,
  .todo-card,
  .apps-card,
  .calc-card,
  .recent-card,
  .trend-card { grid-column: span 6; }

  .clock-card { flex-direction: column; }
  .pomodoro-panel { width: 100%; }
}

@media (max-width: 760px) {

  .dash-shell { padding: 16px 14px 24px; }

  .weather-card,
  .clock-card,
  .calendar-card,
  .todo-card,
  .apps-card,
  .calc-card,
  .recent-card,
  .trend-card { grid-column: span 12; }

  .dash-stats { grid-template-columns: repeat(2, 1fr); }

  /* 两列时补齐分隔线 */
  .stat-cell { border-left: 0; border-top: 1px solid var(--border); }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-top: 0; }
  .stat-cell:nth-child(even) { border-left: 1px solid var(--border); }

  .dash-overview { flex-direction: column; align-items: flex-start; gap: 6px; }

  .weather-details,
  .air-grid { grid-template-columns: repeat(2, 1fr); }

  .todo-add #dashTodoInput { flex-basis: 100%; }
}

/* ---- 天气图标：用 CSS mask 着色，自动跟随主题文本色 ---- */
.w-ico {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  background-color: currentColor;
  -webkit-mask: var(--w-ico) center / contain no-repeat;
  mask: var(--w-ico) center / contain no-repeat;
}

.weather-desc .w-ico {
  width: 1.5em;
  height: 1.5em;
  vertical-align: -0.35em;
  margin-right: 2px;
}

.wf-icon .w-ico { width: 1.15em; height: 1.15em; }

.ov-weather .w-ico {
  width: 20px;
  height: 20px;
  vertical-align: -0.3em;
}
