/* Today's Tasks V2. Light, playful, cheap to draw: no filters/backdrop-filter/canvas; animate only transform + opacity. */
:root{--bg:#FBF6EE;--card:#FFFBF5;--line:#F0E3D2;--ink:#3A2E26;--ink-2:#7A6656;--ink-3:#A8937F;--orange:#FFB27A;--orange-ink:#C2541C;--dark:#2B2420;--mint:#8FD9B6;--font:ui-rounded,"SF Pro Rounded","Nunito","Varela Round","Quicksand",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--shadow:0 4px 12px -8px rgba(122,84,46,.35);--soft:rgba(58,46,38,.7)}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--bg)}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font:500 15px/1.4 var(--font);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
html.full-open body{overflow:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid #FF9A55;outline-offset:2px;border-radius:12px}
[hidden]{display:none !important}
.empty{list-style:none;color:var(--ink-3);font-size:14px;padding:6px 4px;margin:0}
.pill:disabled,.check:disabled,.m-item:disabled{opacity:.5;cursor:default}
.pill:active,.round-btn:active,.chat:active,.check:active,.switch:active,.qw:active,.more:active{transform:scale(.94)}
.tasks,.note-list,.fu-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}

/* Header */
.top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 12px;max-width:1240px;margin:0 auto;padding:max(14px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left))}
.date{margin:0;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.hello{margin:0;font-size:clamp(34px,9vw,48px);font-weight:900;letter-spacing:-.02em;line-height:1}
.hello::after{content:"";display:inline-block;width:.32em;height:.32em;margin-left:.12em;border-radius:50%;background:var(--orange)}
.top-r{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.asof{font-size:13px;color:var(--ink-2)}
.pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 13px;border-radius:999px;border:1.5px solid var(--line);background:#fff;font-size:13px;font-weight:800;color:var(--ink);text-decoration:none;white-space:nowrap}
.pill.solid{background:var(--orange);border-color:var(--orange);color:#3B1D08}
.pill.warn,.pill.has-open{color:var(--orange-ink)}
.pill.has-open{border-color:var(--orange)}
.ro{background:#FFF1C9;border-color:#F3DC92}
.classic{font-size:13px;color:var(--ink-3);text-decoration:underline dotted;text-underline-offset:3px;padding:8px 2px}
.round-btn{width:40px;height:40px;border-radius:50%;border:1.5px solid var(--line);background:#fff;font-size:24px;line-height:1;font-weight:700;display:grid;place-items:center;padding:0}

/* Layout (phone first) */
.layout{display:flex;flex-direction:column;gap:14px;max-width:1240px;margin:0 auto;padding:0 max(12px,env(safe-area-inset-right)) max(30px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
.card{background:var(--card);border:1.5px solid var(--line);border-radius:26px;padding:14px;box-shadow:var(--shadow)}
.h2{margin:0 0 10px 4px;font-size:18px;font-weight:900}
.rv{order:1}
.stage{order:2;position:relative}
.fu{order:3}
@media (min-width:900px){
.layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(296px,30vw,340px);grid-template-areas:"ctrl fu" "rv fu" "stage fu";grid-template-rows:auto auto 1fr;align-items:start;gap:14px 18px}
.ctrl{grid-area:ctrl}
.rv{grid-area:rv}
.fu{grid-area:fu;position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto}
.stage{grid-area:stage}
/* Follow up collapsed: it shrinks to its header bar beside the controls; the stage gets the full width */
.layout.fu-closed{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"ctrl fu" "rv rv" "stage stage";grid-template-rows:auto auto 1fr}
.layout.fu-closed .fu{position:static;width:clamp(230px,22vw,290px);max-height:none;padding:6px 8px 6px 10px;border-radius:999px}}

/* Focus / All areas switch + Quick wins chip */
.ctrl{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}
.switch{position:relative;display:grid;grid-template-columns:1fr 1fr;min-height:46px;padding:4px;border-radius:999px;border:1.5px solid var(--line);background:#fff;font-weight:900;font-size:14.5px}
.switch>span:not(.knob){position:relative;padding:0 16px;display:grid;place-items:center;transition:color .2s}
.knob{position:absolute;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:999px;background:var(--orange);box-shadow:0 3px 8px -4px rgba(194,84,28,.6);transition:transform .35s cubic-bezier(.3,1.4,.5,1)}
.switch[aria-checked="true"] .knob{transform:translateX(100%)}
.switch[aria-checked="false"] .sw-r,.switch[aria-checked="true"] .sw-l{color:var(--ink-3)}
.qw{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;border:1.5px dashed #9ED9BC;background:#fff;font-weight:900;font-size:14px;color:#1D6B47}
.qw .ic{width:16px;height:16px}
.qw[aria-pressed="true"]{border-style:solid;border-color:#3FA877;background:#9BE6C1;color:#0F3D28}

/* Focus bubble (light orange).
   .round (>=600px wide and the cards fit, see fitFocus in app.js): always a true circle (w === h, never an oval), sized to the largest circle fitting the stage width and viewport height, content centered, one uniform card width.
   Otherwise: a round "head" holding the face on top of a rounded panel holding the cards. */
.focus{--s:230px;--c:#FFC79E}
.focus.ghost{position:absolute;top:0;left:0;right:0;z-index:2;pointer-events:none}
.f-body,.body{position:relative;display:flex;flex-direction:column;align-items:center;background:var(--c)}
.f-body{isolation:isolate;max-width:620px;margin:78px auto 6px;padding:0 10px 14px;border-radius:38px;box-shadow:0 12px 22px -14px rgba(122,84,46,.55),inset 0 -10px 0 rgba(90,50,20,.05)}
.f-body::after{content:"";position:absolute;z-index:-1;left:50%;top:-72px;width:172px;height:172px;margin-left:-86px;border-radius:50%;background:var(--c)}
.f-body::before,.body::before{content:"";position:absolute;top:5%;left:17%;width:12%;height:5%;border-radius:50%;background:#fff;opacity:.4;transform:rotate(-24deg)}
.f-body::before{top:-52px;left:calc(50% - 58px);width:34px;height:16px}
.f-body>.face{flex:none;margin:-44px 0 0}
.squish{animation:squish .55s cubic-bezier(.3,1.4,.5,1)}
.f-msg{flex:none;margin:8px 0 12px;font-size:clamp(18px,4.6vw,22px);font-weight:900;text-align:center}
.f-list{width:100%;gap:8px}
.f-list .task{justify-self:center;width:100%;background:rgba(255,255,255,.92);box-shadow:none;border-radius:20px}
.f-list .t-title{font-size:15.5px}
/* Bottom padding = face + message height (set by fitFocus), so the card stack sits on the circle's widest band */
/* Size comes from fitFocus (--fw/--fhh); the card stack has one width (set inline) so all edges line up */
.f-body.round{width:var(--fw,min(100%,680px));height:var(--fhh,auto);max-width:none;min-height:0;margin:4px auto 10px;padding:0 0 var(--fh,84px);border-radius:50%;justify-content:center}
.f-body.round>.f-list{flex:none;max-width:none}
.f-body.round .task{padding-top:8px;padding-bottom:8px}
.f-body.round .t-title{font-size:15px;line-height:20px}
.f-body.round .t-main{padding-top:3px}
.f-body.round .t-chips{margin-top:4px}
.f-body.round .f-msg{font-size:19px}
.f-body.round .f-list{gap:6px}
.f-body.round .task{column-gap:8px}
.f-body.round .chat{width:38px}
.f-body.round .more{width:32px}
.f-body.round .chip,.f-body.round .area{font-size:11px}
.f-body.round::after{display:none}
.f-body.round::before{top:7%;left:19%;width:11%;height:5%}
.f-body.round>.face{margin:auto 0 0}
.f-body.round>.f-list{margin-bottom:auto}
.f-body.round .f-msg{margin:6px 0 10px}
/* Escalation steps from fitFocus when the cards don't fit: .tight (less padding/gap), then .compact (smaller face + heading + titles) */
.f-body.round.tight .task{padding-top:5px;padding-bottom:5px}
.f-body.round.tight .f-list{gap:4px}
.f-body.round.tight .t-chips{margin-top:2px}
.f-body.round.tight .f-msg{margin:4px 0 6px}
.f-body.round.compact{--s:180px}
.f-body.round.compact .f-msg{font-size:16.5px}
.f-body.round.compact .t-title{font-size:14px;line-height:18px}
.focus.relaxed .mouth{transform:scale(2.1,1.9)}
.focus.relaxed .face::before,.focus.relaxed .face::after{opacity:.55}
.area{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:none;font-size:12px;font-weight:800;color:var(--ink-2);min-height:22px}

/* Effort pills (always icon + label; dashed = guessed) */
.eff{display:inline-flex;align-items:center;gap:3px;padding:0 7px 0 5px;min-height:20px;border-radius:999px;border:1.5px solid;font-size:11px;font-weight:900;line-height:1;white-space:nowrap;vertical-align:middle}
.eff .ic{width:12px;height:12px}
.eff.quick{background:#A8EDC9;border-color:#2F9E69;color:#0F4A2E}
.eff.medium{background:#FFF0A6;border-color:#C9A323;color:#5A4500}
.eff.big{background:#FFB596;border-color:#D2582E;color:#5E1E05}
.eff.guess{border-style:dashed;opacity:.72}
.ic{display:block;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ic.f{fill:currentColor;stroke:none;fill-rule:evenodd}

/* Check, chat, ⋯ buttons */
.check,.chat,.more{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:none;border-radius:50%;flex:none;color:var(--ink-2)}
/* Round checkbox: crisp 2px ring, 26px everywhere, 44px tap target */
.check{--ck:#F26B1D;color:transparent}
.check .ic{width:26px;height:26px;padding:4px;border-radius:50%;border:2px solid var(--ck);background:#fff;stroke-width:3.2;transition:background-color .15s,color .15s}
.check.on{color:#fff}
.check.on .ic{background:var(--ck)}
.check:focus-visible{outline-offset:-2px}
@media (hover:hover){
.check:not(:disabled):not(.on):hover .ic{background:#FDE3D2;color:rgba(242,107,29,.45)}
.m-item:not(:disabled):hover{background:var(--bg)}
.blob:hover .body{box-shadow:0 10px 18px -10px rgba(122,84,46,.55),inset 0 -10px 0 rgba(90,50,20,.05)}}
.chat .ic{width:22px;height:22px}
.more{width:40px;font-size:22px;font-weight:900;line-height:1}
.t-side{display:flex;align-items:center;flex:none;align-self:center;margin-right:-4px}
.dot{width:10px;height:10px;border-radius:50%;flex:none;border:1px solid rgba(58,46,38,.15)}
.chip{font-size:11px;font-weight:800;padding:1px 7px;border-radius:999px;background:#F4EADD;color:var(--ink-2)}
.chip.hot{background:#FFE1CC;color:var(--orange-ink)}
.chip.wait{background:#E6E0F7;color:#4B3A86}
.chip.later{background:#E3EEF8;color:#2F5576}
.pin{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#FFE1CC;color:var(--orange-ink);vertical-align:middle}
.pin .ic{width:12px;height:12px}

/* ⋯ menu */
.menu{position:fixed;z-index:85;width:min(290px,calc(100vw - 16px));padding:6px;border-radius:20px;background:#fff;border:1.5px solid var(--line);box-shadow:0 14px 30px -12px rgba(80,50,20,.45)}
.m-title{margin:6px 10px 4px;font-size:12.5px;font-weight:800;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-item{display:block;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:14px;background:none;text-align:left;font-weight:800}
.m-wait{display:flex;gap:6px;padding:2px 6px 8px}
.m-wait input{flex:1}

/* Blobs */
.blobs{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px 10px;padding:10px 0 30px}
.blob{position:relative;left:var(--ox,0);top:var(--oy,0);width:var(--s);height:var(--s);flex:none;padding:0;border:0;background:none;border-radius:50%;color:var(--ink);text-align:center}
.blob:focus-visible{border-radius:50%;outline-offset:4px}
.bob{position:relative;display:block;width:100%;height:100%;animation:bob var(--dur,4s) ease-in-out var(--delay,0s) infinite}
@keyframes bob{50%{transform:translateY(-6px)}}
/* Face first, auto margins = "safe" centering: if the text is too long it clips at the bottom, never over the face */
.body{justify-content:flex-start;width:100%;height:100%;padding:12% 13%;border-radius:50%;overflow:hidden;box-shadow:0 8px 16px -10px rgba(122,84,46,.45),inset 0 -10px 0 rgba(90,50,20,.05)}
.body::before{top:9%;left:19%;width:18%;height:10%;opacity:.35;transform:rotate(-30deg)}
@keyframes squish{30%{transform:scale(1.12,.86)}60%{transform:scale(.95,1.06)}}
.face{position:relative;display:flex;flex-direction:column;align-items:center;margin-bottom:4%}
.body>.face{flex:none;margin-top:auto}
.body>.b-list{margin-bottom:auto}
.body>.b-name,.body>.b-count{flex:none}
.face::before,.face::after{content:"";position:absolute;top:calc(var(--s)*.075);width:calc(var(--s)*.07);height:calc(var(--s)*.035);border-radius:50%;background:#FF8E8E;opacity:.3}
.face::before{right:calc(100% + var(--s)*.02)}
.face::after{left:calc(100% + var(--s)*.02)}
.look{position:relative;display:flex;gap:calc(var(--s)*.1);transition:transform .14s ease-out}
.eye{position:relative;display:block;width:calc(var(--s)*.062);height:calc(var(--s)*.088);min-width:7px;min-height:10px;border-radius:50%;background:var(--dark)}
.eye::after{content:"";position:absolute;top:16%;left:22%;width:36%;height:28%;border-radius:50%;background:#fff}
.blink .eye{animation:blink .18s ease-in-out}
@keyframes blink{50%{transform:scaleY(.1)}}
.mouth{display:block;width:calc(var(--s)*.075);height:calc(var(--s)*.04);min-width:9px;min-height:5px;margin-top:calc(var(--s)*.02);border:2.5px solid var(--dark);border-top:0;border-radius:0 0 99px 99px;transition:transform .25s cubic-bezier(.3,1.6,.5,1)}
.happy .mouth{transform:scale(2.2,2)}
/* Long names: wrap anywhere, at most 2 lines; containBlobs() in app.js trims the list so nothing pokes past the round edge */
.b-name{font-weight:900;font-size:clamp(13px,calc(var(--s)*.074),21px);line-height:1.1;max-width:100%;min-width:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.b-count{margin-top:2px;max-width:100%;font-size:12px;font-weight:800;color:rgba(58,46,38,.66);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.b-list{display:block;margin:6px 0 0;width:100%}
.bl{display:block;font-size:clamp(11.5px,calc(var(--s)*.047),14px);font-weight:700;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:rgba(58,46,38,.84)}
.bl+.bl{margin-top:2px}
/* Compact rows (big bubbles): fixed effort column so every title starts at the same left edge */
.b-list.has-eff{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:5px;row-gap:3px;align-items:center;width:auto;max-width:100%;text-align:left}
.b-list.has-eff .bl{display:contents}
.b-list.has-eff .bl>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bl .eff{font-size:10px;min-height:17px;width:100%}
.zzz{display:none;position:absolute;top:2%;right:4%;font-weight:900;font-size:13px;color:var(--ink-2);opacity:0}
.blob.sleepy .body{opacity:.72}
.blob.sleepy .eye,.mini.sleepy .eye{height:3px;min-height:3px;border-radius:3px;margin-top:4px}
.sleepy .eye::after{display:none}
.blob.sleepy .mouth{width:8px;min-width:8px;height:3px;min-height:3px;border-width:0 0 2.5px;border-radius:3px}
.blob.sleepy .zzz{display:block;animation:zz 3.2s ease-in-out infinite}
@keyframes zz{0%{opacity:0;transform:translate(0,6px)}35%{opacity:.85}100%{opacity:0;transform:translate(9px,-16px)}}

/* Ideas bubble (always last in the All areas cluster, fixed modest size, no jitter) + full screen face:
   lightbulb, bigger curious eyes, one raised brow, tilted face, "o" mouth. Top margin keeps the bulb clear of the row above. */
.blob.idea{margin-top:18px}
.spark{position:absolute;z-index:1;left:50%;top:-16px;width:34px;height:34px;margin-left:-17px;animation:tw 3.4s ease-in-out infinite}
.spark .ic{width:100%;height:100%;fill:#FFF0A8;stroke:var(--dark);stroke-width:1.7}
@keyframes tw{50%{transform:rotate(9deg) scale(1.08)}}
.idea .face{transform:rotate(-7deg)}
.idea .eye{width:calc(var(--s)*.075);height:calc(var(--s)*.105)}
.brow{position:absolute;left:-2px;top:calc(var(--s)*-.055);width:calc(var(--s)*.085);height:calc(var(--s)*.04);border-top:2.5px solid var(--dark);border-radius:50% 50% 0 0;transform:rotate(-14deg)}
.idea .mouth{width:calc(var(--s)*.045);height:calc(var(--s)*.045);min-width:7px;min-height:7px;border-top:2.5px solid var(--dark);border-radius:50%}
.mini.idea{transform:rotate(-7deg)}
.mini.idea .eye{width:8px;height:13px}
.idea-add{display:flex;gap:8px;margin-bottom:14px}
.idea-add input{flex:1;border-color:#E2D4FA}
.task.idea-card{grid-template-columns:minmax(0,1fr) auto;padding-left:16px;background:#FCFAFF;border:1.5px solid #E6DAFB}
.idea-card.archived{opacity:.65}
.pick{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.pick-l{flex-basis:100%;margin:0;font-size:12.5px;font-weight:800;color:var(--ink-3)}

.confetti{position:fixed;z-index:80;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;pointer-events:none;animation:pop .7s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes pop{0%{transform:translate(0,0) scale(.5);opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(1);opacity:0}}

/* For your review (soft peach -> mint) */
.rv{width:100%;max-width:620px;margin:0 auto;padding:10px 12px 12px;background:linear-gradient(135deg,#FFE8D9,#E2F6EA);border-color:#F3D8C4}
.rv-h{margin:0}
.rv-toggle{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:0 4px;border:0;background:none;font-weight:900;font-size:16.5px;text-align:left}
.rv-spark{width:20px;height:20px;color:#E8823F}
.rv-title{flex:1}
.rv-n{min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#fff;border:1.5px solid #F3C9A9;font-size:12.5px;line-height:21px;text-align:center;color:var(--orange-ink)}
.rv-chev{color:var(--ink-3);transition:transform .2s}
.rv-toggle[aria-expanded="false"] .rv-chev{transform:rotate(-90deg)}
.rv-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}
.rv-item{padding:10px 12px;background:rgba(255,255,255,.88);border-radius:18px;transition:transform .24s ease,opacity .24s ease}
.rv-empty{margin:0;padding:2px 4px;font-size:13.5px;font-weight:700;color:var(--ink-3)}
.rv-n:empty{display:none}
.rv-item.leave{opacity:0;transform:translateX(28px) scale(.97)}
.rv-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 4px}
.rv-from{font-size:12px;font-weight:800;color:var(--ink-3)}
.rv-kind{display:inline-flex;align-items:center;gap:3px;padding:0 8px 0 6px;min-height:20px;border-radius:999px;border:1.5px solid;font-size:11px;font-weight:900}
.rv-kind .ic{width:12px;height:12px}
.rv-kind.done{background:#C9F0DB;border-color:#55B786;color:#0F4A2E}
.rv-kind.sug{background:#FFDCC6;border-color:#E99A69;color:#6B2B08}
.rv-t{margin:0;font-weight:900;font-size:15.5px;line-height:1.3;overflow-wrap:anywhere}
.rv-sum{margin:3px 0 0;font-size:14px;color:var(--ink-2);white-space:pre-wrap;overflow-wrap:anywhere}
.rv-re{margin:4px 0 0;font-size:12.5px;font-weight:800;color:var(--ink-3);overflow-wrap:anywhere}
.rv .pill .ic{width:15px;height:15px}
.pill.ok{background:var(--mint);border-color:var(--mint);color:#0F3D28}

/* Follow up */
.fu-head{display:flex;align-items:center;gap:8px}
.fu-head .h2{flex:1;min-width:0;margin:0}
.fu-toggle{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:0 4px;border:0;border-radius:14px;background:none;font-weight:900;font-size:18px;text-align:left}
.fu-n{min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#FFE1CC;border:1.5px solid #F3C9A9;font-size:12.5px;line-height:21px;text-align:center;color:var(--orange-ink)}
.fu-chev{margin-left:auto;color:var(--ink-3);transition:transform .2s}
.fu-toggle[aria-expanded="false"] .fu-chev{transform:rotate(-90deg)}
.fu-box{padding-top:4px}
.fu-box.fade-in{animation:fadein .26s ease-out}
@keyframes fadein{from{opacity:0;transform:translateY(-6px)}}
.lane-h{margin:12px 0 6px 4px;font-size:13px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.lane-h span{color:var(--ink-3)}
.fu-list{gap:8px}
.fu-item{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;padding:8px;background:#fff;border-radius:18px;border:1px solid #F5EBDD;transition:transform .22s ease,opacity .22s ease}
.fu-item.leave{opacity:0;transform:translateY(12px) scale(.96)}
.fu-item.arrive{animation:arrive .35s ease-out}
@keyframes arrive{from{opacity:0;transform:translateY(-10px) scale(.96)}}
.av{position:relative;display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;background:var(--c)}
.av-eyes{position:absolute;top:9px;display:flex;gap:8px}
.av-eyes i{width:4px;height:6px;border-radius:50%;background:var(--dark)}
.av b{margin-top:13px;font-size:10px;font-weight:900;color:rgba(43,36,32,.75)}
.fu-main{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:2px;border:0;background:none;text-align:left;border-radius:10px}
.fu-main>*{max-width:100%}
.fu-who{font-weight:900;overflow-wrap:anywhere}
.fu-when{overflow-wrap:anywhere}
.fu-note{font-size:13px;color:var(--ink-2);overflow-wrap:anywhere}
.fu-when{font-size:12px;font-weight:700;color:var(--ink-3)}
.fu-link{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#F4EADD;color:var(--ink);text-decoration:none;font-weight:900}
.ck{padding:0 11px}
/* iPad-width two-column layout: the Follow up column is ~300px, so "Checked in" drops below the text
   (aligned with it) instead of squeezing the note into a ~110px strip. */
@media (min-width:900px) and (max-width:1180px){
.fu-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:start;row-gap:6px}
.fu-item>.av{grid-row:span 2;margin-top:2px}
.fu-item>.fu-link{grid-column:3}
.fu-item>.ck{grid-column:2/-1;justify-self:start;min-height:32px}
.fu-item>.fu-edit{grid-column:1/-1}}
.fu-form,.fu-edit{display:grid;gap:8px;margin:8px 0 4px}
.fu-edit{flex-basis:100%;margin:4px 0 0}
.row{display:flex;flex-wrap:wrap;gap:8px}
.row>*{flex:1 1 auto}
input,select,textarea{min-height:40px;padding:8px 12px;border-radius:14px;border:1.5px solid var(--line);background:#fff;font-size:16px;min-width:0}
textarea{resize:vertical;width:100%}

/* Full screen area */
/* The open area is an inset panel (margin on every side, safe areas respected) that clips the growing circle. */
.full{position:fixed;inset:0;z-index:50}
.full-scrim{position:absolute;inset:0;background:rgba(58,46,38,.3)}
.full-panel{position:absolute;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));border-radius:30px;isolation:isolate;clip-path:inset(0 round 30px)}
/* clip-path (not overflow:hidden) so flip() in app.js can open the clip out to the viewport while the circle is small */
.full-bg{position:absolute;border-radius:50%;background:var(--c)}
.full-inner{position:absolute;inset:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:16px 14px 28px}
.full-inner>*{max-width:760px;margin-left:auto;margin-right:auto}
@media (min-width:700px){
.full-panel{top:max(40px,env(safe-area-inset-top));bottom:max(40px,env(safe-area-inset-bottom));left:max(40px,env(safe-area-inset-left),50% - 460px);right:max(40px,env(safe-area-inset-right),50% - 460px);border-radius:40px;clip-path:inset(0 round 40px)}
.full-inner{padding:28px 32px 40px}}
.full-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.full-titles{flex:1;min-width:0}
.full-titles h2{margin:0;font-size:clamp(24px,6vw,34px);font-weight:900;line-height:1.05}
.full-titles p,.qnote{margin:2px 0 0;font-weight:800;color:var(--soft)}
.mini{display:flex;gap:9px;align-items:center;justify-content:center;width:54px;height:54px;flex:none;border-radius:50%;background:rgba(255,255,255,.55)}
.mini .eye{width:7px;height:11px;min-width:0;min-height:0}
.close{width:44px;height:44px;font-size:28px}
/* Task card: [checkbox 28px | title + meta | chat ⋯]. The 44px check button overhangs its 28px column
   (negative margins) so the 26px ring sits centered on the title's first line. */
.task{display:grid;grid-template-columns:28px minmax(0,1fr) auto;column-gap:10px;align-items:start;background:#fff;border-radius:22px;padding:11px 8px 11px 12px;box-shadow:var(--shadow)}
.task>.check{margin:-9px -8px}
.t-main{min-width:0;padding-top:2px}
.t-title{margin:0;font-weight:800;font-size:16.5px;line-height:22px;overflow-wrap:anywhere}
.f-list .t-title{line-height:22px}
@media (max-width:599px){
.task .chat{width:40px}
.task .more{width:32px}
.task{column-gap:9px;padding-left:10px}}
.task.is-done .t-title{text-decoration:line-through;color:var(--ink-3)}
.t-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.t-detail,.note-text{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink-2);font-size:14.5px}
.t-link,.linkish{display:inline-block;margin-top:6px;font-weight:800;color:var(--orange-ink)}
.t-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px}
.notes{margin-top:8px}
.note-list{margin-bottom:8px;gap:6px}
.note{display:flex;flex-direction:column;padding:8px 11px;border-radius:14px;background:var(--bg)}
.note.bot{background:#EAF4FD}
.note-who{font-size:11.5px;font-weight:800;color:var(--ink-3)}
.note-text{margin:0;color:var(--ink)}
.note-form{display:flex;gap:8px;align-items:flex-end}
.sec{margin-top:16px}
.sec-toggle{min-height:40px;padding:0 14px;margin-bottom:10px;border-radius:999px;border:0;background:rgba(255,255,255,.6);font-weight:900}
.qnote{margin:0 0 10px 4px}
.linkish{margin:0;padding:4px 2px;border:0;background:none;font-weight:900;text-decoration:underline;text-underline-offset:3px}

/* Toast */
.toast{position:fixed;z-index:90;left:50%;bottom:max(18px,env(safe-area-inset-bottom));max-width:calc(100% - 32px);padding:11px 18px;border-radius:999px;background:var(--dark);color:#fff;font-weight:800;font-size:14px;opacity:0;pointer-events:none;transform:translate(-50%,16px);transition:opacity .2s,transform .25s;display:flex;align-items:center;gap:10px}
.toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.undo{min-height:34px;margin:-6px -10px -6px 0;padding:0 14px;border:0;border-left:1.5px solid rgba(255,255,255,.25);background:none;color:var(--orange);font-weight:900}
.toast.err{background:#A33B12}

/* Motion + power */
html.is-hidden *,html.is-hidden *::before,html.is-hidden *::after{animation-play-state:paused !important}
html.full-open .bob,html.full-open .zzz,html.full-open .spark{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){
.bob,.zzz,.spark,.blink .eye,.squish,.fu-item.arrive,.fu-box.fade-in{animation:none !important}
.blob.sleepy .zzz{opacity:.7}
.look,.mouth,.fu-item,.rv-item,.rv-chev,.fu-chev,.toast,.knob{transition:none}}
