/* Simple Planner V9.1 — "Quiet precision" design system (light only).
   Rules: hierarchy through type and space, hairlines instead of boxes, one accent
   (blue) for "now/active", red only for Critical and errors, no decorative motion.
   Zero-flicker guards from V8.68–V8.72 are kept in the "Stability" section. */

/* ---------- Tokens ---------- */
:root{
  color-scheme:light;
  /* 9.35: "Eagle Sans" (Ubuntu) everywhere — css/fonts.css */
  --planner-font-family:"Eagle Sans",-apple-system,BlinkMacSystemFont,sans-serif;
  --bg:#f6f6f3;            /* canvas */
  --surface:#ffffff;       /* cards, sheets */
  --sunken:#efefeb;        /* General Tasks panel, segmented track */
  --hover:#f1f1ee;
  --press:#e9e9e5;
  --line:rgba(24,24,20,.085);
  --line-strong:rgba(24,24,20,.15);
  --text:#1b1b19;
  --text-2:#62625c;
  --text-3:#9b9b94;
  --ink:#1d1d1b;           /* primary button, checked boxes */
  --accent:#2f64e8;
  --accent-soft:#edf2fe;
  --accent-ring:rgba(47,100,232,.18);
  --today-bg:#f2f5fd;
  --danger:#d43c30;
  --danger-soft:#fdf4f3;
  --danger-line:rgba(212,60,48,.22);
  --ok:#2f9e5d;
  --busy:#d49a1e;
  /* timed tasks are appointments, like Google events: same blue family */
  --timed-soft:var(--accent-soft);
  --timed-text:var(--accent);
  --event:#7a6fe0;
  --r-sm:6px;--r-md:8px;--r-lg:12px;--r-xl:16px;
  --shadow-card:0 1px 2px rgba(24,24,20,.045);
  --shadow-pop:0 12px 32px rgba(24,24,20,.13),0 2px 6px rgba(24,24,20,.06);
  --shadow-sheet:0 28px 70px rgba(24,24,20,.20),0 4px 12px rgba(24,24,20,.06);
  --ease:cubic-bezier(.2,.8,.2,1);
  --tap:44px;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html{font-size:1rem;background:var(--bg);-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:var(--planner-font-family);font-size:1rem;line-height:1.4;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;
  font-variant-numeric:tabular-nums}   /* every number in the app in the same even digits, so they line up (as in Eagle Budget) */
button,input,select,textarea{font-variant-numeric:inherit}
button,input,select,textarea{font-family:var(--planner-font-family);font-size:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent;border:0;background:none;padding:0;margin:0}
button:disabled{opacity:.5;cursor:default}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
svg.ic{width:1.125rem;height:1.125rem;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.mobile-only,.mobile-only-ic{display:none!important}

/* ---------- Controls ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;padding:0 14px;border-radius:var(--r-md);border:1px solid var(--line-strong);
  background:var(--surface);color:var(--text);font-size:.8125rem;font-weight:500;white-space:nowrap;transition:background-color .12s,border-color .12s,transform .08s}
.btn:hover{background:var(--hover)}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--ink);border-color:var(--ink);color:#fff}
.btn-primary:hover{background:#34342f;border-color:#34342f}
.btn-danger-ghost{border-color:transparent;background:transparent;color:var(--danger)}
.btn-danger-ghost:hover{background:var(--danger-soft)}
.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:var(--r-md);color:var(--text-2);transition:background-color .12s,color .12s}
.iconbtn:hover{background:var(--hover);color:var(--text)}
.iconbtn:active{background:var(--press)}
.iconbtn.active,.iconbtn[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent)}
.pillbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 11px;border-radius:var(--r-md);border:1px solid var(--line-strong);
  background:var(--surface);color:var(--text);font-size:.8125rem;font-weight:500;white-space:nowrap;transition:background-color .12s}
.pillbtn:hover{background:var(--hover)}
.pillbtn svg.ic{width:1rem;height:1rem;color:var(--text-2)}
.seg{display:inline-flex;gap:2px;padding:2px;background:var(--sunken);border-radius:9px}
.seg button{height:28px;padding:0 14px;border-radius:7px;color:var(--text-2);font-size:.8125rem;font-weight:500;transition:color .12s,background-color .12s}
.seg button:hover{color:var(--text)}
.seg button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(24,24,20,.08),0 0 0 .5px rgba(24,24,20,.06)}

/* Checkboxes (tasks, subtasks). Hit area is extended with ::after, never the layout box. */
input[type="checkbox"]:not(.switch){-webkit-appearance:none;appearance:none;position:relative;width:16px;height:16px;min-width:16px;flex:0 0 16px;margin:0;
  border:1.5px solid #b8b8b1;border-radius:5px;background:var(--surface);display:inline-grid;place-content:center;cursor:pointer;vertical-align:middle;
  transition:background-color .12s,border-color .12s}
input[type="checkbox"]:not(.switch)::before{content:"";width:8px;height:4.5px;border-left:1.75px solid #fff;border-bottom:1.75px solid #fff;transform:rotate(-45deg) scale(0);margin-top:-2px;transition:transform .14s var(--ease)}
input[type="checkbox"]:not(.switch)::after{content:"";position:absolute;inset:-8px}
input[type="checkbox"]:not(.switch):hover{border-color:#8d8d86}
input[type="checkbox"]:not(.switch):checked{background:var(--ink);border-color:var(--ink)}
input[type="checkbox"]:not(.switch):checked::before{transform:rotate(-45deg) scale(1)}
input[type="checkbox"]:not(.switch):focus-visible{outline:none;box-shadow:0 0 0 3px var(--accent-ring);border-color:var(--accent)}
/* Switch (Critical, settings) */
input.switch{-webkit-appearance:none;appearance:none;position:relative;width:34px;height:20px;flex:0 0 34px;margin:0;border-radius:999px;background:#d9d9d3;cursor:pointer;transition:background-color .15s}
input.switch::before{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.18);transition:transform .16s var(--ease)}
input.switch:checked{background:var(--ink)}
input.switch:checked::before{transform:translateX(14px)}

/* Form fields */
.fieldrow input:not([type="checkbox"]):not([type="range"]),.fieldrow select,.fieldrow textarea,.ed-field{
  width:100%;min-height:40px;padding:9px 12px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);
  font-size:.875rem;outline:none;transition:border-color .12s,box-shadow .12s}
.fieldrow textarea{resize:vertical;line-height:1.45}
.fieldrow input:focus,.fieldrow select:focus,.fieldrow textarea:focus,.ed-field:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring)}
select{-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2362625c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:32px!important}
input[type="range"]{width:100%;accent-color:var(--ink)}
::placeholder{color:var(--text-3);opacity:1}

/* ---------- App shell + header ---------- */
.app{width:100%;min-height:100vh;display:flex;flex-direction:column;padding:0 14px 14px}
.topbar{display:grid;grid-template-columns:auto auto minmax(12px,1fr) auto minmax(12px,1fr) auto auto auto;grid-template-areas:"brand google . views . period jump actions";
  align-items:center;column-gap:10px;padding:12px 2px 12px}
.tb-brand{display:flex;align-items:center;gap:8px;grid-area:brand;font-size:1rem;font-weight:650;letter-spacing:-.01em;margin-right:6px}
.tb-period{grid-area:period;display:flex;align-items:center;gap:2px}
.weeklabel{min-width:9.5em;text-align:center;font-size:.9375rem;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.tb-jump{grid-area:jump;display:flex;gap:6px}
.tb-actions{grid-area:actions;display:flex;align-items:center;gap:4px}
.tb-jump{margin-right:6px}
.avatarbtn{position:relative;width:32px;height:32px;margin-left:4px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
.avatar{width:30px;height:30px;border-radius:50%;background:var(--sunken);color:var(--text-2);display:flex;align-items:center;justify-content:center;font-size:.6875rem;font-weight:650;letter-spacing:.02em}
.avatar.signed{background:var(--accent-soft);color:var(--accent)}
.avatar svg.ic{width:1rem;height:1rem}
.avatarbtn:hover .avatar{box-shadow:0 0 0 3px var(--hover)}
.syncdot{position:absolute;right:0;bottom:0;width:9px;height:9px;border-radius:50%;background:#c8c8c2;box-shadow:0 0 0 2px var(--bg)}
.syncdot.ok{background:var(--ok)}
.syncdot.busy{background:var(--busy)}
.syncdot.err{background:var(--danger)}

/* ---------- Week board ---------- */
.board{display:grid;grid-template-columns:clamp(200px,16.5vw,250px) repeat(6,minmax(0,1fr));gap:6px;align-items:stretch}
/* Saturday and Sunday share the last column, one above the other, split in the middle. */
.weekendstack{display:flex;flex-direction:column;gap:6px;min-width:0;min-height:calc(100vh - var(--planner-topbar-h,56px) - 16px)}
.weekendstack>.col{flex:1 1 0;min-height:auto}
.col{display:flex;flex-direction:column;min-width:0;min-height:calc(100vh - var(--planner-topbar-h,56px) - 16px);border-radius:var(--r-lg)}
.col.backlog{background:var(--sunken)}
.col.todaycol{background:var(--today-bg);box-shadow:inset 0 0 0 1px rgba(47,100,232,.10)}
.colhead{padding:12px 8px 6px}
.dayhead{display:flex;align-items:center;gap:6px;min-height:28px;padding:0 2px}
.dow{font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-2)}
.dnum{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1}
.dmonth{font-size:.75rem;color:var(--text-3);font-weight:500}
.count{margin-left:auto;font-size:.6875rem;font-weight:500;color:var(--text-3);font-variant-numeric:tabular-nums}
.col.past .dow,.col.past .dnum{color:var(--text-3)}
.col.todaycol .dow{color:var(--accent)}
.col.todaycol .dnum{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 6px;border-radius:999px;background:var(--accent);color:#fff;font-size:.9375rem}
.col.todaycol .count{color:var(--accent)}
.backlog .dayhead .dnum{font-size:.9375rem}
.col{container-type:inline-size}
@container (max-width:112px){.task{padding:7px 7px}.task .taskcheckrail>input[type="checkbox"]{margin-right:6px}}
.tasklist{flex:1;padding:2px 6px 12px;min-height:120px;display:flex;flex-direction:column}
/* Ruled lines under the tasks: the first one is the input, the rest of the column keeps the ruling. */
.quicklines{flex:1;min-height:var(--row,34px);overflow:hidden;cursor:text}
.qrow{height:var(--row,34px);border-bottom:1px solid var(--line)}
.qrow:focus-within{border-bottom-color:var(--accent)}
.quickinput{display:block;width:100%;height:calc(var(--row,34px) - 1px);margin:0;padding:0 8px;border:0;border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:.8125rem;font-weight:400;outline:none}
.quickinput::placeholder{color:transparent}
.quickinput:hover::placeholder{color:var(--text-3)}
.quickinput:focus::placeholder{color:var(--text-3)}

/* ---------- Task card ----------
   Checkbox floats left so the first line sits beside it and further lines use the full
   card width (important in narrow 7-day columns). Controls overlay on hover (desktop) or
   float right (touch) — they never reflow the text on hover. */
.task{position:relative;display:block;min-width:0;margin:0 0 6px;padding:8px 9px 8px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
  box-shadow:var(--shadow-card);font-size:.8125rem;line-height:1.38;cursor:pointer}
.task:hover{border-color:var(--line-strong)}
.task::after{content:"";display:block;clear:both}
.taskcardhead,.taskcheckrail{display:contents}
.task .taskcheckrail>input[type="checkbox"]{float:left;margin:1px 8px 0 0}
.tasktext{display:block;min-width:0;cursor:pointer}
.tasktimeline{font-size:.75rem;font-weight:600;color:var(--text-2);font-variant-numeric:tabular-nums;letter-spacing:.01em;line-height:18px;min-height:18px}
/* Timed tasks: the time is a small accent chip and the card gets a faint blue edge —
   scheduled work catches the eye without competing with Critical (red) or events (colour rule). */
.task.timed{border-color:rgba(47,100,232,.20)}
.task.timed .tasktimeline{display:inline-block;height:18px;padding:0 6px;border-radius:5px;background:var(--accent-soft);color:var(--accent);font-size:.6875rem;font-weight:650;line-height:18px;letter-spacing:.02em}
.task.timed.done{border-color:var(--line)}
.task.timed.done .tasktimeline{background:transparent;padding:0;color:var(--text-3)}
.tasktitleline{font-weight:400;color:var(--text)}
.tasktitletext,.tasknotes,.tasksubtask span{white-space:normal;word-break:normal;overflow-wrap:break-word;hyphens:manual}
.criticalflag{display:inline-flex;vertical-align:-2px;margin-right:4px;color:var(--danger)}
.criticalflag svg.ic{width:.8125rem;height:.8125rem;stroke-width:2}
.tasknotes{margin-top:3px;font-size:.75rem;line-height:1.4;color:var(--text-2);white-space:pre-wrap}
.tasksubtasks{display:flex;flex-direction:column;gap:1px;margin-top:6px}
.tasksubtask{display:grid;grid-template-columns:14px minmax(0,1fr);column-gap:7px;align-items:start;min-height:20px;font-size:.75rem;line-height:1.35;color:var(--text-2);cursor:pointer}
.tasksubtask input[type="checkbox"]{width:14px;height:14px;min-width:14px;flex-basis:14px;border-radius:4px;margin-top:1px}
.tasksubtask input[type="checkbox"]::before{width:7px;height:4px}
.tasksubtask.completed span{text-decoration:line-through;color:var(--text-3)}
.taskmeta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:6px;font-size:.6875rem;color:var(--text-3);font-variant-numeric:tabular-nums}
.taskmeta span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.taskmeta svg.ic{width:.8125rem;height:.8125rem}
.taskmeta .meta-reminder{color:var(--text-2)}
.taskmeta .meta-list{max-width:100%;overflow:hidden;text-overflow:ellipsis}
/* Critical: a left rule + flag, not a red card */
.task.critical{background:#fffbfa;border-color:var(--danger-line);box-shadow:inset 3px 0 0 var(--danger),var(--shadow-card)}
/* Completed */
.task.done{background:transparent;border-color:var(--line);box-shadow:none}
.task.done .tasktitletext{text-decoration:line-through;text-decoration-color:var(--text-3);color:var(--text-3)}
.task.done .tasktitleline,.task.done .tasktimeline,.task.done .tasknotes{color:var(--text-3)}
.task.done .criticalflag{color:var(--text-3)}
/* Item actions: right-click (desktop) / long-press or ⋯ (touch). Cards carry no overlay controls. */
.task:focus{outline:none}
.task:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.itemmenu{position:fixed;z-index:2147483000;width:256px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-pop);font-size:.8125rem;
  animation:menuIn .12s var(--ease);user-select:none;-webkit-user-select:none}
@keyframes menuIn{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
.im-row{display:flex;align-items:center;gap:10px;width:100%;height:32px;padding:0 10px;border-radius:7px;color:var(--text);text-align:left;font-weight:400}
.im-row svg.ic{width:1rem;height:1rem;color:var(--text-2)}
.im-row:hover,.im-row:focus-visible{background:var(--hover);outline:none}
.im-danger{color:var(--danger)}
.im-danger svg.ic{color:var(--danger)}
.im-danger:hover,.im-danger:focus-visible{background:var(--danger-soft)}
.im-sep{height:1px;margin:5px 4px;background:var(--line)}
.im-label{display:block;padding:4px 10px 4px;font-size:.6875rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--text-3)}
.im-chips{display:flex;gap:6px;padding:2px 8px 6px}
.im-chip{flex:1;height:28px;padding:0 8px;border-radius:7px;border:1px solid var(--line-strong);background:var(--surface);font-size:.75rem;font-weight:500;color:var(--text)}
.im-chip:hover{background:var(--hover)}
.im-chip.current{background:var(--sunken);border-color:transparent;color:var(--text-3);opacity:1}
.im-row:disabled{opacity:.32;background:none}
.im-cal{margin:2px 4px 6px;border:1px solid var(--line);box-shadow:none}
.itemmenu .remindercalday{height:30px}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@media (hover:none),(pointer:coarse){
  .task,.calendar-event{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
}
.task.dragging{opacity:.35}
.task.drop-before,.calendar-event.drop-before{box-shadow:0 -2px 0 0 var(--accent),var(--shadow-card)}
.task.drop-after,.calendar-event.drop-after{box-shadow:0 2px 0 0 var(--accent),var(--shadow-card)}

/* ---------- Google Calendar events (read-only context) ---------- */
.calendar-event{position:relative;margin:0 0 6px;padding:5px 8px 6px 10px;border-radius:var(--r-sm);
  background:color-mix(in srgb,var(--evc,var(--event)) 7%,transparent);font-size:.75rem;line-height:1.35;cursor:pointer}
.calendar-event:hover{background:color-mix(in srgb,var(--evc,var(--event)) 11%,transparent)}
.calendar-event .etime{display:block;font-size:.6875rem;font-weight:600;color:var(--text-2);font-variant-numeric:tabular-nums}
.calendar-event .etitle{display:block;font-weight:400;color:var(--text);overflow-wrap:break-word}
.calendar-event .etitle svg.ic{width:.75rem;height:.75rem;margin-left:3px;color:var(--text-3);vertical-align:-1px}
.calendar-event .calname{display:block;margin-top:1px;font-size:.625rem;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- Time blocks ---------- */

/* ---------- Focus view ---------- */
.focusprogress{height:3px;margin:12px 2px 2px;border-radius:999px;background:rgba(47,100,232,.12);overflow:hidden}
.focusprogress span{display:block;height:100%;background:var(--accent);border-radius:inherit}

/* ---------- Month view ---------- */
.monthwrap{display:grid;grid-template-columns:clamp(200px,16.5vw,250px) minmax(0,1fr);gap:6px;align-items:stretch;height:calc(100vh - var(--planner-topbar-h,56px) - 14px);min-height:520px}
.backlogpanel{display:flex;flex-direction:column;min-height:0;overflow:auto;background:var(--sunken);border-radius:var(--r-lg)}
.monthpanel{display:flex;flex-direction:column;min-height:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-card)}
.weekdaybar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid var(--line)}
.weekdaybar div{padding:9px 10px 7px;font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.monthgrid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr))}
.monthday{position:relative;min-width:0;min-height:0;overflow:hidden;padding:6px 6px 4px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);cursor:pointer;background:var(--surface)}
.monthday:nth-child(7n){border-right:0}
.monthday:nth-last-child(-n+7){border-bottom:0}
.monthday:hover{background:#fbfbf9}
.monthday.weekend{background:#fbfbf9}
.monthday.othermonth{background:#f9f9f7}
.monthday.othermonth .daynum{color:var(--text-3)}
.daynum{display:flex;align-items:center;gap:4px;height:22px;margin-bottom:3px;font-size:.75rem;font-weight:600;font-variant-numeric:tabular-nums}
.daynum .dnum{font-size:.75rem;line-height:22px;min-width:22px;text-align:center;border-radius:999px}
.monthday.today .daynum .dnum{background:var(--accent);color:#fff}
.monthday.past:not(.today) .daynum{color:var(--text-3)}
.monthtask,.monthevent{display:flex;align-items:center;gap:5px;height:19px;margin:1px 0;padding:0 4px;border-radius:4px;font-size:.6875rem;white-space:nowrap;overflow:hidden;cursor:pointer}
.monthtask{color:var(--text)}
.monthtask:hover{background:var(--hover)}
.monthtask.done{color:var(--text-3);text-decoration:line-through}
.monthevent{color:var(--text-2)}
.mtime{font-variant-numeric:tabular-nums;color:var(--text-2);font-weight:500}
.monthtask .mtime{color:var(--accent);font-weight:600}
.monthtask.done .mtime{color:var(--text-3)}
.mtext{overflow:hidden;text-overflow:ellipsis}
.more{padding:0 4px;font-size:.625rem;font-weight:600;color:var(--text-3)}
.mobilemeta{display:none}

/* ---------- Overlays / sheets ---------- */
.overlay{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(24,24,20,.30)}
.overlay.open{display:flex}
#dateOverlay{z-index:102}
.sheet{position:relative;width:min(440px,100%);max-height:calc(100svh - 48px);overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;
  background:var(--surface);border-radius:var(--r-xl);box-shadow:var(--shadow-sheet)}
.overlay.open .sheet{animation:sheetIn .18s var(--ease)}
@keyframes sheetIn{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
.sheethead{position:relative;padding:20px 20px 8px}
.sheettask{font-size:1.0625rem;font-weight:650;letter-spacing:-.01em;padding-right:36px}
.sheetnote{margin-top:4px;font-size:.8125rem;line-height:1.45;color:var(--text-2)}
.sheetnote:empty{display:none}
.sheetfooter{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;gap:8px;justify-content:flex-end;margin-top:auto;padding:12px 16px;
  padding-bottom:max(12px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}
.sheetfooter .spacer{flex:1}
.fieldblock{padding:8px 20px 14px}
.fieldblock+.fieldblock{border-top:1px solid var(--line);padding-top:16px}
.fieldlabel{margin:10px 0 6px;font-size:.75rem;font-weight:600;color:var(--text-2)}
.fieldlabel:first-child{margin-top:0}
.fieldlabel .optional{font-weight:500;color:var(--text-3);margin-left:4px}
.fieldrow{display:flex;gap:8px;align-items:center;margin-top:6px}
.datepop{margin-top:6px}
.switchrow{gap:10px;font-size:.875rem;cursor:pointer}
.fieldhint{margin-top:6px;font-size:.75rem;line-height:1.4;color:var(--text-3)}
.reminderstate{min-height:1.2em;margin-top:6px;font-size:.75rem;font-weight:600;color:var(--text-2)}
.reminderstate:empty{min-height:0;margin-top:0}
.notice{margin-top:12px;padding:10px 12px;border-radius:var(--r-md);background:var(--hover);font-size:.8125rem;line-height:1.4}
.signedin{font-size:.9375rem;font-weight:600}

/* ---------- Task editor ---------- */
.editor{width:min(480px,100%)}
.editor .sheethead{padding:16px 20px 0}
.editor .sheettask{font-size:.75rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.ed-title,.ed-notes{display:block;width:100%;margin:0;padding:4px 0;border:0;outline:none;resize:none;overflow:hidden;background:transparent}
.ed-title{font-size:1.1875rem;font-weight:600;letter-spacing:-.01em;line-height:1.35;min-height:2rem}
.ed-notes{margin-top:2px;font-size:.875rem;line-height:1.5;color:var(--text);min-height:2.6rem}
.ed-hint{padding:0 12px 10px 37px;margin-top:-6px;font-size:.75rem;line-height:1.4;color:var(--text-3)}
.ed-hint:empty{display:none}
.ed-sub{padding:0 12px 12px 37px}
.ed-sub .ed-hint{padding:6px 0 0;margin:0}
.ed-pair{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:8px}
.ed-field{min-height:38px;font-size:.875rem}
#reminderDate{cursor:pointer}
.remindercalhead,.remindercalgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.remindercalhead div{padding:4px 0;text-align:center;font-size:.625rem;font-weight:600;color:var(--text-3)}
.remindercalday{display:flex;align-items:center;justify-content:center;height:32px;margin:1px;border-radius:999px;font-size:.8125rem;font-variant-numeric:tabular-nums;cursor:pointer}
.remindercalday:hover{background:var(--hover)}
.remindercalday.out{color:var(--text-3)}
.remindercalday.today{color:var(--accent);font-weight:700}
.remindercalday.selected{background:var(--ink);color:#fff;font-weight:600}
.reminderdatewrap{position:relative}
.remindercalpopup{display:none;margin-top:6px;padding:8px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
.remindercalpopup.open{display:block}
.remindercalnav{display:flex;align-items:center;justify-content:space-between}
.remindercalmonth{font-size:.8125rem;font-weight:600}
.ed-subtasks{padding:4px 12px 8px}
.subtaskseditor{display:flex;flex-direction:column}
.subtaskeditrow{display:flex;align-items:center;gap:10px;min-height:38px;padding-left:2px;border-top:1px solid var(--line)}
.subtaskeditrow:first-child{border-top:0}
.subtaskeditrow input[type="text"]{flex:1;min-width:0;height:36px;padding:0;border:0;outline:none;background:transparent;font-size:.875rem}
.subtaskremove{width:28px;height:28px;border-radius:var(--r-sm);display:inline-flex;align-items:center;justify-content:center;color:var(--text-3)}
.subtaskremove svg.ic{width:.875rem;height:.875rem}
.subtaskremove:hover{background:var(--hover);color:var(--text)}
#addSubtaskBtn{margin:4px 0 0 -6px}
.savestate{padding:0 20px;margin:10px 0 0;color:var(--danger)}

/* ---------- Toast ---------- */
.plannertoast{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:99;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 32px);
  padding:8px 8px 8px 16px;border-radius:10px;background:#1d1d1b;color:#fff;font-size:.8125rem;font-weight:500;box-shadow:var(--shadow-pop);
  transform:translate(-50%,12px);opacity:0;pointer-events:none;transition:opacity .16s var(--ease),transform .16s var(--ease)}
.plannertoast.open{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.plannertoast button{height:30px;padding:0 12px;border-radius:7px;background:rgba(255,255,255,.12);color:#fff;font-weight:600}
.plannertoast button:hover{background:rgba(255,255,255,.2)}

/* ---------- Stability (zero flicker, from V8.68–V8.72 — keep) ---------- */
html{scrollbar-gutter:stable}
body,#root,.board,.monthwrap,.col,.tasklist{overflow-anchor:none!important}
#root{position:relative;align-self:stretch;width:100%;min-height:0;flex:1;display:flex;flex-direction:column;contain:layout paint}
.board,.monthwrap{transform:translateZ(0)}
#root>.board,#root>.monthwrap{will-change:transform;transition:none!important;animation:none!important}
.task,.calendar-event,.col,.monthday,.colhead,.tasklist{animation:none!important;transition:none!important}
.topbar{height:var(--planner-topbar-h,auto);min-height:var(--planner-topbar-h,0);overflow:visible}

/* ---------- Mobile ---------- */
@media (max-width:760px){
  .quickinput{font-size:1rem}
  .mobile-only{display:inline-flex!important}
  .mobile-only-ic{display:inline-block!important}
  html{scrollbar-gutter:auto}
  .app{padding:0 0 calc(12px + env(safe-area-inset-bottom))}
  /* Row 1: period + actions · Row 2: views · Row 3: ‹ General Today › */
  .topbar{grid-template-columns:44px minmax(0,1fr) auto auto 44px;grid-template-areas:"label label google actions actions" "views views views views views" "prev jump jump jump next";
    row-gap:10px;column-gap:8px;padding:max(10px,env(safe-area-inset-top)) 12px 10px}
  .tb-brand{display:none}
  .tb-period{display:contents}
  .weeklabel{grid-area:label;min-width:0;text-align:left;padding:0 2px;font-size:1.0625rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tb-period #prev{grid-area:prev}.tb-period #next{grid-area:next}
  .tb-period .iconbtn{width:44px;height:40px;border:1px solid var(--line-strong);background:var(--surface);color:var(--text)}
  .tb-actions{justify-self:end}
  .tb-jump{gap:8px;margin-right:0}
  .tb-jump .pillbtn{flex:1;height:40px;font-size:.875rem}
  .tb-actions{gap:0}
  .iconbtn,.avatarbtn{width:40px;height:40px}
  /* Phone Week: one vertical list — General first, then Mon…Sun stacked (like Focus). */
  .board{display:flex;flex-direction:column;gap:12px;padding:2px 12px 16px}
  .weekendstack{display:contents}
  .col{flex:none;width:100%;min-width:0;min-height:0}
  .board .tasklist{min-height:56px}
  .colhead{padding:14px 10px 6px}
  .dnum{font-size:1.375rem}
  .col.todaycol .dnum{min-width:32px;height:32px;font-size:1.0625rem}
  .tasklist{padding:2px 8px 16px}
  .task{font-size:.9375rem;line-height:1.4;padding:11px 12px;margin-bottom:8px}
  .task .taskcheckrail>input[type="checkbox"]{width:22px;height:22px;min-width:22px;flex-basis:22px;border-radius:7px;margin:-1px 10px -6px 0}
  .task .taskcheckrail>input[type="checkbox"]::before{width:10px;height:5.5px;border-width:2px}
  .task .taskcheckrail>input[type="checkbox"]::after{inset:-11px}
  .tasktimeline{font-size:.8125rem;line-height:22px}
  .task.timed .tasktimeline{height:22px;line-height:22px;padding:0 8px;font-size:.8125rem;border-radius:6px}
  .task.timed.done .tasktimeline{padding:0}
  .tasktitleline{line-height:1.4}
  .task .tasktimeline+.tasktitleline{margin-top:2px}
  .tasknotes,.tasksubtask{font-size:.8125rem}
  .tasksubtask{grid-template-columns:20px minmax(0,1fr);min-height:32px;align-items:center}
  .tasksubtask input[type="checkbox"]{width:18px;height:18px;min-width:18px;flex-basis:18px;margin-top:0}
  .tasksubtask input[type="checkbox"]::after{inset:-12px}
  .taskmeta{font-size:.75rem}
  .calendar-event{font-size:.875rem;padding:8px 10px 8px 12px}
  .calendar-event .etime{font-size:.75rem}
  .monthwrap{display:block;height:auto;min-height:0;padding:0 12px}
  .monthwrap .backlogpanel{display:none}
  .monthpanel{border-radius:var(--r-lg)}
  .weekdaybar div{padding:8px 0 6px;text-align:center;font-size:.625rem}
  .monthgrid{grid-template-rows:none}
  .monthday{height:clamp(54px,8.6svh,68px);padding:5px 3px 3px}
  .daynum{justify-content:center;height:24px;margin-bottom:2px}
  .daynum .dnum{font-size:.8125rem;line-height:24px;min-width:24px}
  .monthtask,.monthevent,.monthday .more{display:none}
  .mobilemeta{display:flex;justify-content:center;gap:3px;flex-wrap:wrap;margin-top:2px}
  .mobilemeta span{width:5px;height:5px;border-radius:50%;background:var(--text-2)}
  .mobilemeta span.gcal{background:var(--evc,var(--event))}
  .mobilemeta span.crit{background:var(--danger)}
  .overlay{align-items:flex-end;padding:0}
  .sheet,.editor{width:100%;max-height:94svh;border-radius:var(--r-xl) var(--r-xl) 0 0}
  .sheet::before{content:"";position:sticky;top:0;display:block;flex:0 0 auto;width:36px;height:4px;margin:8px auto -4px;border-radius:999px;background:#d6d6d0;z-index:4}
  .overlay.open .sheet{animation:sheetUp .22s var(--ease)}
  @keyframes sheetUp{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
  .sheetfooter .btn{flex:1;height:var(--tap);font-size:.9375rem}
  .sheetfooter .spacer{display:none}
  .btn{height:40px}
  /* 16px minimum on every input: iOS Safari never zooms. */
  input:not([type="checkbox"]):not([type="range"]),select,textarea,.ed-field,.subtaskeditrow input[type="text"]{font-size:max(16px,1rem)!important}
  .ed-title{font-size:max(19px,1.1875rem)!important}
  .remindercalday{height:40px;font-size:.9375rem}
  .subtaskeditrow{min-height:var(--tap)}
  .plannertoast{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  /* 44px minimum touch targets. Where the visual size is smaller, the hit area is extended. */
  .tb-jump .pillbtn,.remindercalday{height:44px}
  .iconbtn,.avatarbtn,.seg button{position:relative}
  .iconbtn::after,.avatarbtn::after,.seg button::after{content:"";position:absolute;inset:-2px}
  .tasksubtask input[type="checkbox"]::after{inset:-13px}
}
@media (max-width:380px){
  .ed-hint,.ed-sub{padding-left:12px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* ---------- Notebook rows (V9.5) ----------
   Tasks, Google events and time blocks are written on the ruled lines instead of sitting in
   cards: no box, just a rule underneath. JS (snapRows) makes every row a whole number of
   lines and starts each list on the shared grid, so the ruling continues across columns. */
:root{--row:34px}
.tasklist{padding:0 6px 12px}
.tasklist .task,.tasklist .calendar-event{margin:0;min-height:var(--row);border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent}
.tasklist .task{padding:7px 8px 6px}
.tasklist .task:hover,.tasklist .task.timed,.tasklist .task.done{border-color:var(--line);background:transparent}
.tasklist .task:hover{background:rgba(24,24,20,.03)}
.tasklist .task.critical{background:transparent;box-shadow:inset 2.5px 0 0 var(--danger);padding-left:11px}
.tasklist .calendar-event{padding:7px 8px 6px 11px;box-shadow:none}
.tasklist .calendar-event:hover{background:color-mix(in srgb,var(--evc,var(--event)) 6%,transparent)}
.tasklist .task.drop-before{box-shadow:0 -2px 0 0 var(--accent)}
.tasklist .task.drop-after,.tasklist .calendar-event.drop-after{box-shadow:0 2px 0 0 var(--accent)}
.quicklines{margin-top:0}
@media (max-width:760px){
  :root{--row:var(--tap)}
  .tasklist{padding:0 8px 16px}
  .tasklist .task{padding:11px 12px 11px}
  .tasklist .task.critical{padding-left:14px}
  .tasklist .calendar-event{padding:11px 10px 10px 13px}
}

/* ---------- One line per item (V9.6) ----------
   Every task, event and block is exactly one ruled line: name (truncated) plus small markers.
   Notes, subtasks and list names live in the editor. */
.meta-notes{display:none}
.tasklist .task{display:flex;align-items:center;gap:7px;padding:0 8px;white-space:nowrap}
.tasklist .task::after{display:none}
.tasklist .task .taskcheckrail>input[type="checkbox"]{float:none;margin:0;flex:none}
.tasklist .tasktext{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
.tasklist .tasktimeline{flex:none;min-height:0}
.tasklist .tasktitleline{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tasklist .tasktitletext{white-space:nowrap}
.tasklist .tasknotes,.tasklist .tasksubtasks,.tasklist .taskmeta .meta-list{display:none}
.tasklist .taskmeta{flex:none;flex-wrap:nowrap;gap:6px;margin:0}
.tasklist .taskmeta .meta-notes{display:inline-flex}
.tasklist .taskmeta .meta-reminder{font-size:0;gap:0}
.tasklist .task.critical{padding-left:11px}
.tasklist .calendar-event{display:flex;align-items:center;gap:6px;padding:0 8px 0 11px;white-space:nowrap}
.tasklist .calendar-event .etime{flex:none}
.tasklist .calendar-event .etitle{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.tasklist .calendar-event .calname{display:none}
@media (max-width:760px){
  .tasklist .task{padding:0 12px}
  .tasklist .task.critical{padding-left:14px}
  .tasklist .calendar-event{padding:0 10px 0 13px}
}
/* Narrow day columns: the name gets the room — plain time, no markers, no "All day" label. */
.tasklist .tasktitleline{min-width:2.5em}
.tasklist .calendar-event .etime.allday{display:none}
@container (max-width:170px){
  .tasklist .taskmeta{display:none}
  .tasklist .task.timed .tasktimeline{padding:0;background:none}
  .tasklist .task,.tasklist .tasktext,.tasklist .calendar-event{gap:5px}
}

/* Timed tasks: a blue time is enough (9.22.9: no rules — only an open Important task has a red one). */
.task.timed .tasktimeline{background:var(--timed-soft);color:var(--timed-text)}
.task.timed.done .tasktimeline{background:transparent;color:var(--text-3)}
@media (max-width:760px){.tasklist .task.timed{padding-left:14px}}
@container (max-width:170px){.tasklist .task.timed .tasktimeline{background:none}}

/* ---------- Repeating tasks (V9.7) ---------- */
.taskmeta .meta-repeat{color:var(--text-2)}
.tasklist .taskmeta .meta-repeat{font-size:0;gap:0}
.repeatdays{display:flex;flex-wrap:wrap;gap:6px;padding:4px 12px 10px 38px}
.repeatdays[hidden]{display:none}
.repeatdays button{height:30px;min-width:44px;padding:0 10px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);font-size:.75rem;font-weight:600;color:var(--text-2)}
.repeatdays button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.scopeback{position:fixed;inset:0;z-index:2147483200;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(24,24,20,.32);animation:fadeIn .14s var(--ease)}
.scopebox{width:100%;max-width:360px;padding:18px;border-radius:var(--r-xl);background:var(--surface);box-shadow:var(--shadow-pop)}
.scopetitle{font-size:1rem;font-weight:650;color:var(--text)}
.scopenote{margin:4px 0 14px;font-size:.875rem;color:var(--text-2)}
.scopebtns{display:flex;flex-direction:column;gap:8px}
.scopebtns .btn{width:100%;justify-content:center;height:40px}
@media (max-width:760px){
  .repeatdays{padding:4px 12px 12px}
  .repeatdays button{height:40px;min-width:48px;font-size:.875rem}
  .scopebtns .btn{height:48px;font-size:1rem}
}
/* List colours */
.swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}
.swatch{height:40px;border-radius:10px;background:var(--sw);border:2px solid transparent;box-shadow:inset 0 0 0 2px rgba(255,255,255,.0)}
.swatch.on{border-color:var(--ink);box-shadow:inset 0 0 0 2px #fff}
.swatch:hover{filter:brightness(1.06)}
.scopebox>.btn{width:100%;justify-content:center}
/* List switcher menu: list names regular, actions smaller and lighter */
.listmenu{width:220px}
.listmenu .lm-action{height:30px;font-size:.8125rem;font-weight:400;color:var(--text-2)}
.listmenu .lm-action svg.ic{width:.875rem;height:.875rem;color:var(--text-3)}
@media (max-width:760px){.listmenu{width:240px}.listmenu .im-row{height:44px}.listmenu .lm-action{font-size:.9375rem}}

/* Brand mark next to the name */
.tb-logo{width:30px;height:30px;flex:none}
.tb-brand span{white-space:nowrap}

.listmenu .im-label{padding:6px 10px 4px}

/* ---------- Notes: full-screen writer + formatted reading (9.11) ---------- */
.notesfull{position:fixed;inset:0;z-index:2147483100;display:flex;flex-direction:column;background:var(--surface);animation:fadeIn .14s var(--ease)}
.notesfull[hidden]{display:none}
.nf-head{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid var(--line)}
.nf-title{flex:1;min-width:0;font-size:1.0625rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nf-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 20px;border-bottom:1px solid var(--line)}
.nf-tools button{height:32px;min-width:40px;padding:0 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font:inherit;font-size:.8125rem;color:var(--text);cursor:pointer}
.nf-tools button:hover{background:var(--hover)}
.nf-tools[hidden]{display:none}
.nf-body{flex:1;min-height:0;overflow:auto;display:flex;justify-content:center}
#notesFull{width:min(760px,100%);min-height:100%;padding:28px 24px 80px;border:0;outline:none;resize:none;background:transparent;font:inherit;font-size:1rem;line-height:1.65;color:var(--text)}
.notesrender{font-size:.9375rem;line-height:1.6;color:var(--text)}
.notesrender .nr-h{font-weight:700;margin:14px 0 4px;line-height:1.3}
.notesrender .nr-h1{font-size:1.375em}.notesrender .nr-h2{font-size:1.15em}.notesrender .nr-h3{font-size:1em}
.notesrender .nr-h:first-child{margin-top:0}
.notesrender .nr-li{display:flex;gap:8px}
.notesrender .nr-mark{flex:0 0 auto;min-width:1.1em;color:var(--text-3);font-variant-numeric:tabular-nums}
.notesrender .nr-hr{height:1px;margin:12px 0;background:var(--line-strong)}
.notesrender .nr-gap{height:.6em}
.notesrender b{font-weight:700}
@media (max-width:640px){.nf-head,.nf-tools{padding-left:16px;padding-right:16px}#notesFull{padding:20px 16px 80px}}

/* ---------- One screen (9.12): Everything else = projects; week title zooms to month ---------- */
.topbar [hidden]{display:none!important}
button.weeklabel{border:0;background:transparent;font:inherit;color:inherit;cursor:pointer;border-radius:8px;padding:2px 8px}
button.weeklabel:hover{background:var(--hover)}
.backlog .groups{display:flex;flex-direction:column;padding:0 6px 12px}
.grp+.grp{margin-top:8px}
.ghead{display:flex;align-items:center;height:var(--row,34px);border-bottom:1.5px solid var(--line-strong)}
.ghead.drop{background:var(--accent-soft)}
.gtoggle{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:100%;padding:0 6px 0 8px;border:0;background:transparent;font:inherit;font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-2);cursor:pointer;text-align:left}
.gname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gdot{flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:var(--lc,var(--text-3))}
.gdot.none{background:transparent;box-shadow:inset 0 0 0 1.5px var(--text-3)}
.gcount{margin-left:auto;font-weight:600;letter-spacing:0;color:var(--text-3)}
.gtoggle .gchev{flex:0 0 auto;width:13px;height:13px;color:var(--text-3);transition:transform .15s}
.ghead.collapsed .gchev{transform:rotate(-90deg)}
.gmore{flex:0 0 auto;width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:var(--text-3);cursor:pointer;opacity:0}
.ghead:hover .gmore,.gmore:focus-visible{opacity:1}
.gmore:hover{background:var(--press);color:var(--text)}
.backlog .grouplist,.gdonelist.tasklist{flex:none;min-height:0;padding:0}
.backlog .grouplist .quicklines{flex:none}
.gdone{display:block;width:100%;height:28px;padding:0 8px;border:0;background:transparent;text-align:left;font:inherit;font-size:.75rem;font-weight:600;color:var(--text-3);cursor:pointer}
.gdone:hover{color:var(--text-2)}
.profilemenu{min-width:240px}
@media (min-width:761px){
  .topbar{grid-template-columns:minmax(0,1fr) auto auto minmax(0,1fr);grid-template-areas:"brand period jump actions"}
  .tb-actions{justify-self:end}
  .tb-period{gap:6px}
  .weeklabel{font-size:1.0625rem;font-weight:700}
}
@media (max-width:760px){
  .topbar{grid-template-columns:44px minmax(0,1fr) auto auto 44px;grid-template-areas:"label label label actions actions" "prev jump jump jump next"}
}

/* ---------- Day focus (9.12): one day wide, the others as strips ---------- */
.dayfocusable{cursor:pointer;border-radius:8px}
.dayfocusable:hover{background:var(--hover)}
.board.focused{display:flex;gap:8px}
.board.focused>.col.backlog{flex:0 0 clamp(220px,18vw,280px)}
.board.focused>.focuscol{flex:1 1 auto;min-width:0;background:var(--surface);border-radius:16px;box-shadow:0 0 0 1px var(--line),0 1px 3px rgba(24,24,20,.05)}
.board.focused>.focuscol .colhead{padding:16px 16px 8px}
.board.focused>.focuscol .dnum{font-size:1.375rem;font-weight:700;min-width:0;height:auto;padding:0;background:none;color:var(--text)}
.board.focused>.focuscol.todaycol .dnum{color:var(--accent)}
.board.focused>.focuscol .dmonth{font-size:.875rem;margin-left:4px}
.board.focused>.focuscol .tasklist{--row:42px;padding:0 14px 16px}
.board.focused>.focuscol .task,.board.focused>.focuscol .quickinput{font-size:.9375rem}
.focusprogress{height:4px;margin:10px 2px 2px;border-radius:2px;background:var(--accent-soft);overflow:hidden}
.focusprogress>span{display:block;height:100%;background:var(--accent);border-radius:2px}
.daystrip{flex:0 0 58px;display:flex;flex-direction:column;align-items:center;gap:6px;padding-top:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font:inherit;color:var(--text);cursor:pointer;min-height:calc(100vh - var(--planner-topbar-h,56px) - 16px)}
.daystrip:hover,.daystrip.drop{border-color:var(--accent-ring);background:var(--accent-soft)}
.ds-dow{font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.ds-num{font-size:1.25rem;font-weight:700;font-variant-numeric:tabular-nums}
.daystrip.today .ds-dow,.daystrip.today .ds-num{color:var(--accent)}
.daystrip.past .ds-num{color:var(--text-3)}
.ds-count{min-width:20px;padding:1px 6px;border-radius:9px;background:var(--sunken);font-size:.6875rem;font-weight:700;color:var(--text-2)}
.ds-count:empty{visibility:hidden}
.ds-count.crit{background:var(--danger-soft);color:var(--danger)}
@media (max-width:760px){.board.focused{flex-direction:column}.daystrip{min-height:0;flex-direction:row;padding:10px 14px;justify-content:flex-start;gap:12px}.board.focused>.col.backlog{flex:none}}
.board.focused>.focuscol .calendar-event{font-size:.875rem}
/* Safari shows a grey tooltip with the full text over any text cut with "…". An empty block inside
   the cut element switches that off (the hover card already shows everything). */
.tasklist .tasktitleline::after,.tasklist .calendar-event .etitle::after,.mtext::after,.gname::after{content:"";display:block;height:0}

/* ---------- Writing like a person (9.15): live colours on the empty line ---------- */
.quickwrap{position:relative}
.quickmirror{position:absolute;inset:0;padding:0 8px;display:block;white-space:pre;overflow:hidden;pointer-events:none;font:inherit;font-size:.8125rem;font-weight:400;line-height:calc(var(--row,34px) - 1px);color:var(--text)}
.quickinput.painted{color:transparent;caret-color:var(--text);position:relative}
.quickinput.painted::selection{color:transparent;background:var(--accent-ring)}
.qk{border-radius:4px} /* colour only: same width as the typed text, so the caret stays in place */
.qk-date,.qk-time,.qk-repeat,.qk-remind{color:var(--accent)}
.qk-critical{color:var(--danger)}
.qk-money{color:var(--ok)}
.qk-project{color:var(--accent)}
.board.focused>.focuscol .quickmirror{font-size:.9375rem}
@media (max-width:760px){.quickmirror{font-size:1rem}}
.taskmeta .meta-money{color:var(--text);font-weight:650}
.task.done .taskmeta .meta-money{color:var(--text-3)}
@container (max-width:170px){.tasklist .taskmeta:has(.meta-money){display:flex}.tasklist .taskmeta>:not(.meta-money){display:none}}
.tb-period .periodmoney{font-size:.8125rem;font-weight:650;color:var(--ok);white-space:nowrap;font-variant-numeric:tabular-nums;margin:0 4px}
.tb-period .periodmoney[hidden]{display:none}
.ghead{position:relative}
.gprogress{position:absolute;left:8px;right:8px;bottom:-1.5px;height:2.5px;border-radius:2px;background:transparent;overflow:hidden}
.gprogress>span{display:block;height:100%;background:var(--accent);border-radius:2px}
/* Project colour (9.20.1): the tick is always there, as on the phone; a project's tasks have it in the project's colour. */
.task.hasproj .taskcheckrail>input[type="checkbox"]:not(:checked){border-color:var(--lc)}
/* ---------- A whole project (9.16) ---------- */
.gfold{flex:0 0 auto;width:26px;height:26px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:var(--text-3);cursor:pointer}
.gfold:hover{background:var(--press);color:var(--text)}
.ghead.collapsed .gfold .gchev{transform:rotate(-90deg)}
.gfold .gchev{width:13px;height:13px;transition:transform .15s}
.gtoggle:hover .gname{color:var(--text)}
.gtoggle.on .gname{color:var(--accent)}
.board.projectmode>.projcol{flex:1 1 auto;min-width:0;background:var(--surface);border-radius:16px;box-shadow:0 0 0 1px var(--line),0 1px 3px rgba(24,24,20,.05)}
.projhead{padding:16px 20px 8px}
.projtitle{display:inline-flex;align-items:center;gap:10px;border:0;background:transparent;padding:2px 6px;margin-left:-6px;border-radius:8px;font:inherit;font-size:1.375rem;font-weight:700;color:var(--text);cursor:pointer}
.projtitle:hover{background:var(--hover)}
.projtitle .gdot{width:10px;height:10px}
.projbody{padding:0 14px 24px;overflow:auto}
.projsec{margin-top:14px}
.projsechead{padding:0 6px 6px;font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);border-bottom:1.5px solid var(--line-strong)}
.projsechead:empty{display:none}
.projcol .projlist{--row:42px;flex:none;min-height:0;padding:0}
.projcol .projlist .quicklines{flex:none}
.projcol .task,.projcol .quickinput{font-size:.9375rem}
.projday{flex:0 0 auto;min-width:7.5em;font-size:.8125rem;font-weight:600;color:var(--text-2);font-variant-numeric:tabular-nums}
.projday.late{color:var(--danger)}
.projdonebtn{margin-top:14px}
/* Wide rows (9.16.1): notes and subtasks unfold under the task from its marker — no hover card. */
.projcol .taskmeta .meta-notes,.projcol .taskmeta .meta-subtasks,.focuscol .taskmeta .meta-notes,.focuscol .taskmeta .meta-subtasks{cursor:pointer;padding:3px 5px;margin:-3px -5px;border-radius:6px}
.projcol .taskmeta .meta-notes:hover,.projcol .taskmeta .meta-subtasks:hover,.focuscol .taskmeta .meta-notes:hover,.focuscol .taskmeta .meta-subtasks:hover{background:var(--hover);color:var(--text)}
.projcol .task.expanded,.focuscol .task.expanded{flex-wrap:wrap;align-items:flex-start;white-space:normal;padding-top:11px;padding-bottom:12px}
.projcol .task.expanded .tasktext,.focuscol .task.expanded .tasktext{flex-wrap:wrap;row-gap:8px}
.projcol .task.expanded .tasknotes,.focuscol .task.expanded .tasknotes,.projcol .task.expanded .tasksubtasks,.focuscol .task.expanded .tasksubtasks{display:block;flex:1 0 100%;order:10;white-space:normal;font-size:.875rem;color:var(--text)}
.projcol .task.expanded .tasksubtasks,.focuscol .task.expanded .tasksubtasks{order:11;display:flex;flex-direction:column;gap:6px}
.projcol .task.expanded .meta-notes,.focuscol .task.expanded .meta-notes,.projcol .task.expanded .meta-subtasks,.focuscol .task.expanded .meta-subtasks{background:var(--accent-soft);color:var(--accent)}
/* The top bar stays put while the page scrolls (9.16.4). */
.topbar{position:sticky;top:0;z-index:60;background:var(--bg)}

/* 9.17 — picking tasks to copy / send */
.task.selected{background:color-mix(in srgb,#2f6fed 10%,var(--surface,#fff))!important;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,#2f6fed 55%,transparent)!important;border-radius:8px}
.task.selected .taskcheckrail input[type=checkbox]{opacity:1!important;border-color:#2f6fed!important;background:#2f6fed!important}
.task.selected .taskcheckrail input[type=checkbox]::before{display:block!important;transform:rotate(-45deg) scale(1)}
body.selecting .task{cursor:default;user-select:none;-webkit-user-select:none}
body.selecting .task .taskcheckrail input[type=checkbox]{opacity:1}

/* 9.17.1 — the day / "Всичко останало" / project headers stay under the top bar while scrolling */
@media (min-width:761px){
  .col>.colhead{position:sticky;top:var(--planner-topbar-h,56px);z-index:5;background:var(--bg);border-radius:var(--r-lg) var(--r-lg) 0 0}
  .col.backlog>.colhead{background:var(--sunken)}
  .col.todaycol>.colhead{background:var(--today-bg)}
  .col.projcol>.colhead{background:var(--surface)}
}

.selpopdot{width:10px;height:10px;border-radius:50%;flex:0 0 10px;margin:0 4px}
.selpopdot.none{box-shadow:inset 0 0 0 1.5px var(--text-3)}
/* 9.18.1 — the task Shift+↑/↓ is moving from */
.task.selected.selcursor{box-shadow:inset 0 0 0 2px #2f6fed!important}

.pfmenu{width:240px}
.pfrow .pftick{margin-left:auto;display:inline-flex;color:var(--accent)}
.pfrow .pftick .ic{width:15px;height:15px}

/* 9.20 — the ПРОЕКТИ row under "Всичко останало" (which projects show · new project) */
.projrow{display:flex;align-items:center;gap:2px;height:30px;margin:8px 2px 0;padding:0 0 0 6px;border-radius:8px}
.projrowlabel{flex:1;min-width:0;font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.projrow.filtered .projrowlabel{flex:0 0 auto;margin-right:6px}
.projrowbtn{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:var(--text-3);cursor:pointer}
.projrowbtn:hover{background:var(--press,rgba(0,0,0,.06));color:var(--text)}
.projrowbtn .ic{width:15px;height:15px}
.projrowshown{flex:1;min-width:0;display:flex;align-items:center;gap:5px;height:26px;padding:0 8px;border:0;border-radius:999px;background:var(--surface);box-shadow:0 0 0 1px var(--line);font:inherit;font-size:.75rem;font-weight:600;color:var(--text);cursor:pointer}
.projrowshown .pfname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.projrowshown .pfdot{width:8px;height:8px;border-radius:50%;flex:0 0 8px}
.projrowshown .pfdot.none{box-shadow:inset 0 0 0 1.5px var(--text-3)}
.projrowshown:hover{box-shadow:0 0 0 1px var(--line-strong,var(--line))}

/* 9.21 — calendar events look like tasks: a tick (in the calendar's colour), the time as a chip, the name,
   and a small calendar mark on the right; ticked ones fade and are struck through like done tasks. */
.tasklist .calendar-event{font-size:.8125rem;line-height:1.4}
.tasklist .calendar-event .etime:not(.allday){display:inline-block;height:18px;padding:0 6px;border-radius:5px;background:var(--accent-soft);color:var(--accent);font-size:.6875rem;font-weight:650;line-height:18px;letter-spacing:.02em}
.tasklist .calendar-event .etitle{font-weight:400}
.calendar-event .eventmark{flex:none;width:12px;height:12px;color:var(--text-3)}
.calendar-event.done .etitle{text-decoration:line-through;text-decoration-color:var(--text-3);color:var(--text-3)}
.calendar-event.done .etime,.tasklist .calendar-event.done .etime:not(.allday){background:transparent;padding:0;color:var(--text-3)}

/* 9.21.1 — one straight column of ticks: every row starts its tick at the same place, whatever its
   left rule (timed, important, calendar event) or colour; all ticks the same size and border. */
.tasklist .task,.tasklist .task.timed,.tasklist .task.critical,.tasklist .calendar-event{padding-left:11px}
.tasklist .task .taskcheckrail>input[type="checkbox"]{width:16px;height:16px;min-width:16px;flex:0 0 16px;border-width:1.5px;margin:0}
.tasklist .taskcheckrail{flex:none;display:flex;align-items:center}

/* 9.21.2 — Saturday and Sunday share the height of the SCREEN (half each), not of the tallest column:
   a long "Всичко останало" no longer pushes Sunday below the fold. A full Saturday still grows. */
@media (min-width:761px){
  .board>.weekendstack{align-self:stretch}
  .weekendstack>.col{flex:none}  /* heights: fitWeekend() in ui.js (whole rows, half the screen each) */
  .weekendstack>.col.weekend-second{flex:1 0 auto}  /* Sunday's lines run on to the bottom, like every other day */
}

/* 9.22 — the quiet task editor: the task's content first, everything else on thin grey rows. */
.sheet.editor.quiet{width:min(460px,100%);padding:22px 26px 14px;gap:0}
.ed-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px}
.ed-context{font-size:.8125rem;font-weight:500;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-done{flex:none;border:0;background:none;padding:0;font:inherit;font-size:.875rem;font-weight:600;color:var(--accent);cursor:pointer}
.sheet.editor.quiet .ed-title{margin-top:12px;font-size:1.375rem;font-weight:700;letter-spacing:-.015em;line-height:1.3;min-height:0}
.ed-noteswrap{position:relative;margin-top:14px}
.sheet.editor.quiet .ed-notes{margin:0;padding:0 30px 0 0;font-size:.875rem;line-height:1.55;color:#3a3a36;min-height:1.4rem}
.ed-expand{position:absolute;top:-3px;right:-6px;width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:var(--text-3);cursor:pointer}
.ed-expand:hover{background:var(--hover);color:var(--text)}
.ed-expand .ic{width:15px;height:15px}
.ed-subtasks{margin-top:10px}
.sheet.editor.quiet .subtaskeditrow{min-height:34px;border-top:0;gap:10px;padding-left:0}
.sheet.editor.quiet .subtaskeditrow input[type="text"]{height:32px}
.ed-addsub{display:flex;align-items:center;gap:10px;height:34px;padding:0;border:0;background:none;font:inherit;font-size:.875rem;color:var(--text-3);cursor:pointer}
.ed-subbox{width:16px;height:16px;border:1.5px solid #d4d4ce;border-radius:5px;box-sizing:border-box}
.ed-quietrows{margin-top:22px}
.ed-q{display:flex;align-items:center;width:100%;height:40px;padding:0;border:0;border-top:1px solid var(--line);background:none;font:inherit;font-size:.875rem;color:var(--text-2);text-align:left;cursor:pointer}
.ed-q[hidden]{display:none}
.ed-ql{flex:1;color:#6f6f69}
.ed-qv{color:var(--text-3)}
.ed-qinput{flex:none;max-width:60%;height:30px;border:0;outline:none;background:transparent;font:inherit;font-size:.875rem;color:var(--text-3);text-align:right;text-align-last:right;cursor:pointer;-webkit-appearance:none;appearance:none;padding:0}
.ed-qinput{width:50%;cursor:text}
.ed-qinput::placeholder{color:var(--text-3)}
.ed-qinput:focus{color:var(--text)}
.sheet.editor.quiet #reminderFields{padding:4px 0 10px}
.sheet.editor.quiet #reminderFields .ed-hint,.sheet.editor.quiet #reminderFields .reminderstate{display:none}
.sheet.editor.quiet .repeatdays{margin:2px 0 10px}
.remchooser{display:flex;flex-direction:column;margin:2px 0 8px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:var(--shadow-pop)}
.remopt{display:flex;align-items:center;justify-content:space-between;height:36px;padding:0 10px;border:0;border-radius:7px;background:none;font:inherit;font-size:.875rem;color:var(--text);text-align:left;cursor:pointer}
.remopt:hover{background:var(--hover)}
.remopt.on{font-weight:600}
.remopt .ic{width:15px;height:15px;color:var(--accent)}
.sheet.editor.quiet .savestate:empty{display:none}
.sheet.editor.quiet .subtaskeditrow input[type="checkbox"]{margin:0;flex:0 0 16px}
.sheet.editor.quiet .subtaskeditrow input[type="text"]{padding:0;margin:0}
.ed-addsub .ed-subbox{flex:0 0 16px}
.sheet.editor.quiet .subtaskseditor{padding:0;margin:0}
.sheet.editor.quiet .subtaskeditrow{padding:0;margin:0}
.sheet.editor.quiet .ed-subtasks{padding:0;border:0;background:none;margin-left:0;margin-right:0}
.sheet.editor.quiet .ed-addsub{margin:0;width:auto}
.sheet.editor.quiet #addSubtaskBtn{margin:0}
.sheet.editor.quiet .ed-expand{right:0}

/* 9.22.7 — quiet time in the editor (like the notes: plain text, grey "Час" until written) */
/* Event rows are built exactly like task rows: tick → (7px) → time → (6px) → name; narrow columns: 5px and a plain time. */
.tasklist .calendar-event{gap:6px}
.tasklist .calendar-event .evmark{margin-right:1px}
@container (max-width:170px){
  .tasklist .calendar-event{gap:5px}
  .tasklist .calendar-event .evmark{margin-right:0}
  .tasklist .calendar-event .etime:not(.allday){padding:0;background:none;height:auto}
}
/* A task with notes shows a small notes mark on its row, also in narrow columns. */
@container (max-width:170px){.tasklist .taskmeta:has(.meta-notes){display:flex}.tasklist .taskmeta>:not(.meta-money):not(.meta-notes){display:none}}
@container (max-width:170px){.tasklist .taskmeta>.meta-notes{display:inline-flex}}

/* 9.22.8 — calendar events: the same blue rule as timed tasks and a plain grey tick; the calendar mark on the right says where it is from. */
.tasklist .calendar-event:hover{background:transparent}

/* 9.22.9 — the only rule on a row: red, for an Important task that is not done yet. */
.tasklist .task.done.critical,.task.done.critical{box-shadow:none}
/* 9.22.10 — order: name → notes → time → subtasks; the same 14px between them */
.sheet.editor.quiet .ed-noteswrap{margin-top:14px}
.sheet.editor.quiet .ed-subtasks{margin-top:10px}
.sheet.editor.quiet .ed-notes{line-height:22px}
.sheet.editor.quiet .ed-subtasks{margin-top:5px}  /* a subtask row is 34px with its box centred: the visible gap is 14px like the others */
.sheet.editor.quiet .ed-title{line-height:28px}

/* 9.23 — notes edited like in Word: formatted as you type, no marks. Same look as the rendered notes. */
.notesrich{outline:none;white-space:pre-wrap;overflow-wrap:break-word;cursor:text}
.notesrich.empty:before,.notesrich:empty:before{content:attr(data-placeholder);color:var(--text-3);pointer-events:none}
.notesrich h3{font-size:1.15em;font-weight:700;line-height:1.3;margin:14px 0 4px}
.notesrich h3:first-child{margin-top:0}
.notesrich ul,.notesrich ol{margin:2px 0;padding-left:1.5em}
.notesrich li{margin:0;padding-left:.15em}
.notesrich li::marker{color:var(--text-3)}
.notesrich hr{border:0;height:1px;margin:12px 0;background:var(--line-strong)}
.notesrich b,.notesrich strong{font-weight:700}
#notesFull{display:block;height:auto;white-space:pre-wrap}
.sheet.editor.quiet .ed-notes.notesrich{display:block;width:auto;flex:1;min-height:22px;overflow:visible}
.nf-tools button[data-fmt="i"] i,.nf-tools button[data-fmt="u"] u,.nf-tools button[data-fmt="b"] b{font-size:.9375rem}
/* 9.23.2 — the notes writer uses the whole width, starting on the same line as the title and the buttons */
.nf-body{justify-content:flex-start}
#notesFull{width:100%;max-width:none;padding:24px 20px 80px}
@media (max-width:640px){#notesFull{padding:20px 16px 80px}}

/* 9.25 — event window: same quiet look as a task's */
.sheet.editor.quiet .ed-title-static{margin-top:12px;font-size:1.375rem;font-weight:700;letter-spacing:-.015em;line-height:28px;overflow-wrap:break-word}
.sheet.editor.quiet .ed-evtime{margin-top:14px;font-size:.875rem;line-height:22px;color:var(--text);font-variant-numeric:tabular-nums}
#eventOverlay .ed-quietrows{margin-top:22px}

/* 9.25.1 — order: name → notes → time → reminder · repeat · amount → subtasks (they come last, a list that can grow) */
.sheet.editor.quiet .ed-subtasks{margin-top:10px}

/* 9.26.2 — month in the spirit of Google Calendar, in our own look: one white grid of hairlines, day numbers
   centred at the top (the 1st carries its month), today a blue circle, timed events = colour dot + time + name,
   all-day events = a soft pill in the calendar colour, tasks = tick + time + name. No tinted cells, no "…". */
.monthpanel{background:var(--surface)}
.weekdaybar div{text-align:center;padding:10px 0 6px;font-size:.6875rem;letter-spacing:.08em}
.monthgrid{grid-template-rows:repeat(var(--weeks,6),minmax(0,1fr))}
.monthday{padding:6px 6px 4px}
.monthday,.monthday.weekend,.monthday.past,.monthday.othermonth{background:var(--surface)}
.monthday:hover{background:#fafaf8}
.daynum{justify-content:center;gap:3px;height:26px;margin-bottom:4px}
.daynum .dnum{font-size:.8125rem;font-weight:500;line-height:26px;min-width:26px;padding:0;text-align:center;color:var(--text)}
.daynum .dmon{font-size:.8125rem;font-weight:500;color:var(--text)}
.monthday.othermonth .daynum .dnum,.monthday.othermonth .daynum .dmon{color:#b4b4ad}
.monthday.today .daynum .dnum{background:var(--accent);color:#fff;font-weight:600}
.monthtask,.monthevent{height:22px;margin:1px 0;padding:0 4px;border-radius:6px;font-size:.75rem;gap:6px;background:none;color:var(--text)}
.monthtask:hover,.monthevent:hover{background:var(--hover)}
.monthtask .mtick:not(:checked){border-color:var(--lc,#b8b8b1)}
.monthday .mtime{color:var(--accent);font-weight:650;font-variant-numeric:tabular-nums}
.monthtask.done,.monthevent.done{color:var(--text-3)}
.monthtask.done .mtext,.monthevent.done .mtext{text-decoration:line-through;text-decoration-color:var(--text-3)}
.monthtask.done .mtime,.monthevent.done .mtime{color:var(--text-3)}
.monthtask.critical:not(.done){box-shadow:inset 2px 0 0 var(--danger);border-radius:0 6px 6px 0}
.monthday .mtext{text-overflow:clip;min-width:0}
.more{padding:1px 5px 0;font-size:.6875rem}

/* 9.26.1 — the left column ("Всичко останало" + projects) scrolls on its own; the week scrolls without it */
@media (min-width:761px){
  .board>.col.backlog{position:sticky;top:var(--planner-topbar-h,56px);align-self:start;height:calc(100vh - var(--planner-topbar-h,56px) - 16px);min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .board>.col.backlog>.colhead{top:0}
}
.daynum .dnum:has(+ .dmon){min-width:0}
.monthday.today .daynum .dnum:has(+ .dmon){min-width:26px}

/* 9.26.6 — today has no background of its own: the same notebook as every other day.
   Only its name stays blue (day, number, count). */
.col.todaycol{background:transparent;box-shadow:none}
.col.todaycol>.colhead{background:var(--bg)}

/* 9.27 — new project: the name and the colour in one small window */
.newproject .np-name{display:block;width:100%;box-sizing:border-box;height:40px;margin:0 0 14px;padding:0 12px;border:1px solid var(--line-strong,var(--line));border-radius:10px;background:var(--surface);color:var(--text);font:inherit;font-size:1rem;outline:none}
.newproject .np-name:focus{border-color:var(--ink)}
.newproject .btn-primary{width:100%;height:40px}

/* 9.28.1 — search: a field with the results dropping down under it; the planner stays behind.
   A result takes you to its place, where its row lights up for a moment. */
.tb-period .searchbtn{margin-right:10px}
.searchview{display:none;position:fixed;z-index:70;top:calc(var(--planner-topbar-h,56px) + 4px);left:50%;transform:translateX(-50%);width:min(600px,calc(100vw - 32px));border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line),0 18px 50px rgba(24,24,20,.18);overflow:hidden}
body.searching .searchview{display:block}
.searchbar{display:flex;align-items:center;gap:10px;height:52px;padding:0 6px 0 16px}
.searchview.hasresults .searchbar{border-bottom:1px solid var(--line)}
.searchbar>.ic{flex:none;width:18px;height:18px;color:var(--text-3)}
.searchbar input{flex:1;min-width:0;height:100%;border:0;outline:none;background:none;font:inherit;font-size:1.0625rem;color:var(--text)}
.searchbar input::-webkit-search-cancel-button{display:none}
.searchresults{max-height:min(60vh,520px);overflow-y:auto;padding:0 8px}
.searchresults:not(:empty){padding-bottom:8px}
.searchgroup{padding:12px 8px 4px;font-size:.6875rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}
.searchrow{display:flex;align-items:center;gap:10px;width:100%;height:38px;padding:0 10px;border:0;border-radius:9px;background:none;font:inherit;font-size:.875rem;color:var(--text);text-align:left;cursor:pointer}
.searchrow.on{background:var(--hover)}
.searchrow .srdot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:var(--lc)}
.searchrow .srdot.none{box-shadow:inset 0 0 0 1.5px var(--text-3);background:none}
.searchrow .srcal{flex:0 0 14px;width:14px;height:14px;margin:0 -3px;color:var(--text-3)}
.searchrow .srtime{flex:none;color:var(--accent);font-weight:650;font-variant-numeric:tabular-nums}
.searchrow .srtitle{flex:1;min-width:0;overflow:hidden;white-space:nowrap}
.searchrow .srdate{flex:none;color:var(--text-3);font-size:.8125rem}
.searchrow.done .srtitle{color:var(--text-3);text-decoration:line-through}
.searchrow.done .srtime{color:var(--text-3)}
.searchnone{padding:18px 8px;text-align:center;color:var(--text-3)}
body.searching .searchbtn{color:var(--text)}
@keyframes foundpulse{0%,60%{box-shadow:inset 0 0 0 2px var(--accent);background:rgba(47,100,232,.08)}100%{box-shadow:inset 0 0 0 2px transparent;background:transparent}}
.task.found,.calendar-event.found{animation:foundpulse 2.6s ease-out!important;border-radius:8px}

/* 9.29 — anything with a time is an event (a task with a time, every calendar event): not ticked — a dot in its
   colour (project or calendar) stands where a task's tick stands, in the same straight column. */
.evmark{flex:0 0 16px;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center}
.evmark::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--dc,#8d8d86)}
/* Done things with a time stay in time order among the open ones, so their time keeps its width (only the
   colour fades): names never step left. */
.task.timed.done .tasktimeline{padding:0 6px}
.tasklist .calendar-event.done .etime:not(.allday){padding:0 6px}
@media (max-width:760px){.task.timed.done .tasktimeline{padding:0 8px}}
@container (max-width:170px){.tasklist .task.timed.done .tasktimeline,.tasklist .calendar-event.done .etime:not(.allday){padding:0}}

/* 9.30 Speaking on the line: the microphone at the line's right end (shown where you would type),
   what is heard in grey, and the tasks it makes, faded, until a click (one) or Enter (all). */
.quickmic{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:26px;height:26px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text-3);cursor:pointer;opacity:0;transition:opacity .12s}
.quickmic svg{width:15px;height:15px}
.quickwrap:hover .quickmic,.quickwrap:focus-within .quickmic,.quickwrap.listening .quickmic,.quickwrap.thinking .quickmic{opacity:1}
.quickmic:hover{color:var(--text)}
.quickwrap.listening .quickmic{color:var(--danger);animation:micpulse 1.2s ease-in-out infinite}
@keyframes micpulse{50%{opacity:.35}}
.quickwrap.listening .quickinput,.quickwrap.thinking .quickinput{color:transparent}
.quickwrap.listening .quickinput::placeholder,.quickwrap.thinking .quickinput::placeholder{color:transparent}
.quickwrap.listening .quickmirror{color:var(--text-2)}
.quickwrap.thinking .quickmirror{color:var(--text-3);animation:micpulse 1.2s ease-in-out infinite}
.quickwrap .quickinput{padding-right:30px}
.task.ghost{opacity:.42;cursor:pointer}
.task.ghost:hover{opacity:.7}
.task.ghost *{pointer-events:none}
.meta-date{color:var(--accent)}
@media (hover:none){.quickwrap:focus-within .quickmic{opacity:1}}
.quickwrap>.quickmirror{right:30px}
/* Under the spoken suggestions: × drops them all, ✓ adds them all (as on the phone). */
.spokenbar{display:flex;justify-content:flex-end;align-items:center;gap:14px;padding:0 6px;flex:none}
.spokenbtn{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text-3);cursor:pointer}
.spokenbtn svg{width:17px;height:17px}
.spokenbtn:hover{background:var(--hover,rgba(0,0,0,.05));color:var(--text)}
.spokenbtn.yes{color:var(--accent)}
/* The editor of a spoken suggestion: × drops it, ✓ adds it. */
.ed-icon{flex:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:none;color:var(--text-3);cursor:pointer}
.ed-icon[hidden]{display:none}
.ed-icon .ic{width:19px;height:19px}
.ed-icon:hover{background:var(--hover,rgba(0,0,0,.05));color:var(--text)}
.ed-icon.yes{color:var(--accent)}
.ed-done[hidden]{display:none}
/* The window of spoken suggestions: each written out whole; × on a row drops it, a click opens it to correct. */
.aisheet{width:min(520px,100%);padding:18px 18px 12px;gap:10px}
.ailist{display:flex;flex-direction:column}
.aireview .task.airow{position:relative;display:flex;align-items:flex-start;margin:0;padding:10px 40px 10px 4px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;cursor:pointer}
.aireview .task.airow:last-child{border-bottom:0}
.aireview .task.airow:hover{background:var(--hover,rgba(0,0,0,.03))}
.aireview .task.airow .taskcardhead,.aireview .task.airow .tasktext *{pointer-events:none}
.aireview .task.airow .tasktext{min-width:0;flex:1}
.aireview .task.airow .tasktitleline,.aireview .task.airow .tasktitletext{white-space:normal;overflow:visible;text-overflow:clip;font-size:.9375rem}
.aireview .task.airow .taskmeta{flex-wrap:wrap;margin-top:4px}
.airemove{position:absolute;right:4px;top:8px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:none;color:var(--text-3);cursor:pointer}
.airemove svg{width:16px;height:16px}
.airemove:hover{background:var(--hover,rgba(0,0,0,.06));color:var(--text)}
.ed-top .ed-context{flex:1;min-width:0}
.ed-top .ed-icon+.ed-icon{margin-left:-2px}
.aireview .task.airow .taskcardhead{flex:none}
.aireview .task.airow .taskcheckrail{width:18px;margin-right:8px;display:flex;justify-content:center;align-items:center;min-height:22px}
.aireview .task.airow .taskcheckrail>input{margin:0}
/* While speaking: bars at the line's start follow the voice (red); while it is understood they wave (blue). */
.voicebars{position:absolute;left:8px;top:0;bottom:0;display:none;align-items:center;gap:3px;pointer-events:none}
.quickwrap.listening .voicebars,.quickwrap.thinking .voicebars{display:flex}
.voicebars i{display:block;width:3px;height:4px;border-radius:2px;background:var(--danger);transition:height .09s linear}
.quickwrap.thinking .voicebars i{background:var(--accent);transition:none;animation:voicewave .9s ease-in-out infinite}
.quickwrap.thinking .voicebars i:nth-child(2){animation-delay:.1s}
.quickwrap.thinking .voicebars i:nth-child(3){animation-delay:.2s}
.quickwrap.thinking .voicebars i:nth-child(4){animation-delay:.3s}
.quickwrap.thinking .voicebars i:nth-child(5){animation-delay:.4s}
@keyframes voicewave{0%,100%{height:4px}50%{height:16px}}
.quickwrap.thinking .quickmic{color:var(--accent)}
/* Shared projects: the other people's initials next to a project's name; people rows in its menu. */
.sharedmarks{display:inline-flex;gap:2px;margin-left:6px;vertical-align:middle}
.sharedmark{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--surface,#fff);border:1px solid var(--line);color:var(--text-2);font-size:.625rem;font-weight:700;line-height:1;letter-spacing:0;text-transform:uppercase;flex:none}
.im-person{display:flex;align-items:center;gap:8px;cursor:default}
.im-person .im-email{flex:1;white-space:nowrap}
.im-x{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:none;color:var(--text-3);cursor:pointer}
.im-x svg{width:14px;height:14px}
.im-x:hover{background:var(--hover,rgba(0,0,0,.06));color:var(--text)}
.mtime[hidden]{display:none}
/* 9.35.1: the text of tasks, events, the typing line and menus is regular (400), as in Eagle Budget; headings stay bold. */

/* 9.38 — the task's window holds everything about it: Day · Time · Project · Important rows; the right-click menu by the mouse */
.ed-qv{display:inline-flex;align-items:center;gap:6px}
.ed-qv .selpopdot{margin:0}
.ed-qv.crit{color:var(--danger)}
.remname{display:inline-flex;align-items:center;gap:8px}
.remname .selpopdot{margin:0}
.datechooser{padding:6px}
.datechooser .im-chips{padding:0 0 6px}
.datechooser .im-cal{margin:0}
.taskmenu{width:200px}
/* 9.39 — over: grey dot, grey time, no tint (the name stays as it is: it was not ticked) */
.over .evmark::before{background:color-mix(in srgb,var(--text-3) 55%,transparent)}
.calendar-event.over,.tasklist .calendar-event.over,.calendar-event.over:hover,.tasklist .calendar-event.over:hover{background:transparent}
.calendar-event.over .etime,.tasklist .calendar-event.over .etime:not(.allday),.task.timed.over .tasktimeline,.monthday .over .mtime{background:transparent;color:var(--text-3)}
/* 9.40 — sections inside a project: a quiet heading (like a project's, smaller) with its menu */
.sechead{display:flex;align-items:center;gap:6px;min-height:30px;padding:10px 4px 2px 11px;font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.sechead .secname{flex:1;min-width:0;overflow-wrap:anywhere}
.sechead .secmore{opacity:0}
.sechead:hover .secmore,.sechead .secmore:focus-visible{opacity:1}
.sechead.drop{color:var(--accent)}
.projsec>.sechead{font-size:.75rem}
.remopt.remsec .remname{padding-left:26px;color:var(--text-2)}
.newsection{display:flex;align-items:center;gap:8px;height:36px;margin:14px 0 4px;padding:0 11px;border:0;background:none;font:inherit;font-size:.8125rem;color:var(--text-3);cursor:pointer}
.newsection .ic{width:14px;height:14px}
.newsection:hover{color:var(--text)}
/* 9.41 — the peek above a task or an event (week and month only) */
.peek{position:fixed;z-index:2147482000;width:300px;max-width:calc(100vw - 16px);padding:12px 14px 12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-pop);pointer-events:none;animation:peekIn .14s var(--ease)}
@keyframes peekIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.peek.below{animation-name:peekInBelow}
@keyframes peekInBelow{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.pk-title{display:flex;align-items:flex-start;gap:8px;font-size:.9375rem;font-weight:600;line-height:1.35;color:var(--text);overflow-wrap:anywhere}
.pk-dot{flex:0 0 10px;width:10px;height:10px;margin-top:5px;border-radius:50%}
.pk-title .pk-flag{flex:0 0 14px;width:14px;height:14px;margin-top:3px;color:var(--danger)}
.pk-row{display:flex;align-items:flex-start;gap:8px;margin-top:7px;font-size:.8125rem;line-height:1.4;color:var(--text-2);overflow-wrap:anywhere}
.pk-row .ic{flex:0 0 14px;width:14px;height:14px;margin-top:2px;color:var(--text-3)}
.pk-ic{flex:0 0 14px}
.pk-money span:last-child{color:var(--ok);font-weight:600}
.pk-notes{margin-top:10px;padding-top:9px;border-top:1px solid var(--line);font-size:.8125rem;line-height:1.45;color:var(--text-2);max-height:200px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 170px,transparent 200px);mask-image:linear-gradient(#000 170px,transparent 200px)}
.pk-subs{margin-top:10px;padding-top:8px;border-top:1px solid var(--line);display:grid;gap:5px}
.pk-sub{display:flex;align-items:flex-start;gap:8px;font-size:.8125rem;line-height:1.35;color:var(--text)}
.pk-box{flex:0 0 12px;width:12px;height:12px;margin-top:2px;border-radius:3px;box-shadow:inset 0 0 0 1.5px var(--text-3)}
.pk-sub.done{color:var(--text-3);text-decoration:line-through}
.pk-sub.done .pk-box{background:var(--text-3);box-shadow:none}
