/* 便利贴 & 待办小组件（依赖页面主题变量 --card/--border 等） */
.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
  text-align: left;
}
.dw-head {
  font-size: 13.5px; font-weight: 700; color: var(--text);
  margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.dw-count { font-size: 11px; color: var(--text-2); font-weight: 400; }
.dw-add { display: flex; gap: 6px; margin-bottom: 10px; }
.dw-add input {
  flex: 1; min-width: 0; padding: 7px 10px; font-size: 13px;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: 8px; outline: none;
}
.dw-add input:focus { border-color: var(--accent); }
.dw-add button {
  flex: none; width: 32px;
  border: 1px solid var(--border-strong);
  background: var(--card); color: var(--accent);
  border-radius: 8px; font-size: 15px; cursor: pointer;
}
.dw-add button:hover { border-color: var(--accent); }
.dw-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.dw-note {
  position: relative; border-radius: 8px; padding: 8px 26px 8px 10px;
  font-size: 12.5px; line-height: 1.5; color: #333;
  word-break: break-word; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.dw-note-text { white-space: pre-wrap; }
.dw-del {
  position: absolute; top: 4px; right: 4px;
  border: 0; background: none; cursor: pointer;
  color: rgba(0, 0, 0, 0.35); font-size: 11px;
  width: 18px; height: 18px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.dw-del:hover { color: #b23050; background: rgba(255, 255, 255, 0.5); }
.dw-todos { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; }
.dw-todo {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 5px 4px; border-radius: 7px;
}
.dw-todo:hover { background: var(--bg-soft); }
.dw-todo input[type="checkbox"] { margin: 2px 0 0; cursor: pointer; }
.dw-todo-text { flex: 1; font-size: 13px; color: var(--text); word-break: break-word; }
.dw-todo.done .dw-todo-text { text-decoration: line-through; color: var(--text-2); }
.dw-todo .dw-del { position: static; flex: none; }
.dw-empty { font-size: 12px; color: var(--text-2); text-align: center; padding: 10px 0; }
.dw-mode { font-size: 11.5px; color: var(--text-2); text-align: center; margin: 2px 0 0; }
