.todo-prototype-note {
  display:flex; align-items:flex-start; gap:11px; padding:12px 14px; margin:0 0 18px;
  border:1px solid #d7e7f5; border-radius:10px; background:#f0f7fd; color:#355d7e;
}
.todo-prototype-note>span { font-size:19px; line-height:1.3; color:#2364aa; }
.todo-prototype-note strong,.todo-prototype-note small { display:block; }
.todo-prototype-note strong { font-size:11px; margin-bottom:3px; }
.todo-prototype-note small { color:#607c96; font-size:10px; line-height:1.7; }
.todo-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-bottom:18px; }
.todo-stat {
  display:flex; align-items:center; gap:10px; min-width:0; border:1px solid #e2e9f0; border-radius:11px;
  padding:13px; text-align:left; background:#fff; color:#172b4d; transition:border .15s,transform .15s;
}
.todo-stat:hover { border-color:#b9cfe3; transform:translateY(-1px); }
.todo-stat-icon { width:34px; height:34px; flex:0 0 auto; display:grid; place-items:center; border-radius:10px; font-weight:900; font-size:17px; }
.todo-stat-icon.blue { background:#e7f1fc; color:#2466a4; }
.todo-stat-icon.red { background:#fdebed; color:#ba3b46; }
.todo-stat-icon.gold { background:#fff4df; color:#a77820; }
.todo-stat-icon.green { background:#e6f6ef; color:#16845b; }
.todo-stat strong,.todo-stat small { display:block; }
.todo-stat strong { font-size:20px; line-height:1.1; }
.todo-stat small { color:#718398; font-size:10px; margin-top:4px; white-space:nowrap; }
.todo-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:18px 0; }
.todo-search { display:flex; align-items:center; gap:8px; max-width:360px; flex:1; min-width:140px; padding:0 12px; border:1px solid #dce5ee; border-radius:9px; background:#fff; color:#718398; }
.todo-search span { font-size:22px; }
.todo-search input { width:100%; min-width:0; border:0; outline:0; padding:11px 0; color:#172b4d; background:transparent; font-size:11px; }
.todo-add-button { flex:0 0 auto; display:flex; align-items:center; gap:7px; border:0; border-radius:9px; padding:11px 14px; color:#fff; background:#2364aa; font-weight:750; font-size:11px; box-shadow:0 5px 13px #2364aa20; }
.todo-add-button span { font-size:17px; }
.todo-form-panel { border:1px solid #dce6ef; border-radius:13px; padding:18px; margin:16px 0 21px; background:#fbfdff; box-shadow:0 8px 22px #102a4308; }
.todo-form-heading { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:15px; }
.todo-form-heading strong,.todo-form-heading small { display:block; }
.todo-form-heading strong { font-size:14px; }
.todo-form-heading small { color:#7a8a9b; font-size:10px; margin-top:4px; }
.todo-close { border:0; background:transparent; color:#6c7f91; font-size:22px; line-height:1; }
.todo-form { display:grid; gap:8px; }
.todo-form label { display:block; color:#52677d; font-weight:700; font-size:10px; margin:5px 0 3px; }
.todo-form input,.todo-form textarea,.todo-form select {
  width:100%; min-width:0; border:1px solid #d8e2ec; border-radius:8px; padding:10px 11px; color:#172b4d;
  background:#fff; outline:none; font:inherit; font-size:11px;
}
.todo-form input:focus,.todo-form textarea:focus,.todo-form select:focus { border-color:#78a4ce; box-shadow:0 0 0 3px #2364aa12; }
.todo-form textarea { resize:vertical; line-height:1.6; }
.todo-form-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:3px; }
.todo-form-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:10px; }
.todo-form-footer>div { display:flex; gap:8px; }
.todo-form-hint { color:#8998a7; font-size:9px; line-height:1.5; }
.todo-cancel,.todo-save { border-radius:8px; padding:9px 12px; font-size:10px; font-weight:750; }
.todo-cancel { border:1px solid #dce5ed; color:#627589; background:#fff; }
.todo-save { border:1px solid #2364aa; color:#fff; background:#2364aa; }
.todo-feedback { color:#bd3e46; font-size:10px; min-height:14px; }
.todo-list-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin:21px 0 11px; }
.todo-list-heading h3 { font-size:15px; margin:0 0 4px; }
.todo-list-heading span { color:#8090a0; font-size:10px; }
.todo-view-label { color:#9aa7b4; letter-spacing:1.2px; font-size:8px; font-weight:800; }
.todo-filter-row { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:13px; }
.todo-filter { border:1px solid #dce5ed; border-radius:20px; background:#fff; color:#667b90; padding:7px 12px; font-size:10px; font-weight:700; }
.todo-filter.active { border-color:#2364aa; background:#eaf2fb; color:#205b93; }
.todo-task-list { display:grid; gap:9px; }
.todo-task { display:flex; align-items:flex-start; gap:12px; padding:14px; border:1px solid #e1e8ef; border-radius:11px; background:#fff; transition:border .15s,box-shadow .15s; }
.todo-task:hover { border-color:#c8d8e7; box-shadow:0 5px 16px #102a4308; }
.todo-task.is-overdue { border-left:3px solid #c84a53; }
.todo-task.is-completed { background:#fbfcfd; opacity:.78; }
.todo-check { width:21px; height:21px; flex:0 0 auto; border:1.5px solid #afc0d0; border-radius:50%; display:grid; place-items:center; padding:0; background:#fff; color:#fff; font-size:12px; font-weight:900; margin-top:1px; }
.todo-check.checked { background:#16845b; border-color:#16845b; }
.todo-task-main { flex:1; min-width:0; }
.todo-task-title-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.todo-task-title-row>strong { font-size:12px; line-height:1.7; }
.todo-task.is-completed .todo-task-title-row>strong { text-decoration:line-through; color:#718398; }
.todo-task-main p { margin:5px 0 8px; font-size:10px; color:#77899c; line-height:1.7; }
.todo-priority { display:inline-flex; align-items:center; border-radius:20px; padding:3px 7px; font-size:8px; font-weight:800; }
.todo-priority.normal { color:#63778b; background:#eef2f6; }
.todo-priority.high { color:#8b6219; background:#fff3d9; }
.todo-priority.urgent { color:#b13943; background:#fde9eb; }
.todo-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px 13px; }
.todo-meta>span { color:#718398; font-size:9px; }
.todo-meta .todo-date.late { color:#ba3b46; font-weight:800; }
.todo-reminder { color:#8c6b2b !important; }
.todo-status { display:inline-flex; align-items:center; padding:3px 7px; border-radius:20px; background:#edf2f6; color:#65798d !important; font-size:8px !important; }
.todo-status.done { background:#e6f6ef; color:#16845b !important; }
.todo-status.late { background:#fdebed; color:#b13943 !important; }
.todo-status.working { background:#eaf2fb; color:#2364aa !important; }
.todo-task-actions { display:flex; gap:3px; flex:0 0 auto; }
.todo-task-actions button { width:27px; height:27px; display:grid; place-items:center; border:0; border-radius:7px; background:transparent; color:#8a9aaa; font-size:15px; }
.todo-task-actions button:hover { background:#eff4f8; color:#285e8c; }
.todo-empty { display:grid; justify-items:center; gap:7px; padding:37px 15px; border:1px dashed #d4e0ea; border-radius:11px; background:#fff; color:#718398; text-align:center; }
.todo-empty>span { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; color:#16845b; background:#e6f6ef; font-size:19px; }
.todo-empty strong { font-size:12px; color:#425a72; }
.todo-empty small { font-size:10px; }
.todo-reminder-status { margin-top:9px; color:#8a641e; font-size:10px; }
.todo-bottom-note { margin-top:16px; border-top:1px solid #edf1f5; padding-top:12px; color:#8997a5; font-size:9px; line-height:1.6; }
@media(max-width:900px) {
  .todo-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .todo-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:580px) {
  .todo-actions { align-items:stretch; flex-direction:column; }
  .todo-search { max-width:none; }
  .todo-add-button { justify-content:center; }
  .todo-form-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .todo-form-footer { align-items:flex-start; flex-direction:column; }
  .todo-form-footer>div { width:100%; }
  .todo-form-footer button { flex:1; }
  .todo-task { padding:11px 9px; gap:8px; }
  .todo-task-actions { flex-direction:column; }
  .todo-stat { padding:10px 8px; gap:7px; }
  .todo-stat-icon { width:29px; height:29px; }
  .todo-stat small { font-size:9px; }
}


/* Attachments in personal To-do cards */
.todo-attachments { margin-top:14px; padding:12px; border:1px dashed #cbd9e6; border-radius:9px; background:#fbfdff; }
.todo-attachments>label { display:block; margin-bottom:7px; color:#425a72; font-size:10px; font-weight:750; }
.todo-attachments>input { display:block; width:100%; color:#62788e; font-size:10px; }
.todo-attachments>small { display:block; margin-top:6px; color:#8a99a8; font-size:9px; line-height:1.6; }
.todo-pending-files { display:grid; gap:6px; margin-top:9px; }
.todo-no-files { color:#9aa6b1; font-size:9px; }
.todo-pending-file { display:flex; align-items:center; gap:8px; min-width:0; padding:7px 9px; border:1px solid #e3eaf0; border-radius:7px; background:#fff; }
.todo-file-icon { flex:0 0 auto; }
.todo-pending-file>a { min-width:0; overflow:hidden; color:#28649a; font-size:10px; text-overflow:ellipsis; white-space:nowrap; text-decoration:none; }
.todo-pending-file>small { flex:0 0 auto; color:#8a99a8; font-size:9px; }
.todo-pending-file>button { flex:0 0 auto; margin-left:auto; width:22px; height:22px; border:0; border-radius:5px; background:#fff0f0; color:#ad4148; }
.todo-task-attachments { display:flex; flex-wrap:wrap; gap:6px; margin:9px 0 2px; }
.todo-task-attachments>a { display:inline-flex; align-items:center; max-width:100%; overflow:hidden; padding:6px 8px; border:1px solid #dce7f1; border-radius:7px; background:#f5f9fd; color:#2c6598; font-size:9px; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
