#app{max-width:1200px;padding-bottom:60px}#navigation{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:20px}.nav-item{border:1.5px solid transparent;background:none;border-radius:10px;padding:10px 18px;font-weight:700;min-height:44px}.nav-item.active{background:var(--accent);border-color:var(--ink);box-shadow:2px 3px 0 var(--ink)}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:30px 0 24px;flex-wrap:wrap}h1{font:800 32px 'Plus Jakarta Sans';letter-spacing:-1.2px}.subtitle{color:var(--ink-soft);margin-top:8px;font-size:14px}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.btn{padding:10px 17px;min-height:44px;border:1.5px solid var(--ink);border-radius:10px;background:white;font-weight:700;box-shadow:2px 3px 0 var(--ink)}.btn.primary{background:var(--accent)}.btn.pink{background:var(--blush)}.stats-strip{margin:24px 0;gap:16px}.stat-tile{border:1.5px solid var(--ink);box-shadow:2px 3px 0 var(--ink);padding:20px}.stat-value{font-size:32px}.stat-tile small{font-size:12px}.panel{border:1.5px solid var(--ink);background:#fff;border-radius:18px;box-shadow:3px 4px 0 var(--ink);padding:24px;margin-bottom:24px}.panel h2{font:800 19px 'Plus Jakarta Sans';letter-spacing:-.6px}.panel-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.filters input{flex:1;min-width:180px}input,select,textarea{border:1px solid #8b8b90;border-radius:9px;padding:10px 12px;background:#fff;color:var(--ink);min-height:44px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.task-row{display:grid;grid-template-columns:30px minmax(100px,1fr) 100px 110px 115px 46px;align-items:center;gap:16px;padding:17px 0;border-top:1px solid var(--line)}.task-title{font-weight:700;overflow-wrap:anywhere}.task-meta{font-size:12px;color:var(--ink-soft);margin-top:4px}.task-row.done .task-title{text-decoration:line-through;color:var(--muted)}.check{width:25px;height:25px;border:1.5px solid var(--ink);border-radius:7px;background:white;font-weight:800}.done .check{background:var(--blush)}.badge{display:inline-block;border-radius:8px;padding:5px 9px;font-size:12px;font-weight:600;width:fit-content}.High{background:var(--blush)}.Medium{background:var(--butter)}.Low{background:var(--sky)}.edit{border:0;background:none;font-size:20px;padding:8px}.date{font-size:13px}.late{color:#b23a66}.empty{text-align:center;padding:48px 20px;color:var(--ink-soft)}.progress{height:10px;background:#eeeae1;border-radius:10px;overflow:hidden;margin-top:12px}.progress span{display:block;height:100%;background:var(--ink)}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.weekday{text-align:center;padding:8px;font-size:12px;font-weight:700}.day{min-height:115px;border:1px solid var(--line);border-radius:10px;padding:9px;cursor:pointer;background:#fff}.day:hover{background:var(--bg)}.day.today{border:2px solid var(--ink);background:#f4f9dd}.day.blank{background:var(--bg);cursor:default}.day-num{font-size:13px;font-weight:700}.cal-task{display:block;border:0;text-align:left;width:100%;padding:5px;margin-top:5px;border-radius:5px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--sky)}.cal-task.done{background:var(--blush);text-decoration:line-through}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700}.full{grid-column:1/-1}dialog{width:min(560px,calc(100% - 32px));border:2px solid var(--ink);border-radius:20px;padding:26px;box-shadow:6px 7px 0 var(--ink)}dialog::backdrop{background:#14151a66}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.settings-grid{display:grid;gap:20px;max-width:720px}.settings-grid p{font-size:14px;color:var(--ink-soft);margin:12px 0 20px}.footer-note{font-size:12px;color:var(--ink-soft);text-align:center;margin-top:28px}.task-status{font-size:12px;color:var(--ink-soft)}@media(max-width:700px){#app{padding:18px 16px 40px}h1{font-size:27px}.heading{gap:18px}.stats-strip{grid-template-columns:repeat(2,1fr);gap:12px}.stat-tile{padding:16px}.task-row{grid-template-columns:26px 1fr auto;gap:10px}.task-row>.badge,.task-row>.date,.task-row>.task-status{display:none}.task-row>.edit{grid-column:3}.panel{padding:16px}.calendar-grid{gap:3px}.day{padding:4px;min-height:90px}.cal-task{font-size:10px;padding:3px}.weekday{font-size:10px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}#navigation{gap:2px}.nav-item{padding:9px 12px}}
.calendar-switch{display:flex;gap:8px}.week-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.week-controls>span{font-size:13px;font-weight:700}.day-add{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;background:none;padding:3px 0 7px;text-align:left;min-height:32px}.day-add span{opacity:.5}.week-grid .day{min-height:260px}.week-grid .cal-task{white-space:normal;overflow-wrap:anywhere;padding:10px;font-size:13px}.week-meta{display:block;font-size:10px;margin-top:8px;opacity:.7}@media(max-width:700px){.week-grid{grid-template-columns:1fr}.week-grid>.weekday{display:none}.week-grid .day{min-height:100px}.week-grid .day-add{font-size:14px}.week-grid .cal-task{font-size:14px}.week-controls{gap:8px}.calendar-switch .nav-item{padding:8px 18px}}
/* Summary cards, matching Bill Calendar's size and type. */
.stats-strip{gap:14px;margin:0 0 24px}.stat-tile{padding:18px 20px;border:1.5px solid var(--ink);border-radius:16px;box-shadow:2px 3px 0 var(--ink);color:var(--ink);min-width:0}.stat-label{display:block;font-family:'DM Sans',Arial,sans-serif;font-size:14px;font-weight:600;text-transform:none;letter-spacing:0;opacity:1;margin-bottom:8px}.stat-value{display:block;font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:clamp(1.3rem,2.6vw,2rem);letter-spacing:-.02em;line-height:1.4;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}@media(max-width:650px){.stats-strip{gap:12px}.stat-tile{padding:14px}.stat-value{font-size:1.6rem}}
.calendar-toolbar{display:flex;align-items:center;justify-content:flex-start;margin:0 0 18px;gap:16px}.calendar-toolbar .calendar-switch{display:inline-flex}
/* Month / Week switch, matching Bill Calendar: ink outline, pink active pill. */
.mode-switch{display:inline-flex;background:var(--card,#fff);border:1.5px solid var(--ink);border-radius:11px;box-shadow:2px 3px 0 var(--ink);padding:3px}.mode-pill{border:0;background:transparent;color:var(--ink);min-height:40px;padding:8px 16px;min-width:90px;border-radius:6px;font-weight:600;font-size:14px;line-height:1.4}.mode-pill.active{background:var(--blush);color:var(--ink)}@media(max-width:700px){.mode-switch{display:flex;width:100%}.mode-pill{flex:1}}
/* Week view as a top-to-bottom list of days, matching Bill Calendar. */
.week-list{display:flex;flex-direction:column;gap:10px}.week-row{display:flex;flex-direction:column;align-items:stretch;gap:10px;background:#fff;border:1px solid var(--ink);border-radius:16px;padding:14px 16px;cursor:pointer}.week-row.is-today{box-shadow:inset 0 0 0 2px var(--accent)}.week-row-label{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;background:none;padding:0;text-align:left;font:700 16px 'DM Sans',Arial,sans-serif;color:var(--ink);min-height:24px}.week-row-label span{opacity:.5;font-weight:600}.week-row-tasks{display:flex;flex-direction:column;gap:6px}.week-row-empty{color:var(--muted);font-size:16px}.week-task{display:block;width:100%;border:0;border-radius:6px;padding:5px 10px 5px 12px;text-align:left;background:var(--sky);color:var(--ink);font-size:14px;font-weight:600;line-height:1.4}.week-task-name{display:block;overflow-wrap:anywhere}.week-task-meta{display:block;margin-top:2px;font-size:12px;font-weight:500;opacity:.75}.week-task.done{background:#fbdce6}.week-task.done .week-task-name{text-decoration:line-through;opacity:.6}.week-task.late .week-task-meta{color:#922F46;opacity:1}@media(hover:hover){.week-row:hover{background:var(--bg)}}@media(max-width:700px){.week-panel{padding:12px}.week-row{padding:12px 14px}}
/* Today card: tasks due today and overdue, styled like Bill Calendar's "Due in the next 7 days". */
.today-card{border:1.5px solid var(--ink);border-radius:16px;padding:16px 20px;margin:0 0 24px;background:#fff;box-shadow:2px 3px 0 var(--ink)}.today-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.today-head h2{font:800 18px 'Plus Jakarta Sans',sans-serif;letter-spacing:-.03em}.today-head p{font-size:14px;color:var(--muted);margin-top:5px}.today-head>strong{font:800 26px 'Plus Jakarta Sans',sans-serif;white-space:nowrap}.today-list{display:flex;flex-direction:column;gap:6px;margin-top:14px;border-top:1px solid var(--line);padding-top:14px}.today-item{display:flex;align-items:center;gap:12px}.today-item .check{flex-shrink:0}.today-open{flex:1;min-width:0;display:block;border:0;border-radius:6px;padding:6px 10px 6px 12px;text-align:left;background:var(--sky);color:var(--ink);font-size:14px;font-weight:600;line-height:1.4}.today-title{display:block;overflow-wrap:anywhere}.today-meta{display:block;margin-top:2px;font-size:12px;font-weight:500;opacity:.75}.today-item.late .today-open{background:#fbdce6}.today-item.late .today-meta{color:#922F46;opacity:1}.today-empty{font-size:14px;color:var(--muted);margin-top:10px}@media(max-width:650px){.today-card{padding:14px}.today-head h2{font-size:16px}.today-head>strong{font-size:24px}}
/* Phone month view: short task chips in each day (two lines max, two chips max), tap a day to list all its tasks below the grid. */
.cal-more,.day-panel{display:none}@media(max-width:700px){.panel:has(>.calendar-grid:not(.week-grid)){padding:8px}.calendar-grid:not(.week-grid){gap:3px}.calendar-grid:not(.week-grid) .day{min-height:96px;padding:3px 2px;border-radius:8px}.calendar-grid .day-add{padding:2px 0 4px;min-height:24px;justify-content:center}.calendar-grid .day-add span{display:none}.calendar-grid:not(.week-grid) .cal-task{white-space:normal;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:10px;font-weight:700;line-height:1.25;letter-spacing:-.2px;padding:0 1px;border:2px solid transparent;margin-top:3px;border-radius:5px;color:var(--ink)}.calendar-grid .cal-task.late{background:var(--blush)}.calendar-grid .cal-task.done{background:var(--mint);opacity:.75}.calendar-grid .cal-task.extra{display:none!important}.calendar-grid .cal-check{display:none}.cal-more{display:block;font-size:10px;font-weight:700;text-align:center;margin-top:3px;color:var(--ink-soft)}.calendar-grid .day.selected{border:2px solid var(--ink);background:#fff;box-shadow:2px 3px 0 var(--ink)}.calendar-grid .day.selected .day-add{background:var(--blush);border-radius:6px}.day-panel{display:block}.day-panel .panel-head{margin-bottom:14px}.day-panel .btn{min-height:40px;padding:8px 14px}}
/* Compact summary cards on desktop only (same fonts as Bill Calendar, smaller). Phones keep Bill Calendar's 2x2 cards. */
@media(min-width:701px){.stats-strip{gap:12px;margin:0 0 20px}.stat-tile{padding:12px 16px;border-radius:14px}.stat-label{font-size:13px;margin-bottom:4px}.stat-value{font-size:22px;line-height:1.3}}
/* Column headings above the task list (desktop only; phones show title and menu only). */
.task-head{display:grid;grid-template-columns:30px minmax(100px,1fr) 100px 110px 115px 46px;gap:16px;padding:0 0 10px;font-size:12px;font-weight:700;color:var(--ink-soft)}@media(max-width:700px){.task-head{display:none}}
/* Plain DM Sans everywhere, like Bill Calendar. The budget's "Budget Digits" face swapped only the numerals to Plus Jakarta, so dates like "Nov 1" mixed two fonts. */
body,.wordmark small{font-family:'DM Sans',Arial,sans-serif}
/* Task row columns share one size: priority, due date and status at 13px. */
.task-row .badge,.task-row .date,.task-row .task-status{font-size:13px;line-height:1.35}.task-row .date{font-weight:500}
/* Task chips coloured by status, matching the summary cards: to do sky, in progress butter, completed mint, overdue blush. Applies to month cells, week rows, the day panel and Today. */
.cal-task,.week-task,.today-open{background:var(--sky)}.cal-task.is-progress,.week-task.is-progress,.today-item.is-progress .today-open{background:var(--butter)}.cal-task.late,.week-task.late,.today-item.late .today-open{background:var(--blush)}.cal-task.done,.week-task.done{background:var(--mint)}.calendar-grid .cal-task.done{opacity:1}.cal-task.done,.week-task.done .week-task-name{text-decoration:line-through;color:var(--ink-soft)}.week-task.late .week-task-meta,.today-item.late .today-meta{color:var(--ink);opacity:.75}
.status-legend{display:flex;flex-wrap:wrap;gap:10px 24px;margin:-8px 0 24px;font-size:14px;font-weight:600;color:var(--ink)}.status-legend span{display:inline-flex;align-items:center;gap:8px}.status-legend i{width:14px;height:14px;border:1.5px solid var(--ink);border-radius:4px}@media(max-width:700px){.status-legend{gap:6px 12px;font-size:12px;margin:-12px 0 20px}.status-legend span{gap:6px}.status-legend i{width:12px;height:12px}}

/* Overdue chips: dark ink text on the pink background (the generic .late red was hard to read) */
.cal-task.late,.week-task.late,.week-task.late *,.today-item.late .today-open,.today-item.late .today-open *{color:var(--ink)}

/* Today card head: date next to the title, counts as coloured pills (replaces the "date · N due today · N overdue" line) */
.today-head{flex-wrap:wrap;gap:10px 16px}
.today-head h2{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.today-date{font:500 14px 'DM Sans',Arial,sans-serif;letter-spacing:0;color:var(--muted)}
.today-counts{display:flex;gap:8px;flex-wrap:wrap}
.today-count{display:inline-flex;align-items:baseline;gap:5px;padding:5px 12px;border:1.5px solid var(--ink);border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap}
.today-count b{font:800 16px 'DM Sans',Arial,sans-serif}
.today-count.is-due{background:linear-gradient(115deg,var(--sky) 50%,var(--butter) 50%)}
.today-count.is-late{background:var(--blush)}
@media(max-width:650px){.today-head{align-items:flex-start;flex-direction:column}}

/* Checkbox tick: keep the original ✓ glyph, centred in the square */
.check{display:grid;place-items:center;line-height:1;padding:1.3px 0.6px 0 0}

/* Today: tasks completed today stay at the bottom, mint and struck through (like the calendar) */
.today-item.done .today-open{background:var(--mint)}
.today-item.done .today-title{text-decoration:line-through;color:var(--ink-soft)}
.today-item.done .check{background:var(--mint)}
.today-count.is-done{background:var(--mint)}

/* Ticked checkbox in Today: black square, white tick (the task list keeps its pink box) */
.today-item.done .check{background:var(--ink);border-color:var(--ink);color:#fff}

/* Your tasks: priority is plain text; status is an oval pill in its status colour with darker text in the same hue */
.task-row>.badge{background:none;padding:0;border-radius:0;font-weight:500;color:var(--ink)}
.task-row>.task-status{width:fit-content;padding:4px 11px;border-radius:999px;font-weight:600;white-space:nowrap}
.task-status.st-todo{background:var(--sky);color:#2f5aa8}
.task-status.st-progress{background:var(--butter);color:#8a6100}
.task-status.st-done{background:var(--mint);color:#3b7524}

@media(min-width:701px){.task-row>.task-status{display:inline-block}}
/* Align the colour key with the calendar cells inside the panel. */
.status-legend{padding-left:33.5px}
@media(max-width:700px){.panel:has(>.calendar-grid)+.status-legend{padding-left:17.5px}.week-panel+.status-legend{padding-left:21.5px}}

/* Week: the per-day ＋ appears only on hover/keyboard focus with a mouse; on touch screens it stays, but fainter */
.week-row-label span{transition:opacity .15s}
@media(hover:hover){.week-row-label span{opacity:0}.week-row:hover .week-row-label span,.week-row-label:focus-visible span{opacity:.6}}
@media(hover:none){.week-row-label span{opacity:.3}}

/* Week range uses the month picker's look (.week-nav-picker from styles.css). On phones: picker on its own line, Today and Add task side by side below. */
@media(max-width:700px){.week-controls{display:contents}.week-controls .week-nav-picker{flex:1 1 100%}.week-controls .week-nav-picker .mp-trigger{flex:1;justify-content:center}}

/* Month: the per-day ＋ is hidden; with a mouse it appears only on the hovered day (same as Week). Phones never show it (a tap opens the day list). */
.calendar-grid .day-add span{opacity:0;transition:opacity .15s}
@media(hover:hover) and (min-width:701px){.calendar-grid .day:hover .day-add span,.calendar-grid .day-add:focus-visible span{opacity:.6}}
@media(max-width:700px){.calendar-grid .day-add span{display:none}}
/* Task planning controls. */
.quick-dates{display:flex;flex-wrap:wrap;gap:8px}.quick-dates .btn{font-size:12px;min-height:36px;padding:7px 10px}.field-hint{font-size:12px;font-weight:400;color:var(--ink-soft)}.filters #project-filter{max-width:220px}@media(max-width:700px){#navigation{flex-wrap:wrap}.panel-head{flex-wrap:wrap}}
/* Date words use the regular text face; numeric typography stays unchanged. */
@font-face{font-family:'Date Text';src:url('assets/fonts/DM-Sans.ttf') format('truetype');font-style:normal;font-weight:100 1000;font-display:swap;unicode-range:U+0041-005A,U+0061-007A,U+00C0-024F,U+0400-052F}
.mp-trigger,.mp-dialog .mp-cell,.today-date,.week-row-label,.task-row .date,input[type="date"]{font-family:'Date Text','DM Sans',Arial,sans-serif}
.day-panel h2{font-family:'Date Text','Plus Jakarta Sans',sans-serif}
/* Approved reference: pink square, black outline and black tick in every list. */
.check{width:25px;height:25px;min-width:25px;border:1.5px solid var(--ink);border-radius:7px;font-family:'DM Sans',Arial,sans-serif;font-size:16px;font-weight:800;color:var(--ink)}
.done .check,.today-item.done .check{background:var(--blush);border-color:var(--ink);color:var(--ink)}
/* Today keeps the black checked state; other lists remain pink. */
.today-item.done .check{background:var(--ink);border-color:var(--ink);color:#fff}
/* Reschedule directly from a task, without opening its editor. */
.today-task-body{flex:1;min-width:0}.today-task-body .today-open{width:100%}.task-reschedule{margin-top:7px;font-size:12px;color:var(--ink-soft)}.task-reschedule summary{cursor:pointer;width:fit-content;font-weight:600;padding:3px 0}.reschedule-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 0}.reschedule-actions button{border:1px solid var(--ink);border-radius:7px;background:var(--card);font-size:12px;padding:7px 9px;min-height:34px}.reschedule-actions label{display:flex;align-items:center;gap:7px;font-size:12px}.reschedule-actions input{font-size:12px;padding:6px;min-height:34px;max-width:150px}.week-task-body{min-width:0}.today-task-body>.task-reschedule,.week-task-body>.task-reschedule{margin-left:12px}

.task-status.st-overdue{background:var(--blush);color:#922f46}

/* Reschedule: Lucide "calendar-clock" icon at the right of each open task; opens a small menu. Replaces the "▸ Reschedule" rows. */
.task-reschedule{display:none}
.today-task-body,.week-task-body,.task-main{position:relative}
.today-task-body .today-open,.week-task-body .week-task{padding-right:46px}
.task-main{padding-right:40px}
.resched{position:absolute;right:8px;top:50%;transform:translateY(-50%);z-index:2}
.task-main>.resched{right:0}
.resched-btn{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1.5px solid var(--ink);border-radius:8px;background:#fff;color:var(--ink);cursor:pointer;transition:opacity .15s}
.resched-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.resched-menu{display:none;position:absolute;right:0;top:calc(100% + 6px);min-width:180px;flex-direction:column;gap:2px;padding:6px;background:#fff;border:1.5px solid var(--ink);border-radius:12px;box-shadow:3px 4px 0 var(--ink);z-index:20}
.resched.open .resched-menu{display:flex}
.resched-menu button{border:0;background:none;text-align:left;padding:9px 10px;border-radius:7px;font:600 13px 'DM Sans',Arial,sans-serif;color:var(--ink);min-height:38px}
.resched-menu label{display:flex;flex-direction:column;gap:5px;padding:8px 10px 6px;font:600 12px 'DM Sans',Arial,sans-serif;color:var(--ink-soft);border-top:1px solid var(--line);margin-top:4px}
.resched-menu input{font-size:13px;padding:6px 8px;min-height:36px}
@media(hover:hover){.resched-menu button:hover{background:#f3f1e9}
.resched-btn{opacity:0}
.today-task-body:hover .resched-btn,.week-task-body:hover .resched-btn,.task-row:hover .resched-btn,.resched.open .resched-btn,.resched-btn:focus-visible{opacity:1}}
@media(hover:none){.resched-btn{opacity:.55}.resched.open .resched-btn{opacity:1}}
.resched.open .resched-btn{background:var(--ink);color:#fff}
.resched.open{z-index:30}
.mp-trigger svg.lucide-ico{stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* Today + Calendar Week: reschedule is a bare black icon on the row color, no frame (2026-11-07) */
.today-card .resched-btn,.week-task-body .resched-btn{background:transparent;border-color:transparent;color:var(--ink)}
.today-card .resched-btn svg,.week-task-body .resched-btn svg{width:19px;height:19px;stroke-width:2}
.today-card .resched.open .resched-btn,.week-task-body .resched.open .resched-btn{background:var(--ink);border-color:var(--ink);color:#fff}
/* Your tasks: the whole row opens the editor, no three-dots button; full month names (2026-11-07) */
.task-row,.task-head{grid-template-columns:30px minmax(100px,1fr) 100px 130px 115px}
.task-row[data-edit]{cursor:pointer}
.task-row[data-edit]:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:6px}
@media(max-width:700px){.task-row{grid-template-columns:26px 1fr}}
/* Your tasks: date and priority only in their columns on desktop; phones (no columns) keep them in the meta line (2026-11-07) */
@media(min-width:701px){.task-row .meta-phone{display:none}}
/* Your tasks: reschedule icon sits right after the due date (desktop); phones keep it at the row's right edge (2026-11-07) */
.task-row,.task-head{grid-template-columns:30px minmax(100px,1fr) 100px 150px 115px}
.task-row>.date{display:flex;align-items:center;gap:6px}
.task-row>.date .resched{position:relative;right:auto;top:auto;transform:none}
.task-row>.date .resched-btn{width:26px;height:26px;background:transparent;border-color:transparent;color:var(--ink)}
.task-row>.date .resched-btn svg{width:18px;height:18px;stroke-width:2}
.task-row>.date .resched.open .resched-btn{background:var(--ink);border-color:var(--ink);color:#fff}
.task-row>.date .resched-menu{left:0;right:auto}
.task-row .resched-phone{display:none}
@media(max-width:700px){.task-row{grid-template-columns:26px 1fr}.task-row .resched-phone{display:block}.task-row>.date{display:none}}
/* Your tasks: spread the columns so there is no big gap between the title and Priority (2026-11-07) */
@media(min-width:701px){.task-row,.task-head{grid-template-columns:30px minmax(180px,2.4fr) 1fr 1.3fr 1fr}}
/* Settings: two-column cards, Sunday|Monday switch, remove samples, delete all (2026-11-07) */
.settings-grid{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.settings-grid .actions{display:flex;flex-wrap:wrap;gap:10px}
.btn.danger{background:#fff;color:#922f46;border-color:#922f46}
@media(hover:hover){.btn.danger:hover{background:var(--blush);color:var(--ink);border-color:var(--ink)}}
@media(max-width:700px){.settings-grid{grid-template-columns:1fr}}
/* Today: soft colour change when a task is ticked before it slides down (2026-11-07) */
.today-item .today-open,.today-item .check{transition:background-color .25s ease,border-color .25s ease,color .25s ease}
.today-item.moving{position:relative;z-index:2}
/* Settings: Projects card (2026-11-07) */
.projects-panel{grid-column:1/-1}
.project-list{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.project-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);min-height:56px}
.project-name{font-weight:700;flex:1;min-width:0;overflow-wrap:anywhere}
.project-count{font-size:13px;color:var(--ink-soft);min-width:70px;text-align:right;margin-right:6px}
.project-note{font-size:12px;color:var(--ink-soft);min-width:166px;text-align:center}
.project-row .btn{min-height:36px;padding:7px 12px;font-size:13px}
.project-row.editing input{flex:1;min-width:0;font-size:14px;padding:8px 10px;min-height:38px}
@media(max-width:700px){.project-row{flex-wrap:wrap}.project-name{flex:1 1 60%}.project-note{min-width:0}}
/* Phone: bottom tab bar like Bill Calendar, full width, icon + label (2026-11-07) */
.tab-icon{display:none}
@media(max-width:700px){
  #app{padding-bottom:110px}
  #navigation{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;flex-wrap:nowrap;gap:8px;margin:0;background:#fff;border:0;border-top:2px solid var(--ink);box-shadow:0 -4px 14px rgba(20,21,26,.12);padding:10px 14px max(10px,env(safe-area-inset-bottom))}
  #navigation .nav-item{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;border-radius:12px;border:2px solid transparent;box-shadow:none;min-height:0}
  #navigation .nav-item.active{background:var(--accent);border-color:var(--ink)}
  .tab-icon{display:block;width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .tab-label{font-size:12px;font-weight:700}
  #toast{bottom:calc(96px + env(safe-area-inset-bottom))}
}
/* Phone: title on the left, compact Add task on the right, picker full width below (2026-11-07) */
@media(max-width:700px){
  .heading{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;row-gap:14px}
  .heading>div:first-child{min-width:0}
  .heading .actions{display:contents}
  .heading .actions>[data-add]{grid-column:2;grid-row:1;width:auto;flex:none;white-space:nowrap}
  .heading .actions .mp-picker,.heading .week-controls .week-nav-picker{grid-column:1/-1;display:flex;width:100%}
  .heading .actions .mp-picker .mp-trigger{flex:1;justify-content:center}
  .heading .week-controls{display:contents}
  .heading .week-controls [data-week-today]{grid-column:1/-1;justify-self:start}
}
/* Phone: slightly smaller bottom tab bar (2026-11-07) */
@media(max-width:700px){
  #app{padding-bottom:92px}
  #navigation{padding:6px 12px max(6px,env(safe-area-inset-bottom));gap:6px}
  #navigation .nav-item{padding:5px 4px;gap:2px;border-radius:10px}
  .tab-icon{width:22px;height:22px}
  .tab-label{font-size:11px}
  #toast{bottom:calc(76px + env(safe-area-inset-bottom))}
}
/* Phone: logo, TASK TRACKER and "Saved on this device" on one line (2026-11-07) */
@media(max-width:700px){
  .topbar{flex-wrap:nowrap;align-items:center;gap:10px}
  .wordmark{flex-wrap:nowrap;min-width:0}
  .topbar-actions{width:auto;flex:0 1 auto;flex-wrap:nowrap;justify-content:flex-end;margin-left:auto}
  .topbar-actions .save-state{flex-basis:auto;font-size:11px;white-space:nowrap;text-align:right}
}
/* Your tasks: soft colour change on tick before the row slides down (2026-11-07) */
.task-row .check,.task-row .task-title{transition:background-color .25s ease,border-color .25s ease,color .25s ease}
.task-row.moving{position:relative;z-index:2;background:var(--card,#fff)}
/* Your tasks meta line: bold date with icon, coloured priority dot, project in grey (2026-11-07) */
.meta-line{display:inline-flex;flex-wrap:wrap;align-items:center;gap:3px 12px;font-size:12.5px;color:var(--ink-soft);opacity:1}
.meta-line .ml-date{display:inline-flex;align-items:center;gap:4px;color:var(--ink);font-weight:600}
.meta-line .ml-date.late{color:#922f46}
.meta-line .ml-pri{display:inline-flex;align-items:center;gap:5px;color:var(--ink)}
.meta-line .ml-pri i{width:8px;height:8px;border-radius:50%;border:1px solid var(--ink);flex:none}
.meta-line .pr-High i{background:#e0457b}
.meta-line .pr-Medium i{background:#f2c94c}
.meta-line .pr-Low i{background:#9fc0f0}
.task-row .meta-phone{display:none}
@media(max-width:700px){.task-row .meta-phone{display:block;margin-top:3px}.task-row .meta-desk{display:none}}
/* Your tasks filters: search border matches the selects; phone = search full width, three equal filters below (2026-11-07) */
.filters #search{border:1px solid #8b8b90;border-radius:9px}
@media(max-width:700px){
  .filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .filters #search{grid-column:1/-1;min-width:0;width:100%}
  .filters select{min-width:0;width:100%;max-width:none;font-size:13px;padding:10px 8px;text-overflow:ellipsis}
  .filters #project-filter{max-width:none}
}
/* Your tasks on phones: status pill at the end of the meta line (desktop keeps its own column) (2026-11-07) */
.meta-line .ml-extra .task-status{display:inline-block;font-size:11.5px;line-height:1.3;padding:2px 9px;border-radius:999px;font-weight:600;white-space:nowrap}
/* Phone status pill always on its own line under date, priority and project, so every pill starts at the same left edge (2026-11-07) */
.task-row .meta-line .ml-extra{flex-basis:100%;display:flex;margin-top:3px}
/* Today card: same meta line as Your tasks (date, priority dot, project) (2026-11-08) */
.today-meta{opacity:1}
.today-meta .meta-line{margin-top:2px}
/* Your tasks desktop priority column: coloured dot + word, same as the meta line (2026-11-08) */
@media(min-width:701px){.task-row>.pri-col{display:inline-flex;align-items:center;gap:7px}}
.task-row>.pri-col i{width:9px;height:9px;border-radius:50%;border:1px solid var(--ink);flex:none}
.task-row>.pr-High i{background:#e0457b}
.task-row>.pr-Medium i{background:#f2c94c}
.task-row>.pr-Low i{background:#9fc0f0}
/* Settings order: Calendar preferences, Projects (both full width), then Backup + Sample tasks side by side, Delete all full width (2026-11-08) */
.settings-grid .wide-panel{grid-column:1/-1}
/* Settings Projects: "+ Add project" button in the card head, inline add form at the top of the list (2026-11-08) */
.projects-panel .panel-head{margin-bottom:0}
.projects-panel .panel-head .btn{min-height:38px;padding:8px 14px;font-size:13px}
/* Today card: overdue date stays dark ink (the pink card already says overdue) (2026-11-08) */
.today-meta .meta-line .ml-date.late{color:var(--ink)}
/* Today card can be collapsed: chevron top-right, the counts stay visible, the list hides; remembered on this device (2026-11-08) */
.today-card{position:relative}
.today-card .today-head{padding-right:44px}
.today-collapse{position:absolute;top:12px;right:12px;width:36px;height:36px;display:grid;place-items:center;border:1.5px solid transparent;border-radius:9px;background:transparent;color:var(--ink);cursor:pointer}
.today-collapse:hover{border-color:var(--line)}
.today-collapse svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease;transform:rotate(180deg)}
.today-card.collapsed .today-collapse svg{transform:none}
.today-card.collapsed .today-body{display:none}
@media(prefers-reduced-motion:reduce){.today-collapse svg{transition:none}}
/* Coloured priority dot everywhere priority is written: Calendar Week rows, phone day panel, calendar cells (2026-11-08) */
.pri-dot{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.pri-dot i{width:8px;height:8px;border-radius:50%;border:1px solid var(--ink);flex:none}
.pri-dot.pr-High i{background:#e0457b}
.pri-dot.pr-Medium i{background:#f2c94c}
.pri-dot.pr-Low i{background:#9fc0f0}
/* Calendar Week rows and phone day panel use the Your tasks meta line (priority dot, project, In progress); repeat hint hidden when Repeat is None (2026-11-08) */
.week-task-meta{opacity:1}
.week-task-meta .meta-line{margin-top:2px}
.field-hint[hidden]{display:none}
/* In-app confirm dialog (replaces the browser confirm(), which some in-app browsers block silently) (2026-11-08) */
.ask-dialog{width:min(420px,calc(100% - 32px))}
.ask-text{font-size:16px;font-weight:600;line-height:1.45;margin:0}
.ask-dialog .dialog-actions{margin-top:22px}
/* Projects rows: fixed-width actions area so the "N tasks" counts line up, Personal's "Default" sits in the same slot (2026-11-08) */
.project-actions{flex:0 0 170px;display:flex;justify-content:flex-end;align-items:center;gap:10px}
.project-actions .project-note{flex:1;text-align:center;min-width:0}
.project-count{flex:0 0 auto;text-align:right}
@media(max-width:700px){.project-actions{flex:0 0 auto;margin-left:auto}.project-actions .project-note{flex:0 0 auto}}
/* Settings: cards in the same row stretch to equal height (Backup & restore next to Sample tasks) (2026-11-08) */
.settings-grid{align-items:stretch}
/* Sticky page heading: title, month picker and Add task stay on top while scrolling (2026-11-09) */
.heading{position:sticky;top:0;z-index:30;background:var(--bg);margin:18px -32px 12px;padding:12px 32px;transition:box-shadow .15s}
.heading.stuck{box-shadow:0 1px 0 var(--line),0 6px 12px -10px #14151a40}
@media(max-width:700px){.heading{margin:6px -16px 10px;padding:10px 16px}}
/* Phone: month picker / week controls sit below the sticky heading and scroll away (2026-11-09) */
.head-tools-mobile{display:none}
@media(max-width:700px){
  .head-tools-mobile{display:grid;row-gap:14px;margin:0 0 20px}
  .head-tools-mobile .mp-picker,.head-tools-mobile .week-nav-picker{display:flex;width:100%}
  .head-tools-mobile .mp-picker .mp-trigger{flex:1;justify-content:center}
  .head-tools-mobile .week-controls{display:contents}
  .head-tools-mobile [data-week-today]{justify-self:start}
}
