/* Sift: one column, phone first. Argo tokens, three themes (Sailcloth, Dark, Canopus). */
@font-face{font-family:"Newsreader";src:url(fonts/newsreader-variable.woff2) format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Marcellus";src:url(fonts/marcellus-400.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
:root{
  --oxblood:#8c363f; --sailcloth:#f0ede6;
  --ground:#f0ede6; --raised:#f7f5f0; --sunk:#e6e0d4; --wash:#ebddd8;
  --ink:#3b1a1e; --soft:#6b4447; --accent:#8c363f; --rule:#d8ccbf; --rule-strong:#a0807c;
  --fill:#8c363f; --on-fill:#f0ede6; --focus:#5e2329; --work:rgba(140,54,63,.16); --mark:#8c363f;
  --show-ox:block; --show-cr:none;
  --display:"Marcellus","Trajan Pro","Times New Roman",serif;
  /* numbers in Newsreader with lining, tabular figures, as across the fleet (Marcellus figures are old-style, so it is kept for words) */
  --nums:"Newsreader",Georgia,"Times New Roman",serif;
  --text:"Newsreader",Georgia,"Times New Roman",serif;
}
@media (prefers-color-scheme:dark){:root:not([data-app]):not([data-theme="light"]){
  --ground:#2a1416; --raised:#341b1e; --sunk:#211012; --wash:#43242a;
  --ink:#f0ede6; --soft:#cdb9b4; --accent:#e09a9f; --rule:#4a2c30; --rule-strong:#8a6266;
  --fill:#f0ede6; --on-fill:#5e2329; --focus:#f0ede6; --work:rgba(224,154,159,.2); --mark:#f0ede6;
  --show-ox:none; --show-cr:block; color-scheme:dark}}
:root[data-app="sailcloth"]{color-scheme:light}
:root[data-theme="dark"]:not([data-app]){
  --ground:#2a1416; --raised:#341b1e; --sunk:#211012; --wash:#43242a;
  --ink:#f0ede6; --soft:#cdb9b4; --accent:#e09a9f; --rule:#4a2c30; --rule-strong:#8a6266;
  --fill:#f0ede6; --on-fill:#5e2329; --focus:#f0ede6; --work:rgba(224,154,159,.2); --mark:#f0ede6;
  --show-ox:none; --show-cr:block; color-scheme:dark}
:root[data-app="dark"]{
  --ground:#2a1416; --raised:#341b1e; --sunk:#211012; --wash:#43242a;
  --ink:#f0ede6; --soft:#cdb9b4; --accent:#e09a9f; --rule:#4a2c30; --rule-strong:#8a6266;
  --fill:#f0ede6; --on-fill:#5e2329; --focus:#f0ede6; --work:rgba(224,154,159,.2); --mark:#f0ede6;
  --show-ox:none; --show-cr:block; color-scheme:dark}
:root[data-app="canopus"]{
  --ground:#000; --raised:#0f0809; --sunk:#000; --wash:#2a1416;
  --ink:#f0ede6; --soft:#c4b2ae; --accent:#e09a9f; --rule:#2b1c1e; --rule-strong:#7a5f63;
  --fill:#f0ede6; --on-fill:#5e2329; --focus:#f0ede6; --work:rgba(240,237,230,.13); --mark:#f0ede6;
  --show-ox:none; --show-cr:block; color-scheme:dark}


*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--text);font-size:17px;line-height:25px;font-variant-numeric:lining-nums tabular-nums;font-feature-settings:"lnum" 1,"tnum" 1;min-height:100vh;min-height:100dvh}
:root[data-size="large"] body{font-size:19px;line-height:28px}
button,select,input,textarea{font:inherit;color:inherit;font-variant-numeric:lining-nums tabular-nums;font-feature-settings:"lnum" 1,"tnum" 1}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#sky{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;display:none;z-index:0}
:root[data-app="canopus"] #sky{display:block}
.app{position:relative;z-index:1;max-width:720px;margin:0 auto;padding:0 16px calc(24px + env(safe-area-inset-bottom));min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}

/* header */
.bar{display:flex;align-items:center;justify-content:space-between;padding:calc(8px + env(safe-area-inset-top)) 0 8px;gap:12px}
.brand{margin:0;line-height:0}
.logo{height:64px;width:auto}
.logo.ox{display:var(--show-ox)} .logo.cr{display:var(--show-cr)}
@keyframes swell{0%,100%{transform:translate3d(0,0,0) rotate(0)}50%{transform:translate3d(0,-2px,0) rotate(-.8deg)}}
.logo{transform-origin:18% 70%;animation:swell 7s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.logo{animation:none}}
.bar-end{display:flex;gap:8px;align-items:center}
.icon-btn{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--rule);background:var(--raised);border-radius:999px;cursor:pointer;color:var(--ink);flex:none}
.icon-btn:hover{border-color:var(--rule-strong)}
.icon-btn.labelled{width:auto;display:inline-flex;align-items:center;gap:6px;padding:0 14px 0 11px;font-size:15px}
.btxt{line-height:1}

/* buttons */
.ghost,.primary{border:1px solid var(--rule);background:var(--ground);border-radius:999px;min-height:44px;padding:4px 18px;cursor:pointer;font-size:16px;line-height:20px;color:var(--ink)}
.ghost:hover{border-color:var(--rule-strong)}
.primary{background:var(--fill);color:var(--on-fill);border-color:var(--fill);font-weight:600}
.primary:hover{filter:brightness(1.08)}
.ghost.sm{min-height:38px;padding:2px 14px;font-size:15px}
.ghost.danger{color:var(--accent);border-color:var(--accent)}
.linkish{border:0;background:none;padding:0 4px;color:var(--accent);text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-size:inherit;min-height:44px}
.btn-row{display:flex;flex-wrap:wrap;gap:8px}
.actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px;border-top:1px solid var(--rule)}
.actions.bare{border-top:0;padding-top:0}

.main{flex:1;display:flex;flex-direction:column;gap:14px;padding-top:4px}

/* the morning steps */
.morning{background:var(--raised);border:1px solid var(--rule);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:12px}
.morning h2{font:400 22px/28px var(--display);margin:0;color:var(--accent)}
.morning .lead{margin:0;color:var(--soft);font-size:16px;line-height:23px}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.steps li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:start}
.steps .n{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--accent);color:var(--accent);font-size:16px;font-weight:600}
.steps .s{display:flex;flex-direction:column;gap:8px;padding-top:3px}
.steps .s p{margin:0}
.steps .s .fine{margin-top:-4px}
.morning.done-today{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px}
.mstatus{display:flex;align-items:center;gap:10px;min-width:0;font-size:16px;line-height:22px}
.mstatus .dot{width:10px;height:10px;border-radius:50%;background:var(--accent);flex:none}
.mstatus b{font-weight:600}
.mstatus .sub{color:var(--soft)}

.sample-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-radius:12px;background:var(--wash);font-size:15px;line-height:21px}

/* progress */
.progress{display:flex;flex-direction:column;gap:6px}
.prog-line{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:15px;color:var(--soft)}
.prog-line b{font:600 20px/24px var(--text);color:var(--ink)}
.bar-track{height:10px;border-radius:999px;background:var(--sunk);border:1px solid var(--rule);overflow:hidden}
.bar-fill{height:100%;background:var(--accent);border-radius:999px;transition:width .4s ease}
@media (prefers-reduced-motion:reduce){.bar-fill{transition:none}}

/* view switch and search */
.tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.mode{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--rule);border-radius:999px;padding:3px;background:var(--raised);flex:1 1 260px}
.seg{border:0;background:none;border-radius:999px;min-height:42px;padding:4px 12px;cursor:pointer;color:var(--soft);font-size:16px;line-height:20px}
.seg[aria-checked="true"]{background:var(--fill);color:var(--on-fill)}
.search{flex:1 1 260px;display:flex;align-items:center;gap:8px;background:var(--raised);border:1px solid var(--rule);border-radius:999px;padding:0 14px;min-height:48px;color:var(--soft)}
.search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--work)}
.search input{flex:1;min-width:0;border:0;background:none;outline:none;font-size:16px;color:var(--ink);min-height:44px}
.search input::placeholder{color:var(--soft);opacity:.85}

/* the list */
.list{display:flex;flex-direction:column;gap:26px}
.group h3{display:flex;align-items:center;gap:8px;font:400 13px/18px var(--display);letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin:0 0 10px}
.group h3 .count{font:600 13px/18px var(--text);letter-spacing:0;color:var(--soft)}
.group .gnote{margin:-2px 0 8px;font-size:14px;line-height:20px;color:var(--soft)}
.group .gact{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.tasks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.task{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr);align-items:stretch;background:var(--raised);border:1px solid var(--rule);border-radius:16px;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.task.hi::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--accent)}
@media (hover:hover){.task:hover{border-color:var(--rule-strong)}}
.task:has(.row:focus-visible),.task:has(.tick:focus-visible){border-color:var(--accent);box-shadow:0 0 0 3px var(--work)}
.tick{width:56px;min-height:64px;display:grid;place-items:center;border:0;background:none;cursor:pointer;padding:0;color:var(--accent)}
.tick .box{width:28px;height:28px;border-radius:9px;border:2px solid var(--rule-strong);display:grid;place-items:center;transition:background .15s,border-color .15s;background:var(--ground)}
.tick .box svg{opacity:0;transition:opacity .15s}
.tick[aria-checked="true"] .box{background:var(--fill);border-color:var(--fill);color:var(--on-fill)}
.tick[aria-checked="true"] .box svg{opacity:1}
@media (hover:hover){.tick:hover .box{border-color:var(--accent)}}
.row{display:flex;flex-direction:column;gap:5px;justify-content:center;text-align:left;border:0;background:none;cursor:pointer;padding:14px 16px 15px 0;min-height:64px;color:var(--ink);min-width:0}
.row:focus-visible{outline:none}
.t-title{font-size:20px;line-height:27px;font-weight:500;overflow-wrap:anywhere}
:root[data-size="large"] .t-title{font-size:23px;line-height:31px}
.task.is-done{background:transparent}
.task.is-done .t-title{text-decoration:line-through;text-decoration-color:var(--rule-strong);color:var(--soft);font-size:17px;line-height:23px}
.task.is-done .task.just{animation:pop .45s ease}
@keyframes pop{0%{background:var(--wash)}100%{background:transparent}}
@media (prefers-reduced-motion:reduce){.task.just{animation:none}}
details.done-group summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:44px;font:400 13px/18px var(--display);letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
details.done-group summary::-webkit-details-marker{display:none}
details.done-group summary::before{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .2s;margin-right:2px}
details.done-group[open] summary::before{transform:rotate(45deg)}
.nothing{padding:14px 0;color:var(--soft);font-size:16px}

/* just three */
.three{display:flex;flex-direction:column;gap:10px}
.three .task{grid-template-columns:60px minmax(0,1fr)}
.three .t-title{font-size:23px;line-height:31px}
.three .row{padding-block:20px 21px}
.three-note{margin:0;font-size:15px;line-height:22px;color:var(--soft)}
.three-done{padding:18px;border:1px dashed var(--rule-strong);border-radius:14px;text-align:center;color:var(--soft)}
.three-done b{display:block;font:400 22px/28px var(--display);color:var(--accent);margin-bottom:4px}

/* empty */
.empty{display:flex;flex-direction:column;gap:12px;padding:6px 2px}
.empty h2{font:400 26px/32px var(--display);margin:0;color:var(--accent)}
.empty p{margin:0;color:var(--soft)}

.foot{padding:28px 0 0;font-size:15px;color:var(--soft);text-align:center}
.foot p{margin:0}

/* dialogs */
dialog{border:0;padding:0;background:transparent;max-width:min(560px,calc(100vw - 24px));width:100%;color:var(--ink)}
dialog::backdrop{background:rgba(20,8,10,.55)}
.sheet{background:var(--raised);border:1px solid var(--rule);border-radius:18px;padding:16px 18px 20px;display:flex;flex-direction:column;gap:14px;max-height:calc(100dvh - 40px);overflow:auto}
.sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.sheet h2{font:400 24px/30px var(--display);margin:0;color:var(--accent)}
.field{display:flex;flex-direction:column;gap:6px;font-size:15px}
.field>span:first-child{color:var(--soft);font-size:13px;letter-spacing:.04em}
.fine{margin:0;font-size:14px;line-height:20px;color:var(--soft)}
.saved-note{margin:-6px 0 0;font-size:14px;color:var(--soft)}
.about{margin:0;font-size:13px;line-height:19px;color:var(--soft)}
.ctext{margin:0;font-size:16px;line-height:24px}
textarea,input[type="text"]{width:100%;background:var(--ground);border:1px solid var(--rule-strong);border-radius:10px;padding:10px 12px;font-size:16px;line-height:22px;color:var(--ink)}
textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:20px;resize:vertical;min-height:160px}
textarea:focus,input[type="text"]:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--work)}

/* task detail */
.d-title{font:600 22px/29px var(--text);margin:0;color:var(--ink);overflow-wrap:anywhere}
.d-pills{display:flex;flex-wrap:wrap;gap:6px}
.pill{font-size:13px;line-height:18px;padding:3px 10px;border-radius:999px;background:var(--wash);color:var(--ink)}
.pill.hi{background:var(--fill);color:var(--on-fill)}
.pill.late{background:none;border:1.5px solid var(--accent);color:var(--accent);padding:1.5px 8.5px}
.d-note{margin:0;font-size:17px;line-height:25px}
.d-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 14px;margin:0;padding:12px 14px;border-radius:12px;background:var(--sunk);border:1px solid var(--rule)}
.d-facts dt{font:400 12px/22px var(--display);letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.d-facts dd{margin:0;font-size:16px;line-height:22px;overflow-wrap:anywhere;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.d-facts .mail{color:var(--soft)}
.copy-sm{border:1px solid var(--rule-strong);background:var(--ground);border-radius:999px;min-height:34px;padding:2px 12px;font-size:14px;cursor:pointer;color:var(--ink)}
.copy-sm:hover{border-color:var(--accent)}
.find-tip{margin:0;font-size:14px;line-height:20px;color:var(--soft)}
.wait-row{display:flex;gap:8px;flex-wrap:wrap}
.wait-row input{flex:1 1 200px;min-height:44px}
.d-gone{margin:0;padding:10px 12px;border-radius:12px;background:var(--wash);font-size:15px;line-height:21px}

/* import */
.counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px}
.counts div{background:var(--sunk);border:1px solid var(--rule);border-radius:12px;padding:10px 12px}
.counts b{display:block;font:500 28px/32px var(--text)}
.counts span{font-size:14px;line-height:18px;color:var(--soft)}
.msgs{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:21px}
.msgs li{padding:8px 12px;border-radius:10px;background:var(--wash)}
.msgs.err li{border-left:4px solid var(--accent)}
details.more summary{cursor:pointer;color:var(--accent);min-height:36px;display:flex;align-items:center}
.steps-mini{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:4px;font-size:16px}
.prompt-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/19px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--sunk);border:1px solid var(--rule);border-radius:12px;padding:12px 14px;max-height:46vh;overflow:auto}

/* settings */
.mini-seg{display:flex;flex-wrap:wrap;gap:6px}
.mini-seg button{border:1px solid var(--rule);background:var(--ground);border-radius:999px;min-height:40px;padding:4px 14px;cursor:pointer}
.mini-seg button[aria-checked="true"]{background:var(--fill);color:var(--on-fill);border-color:var(--fill)}
.archive{list-style:none;margin:0;padding:0;max-height:260px;overflow:auto;border-top:1px solid var(--rule)}
.archive li{display:flex;justify-content:space-between;gap:10px;padding:8px 2px;border-bottom:1px solid var(--rule);font-size:15px}
.archive li span:last-child{color:var(--soft);flex:none}

/* what's new */
.changes{display:flex;flex-direction:column;gap:18px}
.ver-block{display:flex;flex-direction:column;gap:6px}
.ver-head{display:flex;align-items:baseline;gap:10px}
.ver-no{font:600 20px/26px var(--text);color:var(--accent)}
.ver-date{font-size:13px;color:var(--soft)}
.ver-block h3{margin:0;font-size:16px;line-height:22px;font-weight:600}
.ver-block ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ver-block li{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px;font-size:14px;line-height:20px}
.kind{font-size:11px;line-height:18px;letter-spacing:.06em;text-transform:uppercase;border-radius:999px;text-align:center;align-self:start;padding:1px 6px;background:var(--wash)}
.kind.k-new{background:var(--fill);color:var(--on-fill)}

/* appearance menu */
.theme-menu{position:relative}
#themeIcon{display:grid;place-items:center}
.dd{position:absolute;right:0;top:calc(100% + 6px);z-index:20;list-style:none;margin:0;padding:6px;min-width:210px;background:var(--raised);border:1px solid var(--rule-strong);border-radius:12px;box-shadow:0 10px 30px rgba(20,8,10,.22)}
.dd li,.theme-list button{display:grid;grid-template-columns:24px minmax(0,1fr) 18px;align-items:center;gap:10px;min-height:44px;padding:0 10px;border-radius:8px;cursor:pointer;font-size:16px;color:var(--ink)}
.dd li:hover,.dd li:focus{background:var(--wash);outline:none}
.dd .tk,.theme-list .tk{visibility:hidden;color:var(--accent);display:grid}
.dd [aria-checked="true"] .tk,.theme-list [aria-checked="true"] .tk{visibility:visible}
.ti{display:grid;place-items:center;color:var(--accent)}
.theme-list{display:flex;flex-direction:column;gap:4px}
.theme-list button{width:100%;border:1px solid var(--rule);background:var(--ground);text-align:left}
.theme-list button[aria-checked="true"]{border-color:var(--accent)}
.keys{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:14px}
.keys dt{white-space:nowrap}.keys dd{margin:0;color:var(--soft)}
kbd{font:inherit;font-size:13px;border:1px solid var(--rule-strong);border-bottom-width:2px;border-radius:5px;padding:0 6px;background:var(--ground)}
@media (pointer:coarse){.desk-only{display:none}}

/* toast, update bar, drop zone */
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:var(--fill);color:var(--on-fill);padding:8px 8px 8px 18px;border-radius:24px;line-height:21px;width:max-content;font-size:15px;z-index:40;box-shadow:0 6px 20px rgba(0,0,0,.25);max-width:calc(100vw - 32px)}
.toast:not(:has(button:not([hidden]))){padding-right:18px}
.toast button{border:0;border-radius:999px;min-height:36px;padding:4px 16px;background:var(--on-fill);color:var(--fill);font-weight:600;cursor:pointer;flex:none}
.updbar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom));z-index:30;display:flex;align-items:center;gap:12px;background:var(--fill);color:var(--on-fill);padding:8px 8px 8px 18px;border-radius:999px;font-size:15px;box-shadow:0 8px 24px rgba(0,0,0,.25);max-width:calc(100vw - 32px)}
.updbar button{border:0;border-radius:999px;min-height:36px;padding:4px 16px;background:var(--on-fill);color:var(--fill);font-weight:600;cursor:pointer}
.drop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:rgba(20,8,10,.55);padding:24px}
.drop>div{background:var(--raised);border:2px dashed var(--accent);border-radius:20px;padding:36px 44px;text-align:center;color:var(--accent);font-size:18px}
.drop p{margin:8px 0 0}

@media (min-width:720px){.bar{padding-top:18px}.main{gap:16px}}
@media (max-width:420px){.logo{height:54px}.icon-btn.labelled{padding:0 11px 0 9px;font-size:14px;gap:5px}.morning{padding:14px}}

/* icons */
.ic{flex:none;display:block}
/* motion: cards settle in, ticks draw, the done card slides away */
.tick .box svg path{stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset .26s ease .04s}
.tick[aria-checked="true"] .box svg path{stroke-dashoffset:0}
@media (prefers-reduced-motion:no-preference){
  @keyframes cardIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
  .enter{animation:cardIn .46s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * 45ms)}
  @keyframes boxPop{0%{transform:scale(1)}45%{transform:scale(1.18)}100%{transform:scale(1)}}
  .task.ticking .box{animation:boxPop .3s ease}
  .task.ticking .t-title{color:var(--soft);text-decoration:line-through;text-decoration-color:var(--rule-strong);transition:color .2s}
  .task.leaving{opacity:0;transform:translateX(28px);height:0!important;min-height:0;border-width:0;margin-block:-5px;transition:opacity .28s ease,transform .32s ease,height .34s ease .06s,margin .34s ease .06s,border-width .34s}
  @keyframes toastIn{from{opacity:0;transform:translate(-50%,14px)}to{opacity:1;transform:translate(-50%,0)}}
  .toast:not([hidden]),.updbar:not([hidden]){animation:toastIn .28s cubic-bezier(.2,.7,.2,1)}
  @keyframes ddIn{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}
  .dd:not([hidden]){animation:ddIn .16s ease-out;transform-origin:top right}
  @keyframes sheetIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
  dialog[open] .sheet{animation:sheetIn .26s cubic-bezier(.2,.7,.2,1)}
  @keyframes fadeIn{from{opacity:0}to{opacity:1}}
  dialog[open]::backdrop{animation:fadeIn .2s ease}
  .seg{transition:background .2s,color .2s}
  }

/* minimal pass (17 Oct 2026): one quiet line under each task, plain headings, fewer controls */
.t-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;font-size:15px;line-height:21px;color:var(--soft)}
.when{display:inline-flex;align-items:center;gap:6px;color:var(--ink)}
.when.late{color:var(--accent);font-weight:600}
.task.is-done .t-meta{font-size:14px}
.group h3,details.done-group summary{font:400 18px/24px var(--display);letter-spacing:0;text-transform:none;color:var(--ink);margin:0 0 10px;gap:10px}
.group h3 .count,details.done-group summary .count{font:500 14px/20px var(--text);color:var(--soft)}
details.done-group summary{min-height:44px;margin:0}
.group .gnote{margin:-4px 0 10px}
.morning.compact{background:none;border:0;padding:0;gap:8px}
.morning.compact .btn-row .primary,.morning.compact .btn-row .ghost{flex:1 1 0}
.morning .steps .s .primary,.morning .steps .s .ghost{align-self:flex-start}
.tools{flex-wrap:nowrap}
.tools .mode{flex:1 1 auto}
.tools .icon-btn{width:48px;height:48px}
.tools .search{flex:1 1 100%}
.tools:has(.search:not([hidden])){flex-wrap:wrap}
.sample-note{background:none;padding:0 2px;justify-content:flex-start;gap:8px;color:var(--soft)}
.sample-note .linkish{min-height:32px}
.bar-track{height:6px;border:0}
.prog-line{font-size:14px}
.prog-line b{font-size:17px}
.primary.wide{width:100%;min-height:52px;font-size:17px}
.or{display:flex;align-items:center;gap:12px;margin:2px 0;color:var(--soft);font-size:14px}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--rule)}
#pasteBox{min-height:110px}
.try{align-self:flex-start;color:var(--soft)}
#q::-webkit-search-cancel-button{display:none}

/* sign-in, unlock and no-access */
.gate{position:relative;z-index:1;min-height:100dvh;display:grid;place-items:center;padding:24px max(16px,env(safe-area-inset-left,0px)) 24px max(16px,env(safe-area-inset-right,0px))}
.gate-card{width:100%;max-width:420px;background:var(--raised);border:1px solid var(--rule);border-radius:20px;padding:26px 22px 24px;display:flex;flex-direction:column;gap:14px;align-items:stretch}
.gate-logo{width:168px;height:auto;align-self:center;display:var(--show-ox)}
.gate-card h2{font:400 26px/32px var(--display);margin:0;color:var(--accent);text-align:center}
.gate-card p{margin:0;color:var(--soft);text-align:center}
.gate-card form{display:flex;flex-direction:column;gap:10px}
.gate-card input[type="password"]{width:100%;min-height:48px;background:var(--ground);border:1px solid var(--rule-strong);border-radius:12px;padding:10px 14px;font-size:17px;color:var(--ink)}
.gate-card input[type="password"]:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--work)}
.gate-err{color:var(--accent);font-weight:600}
.gate-card .linkish{align-self:center}
/* where things stand with the account */
.sync-line{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;line-height:20px;color:var(--soft)}
.sync-dot{width:8px;height:8px;border-radius:50%;background:var(--rule-strong);flex:none}
.sync-dot.s-synced{background:#4f8a5b}
.sync-dot.s-syncing{background:var(--accent);animation:blink 1s ease-in-out infinite}
.sync-dot.s-pending,.sync-dot.s-offline,.sync-dot.s-locked{background:var(--rule-strong)}
.sync-dot.s-error{background:var(--accent)}
@keyframes blink{50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.sync-dot.s-syncing{animation:none}}
.account{display:flex;flex-direction:column;gap:10px}

/* 1.2.0: card button, focus, close the day, review */
.task{grid-template-columns:56px minmax(0,1fr) 48px}
.three .task{grid-template-columns:60px minmax(0,1fr) 48px}
.go{border:0;background:none;cursor:pointer;color:var(--soft);display:grid;place-items:center;min-height:56px;padding:0}
.go:hover{color:var(--accent)}
.go.none{visibility:hidden}
.go:focus-visible{outline:none;color:var(--accent)}
.sheet.focus{min-height:min(70dvh,560px);justify-content:space-between}
.f-count{font:400 13px/18px var(--display);letter-spacing:.14em;text-transform:uppercase;color:var(--accent);align-self:center}
.f-card{display:flex;flex-direction:column;gap:12px;flex:1;justify-content:center;padding:8px 2px}
.f-title{font:600 28px/36px var(--text);margin:0;color:var(--ink);overflow-wrap:anywhere}
:root[data-size="large"] .f-title{font-size:31px;line-height:40px}
.f-note{margin:0;font-size:17px;line-height:25px;color:var(--soft)}
.f-acts{display:flex;flex-direction:column;gap:10px;padding-top:8px}
.f-acts .ghost{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media (prefers-reduced-motion:no-preference){
  @keyframes fIn{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
  .f-card.f-in{animation:fIn .28s cubic-bezier(.2,.7,.2,1)}
  .f-card.f-out{opacity:0;transform:translateX(-24px);transition:opacity .22s,transform .22s}
}
.plain{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:16px}
.plain li{display:flex;align-items:center;gap:8px;color:var(--soft)}
.plain li .ic{color:var(--accent)}
.fine.closed{display:inline-flex;align-items:center;gap:6px;color:var(--accent)}
.sheet.review{max-width:560px}
.rv{display:flex;flex-direction:column;gap:8px;padding-top:6px;border-top:1px solid var(--rule)}
.rv h3{margin:0;font:400 18px/24px var(--display);color:var(--ink)}
.chart{width:100%;height:auto;display:block;font-variant-numeric:lining-nums tabular-nums}
.chart .grid{stroke:var(--rule);stroke-width:1}
.chart .axis{stroke:var(--rule-strong);stroke-width:1}
.chart .tick{fill:var(--soft);font:12px var(--text);font-variant-numeric:lining-nums tabular-nums}
.chart .bar.s0{fill:var(--accent)}
.chart .bar.s1{fill:var(--rule-strong)}
.legend{margin:0;font-size:13px;color:var(--soft);display:flex;gap:12px;align-items:center}
.legend .sw{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:4px}
.legend .s0{background:var(--accent)} .legend .s1{background:var(--rule-strong)}
.rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.rows li{display:grid;grid-template-columns:minmax(90px,38%) 1fr 32px;align-items:center;gap:10px;font-size:15px}
.r-name{display:inline-flex;align-items:center;gap:6px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r-name .ic{color:var(--accent)}
.r-track{height:8px;border-radius:999px;background:var(--sunk);overflow:hidden}
.r-fill{display:block;height:100%;background:var(--accent);border-radius:999px}
.r-val{text-align:right;color:var(--soft)}
.cat{display:inline-flex;align-items:center;gap:6px;font:400 12px/18px var(--display);letter-spacing:.14em;text-transform:uppercase;color:var(--soft)}
.cat .ic{color:var(--accent)}
.close-day{align-self:flex-start;min-height:36px;padding:0}
.chart .tick{font-size:10px}
