/* v0.17.9 layer scale: the only z-index values above 30 live here. Page < bars < sheets < full screens < pop-overs. */
:root{--side-w:300px}   /* 2026-11-23 (Amuii: 「right bar … same width, no RWD」): every page's right column (今日's pictures, an open goal, 展出, a show) is this one width, sticky */
:root{--z-toast:80;--z-bar:40;--z-bar2:46;--z-bar3:47;--z-sheet:44;--z-notice:45;--z-night:50;--z-full:60;--z-combo:70;--z-top:9000;--z-top2:9999}
/* Public version, on top of base.css (the v18 design system). */

/* ---------- theme tokens: palette colours are set on :root by themes.js ---------- */
:root{
  --c1:#2F6BFF; --c2:#B5B5AF; --c3:#FF6A13; --c4:#14894F;
  --acc-tint:color-mix(in srgb,var(--acc) 30%,var(--bg));
  --c1-tint:color-mix(in srgb,var(--c1) 16%,var(--bg));
  --c2-tint:color-mix(in srgb,var(--c2) 24%,var(--bg));
  --c3-tint:color-mix(in srgb,var(--c3) 18%,var(--bg));
  --c4-tint:color-mix(in srgb,var(--c4) 16%,var(--bg));
  --life:var(--c1); --life-tint:var(--c1-tint); --ev:var(--c1); --ev-tint:var(--c1-tint); --gold:var(--c1); --gold-tint:var(--c1-tint);
  --biz:var(--c2); --biz-tint:var(--c2-tint); --mm:var(--c3); --mm-tint:var(--c3-tint);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --acc-tint:color-mix(in srgb,var(--acc) 22%,var(--bg));
  --c1-tint:color-mix(in srgb,var(--c1) 26%,var(--bg)); --c2-tint:color-mix(in srgb,var(--c2) 20%,var(--bg));
  --c3-tint:color-mix(in srgb,var(--c3) 24%,var(--bg)); --c4-tint:color-mix(in srgb,var(--c4) 24%,var(--bg));
  --life:var(--c1); --life-tint:var(--c1-tint); --ev:var(--c1); --ev-tint:var(--c1-tint); --gold:var(--c1); --gold-tint:var(--c1-tint);
  --biz:var(--c2); --biz-tint:var(--c2-tint); --mm:var(--c3); --mm-tint:var(--c3-tint)}}
:root[data-theme="dark"]{
  --acc-tint:color-mix(in srgb,var(--acc) 22%,var(--bg));
  --c1-tint:color-mix(in srgb,var(--c1) 26%,var(--bg)); --c2-tint:color-mix(in srgb,var(--c2) 20%,var(--bg));
  --c3-tint:color-mix(in srgb,var(--c3) 24%,var(--bg)); --c4-tint:color-mix(in srgb,var(--c4) 24%,var(--bg));
  --life:var(--c1); --life-tint:var(--c1-tint); --ev:var(--c1); --ev-tint:var(--c1-tint); --gold:var(--c1); --gold-tint:var(--c1-tint);
  --biz:var(--c2); --biz-tint:var(--c2-tint); --mm:var(--c3); --mm-tint:var(--c3-tint)}
body{min-height:100vh;padding-bottom:96px}
#root{min-height:100vh}

/* category colours (activity slots) */
.cat-acc{background:var(--acc);box-shadow:inset 0 0 0 1.5px var(--acc-ink)}
.cat-c1{background:var(--c1)} .cat-c2{background:var(--c2)} .cat-c3{background:var(--c3)} .cat-c4{background:var(--c4)}
.cat-none{background:transparent;box-shadow:inset 0 0 0 1.5px var(--faint)}
.k-acc{background:var(--acc-tint);color:var(--ink);box-shadow:inset 4px 0 0 var(--acc)} .k-acc select{font-weight:var(--fw-head)}
.k-c1{background:var(--c1-tint);box-shadow:inset 4px 0 0 var(--c1)}
.k-c2{background:var(--c2-tint);box-shadow:inset 4px 0 0 var(--c2)}
.k-c3{background:var(--c3-tint);box-shadow:inset 4px 0 0 var(--c3)}
.k-c4{background:var(--c4-tint);box-shadow:inset 4px 0 0 var(--c4)}
.k-none{background:transparent;color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}

/* ---------- utilities ---------- */
.faint{color:var(--faint)}
.lk.danger,.btn.danger{color:var(--red)}
.btn.danger{border-color:var(--red)}
.btn:disabled{opacity:.4;cursor:default}
.btn.wide{width:100%;padding:13px 14px;font-size:14px}
.warn{font-size:12.5px;color:var(--red);margin:0}
.note{display:block;font-size:11.5px;color:var(--muted);letter-spacing:0;font-weight:var(--fw-body);margin-top:2px}
.flab{display:block;font-size:10.5px;letter-spacing:.12em;color:var(--muted);font-weight:var(--fw-label);margin-bottom:6px}
.inp.ta{resize:vertical;line-height:1.6;font:inherit}
.md.sel{box-shadow:inset 0 0 0 1.5px var(--ink)}
.md:disabled{cursor:default}
.stack{display:flex;flex-direction:column;gap:20px;min-width:0}
.inline-l{display:inline-flex;align-items:center;gap:8px;font-size:13px;margin-left:20px}

/* ---------- demo bar ---------- */
.demobar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--acc-tint);margin:0 calc(-1 * max(16px,env(safe-area-inset-left,0px))) 0;padding:8px max(16px,env(safe-area-inset-left,0px));font-size:13px;font-weight:var(--fw-label)}
.demobar .btn{padding:6px 12px;font-size:12.5px}

/* ---------- top bar ---------- */
.avatar{width:34px;height:34px;display:grid;place-items:center;color:var(--ink);border:1px solid var(--line);background:var(--bg);cursor:pointer;font-family:var(--f-num);font-weight:var(--fw-head);font-size:15px}
.avatar:hover,.avatar[aria-pressed="true"]{border-color:var(--ink)}
.avatar[aria-pressed="true"]{background:var(--acc);color:var(--acc-ink);border-color:var(--acc-ink)}
.avatar svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}
.mbar{display:none}

/* ---------- today: mobile drawing strip ---------- */
.mstrip{display:none}

/* ---------- today's task ---------- */
.ttask{display:flex;flex-direction:column;gap:12px}
.ttask .trow{margin-bottom:0}
.task-h{display:flex;justify-content:space-between;align-items:center;gap:14px}
.task-h .focus{margin:0}
.big-btn{padding:12px 22px;font-size:15px;font-weight:var(--fw-head);flex:none}
.task-o{align-items:center}
.task-o .foot{margin-right:4px}
.sbars{display:flex;flex-direction:column;gap:6px}
.sbar{display:grid;grid-template-columns:minmax(64px,auto) minmax(0,1fr) auto;gap:10px;align-items:center;font-size:12.5px}
.sb-n{font-weight:var(--fw-label);white-space:nowrap}
.sb-b{height:8px;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line)}
.sb-b i{display:block;height:100%;background:var(--acc);box-shadow:inset 0 0 0 1px var(--acc-ink)}
.sb-v{font-family:var(--f-num);font-weight:var(--fw-head);font-variant-numeric:tabular-nums;color:var(--muted);min-width:48px;text-align:right}
.sbar.full .sb-n{color:var(--muted)} .sbar.full .sb-v{color:var(--ink)}

/* ---------- water ---------- */
.water2{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap}
.water2 .lab{margin:0}
.water2 .glasses{display:flex;gap:var(--sp-1);flex-wrap:wrap;flex:1;min-width:0}
.water2 .glass{width:24px;height:33px}
.water2 .w-c{font-size:12px;color:var(--muted);line-height:1.3}
.water2 .w-c b{font-size:26px;color:var(--ink);margin-right:var(--sp-1)}
.water2 .btn{padding:var(--sp-2) var(--sp-3);font-weight:var(--fw-head)}

/* ---------- timeline ---------- */
.tl-tile .trow{margin-bottom:var(--sp-1)}
.timeline{position:relative;margin-top:6px}
.tl-b{display:grid;grid-template-columns:44px 72px minmax(0,1fr) auto;align-items:start;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-2);position:relative;overflow:hidden}
.tl-t{padding-top:var(--sp-1)}
.tl-n{font-weight:var(--fw-label);font-size:15px;line-height:1.3;min-width:0;padding-top:var(--sp-2)}
.tl-d{font-family:var(--f-num);font-size:12px;font-weight:var(--fw-label);color:var(--muted);font-variant-numeric:tabular-nums;padding-top:var(--sp-2)}
.tl-t{padding-top:var(--sp-2)}
.tl-ck-e{width:40px}
.k-acc .tl-n{font-weight:var(--fw-head)}
.tl-ck{width:40px;height:40px;border-radius:50%;border:2px solid var(--ink);background:var(--bg);cursor:pointer;display:grid;place-items:center;padding:0;transition:transform .12s}
.tl-ck svg{width:20px;height:20px;stroke:var(--faint);fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;opacity:.35}
.tl-ck:hover{transform:scale(1.06)}
.tl-ck:hover svg{opacity:.7}
.tl-ck.on{background:var(--acc);border-color:var(--acc-ink)}
.tl-ck.on svg{stroke:var(--acc-ink);opacity:1}
.tl-b.done .tl-n{opacity:.45;text-decoration:line-through;text-decoration-thickness:1px}
.tl-b.done .tl-t,.tl-b.done .tl-d{opacity:.45}
.tl-b.nocheck{color:var(--muted)}
.tl-now{position:absolute;left:0;right:0;height:0;border-top:2px solid var(--red);z-index:3;pointer-events:none}
.tl-now span{position:absolute;right:0;top:-11px;background:var(--red);color:var(--red-ink);font-size:11px;font-weight:var(--fw-head);padding:var(--sp-1) var(--sp-2);font-family:var(--f-num)}
.tl-now span b{font-weight:var(--fw-head)}
.tl-fx{position:absolute;right:12px;height:0;z-index:2;pointer-events:none}
.tl-fx span{position:absolute;right:0;top:-10px;white-space:nowrap;font-size:11px;font-weight:var(--fw-label);background:var(--bg);border:1px solid var(--ink);padding:var(--sp-1) var(--sp-2)}
#rtNote{margin:0 0 4px;font-size:11.5px;color:var(--muted);text-align:right}

/* ---------- week ---------- */
.snap.s3{grid-template-columns:repeat(3,minmax(0,1fr))}
.wk-pl{margin-top:16px}
.collage{display:grid;gap:3px;grid-template-columns:repeat(3,1fr)}
.collage .ph-box{aspect-ratio:1}
.collage.c1{grid-template-columns:1fr}.collage.c1 .ph-box{aspect-ratio:4/3}
.collage.c2,.collage.c4{grid-template-columns:1fr 1fr}

/* ---------- tomorrow ---------- */
.tmr{padding-top:0;padding-bottom:0}
.tmr-h{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:inherit;padding:18px 0;cursor:pointer;text-align:left;font:inherit}
.tmr-h .lab{margin:0}
.tmr-s{flex:1;font-size:13px;font-weight:var(--fw-label);min-width:0}
.tmr-h .car{color:var(--muted)}
.tmr-b{display:flex;flex-direction:column;gap:14px;padding-bottom:20px}
.tmr-b .btn{align-self:flex-start;padding:10px 16px}
.tm-strip{display:flex;height:30px;gap:2px;width:100%}
.tm-b{min-width:4px;display:flex;align-items:center;overflow:hidden;font-size:10.5px;font-weight:var(--fw-label);padding:0 4px;white-space:nowrap}
.tm-b span{overflow:hidden;text-overflow:ellipsis}

/* ---------- grid (stage × item) ---------- */
.grid-wrap{overflow-x:auto;margin:0 -4px;padding:0 4px 6px;-webkit-overflow-scrolling:touch}
.grid{display:flex;flex-direction:column;gap:4px;width:max-content}
.g-row{display:flex;gap:4px;align-items:stretch}
.g-lab{position:sticky;left:-4px;z-index:2;background:var(--bg);width:84px;flex:none;font-size:12px;font-weight:var(--fw-head);display:flex;align-items:center;padding-right:6px}
.g-cell,.g-col{width:40px;height:40px;flex:none;border:1px solid var(--line);background:var(--bg);font-family:var(--f-num);font-weight:var(--fw-head);font-size:13px;color:var(--faint);cursor:pointer;padding:0;font-variant-numeric:tabular-nums}
.g-col{height:28px;border:0;color:var(--muted);font-size:11.5px;background:transparent}
.g-col.done{color:var(--ink);background:var(--acc-tint)}
.g-cell.ex,.g-col.ex{width:auto;min-width:52px;padding:0 8px;font-family:var(--f-body);font-size:12px}
.g-cell:hover{border-color:var(--ink);color:var(--ink)}
.g-cell.on{background:var(--acc);border-color:var(--acc-ink);color:var(--acc-ink)}
.pg-top{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.pg-bars{margin-bottom:16px}

/* ---------- project types & projects ---------- */
.types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.typecard{gap:6px}
.ty-ic{width:40px;height:40px;display:block}
.ty-ic svg{width:100%;height:100%;stroke:var(--ink);fill:none;stroke-width:2;stroke-linejoin:round}
.typecard[aria-pressed="true"] .ty-ic svg{fill:var(--acc)}
.ty-ic.sm{width:30px;height:30px;flex:none}
.newproj{margin-top:18px;border-top:1px solid var(--ink);padding-top:16px}
.proj2{display:flex;flex-direction:column;gap:14px}
.p2-h{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.p2-t{display:flex;gap:12px;align-items:flex-start;min-width:0}
.p2-t b{font-size:22px;font-weight:var(--fw-head);letter-spacing:-.02em;line-height:1.15}
.p2-t .meta{margin-top:6px}
.p2-act{display:flex;align-items:center;justify-content:space-between;gap:12px}
.p2-act .btn{padding:10px 20px;font-weight:var(--fw-head)}
.pmore{border-top:1px solid var(--line);padding-top:16px}
.p2-danger{display:flex;justify-content:space-between;gap:12px}
.pct-u{font-size:18px;letter-spacing:0}
.sech{display:flex;justify-content:space-between;align-items:center;gap:12px}
.sech .tier{margin:0;font-size:12px}
.wall2{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.wcell{margin:0;display:flex;flex-direction:column;gap:6px}
.wcell .ph-box{aspect-ratio:3/4}
.wcell figcaption{display:flex;flex-direction:column;font-size:12px;line-height:1.3}
.wcell figcaption b{font-weight:var(--fw-head);font-size:13px}
.wcell figcaption span{color:var(--muted)}
.ph-box{background:var(--soft);overflow:hidden;position:relative;max-width:100%}
.ph-box img{width:100%;height:100%;object-fit:cover;display:block}
.ph-box:not(.has) img{opacity:0}
.ph-box.noimg{display:flex;align-items:flex-end;background:var(--acc-tint);box-shadow:inset 0 0 0 1px var(--line)}
.ph-box.noimg span{padding:10px;font-weight:var(--fw-head);font-size:15px;line-height:1.2}
.cv{width:64px;height:64px}
.item-ph{aspect-ratio:3/4;max-height:50vh;margin-bottom:12px}
.form .cover-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cover-row .flab{width:100%;margin:0}
.fold summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px}
.fold summary::-webkit-details-marker{display:none}
.fold summary.lab{margin:0}
.fold[open] summary{margin-bottom:12px}
.idea{grid-template-columns:minmax(0,1fr) auto auto}

/* ---------- 我的 ---------- */
.mefold{padding-top:0;padding-bottom:0}
.mefold summary{list-style:none;display:flex;align-items:center;gap:12px;padding:18px 0;cursor:pointer}
.mefold summary::-webkit-details-marker{display:none}
.mefold summary .lab{margin:0}
.fold-s{flex:1;text-align:right;font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mefold .car{color:var(--muted);transition:transform .15s;font-size:16px}
.mefold details[open] .car{transform:rotate(90deg)}
.fold-b{display:flex;flex-direction:column;gap:14px;padding-bottom:22px}
.tpls{display:flex;flex-direction:column}
.tplrow{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.tplrow:first-child{border-top:0}
.tplrow b{font-weight:var(--fw-head)}
.tplrow .faint{flex:1;font-size:12.5px}
.actrow{display:grid;grid-template-columns:minmax(120px,1fr) auto auto auto 28px;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.swatches{display:flex;gap:4px}
.swb{width:22px;height:22px;border:0;cursor:pointer;padding:0;box-shadow:inset 0 0 0 1px var(--line)}
.swb[aria-checked="true"]{outline:2px solid var(--ink);outline-offset:2px}
.sw-acc{background:var(--acc)} .sw-c1{background:var(--c1)} .sw-c2{background:var(--c2)} .sw-c3{background:var(--c3)} .sw-c4{background:var(--c4)}
.sw-none{background:transparent;box-shadow:inset 0 0 0 1.5px var(--faint)}
.fxrow{grid-template-columns:120px 110px minmax(0,1fr) 28px}
.pickgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.fontcard .fc-s{font-weight:var(--fw-head);font-size:22px;letter-spacing:-.03em;line-height:1.1}
.fc-n{font-size:12px;font-weight:var(--fw-head)}
.fc-d{font-size:11.5px;color:var(--muted);font-family:var(--f-body)}
.pc-sw{display:flex;height:28px}
.pc-sw i{flex:1}
.pc-sw i:first-child{flex:2.4;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.acct{display:flex;flex-direction:column;gap:10px}
.acct p{margin:0}
.acct-b{display:flex;gap:8px;flex-wrap:wrap}
.danger-z{border-top:1px solid var(--line);padding-top:12px;margin-top:6px}
.danger-z summary{cursor:pointer;font-weight:var(--fw-label);color:var(--red);font-size:13px}
.danger-z .idea-add{margin-top:6px}
.tplform{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:end;margin-bottom:12px}
.opts .opt{min-width:38px;text-align:center}

/* ---------- pick cards ---------- */
.cards{display:grid;gap:8px}
.pickcard{border:1px solid var(--line);background:transparent;text-align:left;cursor:pointer;color:var(--ink);padding:14px 16px;display:flex;flex-direction:column;gap:4px;font:inherit}
.pickcard:hover{border-color:var(--ink)}
.pickcard[aria-pressed="true"]{border-color:var(--acc-ink);box-shadow:inset 0 0 0 1px var(--acc-ink),inset 6px 0 0 var(--acc)}
.bc-t{font-weight:var(--fw-head);font-size:18px;letter-spacing:-.01em}
.bc-d{font-size:12.5px;color:var(--muted)}
.bigcard .tm-strip{height:16px;margin-top:8px}
.ob-note{margin:0 0 14px;color:var(--muted);font-size:14px}

/* ---------- sheets ---------- */
.sheet-wrap{position:fixed;inset:0;background:rgba(10,10,10,.42);z-index:30;display:flex;align-items:center;justify-content:center;padding:16px;padding-top:max(16px,env(safe-area-inset-top,0px));padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}
.sheet{background:var(--bg);border:1px solid var(--ink);max-width:460px;width:100%;max-height:100%;overflow:auto;padding:20px 22px;--sheet-pb:20px;padding-bottom:var(--sheet-pb)}   /* --sheet-pb: what a bar stuck to the bottom must cover too */
.sheet.wide{max-width:820px}
.sheet-h{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.sheet-h .lab{margin:0;font-size:12px;color:var(--ink)}
.sheet-b p{margin:0 0 10px;font-size:15px}
.sheet-b p:first-child{font-weight:var(--fw-head);font-size:17px}
.sheet-f{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:16px}
.sheet-f.left{justify-content:flex-start}
.auth-wrap{background:rgba(10,10,10,.5)}
.auth-wrap .sheet{max-width:480px;padding:22px 24px 26px}
.auth-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.auth-top .seg{min-width:180px}
.entry-brand{font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(46px,12vw,76px);line-height:.95;letter-spacing:-.05em;margin:22px 0 6px}
.entry-tag{margin:0;font-size:16px;font-weight:var(--fw-label)}
.entry-box{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--ink);padding-top:18px;margin-top:18px}
.entry-box form{display:flex;flex-direction:column;gap:12px}
.big-in{font-size:19px;font-weight:var(--fw-label);padding:10px 2px;width:100%}
.code-in{font-family:var(--f-num);font-size:30px;letter-spacing:.3em;font-weight:var(--fw-head)}
.or{display:flex;align-items:center;gap:10px;color:var(--faint);font-size:12px;margin:2px 0}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.err{color:var(--red);font-size:13px;font-weight:var(--fw-label);margin:0}

/* ---------- floating idea button ---------- */
.fab{position:fixed;right:max(18px,calc(env(safe-area-inset-right,0px) + 12px));bottom:max(18px,calc(env(safe-area-inset-bottom,0px) + 12px));width:56px;height:56px;border:1.5px solid var(--acc-ink);background:var(--acc);color:var(--acc-ink);cursor:pointer;display:grid;place-items:center;z-index:15}
.fab svg{width:26px;height:26px;stroke:currentColor;stroke-width:2.6;fill:none;stroke-linecap:round}
.fab:hover{filter:brightness(.96)}

/* ---------- calendar ---------- */
.ag-nav{display:flex;gap:8px;align-items:center}

/* ---------- desktop ---------- */
@media (min-width:1024px){
  .wk-nums{display:none}
  .week .wk-pl{margin-top:0}
  .week:not(:has(.wk-pl)){display:none}
}

/* ---------- phone & tablet ---------- */
@media (max-width:1023px){
  .rail{display:none!important}
  body{padding-bottom:100px}
  .top{position:sticky;top:env(safe-area-inset-top,0px);z-index:12;background:var(--bg);flex-wrap:wrap;padding:10px 0 8px;margin-bottom:12px;gap:6px}
  body::before{background:var(--bg)}
  .tabs{margin-right:44px}
  .tab{font-size:30px;padding-right:12px}
  .topr{top:10px}
  .mbar{display:flex;align-items:center;gap:10px;width:100%}
  .mdate{border:0;background:transparent;padding:0;cursor:pointer}
  .mdate .tc{font-size:12.5px;padding:5px 8px}
  .mclock{font-size:22px;letter-spacing:-.03em;margin-left:auto}
  .mbar .nav .ib{height:30px}
  .mstrip{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center;background:var(--acc);color:var(--acc-ink);padding:12px 14px}
  .mstrip .lab{color:inherit;opacity:.8;margin:0 0 2px;display:block}
  .ms-n{font-size:34px;line-height:.9}
  .ms-n small{font-size:12px;opacity:.75;letter-spacing:0;margin-left:3px}
  .ms-c{margin:0 0 6px;font-size:13.5px;font-weight:var(--fw-head);line-height:1.3}
  .ms-c .mk{background:none;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px}
  .mstrip .bar{height:4px;background:rgba(0,0,0,.14)} .mstrip .bar i{display:block;height:100%;background:var(--acc-ink)}
  #p-today .tile{box-shadow:0 0 0 1px var(--line)}
  .tile{padding:16px}
  .tmr{padding-top:0;padding-bottom:0}
  .mefold{padding-top:0;padding-bottom:0}
  .types{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sheet-wrap{align-items:flex-end;padding:0;padding-top:max(24px,env(safe-area-inset-top,0px))}
  .sheet{max-width:none!important;border-width:1px;max-height:92vh;padding:18px 16px;--sheet-pb:max(22px,env(safe-area-inset-bottom,0px));padding-bottom:var(--sheet-pb)}
  .auth-wrap{align-items:center;padding:16px}
  .auth-wrap .sheet{border-width:1px;max-height:none}
  .task-h{flex-wrap:wrap}
  .actrow{grid-template-columns:1fr auto;row-gap:8px}
  .actrow .swatches{grid-column:1/-1}
  .tplform{grid-template-columns:1fr}
  .fxrow{display:flex;flex-wrap:wrap}
  .inline-l{margin-left:0}
}
@media (max-width:420px){
  .tab{font-size:26px}
  .tl-b{grid-template-columns:42px 64px minmax(0,1fr) auto;gap:var(--sp-2);padding-left:var(--sp-2);padding-right:var(--sp-2)}
  .tl-n{font-size:14px}
  .g-lab{width:68px;font-size:11px}
}
.confetti{z-index:var(--z-bar2)}

.steps1{display:grid;gap:6px}
.s1{border:1.5px solid var(--line);background:var(--bg);color:var(--muted);cursor:pointer;padding:10px 4px 9px;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12.5px;font-weight:var(--fw-head);font-family:var(--f-body)}
.s1 i{font-style:normal;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;border:2px solid var(--faint);font-family:var(--f-num);font-weight:var(--fw-head);font-size:15px;color:var(--faint)}
.s1:hover{border-color:var(--ink);color:var(--ink)}
.s1.on{color:var(--ink)}
.s1.on i{background:var(--acc);border-color:var(--acc-ink);color:var(--acc-ink)}
.me-h{font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(34px,5vw,56px);letter-spacing:-.04em;margin:0;line-height:1}

/* ================= v0.3 ================= */
.ic{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;display:block}
.icl{display:inline-flex;align-items:center;gap:6px}
.icl .ic{width:16px;height:16px}
.btn.icl .ic{width:16px;height:16px;stroke-width:2.2}
.ic.inl{display:inline-block;width:16px;height:16px;vertical-align:-3px}
.sh-x{font-size:13px;font-weight:var(--fw-label)}

/* today layout */
#p-today:not([hidden]){display:flex;flex-direction:column;gap:var(--sp-3)}
.t-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:20px;align-items:start}
.t-main,.t-side{display:flex;flex-direction:column;gap:12px;min-width:0}
@media (max-width:1180px){.t-grid{grid-template-columns:1fr}}

/* now card */
.now{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;padding:18px 20px;border:1.5px solid var(--ink);background:var(--bg)}
.now.draw{background:var(--acc);border-color:var(--acc-ink);color:var(--acc-ink)}
.now-ic .ic{width:44px;height:44px;stroke-width:1.5}
.now-b{min-width:0}
.now-k{margin:0;font-size:12px;font-weight:var(--fw-head);letter-spacing:.1em;font-family:var(--f-num)}
.now-t{margin:2px 0 4px;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(26px,3.6vw,40px);letter-spacing:-.03em;line-height:1.05;overflow-wrap:anywhere}
.now-p{font-weight:var(--fw-label);letter-spacing:-.01em}
.now-s{margin:0;font-size:13px;font-weight:var(--fw-label);opacity:.8;font-variant-numeric:tabular-nums}
.now-done{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:2px solid var(--ink);background:var(--bg);color:var(--ink);width:88px;height:88px;cursor:pointer;font-weight:var(--fw-head);font-size:14px;font-family:var(--f-body)}
.now-done .ic{width:34px;height:34px;stroke-width:2.6}
.now-done:hover{transform:scale(1.03)}
.now-done.on{background:var(--ink);color:var(--bg)}
.now-play{width:88px;height:88px;border:2px solid var(--acc-ink);background:var(--acc);color:var(--acc-ink);display:grid;place-items:center;cursor:pointer}
.now-play .ic{width:36px;height:36px;fill:currentColor;stroke-width:1.5}
.now.go{grid-template-columns:auto minmax(0,1fr)}
.now.quiet{border-color:var(--line);padding:12px 16px}
.now.quiet .now-t{font-size:18px;margin:0}
.now.quiet .now-ic .ic{width:24px;height:24px}

/* project folder tabs */
.ptabs{display:flex;gap:var(--sp-1);overflow-x:auto;scrollbar-width:none;align-items:flex-end;position:relative;z-index:1;margin-bottom:-1px}
.ptabs::-webkit-scrollbar{display:none}
.ptab{display:flex;align-items:center;gap:var(--sp-2);border:1px solid var(--line);border-bottom:0;background:var(--soft);padding:var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-2);max-width:230px;cursor:pointer;color:var(--muted);font-weight:var(--fw-head);font-size:13.5px;flex:none;font-family:var(--f-body)}
.ptab.on{background:var(--bg);border-color:var(--ink);color:var(--ink);padding-bottom:var(--sp-2)}
.ptab .pt-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pt-th{width:28px;height:28px;flex:none}
.ptab.add{padding:var(--sp-2) var(--sp-2);background:transparent;border-style:dashed;border-bottom:0}
.ppanel{border:1px solid var(--ink);padding:16px;background:var(--bg)}
.pp-h{display:flex;gap:10px;align-items:center;margin-bottom:12px;font-size:12.5px}
.ty-box{display:grid;place-items:center;background:var(--soft);color:var(--ink)}
.ty-box .ic{width:58%;height:58%;stroke-width:1.6}
.wa-act{display:flex;gap:14px;align-items:center;margin-top:12px;flex-wrap:wrap}
.wa-act .faint{font-size:12px}

/* bigger grid */
.g-cell{width:44px;height:44px;font-size:15px}
.g-cell.ex{min-width:58px;font-size:13.5px}
.g-lab{width:96px;font-size:14px}
.steps1 .s1{font-size:14px}
.steps1 .s1 i .ic{width:20px;height:20px;stroke-width:3}
.pick-items{display:flex;flex-wrap:wrap;gap:6px}

/* timeline */
.tl-head{display:flex;gap:var(--sp-3);align-items:center;margin-bottom:var(--sp-2);font-size:10.5px;letter-spacing:.12em;font-weight:var(--fw-label);color:var(--muted)}
.tl-head label{display:flex;align-items:center;gap:var(--sp-2)}
.tl-head input{font-family:var(--f-num);font-weight:var(--fw-head);font-size:var(--fs-in,15px);border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);width:auto;min-width:0;letter-spacing:0}
.tl-head label{min-width:0}
.tl-head .lk{margin-left:auto;padding:var(--sp-1)}
.tl-head .lk .ic{width:18px;height:18px}
.timeline{position:relative;margin:0}
.tl-r{display:grid;grid-template-columns:22px 42px 18px minmax(0,1fr) auto;gap:var(--sp-2);align-items:start;padding:var(--sp-2) var(--sp-2) 0;border-top:1px solid var(--line);font-size:14px;overflow:hidden;box-sizing:border-box}
.tl-r.can{cursor:pointer}
.tl-r.can:hover{background:var(--soft)}
.tl-r.draw{background:var(--acc-tint);box-shadow:inset 3px 0 0 var(--acc)}
.tl-r:not(.can) .tl-n{color:var(--muted);font-weight:var(--fw-body)}
.tl-box{width:22px;height:22px;display:grid;place-items:center}
.tl-r.can .tl-box{border:1.5px solid var(--faint);border-radius:2px;background:var(--bg)}
.tl-box .ic{width:15px;height:15px;stroke-width:3;opacity:0}
.tl-r.done .tl-box{background:var(--acc);border-color:var(--acc-ink)}
.tl-r.done .tl-box .ic{opacity:1;color:var(--acc-ink)}
.tl-tm{font-family:var(--f-num);font-weight:var(--fw-label);font-size:12.5px;color:var(--muted);padding-top:var(--sp-1);font-variant-numeric:tabular-nums}
.tl-ic .ic{width:18px;height:18px;color:var(--muted)}
.tl-r.draw .tl-ic .ic{color:var(--ink)}
.tl-n{font-weight:var(--fw-label);padding-top:var(--sp-1);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-d{font-size:12px;color:var(--muted);font-family:var(--f-num);padding-top:var(--sp-1)}
.tl-r.done .tl-n{text-decoration:line-through;opacity:.5}
.tl-now{position:absolute;left:0;right:0;height:0;border-top:2px solid var(--red);z-index:3;pointer-events:none}
.tl-now::before{content:"";position:absolute;left:-4px;top:-5px;width:8px;height:8px;border-radius:50%;background:var(--red)}
.tl-fx{right:6px}
.tl-tmr{margin-top:var(--sp-3);font-weight:var(--fw-label)}
.tl-tmr .ic{width:18px;height:18px}

/* water + week */
.water2 .btn{padding:var(--sp-2) var(--sp-3)}
.water2 .btn .ic{fill:currentColor;stroke-width:0}
.wk-done{display:flex;gap:6px;align-items:center;cursor:pointer;margin-top:12px;flex-wrap:wrap}
.wk-th{width:40px;height:40px;display:block}
.wk-done .foot{display:inline-flex;align-items:center;gap:6px;font-weight:var(--fw-label);color:var(--ink)}
.wk-done .foot .ic{width:16px;height:16px}

/* tomorrow & good night */
.tm-list{display:flex;flex-direction:column}
.tm-row{display:grid;grid-template-columns:52px 22px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 0;border-top:1px solid var(--line);font-size:16px}
.tm-row .tl-n{font-weight:var(--fw-label)}
.tm-row.draw .tl-n{font-weight:var(--fw-head)}
.tm-row.draw{box-shadow:inset 3px 0 0 var(--acc);padding-left:8px}
.night{position:fixed;inset:0;z-index:var(--z-night);background:#0e0e0e;color:#f4f4f0;display:grid;place-items:center;animation:nightIn .4s ease;cursor:pointer;padding:24px}
.night.out{opacity:0;transition:opacity .4s}
.night-c{text-align:center;max-width:520px}
.night-c .ic{width:56px;height:56px;margin:0 auto 18px;stroke:#e5ff1f;stroke-width:1.5}
.night-c p{margin:0;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(26px,6vw,40px);line-height:1.2;letter-spacing:-.02em}
.night-c .night-s{font-size:16px;font-weight:var(--fw-label);opacity:.6;margin-top:12px}
@keyframes nightIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.night{animation:none}}

/* goals */
#p-goals:not([hidden]),#p-works:not([hidden]),#p-ideas:not([hidden]){display:flex;flex-direction:column;gap:var(--sp-3)}
.why2{display:flex;flex-direction:column;gap:4px}
.why2 .lab{margin:0}
.why2 textarea{width:100%;border:0;border-bottom:2px solid var(--ink);font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(22px,3.2vw,36px);line-height:1.25;background:transparent;resize:none;padding:6px 0;color:var(--ink);letter-spacing:-.02em}
.why2 textarea:focus{outline:none;border-bottom-color:var(--acc-ink);background:var(--acc-tint)}
.why2 textarea::placeholder{color:var(--faint)}
.prow2{display:flex;flex-direction:column}
.pr-h{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:var(--sp-3);align-items:center;width:100%;border:0;background:transparent;padding:0;cursor:pointer;text-align:left;color:inherit;font:inherit;margin-bottom:var(--sp-3)}
.pr-th{width:64px;height:64px;display:block}
.pr-t{min-width:0}
.pr-t b{display:block;font-size:22px;font-weight:var(--fw-head);letter-spacing:-.02em;line-height:1.15}
.pr-t .meta{margin-top:var(--sp-2)}
.pr-f{display:flex;justify-content:flex-end;margin-top:var(--sp-2)}
.prow2.open{box-shadow:0 0 0 1.5px var(--ink)}

/* new project */
.types .ty-box{width:44px;height:44px;background:transparent}
.typecard[aria-pressed="true"] .ty-box{background:var(--acc)}
.newproj{display:flex;flex-direction:column;gap:22px;margin-top:20px;border-top:1px solid var(--ink);padding-top:18px}
.np-name{width:100%;border:0;border-bottom:2px solid var(--ink);font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(26px,5vw,40px);padding:8px 0;background:transparent;color:var(--ink);letter-spacing:-.02em}
.np-name:focus{outline:none;background:var(--acc-tint)}
.np-name::placeholder{color:var(--faint)}
.np-q{display:flex;align-items:center;gap:12px}
.np-q input{width:170px;font-family:var(--f-num);font-weight:var(--fw-head);font-size:76px;letter-spacing:-.05em;text-align:center;border:0;border-bottom:2px solid var(--ink);background:transparent;color:var(--ink);line-height:1;padding:0}
.np-q input:focus{outline:none;background:var(--acc-tint)}
.np-b{width:56px;height:56px;border:1.5px solid var(--ink);background:var(--bg);cursor:pointer;display:grid;place-items:center;color:var(--ink)}
.np-b .ic{width:26px;height:26px;stroke-width:2.4}
.np-b:hover{background:var(--acc)}
.np-due{display:flex;flex-direction:column;max-width:260px}
.np-due .inp{font-size:18px;font-weight:var(--fw-label)}

/* works */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px 16px}
.art{border:0;background:transparent;padding:0;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:6px;color:inherit;font:inherit}
.art-img{aspect-ratio:3/4;width:100%;display:block}
.art:hover .art-img{outline:2px solid var(--ink);outline-offset:3px}
.art-n{font-weight:var(--fw-head);font-size:17px;letter-spacing:-.01em}
.art-m{font-size:12px;color:var(--muted)}
.wk-cover{aspect-ratio:4/3;margin-bottom:16px}
.wk-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-bottom:8px}
.wk-photos figure{margin:0}
.wk-photos .ph-box{aspect-ratio:3/4;display:block}
.wk-photos figcaption{font-size:11.5px;color:var(--muted);margin-top:4px;font-weight:var(--fw-label)}
.done-wrap .sheet{max-width:480px;text-align:center}
.done-card{display:flex;flex-direction:column;align-items:center;gap:6px}
.done-img{width:min(240px,64vw);aspect-ratio:3/4;display:block}
.done-t{font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(44px,12vw,64px);letter-spacing:-.04em;margin:16px 0 0;background:linear-gradient(transparent 55%,var(--acc) 55%);padding:0 8px;line-height:1}
.done-n{font-size:20px;font-weight:var(--fw-head);margin:6px 0 0}
.done-card .sheet-f{justify-content:center}

/* ideas */
.idea-big{display:flex;gap:10px;align-items:center;border-bottom:2px solid var(--ink);padding:4px 0}
.idea-big input{flex:1;border:0;background:transparent;font-size:clamp(20px,3vw,28px);font-weight:var(--fw-head);color:var(--ink);padding:12px 0;min-width:0}
.idea-big input:focus{outline:none}
.idea-big input::placeholder{color:var(--faint)}
.ilist{display:flex;flex-direction:column}
.irow{display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.ibox{width:38px;height:38px;border:1.5px solid var(--line);background:var(--bg);display:grid;place-items:center;cursor:pointer;color:var(--muted);padding:0}
.irow.done .ibox{background:var(--acc);border-color:var(--acc-ink);color:var(--acc-ink)}
.ibox .ic{width:20px;height:20px}
.it{font-size:17px;font-weight:var(--fw-label);min-width:0;overflow-wrap:anywhere}
.it small{display:block;font-size:11.5px;color:var(--muted);font-weight:var(--fw-body);margin-top:2px}
.irow.done .it{opacity:.5}

/* me */
.me-g{font-size:11px;letter-spacing:.16em;font-weight:var(--fw-head);color:var(--muted);margin:26px 0 8px}
.me-stack{gap:6px}
.mefold summary{gap:12px}
.mf-ic .ic{width:20px;height:20px;color:var(--ink)}
.mf-t{font-weight:var(--fw-head);font-size:15px}
.me-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-top:14px;padding-bottom:14px}
.me-row .seg{min-width:220px}
.me-inline{display:flex;align-items:center;gap:8px;font-size:13px;flex-wrap:wrap}
.me-inline .inp{width:auto}
.alist{display:flex;flex-direction:column}
.arow{display:grid;grid-template-columns:34px minmax(0,1fr) auto 16px;gap:12px;align-items:center;border:0;border-top:1px solid var(--line);background:transparent;padding:10px 0;cursor:pointer;text-align:left;color:inherit;font:inherit;width:100%}
.arow:hover .a-n{text-decoration:underline}
.a-ic{width:34px;height:34px;display:grid;place-items:center;background:var(--soft)}
.a-ic .ic{width:18px;height:18px}
.sl-acc{background:var(--acc)} .a-ic.sl-c1{background:var(--c1-tint)} .a-ic.sl-c2{background:var(--c2-tint)} .a-ic.sl-c3{background:var(--c3-tint)} .a-ic.sl-c4{background:var(--c4-tint)} .a-ic.sl-none{background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
.a-n{font-weight:var(--fw-label)}
.a-tag{font-size:11px;font-weight:var(--fw-head);background:var(--acc);color:var(--acc-ink);padding:2px 6px}
.arow > .ic:last-child,.tplrow > .ic:last-child{width:14px;height:14px;color:var(--faint)}
.tplrow{display:grid;grid-template-columns:auto minmax(0,1fr) 16px;gap:12px;align-items:center;width:100%;border:0;border-top:1px solid var(--line);background:transparent;padding:12px 0;cursor:pointer;text-align:left;color:inherit;font:inherit}
.tplrow:first-child{border-top:0}
.icgrid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.icb{aspect-ratio:1;border:1px solid var(--line);background:var(--bg);display:grid;place-items:center;cursor:pointer;color:var(--ink);padding:0}
.icb[aria-pressed="true"]{background:var(--acc);border-color:var(--acc-ink)}
.icb .ic{width:20px;height:20px}
.fxrow{grid-template-columns:120px 110px minmax(0,1fr) auto}

@media (max-width:1023px){
  .now{padding:14px 14px;gap:12px}
  .now-ic .ic{width:32px;height:32px}
  .now-done,.now-play{width:72px;height:72px}
  .g-cell{width:42px;height:42px;font-size:14px}
  .g-lab{width:76px;font-size:12.5px}
  .tab{font-size:25px;padding-right:0}
  .tab::after{display:none}
  .tabs{gap:0 12px;flex-wrap:nowrap}
  .irow{grid-template-columns:40px minmax(0,1fr);row-gap:4px}
  .irow > .lk{grid-column:2;justify-self:start}
  .irow > .lk + .lk{margin-top:-4px}
  .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}
  .np-q input{width:130px;font-size:64px}
  .icgrid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media (max-width:380px){ .tab{font-size:22px} .tabs{gap:0 9px} }
.art-img .ic{width:34%;height:34%;stroke-width:1.2;color:var(--muted)}

/* ================= v0.4 ================= */
/* buttons: primary actions are big and easy to hit */
.sheet-f .btn.red,.big-btn{min-height:52px;font-size:16px;padding:12px 22px}
.btn.icl{justify-content:center}
.ty-tag{display:inline-flex;align-items:center;font-size:11.5px;font-weight:var(--fw-head);letter-spacing:.02em;padding:2px 7px;background:var(--soft);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line);white-space:nowrap;flex:none}
.noimg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--soft);color:var(--muted);font-size:12px;font-weight:var(--fw-label)}
.noimg .ic{width:26px;height:26px;stroke-width:1.5}

/* today: start bar */
.daybar.quiet{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;box-shadow:0 0 0 1px var(--line);font-weight:var(--fw-label);flex-wrap:wrap}
.start-big{display:flex;align-items:center;gap:18px;width:100%;border:2px solid var(--acc-ink);background:var(--acc);color:var(--acc-ink);padding:18px 22px;cursor:pointer;text-align:left;font-family:var(--f-body)}
.start-big .ic{width:40px;height:40px;fill:currentColor;stroke-width:1.5}
.start-big b{display:block;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(28px,4vw,40px);letter-spacing:-.03em;line-height:1}
.start-big small{display:block;font-size:13px;font-weight:var(--fw-label);opacity:.75;margin-top:4px}
.start-big:hover{filter:brightness(.97)}

/* folder tabs: type label + name */
.ptab{padding:var(--sp-2) var(--sp-3);gap:var(--sp-2)}
.ptab.on{padding-bottom:var(--sp-2)}
.ptab .ty-tag{font-size:11px}
.ptab.on .ty-tag{background:var(--acc);box-shadow:none;color:var(--acc-ink)}
.pp-h{margin-bottom:12px}

/* work area: artwork + grid */
.wa-img{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;aspect-ratio:3/4;border:1.5px dashed var(--faint);background:var(--soft);color:var(--muted);cursor:pointer;font-size:13px;font-weight:var(--fw-label);padding:0;font-family:var(--f-body);overflow:hidden}
.wa-img .ic{width:28px;height:28px;stroke-width:1.5}
.wa-img:hover{border-color:var(--ink);color:var(--ink)}
.wa-img.has{border:0;background:var(--soft)}
.wa-img img{width:100%;height:100%;object-fit:cover;display:block}
.wa-chg{position:absolute;right:8px;bottom:8px;width:34px;height:34px;display:grid;place-items:center;background:var(--bg);color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.wa-chg .ic{width:18px;height:18px}
.wa-g{min-width:0}
@media (max-width:640px){
  .wa-img{aspect-ratio:4/3;max-height:300px}
}
.prow2 .wa{margin-top:var(--sp-1)}

/* vertical grid: stages across, items down */
.vgrid{display:flex;flex-direction:column;gap:var(--sp-1)}
.vg-h,.vg-r{display:grid;gap:var(--sp-1);align-items:center}
.vg-h{position:sticky;top:0;z-index:2;background:var(--tile);padding:var(--sp-1) 0 var(--sp-2);align-items:end}
.vg-u{font-size:11px;font-weight:var(--fw-head);color:var(--muted);letter-spacing:.08em}
.vg-st{display:flex;flex-direction:column;align-items:center;gap:var(--sp-1);font-size:12px;font-weight:var(--fw-head);line-height:1.15;text-align:center;overflow-wrap:anywhere}
.vg-st i{font-style:normal;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:var(--ink);color:var(--bg);font-family:var(--f-num);font-size:11px;font-weight:var(--fw-head)}
.vg-l{font-family:var(--f-num);font-weight:var(--fw-head);font-size:17px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vg-r.ex .vg-l{font-family:var(--f-body);font-size:13px;letter-spacing:0}
.vg-r.done .vg-l{color:var(--muted)}
.vg-c{height:34px;border:1px solid var(--line);background:var(--bg);cursor:pointer;display:grid;place-items:center;padding:0;color:var(--acc-ink)}
.vg-c:hover{border-color:var(--ink)}
.vg-c.on{background:var(--acc-tint);border-color:color-mix(in srgb,var(--acc-ink) 25%,var(--acc))}
.vg-c .ic{width:16px;height:16px;stroke-width:3}
.vg-img{width:40px;height:40px;border:1px dashed var(--faint);background:var(--soft);display:grid;place-items:center;cursor:pointer;padding:0;color:var(--muted);overflow:hidden}
.vg-img .ic{width:16px;height:16px}
.vg-img.has{border:0}
.vg-img img{width:100%;height:100%;object-fit:cover;display:block}
.vg-sum{display:flex;align-items:center;gap:var(--sp-2);width:100%;border:0;background:var(--acc-tint);padding:var(--sp-2) var(--sp-3);cursor:pointer;font-weight:var(--fw-head);font-size:13.5px;color:var(--ink);text-align:left;font-family:var(--f-body)}
.vg-sum .ic{width:16px;height:16px;stroke-width:3}
.vg-sum .lk{margin-left:auto}
.vg-hide{align-self:flex-end}
.steps1 .s1 span{font-size:15px}

/* timeline: current row and black now line */
.tl-r.cur{box-shadow:inset 4px 0 0 var(--ink);background:var(--soft)}
.tl-r.cur.draw{background:var(--acc-tint)}
.tl-r.cur .tl-n{font-weight:var(--fw-head)}
.tl-now{border-top-color:var(--ink)}
.tl-now::before{background:var(--ink)}
.sleep-cta{width:100%;margin-top:16px;min-height:52px;font-size:16px;gap:10px;display:flex;align-items:center}
.sleep-cta .ic{width:20px;height:20px}

/* tomorrow sheet */
.tmr-wrap .sheet{max-width:520px}
.tmr-t{margin:4px 0 0;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(30px,7vw,42px);letter-spacing:-.03em;line-height:1.1}
.tmr-l{margin:8px 0 18px;font-size:16px;font-weight:var(--fw-label);color:var(--muted)}
.tmr-ok{width:100%;min-height:58px;font-size:18px;margin-top:20px;display:flex;align-items:center;justify-content:center;gap:10px}
.tmr-ok .ic{width:22px;height:22px}
.tmr-adj{display:flex;margin:14px auto 0;gap:6px;font-size:14px;color:var(--ink)}
.tmr-adj .ic{width:16px;height:16px}

/* goals: row + edit */
.pr-h{grid-template-columns:auto minmax(0,1fr) auto}
.pr-th{width:56px;height:56px}
.pr-t .meta{display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-2);align-items:center}
.pe-open{width:100%;margin-top:16px;min-height:50px;font-size:15px;display:flex;align-items:center;gap:8px}
.pe-open .ic{width:18px;height:18px}
.pedit{display:flex;flex-direction:column;gap:24px;border-top:1px solid var(--ink);padding-top:18px;margin-top:4px}
.pe-row{display:flex;flex-wrap:wrap;gap:24px 40px;align-items:flex-end}
.pe-sec{display:flex;flex-direction:column;gap:8px}
.pe-hint{margin:0;font-size:12.5px}
.pe-two{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}
.pe-two .flab{grid-column:1/-1}
.pe-two .inp{font-size:16px;padding:8px 2px}
.pe-done{width:100%;min-height:60px;font-size:18px;display:flex;align-items:center;justify-content:center;gap:10px;margin-top:4px}
.pe-done .ic{width:24px;height:24px;stroke-width:3}
.pe-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.pe-foot .btn{display:flex;align-items:center;gap:8px;padding:10px 14px}
.pe-foot .btn .ic{width:16px;height:16px}

/* numbered stage editor */
.se{display:flex;flex-direction:column;gap:6px}
.se-r{display:grid;grid-template-columns:32px minmax(0,1fr) 40px 40px;gap:8px;align-items:center}
.se-n{width:28px;height:28px;border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-family:var(--f-num);font-weight:var(--fw-head);font-size:14px}
.se-in{border:0;border-bottom:1.5px solid var(--line);background:transparent;font-size:17px;font-weight:var(--fw-label);padding:8px 2px;color:var(--ink);min-width:0;font-family:var(--f-body)}
.se-in:focus{outline:none;border-bottom-color:var(--ink);background:var(--acc-tint)}
.se-b{width:40px;height:40px;border:1px solid var(--line);background:var(--bg);display:grid;place-items:center;cursor:pointer;color:var(--ink);padding:0}
.se-b:hover:not(:disabled){border-color:var(--ink)}
.se-b:disabled{opacity:.25;cursor:default}
.se-b .ic{width:16px;height:16px}
.se-add{align-self:flex-start;margin-top:4px;font-size:14px;color:var(--ink);gap:6px}
.se-add .ic{width:16px;height:16px}

/* extras chips */
.chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;font-size:14px;font-weight:var(--fw-label);border:1px solid var(--line);background:var(--bg);color:var(--ink);font-family:var(--f-body)}
.chip.on{border-color:var(--ink);background:var(--soft);padding-right:4px}
.chip.on button{width:32px;height:32px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--muted)}
.chip.on button:hover{color:var(--ink)}
.chip .ic{width:14px;height:14px}
.chip.add{border-style:dashed;cursor:pointer;color:var(--muted)}
.chip.add:hover{border-color:var(--ink);color:var(--ink)}
.chip-other{display:inline-flex;gap:6px;align-items:center}
.chip-other .inp{width:180px;font-size:var(--fs-in,15px)}

/* create sheet type icons */
.ty-ic{display:block;color:var(--ink)}
.ty-ic .ic{width:26px;height:26px;stroke-width:1.6}

/* works */
.art-img.noimg{aspect-ratio:3/4;width:100%}
button.wk-cover{display:block;width:100%;border:0;padding:0;cursor:pointer;aspect-ratio:4/3}
.wk-photos figure > button{width:100%;aspect-ratio:3/4;display:block;cursor:pointer;padding:0;border:0}
.wk-photos figure > button.wa-img{border:1.5px dashed var(--faint);display:flex}
.wk-photos .ph-box img{width:100%;height:100%;object-fit:cover}

/* ideas */
.ibox{border:0;background:transparent;cursor:default;color:var(--muted)}
.irow.linked .ibox{color:var(--ink)}
.ist{display:inline-flex;align-items:center;gap:6px;border:0;background:var(--acc-tint);color:var(--ink);font-weight:var(--fw-head);font-size:13.5px;padding:8px 12px;cursor:pointer;font-family:var(--f-body);white-space:nowrap}
.ist.done{background:var(--acc)}
.ist .ic{width:16px;height:16px}
.irow .btn.icl{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.irow .btn .ic{width:15px;height:15px}

/* settings: bulk activity table */
.atab{display:flex;flex-direction:column}
.at-h,.at-r{display:grid;grid-template-columns:40px minmax(0,1fr) 76px 76px 40px;gap:10px;align-items:center}
.at-h{font-size:12px;font-weight:var(--fw-head);padding-bottom:6px;border-bottom:1px solid var(--ink)}
.at-h span{text-align:center}
.at-r{padding:8px 0;border-bottom:1px solid var(--line)}
.at-r .a-ic{border:0;cursor:pointer;color:var(--ink)}
.at-n{font-size:16px;font-weight:var(--fw-label);padding:8px 2px}
.sw{position:relative;display:grid;place-items:center;cursor:pointer}
.sw input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.sw i{display:block;width:52px;height:30px;border:1.5px solid var(--ink);background:var(--bg);position:relative;transition:background .15s}
.sw i::after{content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;background:var(--ink);transition:transform .15s}
.sw input:checked + i{background:var(--acc)}
.sw input:checked + i::after{transform:translateX(22px)}
.sw input:focus-visible + i{outline:2px solid var(--ink);outline-offset:2px}
.tst{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px 28px}
.tst-h{display:flex;align-items:center;gap:8px;font-weight:var(--fw-head);font-size:15px;margin:0 0 8px}
@media (max-width:640px){
  .at-h,.at-r{grid-template-columns:36px minmax(0,1fr) 60px 60px 32px;gap:6px}
  .at-h{font-size:11px}
  .sw i{width:46px;height:28px} .sw i::after{width:19px;height:19px} .sw input:checked + i::after{transform:translateX(18px)}
  .pe-two{grid-template-columns:1fr}
  .irow{grid-template-columns:40px minmax(0,1fr)}
  .irow > .ist,.irow > .btn{grid-column:2;justify-self:start}
}

/* calendar on phones: fill the screen, readable numbers */
@media (max-width:760px){
  .ag-head .mn{font-size:56px}
  .ag{margin-left:-16px;margin-right:-16px}
  .ag .dw{text-align:center;font-size:12px;padding:8px 2px}
  .agc{min-height:calc((100dvh - 260px) / 6);padding:6px 4px}
  .agc .dn{font-size:28px}
  .agc .lb{display:block;font-size:10px;line-height:1.25;padding:1px 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .agc .mdots{display:none}
  .agc .cp{height:4px}
}
.sw i{border-color:var(--faint)}
.sw i::after{background:var(--faint)}   /* square knob; 圓角 rounds it */
.sw input:checked + i{border-color:var(--acc-ink)}
.sw input:checked + i::after{background:var(--acc-ink)}
@media (max-width:640px){ .wa-img:not(.has){aspect-ratio:auto;height:96px;flex-direction:row} }

/* ================= v0.5 : layout ================= */
/* shell: one sticky header (logo, tabs, date); no global side rail */
.app{display:block!important;max-width:1440px;margin:0 auto}
.main{display:block!important;padding:0 0 64px!important}
.top,.rail,.mbar{display:none!important}
@media (min-width:1024px){ body{padding-left:max(32px,env(safe-area-inset-left,0px));padding-right:max(32px,env(safe-area-inset-right,0px))} }
.hdr{position:sticky;top:env(safe-area-inset-top,0px);z-index:15;background:var(--bg);display:flex;align-items:center;gap:28px;height:68px;border-bottom:1px solid var(--ink);margin-bottom:24px}
.brand{display:flex;align-items:center;gap:10px;border:0;background:none;cursor:pointer;padding:0;font-family:var(--f-num);font-weight:var(--fw-head);font-size:18px;letter-spacing:-.02em;color:var(--ink);white-space:nowrap;flex:none}
.logo{width:26px;height:26px;color:var(--ink);flex:none}
.hdr .tabs{display:flex;flex-wrap:nowrap;align-items:center;gap:0 20px;margin:0;padding:0;overflow:visible;min-width:0}
.hdr .tab{font-size:28px;padding:0 14px 0 0;line-height:1;display:flex;align-items:center}
.hdr .tab .ic{display:none}
.hdr-r{margin-left:auto;display:flex;align-items:center;gap:14px;flex:none}
.hdate{border:0;background:none;padding:0;cursor:pointer}
.hdate .tc.late{background:var(--acc);color:var(--acc-ink)}
.hclock{font-family:var(--f-num);font-weight:var(--fw-head);font-size:22px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.hdr .sync{font-size:11.5px;color:var(--muted);max-width:110px}
@media (max-width:1180px) and (min-width:1024px){ .hdr .tab{font-size:22px} .hdr{gap:18px} .hdr .sync{display:none} }
@media (max-width:1023px){
  .hdr{height:54px;gap:10px;margin-bottom:14px}
  .brand{font-size:15px;gap:8px} .logo{width:22px;height:22px}
  .hdr-r{gap:10px} .hdr .sync{display:none}
  .hclock{font-size:18px}
  .hdate .tc{font-size:12px;padding:4px 7px}
  /* bottom tab bar */
  .hdr .tabs{position:fixed;left:0;right:0;bottom:0;z-index:16;background:var(--bg);border-top:1px solid var(--ink);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:0 0 env(safe-area-inset-bottom,0px)}
  .hdr .tab{flex-direction:column;justify-content:center;gap:3px;font-family:var(--f-body);font-size:11px;font-weight:var(--fw-head);letter-spacing:0;padding:8px 0 7px;color:var(--muted);height:58px}
  .hdr .tab .ic{display:block;width:22px;height:22px}
  .hdr .tab::after{display:none}
  .hdr .tab[aria-selected="true"]{color:var(--ink);box-shadow:inset 0 3px 0 var(--ink)}
  .hdr .tab[aria-selected="true"] .ic{color:var(--ink)}
  body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .main{padding-bottom:24px!important}
}
@media (max-width:360px){ .brand b{display:none} }

/* feedback appears at the top, where the hand doesn't cover it */

/* today */
.t-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}
.t-main{display:flex;flex-direction:column;gap:24px;min-width:0}
.t-side{position:sticky;top:calc(92px + env(safe-area-inset-top,0px));display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 108px);overflow:auto}
@media (max-width:1180px) and (min-width:1024px){ .t-grid{grid-template-columns:minmax(0,1fr) 320px;gap:20px} }
@media (max-width:1023px){
  .t-grid{display:flex;flex-direction:column;gap:14px}
  .t-main,.t-side{display:contents}
  #hero{order:1} #tlTile{order:2} #water{order:3} #projArea{order:4} #recent{order:5}
}
.hero{display:flex;flex-direction:column;gap:var(--sp-3);padding-bottom:var(--sp-4);}
.hero-why{border:0;background:none;padding:0;text-align:left;cursor:pointer;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(24px,2.8vw,38px);line-height:1.22;letter-spacing:-.02em;color:var(--ink)}
.hero-why:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.hero-why.empty{color:var(--muted);font-size:20px;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:5px}
.hero-n{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--sp-4);align-items:end}
.hero-n .lab{display:block;margin:0 0 var(--sp-2)}
.hero-n b.big{display:inline-block;font-size:clamp(56px,6.5vw,88px);line-height:.88;letter-spacing:-.05em;background:var(--acc);color:var(--acc-ink);padding:var(--sp-2) var(--sp-2) var(--sp-1)}
.hero-n b.big small{font-size:20px;letter-spacing:0;margin-left:var(--sp-2)}
.hero-p{display:flex;flex-direction:column;gap:var(--sp-2);padding-bottom:var(--sp-1);min-width:0}
.hero-p .bar{display:block;height:6px;background:var(--line)}
.hero-p .bar i{display:block;height:100%;background:var(--ink)}
.hero-p .cheer{font-weight:var(--fw-head);font-size:15px}
.hero-wk{display:flex;align-items:center;gap:var(--sp-2) var(--sp-3);flex-wrap:wrap}
.hero-wk .lab{margin:0}
.dots{display:flex;gap:4px}
.dots i{width:28px;height:28px;display:grid;place-items:center;box-shadow:inset 0 0 0 1px var(--line);font-style:normal}
.dots i b{font-size:11px;font-weight:var(--fw-head);color:var(--muted)}
.dots i.on{background:var(--ink);box-shadow:none} .dots i.on b{color:var(--bg)}
.dots i.td{box-shadow:inset 0 0 0 2px var(--ink)} .dots i.on.td{box-shadow:none;background:var(--ink)}
.dots i.fu{opacity:.35}
.wk-s{font-size:13px;color:var(--muted);font-weight:var(--fw-label)}
@media (max-width:1023px){
  .hero{gap:var(--sp-3);padding-bottom:var(--sp-3)}
  .hero-why{font-size:22px}
  .hero-n{gap:var(--sp-3)}
  .hero-n b.big{font-size:52px}
  .hero-n b.big small{font-size:15px}
  .dots i{width:26px;height:26px}
}
.tl-more{display:block;margin:var(--sp-2) auto 0;font-size:14px;color:var(--ink)}
.tl-tile{padding:var(--sp-3) var(--sp-3) var(--sp-3)}
.recent{display:flex;flex-direction:column;gap:10px}
.recent > .lk{align-self:flex-start;color:var(--ink);font-weight:var(--fw-head);gap:6px}
.recent > .lk .ic{width:16px;height:16px}
.rc-row{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none}
.rc{border:0;background:none;padding:0;cursor:pointer;display:flex;flex-direction:column;gap:6px;width:112px;flex:none;text-align:left;font-weight:var(--fw-label);font-size:12.5px;color:var(--ink)}
.rc-th{width:112px;aspect-ratio:3/4;display:flex}

/* project area: tabs, artwork, square grid */
.ptab.add{margin-left:0;border-style:solid}
.wa-img{border:1px solid var(--line)}
.wa-img.has{border:0}
@media (min-width:1024px){ .wa-img{position:sticky;top:calc(92px + env(safe-area-inset-top,0px))} }
@media (max-width:640px){ .wa-img.has{aspect-ratio:16/9;max-height:220px} }
.vg-h,.vg-r{gap:var(--sp-2)}
.vg-c{width:32px;height:32px;justify-self:center}
.vg-c .ic{width:15px;height:15px}
.vg-st{font-size:11.5px}
.vg-st i{background:none;color:var(--muted);width:auto;height:auto;border-radius:0;font-size:11px;font-weight:var(--fw-label);letter-spacing:.04em}
.vg-img{width:32px;height:32px;border:1px solid var(--line);justify-self:center}
.vg-img.has{border:0}
.vg-sum{background:var(--soft)}
.vg-x{display:flex;align-items:center;gap:var(--sp-1);border:0;background:none;padding:0;cursor:pointer;color:var(--ink);text-align:left;min-width:0}
.vg-x span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vg-x .ic{width:12px;height:12px;color:var(--muted);flex:none}
.vg-x:hover .ic{color:var(--ink)}
.vg-add{display:flex;flex-direction:column;gap:var(--sp-2);margin-top:var(--sp-3);padding-top:var(--sp-3);border-top:1px solid var(--line)}
.vg-add .lab{margin:0}
.chip.add{border-style:solid}
.chip{min-height:36px;font-size:13.5px}
.chip-other .inp{width:150px}

/* goals */
.pr-h.noth{grid-template-columns:minmax(0,1fr) auto}

/* Neo-Swiss: square, hairline, numerals as "01", no circles */
.se-r{grid-template-columns:28px minmax(0,1fr) 40px 40px}
.se-n{width:auto;height:auto;border-radius:0;background:none;color:var(--muted);font-size:12px;font-weight:var(--fw-label);letter-spacing:.04em;justify-content:start}
.sw i .ic{display:none}   /* 2026-11-21 (Amuii: 「all on/off please use toggle」): .sw is the switch (track + knob, above), not a tick box */
.wk-photos figure > button.wa-img{border:1px solid var(--line)}
.ist{background:var(--soft);box-shadow:inset 0 0 0 1px var(--line)}
.ist.done{background:var(--acc);box-shadow:none}
.tl-r.cur{background:transparent}
.tl-r.cur.draw{background:var(--acc-tint)}
.add-b{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:9px 14px}
.add-b .ic{width:16px;height:16px}

/* settings: weekly plan + template rows */
.wkplan{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:6px 0 20px}
.wp-d{display:flex;flex-direction:column;gap:6px;font-weight:var(--fw-head);font-size:13px}
.wp-d span{display:flex;align-items:center;gap:4px}
.wp-d small{background:var(--acc);color:var(--acc-ink);padding:0 4px;font-size:10px;font-weight:var(--fw-head)}
.wp-d select{font-size:var(--fs-in,13px);width:100%;border:1px solid var(--line);padding:7px 4px;background:var(--bg)}
.wp-d.td select{border-color:var(--ink);border-width:1.5px}
.tpls{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.tplrow{grid-template-columns:minmax(0,1fr) 16px;border-top:0;border-bottom:1px solid var(--line);row-gap:2px}
.tplrow .tp-n{display:flex;align-items:center;gap:8px;font-size:15px}
.tplrow .tp-d{grid-column:1;font-size:12.5px;color:var(--muted)}
.tplrow > .ic{grid-column:2;grid-row:1 / span 2;align-self:center}
.tag{font-size:11px;font-weight:var(--fw-head);padding:1px 6px;box-shadow:inset 0 0 0 1px var(--ink);color:var(--ink)}
button.tag{position:relative;display:inline-flex;align-items:center;gap:var(--sp-1);border:0;background:none;font-family:inherit;line-height:1.4;cursor:pointer}   /* 2026-11-20: a filter in use (pick.js fTags) — a small label with ✕, not a button look */
button.tag .ic{width:12px;height:12px;stroke-width:2.4}
button.tag::after{content:"";position:absolute;inset:-12px -4px}   /* 44px to tap, the label stays small */
.tag.on{background:var(--acc);color:var(--acc-ink);box-shadow:none}
@media (max-width:640px){
  .wkplan{grid-template-columns:1fr;gap:0;border-top:1px solid var(--line)}
  .wp-d{flex-direction:row;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--line)}
  .wp-d select{width:auto;min-width:150px}
}

/* onboarding step 3 */
.why-in{width:100%;font-family:var(--f-num);font-size:24px;font-weight:var(--fw-head);line-height:1.3;border:0;border-bottom:2px solid var(--ink);resize:none;background:transparent;margin:8px 0 18px;color:var(--ink);padding:6px 0}
.why-in:focus{outline:none;background:var(--acc-tint)}
.ob-skip{display:block;margin:14px auto 0}
#sDemo{margin-top:14px;display:inline-flex;align-items:center;gap:6px}
#sDemo .ic{width:14px;height:14px;fill:currentColor}
.t-grid > *,#hero,#projArea,#recent,#tlTile,#water,.ptabs,.ppanel{min-width:0;max-width:100%}
.ppanel{overflow-x:auto}
.prow2,.pedit,.wa-g{min-width:0;max-width:100%} .prow2 .wa-g{overflow-x:auto}
/* single-piece steps: square, numbered 01, no circles */
.steps1 .s1 i{border-radius:0!important;width:auto;height:auto;border:0!important;background:none!important;font-family:var(--f-num);font-size:12px;font-weight:var(--fw-label);color:var(--muted);font-style:normal}
.steps1 .s1.on i{color:var(--acc-ink)}
.steps1 .s1.on{background:var(--acc-tint)}
.steps1 .s1 i .ic{width:22px;height:22px;stroke-width:3}

/* ================= v0.6 round 1: frame & structure ================= */
/* tabs: Today | Ideas → Goals → Works | Stats */
.tab-sep{display:block;width:1px;height:28px;background:var(--ink);flex:none;margin:0 4px 0 -6px}
.gearb svg.ic{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8}
@media (max-width:1023px){
  /* phone: huge bold words fixed at the bottom, swipe sideways */
  .hdr .tabs{display:flex!important;grid-template-columns:none!important;align-items:center;gap:0 18px!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:0 16px env(safe-area-inset-bottom,0px)!important;height:auto;scroll-snap-type:x proximity;scroll-padding-inline:16px;-webkit-overflow-scrolling:touch}
  .hdr .tabs::-webkit-scrollbar{display:none}
  .hdr .tab{flex:none;flex-direction:row!important;height:66px!important;padding:0 12px 0 0!important;font-family:var(--f-num)!important;font-size:34px!important;font-weight:var(--fw-head)!important;letter-spacing:-.05em!important;color:var(--grey)!important;box-shadow:none!important;scroll-snap-align:start}
  .hdr .tab[aria-selected="true"]{color:var(--ink)!important;box-shadow:inset 0 -4px 0 var(--acc)!important}
  .hdr .tab::after{display:block!important;top:14px}
  .hdr .tab-sep{height:30px;margin:0 2px 0 -8px}
  .hdr .tabs::after{content:"";flex:none;width:4px}
  body{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
}

@media (max-width:1023px){
  #hero,#tlTile,#ideaQ,#water,#projArea,#recent{width:100%}
  #ideaQ{order:3} #water{order:4} #projArea{order:5} #recent{order:6}
}
/* today: idea capture + inspiration */
.idea-q{padding:16px 18px;display:flex;flex-direction:column;gap:14px}
.iq-f .lab{display:block;margin:0 0 6px;color:var(--ink);font-size:13px;letter-spacing:0;font-weight:var(--fw-head)}
.iq-row{display:flex;gap:8px;align-items:stretch}
.iq-row .inp{flex:1;font-size:16px;padding:9px 2px;border-bottom:1.5px solid var(--ink)}
.iq-row .inp:focus{outline:none;background:var(--acc-tint)}
.iq-row .btn{width:44px;display:grid;place-items:center;padding:0}
.iq-row .btn .ic{width:18px;height:18px}
.iq-insp{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:12px;border:0;background:none;padding:0;cursor:pointer;text-align:left;color:var(--ink);font:inherit}
.iq-insp .ph-box{grid-row:1 / span 2;width:72px;aspect-ratio:3/4;display:block;overflow:hidden}
.iq-insp .ph-box img{width:100%;height:100%;object-fit:cover;display:block}
.iq-insp .lab{margin:2px 0 4px}
.iq-t{font-weight:var(--fw-head);font-size:14px;line-height:1.35}

/* today: floating "back to today" */
.back-today{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:14;display:flex;flex-direction:column;align-items:center;gap:1px;border:1.5px solid var(--acc-ink);background:var(--acc);color:var(--acc-ink);padding:10px 26px;cursor:pointer;font-family:var(--f-body)}
.back-today[hidden]{display:none}
.back-today small{font-size:11.5px;font-weight:var(--fw-label);opacity:.75}
.back-today b{font-size:17px;font-weight:var(--fw-head)}
@media (max-width:1023px){ .back-today{bottom:calc(84px + env(safe-area-inset-bottom,0px))} }
.gear-lk .ic{width:20px;height:20px}

/* ---------- gallery + grid: side by side on desktop ---------- */
.wa.one{grid-template-columns:minmax(200px,300px) minmax(0,1fr)}
.gal{display:flex;flex-direction:column;gap:var(--sp-2);min-width:0}   /* spacing: see 「目標相簿間距」 */
.gal-big{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:3/4;border:0;padding:0;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer;overflow:hidden;color:var(--muted);font:inherit;flex:none}
.gal-big.has{cursor:zoom-in;box-shadow:none}
.gal-big img{width:100%;height:100%;object-fit:cover;display:block}
.gal-big:not(.has):hover{box-shadow:inset 0 0 0 1.5px var(--ink);color:var(--ink)}
.gal-tag{position:absolute;left:0;top:0;background:var(--ink);color:var(--bg);font-size:13px;font-weight:var(--fw-head);padding:var(--sp-1) var(--sp-2);z-index:1;pointer-events:none}   /* a label: a tap goes to the picture under it */
.gal-e{font-size:13px;font-weight:var(--fw-label);padding:0 var(--sp-3);text-align:center;line-height:1.5}
.gal-ths{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--sp-1)}
.gal-big:not(.has){aspect-ratio:4/3}
.gal-th{position:relative;aspect-ratio:3/4;border:0;padding:0;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer;overflow:hidden;display:flex;align-items:center;justify-content:center;font:inherit;color:var(--muted)}
.gal-th.has{box-shadow:none}
.gal-th img{width:100%;height:100%;object-fit:cover;display:block}
.gal-th:hover{box-shadow:inset 0 0 0 1.5px var(--ink);color:var(--ink)}
.gal-th.has:hover{outline:2px solid var(--ink);outline-offset:2px;box-shadow:none}
.gal-tl{position:absolute;left:0;top:0;background:var(--bg);color:var(--ink);font-size:11px;font-weight:var(--fw-head);padding:var(--sp-1) var(--sp-1)}
.gal-n{font-family:var(--f-num);font-size:16px;font-weight:var(--fw-head);letter-spacing:-.02em;padding:0 var(--sp-1);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.gal.single .gal-big{aspect-ratio:3/4}
@media (max-width:1023px){
  /* phone & tablet: the large image goes on top, the rest in one swipe row */
  .wa,.wa.one{grid-template-columns:minmax(0,1fr);gap:14px}
  .gal-big{aspect-ratio:4/3}
  .gal.single .gal-big{aspect-ratio:4/3}
  .gal-big:not(.has){aspect-ratio:auto;height:120px}
  .gal-ths{display:flex;gap:var(--sp-2);overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;padding-bottom:var(--sp-1);margin-right:-16px;padding-right:var(--sp-3)}
  .gal-ths::-webkit-scrollbar{display:none}
  .gal-th{flex:none;width:64px;aspect-ratio:1/1;scroll-snap-align:start}
  .gal-n{font-size:14px}
}
.zoom-img{background:var(--soft);display:flex;justify-content:center}
.zoom-img img{max-width:100%;max-height:70vh;display:block;object-fit:contain}

/* grid: no camera column; row label picks the large image; folded finished rows */
.vg-l{border:0;background:none;padding:0;text-align:left;cursor:pointer;color:var(--ink);font:inherit;font-family:var(--f-num);font-weight:var(--fw-head);font-size:17px;letter-spacing:-.02em}
.vg-r.ex .vg-l{font-family:var(--f-body);font-size:13px;letter-spacing:0}
.vg-r.sel .vg-l{font-size:20px;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.vg-r.done .vg-l{color:var(--muted)}
.vg-fold{display:grid;grid-template-columns:56px auto minmax(12px,1fr) auto;align-items:center;gap:var(--sp-3);width:100%;border:0;background:transparent;padding:var(--sp-2) 0;cursor:pointer;text-align:left;color:var(--ink);font:inherit}
.vg-lines{display:flex;flex-direction:column;gap:var(--sp-1);width:52px}
.vg-lines i{display:block;height:2px;background:var(--ink)}
.vg-lines i:nth-child(2){margin-left:var(--sp-1)} .vg-lines i:nth-child(3){margin-left:var(--sp-2)}
.vg-ft{font-size:14px;font-weight:var(--fw-head);white-space:nowrap}
.vg-fl{height:1px;background:var(--line)}
.vg-fx{font-size:13px;font-weight:var(--fw-head);white-space:nowrap}
.vg-unfold{display:flex;justify-content:space-between;align-items:center;gap:var(--sp-3);width:100%;border:0;border-top:2px solid var(--ink);background:transparent;padding:var(--sp-2) 0;cursor:pointer;color:var(--ink);font:inherit;font-size:12.5px;font-weight:var(--fw-head)}
.vg-fold:hover .vg-fx,.vg-unfold:hover span:last-child{text-decoration:underline;text-underline-offset:3px}
.vg-sum,.vg-hide{display:none}

/* goals card: big title, two big buttons side by side */
.prow2{padding:var(--sp-4) var(--sp-4)}
.pr-t b.pr-name{font-size:clamp(28px,3.2vw,44px);line-height:1.05;letter-spacing:-.03em}
.pr-t .meta{margin-top:var(--sp-2)}
.pr-desc{display:block;margin-top:var(--sp-2);font-size:14px;color:var(--muted);font-weight:var(--fw-label);max-width:60ch}
.prow2 .pct{font-size:clamp(56px,6vw,88px)}
.prow2 .pr-h{margin-bottom:var(--sp-4)}
.prow2.open .wa{padding-top:0;border-top:0}   /* 2026-11-20: the page's top line is the only line above (as an open show) */
.pc-btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-2);margin-top:var(--sp-4)}
.pc-b{min-height:56px;font-size:16px;font-weight:var(--fw-head);display:flex;align-items:center;justify-content:center;gap:var(--sp-2);border-width:1.5px;background:var(--bg)}
.pc-b .ic{width:20px;height:20px}
.pc-b:hover{background:var(--soft)}
@media (max-width:640px){
  .prow2{padding:var(--sp-3) var(--sp-3)}
  .pr-t b.pr-name{font-size:28px}
  .prow2 .pct{font-size:52px}
  .pc-b{min-height:52px;font-size:14.5px;gap:var(--sp-2)}
}

/* project settings: name → description → IP/characters → quantity → stages → deadline */
.pedit{gap:26px}
.pe-lab{display:block;font-size:17px;font-weight:var(--fw-head);letter-spacing:-.01em;color:var(--ink);margin-bottom:2px}
.pe-desc{width:100%;font-size:16px;line-height:1.5;border-bottom:1.5px solid var(--line);resize:vertical;font-family:var(--f-body)}
.pe-desc:focus,.pedit .inp:focus{outline:none;border-bottom-color:var(--ink)}
.pe-due{font-size:16px;padding:8px 2px;max-width:240px}
.pedit .np-q{align-self:flex-start}
.ex-grid{display:grid;grid-template-columns:repeat(auto-fill,128px);justify-content:start;gap:8px}
.ex-grid .chip{justify-content:space-between;white-space:nowrap;width:100%;min-width:0}
.ex-grid .chip.add{justify-content:flex-start}
@media (max-width:640px){ .ex-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
.pedit .chip-other{margin-top:8px}
.pe-foot{justify-content:flex-start}

/* stats: heat map */
#p-stats{gap:22px}
.st-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.st-seg{min-width:160px}
.st-seg button{font-size:14px;padding:9px 14px}
.st-title{font-size:clamp(56px,8vw,112px)}
.st-title small{font-size:.3em}
.hm-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.hm-dw{font-size:12px;font-weight:var(--fw-head);color:var(--muted);text-align:center;padding:4px 0}
.hm-c{position:relative;aspect-ratio:1/1;border:0;padding:6px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;font:inherit;color:var(--ink);background:var(--bg);box-shadow:inset 0 0 0 1px var(--line);min-width:0}
.hm-c.out{box-shadow:none;background:transparent}
.hm-c.click{cursor:pointer}
.hm-c.click:hover{box-shadow:inset 0 0 0 2px var(--ink)}
.hm-c.fu{color:var(--faint)}
.hm-c .dn{font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(14px,1.6vw,22px);letter-spacing:-.03em;line-height:1}
.hm-c .dh{font-size:11.5px;font-weight:var(--fw-head);font-variant-numeric:tabular-nums}
.hl1{background:color-mix(in srgb,var(--acc) 28%,var(--bg))!important}
.hl2{background:color-mix(in srgb,var(--acc) 60%,var(--bg))!important}
.hl3{background:var(--acc)!important}
.hl4{background:var(--ink)!important;color:var(--acc)!important}
.hm-c.hl1,.hm-c.hl2,.hm-c.hl3{box-shadow:none}
.hm-c.td{outline:2px solid var(--ink);outline-offset:-2px}
.hm-c.due::after{content:"";position:absolute;right:0;top:0;border-style:solid;border-width:0 12px 12px 0;border-color:transparent var(--ink) transparent transparent}
.hm-c.hl4.due::after{border-right-color:var(--acc)}
.st-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 20px}
.st-foot .foot{margin:0}
.hm-leg{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:var(--fw-label);color:var(--muted)}
.hm-leg i{width:16px;height:16px;display:block;box-shadow:inset 0 0 0 1px var(--line)}
.hm-leg i.hl0{background:var(--bg)}
.hm-leg span{margin:0 4px}
.st-dues{display:flex;flex-direction:column;border-top:1px solid var(--ink);padding-top:12px}
.st-dues .lab{margin:0 0 6px}
.st-due{display:grid;grid-template-columns:12px 72px minmax(0,1fr);gap:10px;align-items:center;border:0;border-bottom:1px solid var(--line);background:none;padding:10px 0;font:inherit;font-size:14px;color:var(--ink);cursor:pointer;text-align:left}
.st-due b{font-weight:var(--fw-head)}
.due-sq{width:10px;height:10px;background:var(--ink)}
.hm-year{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 18px}
.hm-mon{display:flex;flex-direction:column;gap:8px;border:0;background:none;padding:0;cursor:pointer;text-align:left;color:var(--ink);font:inherit}
.hm-mh{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid var(--ink);padding-bottom:4px}
.hm-mh b{font-family:var(--f-num);font-size:20px;font-weight:var(--fw-head);letter-spacing:-.02em}
.hm-mh span{font-size:12.5px;font-weight:var(--fw-head);font-variant-numeric:tabular-nums}
.hm-mini{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.hm-mini .hm-c{padding:0}
.hm-mon:hover .hm-mh{border-bottom-width:3px;padding-bottom:2px}
.st-works .lab{margin:0 0 10px}
@media (max-width:1023px){ .hm-year{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:640px){
  .st-title{font-size:64px}
  .hm-month{gap:3px;margin:0 -4px}
  .hm-c{padding:4px}
  .hm-c .dn{font-size:15px}
  .hm-c .dh{font-size:9.5px}
  .hm-year{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
}

/* settings (方案 C): categories left, controls right; phone = list, then one page */
.setp{display:grid;grid-template-columns:280px minmax(0,1fr);gap:0;border-top:1px solid var(--ink);min-height:60vh}
.set-nav{display:flex;flex-direction:column;border-right:1px solid var(--line);padding:6px 20px 24px 0}
.set-g{font-size:10.5px;letter-spacing:.16em;font-weight:var(--fw-label);color:var(--muted);margin:18px 0 6px}
.set-i{display:grid;grid-template-columns:24px minmax(0,1fr) auto 14px;gap:10px;align-items:center;width:100%;border:0;border-bottom:1px solid var(--line);background:none;padding:12px 4px;cursor:pointer;text-align:left;color:var(--ink);font:inherit;font-size:15px;font-weight:var(--fw-head)}
.set-i .mf-ic .ic{width:20px;height:20px}
.set-i .fold-s{font-size:12px;font-weight:var(--fw-label);color:var(--muted);max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.set-i .car{color:var(--muted);font-size:18px;line-height:1}
.set-i:hover{background:var(--soft)}
.set-i.on{background:var(--acc);color:var(--acc-ink)}
.set-i.on .fold-s,.set-i.on .car{color:var(--acc-ink)}
.set-panel{padding:20px 0 24px 32px;min-width:0}
.set-h{display:flex;align-items:center;gap:12px;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(28px,3vw,40px);letter-spacing:-.03em;margin:0 0 18px;line-height:1}
.set-h .ic{width:28px;height:28px}
.set-back{display:none}
.set-body{display:flex;flex-direction:column;gap:12px;max-width:860px}
.set-week{display:flex;flex-direction:column;gap:6px;margin-top:20px;max-width:360px}
@media (max-width:1023px){
  .setp{display:block;border-top:0;min-height:0}
  .setp.list .set-panel{display:none}
  .setp.inner .set-nav{display:none}
  .set-nav{border-right:0;padding:0}
  .set-g{margin:20px 0 4px}
  .set-i{padding:16px 2px;font-size:17px}
  .set-panel{padding:0}
  .set-back{display:inline-flex;font-size:15px;color:var(--ink);font-weight:var(--fw-head);text-decoration:none;margin-bottom:12px;padding:6px 0}
}

.prow2.open .pr-th{display:none}
.prow2.open .pr-h{grid-template-columns:minmax(0,1fr) auto}
.hm-month .hm-c{aspect-ratio:auto;height:clamp(52px,8vw,92px)}
.hm-month{margin-bottom:4px}
.ex-grid > *,.pedit .chip-other > *{margin:0!important}

/* ================= v0.6 round 2 ================= */
/* today card: no frame; today's hours left, reason + cheer right; the bottom edge is the progress bar */
.hcard{background:var(--acc);color:var(--acc-ink);display:flex;flex-direction:column}
.hc-in{display:grid;grid-template-columns:auto minmax(0,1fr);gap:24px;align-items:center;padding:16px 24px 14px}
.hc-n{font-size:clamp(72px,7vw,92px);line-height:.8;letter-spacing:-.06em;white-space:nowrap;color:var(--acc-ink)}
.hc-n small{font-size:.26em;letter-spacing:0;margin-left:4px;opacity:1;font-weight:var(--fw-head)}
.hc-t{display:flex;flex-direction:column;gap:8px;min-width:0}
.hc-why{border:0;background:none;padding:0;text-align:left;cursor:pointer;color:var(--acc-ink);font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(18px,1.7vw,22px);line-height:1.3;letter-spacing:-.01em}
.hc-why:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.hc-why.empty{opacity:.7;font-size:16px}
.hc-cheer{font-size:14.5px;font-weight:var(--fw-label)}
.hc-cheer .mk{background:none;box-shadow:none;padding:0;font-weight:var(--fw-head)}
.hc-edge{display:block;height:8px;background:color-mix(in srgb,var(--acc-ink) 14%,var(--acc))}
.hc-edge i{display:block;height:100%;background:var(--acc-ink)}
@media (max-width:640px){ .hc-in{gap:16px;padding:14px 16px 12px} .hc-n{font-size:68px} .hc-why{font-size:17px} .hc-cheer{font-size:13.5px} }

/* timeline: one big bold arrow to show the whole day */
.tl-exp{display:flex;align-items:center;justify-content:flex-start;border:0;background:none;padding:var(--sp-2) 0 0;cursor:pointer;color:var(--ink)}
.tl-exp .ic{width:40px;height:40px;stroke-width:3.4}
.tl-exp.up .ic{transform:rotate(180deg)}
.tl-more{display:none}

/* bedtime: thank yourself */
.bed-wrap .sheet{max-width:520px}
.bed-t{margin:6px 0 0;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(38px,8vw,52px);letter-spacing:-.03em;line-height:1}
.bed-thank{margin:14px 0 0;font-size:16px;font-weight:var(--fw-label);color:var(--muted)}
.bed-l{display:flex;flex-direction:column;gap:12px;margin:20px 0 0}
.bed-l p{margin:0;font-size:19px;font-weight:var(--fw-head);line-height:1.4}
.bed-c{margin:20px 0 0;font-size:15px;font-weight:var(--fw-label);color:var(--muted)}
.bed-tmr{margin:20px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:14.5px;font-weight:var(--fw-label)}
.bed-wrap .tmr-adj{text-decoration:underline;text-underline-offset:3px}

/* stretch reminder */
.rem-wrap .sheet{max-width:440px}
.rem{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.rem > .ic{width:44px;height:44px;stroke-width:1.6}
.rem-t{margin:6px 0 0;font-family:var(--f-num);font-weight:var(--fw-head);font-size:32px;letter-spacing:-.02em;line-height:1.1}
.rem-b{margin:0;font-size:16px;font-weight:var(--fw-label);color:var(--muted)}

/* body card: water + stretch */
.body-t{display:flex;flex-direction:column;gap:0;padding:6px 18px}
.bd-r{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 0}
.bd-r + .bd-r{border-top:1px solid var(--line)}
.bd-l{font-size:13px;font-weight:var(--fw-head);min-width:34px}
.bd-ic .ic{width:30px;height:30px;stroke-width:1.6}
.bd-r .btn.red{margin-left:auto;display:inline-flex;align-items:center;gap:6px}
.bd-r .btn .ic{width:15px;height:15px}
.body-h{margin-top:18px}

/* settings: a bar on the left, the page moves right */
.app-b{display:block}
.setbar[hidden]{display:none}
.setbar{min-width:0}
.sb-h{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}
.sb-h .me-h{font-size:36px}
.sb-x{display:inline-flex;align-items:center;gap:6px;min-height:40px}
.sb-x .ic{width:16px;height:16px}
.setbar .me-g{margin:18px 0 6px}
.setbar .me-stack{gap:8px}
.setbar .mefold summary{min-height:48px}
@media (min-width:1024px){
  body.set-open .app-b{display:grid;grid-template-columns:400px minmax(0,1fr);gap:32px;align-items:start}
  .setbar{position:sticky;top:calc(var(--stick-t) + var(--sp-3));max-height:calc(100vh - var(--stick-t) - var(--sp-3) * 2);overflow:auto;overscroll-behavior:contain;padding:0 16px 24px 0;border-right:1px solid var(--ink);scrollbar-width:thin}
  body.set-open .t-grid{grid-template-columns:minmax(0,1fr)}
  body.set-open .t-side{position:static;max-height:none}
  body.set-open .hdr-r .avatar{background:var(--acc);color:var(--acc-ink);border-color:var(--acc-ink)}
}
/* inside the bar every form uses its compact (phone) layout */
.setbar .wkplan{grid-template-columns:1fr;gap:0;border-top:1px solid var(--line)}
.setbar .wp-d{flex-direction:row;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--line)}
.setbar .wp-d select{width:auto;min-width:150px}
.setbar .at-h,.setbar .at-r{grid-template-columns:34px minmax(0,1fr) 56px 56px 32px;gap:6px}
.setbar .at-h{font-size:11px}
.setbar .pickgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.setbar .tst{grid-template-columns:1fr}
.setbar .form{grid-template-columns:1fr}
.setbar .times{flex-wrap:wrap}
.setbar .fxrow{grid-template-columns:1fr 1fr;gap:6px}
.setbar .tst-h{justify-content:flex-start;gap:8px}
.setbar .tst-h .lk{margin-left:auto;display:inline-flex;align-items:center;gap:4px}
.setbar .tst-h .lk .ic{width:14px;height:14px}
@media (max-width:1023px){
  body.set-open .main{display:none!important}
  .setbar{padding-bottom:24px}
}

/* swipe row: arrows for mouse users, drag cursor */
.gal-car{position:relative;min-width:0}
.gal-arr{display:none}
@media (max-width:1023px) and (hover:hover){
  .gal-arr{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:30px;height:30px;border:1px solid var(--ink);background:var(--bg);cursor:pointer;padding:0;color:var(--ink)}
  .gal-arr.l{left:-6px} .gal-arr.r{right:-6px}
  .gal-arr .ic{width:16px;height:16px}
  .gal-ths{cursor:grab}
  .gal-ths.dragging{cursor:grabbing;scroll-snap-type:none}
}
.tc-card{border-style:dashed}
.ex-grid .chip.add.on{border-color:var(--ink);background:var(--acc-tint);color:var(--ink)}
.hero{border-bottom:0!important;padding-bottom:0!important}
.gal.single .gal-big:not(.has){aspect-ratio:4/3}

/* ================= v0.6 round 3 ================= */
/* settings bar on the right (where the gear is); the page moves left */
@media (min-width:1024px){
  body.set-open .app-b{grid-template-columns:minmax(0,1fr) 400px}
  body.set-open .main{grid-column:1;grid-row:1}
  .setbar{grid-column:2;grid-row:1;border-right:0;border-left:1px solid var(--ink);padding:0 0 24px 20px}
}
/* the part of the page a setting changes flashes once when you open that setting */
@keyframes hlflash{0%,60%{box-shadow:0 0 0 3px var(--acc-ink),0 0 0 9px var(--acc)}100%{box-shadow:0 0 0 0 transparent}}
.hl-flash{animation:hlflash 1.8s ease-out}

/* timeline head: label above, full time, "Start now" right beside the start time */
.tl-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--sp-2) var(--sp-3);letter-spacing:0;color:var(--ink)}
.tl-t{display:flex;flex-direction:column;gap:var(--sp-1);min-width:0}
.tl-lab{font-size:11px;font-weight:var(--fw-head);letter-spacing:.06em;color:var(--muted)}
.tl-tv{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:nowrap}
.tl-head input[type="time"]{font-size:18px;width:auto;min-width:96px;padding:var(--sp-1) 0}
.tl-go{display:inline-flex;align-items:center;gap:var(--sp-1);min-height:34px;padding:0 var(--sp-2);font-size:12.5px;font-weight:var(--fw-head);white-space:nowrap}
.tl-go .ic{width:13px;height:13px;fill:currentColor}
.tl-head .gear-lk{margin-left:auto;align-self:center}
.tl-head .gear-lk .ic{width:22px;height:22px}
/* folded timeline rows: same three lines as folded grid rows, whole row tappable */
.tl-exp{display:none}
.tl-fold{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:var(--sp-3);width:100%;min-height:52px;border:0;border-top:1px solid var(--line);background:transparent;padding:0;margin-top:var(--sp-1);cursor:pointer;color:var(--ink);font:inherit;text-align:left}
.tlf-t{font-size:15px;font-weight:var(--fw-head)}
.tl-fold > .ic{width:28px;height:28px;stroke-width:2.8}
.tl-fold.open > .ic{transform:rotate(180deg)}
.tl-fold:hover .tlf-t{text-decoration:underline;text-underline-offset:3px}

/* body card: one grid line for water and stretch */
.body-t{padding:4px 18px}
.bd-r{display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 0;flex-wrap:nowrap}
.bd-l{font-size:13px;font-weight:var(--fw-head);min-width:0}
.bd-pics{display:flex;flex-wrap:wrap;gap:3px;align-items:flex-end;min-width:0}
.water2 .bd-pics .glasses{display:flex;flex-wrap:wrap;gap:var(--sp-1);flex:none}
.water2 .glass{width:18px;height:25px}
.fig{display:inline-grid;place-items:center;width:20px;height:25px;color:var(--faint)}
.fig .ic{width:22px;height:22px;stroke-width:2}
.fig.on{color:var(--ink)}
.bd-n{display:flex;flex-direction:column;align-items:flex-end;line-height:1;min-width:44px}
.bd-n b.big{font-size:26px}
.bd-n small{font-size:11px;color:var(--muted);font-weight:var(--fw-label);margin-top:2px}
.bd-n .lk{font-size:11.5px;padding:2px 0 0}
.bd-add{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;min-width:84px;padding:0 12px;font-weight:var(--fw-head)}
.bd-add .ic{width:17px;height:17px;stroke-width:2.2}
.bd-r .btn.red{margin-left:0}

/* project settings & custom type: two compact columns */
.pe2{gap:0}
.pe-cols{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px 36px;align-items:start}
.pe-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.pe2 .pe-sec{gap:4px}
.pe2 .pe-lab{font-size:15px;font-weight:var(--fw-head);margin:0}
.pe-in{width:100%;font-size:16px;font-weight:var(--fw-label);padding:7px 2px;border-bottom:1px solid var(--line)}
.pe-in:focus{outline:none;border-bottom-color:var(--ink);background:var(--acc-tint)}
.pe2 .pe-desc{min-height:0;resize:vertical;font-weight:var(--fw-label)}
.pe-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end}
/* 2026-11-21 (Amuii: 「number counter 細d … what is your plan not 補丁」「time, number can be more big (neo swiss)」): the small
   counter is ONE size everywhere — 44px high, 44px − and +, the number big (22px, the numerals font); the unit after it small and on the same line. (The new-goal form keeps its own large one.) */
.np-q.sm{display:inline-flex;align-items:center;gap:0;border:1.5px solid var(--ink);height:var(--h-tap);flex:none}
.np-q.sm .np-b{width:var(--h-tap);height:100%;border:0;background:transparent}   /* 2026-11-21 (Amuii: 「the +- control has white background … it breaks the borders」) */
.np-q.sm .np-b .ic{width:16px;height:16px}
.np-q.sm input{width:52px;font-family:var(--f-num);font-size:22px;font-weight:var(--fw-head);text-align:center;background:transparent;height:100%;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);letter-spacing:0}
.pe2 .se{gap:2px}
.pe2 .se-r{grid-template-columns:26px minmax(0,1fr) 34px 34px;gap:6px}
.pe2 .se-in{font-size:var(--fs-in,15px);padding:6px 2px}
.pe2 .se-b{width:34px;height:34px}
.se-new .se-in{border-bottom-style:solid;color:var(--ink)}
.se-new .se-in::placeholder{color:var(--faint);font-weight:var(--fw-label)}
.se-add{display:none}
.ex-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ex-chips > *{margin:0!important}
.ex-chips .chip{min-height:34px}
.chip-in{min-width:180px;flex:1;height:34px;border:0;border-bottom:1px solid var(--line);background:transparent;font:inherit;font-size:var(--fs-in,14px);font-weight:var(--fw-label);color:var(--ink);padding:0 4px}
.chip-in:focus{outline:none;border-bottom-color:var(--ink);background:var(--acc-tint)}
.chip-in::placeholder{color:var(--faint)}
.chip.pick{cursor:pointer}
.chip.pick[aria-pressed="true"]{background:var(--acc);border-color:var(--acc-ink);color:var(--acc-ink)}
.pe-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px;padding-top:14px;border-top:1px solid var(--line)}
.pe-done2{min-height:46px;padding:0 26px;font-size:15px;font-weight:var(--fw-head);display:inline-flex;align-items:center;gap:8px}
.pe-done2 .ic{width:18px;height:18px;stroke-width:3}

/* new goal: type cards on the left, the questions on the right in big bold type */
.np-wrap .sheet.wide{max-width:1000px}
.np2{display:grid;grid-template-columns:300px minmax(0,1fr);gap:36px;align-items:start}
.np-l .types{grid-template-columns:1fr;gap:8px}
.np-r{min-width:0;position:sticky;top:0}
.np-empty{margin:24px 0 0;font-size:16px;font-weight:var(--fw-label);color:var(--muted)}
.newproj{display:flex;flex-direction:column;gap:28px}
.np-sec{display:flex;flex-direction:column}
.np-qt{font-family:var(--f-num);font-size:clamp(20px,2vw,24px);font-weight:var(--fw-head);letter-spacing:-.01em;line-height:1.25}
.np-h{font-size:13px;color:var(--muted);font-weight:var(--fw-label);margin:4px 0 10px}
.np-in{width:100%;font-size:18px;font-weight:var(--fw-label);padding:8px 2px;border-bottom:1.5px solid var(--ink)}
.np-in:focus{outline:none;background:var(--acc-tint)}
.np-in::placeholder{color:var(--faint);font-weight:var(--fw-label)}
.np-date{max-width:240px}
.np-qrow{display:flex;align-items:center;gap:12px;flex-wrap:nowrap}   /* the unit stays beside its number */
.np-q.sm .np-v{min-width:48px;font-size:22px;line-height:1}
.np-q.sm + .nf-unit{font-size:14px;font-weight:var(--fw-label);color:var(--ink);white-space:nowrap}
/* .np-q.lg — the large counter, where there is room (2026-11-21 Amuii: 「if have space use the big size one」): 64px high, the
   numerals 34px; − ＋ and the number narrow down with the screen so two side by side still fit a phone (開工時間 時 : 分) */
.np-q.lg{height:64px}
.np-q.lg .np-b{width:clamp(44px,12vw,60px)}
.np-q.lg .np-b .ic{width:24px;height:24px}
.np-q.lg input,.np-q.lg .np-v{font-size:34px;width:clamp(60px,16vw,96px);min-width:0}
.np-q.lg + .nf-unit{font-size:20px;font-weight:var(--fw-head);color:var(--muted)}
.np-quick{display:flex;gap:6px;flex-wrap:wrap}
.chip.qk{min-height:40px;min-width:44px;justify-content:center;font-size:15px;font-weight:var(--fw-head);cursor:pointer}
.chip.qk[aria-pressed="true"]{background:var(--acc);border-color:var(--acc-ink);color:var(--acc-ink)}
.np-go{min-height:56px;font-size:17px;font-weight:var(--fw-head);display:flex;align-items:center;justify-content:center;gap:8px;width:100%}
.np-go .ic{width:16px;height:16px;fill:currentColor}

@media (max-width:760px){
  .pe-cols{grid-template-columns:1fr;gap:16px}
  .np2{grid-template-columns:1fr;gap:20px}
  .np-l .types{grid-template-columns:repeat(2,minmax(0,1fr))}
  .np-r{position:static}
  .pe-bar{position:sticky;bottom:0;background:var(--bg)}
}
@media (max-width:1023px) and (min-width:761px){ .pe-cols{grid-template-columns:1fr 1fr} }
.body-t{align-items:stretch}
#sAdd .ic{fill:none;stroke:currentColor}
.bd-pics > .glasses{display:flex!important;flex-wrap:wrap!important;gap:3px;width:100%;min-width:0;flex:1 1 auto!important}
#sAdd .ic{fill:none!important;stroke:currentColor!important;stroke-width:2.2!important}

/* ================= v0.6 round 4 ================= */
/* Today never scrolls inside a module: the side column is a normal column, nothing is clipped */
.t-side{position:static!important;max-height:none!important;overflow:visible!important}
.ppanel,.prow2 .wa-g,.wa-g{overflow:visible!important}
/* work area: the check-in grid keeps its full width; the images take what is left, and move above the grid when there isn't room */
.wa,.wa.one{display:flex!important;flex-wrap:wrap;gap:var(--sp-3) var(--sp-4);align-items:flex-start}   /* rows 16px: the same step as the album's groups */
.wa > .gal{flex:1 1 200px;min-width:160px;max-width:340px}
.wa > .wa-g{flex:0 0 auto;max-width:100%}
.wa.one > .wa-g{flex:1 1 280px}
.vgrid{width:max-content;max-width:100%}
@media (max-width:1023px){ .wa > .gal{flex-basis:100%;max-width:none} .wa > .wa-g{flex:1 1 100%} }

/* body card: label, count and button on one line; pictures on a full-width line below */
.body-t{padding:2px 18px}
.bd-r2{padding:12px 0;display:flex;flex-direction:column;gap:8px}
.bd-r2 + .bd-r2{border-top:1px solid var(--line)}
.bd-top{display:flex;align-items:center;gap:10px}
.bd-top .bd-l{font-size:14px;font-weight:var(--fw-head);min-width:0}
.bd-top .bd-n{flex-direction:row;align-items:baseline;gap:3px;min-width:0;margin-left:auto}
.bd-top .bd-n b.big{font-size:24px}
.bd-undo{font-size:12px;padding:0}
.bd-top .bd-add{min-height:38px;min-width:76px}
.bd-r2 .bd-pics{display:flex;flex-wrap:wrap;gap:3px;align-items:flex-end}
.bd-r2 .bd-pics .glasses{display:flex!important;flex-wrap:wrap!important;gap:3px;width:auto!important}
.bd-r2 .glass{width:15px!important;height:21px!important}
.bd-r2 .fig{width:17px;height:21px}
.bd-r2 .fig .ic{width:19px;height:19px}

/* works: wall by year, a page per work */
#p-works{gap:28px}
.wk-year{display:flex;flex-direction:column;gap:18px}
.wk-year + .wk-year{margin-top:20px;padding-top:20px;border-top:1px solid var(--ink)}
.wk-yh{margin:0;font-size:clamp(34px,5vw,64px);line-height:1;letter-spacing:-.04em}
.wk-yn{background:var(--acc);color:var(--acc-ink);padding:0 .12em}
.wk-ys{margin:0;font-family:var(--f-num);font-size:24px;font-weight:var(--fw-head);letter-spacing:-.02em}
.art-img img{width:100%;height:100%;object-fit:cover;display:block}
.art-q{font-size:13px;font-weight:var(--fw-label);color:var(--muted);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wk-crumb{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:var(--fw-head)}
.wk-crumb .lk{font-size:14px;color:var(--ink);font-weight:var(--fw-head);padding:6px 0}
.wk-crumb span:last-child{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wk-d{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;align-items:start}
.wk-cov .ph-box,.wk-cov .noimg{display:block;width:100%;aspect-ratio:3/4}
.wk-cov img{width:100%;height:100%;object-fit:cover;display:block}
.wk-info{display:flex;flex-direction:column;gap:18px;min-width:0}
.wk-name{margin:0;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(32px,4vw,56px);letter-spacing:-.03em;line-height:1.05}
.wk-info .meta{margin:0}
.wk-note{margin:0;padding:18px 20px;background:var(--acc);color:var(--acc-ink);font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(20px,2vw,26px);line-height:1.35;letter-spacing:-.01em}
.wk-note::before{content:"「"}.wk-note::after{content:"」"}
.wk-write{align-self:flex-start;min-height:48px;padding:0 20px;font-size:15px;display:inline-flex;align-items:center;gap:8px}
.wk-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;border-top:1px solid var(--ink)}
.wk-stats > div{padding:12px 0;border-bottom:1px solid var(--line)}
.wk-stats > div:nth-child(odd){padding-right:12px}
.wk-stats dt{font-size:11px;font-weight:var(--fw-head);letter-spacing:.1em;color:var(--muted)}
.wk-stats dd{margin:4px 0 0;font-family:var(--f-num);font-weight:var(--fw-head);font-size:22px;letter-spacing:-.02em}
.wk-idea{display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:0;background:var(--soft);padding:12px 14px;cursor:pointer;text-align:left;color:var(--ink);font:inherit}
.wk-idea .lab{margin:0}
.wk-idea b{font-size:15px;font-weight:var(--fw-head)}
.wk-edit{align-self:flex-start;color:var(--ink);gap:6px;font-size:13.5px}
.wk-edit .ic{width:14px;height:14px}
.wk-pg .lab{margin:0 0 10px}
.wk-pics{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.wk-pics figure{margin:0;display:flex;flex-direction:column;gap:5px}
.wk-pics .ph-box{display:block;aspect-ratio:3/4}
.wk-pics img{width:100%;height:100%;object-fit:cover;display:block}
.wk-pics figcaption{font-size:12.5px;font-weight:var(--fw-head)}
.wk-re{align-self:flex-start;font-size:13px}
@media (max-width:760px){
  .wk-d{grid-template-columns:1fr;gap:18px}
  .wk-cov .ph-box,.wk-cov .noimg{aspect-ratio:4/5}
  .wk-pics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
}
/* write this moment */
.mo-wrap .sheet{max-width:640px}
.mo-name{margin:0;font-family:var(--f-num);font-weight:var(--fw-head);font-size:28px;letter-spacing:-.02em}
.mo-in{margin:4px 0 22px}
.mo-h{margin:0 0 10px}
.mo-covers{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 10px;margin-bottom:16px}
.mo-c{flex:none;width:84px;aspect-ratio:3/4;border:0;padding:0;background:var(--soft);cursor:pointer;overflow:hidden;box-shadow:inset 0 0 0 1px var(--line)}
.mo-c img{width:100%;height:100%;object-fit:cover;display:block}
.mo-c.on{outline:3px solid var(--ink);outline-offset:2px}
.mo-c.add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font:inherit;font-size:11.5px;font-weight:var(--fw-head);color:var(--muted);padding:6px}
.mo-c.add .ic{width:22px;height:22px}
.done-card .np-go{margin-top:18px}
/* project tabs wrap instead of scrolling sideways */
.ptabs{flex-wrap:wrap;overflow:visible!important;row-gap:var(--sp-1)}
.ptab{max-width:100%}
.ptab .pt-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#wBody{display:flex;flex-direction:column;gap:28px}
.wk-d{grid-template-columns:minmax(0,5fr) minmax(0,6fr)}
.wk-cov{max-width:520px}
.mo-covers > *{margin:0!important}
@media (max-width:760px){ .wk-d{grid-template-columns:1fr} .wk-cov{max-width:none} }

/* ================= v0.6 round 5 ================= */
/* today card: words on the left never move; hours at the far right */
.hcard .hc-in{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:24px;padding:26px 28px 22px}
.hcard .hc-t{gap:12px}
.hcard .hc-why{font-size:15px;letter-spacing:.02em}
.hcard .hc-cheer{font-family:var(--f-num);font-size:clamp(20px,2vw,26px);font-weight:var(--fw-head);line-height:1.35;letter-spacing:-.01em}
.hcard .hc-cheer .mk{background:none!important;padding:0;text-decoration:underline;text-decoration-thickness:4px;text-underline-offset:6px;text-decoration-skip-ink:none}
.hcard .hc-n{font-size:clamp(80px,8vw,108px);text-align:right}
.hcard .hc-n small{font-size:.24em;margin-left:4px}
@media (max-width:640px){ .hcard .hc-in{padding:18px 16px 16px;gap:14px} .hcard .hc-n{font-size:72px} .hcard .hc-cheer{font-size:18px} }

/* time buttons (own 12/24-hour format) */
.tbtn{display:inline-flex;align-items:center;gap:6px;border:0;border-bottom:1.5px solid var(--line);background:none;padding:4px 2px;cursor:pointer;font-family:var(--f-num);font-weight:var(--fw-head);font-size:19px;color:var(--ink);letter-spacing:-.01em}
.tbtn .ic{width:15px;height:15px;color:var(--muted)}
.tbtn:hover{border-bottom-color:var(--ink)}
.set-times{display:flex;gap:28px;flex-wrap:wrap}
.tp-wrap .sheet{max-width:520px}   /* room for two large counters */
.tp{display:flex;align-items:flex-end;justify-content:center;gap:var(--sp-2);margin:var(--sp-1) 0 var(--sp-3)}
.tp label{display:flex;flex-direction:column;flex:none;gap:var(--sp-1)}
.tp-c{font-family:var(--f-num);font-size:34px;font-weight:var(--fw-head);line-height:64px}

/* timeline: one line of header, same-height rows */
.tl-head{flex-wrap:nowrap;align-items:center;gap:var(--sp-2);padding-bottom:var(--sp-2);margin-bottom:0;}
.tl-head .tl-lab{font-size:12px;font-weight:var(--fw-head);letter-spacing:.04em}
.tl2{display:flex;flex-direction:column}
.tl-r2{display:grid;grid-template-columns:22px var(--tmw,62px) 18px minmax(0,1fr) auto;gap:var(--sp-2);align-items:center;height:40px;padding:0 var(--sp-2);font-size:14px}
.tl-r2.can{cursor:pointer}
.tl-r2.can:hover{background:var(--soft)}
.tl-r2 .tl-box{width:20px;height:20px;display:grid;place-items:center}
.tl-r2.can .tl-box{border:1.5px solid var(--faint);background:var(--bg)}
.tl-r2 .tl-box .ic{width:13px;height:13px;stroke-width:3;opacity:0}
.tl-r2.done .tl-box{background:var(--acc);border-color:var(--acc-ink)}
.tl-r2.done .tl-box .ic{opacity:1;color:var(--acc-ink)}
.tl-r2 .tl-tm{font-family:var(--f-num);font-weight:var(--fw-head);font-size:13.5px;color:var(--ink);padding:0;font-variant-numeric:tabular-nums}
.tl-r2 .tl-ic .ic{width:16px;height:16px;color:var(--muted)}
.tl-r2 .tl-n{font-weight:var(--fw-head);padding:0}
.tl-r2 .tl-d{font-size:12px;font-weight:var(--fw-body);color:var(--faint);padding:0;font-family:var(--f-body)}
.tl-r2.draw{background:var(--acc-tint)}
.tl-r2.draw .tl-n{font-weight:var(--fw-head)}
.tl-r2.draw .tl-ic .ic{color:var(--ink)}
.tl-r2.cur{box-shadow:inset 4px 0 0 var(--ink)}
.tl-r2.done .tl-n{text-decoration:line-through;color:var(--muted);font-weight:var(--fw-label)}
.tl-r2.done .tl-tm{color:var(--muted)}
.tl-r2.bed{height:auto;min-height:52px;margin-top:var(--sp-2);border:1.5px solid var(--ink)}
.tl-r2.bed .tl-box{border:0;background:none}
.tl-r2.bed .tl-box .ic{opacity:1;width:20px;height:20px;stroke-width:2;color:var(--ink)}
.tl-r2.bed .tl-n{font-weight:var(--fw-head);font-size:15px}
.tl-r2.bed.done{background:var(--acc-tint)}
.tl-fx2{display:grid;grid-template-columns:22px var(--tmw,62px) minmax(0,1fr);gap:var(--sp-2);align-items:center;height:28px;padding:0 var(--sp-2);font-size:12.5px;font-weight:var(--fw-head);color:var(--muted);}
.tl-fx2 .tl-tm{grid-column:2;font-family:var(--f-num);font-weight:var(--fw-head)}
.tl-fx2 span:last-child{grid-column:3}
.sl-line{margin:8px 0 0;font-size:12.5px;font-weight:var(--fw-label);color:var(--muted);line-height:1.5}
.sl-line b{color:var(--ink);display:inline-flex;align-items:center;gap:4px}
.sl-line b .ic{width:13px;height:13px;stroke-width:3}
.sl-line.short b{color:var(--red)}
.sleep-cta{display:none}

/* body card: big glasses */
.bd-r2 .glass{width:30px!important;height:41px!important}
.bd-r2 .bd-pics .glasses{gap:5px}
.bd-r2 .fig{width:26px;height:32px}
.bd-r2 .fig .ic{width:28px;height:28px;stroke-width:1.8}
.bd-top .bd-n b.big{font-size:30px}
.bd-top .bd-add{min-height:44px;min-width:88px;font-size:15px}
.tl-head .tbtn{flex:none;margin-right:var(--sp-2);gap:var(--sp-1)}
.tl-head .tl-go{flex:none}
@media (max-width:1023px){ #water{order:3!important} #ideaQ{order:4!important} }

/* ================= v0.7 : layout ================= */
/* desktop fills one screen with the big tabs kept; iPad has its own arrangement; phone keeps the same parts with tighter spacing */
/* desktop: keep the big look, fill the width, fit one screen */
@media (min-width:1024px){
  .hdr{height:auto;padding:18px 0 14px;margin-bottom:var(--sp-2);align-items:flex-end;gap:24px}   /* 8px to every page's first row (Amuii: 「排期 almost just 8px」) */
  .brand{align-self:center}
  .hdr .tabs{gap:0 18px;align-items:flex-end}
  .hdr .tab{font-size:clamp(40px,4.2vw,64px);line-height:.92;letter-spacing:-.05em;padding-right:22px}
  .hdr .tab::after{top:.05em;font-size:11px}
  .tab-sep{height:44px;margin:0 2px 4px -4px;align-self:flex-end}
  .hdr-r{align-self:center}

  .t-grid{grid-template-columns:minmax(0,1fr) 360px 300px;gap:16px;align-items:start}
  .t-side{display:contents!important}
  .t-main{grid-column:1;grid-row:1 / span 2;gap:16px}
  #tlTile{grid-column:2;grid-row:1 / span 2}
  #water{grid-column:3;grid-row:1}
  #ideaQ{grid-column:3;grid-row:2}
}
@media (min-width:1024px) and (max-width:1359px){
  .t-grid{grid-template-columns:minmax(0,1fr) 320px 260px;gap:14px}
}
@media (min-width:1024px){
  body{padding-bottom:24px!important}
  .main{padding-bottom:16px!important}
}
@media (min-width:1024px){
  .ptabs{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none}
  .ptabs::-webkit-scrollbar{display:none}
  .ptab{flex:none!important}
}

/* logo only, size follows the tab type */
.brand b{display:none}
@media (min-width:1024px){
  .brand{align-self:flex-end;margin-bottom:4px}
  .logo{width:clamp(30px,3.4vw,50px);height:clamp(30px,3.4vw,50px)}
}
@media (max-width:1023px){ .logo{width:26px;height:26px} }

/* mobile: same layout and parts, tighter spacing */
@media (max-width:1023px){
  .hdr{margin-bottom:8px}
  #p-today:not([hidden]){gap:var(--sp-2)}
  .t-grid{gap:10px!important}
  #p-today .tile{padding:var(--sp-3)}
  #p-today .body-t{padding:var(--sp-1) var(--sp-3)}
  #p-today .idea-q{padding:var(--sp-3);gap:var(--sp-2)}
  .hcard .hc-in{padding:14px 14px 12px!important;gap:12px!important}
  .hcard .hc-n{font-size:60px!important}
  .hcard .hc-cheer{font-size:17px!important}
  .ppanel{padding:12px}
}

/* mobile tab bar: snap the selected tab to the middle */
@media (max-width:1023px){ .hdr .tab{scroll-snap-align:center!important} .hdr .tabs{scroll-padding-inline:0!important} }

/* iPad landscape / small laptop 1024–1279: two columns; left = hero, project, idea; right = timeline, water */
@media (min-width:1024px) and (max-width:1279px){
  .t-grid{grid-template-columns:minmax(0,1fr) 320px!important;gap:14px;grid-auto-flow:row dense}
  .t-main{grid-column:1;grid-row:1 / span 2}
  #ideaQ{grid-column:1;grid-row:3}
  #tlTile{grid-column:2;grid-row:1}
  #water{grid-column:2;grid-row:2 / span 2}
}
/* iPad portrait 744–1023: hero across; timeline | water + idea; project across */
@media (min-width:744px) and (max-width:1023px){
  .t-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px!important;align-items:start}
  .t-main,.t-side{display:contents!important}
  #hero{grid-column:1 / -1;grid-row:1}
  #tlTile{grid-column:1;grid-row:2 / span 2}
  #water{grid-column:2;grid-row:2}
  #ideaQ{grid-column:2;grid-row:3}
  #projArea{grid-column:1 / -1;grid-row:4}
}

/* sleep: one line, how much sleep is left tonight; red when under the goal */
.sl2{display:flex;align-items:center;gap:8px;width:100%;margin-top:10px;padding:10px 12px;border:0;background:var(--soft);color:var(--ink);font:inherit;font-size:13.5px;text-align:left;cursor:pointer}
.sl2 .ic{width:16px;height:16px;flex:none}
.sl2 b{font-family:var(--f-num);font-weight:var(--fw-head)}
.sl2.short{background:var(--red-tint);color:var(--red)}
.sl2.short b{color:var(--red)}

/* water + stretch: one row each; every cup is a picture (wraps when many); the button names the action */
#water.body-t{padding-right:var(--sp-3)!important;padding-bottom:0!important;padding-left:var(--sp-3)!important}
.bd3{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 0}
.bd3 + .bd3{border-top:1px solid var(--line)}
.bd3-p{display:flex;flex-wrap:wrap;gap:4px;align-items:flex-end;min-width:0}
.bd3-p > *{flex:none}
.bd3 .glass{width:24px!important;height:33px!important}
.bd3 .fig{width:22px;height:30px;display:inline-grid;place-items:center;color:var(--faint)}
.bd3 .fig.on{color:var(--ink)}
.bd3 .fig .ic{width:24px;height:24px;stroke-width:1.8}
.bd3 .last{cursor:pointer}
.bd3-add{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px 0 10px;border:0;background:var(--acc);color:var(--acc-ink);font:inherit;font-weight:var(--fw-head);font-size:13.5px;white-space:nowrap;cursor:pointer}
.bd3-add .ic{width:16px;height:16px;stroke-width:3}
.bd3-add:active{transform:scale(.96)}
#water.body-t{min-height:0!important;height:auto!important;justify-content:flex-start!important} .bd3{flex:none!important;min-height:0}
.bd3-add{min-width:118px;justify-content:center}
/* three columns: the two tall columns span a flexible last row, so water and idea stack tight in the third */
@media (min-width:1280px){
  .t-grid{grid-template-rows:auto auto 1fr}
  .t-main{grid-row:1 / span 3}
  #tlTile{grid-row:1 / span 3;align-self:start}
  #water{grid-row:1;align-self:start}
  #ideaQ{grid-row:2;align-self:start}
}
/* tab size leaves room for the date and clock in every language */
@media (min-width:1024px){ .hdr .tab{font-size:clamp(34px,3.6vw,60px)} .hdr .tabs{min-width:0} }
@media (min-width:1024px) and (max-width:1279px){ .hdr .tab{font-size:clamp(28px,2.9vw,37px);padding-right:16px} .tab-sep{height:30px} }
/* project folder tabs stay on one line and scroll sideways inside their column */
#projArea .ptabs{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100%}
@media (min-width:1280px){ .hdr .tab{font-size:clamp(34px,3.3vw,60px)} }
/* body is already min-height:100vh; extra bottom padding only made a scrollbar on desktop */
@media (min-width:1024px){ body{padding-bottom:0!important} }
/* Chinese tabs are short: keep them at the full size; only English needs the smaller size above */
@media (min-width:1280px){ html[lang="zh-Hant"] .hdr .tab{font-size:clamp(40px,4.2vw,64px)} }
@media (min-width:1024px) and (max-width:1279px){ html[lang="zh-Hant"] .hdr .tab{font-size:clamp(34px,3.6vw,44px)} }

/* ================= v0.7 round 2 ================= */
/* time buttons size to their text (an old 42px rule made the clock icon overlap the next field) */
.tbtn{width:auto!important;height:auto!important;white-space:nowrap;flex:none}
.set-times{gap:20px 36px}

/* timeline fold: one chevron and how many are hidden; one divider only */
.tl-fold{display:flex!important;justify-content:center;align-items:center;gap:var(--sp-2);min-height:40px;border-top:0!important;padding:0}
.tl-fold .tlf-n{font-family:var(--f-num);font-weight:var(--fw-head);font-size:14px;color:var(--muted)}
.tl-fold > .ic{width:22px;height:22px;stroke-width:2.6}

/* project tabs: a label first (like a browser's icon before its tabs), then type-only tabs */
.ptabs-row{display:flex;align-items:flex-end;gap:var(--sp-2);min-width:0}
.ptabs-lab{flex:none;font-family:var(--f-num);font-weight:var(--fw-head);font-size:15px;letter-spacing:-.01em;padding:0 var(--sp-1) var(--sp-2)}
.ptabs-row .ptabs{flex:1;min-width:0}
.ptab .pt-ty{font-weight:var(--fw-head);font-size:13.5px;white-space:nowrap}
.ptab{padding:var(--sp-2) var(--sp-3)!important}
.ptab.on .pt-ty{color:var(--ink)}
.pp-h{flex-wrap:wrap;gap:8px 10px}
.pp-name{font-family:var(--f-num);font-weight:var(--fw-head);font-size:17px;letter-spacing:-.01em;line-height:1.25;min-width:0}

/* goals: the stage bars open the check-in grid too */
.pr-bars{display:block;width:100%;border:0;background:none;padding:0;margin:0;text-align:left;color:inherit;font:inherit;cursor:pointer}
.pr-bars:hover .sb-b{box-shadow:inset 0 0 0 1px var(--ink)}

/* schedule templates: clock icon, start time + days, and a strip of the day's blocks */
.tplrow2{grid-template-columns:28px minmax(0,1fr) 16px!important;row-gap:4px!important}
.tplrow2 .tp-ic{grid-column:1;grid-row:1 / span 3;align-self:start;width:28px;height:28px;display:grid;place-items:center;background:var(--acc);margin-top:2px}
.tplrow2 .tp-ic .ic{width:16px;height:16px}
.tplrow2 .tp-n,.tplrow2 .tp-d,.tplrow2 .tp-bar{grid-column:2}
.tplrow2 > .ic:last-child{grid-column:3;grid-row:1 / span 3}
.tp-bar{display:flex;height:8px;gap:1px;margin-top:4px;min-width:0}
.tp-bar i{display:block;min-width:2px}
.tp-bar .sw-none{background:var(--line);box-shadow:none}
.tplform{grid-template-columns:minmax(0,1fr) auto!important}

/* settings: a tapped section stops below the sticky header */
details[data-fold]{scroll-margin-top:72px}

/* phone Today: one separator between parts, not a frame plus a gap */
@media (max-width:1023px){ .hdr{border-bottom:0!important;margin-bottom:0!important} }
@media (max-width:743px){
  #p-today:not([hidden]){gap:0!important}
  .t-grid{gap:0!important}
  #p-today .tile{box-shadow:none!important;border-right:0!important;border-bottom:0!important;border-left:0!important;padding-right:0!important;padding-bottom:var(--sp-3)!important;padding-left:0!important;background:transparent}
  #p-today #water.body-t{padding-bottom:0!important}   /* 16px between parts on a phone, nothing extra under the last row */
  #p-today .idea-q{padding:var(--sp-3) 0!important}
  #hero{margin-bottom:0}
}
@media (max-width:743px){ #hero{margin-top:6px} }

/* ===================== v0.8 ===================== */
/* 01 Today card: the user's own "why" is one of the loudest words on the card; cheer and hours unchanged. */
.hcard .hc-why{font-family:var(--f-num);font-size:clamp(24px,2.5vw,34px);font-weight:var(--fw-head);line-height:1.15;letter-spacing:-.02em;text-wrap:balance}
.hcard .hc-why.empty{font-size:clamp(20px,2vw,26px);opacity:.75}
@media (min-width:1024px) and (max-width:1279px){ .hcard .hc-why{font-size:26px} }
@media (max-width:640px){ .hcard .hc-why{font-size:24px!important} }

/* 02 Timeline head: "Start now" fills the space from the start time up to the gear. */
.tl-head .tl-go{flex:1 1 auto!important;justify-content:center;min-height:40px;font-size:14px}
.tl-head .tl-go .ic{width:14px;height:14px}
.tl-head .gear-lk{margin-left:0!important;flex:none}

/* 04 Phone tab bar: 今日 pinned at the left, the rest scroll behind it. */
@media (max-width:1023px){
  .hdr .tab[data-p="today"]{position:sticky;left:-16px;z-index:2;background-color:var(--bg);margin-left:-16px;padding-left:16px!important}
  .hdr .tab[data-p="today"]::before{content:"";position:absolute;top:0;bottom:0;right:-14px;width:14px;background:linear-gradient(var(--ink),var(--ink)) no-repeat right center/1px 30px,var(--bg)}
  .hdr .tab-sep:first-of-type{display:none}
  .hdr .tab{scroll-snap-align:none!important}
  .hdr .tabs{scroll-snap-type:none!important}
}

/* 05 Text size − / + */
.stepper{display:inline-flex;align-items:center;gap:0;border:1px solid var(--ink)}
.stepper .np-b{width:44px;height:40px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.stepper .np-b:disabled{color:var(--faint);cursor:default}
.stepper .np-b .ic{width:18px;height:18px}
.stepper b{min-width:64px;text-align:center;font-size:14px;font-weight:var(--fw-head);border-left:1px solid var(--line);border-right:1px solid var(--line);line-height:40px;padding:0 8px}

/* 06 Appearance: three steps */
.lk-quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px 18px;margin-bottom:6px}
.lk-step{display:flex;align-items:baseline;gap:10px;font-family:var(--f-num);font-weight:var(--fw-head);font-size:18px;letter-spacing:-.01em;margin:22px 0 8px;padding-top:14px;border-top:1px solid var(--line)}
.lk-step span{font-size:12px;color:var(--muted);letter-spacing:.04em}
.lk-row{margin:0 0 14px}
.lk-q{display:flex;align-items:baseline;gap:8px;margin:0;font-weight:var(--fw-head);font-size:15px}
.lk-hex{font-family:var(--f-num);font-size:11.5px;color:var(--muted);font-weight:var(--fw-label);letter-spacing:.04em}
.lk-row .foot{margin:2px 0 8px}
.lk-sw{display:flex;flex-wrap:wrap;gap:6px}
.lk-c{position:relative;width:36px;height:36px;border:1px solid var(--line);background:var(--c);cursor:pointer;padding:0;display:grid;place-items:center;border-radius:var(--rad)}
.lk-c[aria-checked="true"],.lk-own.on{outline:2px solid var(--ink);outline-offset:2px}
.lk-own{background:conic-gradient(from 90deg,#ff4f4f,#ffd400,#4be37a,#2fb8ff,#7b61ff,#ff4fd8,#ff4f4f);color:#0f0f0f}
.lk-own.on{background:var(--c)}
.lk-own .ic{width:16px;height:16px;stroke-width:2.6;background:#fff;color:#0f0f0f;padding:2px}
.lk-own input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;border:0;padding:0}
.lk-dots{display:inline-flex;gap:3px;vertical-align:middle}
.lk-dots i{width:12px;height:12px;border:1px solid var(--line);display:inline-block}
.lk-reset{margin-top:14px}
/* Small preview for phones (on wider screens the real page beside the bar is the preview). */
.lk-pv{margin-top:16px;border:1px solid var(--line);background:var(--bg);border-radius:var(--rad);overflow:hidden}
.lk-pv-h{position:relative;background:var(--acc);color:var(--acc-ink);display:flex;justify-content:space-between;align-items:end;gap:12px;padding:14px 14px 18px}
.lk-pv-h span{font-family:var(--f-num);font-weight:var(--fw-head);font-size:18px;line-height:1.15}
.lk-pv-h b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:48px;line-height:.8;letter-spacing:-.05em}
.lk-pv-h b small{font-size:.3em}
.lk-pv-h i{position:absolute;left:0;bottom:0;height:5px;width:60%;background:var(--acc-ink)}
.lk-pv-r{display:flex;align-items:center;gap:12px;padding:12px 14px;color:var(--ink)}
.lk-pv-b{display:inline-flex;align-items:center;gap:6px;background:var(--acc);color:var(--acc-ink);padding:8px 12px;font-weight:var(--fw-head);font-size:13px;border-radius:var(--rad)}
.lk-pv-b .ic{width:12px;height:12px;fill:currentColor}
.lk-pv .glass{width:20px;height:28px}
.lk-pv-t{font-size:12px;color:var(--muted)}
@media (min-width:1024px){ .lk-pv{display:none} }

/* Corners: the default theme stays square; users may choose slightly round or round. */
html[data-rad="on"]{--rad2:min(calc(var(--rad) * .6), 16px)}   /* small parts (cells, chips, swatches) stay rounded squares, never circles */
html[data-rad="on"] :is(.btn,.hcard,.ppanel,.pickcard,.chip,.tc,.sheet,.bd3-add,.ph-box,.seg,.opt,.np-b,.np-q,.stepper,.tl-go,.start-big,.back-today,.sl2,.prow2,.mefold,.tplrow,.types button,.wtile,.idea,.toast,.cell,.gcell,.pg,.iq-row .btn,.demobar .btn,.avatar,.inp[type="date"]){border-radius:var(--rad)}
html[data-rad="on"] :is(.hcard,.ppanel,.ph-box){overflow:clip}
@media (min-width:1024px){ html[data-rad="on"] .tile{border-radius:var(--rad);overflow:clip} }
html[data-rad="on"] .ptab{border-radius:var(--rad) var(--rad) 0 0}
html[data-rad="on"] .seg button{border-radius:var(--rad2)}
html[data-rad="on"] :is(.tl-box,.ck input){border-radius:var(--rad2)}
html[data-rad="on"] .sw i{border-radius:var(--rad)} html[data-rad="on"] .sw i::after{border-radius:var(--rad2)}   /* 2026-11-21: the one switch — a pill with a round knob */   /* the switch: a pill with a round knob */
html[data-rad="on"] img{border-radius:var(--rad2)}

/* Settings open on a computer: the page beside the bar is the live preview, so it takes the iPad-portrait
   arrangement (Today card across, timeline | body + idea, projects across) instead of squeezing three columns. */
@media (min-width:1024px){
  body.set-open .t-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;align-items:start}
  body.set-open .t-main,body.set-open .t-side{display:contents!important}
  body.set-open #hero{grid-column:1 / -1;grid-row:1}
  body.set-open #tlTile{grid-column:1;grid-row:2 / span 2}
  body.set-open #water{grid-column:2;grid-row:2}
  body.set-open #ideaQ{grid-column:2;grid-row:3}
  body.set-open #projArea{grid-column:1 / -1;grid-row:4}
  body.set-open .hcard .hc-why{font-size:clamp(22px,2vw,28px)}
}
/* Colour swatches: one row of eight plus your own. */
.lk-sw{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;max-width:360px}
.lk-c{width:auto;height:auto;aspect-ratio:1}
/* Phone: the small preview stays in view while you pick colours, corners and fonts. */
@media (max-width:1023px){
  .lk-pv{position:sticky;top:calc(64px + env(safe-area-inset-top,0px));z-index:3;margin:0 0 14px;box-shadow:0 -8px 0 var(--bg),0 8px 0 var(--bg)}
  .mefold details[data-fold="look"] .fold-b{overflow:visible}
}
.fold-b .lk-step{margin:6px 0 -4px}
.fold-b .lk-row{margin:0}
.fold-b .lk-row + .foot{margin:0}
.fold-b .lk-quick{margin:0}
.pickcard[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink),inset 6px 0 0 var(--acc)}
@media (max-width:1023px){ .lk-pv{top:calc(62px + env(safe-area-inset-top,0px));box-shadow:0 -8px 0 var(--bg),0 10px 0 var(--bg)} }

/* ===================== v0.9 ===================== */
/* Nav: no separator lines on computers (the phone keeps the one beside the pinned 今日). */
@media (min-width:1024px){ .hdr .tab-sep{display:none!important} }

/* Today: a sticky rail on the left (clock, today card, timeline, sleep, body) and the work on the right.
   One kind of divider everywhere: a 1px grey line. No boxes, no gaps between boxes. */
.tday{display:flex;flex-direction:column}
.tday .tile{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important}
@media (min-width:744px){
  .tday{display:grid;grid-template-columns:var(--rail-w,340px) minmax(0,1fr);align-items:start}
  .t-rail{position:sticky;top:var(--rail-top,96px);display:flex;flex-direction:column;min-width:0;padding-right:var(--sp-4);border-right:1px solid var(--line)}
  .t-body{display:flex;flex-direction:column;min-width:0;padding-left:var(--sp-4)}
  .t-rail #hero{padding:0 0 var(--sp-3)}
  .t-rail #tlTile{padding-bottom:var(--sp-3)!important}
  .t-rail #water{padding-right:0!important;padding-bottom:var(--sp-2)!important;padding-left:0!important}
  .t-body #whyQ{padding:0 0 var(--sp-4);}
  .t-body #ideaQ{padding:var(--sp-3) 0!important;}
  body[data-panel="today"] .hdr .hdate, body[data-panel="today"] .hdr .hclock{display:none}
}
/* 2026-11-19 (Amuii: 「拉 window 今日欄縮 20px，多餘」): one width on every computer screen — no jump at 1280 */
@media (min-width:1024px){ .tday{--rail-w:360px} }
@media (min-width:744px) and (max-width:1023px){ .tday{--rail-w:300px} .t-body{padding-left:20px} .t-rail{padding-right:18px} }

/* The big number on Today is the clock, like the first version. */
.rl-clock{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-2);padding:0 0 var(--sp-3)}
.rl-time{font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(64px,6vw,96px);line-height:.82;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.rl-date{border:0;background:none;padding:0;cursor:pointer}
.rl-date .tc{font-size:13px;padding:var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-2)}

/* Today card: small. Label and hours on one line, the cheer under it, the bottom edge is the progress bar. */
.hc2{position:relative;padding:14px 16px 0}
.hc2-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.hc2-lab{font-size:12px;font-weight:var(--fw-head);letter-spacing:.08em}
.hc2-n{font-family:var(--f-num);font-weight:var(--fw-head);font-size:30px;line-height:1;letter-spacing:-.03em;white-space:nowrap}
.hc2-cheer{margin:8px 0 14px;font-size:15px;font-weight:var(--fw-head);line-height:1.4}
.hc2-cheer .mk{background:none!important;padding:0;text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:4px;text-decoration-skip-ink:none}

/* Timeline: grey lines only; the accent belongs to creating rows. A done tick is ink on grey, not accent. */
.tl-head{border-bottom:1px solid var(--line)!important}
.tl-r2.done .tl-box{background:var(--soft)!important;border-color:var(--muted)!important}
.tl-r2.done .tl-box .ic{color:var(--ink)!important}
.tl-r2.cur{box-shadow:inset 3px 0 0 var(--ink)}

/* Projects: grey frame like everything else. */
.ppanel{border-color:var(--line)!important}
.ptab.on{border-color:var(--line)!important}

/* The why sentence, big, with the highlighter mark. Same on Today and Goals. */
.whyq{display:block;width:100%;border:0;background:none;padding:0;text-align:left;cursor:pointer;color:var(--ink);font:inherit}
.whyq .lab{display:block;margin:0 0 10px}
.whyq-t{display:block;font-family:var(--f-num);font-weight:var(--fw-head);line-height:1.22;letter-spacing:-.02em;text-wrap:pretty}
.whyq.sz-s .whyq-t{font-size:clamp(30px,3.4vw,52px)}
.whyq.sz-m .whyq-t{font-size:clamp(24px,2.6vw,38px)}
.whyq.sz-l .whyq-t{font-size:clamp(20px,1.9vw,28px)}
.whyq.empty .whyq-t{font-size:22px;color:var(--muted)}
.whyq:hover .whyq-t{text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:6px}
#gWhy{padding:0 0 22px;margin-bottom:18px;border-bottom:1px solid var(--line)}
/* Editor: the sentence as tappable characters. */
.why-sheet .why-in{width:100%;border:0;border-bottom:1px solid var(--ink);font-family:var(--f-num);font-weight:var(--fw-head);font-size:22px;line-height:1.3;background:transparent;resize:none;padding:6px 0;color:var(--ink)}
.why-sheet .why-in:focus{outline:none;background:var(--acc-tint)}
.why-mq{margin:18px 0 2px}
.why-chars{display:flex;flex-wrap:wrap;gap:2px;margin:10px 0 16px}
.wc{min-width:32px;height:40px;border:1px solid var(--line);background:var(--bg);font-family:var(--f-num);font-weight:var(--fw-head);font-size:18px;cursor:pointer;color:var(--ink);padding:0 4px}
.wc.sp{min-width:14px}
.wc.on{background:var(--acc);color:var(--acc-ink);border-color:var(--acc)}
.wc.pick{outline:2px solid var(--ink);outline-offset:-2px}

/* Ideas: room to write; the box grows with the text. */
.iq-row{align-items:flex-end}
.iq-row textarea.inp{resize:none;field-sizing:content;min-height:3.2em;max-height:12em;line-height:1.5;font:inherit;font-size:16px}

/* Phone: one column; the rail's clock is the small one in the header. */
@media (max-width:743px){
  .t-rail,.t-body{display:contents}
  .rl-clock{display:none}
  #hero{order:1} #tlTile{order:2} #water{order:3} #ideaQ{order:4} #whyQ{order:5;padding-bottom:var(--sp-3)} #projArea{order:6}
  .whyq.sz-s .whyq-t{font-size:30px} .whyq.sz-m .whyq-t{font-size:24px} .whyq.sz-l .whyq-t{font-size:20px}
}

.t-rail > *, .t-body > *{width:100%;max-width:100%}
.hc2 .hc-edge{margin:0 -16px}
.iq-f{width:100%}
.iq-row{display:flex;width:100%}
.iq-row textarea.inp{flex:1 1 auto;width:100%;min-width:0}
.iq-row .btn{height:44px;flex:none}
.fc2{padding:12px 14px}
.fc2 .fc-s{font-size:22px;line-height:1.15}
.fcb .fc-s{font-size:15px;font-weight:var(--fw-body);line-height:1.4}

/* ===================== v0.10 ===================== */
/* Stage names stay in view while scrolling a long grid (they sit right under the header). */
.ppanel{overflow:visible!important}
.vgrid .vg-h{position:sticky;top:calc(var(--hdr-h,64px) + env(safe-area-inset-top,0px));z-index:4;background:var(--bg);box-shadow:0 1px 0 var(--line)}
@media (max-width:1023px){ .vgrid .vg-h{top:calc(var(--hdr-h,54px) + env(safe-area-inset-top,0px))} }

/* 此刻 */
.rl-pulse{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-1) var(--sp-2);margin:0;font-size:13px;font-weight:var(--fw-head);line-height:1.4}
.rl-pulse small{flex-basis:100%;font-size:11.5px;font-weight:var(--fw-body);color:var(--muted)}
.dot-live{display:inline-block;width:8px;height:8px;background:var(--acc);box-shadow:inset 0 0 0 1.5px var(--acc-ink);flex:none;transform:translateY(-1px);animation:livep 2.4s ease-in-out infinite}
@keyframes livep{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){ .dot-live{animation:none} }
.pulse-b{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.pulse-b > p:first-child{margin:0 0 12px;font-size:14px;line-height:1.65;font-weight:var(--fw-label)}
.pulse-n{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pulse-n span{display:flex;flex-direction:column;font-size:11.5px;color:var(--muted)}
.pulse-n b{font-family:var(--f-num);font-size:32px;font-weight:var(--fw-head);color:var(--ink);letter-spacing:-.03em;line-height:1}
.pulse-f{margin:12px 0 0;font-size:12px;color:var(--muted)}
.bed-pulse{font-weight:var(--fw-head)}
.auth-legal{margin-top:12px}
.auth-legal a,.about a,.fb-sheet a{color:inherit;text-underline-offset:3px}

/* add to home screen */
.a2hs{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);opacity:0;z-index:30;display:flex;align-items:center;gap:12px;width:min(560px,calc(100% - 32px));padding:10px 12px 10px 14px;background:var(--bg);border:1px solid var(--ink);transition:opacity .25s,transform .25s}
.a2hs.show{opacity:1;transform:translate(-50%,0)}
.a2hs .a2-ic{display:grid;place-items:center;width:28px;height:28px;background:var(--acc);color:var(--acc-ink);flex:none}
.a2hs .a2-ic .ic{width:16px;height:16px;stroke-width:3}
.a2hs .a2-t{flex:1;font-size:13.5px;font-weight:var(--fw-head);line-height:1.35}
.a2hs .btn{flex:none;min-height:36px}
.a2hs .lk{flex:none}
@media (max-width:1023px){ .a2hs{bottom:calc(84px + env(safe-area-inset-bottom,0px))} }
.a2-why{margin:0 0 14px;font-size:14px;line-height:1.6}
.a2-lead{margin:0 0 10px}
.a2-steps{list-style:none;margin:0;padding:0}
.a2-step{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:12px 0;border-top:1px solid var(--line)}
.a2-step > b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:22px;letter-spacing:-.03em;line-height:1}
.a2-step span{display:flex;flex-direction:column;gap:3px}
.a2-step strong{font-size:15px;font-weight:var(--fw-head)}
.a2-step small{font-size:12.5px;color:var(--muted)}
.a2-note{margin:8px 0 0;padding:12px 14px;background:var(--acc-tint);font-size:13px;line-height:1.6;font-weight:var(--fw-label)}
.btn.wide{width:100%;justify-content:center;min-height:48px}

/* feedback */
.fb-lead{margin:0 0 16px;font-size:14.5px;line-height:1.65;font-weight:var(--fw-label)}
.fb-cats{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 16px}
.fb-body{resize:vertical;min-height:120px;line-height:1.55}   /* an underline field (.pe3-desc) that can hold a few lines */
.fb-n{text-align:right;margin:4px 0 12px}
.fb-sheet .inp#fbNick{width:100%;margin:6px 0 14px}
.fb-meta{margin:0;padding:0;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

/* upgrade */
.up-why{margin:0 0 14px;padding:12px 14px;background:var(--acc-tint);font-weight:var(--fw-head);font-size:14px}
.up-grid{border-top:1px solid var(--ink)}
.up-r{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px}
.up-r > span:nth-child(n+2){text-align:center;font-weight:var(--fw-head)}
.up-r .ic{width:18px;height:18px;stroke-width:3;display:block;margin:0 auto}
.up-r:not(.up-h):not(.up-price) > span:nth-child(n+2){font-family:var(--f-num);font-size:19px;letter-spacing:-.01em}
.up-h{font-size:12px;letter-spacing:.06em;font-weight:var(--fw-head)}
.up-h .up-pro{background:var(--acc);color:var(--acc-ink);padding:4px 0}
.up-no{color:var(--faint)}
.up-price b{display:block;font-family:var(--f-num);font-size:30px;font-weight:var(--fw-head);letter-spacing:-.03em;line-height:1}
.up-price small{font-size:11.5px;color:var(--muted);font-weight:var(--fw-label)}
.up-note{margin:14px 0 0;font-size:13px;color:var(--muted);line-height:1.6}

/* account usage + about */
.use{display:flex;flex-direction:column;gap:6px;margin:4px 0 12px}
.use-t{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;font-weight:var(--fw-head)}
.use-t b{font-family:var(--f-num);font-variant-numeric:tabular-nums}
.use-bar{display:block;height:8px;background:var(--soft)}
.use-bar i{display:block;height:100%;background:var(--ink)}
.use-bar.hi i{background:var(--red)}
.acct > .btn{margin:0 8px 10px 0}
.about{display:flex;flex-direction:column;gap:12px}
.about p{margin:0;line-height:1.65}
.ab-lead{font-family:var(--f-num);font-weight:var(--fw-head);font-size:22px;letter-spacing:-.02em}
.about .btn{align-self:flex-start}
.ab-dl{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px 12px;margin:6px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:13.5px}
.ab-dl dt{color:var(--muted);font-weight:var(--fw-label);font-size:12px}
.ab-dl dd{margin:0;overflow-wrap:anywhere}
.demobar .btn{white-space:nowrap;flex:none}
.demobar{gap:12px}

/* ===================== v0.10.1 ===================== */
/* Phone: your own sentence first and big; date in the middle of the header, a bigger clock. */
@media (max-width:743px){
  #whyQ{order:0!important;padding-bottom:var(--sp-3)!important}
  #hero{order:1}
  .whyq.sz-s .whyq-t{font-size:36px!important} .whyq.sz-m .whyq-t{font-size:29px!important} .whyq.sz-l .whyq-t{font-size:23px!important}
}
@media (max-width:1023px){
  .hdr{position:sticky}
  .hdr .hdate{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0}
  .hdr .hdate .tc{font-size:13px;padding:5px 8px}
  .hclock{font-size:26px!important;font-weight:var(--fw-head);letter-spacing:-.04em}
}
@media (max-width:420px){ .hdr .hdate .tc{font-size:12px;padding:4px 6px} .hclock{font-size:23px!important} }

/* Settings bar: solid, and its scrollbar stays out of sight (it never sits against a border). */
.setbar{background:var(--bg);scrollbar-width:none}
.setbar::-webkit-scrollbar{display:none}
@media (max-width:1023px){ body.set-open .setbar{position:relative;z-index:12} }

/* Today: the project's overall progress under its name. */
.pp-bar{flex:1;height:8px;background:var(--soft)}
.pp-bar i{display:block;height:100%;background:var(--acc);box-shadow:inset 0 0 0 1px var(--acc-ink)}

/* The day's last button: wrap up today (sleep left tonight underneath). */
.sl2{display:none}
.sl3{display:grid;grid-template-columns:22px minmax(0,1fr) 18px;align-items:center;gap:12px;width:100%;margin-top:12px;padding:12px 14px;border:1.5px solid var(--ink);background:var(--bg);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.sl3:hover{background:var(--soft)}
.sl3 > .ic{width:20px;height:20px}
.sl3-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.sl3-t b{font-size:15px;font-weight:var(--fw-head)}
.sl3-t small{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.sl3.short .sl3-t small{color:var(--red);font-weight:var(--fw-label)}
.t-rail .bd3 .glass{width:20px!important;height:28px!important}
.t-rail .bd3-p{gap:var(--sp-1)}
.fb-err{margin:0 0 10px;padding:10px 12px;background:var(--red-tint);color:var(--red);font-size:13px;font-weight:var(--fw-label);line-height:1.6}
.fb-err a{color:inherit}
.ab-strong{font-weight:var(--fw-head)}
.entry-intro{margin:6px 0 0;font-size:14px;line-height:1.6;color:var(--muted)}

/* ===================== v0.10.3 ===================== */
/* Settings bar always sits above the page (sticky grid headers were drawing over it). */
.setbar{position:relative;z-index:12}
@media (min-width:1024px){ .setbar{position:sticky} }
.vgrid .vg-h{z-index:3}

/* Water in the rail: big cups on their own line, the button underneath. */
.t-rail .bd3{grid-template-columns:1fr;gap:var(--sp-2)}
.t-rail .bd3 .glass{width:28px!important;height:39px!important}
.t-rail .bd3-p{gap:var(--sp-1)}
.t-rail .bd3 .fig{width:28px;height:36px}
.t-rail .bd3 .fig .ic{width:30px;height:30px}
.t-rail .bd3-add{justify-self:start}

/* Sign-up, Neo-Swiss: one column, black rules, numbered steps, input and button joined. */
.auth-wrap .sheet{max-width:520px;padding:20px 24px 22px;border:1.5px solid var(--ink)}
.au-head{padding:22px 0 18px;border-bottom:1.5px solid var(--ink)}
.au-head .entry-brand{margin:0 0 10px;font-size:clamp(52px,13vw,84px)}
.au-head .entry-tag{font-size:17px;font-weight:var(--fw-head)}
.au-head .entry-intro{margin-top:6px}
.au-box{display:flex;flex-direction:column;gap:14px;padding:16px 0 18px;border-bottom:1px solid var(--line)}
.au-steps{display:grid;grid-template-columns:1fr 1fr;margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.au-steps li{display:flex;align-items:baseline;gap:8px;padding:8px 0 0;font-size:12.5px;font-weight:var(--fw-head);color:var(--faint);border-top:3px solid transparent;margin-top:-2px}
.au-steps li b{font-family:var(--f-num);font-size:13px}
.au-steps li.on{color:var(--ink);border-top-color:var(--ink)}
.au-form{display:flex;flex-direction:column;gap:6px}
.au-lab{font-size:11px;font-weight:var(--fw-head);letter-spacing:.12em;color:var(--muted)}
.au-row{display:flex;align-items:stretch;border:1.5px solid var(--ink)}
.au-in{flex:1;min-width:0;border:0;background:transparent;padding:12px 14px;font:inherit;font-size:18px;font-weight:var(--fw-label);color:var(--ink)}
.au-in:focus{outline:none;background:var(--acc-tint)}
.au-in::placeholder{color:var(--faint);font-weight:var(--fw-body)}
.au-code{font-family:var(--f-num);letter-spacing:.3em;font-size:22px}
.au-go{border:0!important;border-left:1.5px solid var(--ink)!important;padding:0 18px;font-size:14px;font-weight:var(--fw-head);white-space:nowrap}
.au-google{width:100%;min-height:48px;font-size:14px;font-weight:var(--fw-head);border-width:1.5px}
.au-sent{margin:0 0 6px;font-size:13.5px;line-height:1.6}
.au-foot{margin:12px 0 0;font-size:11.5px;color:var(--muted);line-height:1.6}
.au-foot a{color:inherit;text-underline-offset:3px}
@media (max-width:420px){
  .au-row{flex-direction:column}
  .au-go{border-left:0!important;border-top:1.5px solid var(--ink)!important;min-height:48px}
}
/* new version bar */
.upd{position:fixed;left:50%;top:calc(12px + env(safe-area-inset-top,0px));transform:translateX(-50%);z-index:var(--z-notice);display:flex;align-items:center;gap:14px;width:min(520px,calc(100% - 32px));padding:10px 10px 10px 16px;background:var(--bg);border:1.5px solid var(--ink);font-weight:var(--fw-head);font-size:14px}
.upd span{flex:1}
.upd .btn{flex:none;min-height:38px}
/* sign-up: one rule only (no double line above the steps) */
.au-head{border-bottom:0!important;padding-bottom:6px!important}
/* Phone header: clock right beside the logo; date stays in the middle. */
@media (max-width:1023px){
  .hdr .hclock{position:absolute;left:38px;top:50%;transform:translateY(-50%);margin:0}
}

/* Pro sheet v4: headline, comparison table, price cell with beta + full price, own line */
.up-sheet .up-hd{margin:4px 0 10px;font-size:clamp(30px,4.4vw,46px);font-weight:var(--fw-head);letter-spacing:-.03em;line-height:1.05}
.up-lead{margin:0 0 22px;font-size:15px;line-height:1.7;color:var(--muted);max-width:36em}
.up-price > span:last-child{display:flex;flex-direction:column;align-items:center;gap:4px}
.up-price .up-tag{font-style:normal;font-size:12px;font-weight:var(--fw-head);letter-spacing:.06em;background:var(--ink);color:var(--bg);padding:3px 8px}
.up-price b{font-size:clamp(40px,5vw,52px)}
.up-price .up-was{font-size:18px;font-weight:var(--fw-head);color:var(--ink)}
.up-price .up-was s{text-decoration-thickness:2px;color:var(--red)}
.up-own{margin:18px 0 2px;font-size:clamp(20px,2.6vw,26px);font-weight:var(--fw-head);letter-spacing:-.01em}
.up-incl{margin:0;font-size:15px;color:var(--muted)}
.up-f{border-top:1px solid var(--line);padding-top:14px;align-items:center}
.up-f .up-note{margin:0 auto 0 0;font-size:12.5px;color:var(--muted);line-height:1.5;max-width:22em}
@media (max-width:640px){
  .up-f{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px 12px}
  .up-f .up-note{grid-column:1 / -1;margin:0;max-width:none}
  .up-f .btn{justify-self:end}
  .up-price .up-tag{font-size:11px;letter-spacing:.02em;white-space:nowrap;padding:3px 6px}
  .up-price b{font-size:36px}
  .up-price .up-was{font-size:15px;white-space:nowrap}
}

/* v0.11.13 · Today project card: settings gear + description */
.pp-h .pp-gear{margin-left:auto;flex:none;align-self:center}
.pp-h .pp-gear .ic{width:20px;height:20px}
.prow2{scroll-margin-top:var(--sp-4)}
@media (max-width:1023px){.prow2{scroll-margin-top:72px}}

/* v0.11.13 · Phone: the clock moves to the header, but the live "creating now" line stays, above today's card. */
@media (max-width:743px){
  .rl-clock{display:flex;order:0;padding:0 0 var(--sp-3)}
  .rl-clock .rl-time,.rl-clock .rl-date{display:none}
  .rl-clock:not(:has(.rl-pulse)){display:none}
}

/* v0.11.13 · Phone: water / stretch button sits on the same row as the pictures, aligned right. */
@media (max-width:743px){
  .t-rail .bd3{grid-template-columns:minmax(0,1fr) auto;gap:var(--sp-3)}
  .t-rail .bd3-add{justify-self:end;min-width:0;padding:0 var(--sp-3) 0 var(--sp-2)}
  .t-rail .bd3-p{gap:var(--sp-1)}
  .t-rail .bd3 .glass{width:24px!important;height:33px!important}
  .t-rail .bd3 .fig{width:24px;height:32px}
  .t-rail .bd3 .fig .ic{width:26px;height:26px}
}
/* v0.11.13 · Phone bottom nav: give the scrolling tab strip its own layer. iOS Safari otherwise drops
   the painted tabs (all but the pinned 今日) while the browser toolbar collapses on the first scroll. */
@media (max-width:1023px){
  .hdr .tabs{transform:translate3d(0,0,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform}
}

/* v0.11.14 · Template sheet: name, then start and sleep time side by side. */
.tplform{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:12px 24px;align-items:end}
@media (max-width:743px){ .tplform{grid-template-columns:auto auto 1fr!important} .tplform > label:first-child{grid-column:1/-1} }

/* v0.11.15 · Goals list as cover cards: 2 columns on phone, 3 on desktop. The open project spans the full row. */
.pgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-3);min-width:0}
.pgrid > .prow2,.pgrid > .pg-empty{grid-column:1/-1}
@media (max-width:1023px){ .pgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px} }
.pcard{display:flex;flex-direction:column;min-width:0;padding:0;border:1px solid var(--line);background:var(--bg);color:inherit;font:inherit;text-align:left;cursor:pointer;scroll-margin-top:var(--sp-4)}
.pcard:hover{border-color:var(--ink)}
.pcard:active{transform:scale(.985)}
.pc-cov{display:block;aspect-ratio:4/3;overflow:hidden;background:var(--soft);border-bottom:1px solid var(--line)}
.pc-cov .ph-box,.pc-cov .noimg{display:flex;width:100%;height:100%}
.pc-cov .ph-box img{width:100%;height:100%;object-fit:cover}
.pc-body{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-3) var(--sp-3) var(--sp-3);min-width:0}
.pc-name{font-family:var(--f-num);font-weight:var(--fw-head);font-size:19px;line-height:1.2;letter-spacing:-.02em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-meta{display:flex;flex-wrap:wrap;gap:var(--sp-2);align-items:center}
.pc-meta .tc{font-size:11.5px;padding:var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-1)}
.pc-prog{display:flex;align-items:center;gap:var(--sp-2);margin-top:var(--sp-1)}
.pc-prog .pp-bar{flex:1;height:8px;background:var(--soft);display:block}
.pc-prog .pp-bar i{display:block;height:100%;background:var(--acc)}
.pc-prog b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:15px;font-variant-numeric:tabular-nums}
@media (max-width:743px){
  .pc-body{padding:var(--sp-2) var(--sp-2) var(--sp-3);gap:var(--sp-2)}
  .pc-name{font-size:15.5px}
  .pc-prog b{font-size:13px}
}
.pc-body{flex:1}
.pc-prog{margin-top:auto;padding-top:var(--sp-1)}

/* v0.11.15 · Updates & feedback */
.nw-top{margin-bottom:6px}
.nw-new{display:inline-block;background:var(--acc);color:var(--acc-ink);font-size:11px;font-weight:var(--fw-head);padding:2px 7px;letter-spacing:.04em}
.nw{display:flex;flex-direction:column;gap:12px}
.nw-lead{margin:0;font-size:14px;line-height:1.6;font-weight:var(--fw-label)}
.nw .btn{align-self:flex-start}
.nw-lab{margin:10px 0 0;padding-top:14px;border-top:1px solid var(--line)}
.nw-v{padding:2px 0 8px}
.nw-h{display:flex;gap:10px;align-items:baseline;margin:0 0 6px;font-size:13px}
.nw-h b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:15px}
.nw-h span{color:var(--muted);font-weight:var(--fw-label)}
.nw ul{margin:0;padding:0 0 0 18px;display:flex;flex-direction:column;gap:5px;font-size:14px;line-height:1.55}
.nw-sheet .nw ul{font-size:15px;gap:8px}
.nw-sheet .nw-h{display:none}
.nw-sheet .sheet-f{display:flex;justify-content:space-between;align-items:center;gap:12px}
.gearb{position:relative}
.gearb.has-dot::after{content:"";position:absolute;top:5px;right:5px;width:9px;height:9px;background:var(--red,#e5484d);border:2px solid var(--bg);border-radius:50%}

/* v0.11.16 · Feedback button in the top bar, next to Settings. Icon only on phones; icon + word on desktop. */
body.set-open .hdr-r .avatar.fbb{background:var(--bg);color:var(--ink);border-color:var(--line)}
.fbb .fbb-l{display:none}
@media (min-width:1024px){
  .avatar.fbb{width:auto;display:inline-flex;gap:6px;padding:0 12px 0 10px;font-family:var(--f-body);font-size:13px;font-weight:var(--fw-head)}
  .fbb .fbb-l{display:inline}
}

/* ===================== v0.12: Conventions ===================== */
/* Computers: list on the left (numbers on top), map on the right, sticking under the header. Phones: map, numbers, list. */
.cn-wrap{display:flex;flex-direction:column;gap:20px}
.cn-mapcol{min-width:0}
.cn-map{position:relative;height:300px;background:var(--soft);border:1px solid var(--line);min-width:0;overflow:hidden}
.cn-map-msg{position:absolute;inset:auto 12px 12px;margin:0;z-index:2}
.cn-listcol{min-width:0}
.cn-acts{display:inline-flex;align-items:center;gap:16px}
.cn-acts .gear-lk{gap:6px;font-size:13px}
@media (min-width:744px) and (max-width:1023px){ .cn-map{height:380px} }
@media (min-width:1024px){
  .cn-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:0 32px;align-items:start}
  .cn-listcol{grid-column:1;grid-row:1}
  .cn-mapcol{grid-column:2;grid-row:1;position:sticky;top:calc(var(--hdr-h,64px) + 16px)}
  .cn-map{height:calc(100vh - var(--hdr-h,64px) - 40px);min-height:420px}
}
/* Where you set off from */
.cn-orig{padding:12px 0;border-bottom:1px solid var(--line)}
.cn-ol{display:flex;align-items:center;gap:10px;margin:0;font-size:13.5px}
.cn-ol > span:nth-child(2){flex:1;min-width:0}
.cn-osq,.cn-origin{display:inline-block;width:12px;height:12px;background:var(--ink);flex:none}
.cn-origin{width:16px;height:16px;box-shadow:0 0 0 2px var(--bg);cursor:pointer}
.cn-oq{display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--acc-tint);padding:14px 16px}
.cn-oq p{margin:0} .cn-oq small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.cn-oq .btn{flex:none;white-space:nowrap}
/* Map buttons: 全部 / 出發地 */
.cn-ctl{display:flex}
.cn-ctl > button{width:auto!important;height:32px!important;display:inline-flex!important;align-items:center;gap:var(--sp-1);padding:0 var(--sp-2)!important;font:inherit;font-size:12.5px;font-weight:var(--fw-head);color:var(--ink);background:var(--bg)!important}
.cn-ctl > button + button{border-top:0!important;border-left:1px solid var(--line)!important}
.cn-ctl > button:hover{background:var(--soft)!important}
.cn-ctl .ic{width:15px;height:15px}
.cn-listcol .sech{padding:4px 0 12px;border-bottom:1px solid var(--ink)}
.cn-gl{margin:22px 0 0!important;padding-bottom:8px;border-bottom:1px solid var(--line)}

/* A row: square (filled = been there, hollow = coming up), dates, name, venue. Whole row opens it. */
.cn-row{border-bottom:1px solid var(--line)}
.cn-h{display:grid;grid-template-columns:14px minmax(0,1fr) 20px;gap:14px;align-items:start;width:100%;border:0;background:none;padding:14px 0;text-align:left;font:inherit;color:var(--ink);cursor:pointer}
.cn-h:hover .cn-name{text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--line)}
.cn-sq{width:14px;height:14px;margin-top:4px;border:2px solid var(--ink);background:var(--bg)}
.cn-sq.on{background:var(--acc)}
.cn-t{display:flex;flex-direction:column;gap:5px;min-width:0}
.cn-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.cn-meta{display:inline-flex;gap:10px;font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.cn-meta b{color:var(--ink);font-weight:var(--fw-head)}
.cn-name{font-family:var(--f-num);font-weight:var(--fw-head);font-size:21px;line-height:1.2;letter-spacing:-.02em;overflow-wrap:anywhere}
.cn-sub{font-size:13px;color:var(--muted)}
.cn-next{font-size:13px;font-weight:var(--fw-label)}
.cn-chev{width:18px;height:18px;margin-top:4px;stroke-width:2.4;transition:transform .15s}
.cn-row.open .cn-chev{transform:rotate(180deg)}
.cn-row.past .cn-name{color:var(--muted)}
.cn-body{padding:0 0 18px 28px}
/* 2026-11-20 (Amuii: 「字號字色唔一致，對唔齊」): the facts of an open show / goal — ONE component. A row = icon column
   (20px) · words column; a second fact (報名截止、攤位、地址) is its own line in the same words column, smaller and grey;
   copy sits at the row's right end; rows 8px apart. */
.cn-info{display:flex;flex-direction:column;gap:var(--sp-2);padding:0}
.cn-ln{display:grid;grid-template-columns:calc(var(--sp-3) + var(--sp-1)) minmax(0,1fr) auto;column-gap:var(--sp-2);row-gap:var(--sp-1);align-items:start;margin:0;font-size:14px;line-height:20px;color:var(--ink)}
.cn-ln > .ic{grid-column:1;grid-row:1;width:20px;height:20px;color:var(--muted)}
.cn-ln > :not(.ic):not(.cn-cp){grid-column:2;min-width:0;overflow-wrap:anywhere}
.cn-ln > :not(.ic):not(.cn-cp):not(.cn-mut){font-weight:var(--fw-label)}
.cn-ln .cn-mut,.cn-ln .cn-sg.cn-mut{font-size:13px;font-weight:var(--fw-body);color:var(--muted)}   /* a secondary line that can be tapped (報名截止日) still reads as secondary */
.cn-ln .cn-sg,.cn-ln .dfield{min-height:var(--h-tap);margin:calc((var(--sp-3) + var(--sp-1) - var(--h-tap)) / 2) 0;padding:0;font:inherit;font-weight:var(--fw-label);color:var(--ink);text-align:left}
.cn-ln .cn-cp{grid-column:3;grid-row:1;width:var(--h-tap);height:var(--h-tap);margin:calc((var(--sp-3) + var(--sp-1) - var(--h-tap)) / 2) calc((var(--sp-3) - var(--h-tap)) / 2) 0 0;display:grid;place-items:center;border:0;background:none;color:var(--muted);cursor:pointer}
.cn-i .lab{display:block;margin:0 0 4px}
.cn-i p{margin:0;font-size:14px}
.cn-i p small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.cn-venue{grid-column:1/-1}
.cn-nav{margin-top:10px;padding:7px 12px;font-size:12.5px;text-decoration:none;color:var(--ink)}
.cn-tasks{border-top:1px solid var(--ink)}
.cn-th{display:flex;align-items:center;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
.cn-th .lab{margin:0;flex:1}
.cn-th .gear-lk{gap:6px;font-size:13px}
.cn-th .gear-lk .ic{width:16px;height:16px}
.cn-tasks > .foot{margin:10px 0 0}
.cn-f{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}

/* Task rows (convention and Today): tick box, name, date, D-X. Ticked = ink on grey, like the timeline. */
.tk-r{display:grid;grid-template-columns:22px minmax(0,1fr) auto minmax(44px,auto);gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);cursor:pointer;min-height:44px}
.tk-r .tl-box{border:1.5px solid var(--faint);border-radius:2px;background:var(--bg)}
.tk-r:hover .tl-box{border-color:var(--ink)}
.tk-r.done .tl-box{background:var(--soft);border-color:var(--muted)}
.tk-r.done .tl-box .ic{opacity:1;color:var(--ink)}
.tk-r.done .tk-n{color:var(--muted)}
.tk-n{font-size:14px;font-weight:var(--fw-label);min-width:0;overflow-wrap:anywhere}
.tk-n small{display:block;font-size:12px;font-weight:var(--fw-body);color:var(--muted)}
.tk-d{font-size:12px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}

/* Task editor: drag the square along the line. Left = earlier, right = the first day. */
.tk-ed{padding-top:4px}
.tk-scale,.tk-er{display:grid;grid-template-columns:minmax(130px,1.1fr) minmax(160px,2fr) 128px 26px;gap:12px;align-items:center}
.tk-scale{height:22px}
.tk-ticks{position:relative;height:100%}
.tk-ticks i{position:absolute;top:0;bottom:0;width:1px;background:var(--line)}
.tk-ticks i span{position:absolute;top:2px;left:4px;font-style:normal;font-size:10.5px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.tk-ticks i:last-child span{left:auto;right:4px}
.tk-er{border-bottom:1px solid var(--line);padding:6px 0;min-height:52px}
.tk-name{width:100%;font-size:var(--fs-in,14px);font-weight:var(--fw-label);border-bottom-color:transparent}
.tk-name:hover{border-bottom-color:var(--line)}
.tk-track{position:relative;height:40px;cursor:ew-resize;touch-action:none}
.tk-line{position:absolute;left:0;right:0;top:50%;height:1px;background:var(--ink)}
.tk-h{position:absolute;top:50%;width:18px;height:18px;transform:translate(-50%,-50%);background:var(--acc);border:2px solid var(--acc-ink);cursor:grab}
.tk-h:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.tk-er.dragging .tk-h{width:22px;height:22px;cursor:grabbing}
.tk-dv{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;font-size:12.5px;color:var(--muted);white-space:nowrap}
.tk-dv .num-in{width:52px;font-weight:var(--fw-head);color:var(--ink)}
.tk-add{margin-top:10px}
.tk-note{margin:0 0 12px;max-width:720px}
@media (max-width:743px){
  .tk-scale{grid-template-columns:minmax(0,1fr) 26px} .tk-scale > span:first-child,.tk-scale > span:last-child{display:none}
  .tk-scale{display:flex} .tk-ticks{flex:1;margin-right:38px}
  .tk-er{grid-template-columns:minmax(0,1fr) auto 26px;grid-template-areas:"n v x" "t t t";gap:2px 10px;padding:8px 0 4px}
  .tk-name{grid-area:n} .tk-dv{grid-area:v} .tk-er .x{grid-area:x} .tk-track{grid-area:t;margin:0 38px 0 0}
}

/* Map pins: squares (no circles). Filled = been there, hollow = coming up. */
.cn-pin{width:20px;height:20px;padding:0;border:2.5px solid var(--ink);background:var(--bg);cursor:pointer;display:grid;place-items:center;box-shadow:0 0 0 2px var(--bg)}
.cn-pin.on{background:var(--acc);border-color:var(--acc-ink)}
.cn-pin.sel{width:26px;height:26px;border-width:3px}
.cn-pin b{font-family:var(--f-num);font-size:11px;font-weight:var(--fw-head);line-height:1;color:var(--ink)}
.cn-pin.on b{color:var(--acc-ink)}
.maplibregl-popup-content{border-radius:0!important;box-shadow:none!important;border:1px solid var(--ink);background:var(--bg)!important;color:var(--ink);padding:12px 14px!important;font-family:var(--f-body)}
.maplibregl-popup-tip{border-top-color:var(--ink)!important;border-bottom-color:var(--ink)!important}
.cn-pop .lab{margin:0 0 6px}
.cn-pop-r{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;width:100%;border:0;border-bottom:1px solid var(--line);background:none;padding:8px 0;text-align:left;font:inherit;font-size:13.5px;font-weight:var(--fw-label);color:var(--ink);cursor:pointer}
.cn-pop-r:hover span{text-decoration:underline}
.cn-pop .cn-nav{margin-top:10px}
.maplibregl-ctrl-group{border-radius:var(--rad2)!important;box-shadow:none!important;border:1px solid var(--ink);background:var(--bg)!important}
.maplibregl-ctrl-group button + button{border-top-color:var(--line)!important}
.maplibregl-ctrl-attrib{font-size:10.5px}
:root[data-theme="dark"] .maplibregl-ctrl-icon{filter:invert(1)}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .maplibregl-ctrl-icon{filter:invert(1)} }

/* Add / edit form: questions are the headings; two columns on computers. */
.cf-sheet .sheet{max-width:980px}
.cf-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 32px}
.cf-q{margin:0 0 20px}
.cf-l{display:block;font-size:17px;font-weight:var(--fw-head);letter-spacing:-.01em;margin:0 0 6px}
.cf-q .foot{margin:6px 0 0}
.cf-in{width:100%;font-size:16px}
.cf-dates{display:flex;gap:20px;flex-wrap:wrap}
.cf-dates label{display:flex;flex-direction:column}
.cf-res{display:flex;flex-direction:column}
.cf-res .flab{margin:12px 0 2px}
.cf-res .foot{margin:10px 0 0}
.cf-r{display:flex;flex-direction:column;align-items:flex-start;width:100%;border:0;border-bottom:1px solid var(--line);background:none;padding:9px 0;text-align:left;font:inherit;color:var(--ink);cursor:pointer;min-height:44px}
.cf-r:hover{background:var(--soft)}
.cf-r b{font-size:14px} .cf-r small{font-size:12px;color:var(--muted)}
.cf-map{position:relative;height:240px;background:var(--soft);border:1px solid var(--line);margin-top:8px}
.cf-map + .foot{margin:6px 0 0}
@media (max-width:743px){
  .cf-cols{display:flex;flex-direction:column} .cf-col{display:contents} .cf-map{height:200px}
  .cf-q.q1{order:1} .cf-q.q2{order:2} .cf-vbox{order:3;margin-bottom:20px} .cf-q.q4{order:4} .cf-q.q5{order:5} .cf-q.q6{order:6}
}

/* Calendar marks: small squares. Blue = convention day, ink = a convention task due. */
.cal-dots{position:absolute;top:3px;right:3px;display:flex;gap:2px;pointer-events:none}
.cal-dots i{display:block;width:5px;height:5px}
.cd-con{background:var(--c1)!important}
.cd-task{background:var(--ink)}
.hm-c .cal-dots{top:auto;bottom:6px;right:6px;gap:3px}
.hm-c .cal-dots i{width:9px;height:9px}

/* Today: the nearest convention tasks. */
.cq-h{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3)}
.cq-h .lab{margin:0}
.con-q .tk-r,.bd-own .tk-r{grid-template-columns:22px minmax(0,1fr) auto}
.con-q .tk-r:last-child{border-bottom:0}
@media (min-width:744px){ .t-body #conQ{padding-right:0!important;padding-bottom:var(--sp-1)!important;padding-left:0!important} }
@media (max-width:743px){ #conQ{order:3;padding-right:0!important;padding-bottom:var(--sp-1)!important;padding-left:0!important} }

/* Six tabs on the computer header (展會 added): scale the tab words down so the date and buttons keep their room. */
@media (min-width:1024px){
  .hdr .tabs.t6{gap:0 4px}
  html[lang="zh-Hant"] .hdr .tabs.t6 .tab{font-size:clamp(30px,3.4vw,58px)!important;padding-right:22px}
  html[lang="en"] .hdr .tabs.t6 .tab{font-size:clamp(21px,2.3vw,42px)!important;padding-right:20px}
}

/* Place picker: suggestions drop down over the page, so nothing below moves. */
.pp-in{position:relative}
.pp-dd{position:absolute;left:0;right:0;top:100%;z-index:30;background:var(--bg);border:1px solid var(--ink);max-height:320px;overflow:auto;padding:0 12px 6px;box-shadow:0 0 0 0 transparent}
.pp-dd .flab{margin:10px 0 2px}
.pp-st{margin:10px 0 4px}
.pp-line{margin:6px 0 0;min-height:1.2em}
.pp .cf-map{margin-top:10px}
.cf-fromq{margin-top:22px}

/* Date range picker, drawn in place. */
.rp{border:1px solid var(--line);padding:10px 12px 12px;margin-top:4px}
.rp-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.rp-sum{font-size:15px;font-weight:var(--fw-head);font-variant-numeric:tabular-nums}
.rp-sum small{display:block;font-size:12px;font-weight:var(--fw-body);color:var(--muted)}
.rp-nav{display:inline-flex;align-items:center;gap:6px;flex:none;white-space:nowrap}
.rp-nav .btn{padding:4px 12px;min-width:40px;min-height:36px}
.rp-ms{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.rp-mt{margin:4px 0 6px;font-size:12.5px;font-weight:var(--fw-head);letter-spacing:.04em}
.rp-g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.rp-dw{font-size:10.5px;color:var(--muted);text-align:center;padding:2px 0 4px}
.rp-d{height:36px;border:0;background:none;font:inherit;font-family:var(--f-num);font-size:13.5px;font-weight:var(--fw-label);color:var(--ink);cursor:pointer;font-variant-numeric:tabular-nums}
.rp-d:hover{box-shadow:inset 0 0 0 1px var(--ink)}
.rp-d.td{text-decoration:underline;text-underline-offset:3px}
.rp-d.in{background:var(--acc-tint)}
.rp-d.s,.rp-d.e{background:var(--acc);color:var(--acc-ink);font-weight:var(--fw-head)}
.cf-regb{margin-top:2px}
.cf-regb + .rp{margin-top:10px}
.cf-sheet .cf-col .rp{max-width:100%}

/* Phone settings: the top bar stays on top when you scroll, and the 設定 title with its 關閉 button sticks under it,
   so there is always a way out. */
@media (max-width:1023px){
  body.set-open .sb-h{position:sticky;top:calc(var(--hdr-h,54px) + env(safe-area-inset-top,0px));z-index:13;background:var(--bg);margin:0 0 6px;padding:8px 0;border-bottom:1px solid var(--line)}
  body.set-open .sb-h .me-h{font-size:28px;margin:0}
  body.set-open details[data-fold]{scroll-margin-top:calc(var(--hdr-h,54px) + 66px)}
  body.set-open .lk-pv{top:calc(var(--hdr-h,54px) + 64px + env(safe-area-inset-top,0px))}
}

/* Goal deadline from a show */
.dc{margin-top:10px}
.dc .flab{margin:8px 0 6px}
.dc-list{display:flex;flex-wrap:wrap;gap:8px}
.dc-c{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--bg);padding:8px 10px;font:inherit;font-size:13px;color:var(--ink);cursor:pointer;text-align:left;min-height:44px}
.dc-c b{font-weight:var(--fw-head)}
.dc-c:hover{border-color:var(--ink)}
.dc-c[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 4px 0 0 var(--acc)}
.dc-at{display:inline-flex;flex-wrap:wrap}
.dc-at button{display:inline-flex;flex-direction:column;align-items:flex-start;padding:8px 14px;line-height:1.25;white-space:nowrap;min-width:128px}
.dc-at button small{font-size:11.5px;font-weight:var(--fw-label);opacity:.75}
.due-con{display:inline-flex;align-items:center;font-size:11.5px;font-weight:var(--fw-label);color:var(--muted);margin-left:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16em}

/* Release notes: the latest two, older ones folded under one line. */
.nw-more{margin-top:6px;border-top:1px solid var(--line)}
.nw-more > summary{cursor:pointer;list-style:none;padding:12px 0;font-size:13px;font-weight:var(--fw-head);display:flex;align-items:center;gap:6px;min-height:44px}
.nw-more > summary::-webkit-details-marker{display:none}
.nw-more > summary::after{content:"›";transform:rotate(90deg);font-size:16px;line-height:1}
.nw-more[open] > summary::after{transform:rotate(-90deg)}

/* ---------- v0.12.2 ---------- */
/* Block editor: start time is the first time mark, bedtime the last row; actions are big bold rows. */
.ed .row{grid-template-columns:92px minmax(0,1fr)}
.ed .row .tm{font-size:13px;font-weight:var(--fw-label)}
.ed .row .tm .tbtn{font-size:19px;padding:2px 0;margin-top:-4px;gap:4px}
.ed .row .tm .tbtn .ic{width:14px;height:14px}
.ed .ed-r0 .ed-lab{align-self:center;font-weight:var(--fw-head)}
.ed-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;border:1.5px solid var(--ink);background:var(--bg);color:var(--ink);font:inherit;font-size:16px;font-weight:var(--fw-head);cursor:pointer;margin:6px 0}
.ed-add .ic{width:20px;height:20px;stroke-width:2.4}
.ed-add:hover{background:var(--ink);color:var(--bg)}
.ed-addr{padding-bottom:0}
.ed-manage{margin-top:14px}
.ed-gap .tm{padding-top:12px}
.ed-free{padding:12px;font-size:15px;font-weight:var(--fw-head);color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
.ed-free.bad{color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}
.ed-sleep{margin-top:6px}
.ed-night{display:flex;flex-direction:column;gap:2px}   /* a block like the others (.blk.eb); its note at the foot */
.ed-night small{display:flex;align-items:center;gap:var(--sp-1);flex-wrap:wrap;padding:0 var(--sp-2) var(--sp-2);font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}   /* 目標 [01:00] · 早 4h, under the block's name row */
@media (max-width:520px){.ed .row{grid-template-columns:80px minmax(0,1fr)}.ed .row .tm .tbtn{font-size:17px}}
/* Template footer: delete far left, duplicate, save takes the rest. */
.tplform1{margin-bottom:8px}
.tp-foot{justify-content:flex-start;flex-wrap:nowrap;gap:10px;margin-top:18px}
.tp-foot .btn{min-height:52px;font-size:15px;font-weight:var(--fw-head);padding:12px 16px;white-space:nowrap}
.tp-foot .btn .ic{width:18px;height:18px}
.tp-foot .tp-del{color:var(--red);border-color:var(--line);margin-right:auto}
.tp-foot .tp-save{flex:1 1 auto}
@media (max-width:520px){.tp-foot{flex-wrap:wrap}.tp-foot .tp-save{flex-basis:100%;order:3}.tp-foot .tp-del,.tp-foot .tp-dup{flex:1 1 0;margin-right:0}}
/* Started late: the choice sits right under the timeline head. */
.late-ask{border:1.5px solid var(--ink);padding:14px;margin:4px 0 12px}
.late-q{font-weight:var(--fw-head);font-size:16px;margin:0 0 10px}
.late-b{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.late-b .btn{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;min-height:64px;padding:12px 14px}
.late-b .btn b{font-size:16px;font-weight:var(--fw-head)}
.late-b .btn small{font-size:12.5px;opacity:.8;font-weight:var(--fw-body)}
.late-x{margin-top:8px}
@media (max-width:520px){.late-b{grid-template-columns:1fr}}
/* Sign-in: the whole overlay scrolls (in-app browsers have short viewports); the top row stays reachable. */
.auth-wrap{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;align-items:flex-start!important;bottom:auto;height:100vh;height:100dvh}
.auth-wrap .sheet{margin:auto;max-height:none!important;overflow:visible}
.auth-wrap .auth-top{position:sticky;top:0;z-index:2;background:var(--bg);margin:-20px -24px 0;padding:14px 24px 10px;border-bottom:1px solid var(--line)}
.au-google{display:flex;align-items:center;justify-content:center;gap:10px}
.au-google .g-ic{width:20px;height:20px;flex:none}
/* Leave the in-app browser. */
.esc-wrap .sheet{max-width:460px}
.esc{display:flex;flex-direction:column;gap:12px}
.esc-t{font-weight:var(--fw-head);font-size:22px;margin:0}
.esc-d{margin:0;color:var(--muted);line-height:1.6}
.esc .btn{min-height:52px;font-size:16px;font-weight:var(--fw-head);justify-content:center}
.esc-h{margin:0;font-size:13.5px;color:var(--muted)}
.esc-here{align-self:flex-start}

/* ===== v0.13.0: schedule editor, month calendar, motion ===== */
.ed{position:relative}
.ed .rows{position:relative}
.ed .erow{padding-bottom:3px}
.ecol{display:flex;gap:3px;min-width:0;height:100%}
.ecol>.eb{flex:1 1 0;min-width:0;container-type:inline-size}
.eb{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;padding:4px 8px 14px 4px}
.eb[data-drag]{cursor:grab}
.eb.par{align-self:flex-start}
.eb .bh{grid-template-columns:auto minmax(0,1fr) auto auto;gap:4px}
.eb .dh{width:28px;height:32px;display:grid;place-items:center;border:0;background:none;color:var(--muted);cursor:grab;padding:0;touch-action:none}
.eb .dh .ic{width:18px;height:18px;stroke-width:3.2}
.eb .dh:hover,.eb .dh:focus-visible{color:var(--ink)}
.eb .dh.pin{cursor:default;color:var(--ink)}
.eb .dh.pin .ic{stroke-width:2}
.cb{display:inline-flex;align-items:center;gap:6px;justify-self:start;max-width:100%;min-width:0;min-height:34px;padding:4px 8px;font:inherit;font-weight:var(--fw-head);font-size:14.5px;color:inherit;cursor:pointer;
  border:1px solid color-mix(in srgb,currentColor 35%,transparent);background:color-mix(in srgb,var(--bg) 55%,transparent)}
.cb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.cb .ic{width:16px;height:16px}
.cb .car{width:12px;height:12px;color:var(--muted)}
.cb:hover,.cb:focus-visible{border-color:currentColor}
.k-acc .cb{font-weight:var(--fw-head)}
.pinb{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:0 8px;border:1px solid var(--line);background:color-mix(in srgb,var(--bg) 70%,transparent);color:var(--muted);font:inherit;font-size:12.5px;font-weight:var(--fw-head);cursor:pointer;white-space:nowrap}
.pinb .ic{width:15px;height:15px}
.pinb:hover{color:var(--ink);border-color:var(--ink)}
.pinb.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.partag{font-size:11px;font-weight:var(--fw-head);padding:2px 6px;box-shadow:inset 0 0 0 1px currentColor;white-space:nowrap}
.eb .hrs{font-family:var(--f-num);font-size:13px;font-weight:var(--fw-head);color:var(--muted);font-variant-numeric:tabular-nums;padding-right:4px}
@container (max-width:250px){.pinb span{display:none}.pinb{padding:0 7px}}
@container (max-width:190px){.partag{display:none}.eb .hrs{font-size:12px}}
.eb.sel{outline:2px solid var(--ink);outline-offset:-2px}
.eb.lifted{opacity:.28}
.ed.moving,.ed.moving *{cursor:grabbing!important}
.ed-ghost{position:fixed;z-index:var(--z-top2);pointer-events:none;opacity:.94;outline:2px solid var(--ink);transform:rotate(-1.2deg);overflow:hidden;margin:0}
.ed-drop{position:absolute;left:102px;right:0;height:4px;background:var(--ink);z-index:4;pointer-events:none}
.erow.stack-hot .ecol{position:relative}
.erow.stack-hot .ecol::after{content:attr(data-stack);position:absolute;top:0;right:0;bottom:3px;width:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--ink) 82%,transparent);color:var(--bg);font-weight:var(--fw-head);font-size:14px;z-index:3}
@media (pointer:coarse){.eb .grip{height:22px}.eb{padding-bottom:22px}}
.eb.resizing .grip::after{opacity:1;width:48px;height:3px;background:var(--ink)}
.ed-live{position:absolute;right:6px;bottom:16px;display:flex;flex-direction:column;align-items:flex-end;gap:3px;pointer-events:none;z-index:5}
.ed-live s{font-size:12px;font-weight:var(--fw-label);color:var(--muted);background:var(--bg);padding:1px 6px;font-variant-numeric:tabular-nums}
.ed-live b{font-family:var(--f-num);font-size:17px;font-weight:var(--fw-head);background:var(--ink);color:var(--bg);padding:5px 9px;font-variant-numeric:tabular-nums;white-space:nowrap}
.tm-hot{background:var(--ink);color:var(--bg)!important;padding:1px 5px}
.ed .tmv{display:inline-block;font-variant-numeric:tabular-nums}
.ed .pin-t{font-weight:var(--fw-head)}
.ed .pin-t .ic{width:15px;height:15px;order:-1}
.ed-r0.slim{min-height:40px}
.ed-gaprow .tm{padding-top:8px}
.ed-gaprow.gone{display:none}
.ed-gap2{height:calc(100% - 3px);display:flex;align-items:center;padding:0 12px;background:var(--soft);color:var(--muted);font-weight:var(--fw-head);font-size:13.5px;box-shadow:inset 0 0 0 1px var(--line)}
.ed-over{padding:9px 12px;color:var(--red);font-weight:var(--fw-head);font-size:13.5px;box-shadow:inset 0 0 0 1.5px var(--red)}
.ed-overrow{padding-bottom:3px}
.etools{padding-bottom:6px}
.etb{display:flex;gap:6px;flex-wrap:wrap}
.etb .btn{min-height:44px;font-size:13.5px}
.pin-f{display:flex;justify-content:center;padding:10px 0 4px}
.pin-tv{font-size:34px;font-weight:var(--fw-head);font-family:var(--f-num)}
/* combo box */
.cbx{position:absolute;z-index:var(--z-combo);width:min(340px,100%);background:var(--bg);border:1.5px solid var(--ink);padding:8px;display:flex;flex-direction:column;gap:4px;animation:cbxIn .14s ease-out}
@keyframes cbxIn{from{opacity:0;transform:translateY(-4px)}}
.cbx-in{width:100%;min-height:44px}
.cbx-l{max-height:min(320px,46vh);overflow:auto;display:flex;flex-direction:column;overscroll-behavior:contain}
.cbx-h{font-size:11px;font-weight:var(--fw-head);color:var(--muted);letter-spacing:.06em;margin:10px 6px 4px}
.cbx-o{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 8px;border:0;background:none;font:inherit;font-size:15px;font-weight:var(--fw-label);text-align:left;cursor:pointer;color:var(--ink)}
.cbx-o>span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cbx-o.on{background:var(--soft)}
.cbx-o[aria-selected="true"]{font-weight:var(--fw-head)}
.cb-sw{width:30px;height:30px;display:grid;place-items:center;flex:none;color:var(--ink)}
.cb-sw .ic{width:16px;height:16px}
.cb-sw.sw-acc{color:var(--acc-ink)} .cb-sw.sw-c1,.cb-sw.sw-c3,.cb-sw.sw-c4{color:#fff} .cb-sw.sw-none{box-shadow:inset 0 0 0 1.5px var(--faint)}
.cbx-ck{width:18px;height:18px;margin-left:auto}
.cbx-add{font-weight:var(--fw-head);border-top:1px solid var(--line);margin-top:4px}
.cbx-add .ic{width:20px;height:20px;margin:0 5px}
/* colour swatches */
.swatches{flex-wrap:wrap;gap:8px}
.swatches .swb{width:34px;height:34px}
.sw-own{display:grid;place-items:center;position:relative;color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--faint);background:var(--bg)}
.sw-own .ic{width:18px;height:18px}
.sw-own input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;border:0;padding:0}
/* month calendar in Settings → Schedule */
#cal2{display:flex;flex-direction:column;gap:10px;margin-top:6px}
#cal2 .flab{margin:0}
.c2chips{display:flex;flex-wrap:wrap;gap:6px}
.c2chip{display:inline-flex;flex-direction:column;align-items:stretch;gap:5px;min-height:44px;padding:7px 10px;border:1.5px solid var(--line);background:var(--bg);font:inherit;font-weight:var(--fw-head);font-size:13.5px;color:var(--ink);cursor:pointer;min-width:84px;text-align:left}
.c2chip[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.c2bar{display:flex;height:5px;gap:1px;width:100%}
.c2bar i{display:block;min-width:2px}
.c2bar .sw-none{background:var(--line);box-shadow:none}
.c2head{display:flex;align-items:center;justify-content:space-between}
.c2head b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:17px}
.c2grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.c2w{font-size:11px;font-weight:var(--fw-head);color:var(--muted);text-align:center;padding-bottom:2px}
.c2d{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:3px;min-height:58px;padding:4px 4px 5px;border:1px solid var(--line);background:var(--bg);font:inherit;color:var(--ink);cursor:pointer;text-align:left;overflow:hidden}
.c2d:hover{border-color:var(--ink)}
.c2n{display:flex;align-items:center;justify-content:space-between;font-family:var(--f-num);font-weight:var(--fw-head);font-size:13px;line-height:1}
.c2t{font-size:10.5px;font-weight:var(--fw-label);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c2d.s-week .c2bar,.c2d.s-week .c2t{opacity:.38}
.c2d.s-week .c2t{font-weight:var(--fw-body)}
.c2d.s-manual,.c2d.s-con{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.c2d.s-manual .c2bar,.c2d.s-con .c2bar{height:7px}
.c2con{font-style:normal;font-family:var(--f-body);font-size:9.5px;font-weight:var(--fw-head);background:var(--ink);color:var(--bg);padding:1px 3px;line-height:1.2}
.c2d.td .c2n{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px}
.c2d.lit::after{content:"";position:absolute;inset:0;background:var(--ink);transform-origin:bottom;animation:c2lit .5s ease-out forwards;pointer-events:none}
@keyframes c2lit{0%{transform:scaleY(0);opacity:.9}55%{transform:scaleY(1);opacity:.75}100%{transform:scaleY(1);opacity:0}}
.c2key{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--muted);font-weight:var(--fw-label)}
.c2key span{display:inline-flex;align-items:center;gap:6px}
.c2key i{width:14px;height:14px;display:inline-block;border:1px solid var(--line)}
.c2key .k-week{background:color-mix(in srgb,var(--ink) 12%,var(--bg))}
.c2key .k-man{border:2px solid var(--ink)}
.c2key .k-con{border:2px solid var(--ink);background:var(--ink)}
@media (max-width:420px){.c2d{min-height:52px;padding:3px}.c2t{font-size:9.5px}}
/* delete template */
.tp-delwhy{margin:10px 0 -4px}
.tp-del[disabled],.edbar-del[disabled]{opacity:.4;cursor:not-allowed}
.tpq{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.tpq-b{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-height:52px;text-align:left}
/* adjust today: three choices */
.adj-f{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.adj-f .btn{min-height:52px;justify-content:center}
.adj-every{display:flex;flex-direction:column;align-items:center;gap:2px}
.adj-every small{font-size:12px;font-weight:var(--fw-label);color:var(--muted)}
.adj-name{display:flex;flex-direction:column;gap:6px;padding:10px 0 4px}
.adj-reset{align-self:center;margin-top:4px}
@media (min-width:760px){.adj-f{display:grid;grid-template-columns:1fr 1fr 1fr}.adj-name,.adj-reset{grid-column:1/-1}}
/* appearance: text size next to fonts */
.lk-size{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
/* Today: side-by-side blocks and free time */
.tl-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid var(--line)}
.tl-pair .tl-r2{border-bottom:0;min-width:0}
.tl-pair .tl-r2+.tl-r2{border-left:1px solid var(--line)}
.tl-pair .tl-r2{grid-template-columns:20px auto minmax(0,1fr) auto;gap:var(--sp-2);padding:0 var(--sp-1)}
.tl-pair .tl-ic{display:none}
.tl-pair .tl-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-same{font-style:normal;font-size:10px;font-weight:var(--fw-head);color:var(--muted);font-family:var(--f-body);white-space:nowrap}
.tl-pair .tl-r2.side .tl-tm{display:none}
.tl-pair .tl-r2.side{grid-template-columns:20px minmax(0,1fr) auto}
.tl-gap{display:grid;grid-template-columns:22px var(--tmw,62px) minmax(0,1fr);gap:var(--sp-2);align-items:center;height:30px;padding:0 var(--sp-2);background:var(--soft);font-size:12.5px;font-weight:var(--fw-label);color:var(--muted)}
.tl-gap .tl-tm{grid-column:2;font-family:var(--f-num);font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
/* ---- motion (all off with reduced motion) ---- */
.tl-r2.tick-in .tl-box{animation:tickFill .32s ease-out}
.tl-r2.tick-in .tl-box .ic path{stroke-dasharray:24;stroke-dashoffset:24;animation:tickDraw .3s .12s ease-out forwards}
@keyframes tickFill{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes tickDraw{to{stroke-dashoffset:0}}
.tl-r2.tick-in{animation:rowDone .5s ease-out}
@keyframes rowDone{0%{background:color-mix(in srgb,var(--ink) 10%,transparent)}100%{background:transparent}}
.tl-r2.draw.tick-in{animation:none}
.hc-edge i{transition:width .7s cubic-bezier(.2,.8,.2,1)}
.hcard.hit{animation:hcHit 1.2s ease-out}
@keyframes hcHit{0%,30%{box-shadow:0 0 0 4px var(--acc-ink),0 0 0 10px var(--acc)}100%{box-shadow:0 0 0 0 transparent}}
.tl-in>*{animation:tlIn .38s calc(var(--i,0)*45ms) cubic-bezier(.2,.8,.2,1) both}
@keyframes tlIn{from{opacity:0;transform:translateY(10px)}}
.tl-r2.cur{position:relative}
.tl-r2.cur::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--ink);animation:curBreath 2.4s ease-in-out infinite}
.tl-r2.cur.draw::before{background:var(--acc-ink)}
@keyframes curBreath{50%{opacity:.25}}
.eb.flash{animation:ebFlash .9s ease-out}
@keyframes ebFlash{0%,35%{outline:3px solid var(--ink);outline-offset:-3px}100%{outline:3px solid transparent;outline-offset:-3px}}
.alldone{position:fixed;inset:0;z-index:var(--z-top);display:grid;place-items:center;cursor:pointer}
.ad-g{position:absolute;inset:0;display:grid;grid-template-columns:repeat(var(--cols),1fr);grid-auto-rows:1fr}
.ad-g i{background:var(--acc);transform:scale(0);animation:adSq .42s var(--d) cubic-bezier(.2,.9,.2,1) forwards;border:1px solid var(--acc-ink)}
@keyframes adSq{to{transform:scale(1.02)}}
.ad-c{position:relative;text-align:center;color:var(--acc-ink);opacity:0;animation:adIn .5s .62s ease-out forwards}
.ad-t{font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(28px,6vw,52px);letter-spacing:.02em;margin:0}
.ad-n{display:block;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(84px,20vw,180px);line-height:1;letter-spacing:-.03em}
.ad-s{font-weight:var(--fw-head);font-size:16px;margin:8px 0 0}
@keyframes adIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.alldone.out{animation:adOut .45s ease-in forwards}
@keyframes adOut{to{opacity:0}}
.hello{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:8px 4px}
.hello-ic{width:64px;height:64px;display:grid;place-items:center;background:var(--ink);color:var(--bg);animation:helloIn .5s cubic-bezier(.2,1.5,.4,1)}
.hello-ic .ic{width:34px;height:34px}
@keyframes helloIn{from{transform:scale(.3) rotate(-12deg);opacity:0}}
.hello-t{font-family:var(--f-num);font-weight:var(--fw-head);font-size:22px;margin:4px 0 0}
.hello-b{color:var(--muted);margin:0;max-width:34ch}
.hello .btn{min-height:52px;width:100%;justify-content:center}
@media (prefers-reduced-motion:reduce){
  .tl-r2.tick-in,.tl-r2.tick-in .tl-box,.tl-r2.tick-in .tl-box .ic path,.hcard.hit,.tl-in>*,.tl-r2.cur::before,.eb.flash,.c2d.lit::after,.cbx,.hello-ic{animation:none!important}
  .tl-r2.tick-in .tl-box .ic path{stroke-dashoffset:0}
  .hc-edge i{transition:none}
}
.c2nav{width:44px;height:44px;display:grid;place-items:center;border:1.5px solid var(--ink);background:var(--bg);color:var(--ink);cursor:pointer;padding:0}
.c2nav .ic{width:18px;height:18px;stroke-width:2.4}
.c2nav:hover{background:var(--ink);color:var(--bg)}
.eb .bp{display:flex;padding:6px 0 0 32px}
.pinb.sm{padding:0 7px}
.adj-name[hidden],.adj-f .adj-sub[hidden],.adj-f .adj-reset[hidden]{display:none}
@container (max-width:200px){.eb .dh{display:none}.eb .bp{padding-left:0}.cb{padding:4px 6px}}
/* Recap: the days you created light up one by one */
.hm-go .hm-month .hm-c:is(.hl1,.hl2,.hl3,.hl4){animation:hmIn .4s calc(var(--i,0)*22ms) cubic-bezier(.2,.8,.2,1) both}
@keyframes hmIn{from{transform:scale(.6);opacity:0}}
@media (prefers-reduced-motion:reduce){.hm-month .hm-c{animation:none!important}}
/* v0.13.1: the pin sits on the time line; blocks carry only name + length */
.ed .tm .tmw{display:inline-flex;align-items:center;justify-content:flex-end;gap:0;max-width:100%}
.pinq{position:relative;width:24px;height:28px;flex:none;border:0;background:none;padding:0;color:var(--muted);opacity:.45;cursor:pointer;display:grid;place-items:center}
.pinq::after{content:"";position:absolute;inset:-8px -4px}
.pinq .ic{width:15px;height:15px}
.pinq:hover,.pinq:focus-visible{opacity:1;color:var(--ink)}
.pinq.on{opacity:1;color:var(--ink)}
.pinq.on .ic{stroke-width:2.6}
.ed .pin-t{border:0;background:none;padding:0;font-family:var(--f-num);font-size:16px;font-weight:var(--fw-head);color:var(--ink);cursor:pointer}
.ed .erow .tbtn .ic,.ed .ed-gaprow .tbtn .ic,.ed .ed-r0 .tbtn .ic{display:none}
.ed .tm .tmv{transition:background .12s,color .12s}
.ed-addr .tm{padding-top:10px}
.eb .bh{grid-template-columns:minmax(0,1fr) auto auto;padding-left:4px}
.eb[data-drag]:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.ed-over{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;line-height:1.45}
.ed-over .lk{color:var(--red);font-weight:var(--fw-head);min-height:36px;text-decoration:underline;text-underline-offset:3px}
.adj-f{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.adj-f .adj-main{grid-column:1/-1;min-height:52px}
.adj-f .adj-sub{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:50px;padding:6px 8px;font-size:13.5px;text-align:center}
.adj-sub small{font-size:11.5px;font-weight:var(--fw-label);color:var(--muted);line-height:1.3}
@media (min-width:760px){.adj-f{grid-template-columns:1fr 1fr 1.3fr}.adj-f .adj-main{grid-column:3;grid-row:1}}
.tpq-2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tpq-2 .btn{min-height:48px;justify-content:center}
.tl-pin{display:inline-block;width:11px;height:11px;vertical-align:-1px;margin-left:var(--sp-1);stroke-width:2.4}

/* ---------- v0.14.0: items (number | cells | name), add row, item actions, drag; timeline; finishing criteria ---------- */
.vgrid{--vgn:44px;--vgc:48px;width:100%}
@media (max-width:760px){ .vgrid{--vgn:34px;--vgc:40px} }
.vg-h,.vg-r{gap:var(--sp-2)}
.vg-c{width:var(--vgc);height:var(--vgc);justify-self:start}
.vg-st{align-items:flex-start;text-align:left;min-width:0;width:var(--vgc)}
.vg-st b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-weight:var(--fw-head);max-width:100%}
.vg-u{align-self:end}
.vg-no{font-family:var(--f-num);font-weight:var(--fw-head);font-size:17px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--ink)}
.vg-l{border:0;background:none;padding:0;cursor:pointer;text-align:left;color:var(--ink);min-height:var(--vgc);touch-action:pan-y;-webkit-touch-callout:none}
.vg-nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--f-body);font-size:13.5px;font-weight:var(--fw-head);letter-spacing:0;padding-left:var(--sp-1)}
.vg-r.sel .vg-l{font-size:17px;text-decoration:none}
.vg-r.sel .vg-l.vg-nm{font-size:13.5px}
.vg-r.sel .vg-l.vg-no{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.vg-r.done .vg-l,.vg-r.done .vg-no{color:var(--muted)}
.vg-r.hold .vg-l,.vg-r.hold .vg-c{opacity:.45}
.vg-in{grid-column:2/-1;min-width:0;width:100%;height:36px;border:0;border-bottom:1px solid var(--ink);background:transparent;font:inherit;font-family:var(--f-body);font-size:var(--fs-in,14px);font-weight:var(--fw-head);color:var(--ink);padding:0 var(--sp-1);outline:0}
.vg-r.op,.vg-new{min-height:var(--vgc)}
.vg-new .vg-no{color:var(--muted)}
.vg-new .vg-in{border-bottom-color:var(--line)}
.vg-new .vg-in:focus{border-bottom-color:var(--ink)}
.vg-new .vg-in::placeholder{color:var(--muted);font-weight:var(--fw-label)}
.wa.one .vg-new{display:grid;margin-top:var(--sp-2)}
.vg-act{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sp-2) var(--sp-3);padding:var(--sp-2) 0 var(--sp-3);}
.vg-act .lk.danger{display:inline-flex;align-items:center;gap:var(--sp-2);min-height:44px;color:var(--red);font-weight:var(--fw-head);border:0;background:none;padding:0;cursor:pointer}
.vg-act .ic{width:20px;height:20px}
.vg-sp{flex:1;min-width:24px}
.vg-due{display:inline-flex;align-items:center;gap:var(--sp-2);font-size:13px;font-weight:var(--fw-head);color:var(--muted)}
.vg-due .inp{min-height:40px;width:auto;max-width:150px;min-width:0}
.vg-hold{display:inline-flex;align-items:center;gap:var(--sp-2);min-height:44px}
@media (max-width:760px){
  .vg-act{gap:var(--sp-2)} .vg-sp{min-width:8px} .vg-due{gap:var(--sp-1);font-size:12px}
  .vg-due .inp{max-width:128px;font-size:var(--fs-in,13px);padding:var(--sp-1) 0} .vg-hold{padding:var(--sp-2) var(--sp-2)}
}
.vg-r.dragging{position:relative;z-index:5;background:var(--ink);transition:none}
.vg-r.dragging .vg-l,.vg-r.dragging .vg-no{color:var(--bg)}
.vg-r.dragging .vg-c{border-color:var(--bg)}
body.idragging,body.idragging *{user-select:none;-webkit-user-select:none;cursor:grabbing}
.gal-tag{max-width:calc(100% - 8px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gal-tl{font-family:var(--f-num);font-variant-numeric:tabular-nums}
.gal-e{display:flex;flex-direction:column;align-items:center;gap:var(--sp-2);font-weight:var(--fw-head);text-align:center;padding:0 var(--sp-3)}
.gal-e .ic{width:28px;height:28px}
.shot-img{max-width:220px;margin:4px auto 12px;border:1px solid var(--line)}
.shot-img img{display:block;width:100%}
/* Computers: check-in list on the left, images on the right. Phones and tablets: unchanged. */
@media (min-width:1024px){
  .wa > .wa-g{order:0;flex:1 1 0;min-width:0}
  .wa > .gal{order:1;flex:0 1 var(--side-w)}
  .wa.one > .wa-g{flex:1 1 0}
}
@media (prefers-reduced-motion:reduce){ .vg-r{transition:none!important} }

.gtl{--gtl-nw:140px;margin:14px 0 16px;padding:14px 16px 16px;background:var(--tile);border:1px solid var(--line)}
.gtl-empty{padding:12px 16px}
.gtl-empty .foot{margin:0}
.gtl-h{display:flex;align-items:center;gap:4px;margin-bottom:10px}
.gtl-p{font-family:var(--f-num);font-size:18px;font-weight:var(--fw-head);min-width:84px;text-align:center}
.gtl-arr{width:44px;height:44px;display:grid;place-items:center;border:0;background:none;cursor:pointer;color:var(--ink);padding:0}
.gtl-arr .ic{width:20px;height:20px}
.gtl-seg{margin-left:auto;min-width:120px}
.gtl-body{position:relative}
.gtl-r{display:grid;grid-template-columns:var(--gtl-nw) 1fr;align-items:center;min-height:36px;border-top:1px solid var(--line)}
.gtl-ax{min-height:22px;border-top:0}
.gtl-n{border:0;background:none;padding:0 10px 0 0;text-align:left;font:inherit;font-size:13.5px;font-weight:var(--fw-head);color:var(--ink);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:36px}
.gtl-n:hover{text-decoration:underline}
.gtl-t{position:relative;height:100%;min-height:inherit}
.gtl-ax .gtl-t span{position:absolute;top:2px;transform:translateX(-50%);font-size:11px;font-weight:var(--fw-label);color:var(--muted);font-family:var(--f-num)}
.gtl-ax .gtl-t span:first-child{transform:none}
.gtl-bar{position:absolute;top:50%;height:6px;margin-top:-3px;background:var(--line)}
.gtl-dl,.gtl-it{position:absolute;top:50%;transform:translate(-50%,-50%)}
.gtl-dl{width:12px;height:12px;background:var(--ink)}
.gtl-dl.late{background:var(--red)}
.gtl-it{width:8px;height:8px;border:2px solid var(--ink);background:var(--tile)}
.gtl-it.done{background:var(--ink)}
.gtl-it.hold{opacity:.4}
.gtl-now{position:absolute;top:22px;bottom:0;width:0;border-left:1px solid var(--ink);pointer-events:none}
@media (max-width:760px){ .gtl{--gtl-nw:96px;padding:10px 12px 12px;margin:10px 0 12px} .gtl-n{font-size:12.5px} }

.crit .chip.pick .ic,.crit .chip .ic{width:16px;height:16px}
.crit-sell{gap:6px;padding:0 10px 0 4px}
.crit-x{width:32px;height:32px;display:grid;place-items:center;border:0;background:none;padding:0;cursor:pointer;color:var(--ink)}
.crit-n{width:56px;height:30px;border:0;border-bottom:1px solid var(--ink);background:transparent;font:inherit;font-weight:var(--fw-head);text-align:center;color:var(--ink);padding:0}
.crit-list{display:flex;flex-direction:column;margin:12px 0 18px;border-top:1px solid var(--line)}
.crit-r{display:flex;align-items:center;gap:12px;min-height:52px;border:0;border-bottom:1px solid var(--line);background:none;padding:0 4px;cursor:pointer;font:inherit;font-size:15px;font-weight:var(--fw-head);color:var(--ink);text-align:left}
.crit-b{flex:none;width:24px;height:24px;border:2px solid var(--ink);display:grid;place-items:center}
.crit-r.on .crit-b{background:var(--ink);color:var(--bg)}
.crit-b .ic{width:16px;height:16px;stroke-width:3}
.crit-f{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.crit-f .np-go{width:100%}
.crit-met{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:6px 0 14px}
.crit-met .chip{min-height:32px;padding:0 10px;font-size:13px}
.crit-met .ic{width:14px;height:14px}

/* Theme corners: cards and image slots that missed the radius setting */
html[data-rad="on"] :is(.pcard,.gal-big,.gal-th,.s1,.tl-r2,.sl3,.ist,.cn-map,.demobar,.done-card,.gtl,.hello){border-radius:var(--rad)}
html[data-rad="on"] :is(.pcard,.gal-big,.gal-th,.cn-map,.gtl){overflow:clip}
html[data-rad="on"] .pcard .pc-cov,html[data-rad="on"] .pcard .pc-cov :is(.ph-box,img){border-radius:0}   /* a card's cover: the card's own corners clip it; the picture inside has none of its own (2026-11-23 Amuii: 封面圖右邊都變圓) */
html[data-rad="on"] :is(.vg-c,.hm-c,.crit-b,.gtl-dl,.gtl-it){border-radius:var(--rad2)}
/* 2026-11-20 (Amuii: 「focus mode not in round … check all elements」): every object with its own frame or fill follows
   the corner setting. Big ones take --rad: the focus mode buttons. Small ones take --rad2: the keyboard hint, the album
   arrows and picture labels, the map's buttons, a show card's cover, the plan's late / today chips and progress track.
   Square on purpose: full-screen layers (focus mode, a phone sheet), lines and the plan's day columns (structure, not
   objects), and parts inside a rounded card that clips them (開始創作 strip, map overlay). */
html[data-rad="on"] .fx-b{border-radius:var(--rad)}
html[data-rad="on"] :is(.add-kbd,.gal-arr,.gal-tag,.pc-cov,.pc-noimg,.pl-late,.td,.blk,.ed-gap2,.ed-over){border-radius:var(--rad2)}   /* .ed-over: the timetable's warning row is a block like the others (2026-11-23 Amuii) */
html[data-rad="on"] :is(.ed-add,.cbx,.pl-nmv,.pl-len,.fx-opt,.fxbar){border-radius:var(--rad)}
html[data-rad="on"] .fxbar{overflow:clip}   /* 2026-11-21 (Amuii: 「the focus mode is still not rounded」): the mode cards and the running focus bar are boxes (the bar never touches the screen edges); the bar's black button follows its corner */
html[data-rad="on"] :is(.cbx-o,.tag,.cb-sw){border-radius:var(--rad2)}   /* 2026-11-21 (Amuii): the activity picker and its choices, a picked block's action row, the plan's name and days fields, labels */
html[data-rad="on"] .shs-prev{border-radius:var(--rad)}
html[data-rad="on"] .shs-cov{border-radius:var(--rad2)}   /* small tiles: the small-part corner */
html[data-rad="on"] :is(.shs-prev,.shs-cov){overflow:clip}   /* 分享: the preview and the cover tiles are boxes like the rest (2026-11-21 Amuii) */
html[data-rad="on"] .pl-pg{clip-path:inset(0 round var(--rad) 0 0 var(--rad))}   /* a bar's progress fill follows the bar's round left end, but is never itself a rounded sliver */
/* round 2 (Amuii: 「these all should be rounded」): the ones that only show after a tap — a show's plan window, every
   filter panel, the date calendar; and their small parts: 範本 tabs, calendar days, the picture viewer's thumbnails,
   項目細節's note and link fields, map pins */
html[data-rad="on"] .plf[data-only]{border-radius:var(--rad)}
html[data-rad="on"] :is(.pl-fp,.dpop){border-radius:var(--rad2)}   /* a dropdown or pop-up list takes the capped corner (2026-11-23 Amuii: 「why these drop down has this problem」 — the full corner turned small lists into circles) */
html[data-rad="on"] .plf[data-only]{overflow:hidden}
/* 2026-11-20 (Amuii: 「pop up CTA bar not rounded when setting has rounded」): a pop-up's bottom bar (editorSheet's .tpbar,
   fixed over the sheet's foot) takes the sheet's bottom corners; the sheet's scroll bar stops short of its round corners */
html[data-rad="on"] :is(.tpbar,.edbar-blk){border-radius:0 0 var(--rad) var(--rad)}
body.tpbar-on .tp-sheet .sheet::-webkit-scrollbar-track{margin-bottom:calc(var(--sp-4) * 4)}
html[data-rad="on"] :is(.adj-tab,.rp-d,.rv-i,.idt-desc,.idt-lin,.cn-pin){border-radius:var(--rad2)}
/* a picture's label sits inside the rounded corner, never cut by it: moved in by the part of the corner that curves
   (0.3 × the radius, the point where a circle's corner meets the label's corner) */
html[data-rad="on"] .gal-tag{top:calc(var(--rad) * .3);left:calc(var(--rad) * .3)}
html[data-rad="on"] .gal-tag[data-at="r"]{left:auto;right:calc(var(--rad) * .3)}   /* a label on the right (用品 ×N) keeps its own side */
/* v0.14.0 round 3: one dense grid (cells touch, shared lines), one 12px spacing, numbers on one line */
.vgrid{--vgn:36px;gap:0}
@media (max-width:760px){ .vgrid{--vgn:32px} }
.vgrid .vg-h,.vgrid .vg-r{gap:0}
.vgrid .vg-h{align-items:start;padding:0 0 var(--sp-3);margin-bottom:var(--sp-3);}
.vg-st{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-1);padding:0 var(--sp-2) 0 0}
.vg-st i{line-height:1.2}
.vgrid .vg-r + .vg-r[data-iid]{margin-top:-1px}   /* rows share one line; the first row keeps its top line (2026-11-21 Amuii: 「top border is missing」 — it slid under the sticky head) */
.vgrid .vg-c{width:calc(var(--vgc) + 1px);height:calc(var(--vgc) + 1px);margin-left:-1px;justify-self:start}
.vgrid .vg-c.on{position:relative;z-index:1}
.vgrid .vg-c:hover{position:relative;z-index:2}
/* rounded corners (設定→外觀→圓角; 2026-11-20 Amuii: 「missing border」): the square grid shares one 1px line between
   cells (-1px overlap), which rounded corners can't do — a ticked cell covered its neighbours' corners. Rounded, every
   cell is its own box with all four lines: a ring the page colour hides the overlap, the line is drawn inside it. Same size. */
html[data-rad="on"] .vgrid .vg-c{border:2px solid var(--bg);background-clip:padding-box;box-shadow:inset 0 0 0 1px var(--line)}
html[data-rad="on"] .vgrid .vg-c.on{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--acc-ink) 25%,var(--acc))}
html[data-rad="on"] .vgrid .vg-c:hover{box-shadow:inset 0 0 0 1px var(--ink)}
.vgrid .vg-nm{padding-left:var(--sp-3)}
.vgrid .vg-fold,.vgrid .vg-unfold{margin:var(--sp-2) 0}
.vgrid .vg-r.dragging{z-index:6}
/* New goal: small questions, big bold answers; the hint for the name lives in the field itself */
.np-qt{font-size:15px;font-family:var(--f-body);font-weight:var(--fw-head);letter-spacing:0}
.np-h{font-size:12px;margin:2px 0 8px}
.np-in{font-size:22px;font-weight:var(--fw-head)}
.np-in::placeholder{font-size:17px;font-weight:var(--fw-label)}
.np-date{font-size:18px;font-weight:var(--fw-head)}
.np-q input{font-weight:var(--fw-head)}
.np-sec .np-qt + .np-in,.np-sec .np-qt + .np-qrow,.np-sec .np-qt + .chips{margin-top:8px}
/* Open goal: settings in the top-right corner */
.pr-top{display:flex;align-items:flex-start;gap:var(--sp-3)}
.pr-top .pr-h{flex:1;min-width:0}
.pr-set{display:inline-flex;align-items:center;gap:var(--sp-2);min-height:44px;flex:none;margin-top:var(--sp-1)}
.pr-set[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.pr-set .ic{width:20px;height:20px}
.tag-sug{margin-top:8px;gap:6px}
.tag-sug .chip{min-height:32px;font-size:13px;padding:0 10px}
/* v0.14.0 round 4: timeline answers (pace projection), deadline edited in place */
.gtl{--gtl-nw:168px}
@media (max-width:760px){ .gtl{--gtl-nw:104px} }
.gtl-r{min-height:48px}
.gtl-n{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:48px}
.gtl-n b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--fw-head)}
.gtl-n small{font-size:11.5px;font-weight:var(--fw-label);color:var(--muted)}
.gtl-n small.late{color:var(--red)}
.gtl-r.op .gtl-n b{text-decoration:underline;text-underline-offset:3px}
.gtl-pjl{position:absolute;top:50%;height:0;border-top:2px solid var(--ink)}
.gtl-pjl.late{border-top-color:var(--red)}
.gtl-pj{position:absolute;top:50%;width:12px;height:12px;transform:translate(-50%,-50%);border:2px solid var(--ink);background:var(--tile)}
.gtl-pj.late{border-color:var(--red)}
.gtl-it.late{border-color:var(--red)}
.gtl-key{display:inline-flex;align-items:center;gap:6px;margin-left:12px;font-size:12px;font-weight:var(--fw-label);color:var(--muted)}
.gtl-key i{position:static;transform:none;display:inline-block;margin-left:6px}
@media (max-width:760px){ .gtl-key{display:none} }
.gtl-x{padding:12px 0 16px var(--gtl-nw);border-top:1px solid var(--line)}
@media (max-width:760px){ .gtl-x{padding-left:0} }
.gtl-a p{margin:0 0 4px;font-size:15px;font-weight:var(--fw-head);line-height:1.45}
.gtl-a p + p{font-size:13.5px;font-weight:var(--fw-label);color:var(--muted)}
.gtl-f{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 20px;margin-top:12px}
.gtl-dli{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:var(--fw-label);color:var(--muted)}
.gtl-dli .inp{font-size:18px;font-weight:var(--fw-head);color:var(--ink);min-height:44px}
.gtl-go{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:12px}
.gtl-go .ic{width:20px;height:20px}
html[data-rad="on"] .gtl-pj{border-radius:var(--rad2)}

/* New goal, round 4: questions and hints light; the answers are the big, bold part */
.np-wrap .np-qt{font-size:14px;font-weight:var(--fw-body);color:var(--muted)}
.np-wrap .np-h{font-size:12px;font-weight:var(--fw-body);color:var(--faint);margin:2px 0 10px}
.np-wrap .np-in{font-size:30px;font-weight:var(--fw-head);padding:10px 2px;letter-spacing:-.01em}
.np-wrap .np-in::placeholder{font-size:20px;font-weight:var(--fw-label)}
.np-wrap .np-date{font-size:24px;max-width:300px}
.np-wrap .chip{min-height:52px;font-size:16px;padding:0 16px;gap:8px}
.np-wrap .chip .ic{width:20px;height:20px}
.np-wrap .chip-in{height:52px;font-size:16px}
.np-wrap .crit-n{height:40px;font-size:18px}
.np-wrap .dc-c{min-height:56px;padding:10px 16px;font-size:16px;gap:10px}
.np-wrap .dc-c .tc{font-size:13px}
.np-wrap .dc-at button{min-height:56px;font-size:15px}
.np-wrap .flab{font-size:13px;font-weight:var(--fw-body);color:var(--muted)}
@media (max-width:760px){ .np-wrap .np-in{font-size:24px} .np-wrap .np-date{font-size:20px} }
/* v0.14.0 round 6: new goal as one page of numbered rows — question (light) left, answer (big) right */
.nf{display:flex;flex-direction:column}
.nf-r{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;padding:20px 0;border-top:1px solid var(--line);align-items:start}
.nf > .nf-r:first-child{border-top:0;padding-top:4px}
.nf-q{display:flex;flex-direction:column;gap:4px;padding-top:6px}
.nf-q i{font-style:normal;font-family:var(--f-num);font-size:12px;font-weight:var(--fw-label);color:var(--muted);letter-spacing:.04em}
.nf-q span{font-size:15px;font-weight:var(--fw-body);color:var(--muted);line-height:1.35}
.nf-q small{font-size:12px;font-weight:var(--fw-body);color:var(--faint);line-height:1.45}
.nf-a{min-width:0}
.nf-types{display:flex;flex-wrap:wrap;gap:8px}
.nf-ty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:104px;height:88px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;font-size:15px;font-weight:var(--fw-head);cursor:pointer;padding:0 6px;text-align:center}
.nf-ty span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nf-ty .ic{width:24px;height:24px}
.nf-ty:hover{border-color:var(--ink)}
.nf-ty[aria-pressed="true"]{background:var(--acc);color:var(--acc-ink);border-color:var(--ink)}
.nf-new{color:var(--muted)}
.nf-st{margin-top:18px}
.nf-lab{margin:0 0 8px;font-size:12.5px;font-weight:var(--fw-body);color:var(--muted)}
.nf-scs{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.nf-sc{display:inline-flex;align-items:center;gap:6px;height:48px;border:1px solid var(--ink);padding:0 4px 0 12px;background:var(--bg)}
.nf-sc i{font-style:normal;font-family:var(--f-num);font-size:12px;font-weight:var(--fw-label);color:var(--muted)}
.nf-sc input{border:0;background:transparent;font:inherit;font-size:16px;font-weight:var(--fw-head);color:var(--ink);padding:0;min-width:2em;outline:0}
.nf-sc input:focus{background:var(--acc-tint)}
.nf-sc button{width:36px;height:36px;display:grid;place-items:center;border:0;background:none;cursor:pointer;color:var(--muted);padding:0}
.nf-sc button .ic{width:16px;height:16px}
.nf-sc button:hover{color:var(--ink)}
.nf-sadd{height:48px;width:150px;border:0;border-bottom:1px solid var(--line);background:transparent;font:inherit;font-size:16px;font-weight:var(--fw-head);color:var(--ink);padding:0 4px}
.nf-sadd:focus{outline:0;border-bottom-color:var(--ink)}
.nf .np-in{margin:0}
.nf .np-qrow{display:flex;align-items:center;gap:14px}
.nf-unit{font-size:20px;font-weight:var(--fw-head);color:var(--muted)}
.nf #npExL{margin-top:18px}
.nf-due{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px 28px}
.nf-due .dc{margin:0}
.nf-due .np-date{width:260px}
.nf-go{position:sticky;bottom:calc(-1 * var(--sheet-pb,0px));z-index:3;background:var(--bg);padding:16px 0 calc(4px + var(--sheet-pb,0px));margin-bottom:calc(-1 * var(--sheet-pb,0px));border-top:1px solid var(--line)}   /* 2026-11-21 (Amuii: 「shouldnt have transparent background」): stuck to the sheet's own bottom edge, over its padding — nothing shows under it */
.nf-go .np-go{width:100%;min-height:60px;font-size:18px}
@media (max-width:760px){
  .nf-r{grid-template-columns:1fr;gap:10px;padding:16px 0}
  .nf-q{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding-top:0}
  .nf-q small{flex-basis:100%}
  .nf-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .nf-ty{width:auto;height:76px;font-size:14px}
  .nf-due .np-date{width:100%}
}
html[data-rad="on"] :is(.nf-ty,.nf-sc){border-radius:var(--rad)}
@media (max-width:760px){ .np-wrap .np-in::placeholder{font-size:15px} }
/* v0.14.0 round 7: plan a goal on the timeline — one row per item, bars placed and dragged in place */
.gtl-plan{border-top:1px solid var(--line);padding:12px 0 8px}
.gtl-ctl{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 20px;padding:0 0 12px var(--gtl-nw)}
.gtl-fl{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:var(--fw-body);color:var(--muted)}
.gtl-fl small{font-size:11.5px;color:var(--faint)}
.gtl-fl .inp{font-size:18px;font-weight:var(--fw-head);color:var(--ink);min-height:44px}
.gtl-per{display:inline-flex;align-items:baseline;gap:6px}
.gtl-per .inp{width:72px;text-align:center}
.gtl-per .inp.need{border-bottom-color:var(--red)}
.gtl-per em{font-style:normal;font-size:15px;font-weight:var(--fw-head);color:var(--ink)}
.gtl-back{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.gtl-back .ic{width:20px;height:20px}
.gtl-close{min-height:44px;margin-left:auto}
.gtl-warn{margin:0 0 12px var(--gtl-nw);font-size:13.5px;font-weight:var(--fw-head);color:var(--red)}
.gtl-fix{font-weight:var(--fw-head);color:var(--ink);text-decoration:underline;min-height:32px}
.gtl-items{position:relative}
.gtl-ir{min-height:36px;border-top:1px solid var(--line)}
.gtl-in{display:flex;align-items:baseline;gap:6px;min-width:0;padding-right:8px;overflow:hidden}
.gtl-in b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:14px;font-variant-numeric:tabular-nums}
.gtl-in span{font-size:12.5px;font-weight:var(--fw-head);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.gtl-in small{margin-left:auto;font-size:11px;font-weight:var(--fw-label);color:var(--muted);white-space:nowrap}
.gtl-in small.live{color:var(--ink);background:var(--acc)}
.gtl-ir.unset .gtl-in{opacity:.5}
.gtl-trk{height:36px;cursor:copy;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.gtl-ib{position:absolute;top:8px;bottom:8px;min-width:6px;background:var(--tile);border:2px solid var(--ink);cursor:grab}
.gtl-ib.done{background:var(--ink)}
.gtl-ib.late{border-color:var(--red)}
.gtl-ib.live{background:var(--acc);cursor:grabbing}
.gtl-hd{position:absolute;top:-2px;bottom:-2px;width:12px;cursor:ew-resize}
.gtl-hd.l{left:-7px} .gtl-hd.r{right:-7px}
.gtl-dlv{position:absolute;top:0;bottom:0;width:0;border-left:2px solid var(--ink);pointer-events:none}
@media (max-width:760px){
  .gtl-ctl,.gtl-warn{padding-left:0;margin-left:0}
  .gtl-in{flex-wrap:wrap;align-content:center;gap:0 4px}
  .gtl-in small{margin-left:0;flex-basis:100%;font-size:10px}
  .gtl-close{margin-left:0}
}
.gtl-ctl,.gtl-warn{position:relative;z-index:2;background:var(--tile)}

/* ---------- v0.14.1 ---------- */
/* Update notes: new features by module, then fixes, then small changes (quieter). */
.nw-k{margin:12px 0 4px;font-size:11px;font-weight:var(--fw-head);letter-spacing:.08em;color:var(--muted)}
.nw-v > .nw-k:first-of-type{margin-top:4px}
.nw-m{margin:6px 0 4px;font-size:15px;font-weight:var(--fw-head)}
.nw ul.nw-s{font-size:13px;color:var(--muted)}
.nw-sheet .nw ul.nw-s{font-size:14px}
/* Remove a saved own colour: icon only, beside the swatches, shown while one is selected. */
.sw-rm{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:34px;border:0;background:none;color:var(--red);cursor:pointer;padding:0}
.sw-rm[hidden]{display:none}
.sw-rm svg{width:20px;height:20px}

/* ---------- v0.14.2 ---------- */
/* Feedback sheet: update notes on the left, 01 vote + 02 write on the right. Phones: notes first, then the form. */
.fb-sheet .sheet.wide{max-width:1040px}
.fbx{display:grid;gap:24px}
@media (min-width:900px){
  .fbx{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:32px;align-items:start}
  .fbx-l{position:sticky;top:0;padding-right:32px;border-right:1px solid var(--line)}
}
@media (max-width:899px){ .fbx-l{padding-bottom:20px;border-bottom:1px solid var(--line)} }
.fbx-q{display:flex;align-items:baseline;gap:10px;margin:0 0 6px;font-size:17px;font-weight:var(--fw-head)}
.fbx-q:not(:first-child){margin-top:28px}
.fbx-n{font-family:var(--f-num);font-size:13px;font-weight:var(--fw-head);color:var(--muted)}
.fbx-note{margin:0 0 12px}
/* Pager: ‹ version ›, one release at a time */
.nw-pg{display:flex;align-items:center;gap:4px;margin:0 0 4px}
.nw-pg .nw-h{flex:1;margin:0;justify-content:center}
.nw-pb{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;background:none;color:var(--ink);cursor:pointer;padding:0}
.nw-pb:disabled{color:var(--line);cursor:default}
.nw-pb svg{width:20px;height:20px}
.nw-sheet .nw-pg .nw-h{display:flex}
/* Vote rows: name + what it gives you, a bar behind, the count on the right; picked rows turn solid */
.vt{display:flex;flex-direction:column}
.vt-r{position:relative;display:grid;grid-template-columns:24px 1fr auto;gap:10px;align-items:center;width:100%;min-height:56px;padding:10px 12px;margin-top:-1px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;text-align:left;cursor:pointer;overflow:hidden}
.vt-r > *{position:relative;z-index:1}
.vt-bar{position:absolute!important;z-index:0!important;left:0;top:0;bottom:0;background:var(--soft);transition:width .3s ease}
.vt-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.vt-t b{font-size:15px;font-weight:var(--fw-head)}
.vt-t span{font-size:13px;line-height:1.45;color:var(--muted)}
.vt-n{font-family:var(--f-num);font-size:18px;font-weight:var(--fw-head);font-variant-numeric:tabular-nums;min-width:2ch;text-align:right}
.vt-ck{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:2px solid var(--ink)}
.vt-ck svg{width:16px;height:16px;opacity:0}
.vt-r[aria-pressed="true"] .vt-ck{background:var(--acc);border-color:var(--ink)}
.vt-r[aria-pressed="true"] .vt-ck svg{opacity:1;color:var(--acc-ink)}
.vt-r[aria-pressed="true"]{border-color:var(--ink);z-index:2}
.vt-hl .vt-n{background:var(--acc);color:var(--acc-ink)}
@media (prefers-reduced-motion:reduce){ .vt-bar{transition:none} }
/* v0.14.2: Appearance — remove a saved own colour (icon only, beside the swatches) */
.lk-rm{display:grid;place-items:center;border:0;background:none;color:var(--red);cursor:pointer;padding:0;min-height:36px;aspect-ratio:1}
.lk-rm svg{width:20px;height:20px}

/* ---------- v0.14.3 ---------- */
/* iPhone Safari zooms the page in when a text field under 16px gets focus, and the page stays zoomed afterwards.
   On touch screens every small field uses 16px (--fs-in); fields already larger keep their size. Desktop unchanged.
   The page stays pinch-zoomable: do not add maximum-scale or user-scalable=no to the viewport. */
@media (pointer:coarse){
  :root{--fs-in:16px}
  input,textarea,select{font-size:16px} /* element-only selector on purpose: any class rule (larger fields) still wins */
}
/* Feedback: how much a bug gets in the way (bug reports only). */
.fb-sev{margin-top:10px}
.fb-sev[hidden]{display:none}

/* v0.14.4: sync status. Desktop: the full line as before. Phone / narrow desktop: only "not synced" / "offline", as a chip to tap and retry. */
.hdr .sync{cursor:pointer;background:none;border:0;padding:0}
.hdr .sync .sync-s{display:none}
@media (max-width:1180px){
  .hdr .sync{display:none}
  .hdr .sync[data-state="err"],.hdr .sync[data-state="offline"]{display:inline-flex;align-items:center;min-height:44px;max-width:none}
  .hdr .sync[data-state="err"] .sync-l,.hdr .sync[data-state="offline"] .sync-l{display:none}
  .hdr .sync[data-state="err"] .sync-s,.hdr .sync[data-state="offline"] .sync-s{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:var(--fw-head);color:var(--ink);border:1px solid var(--ink);padding:4px 8px}
  .hdr .sync .sync-s .ic{width:20px;height:20px}
}

/* v0.14.4: after 開工 (flexible days): when the schedule ends and whether bedtime fits. */
.tl-fit{margin:var(--sp-2) 0 0;font-size:13px;color:var(--muted)}
.tl-fit.over{color:var(--ink);font-weight:var(--fw-head)}
/* v0.14.4: days that run past midnight. */
.t-nx{font-style:normal;font-size:11px;font-weight:var(--fw-head);margin-right:4px}
.ed-midrow{height:auto!important}
.ed-mid,.tl-mid{display:flex;align-items:center;gap:var(--sp-2);font-size:12px;font-weight:var(--fw-head);color:var(--muted);padding:var(--sp-1) 0}
.ed-mid::before,.ed-mid::after,.tl-mid::before,.tl-mid::after{content:"";flex:1;border-top:1px solid var(--ink)}
.ed-mid{flex:1}
.tm-lab{display:block;font-size:11px;color:var(--muted);font-weight:var(--fw-label)}
.tl-carry{border:1px solid var(--ink);padding:var(--sp-2) var(--sp-2);margin-bottom:var(--sp-3)}
.tl-carry .tl-lab{margin:0 0 var(--sp-1);display:block}
/* v0.15.0 專注創作: full screen, square, no shadows; the words are the big thing, the time stays small. */
body.fx-on{overflow:hidden}
.fx{position:fixed;inset:0;z-index:var(--z-full);background:var(--bg);color:var(--ink);display:grid;grid-template-rows:auto 1fr auto auto;padding:max(16px,env(safe-area-inset-top)) clamp(16px,4vw,48px) max(16px,env(safe-area-inset-bottom))}
.fx-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:2px solid var(--ink);padding-bottom:12px}
.fx-k{display:flex;align-items:center;gap:8px;min-width:0}
.fx-k .ic{width:22px;height:22px}
.fx-k b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:20px;letter-spacing:-.02em}
.fx-k small{font-size:12px;color:var(--muted);font-weight:var(--fw-label)}
.fx-tools{margin-left:auto;display:flex;align-items:center;gap:8px}
.fx-seg{display:flex;border:1px solid var(--ink)}
.fx-seg button{border:0;background:var(--bg);color:var(--ink);min-height:44px;padding:0 14px;font-weight:var(--fw-head);font-size:13px;cursor:pointer}
.fx-seg button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.fx-ib{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:44px;min-height:44px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font-weight:var(--fw-head);font-size:13px;cursor:pointer;padding:0 10px}
.fx-ib .ic{width:20px;height:20px}
.fx-ib[aria-pressed="false"]{color:var(--muted)}
.fx-main{display:flex;flex-direction:column;justify-content:center;min-height:0;max-width:1100px;padding:24px 0}
.fx-lab{margin:0 0 14px;font-size:13px;font-weight:var(--fw-head);letter-spacing:.06em;color:var(--muted)}
.fx-line{margin:0;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(34px,6.4vw,84px);line-height:1.08;letter-spacing:-.03em;animation:fxIn .6s ease both}
.fx-line.long{font-size:clamp(26px,4.4vw,56px)}
.fx-line.big{font-size:clamp(44px,8vw,110px)}
.fx-note{margin:16px 0 0;font-size:15px;font-weight:var(--fw-label)}
@keyframes fxIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.fx-line{animation:none}}
.fx-pr{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:var(--acc);color:var(--acc-ink);padding:14px 16px;margin-bottom:12px}
.fx-pr .ic{width:28px;height:28px;flex:none}
.fx-pr p{margin:0;flex:1 1 220px;font-weight:var(--fw-head);font-size:15px}
.fx-prb{display:flex;gap:8px;flex-wrap:wrap}
.fx-foot{border-top:1px solid var(--ink);padding-top:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.fx-prog{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0}
.fx-bar{display:block;height:8px;background:var(--soft)}
.fx-bar i{display:block;height:100%;background:var(--ink);transition:width .8s linear}
.fx-time{font-family:var(--f-num);font-weight:var(--fw-head);font-size:16px;font-variant-numeric:tabular-nums}
.fx-sub{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.fx-sub:empty{display:none}
.fx-btns{display:flex;gap:8px}
.fx-btns .btn{min-height:52px;padding:0 20px}
@media (max-width:640px){
  .fx-k small,.fx-min span{display:none}
  .fx-foot{grid-template-columns:1fr}
  .fx-btns .btn{flex:1}
}
/* Today: the big button while timing, and ▶ / progress on creating rows */
.start-big.on .ic{animation:fxBeat 1.6s ease-in-out infinite}
@keyframes fxBeat{50%{transform:scale(.86)}}
@media (prefers-reduced-motion:reduce){.start-big.on .ic{animation:none}}
.tl-fq{display:inline-flex;align-items:center;gap:var(--sp-2);margin-left:auto;padding-left:var(--sp-2)}
.tl-fqp{display:block;width:44px;height:6px;background:var(--soft)}
.tl-fqp i{display:block;height:100%;background:var(--ink)}
.tl-fq small{font-size:11px;font-weight:var(--fw-head);font-variant-numeric:tabular-nums}
.tl-fqb{display:inline-grid;place-items:center;width:34px;height:34px;border:1px solid var(--ink);background:var(--bg);color:var(--ink);cursor:pointer;padding:0}
.tl-fqb .ic{width:20px;height:20px}
.tl-fqb.on{background:var(--ink);color:var(--bg)}
.tl-r2:has(.tl-fq){grid-template-columns:22px var(--tmw,62px) 18px minmax(0,1fr) auto auto}
.tl-r2 .tl-fq{margin-left:0;padding-left:0}
/* Narrow columns (the Today rail): the time and the ▶ only; the length moves aside while a block is being timed. */
.tl-r2:has(.tl-fq) > .tl-d{display:none}
.tl-r2:has(.tl-fq){grid-template-columns:22px var(--tmw,62px) 18px minmax(0,1fr) auto}
.t-rail .tl-fqp{display:none}
/* ---------- v0.15.1 專注畫面改版：主色底、一個超大數字、兩個大掣；收起變置頂條 ---------- */
.daybar:not(:empty){margin-bottom:24px}
.fx{background:var(--acc);color:var(--acc-ink);display:flex;flex-direction:column;gap:0;overflow-y:auto}
.fx .ic{stroke:currentColor}
.fx-top{display:flex;align-items:center;gap:12px;border-bottom:2px solid var(--acc-ink);padding-bottom:12px}
.fx-modeb{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 4px;border:0;background:none;color:inherit;font:inherit;font-weight:var(--fw-head);font-size:16px;cursor:pointer}
.fx-modeb .ic{width:20px;height:20px}
.fx-modeb[aria-expanded="true"] .ic:last-child{transform:rotate(180deg)}
.fx-tools{margin-left:auto;display:flex;align-items:center;gap:8px}
.fx .fx-ib{border:0;background:none;color:inherit;font-size:15px}
.fx .fx-ib[aria-pressed="false"]{opacity:.55;color:inherit}
.fx-modes{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0;border-bottom:2px solid var(--acc-ink)}
.fx-opt{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;border:2px solid var(--acc-ink);background:transparent;color:inherit;font:inherit;padding:16px;cursor:pointer;min-height:44px}
.fx-optp{padding:0;cursor:default}
.fx-optm{display:flex;flex-direction:column;gap:4px;text-align:left;border:0;background:none;color:inherit;font:inherit;padding:16px;cursor:pointer;width:100%}
.fx-opt b,.fx-optm b{font-size:18px;font-weight:var(--fw-head)}
.fx-opt span,.fx-optm span{font-size:14px;font-weight:var(--fw-label);line-height:1.45}
.fx-opt[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--acc-ink)}   /* 2026-11-21: the chosen mode has a double frame — no black block (no inverted colours) */
.fx-lens{display:flex;flex-direction:column;width:100%;border-top:1px solid currentColor}
.fx-lens button{min-height:44px;border:0;border-bottom:1px solid currentColor;background:none;color:inherit;font:inherit;font-size:14px;font-weight:var(--fw-label);text-align:left;padding:0 16px;cursor:pointer}
.fx-lens button:last-child{border-bottom:0}
.fx-lens button[aria-pressed="true"]{font-weight:var(--fw-head);text-decoration:underline;text-underline-offset:4px}
.fx-main{flex:1 0 auto;display:flex;flex-direction:column;justify-content:center;gap:0;max-width:1100px;padding:24px 0}
.fx-goal{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 clamp(20px,4vh,40px)}
.fx-goal small{flex-basis:100%;font-size:13px;font-weight:var(--fw-head);letter-spacing:.06em;opacity:.7}
.fx-goal b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(24px,3.4vw,36px);letter-spacing:-.02em;line-height:1.15}
.fx-goal span{font-size:clamp(16px,2vw,20px);font-weight:var(--fw-head)}
.fx-goal span::before{content:"· "}
.fx-num{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 16px;margin:0}
.fx-num b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(84px,17vw,220px);line-height:.9;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.fx-num span{font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(22px,3vw,34px)}
.fx-sub{margin:12px 0 0;font-size:16px;font-weight:var(--fw-head);min-height:1.4em}
.fx-sub:empty{visibility:hidden}
.fx-aff{margin:clamp(20px,4vh,40px) 0 0;max-width:34em;font-size:clamp(18px,2.4vw,26px);font-weight:var(--fw-head);line-height:1.45;animation:fxIn .6s ease both}
.fx .fx-pr{background:var(--bg);color:var(--ink);margin-bottom:12px}
.fx-btns{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:12px}
.fx-btns.one{grid-template-columns:1fr}
.fx-b{display:flex;align-items:center;justify-content:center;gap:10px;min-height:72px;padding:0 16px;font:inherit;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(20px,2.6vw,26px);cursor:pointer;border:2px solid var(--acc-ink)}
.fx-b .ic{width:26px;height:26px}
.fx-b1{background:var(--acc-ink);color:var(--acc)}
.fx-b2{background:transparent;color:var(--acc-ink)}
@media (max-width:600px){ .fx-modes{grid-template-columns:1fr} .fx-b{min-height:64px} }
/* 置頂條: sits right under the header on every tab while a focus session is on but the screen is collapsed. */
.fxbar{position:sticky;top:calc(var(--hdr-h,68px) + env(safe-area-inset-top,0px));z-index:14;display:flex;align-items:stretch;gap:0;background:var(--acc);color:var(--acc-ink);border:2px solid var(--acc-ink);margin:0 0 24px}
/* The bar is the one way back while collapsed: Today's big start button steps aside. */
body.fxbar-on #dayBar{display:none}
.fxbar-m{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:52px;padding:0 14px;border:0;background:none;color:inherit;font:inherit;font-weight:var(--fw-head);font-size:15px;text-align:left;cursor:pointer}
.fxbar-m > span{white-space:nowrap;font-variant-numeric:tabular-nums}
.fxbar-a{overflow:hidden;text-overflow:ellipsis;min-width:0}
.fxbar-s::after,.fxbar-a::after{content:" ·"}
.fxbar-t{margin-left:auto}
.fxbar-m b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:18px}
.fxbar .dot-live{background:var(--acc-ink)}
.fxbar .dot-live.off{animation:none;opacity:.4}
.fxbar-b{display:inline-flex;align-items:center;gap:6px;min-height:52px;min-width:44px;padding:0 14px;border:0;border-left:2px solid var(--acc-ink);background:none;color:inherit;font:inherit;font-weight:var(--fw-head);font-size:15px;cursor:pointer}
.fxbar-b .ic{width:20px;height:20px}
@media (max-width:600px){ .fxbar-m{font-size:13px;padding:0 10px;gap:6px} .fxbar-a{display:none} .fxbar-s::after{content:""} .fxbar-b{padding:0 10px;font-size:14px} }
/* Vote list: a shipped feature sits last, greyed, with a tag instead of a count. */
.vt-done{cursor:default;opacity:.55}
.vt-done .vt-ck{background:var(--soft);border-color:var(--muted)}
.vt-done .vt-ck svg{opacity:1}
.vt-tag{font-size:12px;font-weight:var(--fw-head);border:1px solid currentColor;padding:2px 8px;white-space:nowrap}
/* v0.15.1 round 2: start button inside the 今日創作 card; finish card; the screen sits under the header */
.hc2-go{display:flex;align-items:center;gap:14px;width:calc(100% + 32px);margin:0 -16px;border:0;border-top:2px solid var(--acc-ink);background:var(--acc);color:var(--acc-ink);padding:14px 16px;cursor:pointer;text-align:left;font:inherit}
.hc2-go .ic{width:30px;height:30px;fill:currentColor;flex:none}
.hc2-go b{display:block;font-family:var(--f-num);font-weight:var(--fw-head);font-size:24px;letter-spacing:-.02em;line-height:1.1}
.hc2-go small{display:block;font-size:13px;font-weight:var(--fw-label);opacity:.8;margin-top:2px}
.hc2-go:hover{filter:brightness(.97)}
.hc2:has(.hc2-go) .hc-edge{margin-top:0}
.fx{bottom:0;height:auto}
.fx-num span .ic{width:.9em;height:.9em;vertical-align:-.1em}
.fx-fin{justify-content:center}
.fx-fin .fx-num b{animation:fxIn .6s ease both}
.fx{padding-top:16px}
/* v0.15.1 schedule editor: plain name in a block; the selected block's actions float at the bottom */
.ebn{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;font-weight:var(--fw-head);font-size:15px;padding:6px 0}
.ebn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.ebn .ic{width:18px;height:18px;flex:none}
.eb.sel{outline:3px solid var(--ink);outline-offset:-3px}
.edbar{position:fixed;left:0;right:0;bottom:0;z-index:var(--z-bar);display:flex;align-items:center;gap:8px;background:var(--bg);border-top:2px solid var(--ink);padding:12px max(16px,env(safe-area-inset-left,0px)) max(12px,env(safe-area-inset-bottom,0px));animation:edbarIn .18s ease both}
.edbar-del{display:inline-flex;align-items:center;gap:6px;min-height:52px;padding:0 4px;border:0;background:none;color:var(--red,#d6342c);font:inherit;font-weight:var(--fw-head);font-size:15px;cursor:pointer;margin-right:auto}
.edbar-del .ic{width:20px;height:20px}
.edbar-b{min-height:52px;font-size:15px;margin-left:24px}
.edbar-b + .edbar-b{margin-left:0}
.edbar-go{flex:1 1 0;min-width:0;justify-content:center}   /* the primary fills what the row leaves (every action bar: editor.js actGo) */
@media (min-width:700px){ .edbar{left:50%;right:auto;transform:translateX(-50%);width:min(560px,100%);border:2px solid var(--ink);bottom:16px} }
@keyframes edbarIn{from{transform:translateY(100%)}}
@media (min-width:700px){ @keyframes edbarIn{from{opacity:0}} }
@media (prefers-reduced-motion:reduce){ .edbar{animation:none} }
/* 動作排 — one component for every action bar (editor.js act*). 2026-11-23 Amuii: 「取消同 delete 太近」「唔可以疊兩條」:
   line 1 (only while something is selected): what is selected · ✕ 取消選擇 on the right (actX);
   line 2: 🗑 alone on the left, 24px clear of the next button · secondaries (icon + word, no frame) · the primary fills the rest.
   One bar on screen: a selected block's bar takes the place of its editor's bar (.tpbar.is-off), never on top of it. */
.edbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
.edbar[hidden],.tpbar.is-off{display:none}
.edbar-sel{flex:1 1 100%;display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2);min-width:0}
.edbar-st{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:var(--fw-head)}
.edbar-sel .edbar-xs{flex-direction:row;gap:var(--sp-1);min-height:var(--h-tap);margin-left:auto}
.edbar-del-i + *{margin-left:var(--sp-4)}
.edbar-blk{right:auto;transform:none}   /* placed by editor.js placeBar: the window's bottom edge, its left and width */
.edbar-b{margin-left:0;white-space:nowrap;padding:0 14px}
/* v0.15.1: focus mode covers the whole screen, header included (Amuii: hide the time/date bar while focusing). */
.fx{top:0;padding-top:max(16px,env(safe-area-inset-top,0px))}
/* v0.15.1 phones: the activity picker takes the screen above the keyboard */
.cbx.cbx-full{position:fixed;left:0;right:0;top:0;width:auto;height:100dvh;z-index:var(--z-combo);border:0;display:flex;flex-direction:column;padding:max(12px,env(safe-area-inset-top,0px)) 16px 0;box-shadow:none}
.cbx-full .cbx-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-bottom:8px}
.cbx-full .cbx-top b{font-size:16px;font-weight:var(--fw-head);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cbx-full .cbx-top .lk{min-height:44px;font-weight:var(--fw-head)}
.cbx-full .cbx-in{font-size:17px;min-height:52px}
.cbx-full .cbx-l{flex:1 1 auto;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px}
.cbx-full .cbx-o{min-height:52px}
/* v0.15.2: admin test mode bar (outside #root, so a rebuild never removes it) */
.sbx{display:flex;align-items:center;gap:4px 12px;flex-wrap:wrap;min-height:44px;margin:0 calc(-1 * max(16px,env(safe-area-inset-left,0px)));padding:0 max(16px,env(safe-area-inset-left,0px));padding-top:env(safe-area-inset-top,0px);background:var(--ink);color:var(--bg);font-size:13px;font-weight:var(--fw-head)}
.sbx-l{flex:1 1 auto}
.sbx-seg{display:inline-flex;border:1px solid var(--bg)}
.sbx-seg button{min-height:32px;padding:0 12px;border:0;background:none;color:var(--bg);font:inherit;cursor:pointer}
.sbx-seg button[aria-checked="true"]{background:var(--acc);color:var(--acc-ink)}
.sbx-b{min-height:44px;padding:0 4px;border:0;background:none;color:var(--bg);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* v0.15.2: focus progress bars; pinned bar's 「今天先到這裡」 in black */
/* same look as the 今日創作 card's edge (.hc-edge): 8px, no border, ink fill on a 14% ink track */
.fx-prog{display:block;height:8px;background:color-mix(in srgb,currentColor 14%,transparent);margin:16px 0 0;width:100%}
.fx-prog i{display:block;height:100%;background:currentColor;transition:width .6s linear}
.fxbar-m{position:relative}
.fxbar-p{position:absolute;left:0;right:0;bottom:0;height:8px;background:color-mix(in srgb,currentColor 14%,transparent)}
.fxbar-p i{display:block;height:100%;background:currentColor;transition:width .6s linear}
.fxbar-m{padding-bottom:8px}
/* same as the focus screen's main button (.fx-b1) */
.fxbar-b{background:var(--acc-ink);color:var(--acc);border-left-color:var(--acc-ink);font-family:var(--f-num);font-weight:var(--fw-head)}
@media (prefers-reduced-motion:reduce){ .fx-prog i,.fxbar-p i{transition:none} }

/* v0.15.4 新手引導：只限新用戶，排時間表 → 剔一格 → 開始創作 */
.gd-on{outline:3px solid var(--ink);outline-offset:3px}
.gd-tip{position:fixed;z-index:20;background:var(--acc);color:var(--acc-ink);border:2px solid var(--acc-ink);padding:12px 14px 12px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.gd-tip p{margin:0;font-size:17px;font-weight:var(--fw-head);line-height:1.4}
.gd-tip .gd-skip{flex:none;min-height:44px;color:var(--acc-ink);text-decoration-color:currentColor;font-size:13px}
.gd-foot{position:sticky;bottom:0;background:var(--tile);display:flex;align-items:center;gap:24px;margin-top:18px;padding-top:12px}
.gd-foot .gd-skip{flex:none;min-height:44px;font-size:14px}
.gd-foot .tp-save{flex:1 1 auto;min-height:56px;font-size:17px;font-weight:var(--fw-head)}
@media (prefers-reduced-motion:reduce){ .gd-on{outline-offset:2px} }

/* v0.15.4 目標格仔：目標卡窄過 800px（例如電腦開了設定）就用手機排法：大圖在上、縮圖一行左右掃、格仔在下；
   中等闊度位不夠時格仔自己換行。不再重疊。2026-11-23: 800 = the page's two-column step (pgl, cnpg), so a goal never sits half-way. */
.ppanel,.prow2{container-type:inline-size}
@media (min-width:1024px){ .wa > .wa-g{flex:1 1 auto} }
@container (max-width:799px){
  .wa > .wa-g,.wa > .gal{order:0}
  .wa > .gal{flex:1 1 100%;max-width:none}
  .wa > .wa-g{flex:1 1 100%}
  .gal-big,.gal.single .gal-big{aspect-ratio:4/3}
  .gal-big:not(.has){aspect-ratio:auto;height:120px}
  .gal-ths{display:flex;gap:var(--sp-2);overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;padding-bottom:var(--sp-1)}
  .gal-ths::-webkit-scrollbar{display:none}
  .gal-th{flex:none;width:64px;aspect-ratio:1/1;scroll-snap-align:start}
  .gal-n{font-size:14px}
  @media (hover:hover){
    .gal-arr{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:30px;height:30px;border:1px solid var(--ink);background:var(--bg);cursor:pointer;padding:0;color:var(--ink)}
    .gal-arr.l{left:-6px} .gal-arr.r{right:-6px}
    .gal-arr .ic{width:16px;height:16px}
    .gal-ths{cursor:grab}
    .gal-ths.dragging{cursor:grabbing;scroll-snap-type:none}
  }
}

/* v0.15.4 設定：一張清單（只用底線分隔），設定欄 320px；月曆星期表頭可撳 */
@media (min-width:1024px){ body.set-open .app-b{grid-template-columns:minmax(0,1fr) 320px} }
body.set-open .sb-h .me-h,.sb-h .me-h{font-size:24px}
.setbar .me-g{margin:20px 0 4px}
.setbar .me-stack{gap:0;border-top:1px solid var(--line)}
.setbar .mefold{border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important}
.setbar .mefold summary{min-height:48px;padding:0 2px;gap:10px}
.setbar .mf-t{font-size:15px;font-weight:var(--fw-head)}
.setbar .fold-s{font-size:12px}
.setbar .fold-b{padding:2px 2px 20px}
.c2wb{display:flex;align-items:center;justify-content:center;gap:2px;min-height:44px;border:0;background:transparent;font:inherit;font-size:12px;font-weight:var(--fw-head);color:var(--ink);cursor:pointer;padding:0}
.c2wb .ic{width:12px;height:12px;color:var(--muted)}
.c2wb:hover{background:var(--soft)}
.tpq-b[aria-pressed="true"],.tpq .btn[aria-pressed="true"]{border-color:var(--ink);background:var(--acc-tint)}
.setbar .atab .at-h,.setbar .atab .at-r{grid-template-columns:32px minmax(0,1fr) 44px 44px 36px!important;gap:6px!important}
.setbar .atab .at-h{font-size:11px}
@media (min-width:1024px){ .setbar{overflow-x:hidden} }
.setbar .atab .at-h,.setbar .atab .at-r{grid-template-columns:32px minmax(0,1fr) 44px 44px 40px!important}
.setbar .atab .at-r > button:last-child{width:40px;min-width:0;padding:0;justify-self:end}

/* v0.15.4 月曆：撳日子／星期表頭 → 範本下拉選單 */
.c2menu{position:fixed;z-index:25;background:var(--bg);border:1.5px solid var(--ink);padding:4px;display:flex;flex-direction:column}
.c2m-h{margin:0;padding:8px 10px 6px;font-size:12px;font-weight:var(--fw-head);color:var(--muted)}
.c2menu button{display:grid;grid-template-columns:44px minmax(0,1fr) 18px;align-items:center;gap:10px;min-height:44px;padding:0 10px;border:0;background:transparent;font:inherit;font-size:14px;font-weight:var(--fw-head);color:var(--ink);text-align:left;cursor:pointer}
.c2menu button:hover{background:var(--soft)}
.c2menu button[aria-checked="true"]{background:var(--acc-tint)}
.c2menu .c2bar{width:44px}
.c2menu .ic{width:18px;height:18px}
.c2m-none{display:block;width:44px;height:6px;background:var(--line)}

/* v0.15.4 慶祝音效（外觀 04） */
.ch-own{display:flex;align-items:center;gap:24px;margin-top:10px}
.ch-own .ch-up{flex:1 1 auto;min-height:44px;justify-content:center}
.ch-own .ch-rm{color:var(--red);text-decoration:none;font-size:14px;font-weight:var(--fw-head);min-height:44px}
#sCheer{flex-wrap:wrap}

/* v0.15.4 調整今日／明日：頂部「範本：平日 ▾」 */
.adj-tp{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;margin:0 0 10px;border:1.5px solid var(--ink);background:var(--bg);font:inherit;font-size:15px;color:var(--ink);cursor:pointer}
.adj-tp span{color:var(--muted);font-weight:var(--fw-label)}
.adj-tp b{font-weight:var(--fw-head)}
.adj-tp .ic{width:16px;height:16px}
.c2menu{z-index:35}

/* v0.15.4 電腦版用盡瀏覽器闊度：取消 1440px 上限。左欄（今日卡、時間表）同設定欄維持固定闊度，多出嘅位全部畀中間欄 */
.app{max-width:none!important}


/* ---------- v0.15.6 載入標誌（細版）：地圖載入時置中顯示，同開場畫面同一個 3×3 標誌 ---------- */
.ldm{--s:40px;--l:calc(var(--s) / 12);position:absolute;left:50%;top:50%;width:var(--s);height:var(--s);margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2);z-index:3;
  display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);color:var(--ink);pointer-events:none}
.ldm i{display:block;box-sizing:border-box;position:relative}
.ldm i:nth-child(3n+1),.ldm i:nth-child(3n+2){border-right:var(--l) solid currentColor}
.ldm i:nth-child(-n+6){border-bottom:var(--l) solid currentColor}
.ldm i:first-child::after{content:"";position:absolute;inset:0;background:var(--acc);animation:ldmPulse 1s ease-in-out infinite alternate}
@keyframes ldmPulse{from{opacity:1}to{opacity:.3}}

/* ---------- v0.16.0 今日頁精簡 ---------- */
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.tl-head{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:nowrap}
.tl-head .tl-donen{display:inline-flex;align-items:center;gap:var(--sp-1);min-height:44px;padding:0;font-size:13px;font-weight:var(--fw-label);color:var(--muted);border:0;background:none;cursor:pointer}
.tl-head .tl-donen .ic{width:16px;height:16px;transition:transform .2s}
.tl-head .tl-donen[aria-expanded="true"] .ic{transform:rotate(180deg)}
.tl-head .tl-adj{margin-left:auto;display:inline-flex;align-items:center;gap:var(--sp-2);min-height:44px;padding:0;font-size:14px;font-weight:var(--fw-head);color:var(--ink)}
.tl-head .tl-adj .ic{width:20px;height:20px}
.tl-r2.tl-out{transition:opacity .38s ease,transform .38s ease;opacity:0;transform:translateX(12px)}
@media (prefers-reduced-motion:reduce){.tl-r2.tl-out{transition:none}}

/* ---------- v0.16.0 新手：只記創作時間（24 格）---------- */
.hrs{display:flex;flex-direction:column;gap:8px;margin:8px 0 4px}
.hrs-r{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:10px}
.hrs-l{font-size:13px;font-weight:var(--fw-head);color:var(--muted)}
.hrs-c{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
.hrs-b{min-height:44px;border:1.5px solid var(--line);background:var(--bg);color:var(--ink);font-family:var(--f-num);font-weight:var(--fw-head);font-size:15px;cursor:pointer;padding:0}
.hrs-b[aria-pressed="true"]{background:var(--acc);border-color:var(--acc-ink);color:var(--acc-ink)}
.hrs-top{display:flex;align-items:baseline;gap:10px;margin:4px 0 8px}
.hrs-big{font-family:var(--f-num);font-size:64px;line-height:1;font-weight:var(--fw-head);letter-spacing:-.03em}
.hrs-lab{font-size:14px;font-weight:var(--fw-head);color:var(--muted)}
.hrs-c{touch-action:none;user-select:none;-webkit-user-select:none}
.hrs-b.anchor{outline:2px solid var(--ink);outline-offset:-2px}
.hrs-free{margin:10px 0 0;min-height:44px;font-weight:var(--fw-head)}
.hrs-free[aria-pressed="true"]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
@media (max-width:420px){.hrs-r{grid-template-columns:1fr;gap:4px}}

/* ---------- v0.16.0 練習（目標類型）、作品篩選 ---------- */
.np-days{display:inline-flex;align-items:center;gap:8px}
.np-days[hidden]{display:none}
.wk-filter{max-width:360px;margin:0 0 20px}
.wk-filter button{min-height:40px;font-size:14px}
.nf-r[hidden]{display:none!important}
/* v0.16.0 時間表頂左邊標籤；同時進行嘅兩格：左邊一格同其他行對齊（剔格、時間同一欄，名稱由圖示位開始） */
.tl-head .tl-lab2{font-size:13px;font-weight:var(--fw-label);color:var(--muted)}
.tl-pair .tl-r2{grid-template-columns:22px var(--tmw,62px) minmax(0,1fr) auto;gap:var(--sp-2);padding:0 var(--sp-2)}
.tl-pair .tl-r2.side{grid-template-columns:22px minmax(0,1fr) auto}
.pe-one .pe-cols{grid-template-columns:minmax(0,1fr)!important}
.tl-head .tl-adj{margin-left:auto!important}
#npPre[hidden]{display:none}
.np-days{gap:12px}
.np-days{margin-left:20px}
@media (max-width:600px){.np-days{margin-left:0}}
.np-q .np-v{min-width:64px;text-align:center;font-family:var(--f-num);font-size:24px;font-weight:var(--fw-head)}
/* v0.17.0 batch check-in: header stage names are buttons; picking rows for one stage */
button.vg-st{border:0;background:none;padding:var(--sp-1) 0;color:inherit;font-family:var(--f-body);cursor:pointer;min-height:44px;justify-content:flex-end}
button.vg-st:hover b{text-decoration:underline}
button.vg-st.bk{background:var(--acc);color:var(--acc-ink)}
.vgrid.bkmode .vg-r:not(.vg-new):not(.bkpk) .vg-c{opacity:.55}
.vgrid.bkmode .vg-new{display:none}
.vg-l.bk-n{border:1.5px solid var(--ink);background:var(--bg);min-height:44px;cursor:pointer;display:grid;place-items:center}
.vg-l.bk-n .ic{width:20px;height:20px;stroke-width:3}
.vg-r.bkpk .bk-n{background:var(--acc);color:var(--acc-ink);border-color:var(--acc-ink)}
.vg-r.bkpk{background:var(--acc-tint)}
.vg-c.will{background:var(--acc);border-color:var(--acc-ink)}
.vg-r.bkno .vg-l{opacity:.4;cursor:default}
.bkbar .bk-msg{font-weight:var(--fw-head);font-size:14px;min-width:0;overflow-wrap:anywhere}
.bkbar{grid-template-columns:auto minmax(0,1fr) auto}
.bkbar [disabled]{opacity:.4;cursor:default}
/* v0.17.0: template editor actions float at the bottom like a selected block's bar; only one bar shows at a time */
.tpbar .tp-del[disabled]{opacity:.4;cursor:not-allowed}
.tpbar.gd-bar{grid-template-columns:auto minmax(0,1fr);gap:24px}
.tpbar.tp-ask{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.tp-askm{flex:1 1 100%;margin:0;font-weight:var(--fw-head);font-size:15px;color:var(--red,#d6342c)}   /* the ask's words take their own line in any action bar (editor.js actAsk) */
.sh-xi{display:grid;place-items:center;width:44px;height:44px;margin:-10px -12px -10px 0;padding:0;border:0;background:none;color:var(--ink);cursor:pointer;flex:none}
.sh-xi .ic{width:22px;height:22px}
.tpbar:not(.gd-bar):not(.tp-ask){grid-template-columns:auto minmax(0,1fr) minmax(0,1.2fr)}
.tpbar .edbar-b{white-space:normal;line-height:1.2;text-align:left}
.tpbar:not(.gd-bar):not(.tp-ask){grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.2fr)}
.tpbar .edbar-del{white-space:normal;line-height:1.2;text-align:left}
/* v0.17.0: block time sheet (time + pin switch, action row per the bottom-bar rule) */
.tm-b{border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;min-height:32px}
.pin-tog{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;cursor:pointer}
.pin-tog b{display:block;font-size:15px}
.pin-tog small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.pin-foot{display:flex;align-items:center;flex-wrap:nowrap;gap:24px}
.pin-foot .edbar-del{margin-right:auto}
.pin-foot .edbar-go{min-height:52px}
/* v0.17.0: new-goal type picker grouped by medium */
.nf-types{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:flex-end}
.nf-tg{display:flex;flex-direction:column;gap:4px}
.nf-tgl{margin:0;font-size:12px;font-weight:var(--fw-label);color:var(--muted)}
.nf-tgr{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:760px){ .nf-types{display:flex;gap:8px 14px} .nf-ty{width:80px;height:68px;font-size:13px} }
/* v0.17.0: share progress (goal title) and the celebration's 分享 */
.pp-share svg{width:20px;height:20px}
.pp-share{min-width:44px;min-height:44px;margin-left:auto}
.pp-share + .pp-gear{margin-left:0}
.done-sh{margin-top:8px;min-height:44px}
#invBtn,#fbBtn{min-height:44px;min-width:44px}

/* v0.17.1: 已推出 under the votes (thin lime strip, no tick box) */
.vt-ship{margin:16px 0 8px}
.vt-sht{margin:0 0 6px;font-size:11px;font-weight:var(--fw-head);letter-spacing:.08em;color:var(--muted)}
.vt-sh{display:flex;align-items:center;gap:12px;padding:8px 0 8px 12px;border-left:4px solid var(--acc);margin-top:6px}
.vt-sh .vt-t{flex:1}
.vt-go{display:inline-flex;align-items:center;gap:2px;min-height:44px;font-weight:var(--fw-head);white-space:nowrap}
.vt-go .ic{width:16px;height:16px}
.vt-more{border-top:0;margin-top:2px}
/* v0.17.1: update notes black and white; only 「新功能」 is lime; older releases folded */
.nw-k-new{display:inline-block;background:var(--acc);color:var(--acc-ink);padding:2px 7px}
.nw-old .nw-v{border-top:1px solid var(--line);padding-top:10px}
.nw-sheet .nw-old .nw-h{display:flex}
/* v0.17.1: template bar full width, white; a selected block's bar floats above it in black */
body.tpbar-on .tpbar{left:0!important;right:0!important;bottom:0!important;transform:none!important;width:auto!important;border:0!important;border-top:2px solid var(--ink)!important;background:var(--bg);color:var(--ink);z-index:var(--z-bar2)}
body.tpbar-on .tp-sheet .sheet{padding-bottom:calc(var(--tpbar-h,104px) + var(--sp-4))}   /* --tpbar-h: the bar's own height, measured by editorSheet / the block bar (editor.js) */
/* v0.17.1: batch check-in drag-select: no scrolling while dragging over rows */
.vgrid.bkmode .vg-r[data-iid]{touch-action:none;user-select:none;-webkit-user-select:none}
/* v0.17.1: share sheet with a live 16:9 preview */
.shs-prev{line-height:0;display:flex;justify-content:center;background:var(--soft);padding:12px}
.shs-prev canvas{max-width:100%;max-height:52vh;width:auto;height:auto;display:block;box-shadow:0 0 0 1px var(--line)}
.shs-row{margin-top:12px}
.shs-cols{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.shs-sw{width:36px;height:36px;border:1px solid var(--line);padding:0;cursor:pointer}
.shs-sw[aria-checked="true"]{outline:3px solid var(--ink);outline-offset:2px}
#shGoalTogs{display:contents}
.shs-togs{display:flex;flex-wrap:wrap;gap:8px 20px;margin:14px 0 4px}
.shs-tg{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;border:0;background:none;color:var(--ink);font:inherit;font-size:14px;font-weight:var(--fw-label);cursor:pointer}
.shs-tg .vt-ck svg{opacity:0}
.shs-tg[aria-pressed="true"] .vt-ck{background:var(--acc)}
.shs-tg[aria-pressed="true"] .vt-ck svg{opacity:1;color:var(--acc-ink)}
.shs-sheet [hidden]{display:none!important}
.shs-warn{color:var(--red,#d6342c)}
.shs-f{display:flex;gap:12px;align-items:center}
/* v0.17.1: votes first, update notes after */
@media (min-width:900px){ .fbx{grid-template-columns:minmax(0,6fr) minmax(0,5fr)} .fbx-l{padding-right:0;padding-left:32px;border-right:0;border-left:1px solid var(--line)} }
@media (max-width:899px){ .fbx-l{padding-bottom:0;border-bottom:0;padding-top:20px;border-top:1px solid var(--line)} }
.tl-head .tl-donen{margin-left:0;margin-right:auto}
/* v0.17.1: share sheet: type colour label, cover picker */
.shs-coll{margin:12px 0 0}
.shs-covw{margin-top:12px}
.shs-covs{display:flex;gap:8px;overflow-x:auto;padding:2px}
.shs-cov{flex:none;width:56px;height:56px;padding:0;border:1px solid var(--line);background:var(--soft);cursor:pointer}
.shs-cov img{width:100%;height:100%;object-fit:cover;display:block}
.shs-cov[aria-checked="true"]{outline:3px solid var(--ink);outline-offset:2px}
.shs-covw[hidden]{display:none!important}
/* v0.17.1: overlays (疊加活動): one column beside the base, one after another; red outline when they run too long */
.eovs{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:3px}
.eovs>.eb{flex:none;container-type:inline-size}
.eovs.ov-over{outline:2px solid var(--red,#E5372B);outline-offset:1px}
.eb .dhh{display:inline-grid;place-items:center;color:currentColor;opacity:.55}
.eb .dhh .ic{width:14px;height:14px}
.tl-ovs{display:flex;flex-direction:column;min-width:0;border-left:1px solid var(--line)}
.tl-ovs .tl-r2+.tl-r2{border-top:1px solid var(--line)}
/* v0.17.1: activity picker: category headers, scrolls inside the sheet, manage link at the end */
.cbx-full .cbx-l,.cbx-l{min-height:0;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.cbx-h.cbx-sh{margin:8px 8px 2px;font-size:10.5px;letter-spacing:.04em;font-weight:var(--fw-label)}
.cbx-man{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 8px;margin-top:6px;border:0;border-top:1px solid var(--line);background:none;font:inherit;font-size:14px;font-weight:var(--fw-head);color:var(--ink);text-align:left;cursor:pointer}
.cbx-man .ic{width:16px;height:16px}
.na-flags{display:flex;flex-wrap:wrap;gap:8px}
.eovs>.eb.par{align-self:stretch}
/* v0.17.1: share sheet: desktop two columns (preview | controls); own colours (＋ add, trash removes) */
.shs-sheet .sheet.wide{max-width:980px}
.shs-sw{width:44px;height:44px}
.shs-own{display:grid;place-items:center;position:relative;color:var(--muted);border:1.5px solid var(--faint);background:var(--bg)}
.shs-own .ic{width:20px;height:20px}
.shs-own input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;border:0;padding:0}
.shs-rm{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:0;background:none;color:var(--red);cursor:pointer;padding:0}
.shs-rm svg{width:20px;height:20px}
.shs-cov{width:72px;height:72px}
.shs-cov img{object-fit:contain}
@media (min-width:900px){
  .shs-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}
  .shs-prev{position:sticky;top:0;padding:16px}
  .shs-prev canvas{max-height:calc(100vh - 140px)}
}
/* v0.17.1: the selected block's bar in the template editor uses the same white bar as everywhere else (no black),
   all on one row: ✕ · 刪除 · secondary buttons · 更改活動 (main, widest). It floats just above the template bar. */
/* v0.17.1: activity picker: 3-column tiles with padding; the block's own activity + 「修改活動」 on top;
   on computers it is fixed to the window (under or above the block), never below the visible area */
.cbx:not(.cbx-full){position:fixed;width:min(480px,calc(100vw - 32px));padding:12px;gap:8px}
.cbx:not(.cbx-full) .cbx-l{max-height:none;flex:1 1 auto}
.cbx-l{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-content:start;padding:2px 2px 12px;overflow-y:auto}
.cbx-l>.cbx-h,.cbx-l>.cbx-add,.cbx-l>.cbx-man{grid-column:1/-1}
.cbx-l>.cbx-h{margin:10px 0 0}
.cbx-l>.cbx-h:first-child{margin-top:0}
.cbx-o.cbx-t{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;min-height:84px;padding:10px;border:1px solid var(--line);font-size:14px;line-height:1.25;position:relative}
.cbx-full .cbx-o.cbx-t{min-height:84px}
.cbx-o.cbx-t>span:nth-child(2){flex:none;width:100%;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.cbx-o.cbx-t[aria-selected="true"]{border:2px solid var(--ink);padding:9px}
.cbx-o.cbx-t .cbx-ck{position:absolute;top:8px;right:8px;margin:0}
.cbx-cur{display:flex;align-items:center;gap:10px;padding:8px 0 8px;border-bottom:1px solid var(--line)}
.cbx-cur b{flex:1;min-width:0;font-size:15px;font-weight:var(--fw-head);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cbx-edit{min-height:44px;padding:0 14px;font-size:14px}
.shs-covs{padding:6px}
/* v0.17.1: share sheet in the app's own style: .seg for size, a numbered goal list (no dropdown) */
.shs-sheet .seg button{min-height:44px;font-size:14px;font-weight:var(--fw-label)}
.shs-ctl .flab{margin:0 0 6px}
.shs-goals{display:flex;flex-direction:column;border:1px solid var(--line);margin-bottom:14px}
.shs-g{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:0;background:var(--bg);color:var(--ink);font:inherit;font-size:15px;text-align:left;cursor:pointer}
.shs-g+.shs-g{border-top:1px solid var(--line)}
.shs-gn{font-weight:var(--fw-head);font-size:13px;color:var(--muted)}
.shs-gt{font-weight:var(--fw-head);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shs-gy{font-size:12px;color:var(--muted)}
.shs-g[aria-checked="true"]{background:var(--acc);color:var(--acc-ink)}
.shs-g[aria-checked="true"] .shs-gn,.shs-g[aria-checked="true"] .shs-gy{color:var(--acc-ink)}
/* v0.17.1: phones: full-screen sheets (.full-m) */
@media (max-width:743px){
  .full-m.sheet-wrap{padding:0;align-items:stretch}
  .full-m .sheet{height:100dvh;max-height:none;max-width:none;border:0;padding:0;display:flex;flex-direction:column;overflow:hidden}
  .full-m .sheet-h{flex:none;margin:0;padding:max(12px,env(safe-area-inset-top,0px)) 16px 12px;border-bottom:1px solid var(--line)}
  .full-m .sheet-body{flex:1;min-height:0;overflow-y:auto;padding:16px 16px 0;-webkit-overflow-scrolling:touch}
}
/* feedback: update notes on top on phones, send button always at the bottom */
@media (max-width:899px){ .fbx-l{order:-1;padding:0 0 16px;border:0;border-bottom:1px solid var(--line)} }
@media (max-width:743px){
  .fb-sheet .sheet-f{position:sticky;bottom:0;margin:20px -16px 0;padding:12px 16px max(12px,env(safe-area-inset-bottom,0px));background:var(--bg);border-top:2px solid var(--ink);z-index:2}
  .fb-sheet #fbSend{width:100%;justify-content:center}
}
.nw-o1{border-top:1px solid var(--line)}
.nw-o1>summary{display:flex;align-items:baseline;gap:10px;min-height:44px;align-items:center;cursor:pointer;font-size:14px}
.nw-o1>summary span{color:var(--muted);font-size:12px}
.nw-o1>.nw-body{padding:0 0 12px}
/* share sheet: tabs and sticky bar on phones; everything stacked on computers */
.shs-tabs{display:none}
.shs-pane+.shs-pane{margin-top:18px}
.shs-bar{margin-top:14px}
.shs-bar .sheet-f{margin:0}
@media (max-width:743px){
  .shs-sheet .sheet-body{overflow:hidden;padding:0;display:flex;flex-direction:column}
  .shs-grid{display:flex;flex-direction:column;flex:1;min-height:0}
  .shs-prev{flex:none;height:36dvh;padding:8px;align-items:center;position:static}
  .shs-prev canvas{max-height:100%;max-width:100%}
  .shs-ctl{flex:1;min-height:0;display:flex;flex-direction:column}
  .shs-tabs{display:flex;flex:none;margin:12px 16px 0}
  .shs-panes{flex:1;min-height:0;overflow-y:auto;padding:14px 16px}
  .shs-pane{display:none}
  .shs-pane.on{display:block}
  .shs-pane+.shs-pane{margin-top:0}
  .shs-bar{flex:none;margin:0;padding:10px 16px max(12px,env(safe-area-inset-bottom,0px));border-top:2px solid var(--ink);background:var(--bg)}
  .shs-warn{margin:0 0 8px;font-size:12px}
}

/* v0.17.2 作品：名稱就是輸入格（同標題一樣，撳入去改）；刪除在左、重新進行在右 */
.wk-nin{display:block;width:100%;border:0;border-bottom:2px solid transparent;background:none;color:inherit;padding:0 0 4px;border-radius:0}
.wk-nin:hover{border-bottom-color:var(--line)}
.wk-nin:focus{outline:none;border-bottom-color:var(--ink)}
.wk-acts{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:24px}
.wk-acts .lk{min-height:44px}
.wk-acts .ic{width:20px;height:20px}

/* v0.17.2 意見 and 分享 back in the top bar. Phones: icon only, the same framed square as the gear beside them;
   the date drops the weekday there so nothing covers it. */
.hdate .hd-s{display:none}
@media (max-width:743px){
  .hdr-r{gap:4px}
  .hdr-r .avatar,#fbBtn,#invBtn{width:36px;height:36px;min-width:0;min-height:0;position:relative}
  .hdr-r .avatar::before{content:"";position:absolute;inset:-4px -2px}
  .hdr .hdate{position:static;transform:none;margin-right:6px}
  .hdate .tc svg{display:none}
  .hdate .hd-l{display:none}
  .hdate .hd-s{display:inline-flex}
}

/* v0.17.2 share preview: the box has a fixed height and the card is fitted inside it (object-fit), so the whole
   card always shows, Safari included. Cover picker starts with 「不用圖片」. */
.shs-prev{height:52vh}
.shs-prev canvas{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;box-shadow:none}
@media (min-width:900px){ .shs-prev{height:calc(100vh - 140px);max-height:760px} }
@media (max-width:743px){ .shs-prev{height:36vh;height:36dvh} }
.shs-cov0{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:var(--bg);color:var(--ink);font-size:11px;font-weight:var(--fw-head);line-height:1.1}
.shs-cov0 svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8}
/* v0.17.3: the one-time "updated" card is a short headline list */
.nw-pop ol{list-style:none;margin:0;padding:0}
.nw-pop li{display:flex;gap:14px;align-items:baseline;padding:12px 0;border-top:1px solid var(--line);font-size:17px}
.nw-pop li:first-child{border-top:0}
.nw-pop li span{font-family:var(--f-num);font-weight:var(--fw-head);font-size:13px;color:var(--muted)}

/* v0.17.5: the month grid pops in once when drawn (class dropped after 1s); it used to replay while scrolling on phones. */
/* v0.17.6: the batch bar's message gets its own full-width row, so a long stage name can't squeeze it into a column */
.bkbar{grid-template-columns:auto minmax(0,1fr)}
.bkbar .bk-msg{grid-column:1/-1;order:-1}
/* v0.17.6: a goal opened in Goals glides to its title, below the sticky header */
.prow2{scroll-margin-top:var(--sp-4)}
/* v0.17.6: batch mode — only the number and squares take the finger; the rest of the row scrolls the page */
.vgrid.bkmode .vg-r[data-iid]{touch-action:pan-y}
.vgrid.bkmode [data-bkrow]{touch-action:none;cursor:pointer}
/* v0.17.6: update notes, one line each (name + sentence), no bullets */
.nw ul.nw-1{list-style:none;padding:0;margin:0;display:block}
.nw ul.nw-1 li{padding:7px 0;line-height:1.5}
.nw ul.nw-1 li b{font-weight:var(--fw-head);margin-right:10px}
.nw-sec + .nw-sec{margin-top:10px}
/* v0.17.6: version + date left, ‹ › right; small changes sit close together */
.nw .nw-pg .nw-h{display:flex!important;flex:1;justify-content:flex-start;margin:0}
.nw .nw-pg{margin:0 0 4px}
.nw ul.nw-1.nw-s li{padding:2px 0}
.nw-sec-tweak .nw-k,.nw-sec-fix .nw-k{margin:10px 0 2px}
/* v0.17.8: share button on a finished work; custom round length in the focus timer */
.wk-share{align-self:flex-start;min-height:48px;padding:0 20px;font-size:15px;display:inline-flex;align-items:center;gap:8px}
.fx-cust{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 16px 16px;border-top:1px solid currentColor;align-self:stretch}   /* the whole card's width: its line runs edge to edge */
.fx-cust label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:var(--fw-label)}
/* v0.17.9: a sheet always sits above the pinned bars (batch / edit bar was covering the leave-warning buttons) */
.sheet-wrap{z-index:var(--z-sheet)}
/* v0.17.9: share picker in two folding groups (goals / finished works) */
.shs-grp{margin-bottom:14px}
.shs-grp summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;font-weight:var(--fw-head);font-size:14px;cursor:pointer}
.shs-grp summary::-webkit-details-marker{display:none}
.shs-grp summary .ic{width:20px;height:20px;transition:transform .15s}
.shs-grp[open] summary .ic{transform:rotate(180deg)}
.shs-grp .shs-goals{margin-bottom:0}
/* v0.17.9: every tappable thing is at least 44px tall on touch screens (audit at 390 found 24–38px ones) */
@media (pointer:coarse),(max-width:700px){
  .tl-fqb,.bd3-add,.ptab,.lk.icl,.btn.icl,.lk.faint,.gear-lk,.ist,.seg button,.ideas .btn{min-height:44px}
  .gear-lk,.tl-fqb{min-width:44px}
}
/* v0.17.9 fix: the editor / template action bars live on top of the sheet that hosts them (the sheet layer hid them);
   only the batch bar stays below, so a confirmation sheet can cover it. A sheet's title + ✕ stays at the top while you scroll. */
.edbar:not(.bkbar){z-index:var(--z-bar2)}
.sheet .sheet-h{position:sticky;top:0;z-index:3;background:var(--bg)}
/* v0.19.0: the stuck title also covers the sheet's top padding, its sides and the 14px gap under it,
   so nothing scrolling shows above or just below the title (it stuck 20px down with the list showing through). */
.sheet .sheet-h::before{content:"";position:absolute;z-index:-1;top:-40px;left:0;right:0;bottom:calc(-1 * var(--shg,14px));background:inherit;box-shadow:-40px 0 0 var(--bg),40px 0 0 var(--bg)}   /* sides as shadows: no sideways scroll */
@media (max-width:743px){ .full-m .sheet-h{--shg:0px} }

/* ================= v0.17.10 ================= */
/* calendar: hours set like the day number (bold numerals, the "h" small); levels go from white to black */
.hm-c .dh{font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(15px,2vw,28px);letter-spacing:-.03em;line-height:1;white-space:nowrap}
.hm-c .dh small{font-size:.55em;letter-spacing:0;margin-left:1px}
.hl1{background:color-mix(in srgb,var(--ink) 20%,var(--bg))!important}
.hl2{background:color-mix(in srgb,var(--ink) 45%,var(--bg))!important}
.hl3{background:color-mix(in srgb,var(--ink) 70%,var(--bg))!important;color:var(--bg)!important}
.hl4{background:var(--ink)!important;color:var(--bg)!important}
.hm-c:is(.hl1,.hl2,.hl3,.hl4){box-shadow:none}
.hm-c:is(.hl3,.hl4).due::after{border-right-color:var(--bg)}
.hm-leg .hl-w{display:flex;flex-direction:column;align-items:center;margin:0;gap:2px}
.hm-leg .hl-w em{font-style:normal;font-size:11px;font-weight:var(--fw-head);color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}

/* works: 全部 heading second line */
.wk-ysub{margin:-6px 0 0;font-size:15px;font-weight:var(--fw-head);color:var(--muted)}

/* waterfall (wall and work page) + filter in the app's own segmented style */
.wf-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 16px}
.wf-chips{flex-wrap:wrap;max-width:100%;width:max-content}
.wf-clear{min-height:44px;font-size:14px;color:var(--ink)}
.wf-clear .ic{width:20px;height:20px}
.wf-clear:disabled{color:var(--faint);cursor:default;text-decoration:none}
.wf-t[hidden]{display:none}
.wf-chips button{flex:none;min-height:44px;padding:0 16px;font-size:14px}
.wk-cov .ph-box,.wk-cov .noimg{aspect-ratio:auto}
.wk-cov .noimg{aspect-ratio:3/4}
.wk-cov .ph-box{min-height:160px}
.wk-cov .ph-box.has{min-height:0}
.wk-cov img{height:auto;object-fit:contain}
@media (max-width:760px){.wk-cov .ph-box,.wk-cov .noimg{aspect-ratio:auto}.wk-cov .noimg{aspect-ratio:4/5}}
.wf{display:flex;align-items:flex-start;gap:16px}
.wf-col{flex:1 1 0;min-width:0}
@media (max-width:760px){.wf{gap:8px}}
.wf-t{display:block;width:100%;margin:0 0 16px;padding:0;border:0;background:none;font:inherit;color:var(--ink);text-align:left;cursor:pointer;break-inside:avoid}
.wf-t .ph-box{display:block;min-height:120px}
.wf-t .ph-box.has{min-height:0}
.wf-t img{height:auto;object-fit:contain}
.wf-t .wf-noimg{aspect-ratio:3/4;width:100%}
@media (hover:hover){.wf-t:hover :is(.ph-box,.noimg){outline:2px solid var(--ink);outline-offset:2px}}
.wf-c{display:block;margin-top:6px;font-size:13px;font-weight:var(--fw-label)}
.wf-c b{font-family:var(--f-num);font-weight:var(--fw-head)}
.wf-n{display:block;font-size:15px;font-weight:var(--fw-head);letter-spacing:-.01em}

/* review: phones full screen; desktop almost full screen. Image as large as the screen allows. */
.rv-wrap .sheet{max-width:none;width:min(96vw,1680px);height:94vh;display:flex;flex-direction:column;overflow:hidden}
.rv-wrap .sheet-body{flex:1;min-height:0;display:flex}
.rv{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;gap:10px}
.rv-body{flex:1;min-height:0;display:flex;gap:16px}
.rv-rail{flex:none;width:96px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.rv-rail::-webkit-scrollbar{display:none}
.rv-i{position:relative;flex:none;width:96px;height:96px;padding:0;border:0;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer;overflow:hidden;display:grid;place-items:center;font:inherit;color:var(--ink)}
.rv-i img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.rv-no{position:relative;z-index:1;font-family:var(--f-num);font-weight:var(--fw-head);font-size:15px}
.rv-i.has .rv-no{position:absolute;left:0;top:0;background:var(--bg);font-size:11px;padding:2px 5px}
.rv-i.on::after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 3px var(--ink);z-index:2}
.rv-main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px}
.rv-tog{display:none}
.rv-no2{flex:none;font-family:var(--f-num);font-weight:var(--fw-head);font-size:18px}
.rv-stage{flex:1;min-height:0;display:flex}
.rv-img{position:relative;flex:1;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;background:var(--soft);touch-action:pan-y;overflow:hidden}
/* title row: [items] name 01 ........ [delete] [✕] */
.rv-wrap .sheet-h{justify-content:flex-start;gap:8px}
.rv-wrap .sheet-h .lab{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
.rv-wrap .sheet-h [data-close]{margin-left:0}
.rv-del{margin:-10px 0 -10px auto;flex:none;width:44px;height:44px;border:0;padding:0;background:none;color:var(--red);cursor:pointer;display:grid;place-items:center}
.rv-del .ic{width:20px;height:20px}
.rv-del:disabled{color:var(--faint);cursor:default}
.rv-img img{width:100%;height:100%;display:block;object-fit:contain}
button.rv-img{border:0;padding:0;font:inherit;color:var(--muted);cursor:pointer;flex-direction:column;gap:8px;font-size:14px;font-weight:var(--fw-label);box-shadow:inset 0 0 0 1px var(--line)}
button.rv-img:hover{box-shadow:inset 0 0 0 1.5px var(--ink);color:var(--ink)}
button.rv-img .ic{width:24px;height:24px}
.rv-row{flex:none;display:flex;align-items:flex-start;gap:8px}
.rv-bar{flex:1;min-width:0;display:flex;gap:4px}
.rv-s{flex:1 1 0;min-width:0;min-height:44px;padding:8px 0 0;border:0;background:none;font:inherit;color:var(--faint);text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:6px}
.rv-tr{display:block;height:4px;background:color-mix(in srgb,var(--ink) 6%,var(--bg));position:relative;overflow:hidden}
.rv-tr i{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--ink)}
.rv-s.has{color:var(--muted)}
.rv-s.has .rv-tr{background:color-mix(in srgb,var(--ink) 16%,var(--bg))}
.rv-s.on{color:var(--ink)}
.rv-s.on .rv-tr i{width:100%}
.rv-bar.play .rv-s.on .rv-tr i{animation:rvfill 1.2s linear both}
@keyframes rvfill{from{width:0}to{width:100%}}
@media (prefers-reduced-motion:reduce){.rv-bar.play .rv-s.on .rv-tr i{animation:none}}
.rv-sl{font-size:13px;font-weight:var(--fw-label);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-sl b{font-family:var(--f-num);font-weight:var(--fw-head)}
.rv-s.on .rv-sl{font-weight:var(--fw-head)}
.rv-play{flex:none;width:44px;height:44px;border:0;background:none;padding:0;cursor:pointer;color:var(--ink);display:grid;place-items:center}
.rv-play .ic{width:20px;height:20px}
.rv-play:disabled{color:var(--faint);cursor:default}
/* phones: the app's full-screen sheet (.full-m) */
@media (max-width:743px){
  .rv-wrap .sheet{width:100%;height:100dvh}
  .rv-wrap .sheet-body{display:flex;overflow:hidden;padding:8px 16px max(12px,env(safe-area-inset-bottom,0px))}
  .rv-body{gap:8px}
  .rv-rail{display:none;width:56px;gap:6px}
  .rv-rail.open{display:flex}
  .rv-i{width:56px;height:56px}
  .rv-tog{flex:none;display:grid;place-items:center;width:44px;height:44px;margin:-10px 0 -10px -10px;border:0;background:none;padding:0;cursor:pointer;color:var(--ink)}
  .rv-tog[aria-expanded="true"]{color:var(--ink);background:var(--soft)}
  .rv-tog .ic{width:22px;height:22px}
  .rv-sl{font-size:11.5px}
}

/* work page: delete / reopen on the top row with the way back */
.wk-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 24px}
.wk-top .wk-crumb{min-width:0;flex:1 1 200px}
.wk-top .wk-acts{margin:0;gap:24px}
.wk-top .wk-re{font-size:14px;color:var(--ink)}
/* work page: one main button (share); every other action is the same secondary style: 20px icon + 14px text, no frame */
.wk-info .wk-edit,.wk-top .wk-acts .lk{min-height:44px;font-size:14px;font-weight:var(--fw-label);gap:6px;display:inline-flex;align-items:center}
.wk-info .wk-edit{color:var(--ink)}
.wk-info .wk-edit .ic,.wk-top .wk-acts .ic{width:20px;height:20px}
.wk-share .ic{width:20px;height:20px}
/* share sheet, phones: the two actions sit in the title row, so the preview and the options get the whole screen */
@media (max-width:743px){
  .shs-sheet .sheet-h{gap:8px}
  .shs-sheet .sheet-h .lab{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
  .shs-sheet .sheet-h .shs-f{margin:-10px 0 -10px auto;gap:4px;flex:none}
  .shs-sheet .sheet-h .shs-f .btn{min-height:44px;padding:0 12px;font-size:14px}
  .shs-sheet .sheet-h .shs-f [data-shcopy]{width:44px;padding:0;justify-content:center;border:0;background:none}
  .shs-sheet .sheet-h .shs-f [data-shcopy] .shs-cl{display:none}
  .shs-sheet .sheet-h .shs-f .edbar-go{flex:none}
  .shs-panes .shs-warn{margin:0 0 10px}
}
/* v0.17.10: the large image slot keeps the same size with or without an image, so picking another item never moves the page */
.gal-big:not(.has),.gal.single .gal-big:not(.has){aspect-ratio:3/4;height:auto}
@media (max-width:1023px){.gal-big:not(.has),.gal.single .gal-big:not(.has){aspect-ratio:4/3;height:auto}}
@container (max-width:720px){.gal-big:not(.has),.gal.single .gal-big:not(.has){aspect-ratio:4/3;height:auto}}
/* review: an uploaded image sits on white, no grey box around it */
.rv-img.has{background:none}
/* review rail: scrolls on its own (same setup as the activity list), never hands the swipe to the page behind */
.rv-rail{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.rv-wrap .sheet-body,.rv-wrap.sheet-wrap{overscroll-behavior:contain}
/* works wall filter: one wrapping row of tick toggles, clear at the end */
.wf-bar{gap:4px 20px}
/* v0.18.4 (Amuii): 取消篩選 sits right after the tick boxes it clears; only 新到舊｜舊到新 goes to the right end */
.wf-bar .wf-clear{margin-left:0}
/* goal grid header: numbers and names line up at the top; English names break with a hyphen, never mid-letter */
button.vg-st{justify-content:flex-start}
.vg-st b{-webkit-hyphens:auto;hyphens:auto}
/* "whole goal finished": a secondary action like the others (icon + text, no frame) */
.prow2 .pc-btns{display:flex}
.pc-btns .pc-b{white-space:nowrap;text-align:left;min-height:44px;font-size:14px;font-weight:var(--fw-label);gap:var(--sp-2);justify-content:flex-start;background:none;border:0;color:var(--ink);padding:0}
.pc-btns .pc-b:hover{background:none}
/* open goal on a narrow card: one column (title, details, then the big %), settings as a bare gear */
@container (max-width:560px){
  .prow2.open .pr-h,.prow2.open .pr-h.noth{grid-template-columns:minmax(0,1fr)}
  .prow2.open .pr-h .pct{justify-self:start;margin-top:var(--sp-1)}
  .prow2.open .pr-h .pr-th{display:none}
  .pr-set{width:44px;padding:0;justify-content:center;border:0;background:none;margin-top:0}
  .pr-set .pr-set-l{display:none}
/* v0.17.10: Recap cells — the date is small, the hours you created are the big number */
.hm-c .dn{font-family:inherit;font-weight:var(--fw-head);font-size:11px;letter-spacing:0;opacity:.7}
.hm-c .dh{font-size:clamp(17px,2.2vw,30px);letter-spacing:-.05em}
@media (max-width:640px){
  .hm-c{padding:3px 4px}
  .hm-c .dn{font-size:10px}
  .hm-c .dh{font-size:16px}
}
}
/* v0.17.10: levels keep the main colour (light → full), the darkest is black — not a grey scale */
.hl1{background:color-mix(in srgb,var(--acc) 28%,var(--bg))!important;color:var(--ink)!important}
.hl2{background:color-mix(in srgb,var(--acc) 60%,var(--bg))!important;color:var(--ink)!important}
.hl3{background:var(--acc)!important;color:var(--ink)!important}
.hl4{background:var(--ink)!important;color:var(--acc)!important}
.hm-c:is(.hl3,.hl4).due::after{border-right-color:var(--ink)}
.hm-c.hl4.due::after{border-right-color:var(--acc)}
/* v0.17.10: the start (play) button on a schedule row is a line icon only — no frame, no fill; the 44px tap area is absorbed by negative margin so it never pokes out of the row */
.tl-fqb,.tl-fqb.on{border:0;background:none;color:var(--ink);width:44px;height:44px;min-height:44px;margin:-8px 0 -8px -8px}
/* the length is always the right-most thing on a row, so every row's length lines up; the ▷ sits to its left */
.tl-fq .tl-fqb{order:-1}
/* v0.17.10 Today schedule: an unticked box has no fill; on phones the time sits closer to the name and two activities that run together stack (each with its full name) instead of squeezing the name to nothing */
.tl-r2.can .tl-box{background:transparent}
.tl-fq small{white-space:nowrap}
/* by the width of the schedule itself (the Today column on a desktop is narrow too, whatever the screen is) */
.tl2{container:tl2/inline-size}
@container tl2 (max-width:560px){
  .tl-r2,.tl-r2:has(.tl-fq){grid-template-columns:20px var(--tmw-s,54px) 16px minmax(0,1fr) auto;gap:var(--sp-2);padding:0 var(--sp-1)}
  /* two activities at the same time: one block, same columns; the time is written once (on the first row), no divider line */
  .tl-pair{grid-template-columns:minmax(0,1fr)}
  .tl-ovs,.tl-ovs .tl-r2+.tl-r2{border-left:0;border-top:0}
  .tl-pair .tl-r2,.tl-pair .tl-r2.side{grid-template-columns:20px var(--tmw-s,54px) 16px minmax(0,1fr) auto;gap:var(--sp-2);padding:0 var(--sp-1)}
  .tl-pair .tl-ic{display:block}
  .tl-pair .tl-r2.side .tl-tm{display:block}
}
/* v0.17.10: picture processing — the button you tapped becomes a moving bar + 「圖片處理中」 */
.busy{cursor:default;pointer-events:none}
.bz{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:70%;max-width:240px;margin:auto}
.bz b{font-size:13px;font-weight:var(--fw-head);color:var(--ink);white-space:nowrap}
.bz i{display:block;position:relative;height:4px;width:100%;background:var(--soft);overflow:hidden}
.bz i::after{content:"";position:absolute;top:0;bottom:0;left:0;width:35%;background:var(--acc);box-shadow:inset 0 0 0 1px var(--ink);animation:bzMove 1s ease-in-out infinite alternate}
@keyframes bzMove{from{left:0}to{left:65%}}
.gal-th .bz b{font-size:10px}
@media (prefers-reduced-motion:reduce){.bz i::after{animation:none;width:100%}}
/* v0.17.10: the length has one fixed width, right-aligned, on every row; the ▷ sits in the column left of it — so lengths and ▷ line up top to bottom */
.tl-r2 .tl-d,.tl-r2 .tl-fq small{display:inline-block;width:64px;text-align:right;white-space:nowrap}
.tl-r2 .tl-fq{position:relative;display:grid;grid-template-columns:44px 64px;column-gap:var(--sp-2);align-items:center;justify-content:end}
.tl-r2 .tl-fq .tl-fqp{position:absolute;right:0;bottom:2px;width:64px;height:3px}
/* v0.17.8: template editor — the end time being dragged stays marked (the time button's own reset hid it: white on white) */
.tm-b.tm-hot{background:var(--ink);color:var(--bg)!important;padding:1px 5px}
/* v0.17.8: open item — small actions in one row, then a full-width Done; a set deadline shows on the row */
.vg-act{flex-wrap:wrap;gap:var(--sp-1) var(--sp-3)}
.vg-act2{display:flex;align-items:center;gap:var(--sp-2) var(--sp-3);width:100%;flex-wrap:wrap}
.vg-act .vg-hold{border:0;background:none;padding:0;font-weight:var(--fw-head);color:var(--ink);cursor:pointer}
.vg-act .vg-due{margin-left:auto}
.vg-ok{width:100%;min-height:48px;justify-content:center}
.vg-nm .vg-dd{margin-left:var(--sp-2);font-size:11px;vertical-align:middle}
.vg-r .vg-nm:has(.vg-dd){display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:var(--sp-1);min-width:0;line-height:1.15}
.vg-nm .vg-nmt{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vg-nm .vg-dd{margin:0;padding:0;background:none;font-size:10.5px;color:var(--muted);max-width:100%;white-space:nowrap}
/* v0.17.10: template bar delete is icon only, still a 44px target */
.tp-del-i{min-width:44px;min-height:44px;justify-content:center;padding:0}
.tp-del-i .ic{width:22px;height:22px}
/* v0.17.11: every schedule editor bar (template, adjust today / tomorrow, selected block) follows one rule:
   icon buttons fixed 44px, secondary buttons as wide as their words, the one primary fills what is left. */
body.tpbar-on .tpbar:not(.tp-ask):not(.is-off){display:flex;align-items:center;gap:var(--sp-2)}
body.tpbar-on :is(.tpbar:not(.tp-ask),.edbar-blk) > :where(:not(.edbar-go,.edbar-sel)){flex:0 0 auto;min-width:0}   /* everything keeps its size; the primary (.edbar-go) fills the rest */
.tp-del-i,.edbar-del-i{width:44px;min-width:44px;min-height:44px;justify-content:center;padding:0!important;margin:0!important}
.edbar-del-i .ic,.tp-del-i .ic{width:22px;height:22px}
.adj-more .ic{width:18px;height:18px}
/* v0.17.11: menus (template picker, 「更多」) are a floating layer: above sheets and bars (they sat at 35, under the 44 sheet) */
.c2menu{z-index:var(--z-combo)}
/* v0.17.11: the leave warning follows the same rule: message on its own line, then 不儲存 (small) and the primary filling the rest */
body.tpbar-on .tpbar.tp-ask{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.tpbar.tp-ask > .edbar-b:not(.edbar-go){flex:0 0 auto}
/* v0.17.11: Adjust today / tomorrow — templates as tabs, one tap switches; 「＋ 空白」 starts from nothing */
.adj-tabs{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 0 10px;padding-bottom:2px}
.adj-tabs::-webkit-scrollbar{display:none}
.adj-tl{flex:none;font-size:13px;font-weight:var(--fw-head);color:var(--muted);margin-right:4px}
.adj-tab{flex:none;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 14px;border:1.5px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;font-size:14px;font-weight:var(--fw-head);cursor:pointer;white-space:nowrap}
.adj-tab.on{border-color:var(--ink);background:var(--ink);color:var(--bg)}
.adj-blank{border-style:solid;color:var(--muted)}
.adj-blank .ic{width:16px;height:16px}
/* v0.17.11: activity picker — smaller: one line per activity (icon + name), 2 columns on phones, 3 on computers;
   it never covers the block's bar; on phones the editor's own bar tucks away while picking. */
.cbx-l{gap:6px}
.cbx-o.cbx-t{flex-direction:row;align-items:center;gap:8px;min-height:44px;padding:4px 8px;font-size:13.5px}
.cbx-full .cbx-o.cbx-t{min-height:44px}
.cbx-o.cbx-t>span:nth-child(2){-webkit-line-clamp:2;line-height:1.2}
.cbx-o.cbx-t .cb-sw{flex:none;width:26px;height:26px}
.cbx-o.cbx-t .cb-sw .ic{width:16px;height:16px}
.cbx-h{margin:8px 0 2px;font-size:11px}
.cbx:not(.cbx-full){width:min(440px,calc(100vw - 32px))}
.cbx-cur{min-height:44px}
@media (max-width:700px){ .cbx-l{grid-template-columns:repeat(2,minmax(0,1fr))} }
body.cbx-on .tp-sheet .tpbar{display:none}

/* v0.17.12: a sheet opened over a schedule editor (pin time, time picker…) owns the bottom: the editor's bars step aside. */
body:has(.sheet-wrap ~ .sheet-wrap:not(.tp-sheet)) :is(.edbar,.tpbar){display:none!important}
/* 2026-11-07: an editor over another editor (調整 opened beside a docked board): only the top one's bar shows */
.sheet-wrap:has(~ .sheet-wrap.tp-sheet) .tpbar{display:none!important}
.c2menu button.c2m-p{grid-template-columns:minmax(0,1fr) 18px}
.cbx-rn{flex:1;min-width:0;height:44px;padding:0 4px;border:0;border-bottom:2px solid var(--line);background:transparent;font:inherit;font-size:15px;font-weight:var(--fw-head);color:var(--ink);border-radius:0}
.cbx-rn:focus{outline:0;border-bottom-color:var(--ink)}

/* v0.17.13: the waterfall is pictures only — no caption under or over a tile */
.wf-c,.wf-n{display:none}
/* v0.17.13 first run: after picking a type the stages scroll up, clear of the sticky sheet title;
   the sheet's 關閉 and the 稍後再說 links are 44px tall on touch screens like every other button. */
#npSt,#npMore{scroll-margin-top:64px}
@media (max-width:743px){ .full-m #npSt,.full-m #npMore{scroll-margin-top:8px} }
@media (pointer:coarse),(max-width:700px){
  .sh-x,.ob-skip,#npSkip .lk{min-height:44px}
}
/* v0.17.13 goal pictures: the big slot only holds a picture; the current stage is recorded in one small slot under it
   (same look as an empty thumbnail: soft fill, thin line, icon + words). While the picture is processing, the bar fills that slot. */
.gal-up{align-self:flex-start;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-2);width:50%;max-width:180px;aspect-ratio:4/3;border:0;padding:var(--sp-2);background:var(--soft);box-shadow:inset 0 0 0 1px var(--line);color:var(--ink);font:inherit;font-size:13px;font-weight:var(--fw-head);line-height:1.35;text-align:center;cursor:pointer}
.gal-up:hover{box-shadow:inset 0 0 0 1.5px var(--ink)}
.gal-up .ic{width:24px;height:24px}
.gal-up .bz{width:85%}
/* under a picture: full width, one line, icon beside the words */
.gal-up.row{align-self:stretch;width:100%;max-width:none;aspect-ratio:auto;min-height:52px;flex-direction:row;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3)}
.gal-up.row .ic{width:22px;height:22px}
.gal-up.row .bz{flex-direction:row;width:auto;max-width:none;margin:0;gap:var(--sp-2)}
.gal-up.row .bz i{width:96px}



/* ---------- v0.18.2 ---------- */
/* Planner (js/views/planner.js): full screen, every goal; names left, days right; rows tight (28px computer,
   36px phone, Amuii's call) with no gaps; bars keep a 44px grab through negative margins.
   Symbols: a bar is work (black frame, done part filled black = its progress); a diamond is a due day with its date
   beside it; red only for what runs late; yellow = selected; today = one thin black line; a show = a grey block. */
.pl{--pl-nw:260px;--rh:28px}
@media (max-width:699px){ .pl{--pl-nw:120px;--rh:36px} }
.plf{position:fixed;inset:0;z-index:var(--z-full);background:var(--bg);color:var(--ink);display:flex;flex-direction:column;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)}
body.plf-on{overflow:hidden}
.pl-top{position:relative;z-index:8;flex:none;display:flex;align-items:center;gap:4px 12px;flex-wrap:wrap;min-height:52px;padding:4px 16px;border-bottom:2px solid var(--ink);background:var(--bg)}
.pl-tt{font-size:16px;font-weight:var(--fw-head);margin-right:auto}
.pl-tb{min-height:44px;font-weight:var(--fw-head);color:var(--ink);gap:6px}
.pl-tb .ic,.pl-sb .ic,.pl-ib .ic{width:20px;height:20px}
.pl-top .btn.pl-tb{padding:0 16px}
.pl-ur{display:inline-flex}
.pl-ib{width:44px;height:44px;display:grid;place-items:center;border:0;background:none;padding:0;color:var(--ink);cursor:pointer;flex:none}
.pl-ib[disabled]{opacity:.3;cursor:default}
.pl-zoom{min-width:150px}
.pl-zoom button{min-height:44px}
.pl-nav{display:inline-flex;align-items:center}
.pl-fw{position:relative;display:inline-flex;align-items:center;flex-wrap:wrap;gap:var(--sp-1);min-width:0}   /* the filter's chips stay on its line */
.pl-fb em{font-style:normal;min-width:20px;height:20px;display:inline-grid;place-items:center;background:var(--ink);color:var(--bg);font-size:11px;font-weight:var(--fw-head)}
.pl-fp{position:absolute;top:100%;left:0;z-index:9;width:280px;max-height:70vh;overflow:auto;background:var(--bg);border:2px solid var(--ink);padding:8px 12px 12px}
.pl-fh{margin:8px 0 2px;font-size:11px;font-weight:var(--fw-head);color:var(--muted)}
.pl-fp .shs-tg{display:flex;width:100%}
.pl-fseg{display:flex;margin:2px 0 6px}
.pl-fseg button{flex:1;min-height:44px}
.pl-top.ask{gap:12px}
.pl-top.ask p{margin:0 auto 0 0;font-weight:var(--fw-head)}
@media (max-width:699px){
  .pl-top{padding:4px 8px;gap:0 2px}
  .pl-tt{display:none}
  .pl-top [data-cancel]{margin-right:auto}
  .pl-zoom{order:5;min-width:0;flex:1 1 140px}
  .pl-nav{order:6}
  .pl-fp{position:fixed;left:8px;right:8px;top:auto;width:auto}
}
.pl-main{flex:1;min-height:0;display:flex;position:relative}
.pl-sc{flex:1;min-width:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:96px}
.pl-in{position:relative;min-width:100%}
.pl-sc::-webkit-scrollbar-track:horizontal{margin-left:var(--pl-nw)}
.pl-hd{position:sticky;top:0;z-index:5;display:flex;height:40px;background:var(--bg);border-bottom:1px solid var(--ink)}
.pl-c0{position:sticky;left:0;z-index:2;flex:0 0 var(--pl-nw);display:flex;align-items:flex-end;padding:0 8px 6px 16px;background:var(--bg);font-size:11px;font-weight:var(--fw-head);color:var(--muted);border-right:1px solid var(--line)}
.pl-ax{position:relative;flex:1}
.pl-mo span,.pl-dy span{position:absolute;white-space:nowrap}
.pl-mo span{top:3px;padding-left:4px;font-size:11px;font-weight:var(--fw-head);border-left:1px solid var(--ink)}
.pl-dy span{bottom:4px;text-align:center;font-family:var(--f-num);font-size:11px;font-weight:var(--fw-label);color:var(--muted)}
.pl-dy span.td{bottom:4px;transform:translateX(-50%);color:var(--ink);font-weight:var(--fw-head);z-index:1}
.pl-body{position:relative}
.pl-we{position:absolute;top:0;bottom:0;left:var(--pl-nw);right:0;pointer-events:none}
.pl-we i{position:absolute;top:0;bottom:0;background:var(--soft)}
/* today: one thin black line, 今日 written above it in the date row */
.pl-tdc{position:absolute;top:0;bottom:0;width:0;margin-left:-.75px;border-left:1.5px solid var(--ink);pointer-events:none;z-index:4}
.pl-grp{position:relative}
.pl-gr,.pl-r{position:relative;display:flex;height:var(--rh);border-bottom:1px solid var(--line)}
.pl-gr{border-bottom-color:var(--ink)}
.pl-n{position:sticky;left:0;z-index:5;flex:0 0 var(--pl-nw);display:flex;align-items:center;min-width:0;background:var(--bg);border-right:1px solid var(--line)}
.pl-fold{flex:none;width:32px;height:var(--rh);display:grid;place-items:center;border:0;background:none;padding:0;color:var(--ink);cursor:pointer}
.pl-fold .ic{width:16px;height:16px}
.pl-fold0{flex:none;width:32px}
.pl-gt,.pl-it{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:6px;border:0;background:none;padding:0 8px 0 0;font:inherit;color:var(--ink);text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none}
.pl-gt b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:var(--fw-head)}
.pl-gt small{margin-left:auto;flex:none;font-size:11px;font-weight:var(--fw-label);color:var(--muted)}
.pl-it b{flex:none;font-family:var(--f-num);font-size:13px;font-weight:var(--fw-head);font-variant-numeric:tabular-nums}
.pl-it span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:var(--fw-label)}
.pl-it small{flex:none;margin-left:auto;font-size:11px;font-weight:var(--fw-label);color:var(--muted);white-space:nowrap}
.pl-pr .pl-it{padding-left:16px}
.pl-pr .pl-it span{font-weight:var(--fw-label)}
.pl-r.unset .pl-it small{color:var(--faint)}
.pl-r.dn .pl-it,.pl-tr.dn .pl-it{color:var(--muted)}
.pl-r.sel .pl-n{background:var(--acc)}
.pl-r.sel .pl-it,.pl-r.sel .pl-it small{color:var(--acc-ink)}
@media (max-width:699px){
  .pl-c0{padding-left:8px}
  .pl-fold,.pl-fold0{width:24px}
  .pl-it,.pl-gt{flex-wrap:wrap;align-content:center;gap:0 4px}
  .pl-it small,.pl-gt small{flex-basis:100%;margin-left:0;font-size:10px;line-height:1.2}
  .pl-pr .pl-it{padding-left:4px}
}
.pl-t{position:relative;flex:1}
.pl-t[data-place]{cursor:copy}
/* a due day (goal deadline, stage deadline, show task): a diamond, its date written beside it; red only when late */
.pl-dm{position:absolute;top:0;bottom:0;width:0;z-index:4;font-style:normal}
.pl-dm::after{content:"";position:absolute;top:50%;left:-5px;width:10px;height:10px;margin-top:-5px;background:var(--ink);transform:rotate(45deg)}
.pl-dm span{position:absolute;left:10px;top:50%;transform:translateY(-50%);white-space:nowrap;font-size:11px;font-weight:var(--fw-head);color:var(--ink);pointer-events:none}
.pl-dm span{background:var(--bg);padding:0 3px}
.pl-mini .pl-dm span{background:var(--tile)}
.pl-dm.late::after{background:var(--red)} .pl-dm.late span{color:var(--red)}
.pl-dm.dn::after{background:var(--line)} .pl-dm.dn span{color:var(--muted)}
.pl-dm.sel::after{background:var(--acc);box-shadow:0 0 0 2px var(--ink)}
.pl-dl,.pl-pd{cursor:ew-resize;touch-action:none}
.pl-dl::before,.pl-pd::before{content:"";position:absolute;top:50%;left:-14px;width:28px;height:28px;margin-top:-14px}
.pl-mini .pl-dl{cursor:default}
.pl-dlv{position:absolute;top:var(--rh);bottom:0;width:0;border-left:1px solid var(--muted);pointer-events:none;z-index:2}
.pl-dlv.late{border-left-color:var(--red)}
/* bars: black frame = to do; the done part fades to light grey */
.pl-b{position:absolute;top:5px;bottom:5px;background:var(--bg);border:2px solid var(--ink);box-sizing:border-box;cursor:grab;touch-action:none;z-index:2;overflow:visible}
.pl-b::before{content:"";position:absolute;inset:-8px 0}
.pl-pg{position:absolute;left:0;top:0;bottom:0;background:var(--ink);text-decoration:none;pointer-events:none}
.pl-b.done{background:var(--ink)}
.pl-b.sel{background:var(--acc)}
.pl-b.sel.done{background:var(--ink);outline:3px solid var(--acc)}
.pl-b.sum s{position:absolute;top:0;bottom:0;border-right:1px solid var(--ink);text-decoration:none;pointer-events:none}
.pl-b.sum s.dn{background:var(--ink)}
.pl-gsum{cursor:default}
.pl-late{position:absolute;top:0;bottom:0;right:0;background:var(--red);pointer-events:none}
.pl-ghost{opacity:.35;pointer-events:none;border-style:solid}
/* grips just inside the ends: on hover, and on the selected bar */
.pl-h{position:absolute;top:-8px;bottom:-8px;width:14px;cursor:ew-resize;touch-action:none;z-index:1}
.pl-h.l{left:-6px} .pl-h.r{right:-6px}
.pl-h::after{content:"";position:absolute;top:50%;width:2px;height:10px;margin-top:-5px;background:var(--ink);opacity:0}
.pl-h.l::after{left:9px} .pl-h.r::after{right:9px}
.pl-b:hover .pl-h::after,.pl-b.sel .pl-h::after{opacity:1}
.pl-b.nar .pl-h::after{display:none}
/* shows (read only): a grey block over the show days, a light band down the plan; tasks open as rows of diamonds */
.pl-cb{position:absolute;top:0;bottom:0;background:color-mix(in srgb,var(--ink) 5%,transparent);pointer-events:none;z-index:1}
.pl-cbar{position:absolute;top:5px;bottom:5px;background:color-mix(in srgb,var(--ink) 30%,transparent)}
.pl-cr .pl-gt{cursor:default}
.pl-tr .pl-it{cursor:default;padding-left:8px}
/* the selection: a yellow bar floating at the bottom, the same yellow as what is selected */
.pl-strip{position:absolute;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:7;width:max-content;max-width:calc(100% - 24px);background:var(--acc);color:var(--acc-ink);border:2px solid var(--ink);padding:4px 8px;animation:edbarIn .18s ease both}
.pl-sr{display:flex;align-items:center;gap:4px 6px;flex-wrap:wrap;min-height:48px}
.pl-sn{font-size:18px;font-weight:var(--fw-head);font-family:var(--f-num);margin:0 10px 0 6px;white-space:nowrap}
.pl-len{display:inline-flex;align-items:center;border-left:1px solid var(--ink);border-right:1px solid var(--ink);padding:0 4px}
.pl-len b{min-width:44px;text-align:center;font-family:var(--f-num);font-size:15px;font-weight:var(--fw-head)}
.pl-strip .pl-ib{color:var(--acc-ink)}
.pl-sb{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;border:0;background:none;font:inherit;font-size:14px;font-weight:var(--fw-head);color:var(--acc-ink);cursor:pointer}
.pl-del{color:var(--red)!important}
.pl-msg{margin:6px 8px 2px;max-width:640px;font-size:13.5px;font-weight:var(--fw-head);color:var(--ink)}
.pl-msg .lk{min-height:44px;margin-left:8px;color:var(--ink);font-weight:var(--fw-head);text-decoration:underline;text-underline-offset:3px}
@media (max-width:699px){ .pl-strip{left:8px;right:8px;transform:none;width:auto;max-width:none} .pl-sn{font-size:15px} }
/* Goals page: the same grid, goals folded, read only */
.pl-mini{border:1px solid var(--ink);margin:10px 0 14px;background:var(--tile)}
.pl-mini .pl-sc{overflow-x:auto;overflow-y:hidden;padding-bottom:0;scrollbar-width:none}
.pl-mini .pl-sc::-webkit-scrollbar{display:none}
.pl-mh .pl-nav{margin-left:auto;order:0}
.pl-mini .pl-hd{position:relative}
.pl-mh{display:flex;align-items:center;gap:8px;padding:4px 8px 4px 16px;border-bottom:1px solid var(--ink)}
.pl-mh b{font-size:15px;font-weight:var(--fw-head)}
.pl-go{min-height:44px;font-weight:var(--fw-head);color:var(--ink);gap:6px}
.pl-go .ic{width:20px;height:20px}
.pl-mini .pl-n,.pl-mini .pl-c0,.pl-mini .pl-hd{background:var(--tile)}
.pl-mini .pl-gt{padding-left:16px}
html[data-rad="on"] .pl-b{border-radius:var(--rad)}
/* Item editor (v0.18.2): one line, name then icon buttons (deadline, delete, hold, ✓ close). */
.vg-ed{grid-column:2/-1;display:flex;align-items:center;gap:0;min-width:0;border-bottom:1px solid var(--ink)}
.vg-ed .vg-in{flex:1;min-width:0;border-bottom:0}
.vg-ib{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-1);min-width:40px;height:44px;margin:-4px 0;padding:0 var(--sp-1);border:0;background:none;color:var(--ink);font:inherit;font-size:12px;font-weight:var(--fw-head);cursor:pointer}
.vg-ib .ic{width:20px;height:20px}
.vg-ib.danger{color:var(--red)}
.vg-ib.vg-due{color:var(--muted)}
.vg-ib.vg-due.on{color:var(--ink)}
.vg-ib.vg-due b{font-family:var(--f-num);font-weight:var(--fw-head);white-space:nowrap}
.vg-ib.vg-ok{min-width:44px;width:auto;min-height:0}
.pl-rp{padding:4px 0 8px}

/* v0.18.2 (Amuii, preview4 review): colour per goal, words on every bar, yellow today, the same editor layout as
   elsewhere (big title + ✕ on top, one bar of controls at the bottom with the primary on the right). */
.pl .gc0{--gc:var(--c1)} .pl .gc1{--gc:var(--c3)} .pl .gc2{--gc:var(--c4)}
.pl-b{border:0;background:color-mix(in srgb,var(--gc,var(--c2)) 22%,var(--bg))}
.pl-pg{background:color-mix(in srgb,var(--gc,var(--c2)) 62%,var(--bg))}
.pl-b.done,.pl-b.sel.done{background:color-mix(in srgb,var(--gc,var(--c2)) 62%,var(--bg));outline:0}
.pl-b.sum s{border-right:1px solid var(--bg)}
.pl-b.sum s.dn,.pl-b.sel.sum s.dn{background:color-mix(in srgb,var(--gc,var(--c2)) 62%,var(--bg))}
.pl-b.sel,.pl-b.sel.done{background:color-mix(in srgb,var(--gc,var(--c2)) 22%,var(--bg));outline:2px solid var(--ink);outline-offset:1px}
.pl-b.sel.done{background:color-mix(in srgb,var(--gc,var(--c2)) 62%,var(--bg))}
.pl-b.sel .pl-pg{background:color-mix(in srgb,var(--gc,var(--c2)) 62%,var(--bg))}
.pl-late{background:color-mix(in srgb,var(--red) 32%,var(--bg))}
.pl-bl{position:absolute;left:6px;top:50%;transform:translateY(-50%);z-index:1;white-space:nowrap;font-size:11.5px;font-weight:var(--fw-head);line-height:1;color:var(--ink);pointer-events:none}
.pl-bl.out{left:calc(100% + 6px)}
.pl-b.nar .pl-bl:not(.out){display:none}
.pl-ghost .pl-bl{display:none}
/* today: a yellow column, 今日 on yellow above it */
.pl-tdc{width:auto;margin:0;border:0;background:var(--acc-tint);z-index:1}
.pl-dy span.td{transform:translateX(-50%);padding:2px 6px;background:var(--acc);color:var(--acc-ink);bottom:2px}
.pl-r.pl-now .pl-n{background:var(--acc-tint)}
.pl-r.sel .pl-n{background:var(--bg);box-shadow:inset 4px 0 0 var(--ink)}
.pl-r.sel .pl-it,.pl-r.sel .pl-it small{color:var(--ink)}
.pl-sc.nodate :is(.pl-it,.pl-gt) small{display:none}   /* 2026-11-20 (Amuii: 「名稱旁顯示日期 又死咗」): goals' and shows' dates too, not only items' */
.pl-ax{cursor:ew-resize;touch-action:none}
/* top: a big title, 說明, ✕ */
.pl-top{min-height:68px;padding:8px 8px 8px 20px;gap:8px}
.pl-tt{display:block;margin:0 auto 0 0;font-size:30px;font-weight:var(--fw-head);line-height:1.1;letter-spacing:-.01em}
.pl-x .ic{width:26px;height:26px}
.pl-x{width:52px;height:52px}
/* bottom: one bar of controls (same as the schedule editors), the primary on the right */
.pl-sc{padding-bottom:16px}
.pl-bar{position:relative;z-index:8;flex:none;background:var(--bg);border-top:2px solid var(--ink);padding:10px 16px max(10px,env(safe-area-inset-bottom,0px))}
.pl-bar .pl-sr{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;min-height:52px}
.pl-bar .pl-tb{font-size:15px;min-height:52px}
.pl-bar .pl-ib{width:48px;height:52px}
.pl-bar .pl-ib .ic,.pl-bar .pl-tb .ic,.pl-bar .pl-sb .ic{width:22px;height:22px}
.pl-bar .pl-zoom{min-width:0}
.pl-bar .pl-zoom button{min-height:52px;min-width:64px;font-size:15px;font-weight:var(--fw-head)}
.pl-tdb{padding:0 6px}
.pl-go2{margin-left:auto;min-height:52px;height:52px;min-width:min(36%,280px);justify-content:center;font-size:16px}
.pl-bar .pl-sb{min-height:52px;font-size:15px;color:var(--ink)}
.pl-bar .pl-ib{color:var(--ink)}
.pl-bar .pl-del{color:var(--red)!important;margin-right:12px}
.pl-sn{display:inline-flex;align-items:center;min-height:44px;margin:0 4px 0 0;padding:0 12px;background:var(--acc);color:var(--acc-ink);font-size:18px}
.pl-len{border-color:var(--line)}
.pl-fp{top:auto;bottom:calc(100% + 8px)}
.pl-msg{margin:0 0 8px}
.pl-tip{z-index:var(--z-combo);flex-wrap:wrap}
.pl-tipa{display:flex;align-items:center;gap:12px;margin-left:auto}
.pl-tip .btn{min-height:44px;background:var(--bg);color:var(--ink);border-color:var(--acc-ink)}
@media (max-width:699px){
  .pl-top{min-height:56px;padding:4px 4px 4px 16px}
  .pl-tt{font-size:24px}
  .pl-bar{padding:8px 8px max(8px,env(safe-area-inset-bottom,0px))}
  .pl-bar .pl-sr{gap:4px}
  .pl-bar .pl-zoom{flex:1 1 auto}
  .pl-bar .pl-zoom button{min-width:0}
  .pl-go2{flex:1 1 100%;margin-left:0}
  .pl-fp{position:fixed;left:8px;right:8px;bottom:150px;top:auto}
}
/* the header's upgrade button: yellow, with a light that passes over it now and then */
.avatar.upb{background:linear-gradient(110deg,var(--acc) 42%,color-mix(in srgb,var(--acc) 30%,#fff) 50%,var(--acc) 58%) var(--acc);background-size:260% 100%;color:var(--acc-ink);border-color:var(--acc-ink);animation:upShine 3.2s ease-in-out infinite}
.avatar.upb[hidden]{display:none}
@keyframes upShine{0%{background-position:120% 0}55%,100%{background-position:-60% 0}}
@media (prefers-reduced-motion:reduce){ .avatar.upb{animation:none} }
body.set-open .hdr-r .avatar.upb{background-color:var(--acc);color:var(--acc-ink);border-color:var(--acc-ink)}
/* Today: what is planned for today, one line per goal */

/* v0.18.2 (Amuii, preview5 review: "the bars are ugly", reference Gantt charts): bars fill their row from line to line,
   in the goal's colour (light = to do, strong = done), plain upright words; a selection is a yellow band across its row,
   never a black frame; shows are bars too (drag them). */
.pl-b{top:0;bottom:0;border:0;font-style:normal;background:color-mix(in srgb,var(--gc,var(--c2)) 34%,var(--bg))}
.pl-b::before{inset:-6px 0}
.pl-pg,.pl-b.done,.pl-b.sum s.dn,.pl-b.sel .pl-pg,.pl-b.sel.done,.pl-b.sel.sum s.dn{background:color-mix(in srgb,var(--gc,var(--c2)) 78%,var(--bg))}
.pl-b.sel,.pl-b.sel.done{outline:0;box-shadow:none}
.pl-b.sel{background:color-mix(in srgb,var(--gc,var(--c2)) 34%,var(--bg))}
.pl-b.sel.done{background:color-mix(in srgb,var(--gc,var(--c2)) 78%,var(--bg))}
.pl-b.sum s{border-right:2px solid var(--bg)}
.pl-late{background:color-mix(in srgb,var(--red) 38%,var(--bg))}
.pl-bl{left:8px;font-size:12px;font-weight:var(--fw-head);font-style:normal;letter-spacing:0}
.pl-gsum .pl-bl{font-weight:var(--fw-head)}
.pl-bl.out{left:calc(100% + 8px)}
.pl-h::after{background:color-mix(in srgb,var(--ink) 55%,transparent);width:3px;height:12px;margin-top:-6px}
/* the selected row: one yellow band, names and days together */
.pl-r.sel,.pl-gr.sel{background:var(--acc-tint)}
.pl-r.sel .pl-n,.pl-gr.sel .pl-n{background:var(--acc-tint);box-shadow:none}
.pl-r.pl-now .pl-n{background:var(--bg);box-shadow:inset 4px 0 0 var(--acc)}
.pl-r.pl-now.sel .pl-n{background:var(--acc-tint)}
.pl-r.sel .pl-it small{color:var(--muted)}
/* goal rows: a soft line, not a black one */
.pl-gr{border-bottom-color:var(--line)}
.pl-grp{border-bottom:1px solid color-mix(in srgb,var(--ink) 30%,transparent)}
/* shows: a grey bar, dragged like any other */
.pl-cg{--gc:var(--c2)}
.pl-show{background:color-mix(in srgb,var(--c2) 70%,var(--bg))}
.pl-cb{background:color-mix(in srgb,var(--c2) 14%,transparent)}
.pl-cr .pl-gt{cursor:pointer}

/* v0.18.2 (Amuii, round 3): a clearer palette (one colour per goal, like the reference charts), a lighter grid and
   weekends, a plain walk-through card; yellow never carries a black line. */
.pl .gc0{--gc:#3FB8A0} .pl .gc1{--gc:#6CB8F0} .pl .gc2{--gc:#A58BE6} .pl .gc3{--gc:#F59A4A} .pl .gc4{--gc:#8CCB5E} .pl .gc5{--gc:#E78AC3}
.pl-b{background:color-mix(in srgb,var(--gc,var(--c2)) 38%,var(--bg))}
.pl-b.sel{background:color-mix(in srgb,var(--gc,var(--c2)) 38%,var(--bg))}
.pl-pg,.pl-b.done,.pl-b.sum s.dn,.pl-b.sel .pl-pg,.pl-b.sel.done,.pl-b.sel.sum s.dn{background:var(--gc,var(--c2))}
.pl-b.sel.done{background:var(--gc,var(--c2))}
.pl-gr,.pl-r{border-bottom-color:color-mix(in srgb,var(--ink) 6%,transparent)}
.pl-grp{border-bottom-color:color-mix(in srgb,var(--ink) 14%,transparent)}
.pl-n,.pl-c0{border-right-color:color-mix(in srgb,var(--ink) 10%,transparent)}
.pl-hd{border-bottom:1px solid color-mix(in srgb,var(--ink) 18%,transparent)}
.pl-we i{background:color-mix(in srgb,var(--ink) 2.5%,transparent)}
.pl-mo span{border-left-color:color-mix(in srgb,var(--ink) 25%,transparent)}
.pl-cg{--gc:#9AA0A6}
.pl-show{background:color-mix(in srgb,#9AA0A6 55%,var(--bg))}
.pl-cb{background:color-mix(in srgb,#9AA0A6 9%,transparent)}
/* walk-through: a plain white card, the step as 01 / 06, 下一步 as the primary; the bar it talks about glows yellow */
.pl-tip{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;align-items:start;background:var(--bg);color:var(--ink);border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);padding:16px 16px 12px}
.pl-tip .pl-tn{font-family:var(--f-num);font-size:28px;font-weight:var(--fw-head);line-height:1;grid-row:1/3}
.pl-tip .pl-tn small{font-size:13px;font-weight:var(--fw-label);color:var(--muted)}
.pl-tip p{margin:2px 0 0;font-size:16px;font-weight:var(--fw-head);line-height:1.45}
.pl-tipa{grid-column:2;display:flex;align-items:center;gap:20px;justify-content:flex-end;margin:4px 0 0}
.pl-tip .gd-skip{color:var(--muted)}
.pl-tip .btn{min-height:44px;padding:0 18px;font-size:15px;font-weight:var(--fw-head)}
.plf .gd-on{outline:0;box-shadow:0 0 0 3px var(--acc)}
.gd-tip{border-color:var(--acc)}
.avatar.upb{border-color:var(--acc)}
.fab,.start-big,.now-play,.back-today{border-color:var(--acc)}
/* secondary buttons: icon + words, no frame, no underline (design principle), the same in the planner and its card */
.pl .lk,.pl-tip .lk.gd-skip{text-decoration:none}
.pl .lk{color:var(--ink)}
.pl-tip.gd-tip{border:1px solid color-mix(in srgb,var(--ink) 18%,transparent)}

/* ---------- v0.18.2 round 4 (Amuii: "not one bit Neo-Swiss") ----------
   Neo-Swiss here means: structure from a strict grid, alignment and white space, not from boxes and lines; one rule
   weight (1px ink) used only where a section starts; type does the hierarchy (one big title, small labels); flat colour
   blocks; one accent (yellow = today). So: no card frame, no row lines, no column divider, no deadline line; groups are
   set apart by space; a selection is the goal's own colour, never yellow (yellow is today). */
.pl-mini{border:0;border-top:1px solid var(--ink);background:transparent;margin:8px 0 28px}
.pl-mini .pl-n,.pl-mini .pl-c0,.pl-mini .pl-hd,.pl-mini .pl-dm span{background:var(--bg)}
.pl-mh{border-bottom:0;padding:14px 0 10px 0;align-items:flex-end}
.pl-mh b{font-size:24px;font-weight:var(--fw-head);line-height:1;letter-spacing:-.01em}
.pl-mini .pl-gt{padding-left:0}
.pl-mini .pl-c0{padding-left:0}
.pl-gr,.pl-r{border-bottom:0}
.pl-grp{border-bottom:0}
.pl-grp + .pl-grp{margin-top:6px}
.pl-n,.pl-c0{border-right:0}
.pl-hd{border-bottom:1px solid var(--ink)}
.pl-mo span{border-left:0;padding-left:0}
.pl-we i{background:color-mix(in srgb,var(--ink) 2.5%,transparent)}
.pl-dlv{display:none}
/* one row height of bar, flat colour; words upright and small */
.pl-b{top:1px;bottom:1px}
.pl-gsum{top:1px;bottom:1px}
/* selected: the goal's own colour (a tint across the row, a ring on the bar) — yellow stays for today */
.pl-r.sel,.pl-gr.sel,.pl-r.sel .pl-n,.pl-gr.sel .pl-n,.pl-r.pl-now.sel .pl-n{background:color-mix(in srgb,var(--gc,var(--c2)) 14%,var(--bg))}
.pl-b.sel,.pl-b.sel.done{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--gc,var(--c2)) 100%,#000 30%)}
.pl-r.pl-now .pl-n{box-shadow:none}
.pl-r.pl-now .pl-it b{background:var(--acc);color:var(--acc-ink);padding:0 3px}
/* the planner's own page: the same rules */
.pl-top{border-bottom:1px solid var(--ink)}
.pl-bar{border-top:1px solid var(--ink)}
/* header: every button one height; words fold away when the tabs would touch them */
@media (min-width:744px){
  .hdr-r .avatar,#fbBtn,#invBtn,#upBtn{height:40px;min-height:40px;min-width:40px;position:relative}
  .hdr-r .avatar::before{content:"";position:absolute;inset:-2px}
  .hdr.tight .fbb .fbb-l{display:none}
  .hdr.tight .avatar.fbb{width:40px;padding:0;justify-content:center}
}
@media (min-width:744px){
  .hdr.tight .hdate .hd-l,.hdr.tight .hdate .tc svg{display:none}
  .hdr.tight2 .hclock{display:none}
}
.pl-tkd{cursor:ew-resize;touch-action:none}
.pl-tkd::before{content:"";position:absolute;top:50%;left:-14px;width:28px;height:28px;margin-top:-14px}
.pl-mini .pl-tkd{cursor:default}
.pl-tb[disabled]{opacity:.3;cursor:default}
.pl-ur{display:inline-flex;gap:4px}
.pl-gsum .pl-h{z-index:2}
.pl-lenv{display:inline-flex;align-items:center;gap:4px}
.pl-lenv .inp{width:56px;height:44px;padding:0 6px;text-align:center;font-family:var(--f-num);font-size:16px;font-weight:var(--fw-head)}
.pl-lenv em{font-style:normal;font-size:14px;font-weight:var(--fw-head)}
body.plf-on .sheet-wrap{z-index:65}

/* ---------- v0.18.2 preview8 (Amuii) ----------
   Progress bars are flat colour: no black frame on the goal bar, the stage bars or the upload bar. */
.pp-bar i,.sb-b i{box-shadow:none}
.sb-b{box-shadow:none}
.bz i::after{box-shadow:none}
/* Planner colours: each goal its own (purple, green, black by default, or the user's pick, set inline as --gc with
   --gk the colour that reads on it); words on the solid part use --gk. Shows are the calendar's show blue. */
.pl-bl.on{color:var(--gk,var(--ink))}
.pl-cg{--gc:var(--c1);--gk:#fff}
.pl-show{background:var(--c1)}
.pl-cb{background:color-mix(in srgb,var(--c1) 7%,transparent)}
.pl-tkd::after{background:var(--c1)}
.pl-tkd.dn::after{background:var(--line)}
/* Today: one yellow, the calendar's today yellow: a line down the day and 今日 above it. No tinted column, no
   yellow item numbers. */
.pl-tdc{background:none;z-index:4}
.pl-tdc::after{content:"";position:absolute;top:0;bottom:0;left:50%;width:3px;margin-left:-1.5px;background:var(--acc)}
.pl-r.pl-now .pl-it b{background:none;color:inherit;padding:0}
.pl-dm.sel::after{background:var(--ink);box-shadow:0 0 0 2px var(--gc,var(--ink))}
/* the goal's last row: type a name, Enter adds the item */
.pl-add .pl-it{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.pl-ain{flex:1;min-width:0;height:36px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;font-size:14px;padding:0}
.pl-ain:focus{outline:0;border-bottom-color:var(--ink)}
/* goal colour swatches in the selection bar */
.pl-cols{display:inline-flex;align-items:center;gap:10px;padding:0 6px}
.pl-cols{gap:0;flex-wrap:wrap;padding:0}
.pl-cp{width:264px}
.pl-csq{display:inline-block;width:20px;height:20px;flex:none}
.pl-cols .swb{width:44px;height:44px;position:relative;background:none;box-shadow:none;outline:0;display:inline-grid;place-items:center}
.pl-cols .swb[data-gcol]::after{content:"";width:26px;height:26px;background:var(--sw)}
.pl-cols .swb[aria-checked="true"]::after{outline:2px solid var(--ink);outline-offset:2px}
.pl-cols .sw-own{overflow:hidden}
.pl-cols .sw-own input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;border:0;padding:0}
.pl-cols .sw-own svg{width:16px;height:16px}
/* planner top bar: one line on phones (＋目標 ＋展出, 說明 as its icon) */
.pl-new .pl-sm{display:none}
@media (max-width:699px){
  .pl-new .pl-lg,.pl-hb .pl-lg{display:none}
  .pl-new .pl-sm{display:inline}
  .pl-top .pl-tb{padding:0 8px}
  .pl-top .pl-hb{min-width:44px;justify-content:center}
}
/* Today / Goals grid: items planned for today carry their goal's colour on the number; a goal tab with work planned
   today has a small square of that colour */
.ptab{position:relative}
/* planner (Amuii): tools for the whole plan in the top bar (second line), 儲存 at its end; the bottom bar only with a
   selection. The filter opens downwards from up here. */
.pl-tools{flex:1 1 100%;display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;min-height:44px}
.pl-tools .pl-zoom{min-width:0}
.pl-tools .pl-zoom button{min-height:44px;min-width:56px}   /* the seg's own size and weight (2026-11-20) */
.pl-tools .pl-go2{flex:none;min-width:0;margin-left:auto;height:44px;min-height:44px;padding:0 22px;font-size:15px}
.pl-top .pl-fp{top:calc(100% + 8px);bottom:auto}
@media (max-width:699px){
  .pl-tools{gap:4px 6px}
  .pl-tools .pl-zoom{flex:1 1 auto}
  .pl-tools .pl-zoom button{min-width:0}
  .pl-top .pl-fw{position:static}
  .pl-top .pl-fp{position:absolute;left:8px;right:8px;top:calc(100% + 8px);bottom:auto;width:auto}
}
/* the names column stays above today's line, diamonds and bars when scrolled sideways; the date row above it all */
.pl-n{z-index:6}
.pl-hd{z-index:7}
/* colour library (Amuii: more colours, by family): six a row; light colours keep an edge; a colour another goal has
   carries a small ink square; pale goal colours draw the not-done part in the colour itself */
.pl-cp{width:300px;max-height:min(70vh,520px)}
.pl-cp .pl-cols{display:grid;grid-template-columns:repeat(6,44px)}
.pl-cols .swb[data-gcol]::after{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 14%,transparent)}
.pl-b,.pl-b.sel{background:var(--gt,color-mix(in srgb,var(--gc,var(--c2)) 38%,var(--bg)))}
.pl-pg,.pl-b.done,.pl-b.sum s.dn,.pl-b.sel .pl-pg,.pl-b.sel.done,.pl-b.sel.sum s.dn{background:var(--gd,var(--gc,var(--c2)))}
.pl-cg .pl-b{background:var(--c1)}
@media (max-width:699px){ .pl-cp{width:auto} }
.swatches .swb{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 14%,transparent)}
/* activity picker (Amuii): the search is the first line; activities in two columns, long names wrap, nothing sideways */
.cbx-l{grid-template-columns:repeat(2,minmax(0,1fr));overflow-x:hidden}
.cbx-o.cbx-t{min-width:0}
.cbx-o.cbx-t > span:not(.cb-sw){flex:1 1 auto;width:auto;min-width:0;overflow-wrap:anywhere;white-space:normal;line-height:1.25}
.cbx-o.cbx-t .cb-sw{flex:none}
.pl-crm{width:44px;height:44px;color:var(--red)}
/* v0.18.2 preview9 — one colour card (Amuii): the look settings use the planner's card; there it opens in place under its
   button (the settings column scrolls, a floating card would be cut off) */
.pl-cols .swb.cc::after{content:"";width:26px;height:26px;background:var(--sw);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 14%,transparent)}
.lk-cw{margin-top:6px}
.lk-cw .pl-tb{font-family:var(--f-num);letter-spacing:.04em}
.lk-cw .pl-fp{position:static;width:300px;max-width:100%;max-height:none;margin-top:6px}
/* past the deadline: the bar keeps the goal's colour; the late part is framed in the deadline's red */
.pl-late,.pl-b .pl-late{background:none;border:2px solid var(--red);box-sizing:border-box;top:-2px;bottom:-2px;right:-2px;z-index:1}
/* the goal colour card hangs from its button's right edge: it never runs off the right of the screen */
@media (min-width:700px){ .pl-cw .pl-fp.pl-cp{left:auto;right:0} }
/* 關於訂閱制 under the update notes; its link in the upgrade sheet */
.nw-about{margin-top:18px}
.nw-about .sub-p{margin:8px 0 0;font-weight:var(--fw-body)}
.nw-about .sub-l{margin:8px 0 0}
.up-about{margin-top:10px;min-height:44px;font-weight:var(--fw-head);gap:4px}
.up-about .ic{width:20px;height:20px}
/* placing (設定開始日／完成日) on the time line: the day under the pointer is marked in the date row itself */
.pl-dy span.pk{color:var(--ink);font-weight:var(--fw-head);border-bottom:2px solid var(--ink);z-index:2}
.plf:has([data-pkok]) .pl-body{cursor:pointer}
/* the founding offer at the top of the upgrade sheet (until 31 Oct): one big number, what it gives, the price it beats */
.up-hero{padding:4px 0 22px;margin-bottom:18px;border-bottom:1px solid var(--ink)}
.up-ht{margin:0;font-size:12px;font-weight:var(--fw-head);letter-spacing:.06em}
.up-big{display:block;margin:6px 0 8px;font-family:var(--f-num);font-size:clamp(64px,10vw,104px);font-weight:var(--fw-head);letter-spacing:-.04em;line-height:.95}
.up-hero .up-own{margin:0}
.up-anchor{margin:4px 0 0;font-size:15px;color:var(--muted)}
.up-why3{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px;font-size:15px;font-weight:var(--fw-label)}
.up-why3 li{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:baseline}
.up-why3 span{font-family:var(--f-num);font-size:13px;font-weight:var(--fw-head);color:var(--muted)}
.up-proof{margin:16px 0 0;font-size:14px;color:var(--muted)}
.vg-ib.vg-due.late{color:var(--red)}

/* v0.18.3 (Amuii): the upload slot before any picture spans the picture column too — a short wide card, icon beside the words */
.gal-up{align-self:stretch;width:100%;max-width:none;aspect-ratio:auto;min-height:88px;flex-direction:row;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3)}
.gal-up .ic{width:22px;height:22px}
.gal-up .bz{flex-direction:row;width:auto;max-width:none;margin:0;gap:var(--sp-2)}
.gal-up .bz i{width:96px}
.gal-up.row{min-height:52px}

/* v0.18.4 (Amuii): 今日要做 is one line per row — name, then the goal / show in grey on the same line; no rule between rows. */
.cq-r{border-bottom:0;padding:0;min-height:44px}
.cq-r .tk-n{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cq-r .tk-n small{display:inline;margin-left:var(--sp-2)}

/* v0.18.4 (Amuii): the schedule has no grey rules; 調整今日日程 left, 已完成 right; 開始創作 and bedtime are one line each. */
.tl-head{border-bottom:0!important}
.tl2 .tl-r2,.tl2 .tl-pair{border-bottom:0}
.tl-hd2 .gear-lk{margin-left:0!important}
.tl-hd2 .tl-donen{margin-left:auto!important;margin-right:0!important}
.hc2-go > span{display:flex;align-items:baseline;gap:10px;min-width:0}
.hc2-go b{flex:none}
.hc2-go small{margin-top:0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sl3{border-color:var(--faint);padding:0 14px;min-height:48px}
.sl3-t{flex-direction:row;align-items:baseline;gap:10px}
.sl3-t b{flex:none}
.sl3-t small{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* v0.18.4 (Amuii): the planner on a phone — two lines on top (✕ 排期 ↶ ↷ 儲存 / 週▾ ‹今日› 篩選 ＋ ⓘ), two lines at the
   bottom (tools with a short word under each icon / ✕ 已選 − 1 天 + 完成), smaller names on the left. Computers unchanged. */
.pl-zsel,.pl-amw,.pl-brk,.pl-sbs{display:none}
@media (max-width:699px){
  .pl-top{padding:2px 6px;gap:0 2px;min-height:0}
  .pl-tools{display:contents}
  .pl-top .pl-x{order:1;width:44px;height:44px}
  .pl-top .pl-x .ic{width:22px;height:22px}
  .pl-top .pl-tt{order:2;display:block;margin:0 auto 0 2px;font-size:18px}
  .pl-top .pl-ur{order:3;gap:0}
  .pl-top .pl-ur .pl-tb{min-width:44px;padding:0;justify-content:center}
  .pl-urt,.pl-ft,.pl-top .pl-new,.pl-top .pl-zoom{display:none}
  .pl-top .pl-go2{order:4;height:44px;min-height:44px;padding:0 14px;font-size:14px;margin-left:4px}
  .pl-brk{display:block;order:5;flex-basis:100%;height:0}
  .pl-zsel{display:block;order:6;flex:none;max-width:92px;height:36px;padding:0 24px 0 8px;border:1px solid var(--ink);border-radius:0;font:inherit;font-size:14px;font-weight:var(--fw-head);color:var(--ink);-webkit-appearance:none;appearance:none;background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23111%27 stroke-width=%272%27/%3E%3C/svg%3E") no-repeat right 9px center/10px 7px;margin:4px 6px 4px 2px}
  .pl-top .pl-nav{order:7;margin-right:auto}
  .pl-top .pl-fw{order:8}
  .pl-top .pl-fb{min-width:44px;padding:0;justify-content:center}
  .pl-amw{display:block;order:9}
  .pl-top .pl-hb{order:10;min-width:44px}
  /* names on the left: smaller words and arrow */
  .pl-gt b,.pl-it b{font-size:11.5px}
  .pl-it small,.pl-gt small{font-size:9.5px}
  .pl-fold,.pl-fold0{width:18px}
  .pl-fold .ic{width:12px;height:12px}
  .pl-c0{font-size:10px}
  .pl-n,.pl-ain{font-size:12px}
  .pl-fold .ic,.pl-fold svg{width:12px;height:12px}
}

/* v0.18.4: focus on an activity other than creating: a neutral screen (the main colour is for creating only) */
.fx.gen{--acc:var(--soft);--acc-ink:var(--ink);background:var(--soft);color:var(--ink)}
.fx.gen .fx-b1{background:var(--bg);color:var(--ink);border:2px solid var(--ink)}
/* v0.18.4 (Amuii): a pinned time keeps its pin on the same line (it wrapped under the time and poked out of the row) */
.tl-r2 .tl-tm{display:flex;align-items:center;gap:var(--sp-1);white-space:nowrap;min-width:0;overflow:hidden}
.tl-r2 .tl-pin{flex:none;width:10px;height:10px;margin-left:0}
.tl2.h12{--tmw:86px;--tmw-s:82px}   /* 12-hour times ("12:58pm" + pin) need a wider time column */
/* v0.18.4 (Amuii): the bar marking the block on now sits just outside the row, clear of the tick box */
.tl-r2.cur{box-shadow:none}
.tl-r2.cur::before{left:-10px}
.cq-all{display:inline-flex;align-items:center;gap:var(--sp-1);min-height:44px;font-size:13px;font-weight:var(--fw-head);color:var(--ink)}
.cq-all .ic{width:16px;height:16px}

/* v0.18.4 (Amuii): the planner on a computer has one line on top —
   排期 · ↶ ↷ · 篩選 · 週|月|季 · ‹今日›  …  ＋新增目標 ＋新增展出 · ⓘ · 儲存 · ✕ (look on the left, do on the right). */
@media (min-width:700px){
  .pl-top{flex-wrap:nowrap;min-height:0;padding:6px 8px 6px 20px;gap:4px 10px}
  .pl-tools{display:contents}
  .pl-top .pl-tt{order:1;margin:0 8px 0 0;font-size:22px}
  .pl-top .pl-ur{order:2}
  .pl-top .pl-fw{order:3}
  .pl-top .pl-zoom{order:4;flex:none}
  .pl-top .pl-nav{order:5;margin-right:auto}
  .pl-top .pl-new{order:6}
  .pl-top .pl-amw{order:6}
  .pl-top .pl-hb{order:7}
  .pl-top .pl-go2{order:8;margin-left:6px}
  .pl-top .pl-x{order:9;width:44px;height:44px}
  .pl-top .pl-x .ic{width:22px;height:22px}
}
/* not wide enough for every word: the two 新增 become one ＋, undo / redo / filter keep their icons only */
@media (min-width:700px) and (max-width:1099px){
  .pl-top .pl-new{display:none}
  .pl-amw{display:block}
  .pl-urt,.pl-ft,.pl-top .pl-hb .pl-lg{display:none}
  .pl-top .pl-ur .pl-tb,.pl-top .pl-fb,.pl-top .pl-hb{min-width:44px;padding:0;justify-content:center}
  .pl-amw{position:relative}
}
/* v0.18.4: a work's dates are tappable (no frame; the pen says it can be changed) */
.wk-dt{display:inline-flex;align-items:center;gap:6px;min-height:44px;border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:left}
.wk-dt .ic{width:16px;height:16px;color:var(--muted)}
.mo-date{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:4px 0 8px;font-size:14px;font-weight:var(--fw-head);color:var(--ink)}
.mo-date .ic{width:18px;height:18px}
.wk-tb{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:12px}
/* v0.18.4 (Amuii): 新到舊｜舊到新 at the end of the filter row, one line, words the size of the tick boxes' */
.wf-sort{margin-left:auto;flex:none}
.wf-sort button{min-height:44px;padding:0 12px;font-size:14px;font-weight:var(--fw-label);white-space:nowrap}
.wk-tb .wk-filter{margin:0}
/* v0.18.4 (Amuii): on a computer the 週|月|季 seg is the same size as the words around it (it was 46px tall, 14px words,
   the biggest thing in the bar): 32px tall, 12.5px words, like 篩選 / 今日 next to it. */
@media (min-width:700px){
  /* the box is drawn 32px tall; the button itself stays 44px tall so it is as easy to hit as everything else */
  .pl-top .pl-zoom{align-self:center;border:0;background:none}
  /* 2026-11-20 (Amuii: 「點解唔係用緊同一組組件」): 週｜月｜季 is the app's seg — words, the chosen one bold with a line, no boxes */
}
/* v0.18.4 (Amuii): one ‹ › control everywhere (回顧, 排期, 月曆, 揀日子, 時間線): one grey frame, cells joined, 44px tall */
.pnav{display:inline-flex;align-items:stretch;flex:none;border:0;background:none}   /* 2026-11-20 (Amuii: 「點解 ‹今日› 仲用緊呢個樣」): ‹ › and their middle word, no frame — one look everywhere */
.pnav > button{display:inline-flex;align-items:center;justify-content:center;height:44px;min-width:44px;padding:0 14px;margin:0;border:0;border-radius:0;background:none;color:var(--ink);font:inherit;font-size:13px;font-weight:var(--fw-head);white-space:nowrap;cursor:pointer}
.pnav > button + button{border-left:0}
.pnav > .pnav-a{width:44px;padding:0}
.pnav .ic{width:20px;height:20px}
.pnav > button:disabled{opacity:.3;cursor:default}
@media (hover:hover){.pnav > button:not(:disabled):hover{background:var(--soft)}}
.gtl-h .pnav{margin-left:8px}
.c2head .pnav,.mhead .pnav{margin-left:auto}
/* v0.18.4 (Amuii, design rule 13): the plan's bottom bar, one set of rules at every width.
   清除 red words left · 已選 N plain words · the days in one grey frame · flexible space · small icon + word actions
   (icon beside its word) · 完成 rightmost, widest, the only yellow. Placing: plain words, 取消 right beside 完成. */
.plf .pl-bar .pl-sr{display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-height:52px}
.plf .pl-bar .pl-del{order:0;min-height:44px;padding:0 6px;margin:0 8px 0 0;font-size:15px;font-weight:var(--fw-head);color:var(--red)!important}
.plf .pl-bar .pl-sn{display:inline-flex;align-items:center;min-height:44px;margin:0 8px 0 0;padding:0;background:none;color:var(--ink);font-family:var(--f-num);font-size:16px;font-weight:var(--fw-head);white-space:nowrap}
.plf .pl-bar .pl-len{display:inline-flex;align-items:stretch;flex:none;height:auto;padding:0;border:1px solid var(--line)}
.plf .pl-bar .pl-len .pl-ib{width:44px;min-width:44px;height:44px}
.plf .pl-bar .pl-len .pl-ib .ic{width:20px;height:20px}
.plf .pl-bar .pl-lenv{display:inline-flex;align-items:center;gap:4px;padding:0 8px;border-left:1px solid var(--line);border-right:1px solid var(--line)}
.plf .pl-bar .pl-lenv .inp{width:44px;height:44px;padding:0 2px;border:0;background:none;font-size:16px}
.plf .pl-bar .pl-sp{flex:1 1 24px;min-width:24px;height:0}
.plf .pl-bar .pl-sb:not(.pl-del),.plf .pl-bar .pl-cw > .pl-tb{display:inline-flex;flex-direction:row;align-items:center;gap:6px;min-height:44px;height:44px;padding:0 8px;font-size:14px;font-weight:var(--fw-head);color:var(--ink);white-space:nowrap}
.plf .pl-bar .pl-sb .ic,.plf .pl-bar .pl-cw .pl-csq{width:20px;height:20px}
.plf .pl-bar .pl-sbl{display:inline}
.plf .pl-bar .pl-sbs{display:none}
.plf .pl-bar .edbar-go{height:var(--h-row);min-height:var(--h-row);padding:0 var(--sp-4);font-size:16px}
@media (min-width:700px){ .plf .pl-bar .edbar-go{min-width:160px} }
.plf .pl-pkt{margin:0;font-size:15px;font-weight:var(--fw-head);color:var(--ink)}
@media (max-width:1399px){ .plf .pl-bar .pl-sbl{display:none} .plf .pl-bar .pl-sbs{display:inline} }
/* phones keep the two lines Amuii chose for v0.18.4: the actions as equal cells across the first line (a cell = a
   square: icon over a short word; 清除 is its first cell, in red words), then 已選 N · days · 完成 filling the rest.
   Placing: the words, then 取消 (icon beside its word) right beside 完成. */
@media (max-width:699px){
  .plf .pl-bar .pl-sr{gap:0;min-height:0}
  .plf .pl-bar .pl-sp{order:2;flex:1 1 100%;min-width:0}
  .plf .pl-bar .pl-sb,.plf .pl-bar .pl-cw{order:1;flex:1 1 48px;min-width:0}
  .plf .pl-bar .pl-sb:not(.pl-del),.plf .pl-bar .pl-cw > .pl-tb{flex-direction:column;justify-content:center;gap:2px;width:100%;height:52px;min-height:52px;padding:4px 0;font-size:11px}
  .plf .pl-bar .pl-del{margin:0;padding:0 2px;height:52px;font-size:12px;line-height:1.2;white-space:normal;text-align:center}
  .plf .pl-bar .pl-sb span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .plf .pl-bar .pl-sn,.plf .pl-bar .pl-len,.plf .pl-bar .edbar-go{order:3}
  .plf .pl-bar .edbar-del-i{order:1}
  .plf .pl-bar .pl-sn{font-size:14px}
  .plf .pl-bar .edbar-go{margin-left:var(--sp-2);height:var(--h-tap);min-height:var(--h-tap);padding:0 var(--sp-3)}
  .plf .pl-bar.pk .pl-pkt{order:1;flex:1 1 100%;margin-bottom:4px}
  .plf .pl-bar.pk .pl-sb{order:3;flex:none;width:auto;flex-direction:row;gap:6px;height:44px;min-height:44px;padding:0 8px;font-size:13px}
  .plf .pl-bar.pk .pl-sb span{overflow:visible}
  /* the top's second line: ‹ › a little narrower so 週▾ ‹今日› 篩選 ＋ ⓘ fit one line (still 44px tall) */
  .pl-top .pnav > .pnav-a{width:36px;min-width:36px}
  .pl-top .pnav > button:not(.pnav-a){padding:0 8px}
}
/* v0.18.4 (Amuii) CTA rule for sheets (one decision): the primary is full width at the bottom, 52px, icon + words
   saying what happens; a note goes under it; other choices are small and sit above it; the only way out is 關閉 at
   the top. Action bars with several actions (editors, plan, share) keep design rule 13 and are left out here. */
.sheet .sheet-f:not(.shs-f):not(.pin-foot):not(.act-row){display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px 16px}
.sheet .sheet-f:not(.shs-f):not(.pin-foot):not(.act-row) > :is(.btn.red,.btn.danger,button[type="submit"]){order:10;flex:1 1 100%;width:100%;min-height:52px;margin:0;justify-content:center;justify-self:auto}
.sheet .sheet-f:not(.shs-f):not(.pin-foot):not(.act-row) > p{order:11;flex:1 1 100%;margin:0;max-width:none}
.up-why3 li > div{min-width:0}
.up-next{display:block;margin-top:2px;font-size:13px;font-weight:var(--fw-body);color:var(--muted);line-height:1.5}
/* v0.18.4 (Amuii): ‹ 今日 › on the plan's top is drawn exactly like 週｜月｜季 beside it (box 32px, 12.5px words; the
   button stays 44px tall to hit); on a phone like 週▾ beside it (box 36px, 14px). Recap: words the size of 月｜年. */
.pl-top .pnav{border:0;background:none;align-self:center}
.pl-top .pnav > button{position:relative;z-index:0;height:44px;background:none;border:0;font-size:12.5px}
@media (hover:hover){.pl-top .pnav > button:not(:disabled):hover{background:none}.pl-top .pnav > button:not(:disabled):hover::before{background:var(--soft)}}
@media (max-width:699px){
  .pl-top .pnav > button{font-size:14px}
  .pl-top .pnav > button::before{top:4px;bottom:4px}
}
.st-nav > button{font-size:14px}

/* v0.18.6: a day counter (3d · Today · 1d ago) has no icon, so even padding */
.tc.tcn{padding-left:7px;padding-right:7px}
/* v0.18.6: Adjust today / tomorrow bar: small frameless secondaries (icon + words), the primary fills the rest.
   Phones: icon above the words so all four fit one row (same as the block bar's small buttons). */
.edbar-s{display:inline-flex;align-items:center;gap:6px;min-height:52px;padding:0 6px;border:0;background:none;color:var(--ink);font:inherit;font-weight:var(--fw-head);font-size:14px;line-height:1.15;cursor:pointer;white-space:nowrap}
.edbar-s .ic{width:20px;height:20px;flex:none}
@media (max-width:480px){
  body.tpbar-on .adj-bar{gap:4px;padding-left:8px;padding-right:8px}
  .edbar-s{flex-direction:column;justify-content:center;gap:2px;padding:4px 2px;font-size:12px;text-align:center;white-space:normal;min-width:0}   /* phone: a secondary is an icon over its word, in every action bar */
  .edbar-go{font-size:14px;padding:0 10px}
}
.adj-new .sheet-b .inp{width:100%}
/* v0.18.6: 設定開始時間 above a schedule with no times: frameless secondary, icon + words, 44px */
.tl-st0{display:inline-flex;align-items:center;gap:var(--sp-2);min-height:44px;padding:0;color:var(--ink);font-weight:var(--fw-head);font-size:14px}
.tl-st0 .ic{width:20px;height:20px}

/* v0.18.7 recap shades: by the day's own target; 調整深淺 under the legend; one custom colour (S.settings.heat) */
.hm-cust .hl1{background:color-mix(in srgb,var(--hm) 22%,var(--bg))!important;color:var(--ink)!important}
.hm-cust .hl2{background:color-mix(in srgb,var(--hm) 48%,var(--bg))!important;color:var(--ink)!important}
.hm-cust .hl3{background:color-mix(in srgb,var(--hm) 74%,var(--bg))!important;color:var(--hm-ink3)!important}
.hm-cust .hl4{background:var(--hm)!important;color:var(--hm-ink)!important}
.hm-cust .hm-c.hl3.due::after,.hm-cust .hm-c.hl4.due::after{border-right-color:var(--hm-ink)}
.st-foot>.lk{min-height:44px}
.st-heat{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:10px 0 4px}
.st-heat .me-inline{display:flex;align-items:center;gap:8px}
.st-heat .lk-cw{width:100%}

/* v0.18.7 項目細節: where you are (goal / 01), a big 返回, ‹ › to the next item; a writing field ready to type in;
   links with their preview picture; pictures. Ink lines only, square, no shadow, 44px+ targets. */
.idt{display:flex;flex-direction:column;gap:14px;padding:4px 0 8px}
.idt-h{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:2px solid var(--ink)}
.idt-back{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 18px 0 12px;border:1.5px solid var(--ink);border-radius:0;background:var(--bg);color:var(--ink);font:inherit;font-weight:var(--fw-head);font-size:16px;cursor:pointer}
.idt-back .ic{width:24px;height:24px;stroke-width:2.4}
.idt-bc{flex:1;min-width:0;margin:0;display:flex;flex-direction:column;line-height:1.15}
.idt-bc span{font-size:13px;font-weight:var(--fw-head);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.idt-bc b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:28px;letter-spacing:-.02em}
.idt-nav{flex:none}
.idt-pos{display:flex;align-items:center;padding:0 10px;font-family:var(--f-num);font-weight:var(--fw-head);font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.idt-name{width:100%;box-sizing:border-box;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:4px 0;min-height:48px;font:inherit;font-weight:var(--fw-head);font-size:26px;color:var(--ink)}
.idt-name:focus{outline:0;border-bottom-color:var(--ink)}
.idt-acts{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px}
.idt-acts .lk{min-height:44px}
.idt-acts .idt-dl{color:var(--red)}
.idt-sp{flex:1}
.idt-desc{width:100%;box-sizing:border-box;min-height:160px;border:1.5px solid var(--ink);border-radius:0;padding:14px 16px;font:inherit;font-size:16px;line-height:1.75;background:var(--bg);color:var(--ink);resize:vertical;overflow:hidden}
.idt-desc:focus{outline:0;box-shadow:inset 0 0 0 1px var(--ink)}
.idt-lab{margin:6px 0 -6px;font-size:12px;font-weight:var(--fw-head);letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
.idt-ls{display:flex;flex-direction:column}
.idt-ls:empty{display:none}
.idt-lnk{display:flex;align-items:center;gap:8px;border-top:1px solid var(--ink);padding:8px 0}
.idt-lnk:last-child{border-bottom:1px solid var(--ink)}
.idt-la{flex:1;min-width:0;display:flex;align-items:center;gap:12px;min-height:72px;color:var(--ink);text-decoration:none}
.idt-lim{flex:none;width:72px;height:72px;object-fit:cover;display:block;background:var(--bg)}
.idt-lim.none{display:grid;place-items:center;border:1px solid var(--ink)}
.idt-lim.none .ic{width:24px;height:24px}
.idt-lt{min-width:0;display:flex;flex-direction:column;gap:2px}
.idt-lt b{font-size:15px;font-weight:var(--fw-head);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.idt-lt small{font-size:12px;font-weight:var(--fw-label);color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.idt-x{flex:none;width:44px;height:44px;display:grid;place-items:center;border:0;background:none;color:var(--red);cursor:pointer;padding:0}
.idt-x .ic{width:20px;height:20px}
.idt-lin{width:100%;box-sizing:border-box;min-height:48px;border:1.5px solid var(--ink);border-radius:0;padding:0 14px;font:inherit;font-size:15px;background:var(--bg);color:var(--ink)}
.idt-ps{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
.idt-p{position:relative}
.idt-pb{display:block;width:100%;aspect-ratio:1;border:0;padding:0;background:var(--soft);cursor:zoom-in}
.idt-pb img{display:block;width:100%;height:100%;object-fit:cover}
.idt-p .idt-x{position:absolute;top:0;right:0;background:var(--bg)}
.idt-up{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;border:1.5px solid var(--ink);border-radius:0;background:var(--bg);color:var(--ink);font:inherit;font-weight:var(--fw-head);font-size:15px;cursor:pointer}
.idt-up .ic{width:22px;height:22px}
.idt-zoom img{display:block;max-width:100%;max-height:80vh;margin:0 auto}
@media (max-width:420px){ .idt-pos{display:none} .idt-back{padding:0 14px 0 10px} }


/* v0.18.7 round 2 項目細節 (Amuii): no lines, no frames. The goal title is the breadcrumb 「目標 › 01」 (tap = back; a long goal
   name ends in 「…」, the number always shows); with no detail open a long goal name wraps inside its own space, so
   share and gear never drop to a second line. Name + ‹ › (no frame), date under the name, 刪除 · 暫停 last. */
.pp-h{flex-wrap:nowrap}
.pp-h .pp-name{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.idt-crumb.pp-name{display:flex;align-items:center;min-height:44px;margin:0;padding:0;border:0;background:none;color:var(--ink);text-align:left;cursor:pointer}
.idt-crg{min-width:0;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.idt-crs{flex:none;margin:0 8px;color:var(--muted)}
.idt-crn{flex:none;font-family:var(--f-num);font-weight:var(--fw-head)}
.pr-h.idt-crumb .pr-name{display:flex;align-items:baseline;min-width:0}
@media (hover:hover){.idt-crumb:hover .idt-crg{color:var(--ink)}}
.idt-h{gap:8px;padding:0;border:0}
.idt-name{flex:1;min-width:0;border-bottom:0;padding:0}
.idt-name:focus{border-bottom:0}
.idt-nav.pnav,.idt-nav.pnav > button + button{border:0}
.idt-due{display:flex;margin-top:-10px}
.idt-due .lk{min-height:44px}
.idt-desc,.idt-lin{border:0;background:var(--soft)}
.idt-desc:focus,.idt-lin:focus{outline:0;box-shadow:none}
.idt-lnk,.idt-lnk:last-child{border:0;padding:4px 0}
.idt-lim.none{border:0;background:var(--soft)}
.idt .idt-up{border:0}
.idt-acts{margin-top:8px}
.pp-h .pp-share,.pp-h .pp-gear{flex:none;align-self:center;min-height:44px}

/* v0.18.7 round 3 (Amuii): right-hand icons sit flush on the right edge like the text on the left; one spacing rhythm
   in 項目細節 (12px between parts, 8px from a label to its content). 44px targets stay, absorbed by negative margins. */
.pp-h{margin-bottom:4px}
.pp-h .pp-share{margin-left:auto}
.pp-h .pp-share,.pp-h .pp-gear{width:44px;min-width:44px;justify-content:flex-end;padding:0}
.pp-h .pp-share + .pp-gear{margin-left:-8px}
.idt{gap:12px;padding:0}
.idt-nav > .pnav-a{justify-content:flex-end}
.idt-due{margin:-14px 0 -10px}
.idt-lab{margin:4px 0 -4px}
.idt-acts{margin:-10px 0 -14px}

/* v0.18.8 landing page (js/views/landing.js; docs/LANDING.md is the spec). One set of rules (round 7, Amuii 2026-10-30):
   - Every band is full bleed and touches the next: white / lime (finished, most important) / black (the show, the end).
     Inside a band, blocks sit side by side with no gap (bento); never a card or a board inside a block.
   - The words keep one left line, the 1200px grid's edge (--g); the blocks themselves run to the page edge.
   - Huge type carries the page and may run off the edge or across a block's edge. A small label top left, big words under it.
     One huge number per screen. Lines only in tables and lists (price, 04, questions) and in the app's own screens.
   - The app's .btn.red: lime on white or black, black with lime type on a lime block. One per screen.
   - Motion: a wipe and a short rise with the scroll; no sideways moves, no turns. Always light. */
.lp{--bg:#fff;--soft:#f3f3f1;--line:#e2e2df;--ink:#0f0f0f;--muted:#0f0f0f;--faint:#b3b3ae;--acc:#e5ff1f;--acc-ink:#0f0f0f;--acc-tint:#e5ff1f;color-scheme:light;
  --g:max(16px,calc(50cqw - 600px));--pad:clamp(64px,9vw,136px);container-type:inline-size;
  position:fixed;inset:0;z-index:calc(var(--z-sheet) - 1);background:#fff;color:var(--ink);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;
  font-size:16px;line-height:1.6;
  /* the front door never takes the user's own look (themes.js writes it on <html>): fonts, activity colours and
     corners are pinned here */
  --f-num:"Inter Tight","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;--f-body:var(--f-num);font-family:var(--f-body);
  --c1:#2F6BFF;--c2:#B5B5AF;--c3:#FF6A13;--c4:#14894F;--rad:0px;--rad2:0px}
.lp *{border-radius:0!important}
html.lp-on,html.lp-on body{overflow:hidden}
.lp-y{--bg:var(--acc);background:var(--acc);color:#0f0f0f}
.lp-k{--bg:#0f0f0f;--ink:#f4f4f0;background:#0f0f0f;color:#f4f4f0}
.lp-w{background:#fff}
.lp-s{padding:var(--pad) var(--g)}
.lp h1,.lp h2,.lp h3,.lp p,.lp figure,.lp blockquote,.lp ul{margin:0}
.lp :is(h1,h2,.lp-kn,.lp-600,.lp-ob b){word-break:keep-all;overflow-wrap:normal}
.lp h1{font-size:clamp(44px,6.6vw,108px);line-height:1.04;font-weight:var(--fw-head);letter-spacing:-.035em}
.lp h2{font-size:clamp(36px,5.6vw,96px);line-height:1.06;font-weight:var(--fw-head);letter-spacing:-.035em}
.lp-tag{display:flex;align-items:baseline;gap:14px;margin-bottom:clamp(24px,3vw,40px)!important;font-size:14px;font-weight:var(--fw-head);letter-spacing:.06em;line-height:1.3}
.lp-tag b{font-family:var(--f-num);font-weight:var(--fw-head)}
.lp .lp-go{min-height:52px;padding:12px 26px;font-size:17px;font-weight:var(--fw-head);gap:10px;display:inline-flex;align-items:center;justify-content:center}
.lp .lp-go .ic{width:20px;height:20px;stroke-width:2.4}
.lp-y .lp-go{background:#0f0f0f;color:var(--acc)}
.lp-cta{margin-top:clamp(28px,4vw,48px)}
.lp-img{aspect-ratio:4/3;background:var(--soft);display:grid;place-items:center;color:var(--ink);font-size:13px;font-weight:var(--fw-head)}
/* big words come in with the scroll: a wipe from below and a short rise */
.lp [data-rv]{opacity:0;clip-path:inset(0 0 100% 0);transform:translateY(40px);transition:opacity .5s ease,clip-path .9s cubic-bezier(.2,.8,.2,1),transform .9s cubic-bezier(.2,.8,.2,1)}
.lp [data-rv].in{opacity:1;clip-path:inset(-40% -40% -40% -40%);transform:none}
.lp-vq [data-rv]:nth-child(3n+2),.lp-ob [data-rv]:nth-child(2){transition-delay:.08s}
.lp-vq [data-rv]:nth-child(3n),.lp-ob [data-rv]:nth-child(3){transition-delay:.16s}
/* top bar: the brand; the start button (only while no other one is on screen) and the language switch */
.lp-top{position:sticky;top:0;z-index:6;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px;padding:env(safe-area-inset-top,0px) var(--g) 0;box-sizing:content-box}
.lp-brand{display:inline-flex;align-items:center;gap:10px;font-size:19px;font-weight:var(--fw-head);letter-spacing:-.01em;white-space:nowrap}
.lp-logo{width:26px;height:26px;flex:none}
.lp-tr2{display:flex;align-items:center;gap:12px}
.lp-top .lp-go{min-height:44px;padding:8px 18px;font-size:15px;display:none}
.lp-top .lp-go.on{display:inline-flex}
/* 登入: a returning user's way back in; words only, no frame (the lime button stays the one main button) */
.lp-in{min-height:44px;padding:0 4px;border:0;background:none;color:inherit;font:inherit;font-size:15px;font-weight:var(--fw-head);white-space:nowrap;cursor:pointer}
.lp-top .seg{display:grid;grid-template-columns:1fr 1fr}
.lp-top .seg button{min-height:44px;min-width:52px;padding:0 12px;white-space:nowrap}
/* hero: lime block (the promise) and white block (the app's grid), flush; a giant Create First runs across both */
.lp-hero{position:relative;overflow:clip;display:grid;grid-template-columns:1fr 1fr;min-height:calc(100dvh - 64px)}
.lp-hl,.lp-hr{position:relative;z-index:2;box-sizing:border-box;padding-top:clamp(40px,7vh,88px);padding-bottom:clamp(160px,22vw,320px)}
.lp-hl{padding-left:var(--g);padding-right:clamp(24px,3vw,48px)}
.lp-hr{background:#fff;padding-left:clamp(24px,3vw,48px);padding-right:var(--g)}
.lp-what{margin-bottom:20px!important}
.lp-web{margin-top:14px!important;font-size:15px;font-weight:var(--fw-head)}
.lp-fwhat{flex-basis:100%;font-size:15px}
.lp-sub{margin-top:28px!important;font-size:clamp(20px,1.9vw,26px);font-weight:var(--fw-head);line-height:1.45}
.lp-live{display:flex;align-items:center;gap:8px;margin-top:16px!important;font-size:14px;font-weight:var(--fw-head)}
.lp-live[hidden]{display:none}
.lp-live i{width:8px;height:8px;background:#0f0f0f;animation:lpBlink 1.6s steps(2) infinite}
@keyframes lpBlink{50%{opacity:.25}}
.lp-giant{position:absolute;left:-.05em;bottom:-.2em;z-index:3;font-size:clamp(110px,23vw,420px);line-height:1;font-weight:var(--fw-head);letter-spacing:-.06em;white-space:nowrap;color:var(--acc);mix-blend-mode:multiply;pointer-events:none;user-select:none}
.lp-card{position:relative;will-change:transform}
.lp-tile{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding-bottom:16px}
.lp-cap{font-size:14px;font-weight:var(--fw-head);letter-spacing:.04em;align-self:flex-start}
.lp-pct{display:flex;align-items:baseline;gap:6px;font-family:var(--f-num);font-variant-numeric:tabular-nums;font-weight:var(--fw-head);line-height:.86;letter-spacing:-.05em}
.lp-tile .lp-pct{transform-origin:100% 100%}
.lp-tile .lp-pct b{font-size:clamp(96px,11vw,176px)}
.lp-tile .lp-pct span{font-size:clamp(28px,3vw,48px);letter-spacing:-.01em}
.lp-bump{animation:lpBump .45s cubic-bezier(.2,1.6,.4,1)}
@keyframes lpBump{0%{transform:scale(1)}35%{transform:scale(1.14)}100%{transform:scale(1)}}
.lp-gw .vgrid{width:100%;max-width:none;--vgn:44px}
.lp-gw .vgrid .vg-h{position:static;background:transparent}
.lp-gw .vg-st{min-width:0;width:auto}
.lp-gw .vg-st b{display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:normal;word-break:keep-all;hyphens:none;white-space:normal;line-height:1.15}
.lp-gw .vg-nm,.lp-gw .vg-no{pointer-events:none}
.lp-gw .vg-c{cursor:pointer}
.lp-gw .vg-c.lp-todo{box-shadow:inset 0 0 0 2px var(--ink);animation:lpWait 1.1s ease-in-out infinite}
@keyframes lpWait{50%{background:color-mix(in srgb,var(--acc) 45%,#fff)}}
.lp-gw .vg-c.lp-pop{animation:lpPop .5s cubic-bezier(.2,1.8,.4,1)}
@keyframes lpPop{0%{transform:scale(.4)}45%{transform:scale(1.45)}100%{transform:scale(1)}}
.lp-gw .vg-r.lp-flash{animation:lpFlash .9s ease-out}
@keyframes lpFlash{0%,30%{background:var(--acc)}100%{background:transparent}}
.lp-gw .lp-fold{cursor:default;pointer-events:none}
/* 01 four kinds: one screen each, two blocks filling it; the words stay while the app's screen plays */
.lp-sc{height:240vh;background:#fff}
.lp-stk{position:sticky;top:64px;height:calc(100vh - 64px);height:calc(100dvh - 64px);overflow:clip}
.lp-bento{display:grid;grid-template-columns:1fr 1fr;height:100%}
.lp-kt{display:flex;flex-direction:column;min-height:0;padding:clamp(28px,5vh,56px) clamp(24px,3vw,48px) 0 var(--g);overflow:hidden}
.lp-kk{background:#0f0f0f;color:#f4f4f0}
.lp-ky{background:var(--acc);color:#0f0f0f}
.lp-kn{display:flex;align-items:center;flex-wrap:wrap;gap:16px;font-size:clamp(34px,4.6vw,72px);line-height:1.06;font-weight:var(--fw-head);letter-spacing:-.03em}
.lp-kn .ic{width:clamp(34px,4vw,60px);height:clamp(34px,4vw,60px);flex:none;stroke-width:2.2}
.lp-kl{margin-top:24px!important;font-size:clamp(18px,1.8vw,26px);font-weight:var(--fw-label);line-height:1.45}
.lp-kno{margin-top:auto;padding-top:16px;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(150px,17vw,280px);line-height:.76;letter-spacing:-.06em}
.lp-kv{position:relative;box-sizing:border-box;height:100%;background:#fff;display:flex;flex-direction:column;overflow:hidden;padding:clamp(24px,4vh,48px) var(--g) clamp(24px,4vh,48px) clamp(24px,3vw,48px)}
.lp-kvi{flex:1;min-height:0;display:flex;flex-direction:column;will-change:transform,opacity}
.lp.rm .lp-sc{height:auto}
.lp.rm .lp-stk{position:static;height:auto}
/* the planner, as the app draws it; read only; a wipe uncovers it from left to right */
.lp-pl{position:relative;flex:1;min-height:0;--pl-nw:150px}
/* the deadline's words (the goal's name and date) sit to the diamond's left, so they stay in view */
.lp-pl .pl-dm.lp-dlab span{left:auto;right:10px;font-size:12px;background:#fff}
.lp-pl .pl{--pl-nw:inherit;--rh:30px}
.lp-pl .pl-sc{height:100%;overflow:hidden;padding-bottom:0}
/* the app's own scrollers stop the wheel at their edge (overscroll-behavior: contain); here they are read only, so the
   page scrolls wherever the pointer is */
.lp-kv *,.lp-hr *{overscroll-behavior:auto!important}
/* planner bars in the secondary purple (Amuii, round 8): done solid, the rest a light purple */
.lp-pl .pl-pg,.lp-pl .pl-b.done,.lp-pl .pl-b.sum s.dn{background:#6b4eff!important}
.lp-pl .pl-b{cursor:default}
.lp-pl .pl-hd{position:static}
.lp-pl .pl-c0{min-height:0}
.lp-pl button,.lp-pl .pl-fold{pointer-events:none}
.lp-pl .pl-dm{transition:none}
/* the 要做 list, as on the Today page */
.lp-cq{flex:1;display:flex;flex-direction:column;justify-content:space-between;gap:4px}
.lp-cq .tk-r{cursor:default}
.lp-cq .tk-n{font-size:16px}
.lp-cq .tk-r.done .tl-box{background:var(--acc);border-color:var(--acc-ink);animation:lpPop .45s cubic-bezier(.2,1.8,.4,1)}
/* starting out: day 1 and day 100; after work: this year's hours, a column a month growing up */
/* starting out: Amuii's sketches, one page at a time, flipping with the scroll; the day count above */
.lp-flip{position:relative;flex:1;min-height:0;margin-top:8px}
.lp-flip img{position:absolute;left:0;top:0;height:100%;width:auto;max-width:100%;object-fit:contain;object-position:left top;opacity:0}
.lp-flip img.on{opacity:1}
.lp-pct2 b{font-size:clamp(44px,4.4vw,64px)}
.lp-pct2 span{font-size:clamp(17px,1.6vw,22px)}
.lp-sl{font-size:16px;font-weight:var(--fw-head)}
.lp .lp-bar{display:block;flex:none;height:10px;margin:14px 0 18px}
.lp-mo{display:flex;flex:none;align-items:flex-end;gap:clamp(4px,1vw,12px);height:clamp(140px,24vh,260px);margin:16px 0}
.lp-mo div{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:6px}
.lp-mo i{display:block;width:100%;height:0;background:#6b4eff}
.lp-kv .lp-bar i{background:#6b4eff}
.lp-mo span{text-align:center;font-size:11.5px;font-weight:var(--fw-head)}
/* 02 black: 600+ huge and lime; six quotes three by two, white space between, no lines */
.lp-600{display:flex;flex-direction:column;color:var(--acc);font-weight:var(--fw-head);letter-spacing:-.04em}
.lp-600 b{font-family:var(--f-num);font-size:clamp(110px,15vw,240px);line-height:.86;letter-spacing:-.06em}
.lp-600 span{margin-top:12px;font-size:clamp(34px,5vw,80px);line-height:1.08}
.lp-vq{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(40px,4vw,64px) clamp(32px,3vw,56px);margin-top:clamp(56px,7vw,112px)}
.lp-vq p{font-size:clamp(19px,1.7vw,24px);line-height:1.5;font-weight:var(--fw-head)}
.lp-vq .mk{background:var(--acc);color:#0f0f0f;padding:0 4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
/* 03 the maker: a lime block on top; the big line crosses its lower edge; the picture bleeds to the left edge */
.lp-mey{display:flow-root;padding:var(--pad) var(--g) 0}
.lp-me-q{position:relative;z-index:1;font-size:clamp(40px,6.4vw,112px)!important;margin-bottom:-.62em!important}
.lp-mew{background:#fff;padding-top:calc(clamp(40px,6.4vw,112px) * .62 + 32px)}
.lp-mtx{padding:0 var(--g) var(--pad)}
.lp-mtx>*{max-width:760px}
.lp-story p{margin-bottom:16px!important;font-size:18px;line-height:1.7}
.lp-sign{margin-top:24px!important;font-size:15px;font-weight:var(--fw-head)}
/* 04 numbered rows (Contra): the question huge, the answer beside; a line each */
.lp-ob{list-style:none;padding:0}
.lp-ob li{display:grid;grid-template-columns:clamp(40px,6vw,96px) minmax(0,1.6fr) minmax(0,1fr);gap:24px;align-items:baseline;padding:clamp(24px,3vw,40px) 0;border-bottom:1.5px solid #0f0f0f}
.lp-ob li:first-child{border-top:1.5px solid #0f0f0f}
/* not .lp-on: that is the class <html> carries while the page is open, which made every word 900 */
.lp-ono{font-family:var(--f-num);font-weight:var(--fw-head);font-size:16px}
.lp-ob b{display:block;font-size:clamp(26px,3.4vw,54px);line-height:1.12;font-weight:var(--fw-head);letter-spacing:-.025em}
.lp-ob li>span:last-child{font-size:clamp(17px,1.5vw,21px);font-weight:var(--fw-label);line-height:1.5}
/* 05 lime: the table straight on the band, full width; lines between rows; the yearly column one black bar */
.lp-price h2{margin-bottom:clamp(48px,6vw,96px)!important}
.lp-pt{display:flex;flex-direction:column;position:relative}
.lp-pr{display:grid;grid-template-columns:minmax(0,1.2fr) repeat(3,minmax(0,1fr));border-bottom:1.5px solid #0f0f0f}
.lp-pr>*{padding:18px 20px;min-width:0}
.lp-pr>:first-child{padding-left:0}
.lp-prl{font-weight:var(--fw-head)}
.lp-pcol{font-weight:var(--fw-head);font-size:17px}
.lp-pyr{position:relative;z-index:1;color:#f4f4f0}
.lp-ybar{position:absolute;top:0;bottom:0;right:0;width:calc(100% / 4.2);background:#0f0f0f}
.lp-ph .lp-pcol{display:flex;flex-direction:column;gap:12px;padding-top:28px;padding-bottom:28px}
.lp-pn{font-size:15px;font-weight:var(--fw-head);letter-spacing:.04em}
.lp-pp{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;font-family:var(--f-num);font-weight:var(--fw-head);letter-spacing:-.04em;line-height:1}
.lp-pp b{font-size:clamp(40px,4.2cqw,56px)}
.lp-pp span{font-size:15px;letter-spacing:0;white-space:nowrap}
.lp-pyr .lp-pp b{color:var(--acc)}
.lp-pw{font-size:15px;font-weight:var(--fw-label);line-height:1.45}
.lp-pf{border-bottom:0}
.lp-pf>*{padding-bottom:0!important}
.lp-pf .lp-go{width:100%}
.lp-off{display:inline-block;background:#6b4eff;color:#fff;font-weight:var(--fw-head);font-size:15px;line-height:1;padding:8px 10px;white-space:nowrap}
/* 06 questions: a line each, opened on tap */
.lp-qs details{border-bottom:1.5px solid #0f0f0f}
.lp-qs details:first-child{border-top:1.5px solid #0f0f0f}
.lp-qs summary{-webkit-tap-highlight-color:transparent;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:72px;padding:20px 0;font-size:clamp(20px,2.2vw,30px);line-height:1.3;font-weight:var(--fw-head);cursor:pointer}
.lp-qs summary::-webkit-details-marker{display:none}
.lp-qs summary .ic{flex:none;width:24px;height:24px;transition:transform .2s}
.lp-qs details[open] summary .ic{transform:rotate(45deg)}
.lp-qs details p{padding:0 0 32px;max-width:760px;font-size:18px;font-weight:var(--fw-body);line-height:1.6}
/* end: black, the line huge and lime */
.lp-end{padding-top:clamp(96px,14vw,220px);padding-bottom:clamp(96px,14vw,220px)}
.lp-end h2{color:var(--acc);font-size:clamp(52px,8.6vw,150px);line-height:1.04}
.lp-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;align-items:center;padding:28px var(--g) max(32px,env(safe-area-inset-bottom,0px));font-size:13px}
.lp-foot p{display:flex;flex-wrap:wrap;gap:4px 20px}
.lp-foot a{color:inherit;min-height:44px;display:inline-flex;align-items:center}
.lp .confetti{z-index:var(--z-bar2)}
.lp.rm *{animation:none!important;transition:none!important}
.lp.rm [data-rv]{opacity:1;clip-path:none;transform:none}
/* phone: blocks stack, same order; only spacing shrinks */
@media (max-width:860px){
  .lp-top{gap:8px}
  .lp-brand{gap:6px;font-size:15px}
  .lp-logo{width:22px;height:22px}
  .lp-tr2{gap:8px}
  .lp .lp-top .lp-go{padding:8px 10px;gap:6px;font-size:14px;white-space:nowrap;flex:none}
  .lp-top .seg button{min-width:44px;padding:0 8px}
  .lp-in{font-size:14px;padding:0 2px}
  /* one slot on a phone: while the lime start button shows in the bar (it opens the same sign-in), 登入 steps aside */
  .lp-top .lp-go.on~.lp-in{display:none}
  .lp-hero{grid-template-columns:minmax(0,1fr);min-height:0}
  .lp-hl{padding:40px var(--g) 48px}
  .lp-hr{padding:28px var(--g) 120px}
  .lp-giant{font-size:112px}
  .lp-gw .vgrid{--vgn:36px}
  .lp-gw .vg-c{height:44px}
  .lp-gw .vg-st b{font-size:10.5px;letter-spacing:-.01em}
  .lp-sc{height:220vh}
  .lp-bento{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .lp-kt{padding:20px var(--g) 0}
  .lp-tag{margin-bottom:14px!important;font-size:13px}
  .lp-kn{gap:10px;font-size:30px}
  .lp-kn .ic{width:30px;height:30px}
  .lp-kl{margin-top:10px!important;font-size:16px}
  .lp-kt{position:relative}
  .lp-kt .lp-tag,.lp-kt .lp-kn{padding-right:104px}
  .lp-kno{position:absolute;top:18px;right:var(--g);margin:0;padding:0;font-size:80px}
  .lp-kt{padding-bottom:20px}
  .lp-kv{padding:16px var(--g)}
  .lp-pl{--pl-nw:48px}
  .lp-pl .pl-n .pl-it span,.lp-pl .pl-gn .pl-gt,.lp-pl .pl-gn .pl-fold{display:none}
  .lp-vq{grid-template-columns:minmax(0,1fr)}
  .lp-ob li{grid-template-columns:32px minmax(0,1fr);gap:8px 16px}
  .lp-ob li>span:last-child{grid-column:2}
  .lp-pr{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lp-ybar{width:calc(100% / 3)}
  .lp-prl{position:relative;z-index:1}
  .lp-pr>:first-child{grid-column:1/-1;padding:12px 0 0}
  .lp-ph>:first-child,.lp-pf>:first-child{display:none}
  .lp-pr>*{padding:10px}
  .lp-pcol{font-size:15px}
  .lp-pp b{font-size:clamp(20px,6cqw,28px)}
  .lp-pf>.lp-pfree{grid-column:1/span 2;padding:16px 10px 0 0}
  .lp-pf>.lp-pmo{display:none}
  .lp-off{padding:6px 8px;font-size:13px}
}
/* v0.18.8: weekdays with no template: a warning and one full-width button right under the template that can take them */
.tpfix{display:flex;flex-direction:column;gap:8px;padding:0 0 12px;border-bottom:1px solid var(--line)}
.tpfix .btn{width:100%;min-height:44px}
/* v0.18.9: 按目標｜按項目 sits before the order, at the end of the filter row, the same size */
/* the two go together as the one thing pushed to the far end of the row */
.wf-end{margin-left:auto;flex:none;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.wf-end .wf-sort,.wf-end .wf-by{margin-left:0;flex:none}
.wf-by button{min-height:44px;padding:0 12px;font-size:14px;font-weight:var(--fw-label);white-space:nowrap}
/* v0.18.10 (Amuii approved the mock-up): every upload place is ONE zone and the whole of it is the upload button.
   app's upload frame (soft + 1px line) · 16 all round · icon 28 · 12 icon → words · bold what (15/20) · grey how (13/18) ·
   貼上 inside on the right, as tall as the zone · 72px · hover = black frame · dragging = lime + black frame, 「放手即加入」 ·
   working = only 上傳中 (貼上 hidden) · 回顧視窗 = the same zone filling its area, stacked and centred */
.upz{position:relative;display:flex;align-items:stretch;align-self:stretch;width:100%;box-sizing:border-box;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line)}
.upz-go{flex:1;min-width:0;min-height:var(--upz-h,72px);display:flex;flex-direction:var(--upz-dir,row);justify-content:var(--upz-jc,flex-start);align-items:center;gap:var(--upz-gap,12px);padding:var(--upz-pad,16px);border:0;background:none;color:var(--ink);font:inherit;text-align:var(--upz-ta,left);cursor:pointer}
.upz-go>.ic{width:28px;height:28px}
.upz-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.upz-tx b{font-size:15px;line-height:20px;font-weight:var(--fw-head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* one line: the zone stays 72px whatever the stage is called */
.upz-tx span{display:var(--upz-hint,block);font-size:13px;line-height:18px;font-weight:var(--fw-body);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.upz-ps{flex:none;display:var(--upz-ps,flex);align-items:center;gap:8px;min-height:44px;padding:0 16px 0 10px;border:0;background:none;color:var(--ink);font:inherit;font-size:14px;line-height:20px;font-weight:var(--fw-head);cursor:pointer}
.upz-ps .ic{width:22px;height:22px}
.upz-ps:hover span{text-decoration:underline}
.upz:has(.upz-go:hover){box-shadow:inset 0 0 0 1.5px var(--ink)}
.upz.drop-on,.upz.drop-on:has(.upz-go:hover){background:color-mix(in srgb,var(--acc) 45%,var(--soft));box-shadow:inset 0 0 0 2px var(--ink)}
.upz.drop-on .upz-tx span{font-size:0}
.upz.drop-on .upz-tx span::after{content:attr(data-drop);font-size:13px}
.upz.busy .upz-ps{display:none}
.upz-go.busy{cursor:default}
.upz-go .bz{flex-direction:row;width:auto;max-width:none;margin:0;gap:12px}
.upz-go .bz i{width:96px}
.upz-go .bz b{font-size:13px}
.upz.big{min-height:0;flex:1}
.upz.big .upz-go{position:absolute;inset:0;flex-direction:column;justify-content:center;text-align:center;padding-bottom:54px}
.upz.big .upz-go>.ic{width:40px;height:40px}
.upz.big .upz-go.busy{padding-bottom:16px}
.upz.big .upz-ps{position:absolute;left:50%;top:calc(50% + 32px);transform:translateX(-50%);padding:0 16px}
.rv-stage .upz{flex:1;min-height:0}
.mo-c.add[data-paste]{background:var(--soft)}
.drop-on{box-shadow:inset 0 0 0 2px var(--ink);background:color-mix(in srgb,var(--acc) 45%,var(--soft))}
/* v0.18.10: 「先看示範 →」 is a 44px target (the row is already taller) */
.auth-top .lk{display:inline-flex;align-items:center;min-height:44px}

/* ---------- v0.18.11: 想法 whiteboard ---------- */
.wb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:24px 16px}
@media (min-width:700px){ .wb-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))} }
.wb-card{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.wb-th{display:block;aspect-ratio:4/3;overflow:hidden;background:var(--soft)}
.wb-th img{display:block;width:100%;height:100%;object-fit:cover}
.wb-th p{margin:0;padding:12px;font-size:14px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}
.wb-card b{font-size:16px;font-weight:var(--fw-head);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wb-card small{font-size:13px;color:var(--muted)}
/* the board: full screen, the shared editor bar at the bottom */
.sheet-wrap.wb-sheet{padding:0;background:var(--bg)}
.wb-sheet .sheet{max-width:none;width:100%;height:100%;max-height:none;border:0;padding:0;overflow:hidden;display:flex;flex-direction:column}
body.tpbar-on .tp-sheet.wb-sheet .sheet{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}
.wb-sheet .sheet-body{flex:1;min-height:0;display:flex;flex-direction:column}
.wb-sheet .wb-top{display:flex;align-items:center;gap:8px;padding:max(10px,env(safe-area-inset-top,0px)) 16px 10px;background:var(--bg)}
.wb-name{flex:1 1 auto;min-width:0;min-height:44px;font-size:18px;font-weight:var(--fw-head)}
.wb-clear{flex:0 0 auto;min-height:44px;padding:0 4px;color:var(--red,#d6342c);font-weight:var(--fw-head);font-size:14px;white-space:nowrap}
.wb-clear[hidden]{display:none}
.wb-cv{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
  background-color:var(--bg);background-image:radial-gradient(circle,color-mix(in srgb,var(--ink) 20%,var(--bg)) 1.2px,transparent 1.7px);background-size:24px 24px}
.wb-cv.m-pen{cursor:crosshair}
.wb-cv.m-txt{cursor:text}
.wb-cv.drop-on{background-color:var(--acc-tint)}
.wb-w{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0;--z:1}
.wb-it{position:absolute;box-sizing:border-box}
.wb-it.on{outline:calc(2px / var(--z)) solid var(--ink);outline-offset:calc(2px / var(--z))}
.wb-img img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
.wb-txt{padding:.35em .5em;background:var(--bg);line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;cursor:default}
.wb-tx{min-height:1.4em}
.wb-tx:empty::before{content:attr(data-ph);color:var(--muted)}
.wb-ta{display:block;width:100%;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:inherit;resize:none;outline:none;overflow:hidden;user-select:text;-webkit-user-select:text}
.wb-ink svg{display:block;width:100%;height:100%;overflow:visible}
.wb-ink path,.wb-live path{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round}
.wb-live{position:absolute;left:0;top:0;width:1px;height:1px;overflow:visible;pointer-events:none}
.wb-it.flip > img,.wb-it.flip > svg{transform:scaleX(-1)}
.wb-h{display:none;position:absolute;right:calc(-7px / var(--z));bottom:calc(-7px / var(--z));width:calc(12px / var(--z));height:calc(12px / var(--z));background:var(--ink);cursor:nwse-resize}
.wb-h::after{content:"";position:absolute;inset:calc(-16px / var(--z))}
.wb-w.one .wb-it.on .wb-h{display:block}
.wb-mq{position:absolute;border:1px solid var(--ink);background:color-mix(in srgb,var(--ink) 5%,transparent);pointer-events:none}
.wb-mq[hidden]{display:none}
/* round 2 (Amuii): one bottom bar, tools as icons only; 儲存／完成 at the right, not filling the bar */
.tpbar.wb-bar:not(.tp-ask){display:flex;align-items:center;gap:8px}
.wb-bar .wb-tools{display:flex;align-items:center;gap:4px}
.wb-ib{display:inline-grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0;border:0;background:none;color:var(--ink);cursor:pointer}
.wb-ib .ic{width:22px;height:22px}
.wb-ib[aria-pressed="true"]{background:var(--soft)}
.wb-ib[aria-pressed="false"]{color:var(--muted)}
.wb-ib.busy{width:auto;flex:0 0 auto;padding:0 8px;font-size:13px;font-weight:var(--fw-label)}
.wb-bar .wb-del{color:var(--red,#d6342c)}
.wb-bar .wb-n{flex:0 1 auto;margin:0 0 0 4px;font-size:14px;font-weight:var(--fw-label);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wb-bar .wb-acts{margin-left:auto}
body.tpbar-on .tpbar.wb-bar:not(.tp-ask) .edbar-go{flex:0 0 auto;width:auto;min-width:120px;margin-left:24px;padding:0 20px}
body.tpbar-on .tpbar.wb-bar:not(.tp-ask) .wb-tools:first-child + .edbar-go{margin-left:auto}
.wb-bar .edbar-go .ic{width:20px;height:20px}
.wb-cv.m-pan{cursor:grab}
/* phone: everything still in one row (Amuii): no gap between the icon tools, a narrower 儲存／完成 */
@media (max-width:480px){
  .wb-bar .wb-tools{gap:0}
  body.tpbar-on .tpbar.wb-bar:not(.tp-ask){gap:4px}
  body.tpbar-on .tpbar.wb-bar:not(.tp-ask) .edbar-go{min-width:84px;margin-left:8px;padding:0 10px}
  .wb-bar .wb-n{min-width:0}
}

/* v0.18.11: Pro is a subscription — 年費｜月費 (seg) right above the one big price; the unit sits beside the number */
.up-term{margin:12px 0 2px}
.up-term button{min-height:44px;min-width:72px;font-size:14px;font-weight:var(--fw-label)}
.up-bigl{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;margin:8px 0 8px}
.up-bigl .up-big{margin:0}
.up-per{font-size:clamp(18px,2.4vw,24px);font-weight:var(--fw-head);letter-spacing:-.01em}
.acct #sPortal{display:inline-flex;align-items:center;min-height:44px;align-self:flex-start;margin:-6px 0 6px}

/* v0.19.0 (Amuii): one way to answer a primary. 取消 / 返回 / 稍後再說 / 還未完成 sit on the primary's row, at its left,
   the same height (52px), a single-framed .btn with an icon; the primary fills the rest. Leaving a whole screen is the ✕
   at the top right (.sh-xi), never the word 關閉. */
.act-row.act-row{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:8px;margin-top:20px;width:100%}
.act-row.act-row > .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;height:auto;width:auto;margin:0;padding:6px 16px;font-size:15px;font-weight:var(--fw-head);line-height:1.2;text-align:center;flex:0 1 auto;min-width:0}
.act-row.act-row > :is(.btn.red,.btn.danger){flex:1 1 auto}
.act-row.act-row > .btn .ic{width:20px;height:20px;flex:none;stroke-width:2.2}
.act-row.act-row > .btn.danger{background:var(--red);border-color:var(--red);color:var(--red-ink)}
.act-row.act-row > .btn.danger:hover{filter:brightness(.95)}
/* the confirm sheet: a big question, the result under it, the row at the bottom */
.cf-h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.cfm-q{margin:0;font-size:22px;font-weight:var(--fw-head);line-height:1.3;overflow-wrap:anywhere}
.cf-h .sh-xi{margin:-10px -12px 0 0}
.cf-n{margin:8px 0 0;font-size:15px;line-height:1.5;color:var(--muted)}
.cf-f.act-row{margin-top:24px}
/* full-screen activity menu: ✕ like every other screen */
.cbx-full .cbx-top .sh-xi{margin:0 -12px 0 0}
/* the plan's day pick: 取消 framed, the height of 完成 */
.pl-no{min-height:52px;height:52px;padding:0 14px;font-size:15px;font-weight:var(--fw-head);gap:8px;flex:none}
.pl-no .ic{width:20px;height:20px}
@media (max-width:699px){ .plf .pl-bar.pk .pl-no{order:3;height:44px;min-height:44px;padding:0 10px;font-size:13px} }

/* the board's top, like the plan's: 復原 · 重做 · ⓘ with their names; a phone keeps the icons */
.wb-sheet .wb-top{gap:0;position:relative}
.wb-name{margin-right:8px}
.wb-tb{min-height:44px;padding:0 10px;font-size:14px;font-weight:var(--fw-head);color:var(--ink);text-decoration:none;gap:6px;flex:none;white-space:nowrap}
.wb-tb .ic{width:20px;height:20px}
.wb-tb:disabled{color:var(--faint);cursor:default}
.wb-tb.on{background:var(--soft)}
.wb-clear{margin-left:8px;padding:0 8px}
@media (max-width:899px){ .wb-tl{display:none} .wb-tb{width:44px;padding:0;justify-content:center} }
@media (max-width:480px){ .wb-sheet .wb-top{padding-left:12px;padding-right:12px} .wb-clear{margin-left:4px;padding:0 4px;font-size:13px} .wb-name{margin-right:4px} }
/* ⓘ: the shortcut list drops under the top row at the right; rows read 做乜 ……… key */
.wb-keys{position:absolute;right:16px;top:calc(64px + env(safe-area-inset-top,0px));z-index:6;width:min(380px,calc(100% - 32px));max-height:calc(100% - 160px);overflow-y:auto;
  background:var(--bg);color:var(--ink);border:1px solid var(--ink);padding:8px 16px 8px}
.wb-keys[hidden]{display:none}
.wb-keys h3{margin:12px 0 4px;font-size:12px;font-weight:var(--fw-head);letter-spacing:.06em;color:var(--muted)}
.wb-keys ul{list-style:none;margin:0;padding:0}
.wb-keys li{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
.wb-keys li:last-child{border-bottom:0}
.wb-keys kbd{font:inherit;font-family:var(--f-num);font-weight:var(--fw-head);white-space:nowrap;text-align:right}
.wb-keys .wb-tour{min-height:44px;margin-top:4px;font-weight:var(--fw-head);font-size:14px;text-decoration:none;color:var(--ink);gap:6px}
.wb-keys .wb-tour .ic{width:18px;height:18px}
/* the walk-through sits over the full-screen board */
.wb-tip{z-index:calc(var(--z-sheet) + 2)}
.wb-cv.gd-on{outline-offset:-3px}
.wb-bar .wb-tools.gd-on{outline-offset:2px}
/* a selection's actions: icon + name, no frame (rule 62: small secondary buttons, icon and words side by side) */
.wb-sb{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;border:0;background:none;color:var(--ink);font:inherit;font-size:14px;font-weight:var(--fw-head);white-space:nowrap;cursor:pointer;flex:none}
.wb-sb .ic{width:20px;height:20px;flex:none}
.wb-bar .wb-sb.wb-del{color:var(--red);padding-left:0}
.wb-bar .wb-acts{display:flex;align-items:center;gap:4px;margin-left:auto}
body.tpbar-on .tpbar.wb-bar:not(.tp-ask) .wb-acts + .edbar-go{margin-left:24px}
/* phone: the same order; the names go under the icons (12px), as in 調整今日 */
@media (max-width:480px){
  .wb-sb{flex-direction:column;justify-content:center;gap:2px;min-height:52px;padding:2px 4px;font-size:12px;line-height:1.1}
  .wb-bar .wb-acts{gap:0}
  body.tpbar-on .tpbar.wb-bar:not(.tp-ask) .wb-acts + .edbar-go{margin-left:8px}
  .wb-bar .wb-n{font-size:13px}
}

/* v0.19.0 (Amuii): vote bars in two parts — a strip along the row's foot: Pro supporters (black, ×2) then everyone else
   (grey); the legend sits once above the rows. Shipped features live in 關於訂閱制. */
.vt-r2 .vt-st{position:absolute;left:0;right:0;bottom:0;height:6px;display:flex;pointer-events:none}
.vt-st > span{display:block;height:100%;transition:width .3s ease}
.vt-sp{background:var(--ink)}
.vt-sf{background:color-mix(in srgb,var(--ink) 22%,var(--bg))}
.vt-lg{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0 0 8px;font-size:13px;color:var(--muted)}
.vt-lg span{display:inline-flex;align-items:center;gap:6px}
.vt-lg i{display:inline-block;width:12px;height:12px}
@media (prefers-reduced-motion:reduce){ .vt-st > span{transition:none} }

/* 2026-11-02 (Amuii): one empty state for every page (js/views/empty.js) — Neo-Swiss: numbered label, very big words on the
   left line, one line under it in ink (no grey small print, no tile). Sized by its container (today's right column is narrow). */
.em{container-type:inline-size;padding:clamp(24px,5vw,56px) 0 40px;max-width:820px;text-align:left}
.em .em-lab{display:block;margin:0 0 14px;color:var(--ink)}
.em-hero{margin:0;font-family:var(--f-num);font-size:clamp(34px,10cqi,88px);font-weight:var(--fw-head);line-height:1.04;letter-spacing:-.02em}
.em-lead{margin:18px 0 0;font-size:17px;line-height:1.5;color:var(--ink)}
.em .btn{margin-top:28px;width:100%;min-height:52px;font-size:16px;font-weight:var(--fw-head);justify-content:center}
.em .btn .ic{width:20px;height:20px}
.st-kpis[hidden]{display:none}
/* a list page's add never wraps to two lines (展出 「New convention」 was 57px on a phone; 目標 is 44px) */
.sech .btn{white-space:nowrap;flex:none}
.pl-mini .pl-gsum[data-plopen]{cursor:pointer}
/* v0.19.0 drag to reorder (js/reorder.js): the piece being dragged turns ink, like a stage row being dragged; it rides
   above its neighbours (page layer, under every bar) and a long press never opens the phone's picture menu */
.pcard.dragging,.wb-card.dragging,.ptab.dragging{position:relative;z-index:5;background:var(--ink)!important;color:var(--bg)!important;border-color:var(--ink)!important;transition:none;cursor:grabbing}
.pcard.dragging *,.wb-card.dragging *,.ptab.dragging *{color:var(--bg)!important}
.pcard,.wb-card,.ptab[data-ptask],[data-idrag]{-webkit-touch-callout:none}
.pcard img,.wb-card img{-webkit-user-drag:none;user-drag:none}

/* v0.19.0 round 7 (2026-11-02, Amuii): the add is where the new thing appears.
   A page with nothing yet: the empty state's words lead to its yellow button (left, under the line, not across the page).
   A page with things: the first tile of the grid is the add — a big yellow block the size of a card (the page's one yellow). */
.sech[hidden]{display:none}
.em .btn.em-go{width:auto;padding:0 28px;justify-content:flex-start}
.em-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin-top:28px}
.em-acts .btn.em-go{margin-top:0}
.em-acts .lk{min-height:44px}
.wb-add,.pc-add{display:flex;align-items:center;justify-content:center;gap:var(--sp-2);min-height:160px;padding:var(--sp-3);border:0;background:var(--acc);color:#111;font:inherit;font-size:16px;font-weight:var(--fw-head);cursor:pointer}
.wb-add .ic,.pc-add .ic{width:22px;height:22px}
.wb-add:active,.pc-add:active{transform:scale(.985)}
.wb-add{aspect-ratio:4/3;min-height:0;align-self:start}
@media (max-width:699px){ .pgrid > .pc-add{min-height:88px} }
/* a goal's boards and 今日's boards: one row, ＋ 新白板 first (secondary here: a soft block, not yellow) */
.bds{display:flex;flex-direction:column;gap:8px;min-width:0}
.wa .bds{margin-top:20px}
.bds-lab{margin:0}
.bds-row{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.bds-row::-webkit-scrollbar{display:none}
.bds-add,.bds-card{flex:none;width:120px;display:flex;flex-direction:column;gap:6px;padding:0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.bds-add{aspect-ratio:4/3;height:auto;align-items:center;justify-content:center;flex-direction:row;gap:6px;background:var(--soft);font-size:14px;font-weight:var(--fw-head)}
.bds-add .ic{width:20px;height:20px}
.bds-card .wb-th{width:120px}
.bds-card .wb-th p{font-size:12px;padding:8px;-webkit-line-clamp:4}
.bds-card b{font-size:13px;font-weight:var(--fw-head);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bds-add:active,.bds-card:active{transform:scale(.985)}
#p-today .idea-q:has(.bds){gap:0}
/* the board's goal, beside its name: 「放進目標」, or the goal's name once it is in one */
.wb-goal{flex:0 1 auto;min-width:0;max-width:40%;min-height:44px;padding:0 8px;font-weight:var(--fw-head);font-size:14px;color:var(--muted)}
.wb-goal.on{color:var(--ink)}
.wb-goal .ic{width:20px;height:20px;flex:none}
.wb-goal .wb-gl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:480px){ .wb-goal{max-width:34%;padding:0 4px} }
/* the goal's boards take a whole row under the pictures and the grid, whatever the goal card's layout */
.wa > .bds{flex:1 1 100%;order:5;grid-column:1/-1;min-width:0;max-width:100%;margin-top:4px}
/* phones: the top row is already full (name · 復原 · 重做 · ⓘ · 清空 · ✕), so the goal is its own line under it, starting on the name's left edge */
@media (max-width:699px){
  .wb-sheet .wb-top{flex-wrap:wrap}
  .wb-sheet .wb-name{flex:1 1 0;min-width:0}
  .wb-goal{order:9;flex:1 1 100%;max-width:none;justify-content:flex-start;padding:0}
}
/* 2026-11-02 (Amuii: 「so ugly, not Neo-Swiss」): the add tiles are an empty slot of the grid, not a yellow block —
   the card's own 1px frame, a big ＋ and the words at the bottom left where a card's name sits; yellow only under the finger */
.wb-add,.pc-add,.bds-add{flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:var(--sp-2);background:transparent;border:1px solid var(--line);color:var(--ink);text-align:left}
.pc-add{padding:var(--sp-3) var(--sp-3) var(--sp-3);font-family:var(--f-num);font-size:19px;font-weight:var(--fw-head);letter-spacing:-.02em}
.wb-add{padding:12px;font-size:16px;font-weight:var(--fw-head)}
.bds-add{padding:8px;font-size:13px;font-weight:var(--fw-head);gap:4px}
.wb-add .ic,.pc-add .ic{width:32px;height:32px}
.bds-add .ic{width:20px;height:20px}
.wb-add:hover,.pc-add:hover,.bds-add:hover{border-color:var(--ink)}
.wb-add:active,.pc-add:active,.bds-add:active{background:var(--acc);border-color:var(--ink)}
@media (max-width:699px){ .pc-add{padding:10px 10px 12px;font-size:15.5px} }
/* the goal's boards live in its pictures' column, right under the pictures */
/* a board's preview: the board itself, fitted into its frame (想法 cards, 今日's row, a goal's board) */
.bdp{position:relative;display:block;width:100%;height:100%;container-type:size;overflow:hidden;background:var(--soft)}
.bdp-in{position:absolute;inset:0;margin:auto;width:min(100cqw,calc(100cqh * var(--r)));aspect-ratio:var(--r);height:auto;max-height:100cqh;container-type:inline-size}
.bdp-it{position:absolute;display:block;box-sizing:border-box}
.bdp-img img{display:block;width:100%;height:100%;object-fit:contain}
.bdp-txt{padding:.35em .5em;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);font-weight:var(--fw-body)}
.bdp-ink svg{display:block;width:100%;height:100%;overflow:visible}
.bdp-ink path{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round}
.bdp-it.flip > img,.bdp-it.flip > svg{transform:scaleX(-1)}
.wb-th > .bdp{aspect-ratio:auto}
/* a goal's one board, under its pictures: as wide as them, the board's name on it like a picture's tag */
.gal-bd{position:relative;display:block;width:100%;aspect-ratio:4/3;padding:0;border:0;background:none;cursor:pointer;box-shadow:inset 0 0 0 1px var(--line)}
.gal-bd:hover{box-shadow:inset 0 0 0 1.5px var(--ink)}
.gal-bdnew{width:100%;min-height:var(--h-tap);justify-content:center;font-size:15px;font-weight:var(--fw-head)}
.gal-bdnew .ic{width:20px;height:20px}
.gal > .btn.gal-bdnew{min-height:var(--h-tap);height:auto}
.idea-q[hidden]{display:none!important}
/* 今日's quick note: one line — the words, then 記下 (icon + word, no frame); Enter saves too */
.iq-row{align-items:center}
.iq-row input.inp{flex:1 1 auto;min-width:0;min-height:44px;font-size:16px;padding:8px 2px;border:0;border-bottom:1.5px solid var(--ink);background:transparent}
.iq-go{flex:none;min-height:44px;padding:0 4px 0 8px;font-weight:var(--fw-head);font-size:15px}
.iq-go .ic{width:20px;height:20px}
/* the preview is the board: its own dot grid on the page colour, framed by a line (Amuii: use the board's background) */
.bdp{background-color:var(--bg);background-image:radial-gradient(circle,color-mix(in srgb,var(--ink) 20%,var(--bg)) 1px,transparent 1.5px);background-size:12px 12px;background-position:center;box-shadow:inset 0 0 0 1px var(--line)}
.gal-bd .bdp{background-color:var(--bg)}

/* 2026-11-02 (Amuii): one item selected in the plan → its number and its name field in the bar (where 已選 1 was),
   framed like the days; typing renames it in its row at once. */
.plf .pl-bar .pl-nmv{display:inline-flex;align-items:center;gap:6px;flex:0 1 160px;min-width:0;margin:0 8px 0 0;padding:0 0 0 10px;border:1px solid var(--line)}
.plf .pl-bar .pl-nmv b{font-family:var(--f-num);font-size:16px;font-weight:var(--fw-head);white-space:nowrap}
.plf .pl-bar .pl-nmv .inp{flex:1 1 auto;min-width:0;width:100%;height:44px;padding:0 8px 0 0;border:0;background:none;font-size:16px;font-weight:var(--fw-head)}
@media (max-width:699px){ .plf .pl-bar .pl-nmv{order:3;flex:1 1 100%;min-width:0;margin:0 0 4px} }

/* 2026-11-02 (Amuii): the upgrade sheet looks like the front door's pricing. A yellow block edge to edge (no card inside):
   the label, 年費｜月費, the price huge with the purple 慳 14% sticker breaking out of its top-right corner, the 700+ line;
   little hand-drawn things on the yellow. Then the comparison (now with 想法白板) and one line: new features are included. */
.up-hero.up-y{position:relative;color:var(--acc-ink);margin:0;padding:24px 0 30px;border-bottom:0}
.up-hero.up-y::before{content:"";position:absolute;top:0;bottom:0;left:-22px;right:-22px;background:var(--acc)}
.up-y .up-ht{position:relative;font-size:13px}
.up-y .up-bigl{position:relative;margin-top:22px}
.up-bw{position:relative;display:inline-block}
.up-off{position:absolute;right:-26px;top:-18px;background:#6b4eff;color:#fff;font-style:normal;font-weight:var(--fw-head);font-size:clamp(17px,2.2vw,24px);line-height:1;padding:9px 12px;white-space:nowrap}
.up-off[hidden],.up-anchor[hidden]{display:none}
.up-y .up-anchor,.up-y .up-proof{position:relative;color:var(--acc-ink);font-weight:var(--fw-label)}
.up-y .up-proof{margin-top:14px;font-size:15px}
.up-doodle{position:absolute;right:-4px;top:16px;width:min(40%,300px);height:auto;pointer-events:none}
.up-incl2{margin:14px 0 0;font-size:15px;font-weight:var(--fw-head)}
@media (max-width:743px){
  .up-hero.up-y{padding:20px 0 24px}
  .up-hero.up-y::before{left:-16px;right:-16px}
  .up-doodle{width:132px;right:-6px;top:8px}
  .up-off{right:-14px;top:-16px}
}
/* 2026-11-02 (Amuii: 「break the grid, easy see discount」): 慳 14% is a purple sticker on the yearly column's top edge,
   straight (no turns on the front door), half out of the black bar, bigger; the same sticker sits on the price in the upgrade sheet. */
.lp-ph .lp-pyr{position:relative}
.lp-ph .lp-pyr .lp-off{position:absolute;top:-18px;right:16px;font-size:clamp(17px,1.8vw,24px);padding:9px 12px;z-index:2}
@media (max-width:699px){ .lp-ph .lp-pyr .lp-off{top:-16px;right:6px;font-size:14px;padding:6px 8px} }

/* 2026-11-02 (Amuii): 今日要做 takes to-dos of your own. Wide enough (by the block's own width): dated on the left,
   written-down ones without a date on the right with the field to add at its bottom; narrow: one column. On a phone
   the block sits right under the today card (things to do come before the schedule). Ticked: struck through. */
#conQ{container-type:inline-size}
.cq-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
@container (min-width:620px){ .cq-cols.two{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 28px;align-items:start} }
.cq-c{min-width:0}
.cq-o .tk-n{white-space:normal}
.cq-o.dn .tk-n{text-decoration:line-through;color:var(--muted)}
.cq-o.dn .tl-box{background:var(--soft);border-color:var(--muted)}
.cq-o.dn .tl-box .ic{opacity:1;color:var(--ink)}
.cq-dt{position:relative;display:inline-flex;align-items:center;gap:var(--sp-1);min-height:44px;margin:-6px 0;cursor:pointer;white-space:nowrap}
.cq-dt.lk{font-size:13px;font-weight:var(--fw-head);color:var(--muted)}
.cq-dt .ic{width:20px;height:20px}
.cq-di{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none;border:0;padding:0}
.cq-add{display:grid;grid-template-columns:22px minmax(0,1fr);gap:var(--sp-3);align-items:center;min-height:44px}
.cq-plus{border:0!important;background:none!important;display:grid;place-items:center}
.cq-plus .ic{opacity:1;width:20px;height:20px;color:var(--ink)}
.cq-ain{min-width:0;height:44px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;font-size:16px;font-weight:var(--fw-label);padding:0}
.cq-ain:focus{outline:0;border-bottom-color:var(--ink)}
@media (max-width:743px){ #conQ{order:1!important} }
#conQ{scroll-margin-top:calc(var(--hdr-h,64px) + env(safe-area-inset-top,0px) + 12px)}
/* 2026-11-02: 想法 — the to-dos written by hand above the boards on a phone, on their left when the page is wide;
   date field: on a touch screen the field itself takes the tap (the phone's own picker) */
#p-ideas{container-type:inline-size}
.bd-wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;align-items:start}
@container (min-width:860px){ .bd-wrap{grid-template-columns:320px minmax(0,1fr);gap:0 32px} }   /* a narrow column: the boards are the page */
.bd-own{min-width:0}
.bd-own .cq-h{margin-bottom:var(--sp-1)}
@media (pointer:coarse){ .cq-di{pointer-events:auto} }

/* 2026-11-02 (Amuii: an empty frame the size of a card took the first, biggest slot): the add is a full-width 52px
   empty-slot line on top of the grid — ＋ and words side by side; the new goal / board still appears right under it */
.pgrid > .pc-add,.wb-grid > .wb-add{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--sp-2);min-height:52px;aspect-ratio:auto;padding:0 var(--sp-3);font-family:inherit;font-size:16px;font-weight:var(--fw-head);letter-spacing:0}
.pgrid > .pc-add .ic,.wb-grid > .wb-add .ic{width:22px;height:22px}
/* 2026-11-02 (Amuii: 「新增」 had several looks): one look for 「新增」 wherever there is already something — a full-width
   52px line, 1px frame, ＋ and words side by side on the left; yellow under the pointer / finger. Only a page with nothing
   yet uses the yellow 黃掣 (.em-go), as the 掣對照表 says. */
.pgrid > .pc-add,.wb-grid > .wb-add,.gal-bdnew{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--sp-2);width:100%;min-height:var(--h-tap);height:auto;aspect-ratio:auto;padding:0 var(--sp-3);margin:0;border:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent;color:var(--ink);font-family:inherit;font-size:16px;font-weight:var(--fw-head);letter-spacing:0;line-height:1.2;text-align:left;cursor:pointer}
.pgrid > .pc-add .ic,.wb-grid > .wb-add .ic,.gal-bdnew .ic{width:22px;height:22px;opacity:1}
.pgrid > .pc-add:hover,.wb-grid > .wb-add:hover,.gal-bdnew:hover,.pgrid > .pc-add:active,.wb-grid > .wb-add:active,.gal-bdnew:active{background:var(--acc);color:#111;border-color:var(--line)}
/* 想法: a side column (待辦) and the main area (白板), each with the same heading on the same top line, a 1px line between */
.bd-wrap{align-items:stretch}
.bd-main{min-width:0}
.bd-main > .cq-h,.bd-own > .cq-h{min-height:28px;margin:0 0 var(--sp-2)}
.bd-main .em{padding-top:8px}
.bd-own{padding-bottom:20px;border-bottom:1px solid var(--line)}
@container (min-width:860px){ .bd-own{padding:0 32px 0 0;border-bottom:0;border-right:1px solid var(--line)} }

/* 2026-11-02: 想法 待辦 — 已完成 (closed folding group, the share window's) under the field */
.cq-dn{margin:var(--sp-3) 0 0}
.cq-dn > summary{color:var(--muted)}
/* 2026-11-02: 待辦 — tap the words to change them; the trash where 加日期 was */
.cq-o:not(.dn) .tk-n{cursor:text}
.cq-e{cursor:default}
.cq-ef{flex:1;min-width:0;display:flex}
.cq-ef .cq-ain{flex:1;height:44px}
.cq-e .edbar-del-i{min-height:44px;margin:0 -11px 0 0!important}
/* 2026-11-02 (Amuii: the vote list was hard to read): no frame per row, rows apart by space only; the chosen row only
   fills its tick; one bar under the words (8px), the number with its unit. */
.vt-r{border:0;margin:0;padding:10px 0;align-items:start;gap:12px;background:none}
.vt-r + .vt-r{margin-top:6px}
.vt-r[aria-pressed="true"]{border:0}
.vt-r .vt-ck{margin-top:1px}
.vt-bt{display:block;height:8px;margin-top:8px}
.vt-bt i{display:block;height:100%;background:var(--ink);transition:width .3s ease}
.vt-n{align-self:start;line-height:1.1;white-space:nowrap}
.vt-n small{font-family:inherit;font-size:12px;font-weight:var(--fw-head);margin-left:2px;color:var(--muted)}
@media (prefers-reduced-motion:reduce){ .vt-bt i{transition:none} }
/* 2026-11-02 (Amuii: CTA again): finished-goal and bedtime windows use the confirm window's layout — left-aligned, title
   with ✕, one bottom row (frame button · yellow fills the rest); no rule, one yellow. */
.done-wrap .sheet{text-align:left}
.done-card{align-items:stretch}
.done-card .done-t{margin:0;padding:0;background:none}
.done-card .done-n{margin:8px 0 0}
.done-card .done-img{margin-top:16px}
.done-card .act-row{margin-top:24px}
.bed-wrap .bed-t{margin:0}
.bed-wrap .bed-l p{font-size:17px}
.bed-wrap .bed-tmr{border-top:0;padding-top:0;color:var(--muted)}
.bed-wrap .act-row{margin-top:24px}
/* 2026-11-02 (Amuii: two windows for one finish): one window — the name big, the cover big, small pictures to change it,
   the upload line, a plain field (no yellow: the yellow is the save), the date, one bottom row. */
.mo-wrap .mo-name{font-size:clamp(30px,6vw,44px);line-height:1.1;letter-spacing:-.03em;overflow-wrap:anywhere}
.mo-big{margin:16px 0 0;width:100%;aspect-ratio:4/3;max-height:46vh;background:var(--soft)}
.mo-big img{width:100%;height:100%;object-fit:contain;display:block}
#moCov .mo-covers{margin:8px 0 0;padding:4px 2px}
#moCov .mo-c{width:56px}
#moCov .upz{margin-top:8px}
#moCov .mo-up:not(.has) .upz-go{min-height:88px}
#moCov .mo-up.has .upz-go{min-height:52px;padding:8px 16px}
#moCov .mo-up.has .upz-tx > span{display:none}
.mo-wrap .mo-h{display:block;margin:24px 0 4px}
.mo-wrap .mo-in{display:block;width:100%;box-sizing:border-box;margin:0;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;font-size:17px;font-weight:var(--fw-label);line-height:1.5;padding:8px 0;resize:none}
.mo-wrap .mo-in:focus{outline:0;border-bottom-color:var(--ink)}
.mo-wrap .mo-date{margin:12px 0 0}
.mo-wrap .act-row{margin-top:20px}
/* the criteria in the finishing window: the share window's ticks, one per line, no rules */
.mo-crit{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.mo-crit .shs-tg{min-height:44px}
/* 2026-11-02 (Amuii: 「點解每個 picker 都唔同」): one date field and one calendar everywhere. The field: 📅 + the date
   (secondary-action look, no frame, no browser grey). The calendar opens right under its field, in the page: white,
   1px ink frame, square, no shadow, no backdrop; the chosen day is ink (the yellow stays for the screen's one button). */
.dfw{display:inline-flex}
button.dfield,button.cq-dt{appearance:none;-webkit-appearance:none;border:0;background:none;padding:0;margin:0;font:inherit;color:var(--ink);cursor:pointer}
.dfield{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:15px;font-weight:var(--fw-head)}
.dfield .ic{width:20px;height:20px}
.dpop{display:block;flex-basis:100%;grid-column:1/-1;width:100%;max-width:640px;box-sizing:border-box;margin:4px 0 12px;padding:12px;background:var(--bg);border:1px solid var(--ink);box-shadow:none;border-radius:0}
.dpop .rp{border:0;padding:0}   /* 2026-11-20 (Amuii: 「why need 2 borders」): the calendar inside the pop has no frame of its own — one frame */
.dpop .rp-d{white-space:nowrap;border-radius:0}
.dpop .rp-d.s,.dpop .rp-d.e{background:var(--ink);color:var(--bg)}
.dpop .rp-d.in{background:var(--soft)}
.dpop .rp-nav .btn{min-height:36px}
.rp-d{white-space:nowrap}
/* the calendar under a work's two dates: one full row right under 開始 · 完成 */
.wk-stats > .dpop{grid-column:1/-1;margin:8px 0 12px}
/* a to-do's date: shown as the days left (like every other row's); changed only while the row is being changed */
.cq-e{grid-template-columns:22px minmax(0,1fr) auto auto!important}

/* 2026-11-02: task template 本地｜外地 */
.tk-kind{display:inline-flex;margin:0 0 12px;min-width:220px}
.tk-kind button{flex:1;min-height:44px}
/* 2026-11-02: folded show rows show their task diamonds (read only); the rename field takes the free space */
@media (min-width:700px){ .plf .pl-bar .pl-nmv{flex:1 1 160px;min-width:160px;max-width:440px} }
@media (min-width:700px){ .plf .pl-sr:has(.pl-nmv) > .pl-sp{flex:0 0 0;min-width:0} }

/* ---------- 2026-11-06 (user feedback round) ---------- */
/* 新增展會: the window is its full size from the start (the calendar opens inside it; it never grows or shrinks) */
.cf-sheet .sheet{height:min(900px,100%)}
@media (max-width:1023px){ .cf-sheet .sheet{height:92vh} }
/* 項目簡介: the lines the user typed stay lines */
.pr-desc{white-space:pre-line}
/* 待辦 (今日 and 想法): easier to read; 已完成 · N on the heading's line, right */
.cq-r .tk-n,.cq-ain{font-size:16px;line-height:1.35}
.cq-r .tk-n small{font-size:13px}
.cq-dnb{margin:-8px 0}
.cq-dnb .ic{width:20px;height:20px;transition:transform .15s}
.cq-dnb[aria-pressed="true"] .ic{transform:rotate(180deg)}
.cq-dnb[aria-pressed="true"]{color:var(--ink)}
/* 今日 after midnight: the one line that says when the day turns */
.tl-night{margin:0 0 var(--sp-2);font-size:14px;font-weight:var(--fw-head);color:var(--ink)}
/* 目標: filter + grouping row right above the cards; each group folds (open by default) */
.pg-bar{display:flex;align-items:center;gap:var(--sp-2);min-height:var(--h-tap);margin:0 0 var(--sp-3)}   /* every page's first row (2026-11-23 Amuii: 「排期用幾多你就用幾多px」): 44px — 目標, 想法, 作品, 回顧 */
.pgrid > .pg-grp{grid-column:1/-1;margin:var(--sp-2) 0 0;min-width:0}
.pg-grp > summary{font-size:17px}
.pg-grp > .pg-in{margin-top:4px}
/* 白板: selected = a thicker black outline; several or a group = one rectangle round them, its corner scales them all */
.wb-it.on{outline:calc(3px / var(--z)) solid var(--acc);outline-offset:calc(3px / var(--z))}
.wb-w.grp .wb-it.on{outline:0}
.wb-selbox{position:absolute;border:3px solid var(--acc);pointer-events:none;margin:-6px 0 0 -6px;padding:3px;box-sizing:content-box}
.wb-selbox[hidden]{display:none}
.wb-selh{position:absolute;right:-9px;bottom:-9px;width:14px;height:14px;background:var(--acc);border:1.5px solid var(--ink);box-sizing:border-box;pointer-events:auto;cursor:nwse-resize}
.wb-selh::after{content:"";position:absolute;inset:-15px}
/* 白板: the focus timer's bar at the top while one runs */
.wb-fx:empty{display:none}
.wb-fx .fxbar{position:static;margin:0;border-width:0 0 2px;border-radius:0}   /* on a board it is a strip across the top: straight */
@media (max-width:480px){ .wb-bar .wb-n{display:none} }
@media (max-width:480px){ body.tpbar-on .tpbar.wb-bar .edbar-go{padding-left:10px;padding-right:10px} body.tpbar-on .tpbar.wb-bar:not(.tp-ask) .wb-acts + .edbar-go{margin-left:4px} body.tpbar-on .tpbar.wb-bar{padding-left:12px;padding-right:12px} }
@media (max-width:380px){ body.tpbar-on .tpbar.wb-bar .edbar-go .ic{display:none} }
/* 白板: the one-item handle in the primary colour too (black edge so it shows on white) */
.wb-w.one .wb-it.on .wb-h{background:var(--acc);outline:calc(1.5px / var(--z)) solid var(--ink)}
/* 目標: no rules between 我為甚麼要創作, the time line and the cards */
#p-goals .whyq-wrap{border-bottom:0}
#p-goals .pl-mini{border-top:0}
/* 排期: a folded show's diamonds carry their tasks' names, cut where the next mark begins */
.pl-dm .pl-tkl{overflow:hidden;text-overflow:ellipsis;font-weight:var(--fw-label)}
/* 新增展會: 加入展會 stays at the bottom of the window (the questions scroll above it) */
.cf-sheet .sheet{display:flex;flex-direction:column;overflow:hidden}
.cf-sheet .sheet-body{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column}
.cf-sheet .cf{flex:1;display:flex;flex-direction:column}
.cf-sheet .cf > .sheet-f{margin-top:auto;position:sticky;bottom:0;z-index:2;background:var(--bg);padding:12px 0 0}
/* 今日要做: its heading as big as 目標 beside the goal tabs */
#conQ > .cq-h .lab{font-family:var(--f-num);font-weight:var(--fw-head);font-size:15px;letter-spacing:-.01em;color:var(--ink);text-transform:none}
/* 出發地：X · 更換 — 更換 right beside what it changes (no push to the far right) */
.cn-ol > span:nth-child(2){flex:0 1 auto}
.cn-ochg{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin:-10px 0;font-size:13.5px;font-weight:var(--fw-head);color:var(--ink)}
.cn-ochg .ic{width:20px;height:20px}
.cf-fromline{font-size:15px}
.cf-fromline[hidden]{display:none}
/* 今日要做: its own colour block (no rules above or under it), a heading you see, and a field that looks like one */
#conQ:not([hidden]){background:var(--soft)!important;padding-right:var(--sp-3)!important;padding-bottom:var(--sp-3)!important;padding-left:var(--sp-3)!important;border:0!important;margin-top:var(--sp-3)}
#p-today .whyq-wrap{border-bottom:0}
#conQ > .cq-h .lab{font-size:20px}
.cq-r .tk-n,.cq-ain{font-size:17px}
/* 2026-11-06 (Amuii: 「same function but not same presentation」「wasting focus」): one quiet add field — 待辦 and a goal's
   新項目 look the same: ＋, words in normal weight, grey, a light line; typing turns the line 2px black */
.cq-add{border:0;background:none;padding:0;margin-top:var(--sp-1);min-height:44px}
.cq-ain,.vg-new .vg-in{font-weight:var(--fw-body);font-size:15px;border-bottom:1px solid var(--line);color:var(--ink)}
.cq-ain:focus,.vg-new .vg-in:focus{border-bottom:2px solid var(--ink)}
.cq-ain::placeholder,.vg-new .vg-in::placeholder{color:var(--muted);font-weight:var(--fw-body);opacity:1}
.cq-plus .ic{width:20px;height:20px}
/* 今日: the date on the time table's line — ‹ date › · 調整今日日程 ……… 已完成 N 格 (the top bar's date hides here) */
body[data-panel="today"] .hdate{display:none}
.tl-day{display:flex;align-items:center;gap:0;min-height:44px;margin:0 0 var(--sp-1);white-space:nowrap}
.tl-da{display:grid;place-items:center;width:32px;height:44px;margin:0 -4px;border:0;background:none;color:var(--ink);cursor:pointer;flex:none}
.tl-da .ic{width:20px;height:20px}
.tl-date{min-height:44px;border:0;background:none;padding:0 var(--sp-2);font:inherit;font-size:16px;font-weight:var(--fw-label);color:var(--ink);cursor:pointer}
.tl-back{margin-left:var(--sp-2);font-size:14px;color:var(--ink)}
/* 2026-11-06 (Amuii: 「all page is bold … lead users to key action」); 2026-11-20 every page (one look per component, no page-only rules): heavy type is kept for what leads —
   the headline, today's big number, 開始創作, the clock and the section / goal names. Everything else is normal weight. */
#app :is(.hc2-cheer,.hc2-top small,.lk:not(.tl-adj),.lk:not(.tl-adj) span,.tl-donen,.tc,.gal-bdnew span,.upz-ps,.vg-u,.vg-st i,.cq-plus){font-weight:var(--fw-body)}
#app :is(.hc2-lab,.tl-date,.tl-tm,.vg-st b,.vg-l,.vg-no,.upz-tx b,.pt-ty){font-weight:var(--fw-label)}
#app :is(.tl-n,.tk-n){font-weight:var(--fw-body)}
#app .tl-r2.draw .tl-n{font-weight:var(--fw-label)}
#app .ptab[aria-selected="true"] .pt-ty{font-weight:var(--fw-head)}
#app :is(.cq-h .lab,.ptabs-lab,.pp-name){font-weight:var(--fw-head)}


/* 2026-11-07 (Amuii): the date, ‹ ›, 回到今日 and 調整 share one line with 已完成 */
.tl-lead{display:flex;align-items:center;gap:0 var(--sp-2);min-width:0;flex-wrap:nowrap}
.tl-day{display:inline-flex;align-items:center;margin:0;min-height:44px}
.tl-hd2 .tl-adj,.tl-hd2 .tl-donen,.tl-back{white-space:nowrap}
.tl-date{font-size:15px;padding:0 var(--sp-1)}
.tl-back{margin-left:var(--sp-1)}
/* 2026-11-07: tags instead of brackets — the weekday beside the date, 選填 beside a field's name */
.tl-date .tl-wk{margin-left:var(--sp-2);vertical-align:1px}
.tc.opt{margin-left:8px;vertical-align:2px;font-weight:var(--fw-label)}
/* the venue pin says it can be moved, instead of a note under the map */
.pp-map .cn-pin.sel{cursor:grab}
.pp-map .cn-pin.sel:active{cursor:grabbing}
.rp-d.pv{background:var(--acc-tint)}
/* 2026-11-07 (Amuii: align): one add field everywhere — ＋ icon, a short word, a ↵ tag only once something is typed */
.cq-add{grid-template-columns:22px minmax(0,1fr) auto}
.add-kbd{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 5px;border:1px solid var(--line);font:var(--fw-label) 12px/1 var(--f-body);color:var(--muted);background:var(--bg)}
:is(.cq-ain,.vg-in):placeholder-shown + .add-kbd{visibility:hidden}
.vg-new .add-f{grid-column:2/-1;display:flex;align-items:center;gap:var(--sp-3);min-width:0}
.vg-new .add-f .vg-in{flex:1;min-width:0;grid-column:auto}
.add-plus{display:grid;place-items:center;width:22px;flex:none}
.add-plus .ic{width:20px;height:20px;color:var(--ink)}
/* 2026-11-07 (Amuii): 新增目標 on the filter line — the same add look, as wide as its words */
.pg-bar{align-items:center}
.pg-bar > .pc-add,.pk > .pc-add{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--sp-2);width:auto;min-height:var(--h-tap);aspect-ratio:auto;padding:0 var(--sp-3);margin:0;border:1px solid var(--line);background:transparent;color:var(--ink);font-family:inherit;font-size:16px;font-weight:var(--fw-head);line-height:1.2;cursor:pointer}
.pg-bar > .pc-add .ic,.pk > .pc-add .ic{width:22px;height:22px;opacity:1}
.pg-bar > .pc-add:hover,.pg-bar > .pc-add:active,.pk > .pc-add:hover,.pk > .pc-add[aria-expanded="true"]{background:var(--acc);color:#111}
/* a single choice clicked with the mouse shows no focus frame (keyboard focus still does) */
.seg button:focus:not(:focus-visible){outline:none}   /* 2026-11-20: no box-shadow:none here — it took the chosen tab's line away after a tap (everywhere) */
/* 作品牆: one line — ticks · × ……… order and by-goal/item as quiet flip buttons */
#p-works .wf-bar{flex-wrap:nowrap}
#p-works .wf-bar .wf-end{gap:4px 14px;flex-wrap:nowrap}
.wf-tgl{min-height:44px;font-size:14px;font-weight:var(--fw-label);white-space:nowrap}
.wf-tgl .ic{width:18px;height:18px}
.wf-clear[hidden]{display:none}
.wf-bar .wf-clear{min-width:44px;justify-content:center}
/* v0.19.1 第四輪 (2026-11-07, Amuii: double CTA): a block selected in a schedule editor — its bar's 更改活動 is the one
   yellow; the editor's own 儲存 / 只套用到今日 steps back to a framed secondary until the block is let go */

/* v0.19.1 第五輪 (2026-11-07, Amuii): a computer opens a board over the right side only — 今日's left column (time table
   to tick) stays in view and works; from 想法 the app shows 今日 underneath. Phones keep the full screen. */
.sheet-wrap.wb-sheet.wb-docked{inset:var(--dock-t,0px) 0 0 var(--dock-l,0px);border-left:1px solid var(--ink)}
body.wb-dock .wb-docked .tpbar{left:var(--dock-l,0px)!important}
/* docked, the bar is the right side's width: 字大小／上移下移 show their icon only (as on a phone) until there is room */
@media (max-width:1199px){
  body.wb-dock .wb-docked .wb-sb{flex-direction:column;justify-content:center;gap:2px;min-height:52px;padding:2px 4px;font-size:12px;line-height:1.1}
  body.wb-dock .wb-docked .wb-bar .wb-acts{gap:0}
  body.tpbar-on.wb-dock .wb-docked .tpbar.wb-bar:not(.tp-ask) .wb-acts + .edbar-go{margin-left:8px;min-width:96px;padding:0 12px}
}
/* round 6 (Amuii: 「點解跳去今日」): the page stays (想法 stays 想法); only 今日's left column shows beside the board */
body.wb-dock:not([data-panel="today"]) #p-today[hidden]{display:block}
body.wb-dock:not([data-panel="today"]) #p-today #dayBar,body.wb-dock:not([data-panel="today"]) #p-today .t-body{visibility:hidden}
body.wb-dock:not([data-panel="today"]) .main > .panel:not(#p-today){display:none}
body.wb-dock #p-today :is(.hc2-cheer,.hc2-top small,.lk,.lk span,.tl-donen,.tc,.cq-plus){font-weight:var(--fw-body)}
body.wb-dock #p-today :is(.hc2-lab,.tl-date,.tl-tm){font-weight:var(--fw-label)}
body.wb-dock #p-today .tl-n{font-weight:var(--fw-body)}
body.wb-dock #p-today .tl-r2.draw .tl-n{font-weight:var(--fw-label)}

/* v0.19.2: the pin (重要) at the end of each goal row: the time line's pin, faint until pinned, solid once it is.
   44px to tap; the negative margin keeps the row its own height (rule 17). */
.vgrid{--vgp:44px}
.vg-pin{width:44px;height:44px;margin:-2px 0;padding:0;border:0;background:none;display:grid;place-items:center;color:var(--muted);opacity:.45;cursor:pointer;justify-self:end}
.vg-pin .ic{width:20px;height:20px}
.vg-pin:hover,.vg-pin:focus-visible{opacity:1;color:var(--ink)}
.vg-pin.on{opacity:1;color:var(--ink)}
.vg-pin.on .ic{stroke-width:2.6}
.lp-gw .vg-pin{pointer-events:none}
/* the filter's 排序 row: three words, one line each (the popover widens a little for them on a computer) */
.pl-fseg button{white-space:nowrap;padding-left:8px;padding-right:8px}
@media (min-width:700px){ .pl-top .pl-fp{width:auto;min-width:280px;max-width:360px} }
/* v0.19.2 (Amuii: 「圖釘睇唔到」): the pin reads at a glance — grey lines until pinned, solid black and filled once it is */
.vg-pin{opacity:1;color:var(--muted)}
.vg-pin .ic{width:22px;height:22px}
.vg-pin.on{color:var(--ink)}
.vg-pin.on .ic{fill:currentColor;stroke-width:2.2}
/* the timetable's resize bar always sits above the block below it */
.eb .grip{z-index:2}
/* the pin is the first column now (Amuii: 「擺最左邊」): the name field and the add row start after pin and number */
.vg-in{grid-column:3/-1}
.vg-ed{grid-column:3/-1}
.vg-new .add-f{grid-column:3/-1}
.vg-pin{justify-self:start;margin-left:-10px}

/* v0.19.2 (Amuii: 「開新目標、排期都要睇到今日時間表」): on a computer 今日's left column (clock, 今日創作, the time
   table to tick, water) stays on the left of every page and of the plan. Its top right button folds it to a 44px strip
   and opens it again (a clear panel icon, no words: Amuii). Phones and tablets: as before. */
.rl-tog{display:none}
@media (min-width:1024px){
  .rl-tog{display:grid;place-items:center;position:absolute;top:-6px;right:12px;width:44px;height:44px;padding:0;border:0;background:none;color:var(--ink);cursor:pointer;z-index:2}
  .rl-tog .ic{width:26px;height:26px}
  .rl-tog:hover,.rl-tog:focus-visible{background:var(--soft)}
  body.rail-min .tday{--rail-w:44px}
  body.rail-min .t-rail{padding-right:0}
  body.rail-min .t-rail > :not(.rl-tog){display:none!important}
  body.rail-min .rl-tog{position:static;margin-top:-6px}
  body[data-rail="side"] .main{display:grid!important;grid-template-columns:var(--rail-w,360px) minmax(0,1fr);column-gap:calc(var(--sp-4) + var(--sp-1));align-items:start;--rail-w:330px}
  body[data-rail="side"] #p-today[hidden]{display:block}
  body[data-rail="side"] #p-today{grid-column:1;grid-row:1;align-self:stretch;min-width:0}
  body[data-rail="side"] #p-today :is(#dayBar,.t-body,.back-today){display:none!important}
  body[data-rail="side"] #p-today .tday{display:block;height:100%}
  body[data-rail="side"] .main > .panel:not(#p-today){grid-column:2;grid-row:1;min-width:0}
  body.rail-min[data-rail="side"] .main{--rail-w:44px}
  /* the plan opens beside the column (its left edge is the column's right edge, set by fitRail); the top bar waits */
  .plf{left:var(--rail-r,0px)}
  body.plf-on .hdr{pointer-events:none}
}
@media (min-width:1024px){ body[data-rail="side"]:not(.rail-min) .main{--rail-w:360px} }   /* 2026-11-19: one width on every computer screen */
/* the plan beside 今日's column is narrower than the window: its top bar folds by its own width (the same as a
   700–1099px window: one ＋ for 新增, undo / redo / filter / 說明 as icons) */
@media (min-width:1024px){ .plf{container:plf / inline-size} }
@container plf (max-width:1099px){
  .pl-top .pl-new{display:none}
  .pl-amw{display:block;position:relative}
  .pl-urt,.pl-ft,.pl-top .pl-hb .pl-lg{display:none}
  .pl-top .pl-ur .pl-tb,.pl-top .pl-fb,.pl-top .pl-hb{min-width:44px;padding:0;justify-content:center}
}
@container plf (max-width:760px){
  .pl-top .pl-zoom{display:none}
  .pl-zsel{display:block;flex:none;max-width:92px;height:36px;padding:0 24px 0 8px;border:1px solid var(--ink);border-radius:0;font:inherit;font-size:14px;font-weight:var(--fw-head);color:var(--ink);-webkit-appearance:none;appearance:none;background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23111%27 stroke-width=%272%27/%3E%3C/svg%3E") no-repeat right 9px center/10px 7px;margin:4px 6px 4px 2px}
}
/* v0.19.5: 想法 docks beside 今日 like every page (the boards-list column is gone) */
}
@container plf (max-width:780px){
  .pl-top{flex-wrap:wrap}
  .pl-top .pl-tt{margin-right:auto}
  .pl-top .pl-tools{display:flex!important;flex:1 0 100%;order:20}
}
/* 想法 beside 今日's column (computer): 待辦 stays on the left of the boards from a slightly narrower page */
@container (min-width:760px){ .bd-wrap{grid-template-columns:300px minmax(0,1fr);gap:0 28px} }
/* narrower than the window beside 今日's column (under 1000px): not enough room for one line, so the selection bar takes
   the phone's two lines whole (rule 36): the actions as equal cells (icon over a short word), then 已選 N · days · 完成 */
@container plf (max-width:1000px){
  .plf .pl-bar .pl-sr{gap:0;min-height:0}
  .plf .pl-bar .pl-sp{order:2;flex:1 1 100%;min-width:0}
  .plf .pl-bar .pl-sb,.plf .pl-bar .pl-cw{order:1;flex:1 1 48px;min-width:0}
  .plf .pl-bar .pl-sb:not(.pl-del),.plf .pl-bar .pl-cw > .pl-tb{flex-direction:column;justify-content:center;gap:2px;width:100%;height:52px;min-height:52px;padding:4px 0;font-size:11px}
  .plf .pl-bar .pl-del{margin:0;padding:0 2px;height:52px;font-size:12px;line-height:1.2;white-space:normal;text-align:center}
  .plf .pl-bar .pl-sb span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .plf .pl-bar .pl-sn,.plf .pl-bar .pl-len,.plf .pl-bar .pl-nmv,.plf .pl-bar .edbar-go{order:3}
  .plf .pl-bar .edbar-del-i{order:1}
  .plf .pl-bar .edbar-go{margin-left:var(--sp-2);height:var(--h-tap);min-height:var(--h-tap);padding:0 var(--sp-3)}
  .plf .pl-bar.pk .pl-pkt{order:1;flex:1 1 100%;margin-bottom:4px}
  .plf .pl-bar.pk .pl-sb{order:3;flex:none;width:auto;flex-direction:row;gap:6px;height:44px;min-height:44px;padding:0 8px;font-size:13px}
  .plf .pl-bar.pk .pl-sb span{overflow:visible}
  .plf .pl-bar .pl-nmv{flex:1 1 100%;min-width:0;max-width:none;margin:0 0 4px}
  .plf .pl-sr:has(.pl-nmv) > .pl-sp{flex:1 1 100%}
}
@container (min-width:760px){ .bd-own{padding:0 28px 0 0;border-bottom:0;border-right:1px solid var(--line)} }
@container plf (max-width:1000px){ .plf .pl-bar.pk .pl-no{order:3;height:44px;min-height:44px;padding:0 10px;font-size:13px} }
/* the front door's demo grid shows the stages only: no pin column there */
.lp-gw .vgrid{--vgp:0px}
.lp-gw .vg-pin{display:none}
/* v0.19.2 round 3 (Amuii): 今日's column — no grey line over the clock (the fold button is not a section), the same
   height on every page (今日 has a 16px gap under its empty day bar), and a fold button that reads: 「‹ 收起」 as a quiet
   icon + word; folded, a narrow strip with the time and 「› 今日」 (a square cell: icon over the word). Unpinned pins fainter. */
.t-rail > .rl-tog + *{border-top:0!important}
.vg-pin:not(.on){color:var(--faint)}
@media (min-width:1024px){
  .rl-tog.lk{display:inline-flex;align-items:center;gap:var(--sp-1);place-items:normal;width:auto;height:44px;top:-10px;right:16px;padding:0 var(--sp-1);font-size:13px;font-weight:var(--fw-head);color:var(--ink)}
  .rl-tog.lk .ic{width:20px;height:20px}
  .rl-tog.lk:hover,.rl-tog.lk:focus-visible{background:none;text-decoration:underline}
  body.rail-min .tday,body.rail-min[data-rail="side"] .main{--rail-w:64px}
  body.rail-min .rl-tog.rl-min{position:static;display:flex;flex-direction:column;align-items:center;gap:var(--sp-1);width:64px;height:auto;min-height:96px;margin:0;padding:var(--sp-2) 0;border:0;background:none;color:var(--ink);cursor:pointer;font:inherit}
  .rl-tog.rl-min:hover,.rl-tog.rl-min:focus-visible{background:var(--soft)}
  .rl-tog.rl-min .rl-mt{font-family:var(--f-num);font-size:15px;font-weight:var(--fw-head);font-variant-numeric:tabular-nums;line-height:1}
  .rl-tog.rl-min .ic{width:22px;height:22px}
  .rl-tog.rl-min span{font-size:12px;font-weight:var(--fw-head);line-height:1}
  body[data-rail="side"]:not(.wb-dock) #p-today{padding-top:var(--pg-top)}   /* the one page-top token: 今日's column starts with every page */
}
/* v0.19.2 round 3 (Amuii: 「排期跟白板一樣」): on a computer 排期 opens like a board — under the top bar (the tabs work),
   right of 今日's column, a black line between them. */
@media (min-width:1024px){
  .plf.pl-docked{top:var(--dock-t,0px);left:var(--dock-l,0px);right:var(--dock-r,0px);width:auto;border-left:1px solid var(--ink);padding-top:0}   /* --dock-r: stops at 設定 when it is open */
  body.plf-on.pl-dock .hdr{pointer-events:auto}
}
/* 排期's sort (按重要性｜按截止日｜按編號) right above the names it orders, in place of the goal count; phones: its own
   full-width row under the top bar (the names column is 120px there) */
.plf .pl-c0 .pl-srt{display:flex;width:100%;margin:0}
.plf .pl-srt button{flex:1 1 0;min-width:0;height:32px;min-height:32px;padding:0 4px;font-size:12.5px;font-weight:var(--fw-head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-srow{display:none}
@media (max-width:699px){
  .plf .pl-c0 .pl-srt{display:none}
  .pl-srow{display:block;flex:none;padding:6px 8px;border-bottom:1px solid var(--line);background:var(--bg)}
  .pl-srow .pl-srt{display:flex;width:100%}
  .pl-srow .pl-srt button{height:44px;min-height:44px;font-size:14px}
}
/* each item row starts with its pin (faint until pinned, solid black once it is), as on the Goals page */
.plf .pl-pin{flex:none;width:30px;height:44px;margin:-8px 0 -8px 2px;opacity:1;justify-self:auto}
.plf .pl-pin .ic{width:18px;height:18px}
.plf .pl-pin0{flex:none;width:32px}
/* 白板: 完成 sits at the top right on a computer, beside ✕ (where 排期 has it); the bottom bar keeps the tools */
.wb-top .wb-done{display:none}
@media (min-width:1024px){
  .wb-top .wb-done{display:inline-flex;flex:none;height:44px;min-height:44px;padding:0 20px;font-size:15px;margin-left:8px}
  .wb-bar .edbar-go[data-bdsave]{display:none!important}
}
/* phones: the names column is 120px — the pin is narrower and stage rows keep their old indent (no pin spacer) */
@media (max-width:699px){ .plf .pl-pin{width:24px;margin-left:0} .plf .pl-pr .pl-pin0{display:none} .plf .pl-add .pl-pin0{width:24px} }
/* v0.19.2 round 4 (Amuii): unpinned pins much fainter; 排期's sort with even space on all four sides; a dragged row in
   排期 turns black like every other drag; 今日's folded column is a bare 44px strip, its line down to the bottom, 「›」 at top */
.vg-pin:not(.on){color:var(--faint);opacity:.4}
.vg-pin:not(.on):hover{opacity:1}
.plf .pl-c0:has(.pl-srt){align-items:stretch;padding:4px 8px}
.plf .pl-c0 .pl-srt button{height:auto;min-height:0}
.plf .pl-grp.dragging,.plf .pl-r.dragging{position:relative;z-index:6;background:var(--ink)!important;transition:none;cursor:grabbing}
.plf .pl-grp.dragging .pl-n,.plf .pl-r.dragging .pl-n,.plf .pl-grp.dragging .pl-gr{background:var(--ink)!important}
.plf .pl-grp.dragging .pl-n *,.plf .pl-r.dragging .pl-n *{color:var(--bg)!important}
@media (min-width:1024px){
  body.rail-min .tday,body.rail-min[data-rail="side"] .main{--rail-w:44px}
  body.rail-min .t-rail{height:calc(100vh - var(--rail-top,96px) - 16px);box-sizing:border-box}
  body.rail-min .rl-tog.rl-min{width:44px;height:44px;min-height:44px;padding:0;justify-content:center;margin:-6px 0 0}
  body.rail-min .rl-tog.rl-min .ic{width:24px;height:24px}
}
/* 目標: 新增目標 fills the left of the one line, the sort at the right, both 52px high (phones too: no wrap) */
#gBar .pg-bar:not(:has(.shs-tg)):not(:has([data-ggby])){flex-wrap:nowrap}
#gBar .pg-bar > .pc-add{flex:1 1 0;min-width:0}   /* 2026-11-20: 新增 takes the room left, never squeezes 排期｜卡片 into two lines */
#gBar .pg-bar > .pc-add span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#gBar .pg-srt{height:52px}
#gBar .pg-srt button{height:52px;min-height:52px}
#gWhy:empty{display:none}
@media (max-width:699px){
  #gBar .pg-bar{gap:8px}
  #gBar .pg-srt button{min-width:0;padding:0 8px;font-size:13px}
}
/* 今日's goal area: the sort sits right above the items' grid, at its right */
.pp-srt{display:flex;justify-content:flex-end;margin:12px 0 4px}
.pp-srt .pg-srt button{min-height:44px}
/* 目標 card: the goal's pin right of its name (the name leaves room for it) */
.pcard .pc-body{position:relative}
.pcard .pc-pin{position:absolute;top:6px;right:2px;width:44px;height:44px;margin:0;z-index:1}
.pcard .pc-name{padding-right:var(--sp-4)}
/* 排期: a goal's / a show's row says what it is with its icon before the name */
.pl-gt .ic{flex:none;width:16px;height:16px;margin-right:6px;vertical-align:-3px}
.pl-gt{align-items:center}
.ppanel:has(.idt) .pp-srt{display:none}
/* v0.19.2 round 5 (Amuii): the sort written one way everywhere — 「排序」 then 編號｜重要性｜截止日. On 今日 it sits at the end
   of the stage heads' line: 「排序」 small over 「編號｜重要｜截止」 when the cell has room, a drop-down when it hasn't (many
   stages) and on phones. Only on 今日's goal area (目標 has it on its own line above the cards). */
.srt-l{align-self:center;flex:none;font-size:12px;font-weight:var(--fw-head);color:var(--muted);white-space:nowrap}
#gBar .srt-l{margin-right:-8px}
.plf .pl-srt .srt-l{padding:0 6px 0 2px;border:0}
#projArea .vg-srtl{width:100%;text-align:right;font-size:11px;font-weight:var(--fw-head);color:var(--muted);line-height:1.2}
#projArea .vg-srt{display:none;width:100%}
#projArea .vg-srt button{flex:1 1 0;min-width:0;height:30px;min-height:30px;padding:0 var(--sp-1);font-size:12.5px;font-weight:var(--fw-head);white-space:nowrap}
#projArea .vg-srtsel{display:block;width:100%;max-width:120px;height:32px;padding:0 var(--sp-4) 0 var(--sp-2);border:1px solid var(--ink);border-radius:0;font:inherit;font-size:13px;font-weight:var(--fw-head);color:var(--ink);-webkit-appearance:none;appearance:none;background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23111%27 stroke-width=%272%27/%3E%3C/svg%3E") no-repeat right 6px center/9px 6px}
@container (min-width:140px){ #projArea .vg-srt{display:flex} #projArea .vg-srtsel{display:none} }
@media (max-width:699px){ #projArea .vg-srt{display:none!important} #projArea .vg-srtsel{display:block!important;height:44px} }
/* v0.19.2 round 6 (Amuii: 「unselect 再淺色、唔好 bold、唔好夾硬擺框線」) — every one-choice control in the app: the ones not
   chosen in light grey, normal weight; the chosen one black and bold on a light grey */
.seg button:not([aria-pressed="true"]){color:var(--faint)!important;font-weight:var(--fw-body)!important}   /* 2026-11-20 (Amuii: 「unselected 淺色 d」): every tab, the ones not chosen lighter */
.seg button[aria-pressed="true"]{color:var(--ink)!important;font-weight:var(--fw-head)!important}
/* 「排序」 outside the box, grey and plain, left of the three words on the same line (今日, 目標, 排期) */
.srt-l{font-weight:var(--fw-body)!important}
.pl-srtw{display:flex;align-items:center;gap:6px;width:100%;min-width:0}
.pl-srtw .srt-l{flex:none;padding:0!important}
.pl-srtw .pl-srt{flex:1 1 auto;min-width:0;width:auto}
.pl-srow .pl-srtw .pl-srt{display:flex}
@media (max-width:699px){ .plf .pl-c0 .pl-srtw{display:none} }
/* 今日: the three words as wide as their words, at the right end of the stage heads' line, 「排序」 beside them */
#projArea .vg-srtl{width:auto;flex:none;font-size:12px;font-weight:var(--fw-body);line-height:1}
#projArea .vg-srt{width:auto;flex:none}
#projArea .vg-srt button{flex:none;min-width:44px;max-width:64px;padding:0 var(--sp-2)}
#projArea .vg-srtsel{flex:0 1 auto;min-width:0;width:auto}
@container (max-width:179px){ #projArea .vg-srt{display:none} #projArea .vg-srtsel{display:block} }
.plf .pl-c0 .pl-srtw .pl-srt button{height:30px;min-height:30px}
/* a very narrow cell (phones, many stages): the drop-down alone (it says the chosen sort; 「排序」 is its label) */
@container (max-width:99px){ #projArea .vg-srtl{display:none} #projArea .vg-srtsel{width:100%} }
/* v0.19.2 round 6 (Amuii): 時間線 ……… ‹ 今日 › · 編輯排期 — 編輯排期 is the yellow main button, the size of 排期's 完成
   (44px, 15px), at the right end; ‹ 今日 › beside it at the same height */
.pl-mh .pl-go.btn{flex:none;height:44px;min-height:44px;padding:0 22px;font-size:15px;font-weight:var(--fw-head);gap:6px}
.pl-mh .pl-go.btn .ic{width:20px;height:20px}
.pl-mh{align-items:center}
.pl-mh .pl-nav > button{height:44px;min-height:44px}
/* 目標: 「排序」 never touches the box */
#gBar .srt-l{margin-right:0}
/* 今日's column: one solid black line on its right, from under the top bar to the bottom of the window, like a board's
   edge; no part-height grey lines beside it (待辦 and 白板 are told apart by space) */
@media (min-width:1024px){
  .t-rail{border-right:0!important}
  body:not(.set-open) #p-today .tday{position:relative}
  body:not(.set-open) .t-rail::after{content:"";position:fixed;top:var(--rail-line-t,145px);bottom:0;left:auto;width:1px;margin-left:calc(var(--rail-w,var(--sp-4)) - var(--sp-1));background:var(--ink);pointer-events:none;z-index:1}
  body.plf-on .t-rail::after{display:none}
}
@container (min-width:760px){ .bd-own{border-right:0!important} }
@container (min-width:860px){ .bd-own{border-right:0!important} }
/* phones: 時間線 · ‹ 今日 › · 編輯排期 still one line (the main button a little tighter, the title gives way first) */
@media (max-width:699px){
  .pl-mh{gap:6px}
  .pl-mh > b{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pl-mh .pl-go.btn{padding:0 12px;font-size:14px;gap:4px}
  .pl-mh .pl-nav{flex:none}
}

/* v0.19.2 (Amuii: 「唔係重要性時 user 唔知點解唔拖得」): pressing a piece as if to drag it while the sort isn't 按重要性
   lights it up and puts one line right under it: why, and 改按重要性排序 beside it (js/reorder.js). */
.ilock{display:flex;align-items:center;flex-wrap:wrap;column-gap:12px;padding:4px 12px;background:var(--acc-tint);color:var(--ink);font-size:13px;font-weight:var(--fw-label);grid-column:1/-1;box-sizing:border-box}
.ilock > span{flex:1 1 auto;min-width:0}
.ilock .lk{min-height:44px;color:var(--ink);font-size:13px;font-weight:var(--fw-head);gap:4px}
.ilock .lk .ic{width:20px;height:20px}
.plf .ilock{position:sticky;left:0;z-index:4}
.ilock-hi,.ilock-hi > .pl-gr,.ilock-hi > .pl-gr .pl-n,.pl-r.ilock-hi .pl-n{background:var(--acc-tint)!important}
.ptabs + .ilock{margin-top:var(--sp-1)}
/* v0.19.2 round 7 (Amuii: 排期頂部列擺位): on a phone 排期 sits right after ✕ (✕ and the title both pushed right, so the
   title floated in the middle: one push per row), and 週▾ has the same grey frame as ‹ 今日 › beside it. */
@media (max-width:699px){
  .pl-top .pl-x{margin-right:0}
  .pl-zsel{border-color:var(--line)}
}
/* v0.19.2 round 7 (Amuii: 「placement should be same as desktop」·「最頂2行可以一行過」·「排序 mobile 用 drop down」):
   the phone's top line is the computer's order — 排期 ↶ ↷ 篩選 週▾ ‹今日› ……… ＋ ⓘ 完成 ✕ — on one line when the plan is
   wide enough; narrower (390) it folds after ✕: 排期 ↶ ↷ 篩選 …… 完成 ✕ / 週▾ ‹今日› …… ＋ ⓘ. The sort is a drop-down in the
   names column's corner (where the computer has it), not a row of its own. */
.pl-srtw2{display:none}
@media (max-width:699px){
  .plf{container:plf / inline-size}
  .pl-top{padding:4px;gap:4px 0;flex-wrap:wrap}
  .pl-top .pl-tools{display:contents!important}
  .pl-top .pl-tt{order:1;margin:0 4px 0 12px}
  .pl-top .pl-ur{order:2}
  .pl-top .pl-fw{order:3}
  .pl-zsel{order:4;margin:4px 0;border-color:var(--line)}
  .pl-top .pl-nav{order:5;margin-right:0}
  .pl-amw{order:6;margin-left:auto}
  .pl-top .pl-hb{order:7}
  .pl-top .pl-go2{order:8;margin-left:0;padding:0 10px}
  .pl-top .pl-x{order:9;margin:0}
  .pl-brk{display:none}
  .pl-srow{display:none!important}
  .plf .pl-c0 .pl-srtw2{display:flex;align-items:center;gap:6px;width:100%;min-width:0}
  .plf .pl-c0:has(.pl-srtw2){padding:2px 8px 2px 16px;align-items:center}
  .plf .pl-c0 .pl-srtw2 .srt-l{flex:none;padding:0}
  .plf .pl-srtsel{flex:1 1 auto;min-width:0;width:auto;height:36px;padding:0 20px 0 6px;border:1px solid var(--line);border-radius:0;font:inherit;font-size:13px;font-weight:var(--fw-head);color:var(--ink);-webkit-appearance:none;appearance:none;background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23111%27 stroke-width=%272%27/%3E%3C/svg%3E") no-repeat right 6px center/9px 6px}
}
/* the English words (Week, Today, Done) are wider: one line from 660px. Edges (Amuii: 「margin padding 做到咁衰」): every
   line starts 16px in (排期, 週▾, 排序, the names), the icons end 16px from the right, 4px above, between and under the lines */
@container plf (max-width:563px){
  .pl-top .pl-go2{order:4;margin-left:auto}
  .pl-top .pl-x{order:5}
  .pl-brk{display:block;order:6;flex-basis:100%;height:0}
  .pl-zsel{order:7;margin-left:12px}
  .pl-top .pl-nav{order:8}
  .pl-amw{order:9}
  .pl-top .pl-hb{order:10}
}
@container plf (min-width:564px) and (max-width:659px){
  :lang(en) .pl-top .pl-go2{order:4;margin-left:auto}
  :lang(en) .pl-top .pl-x{order:5}
  :lang(en) .pl-brk{display:block;order:6;flex-basis:100%;height:0}
  :lang(en) .pl-zsel{order:7;margin-left:12px}
  :lang(en) .pl-top .pl-nav{order:8}
  :lang(en) .pl-amw{order:9}
  :lang(en) .pl-top .pl-hb{order:10}
}
/* v0.19.2 round 7 (Amuii: 「呢度好崩，寬啲，唔好迫做 2 行，hide date」): on a phone the names column is wider and every name
   is one line (… when long); the dates are hidden there (the bars on the right show them). */
@media (max-width:699px){
  .pl:not(.pl-mini){--pl-nw:168px}
  .plf .pl-it,.plf .pl-gt{flex-wrap:nowrap;gap:0 6px}
  .plf .pl-it small,.plf .pl-gt small{display:none}
  .plf .pl-it > span,.plf .pl-gt > span,.plf .pl-gt > b,.plf .pl-it > b + span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .plf .pl-it > b{flex:none}
}

/* v0.19.2 round 8 (Amuii: IP／角色 picked from a list; 「唔知點解唔 align」): the two fields line up at the top (the chips used
   to sit under IP only and pushed 角色 down). Each field: the chosen names as chips (✕ takes one off), then ＋ to pick or add;
   the picker is the activity picker (.cbx) with one-line tiles. */
.pe-pair{align-items:start}
.tgf{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:44px;padding:4px 0;box-sizing:border-box}
.tgf .tgc{min-height:36px;padding-left:10px}
.tgf .tgc button{width:44px;height:44px;margin:-4px -4px -4px -10px;color:var(--muted)}
.tgf .tgc button .ic{width:16px;height:16px}
.tgf-open{flex:1 1 64px;min-width:0;display:flex;align-items:center;gap:6px;min-height:40px;padding:0 2px;border:0;background:none;font:inherit;font-size:16px;font-weight:var(--fw-label);color:var(--muted);text-align:left;cursor:pointer}
.tgf-open .ic{flex:none;width:20px;height:20px;color:var(--ink)}
.tgf-open span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgf-open:hover{color:var(--ink)}
.cbx-o.cbx-t.tg-o{justify-content:center;min-height:52px}
.cbx-full .cbx-o.cbx-t.tg-o{min-height:52px}
.tg-o .tg-sp{display:none}
.cbx-o.cbx-t.tg-o[aria-selected="true"]{padding-right:30px}
/* round 9: the tick sits on the name's line; chips the height of 「＋ 加入」; 修改: one name per row, bin on the right */
.cbx-o.cbx-t.tg-o .cbx-ck{top:50%;transform:translateY(-50%)}
.tgf .tgc{min-height:40px;box-sizing:border-box}
.tgcb.tg-editing .cbx-l{grid-template-columns:minmax(0,1fr)}
.tg-ed{display:flex;align-items:center;gap:8px;min-height:52px}
.tg-ed .tg-in{flex:1;min-width:0;min-height:44px;font-size:16px;font-weight:var(--fw-label)}
.tg-del{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:none;cursor:pointer}
.tg-del .ic{width:20px;height:20px}
.tgcb [hidden]{display:none!important}
body.tg-open .toast{z-index:var(--z-top)}   /* the undo after deleting a name stays above the full-screen picker */
/* round 9: 分享 GIF beside replay in the review — a secondary action (icon + words, no box), 44px, never squeezed */
.rv-gif{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 4px;border:0;background:none;font:inherit;font-size:14px;font-weight:var(--fw-head);color:var(--ink);cursor:pointer;white-space:nowrap}
.rv-gif .ic{width:20px;height:20px}
.rv-gif:disabled{color:var(--faint);cursor:default}
.shs-f [data-shimg]:disabled{opacity:1;cursor:progress}

/* v0.19.2 round 10 (Amuii: share window — CTA at the bottom, alignment, the app's colour card, background colour):
   every part of the options starts 24px under the one above; the two colours side by side as columns of the same grid;
   the bar (NDA note, 複製連結 | 分享) at the bottom of the window, both buttons 52px, on phones too. */
.shs-ctl .shs-row{margin-top:0}
.shs-ctl .shs-fitw,.shs-ctl .shs-colw,.shs-ctl .shs-covw,.shs-ctl .shs-togs{margin-top:24px}
.shs-ctl .flab{margin:0 0 8px}
.shs-fitw .seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.shs-crs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.shs-crs.one{grid-template-columns:minmax(0,1fr)}
.shs-cr .pl-tb{min-height:44px}
.shs-colw .pl-cp{margin-top:12px}
.shs-f .btn{min-height:52px;height:52px}
.shs-f [data-shcopy]{flex:none;padding:0 16px}
.shs-bar .shs-warn{margin:0 0 10px}
@media (min-width:744px){
  .shs-grid{align-items:stretch}
  .shs-ctl{display:flex;flex-direction:column;min-height:0}
  .shs-panes{flex:1 1 auto}
  .shs-bar{margin-top:auto;padding-top:24px}
}
@media (max-width:743px){
  .shs-f [data-shcopy] .shs-cl{display:inline}
}
@media (min-width:744px){
  /* the options column is as tall as the preview; a long part (an open colour card) scrolls inside, the bar stays put */
  .shs-ctl{height:0;min-height:100%}
  .shs-panes{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
}
/* the colour card opens in place under the two colour buttons, like 外觀 (.lk-cw), full width of the options */
.shs-colw .pl-fp{position:static;width:auto;max-width:none;max-height:none;margin-top:12px}
.shs-cr .pl-tb{font-family:var(--f-num);letter-spacing:.04em}
/* round 11: seconds per stage (item GIF), the same seg as 圖片, three equal columns */
.shs-ctl .shs-stepw{margin-top:24px}
.shs-stepw .seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}

/* v0.19.2 round 12 (Amuii: share window — tabs looked like the choices; options into drop-downs): no tabs on phones
   either: every part shows, one under the other, each under a numbered heading (the settings' .lk-step). The goal is one
   native drop-down; the shows are a drop-down that opens the tick list. Both the size of the choices (52px, 1px ink). */
.shs-tabs{display:none!important}
.shs-pane{display:block!important}
.shs-pane+.shs-pane{margin-top:8px}
.shs-step{margin:0 0 12px}
.shs-pane:first-child .shs-step{margin-top:0;padding-top:0;border-top:0}
/* the colour square shows even when it is white */
.shs-cr .pl-csq{box-shadow:inset 0 0 0 1px var(--line)}
@media (max-width:743px){
  .shs-panes{padding-top:16px}
}

/* v0.19.2 round 13: a window is open → the page behind stays still (js/views/sheet.js syncScrollLock); a window's own
   scroll areas never hand the scroll on to the page */
html.sheet-lock,html.sheet-lock body{overflow:hidden}
.sheet-wrap,.sheet-body,.shs-panes{overscroll-behavior:contain}

/* v0.19.4 (a user, Windows Chrome 1920: after closing Settings the column's line sat inside the column, over the hours):
   the line's x was measured by JS (--rail-r) and kept an old value when the column moved without changing size. It now has
   no left of its own: a fixed box with left:auto stays where it would be in the column, which the browser works out on
   every layout, and it moves over by the column's width. Nothing to measure, so nothing can go stale. */
/* v0.19.5 (Amuii: 「應該有篩選頁」): the works wall's 篩選 = the planner's filter button and panel, opening under the button.
   The panel spans the row on a phone; the button is the row's other controls' size (44px, 14px words). */
#p-works .wf-bar{position:relative}
.wf-fw{position:static}
.wf-fb{min-height:44px;font-size:14px;font-weight:var(--fw-label);white-space:nowrap}
.wf-fb .ic{width:18px;height:18px}
.wf-fw .pl-fp{position:absolute;top:calc(100% + 4px);bottom:auto;left:0;right:auto;width:340px;max-width:100%;max-height:70vh}
.wf-fw .pl-fp[hidden]{display:none}
.wf-fp .pl-fseg button{padding-left:6px;padding-right:6px}
.wf-fclr{min-height:44px;margin-top:6px;font-size:14px}
.wf-fclr .ic{width:20px;height:20px}
/* v0.19.5 (Amuii: 「點 setting 同其他 page 一樣係 pop up」): 修改目標 is the 新增展會 sheet (.cf-sheet, a question per field);
   the bottom row is the editors' action row: delete red at the left, the small secondary, the primary at the right. */
.pe3-sheet #pe3F{flex:1}
.pe3-sheet .cf-in.pe-desc{min-height:64px;resize:vertical}
.pe3-sheet .tgf{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px}
.pe3-sheet .pe3-bar{position:sticky;bottom:0;z-index:2;background:var(--bg);margin-top:auto;padding:12px 0 0}
.pe3-bar .lk.danger{flex:none;min-height:52px;font-size:14px;margin-right:auto}
.pe3-bar.tp-ask .tp-askm{flex:1;margin:0;font-weight:var(--fw-head)}
@media (max-width:700px){ .pe3-bar.act-row > .btn.edbar-go{flex:1 1 auto} .pe3-bar .lk.danger{margin-right:0} .pe3-bar [data-pefin] span{display:none} .pe3-bar.act-row > [data-pefin]{width:52px;padding:0} }
/* stage ↑ ✕ in a row: bare line icons, no box; the 44px target is taken from the row's own space */
.pe3 .se-b{width:44px;height:44px;margin:-4px -6px;border:0;background:none;color:var(--ink)}
.pe3 .se-b:disabled{color:var(--faint)}
.pe3 .se-b .ic{width:20px;height:20px}
/* 達標 picks: the multi-pick tick (no yellow fill, no box); 賣出 [50] 本 is the same tick with the number in place */
.crit .crit-t{margin-right:16px}
.crit .crit-sell{gap:8px}
.crit .crit-sell .crit-x{width:22px;height:44px;padding:0;margin:0}
/* 展出場次: picked = black frame, as a picked seg (yellow is for creating only) */
.dc-c[aria-pressed="true"]{box-shadow:none;border-color:var(--ink);background:var(--soft)}
/* v0.19.5 (Amuii: 「sorting 點解全部唔同？唔好加框，align all sorting same ui element」): every sort control (目標, 今日,
   排期, 作品) is 「排序」 in grey + the choices as words with no frame; the picked one black and bold with a line under it. */
.seg.pg-srt{border:0;background:none;gap:2px}
.seg.pg-srt button{border:0!important;background:none!important;min-height:44px;padding:0 8px;font-size:14px;text-underline-offset:6px}
.seg.pg-srt button[aria-pressed="true"]{text-decoration:underline;text-decoration-thickness:2px}
.wf-end .srt-l{margin-right:4px}
.wf-srt button{white-space:nowrap}
/* Round 2 (Amuii: 「layout 好迫睇得好辛苦」): room to breathe — 36px between questions, 12px under each question, 64px between
   the columns; the last question clears the pinned bottom row. */
.pe3-sheet .sheet{max-width:1080px}
.pe3 .cf-cols{gap:0 64px}
.pe3 .cf-q{margin:0 0 36px}
.pe3 .cf-l{display:flex;align-items:center;gap:8px;margin:0 0 12px}
.pe3 .dc{margin-top:20px}
.pe3 .dc .flab{margin:0 0 8px}
.pe3 .dc-q{margin-top:16px!important}
.pe3 .crit{gap:4px 0}
.pe3-sheet #pe3F{padding:8px 0 24px}
.pe3 .se-r{min-height:52px}
@media (max-width:700px){ .pe3 .cf-q{margin-bottom:28px} }
/* v0.19.5: 分組 and 排序 at the right end of the works bar, each 「label + words」; on a narrow screen 分組 drops to its own
   line under 篩選 (as the grouping does on 目標) and 排序 stays at the right */
#p-works .wf-bar{flex-wrap:wrap}
#p-works .wf-bar .wf-end{flex-wrap:wrap;justify-content:flex-end;gap:0 20px}
.wf-ctl{display:inline-flex;align-items:center;gap:4px;flex:none}
.wk-grp > summary{font-size:17px}
.wk-grp .wf{margin-top:8px}
/* Round 3 (Amuii: 「呢度唔係 create」): one line for what the goal has now, 更改 beside it; the 達標 it has, a row each */
.pe3-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;min-height:44px;margin:0;font-size:15px}
.pe3-line b{font-weight:var(--fw-head)}
.pe3-chg{min-height:44px;font-size:14px}
.pe3-chg .ic{width:20px;height:20px}
.pe3-types .nf-ty[aria-pressed="true"]{background:var(--soft);color:var(--ink);border-color:var(--ink)}
.pe3-crit{display:flex;flex-direction:column}
.pe3-cr{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;font-size:15px;font-weight:var(--fw-label)}
.pe3-cr .crit-n{margin:0 6px}
.pe3-x{width:44px;height:44px;margin:-2px -10px -2px 0;padding:0;border:0;background:none;display:grid;place-items:center;color:var(--ink);cursor:pointer}
.pe3-x .ic{width:20px;height:20px}
.pe3-cin{width:100%;height:44px;margin-top:4px}
/* the 篩選 panel opens right under its button even when the bar takes two or three lines on a phone */
.wf-fw{position:relative}
.wf-fw .pl-fp{width:min(340px,calc(100vw - 32px));max-width:none}
/* v0.19.5 (Amuii: 「次序 match user incentive?」「字壓成兩行」): the works bar reads 分組 → 篩選 ……… 排序. Sort and group
   choices never stretch or wrap; on a phone 分組 takes the first line, 篩選 and 排序 the second. */
.seg.pg-srt button{flex:none;white-space:nowrap}
#p-works .wf-bar{flex-wrap:wrap;gap:4px 24px}
@media (max-width:700px){
  #p-works .wf-grpw{flex:1 1 100%}
  #p-works .wf-bar .wf-end{flex:0 0 auto;margin-left:auto;justify-content:flex-end}
}
/* v0.19.5 round 4 (Amuii: 「全部黑白字睇死人」「visual cue」): the goal's picture and big name on top; 這是甚麼 on a soft
   block, 點樣完成 on white; each stage with its bar; the days left as the sheet's one big number; ticks before each measure. */
.pe3-id{display:flex;align-items:center;gap:20px;margin:0 0 28px}
.pe3-th{width:88px;height:88px;flex:none;overflow:hidden}
.pe3-th img{width:100%;height:100%;object-fit:cover}
.pe3-noth{display:grid;place-items:center;background:var(--soft);color:var(--muted)}
.pe3-noth .ic{width:32px;height:32px}
.pe3-idt{flex:1;min-width:0}
.pe3-name{display:block;width:100%;height:auto;padding:0 0 4px;border:0;border-bottom:1px solid transparent;background:transparent;font-size:28px;font-weight:var(--fw-head);letter-spacing:-.01em}
.pe3-name:hover,.pe3-name:focus{border-bottom-color:var(--ink);outline:none}
.pe3-type{display:flex;align-items:center;gap:8px;min-height:44px;margin:4px 0 0;font-size:15px}
.pe3-type .ic{width:20px;height:20px}
.pe3-type .pe3-chg{margin-left:8px}
.pe3 .cf-cols{gap:0 40px;align-items:start}
.pe3-what{background:var(--soft);padding:24px 24px 0}
.pe3-how{padding:24px 0 0}
.pe3-h{margin:0 0 20px;font-size:12px;font-weight:var(--fw-head);letter-spacing:.12em;color:var(--muted)}
.pe3-what .tgf .chip.on{background:var(--bg)}
.pe3-sr{align-items:center}
.pe3-sm{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;padding:4px 0}
.pe3-sm .se-in{width:100%}
.pe3-sb{display:block;height:6px;background:var(--line)}
.pe3-sb i{display:block;height:100%;background:var(--acc)}
.pe3-sm small{font-size:12px;font-weight:var(--fw-label);color:var(--muted)}
.pe3 .se-b.pe3-danger{color:var(--red)}
.pe3-days{display:flex;align-items:baseline;gap:10px;margin:0 0 4px}
.pe3-days .big{font-size:72px;line-height:.9}
.pe3-days span{font-size:15px;font-weight:var(--fw-head)}
.pe3-days.late{color:var(--red)}
.pe3-none{margin:0;font-size:20px;font-weight:var(--fw-head);color:var(--muted)}
.pe3-cr{gap:12px;justify-content:flex-start}
.pe3-cr .crit-b{background:var(--ink);color:var(--bg)}
.pe3-ct{flex:1;min-width:0}
.pe3-x{margin:-2px 0}
@media (max-width:700px){ .pe3-what{padding:16px 16px 0;margin:0 -16px} .pe3-name{font-size:22px} .pe3-th{width:64px;height:64px} .pe3-days .big{font-size:56px} }
@media (max-width:1023px){ .pe3 .cf-col{display:block} }
/* v0.19.5 round 5 (Amuii, mockup 4: 「more padding」「唔好全部粗體」「prompt 太深」「consistent form fill」): 修改目標.
   Top: picture · name · line. Left column: 01 stages. Right: 02–06 in a two-column grid. One field style: a quiet question
   (14px regular, its number in grey), the answer 16px regular on a single underline, faint short hints, ✎ alone to change. */
.pe3-sheet .sheet{max-width:1000px}
.pe3{padding:8px 4px 0}
.pe3-id{display:flex;align-items:flex-start;gap:20px;margin:8px 0 40px}
.pe3-th{width:72px;height:72px;flex:none;overflow:hidden}
.pe3-idt{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.pe3-name,.pe3-desc{display:block;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;padding:4px 0 6px;border-radius:0}
.pe3-name{font-size:28px;font-weight:var(--fw-head);letter-spacing:-.01em}
.pe3-desc{font-size:16px;font-weight:var(--fw-body)}
.pe3-name:focus,.pe3-desc:focus{outline:none;border-bottom-color:var(--ink)}
.pe3 ::placeholder{color:var(--faint);font-weight:var(--fw-body);opacity:1}
.pe3-body{display:grid;grid-template-columns:280px minmax(0,1fr);gap:0 56px;align-items:start}
.pe3-pr .pe3-body{grid-template-columns:minmax(0,1fr)}
.pe3-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px 40px}
.pe3-full{grid-column:1/-1}
.pe3-l{display:flex;align-items:baseline;gap:10px;margin:0 0 10px;font-size:14px;font-weight:var(--fw-body);color:var(--ink)}
.pe3-l i{font-style:normal;font-size:12px;font-weight:var(--fw-label);color:var(--muted);font-variant-numeric:tabular-nums;width:18px}
.pe3-opt{font-size:12px;font-weight:var(--fw-body);color:var(--muted)}
.pe3-hint{margin:-4px 0 10px 28px;font-size:13px;color:var(--muted)}
.pe3-f{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;min-height:48px;padding:4px 0;border-bottom:1px solid var(--line);font-size:16px;font-weight:var(--fw-body)}
.pe3-f .pe-in,.pe3-f .tgf{border:0;padding:0;min-height:0;width:auto;background:none;font-weight:var(--fw-body)}
.pe3-f .tgf{flex:1}
.pe3 .chip.on{font-weight:var(--fw-body);font-size:15px}
.pe3 .chip-in{flex:1;min-width:120px;height:40px;border:0;font-size:16px;font-weight:var(--fw-body)}
.pe3 .chip-in:focus{background:none}
.pe3-chg{margin-left:auto;width:44px;height:44px;display:grid;place-items:center;padding:0;color:var(--ink)}
.pe3-chg .ic{width:20px;height:20px}
.pe3-con{color:var(--muted);font-size:14px}
.pe3 .dc{margin-top:16px}
.pe3-stages .se-r{min-height:48px}
.pe3-stages .se-in{font-size:16px;font-weight:var(--fw-body)}
.pe3-stages .se-n{font-weight:var(--fw-label)}
.pe3 .tgf-open{font-weight:var(--fw-body)}
.pe3-sell .crit-n{width:48px;font-weight:var(--fw-body)}
@media (max-width:760px){ .pe3-body,.pe3-fields{grid-template-columns:minmax(0,1fr)} .pe3-stages{margin-bottom:36px} .pe3-name{font-size:22px} .pe3-th{width:56px;height:56px} }
/* the 分組 / 排序 button (js/views/pick.js): 「分組：」 grey, the choice bold, ▾; its list right under it, a tick beside the current */
.pk-b{min-height:44px;font-size:14px;gap:4px;white-space:nowrap}
.pk-b .pk-l{color:var(--muted);font-weight:var(--fw-body)}
.pk-b b{font-size:12.5px;font-weight:var(--fw-head);color:var(--ink)}   /* 2026-11-20 (Amuii: 「字體全部唔同樣」): what is chosen = the seg's chosen word (12.5px, bold, black) */
.pk-b .ic{width:16px;height:16px}
.pk .pk-p{top:calc(100% + 4px);bottom:auto;left:auto;right:0;width:auto;min-width:180px;max-width:none;padding:6px 0}
.pk .pk-p[hidden]{display:none}
.pk-o{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 14px;border:0;background:none;font:inherit;font-size:15px;color:var(--ink);cursor:pointer;text-align:left}
.pk-o:hover{background:var(--soft)}
.pk-o .ic,.pk-sp{width:18px;height:18px;flex:none}
.pk-o[aria-selected="true"]{font-weight:var(--fw-label)}
.wf-fn{color:var(--muted);font-weight:var(--fw-body);margin-left:4px}
.wf-sortb{width:44px;height:44px;display:grid;place-items:center;padding:0;color:var(--ink)}
.wf-sortb .ic{width:22px;height:22px}
#p-works .wf-bar{flex-wrap:nowrap;gap:4px 16px}
#p-works .wf-grpw{flex:none}
#p-works .wf-bar .wf-end{margin-left:auto;flex:none}
@media (max-width:700px){ #p-works .wf-grpw{flex:none} }
/* the goal page's top row: 「‹ 目標 ／ name」 at the left; 提早完成 and ⚙ at the right; the goal sits flat, no frame */
.g-top{display:flex;align-items:center;gap:var(--sp-3);min-height:52px;margin-bottom:var(--sp-2)}
.g-top .wk-crumb{flex:1;min-width:0}
.g-acts{display:flex;align-items:center;gap:8px;flex:none}
.g-early{min-height:44px}
.g-set{width:44px;height:44px;display:grid;place-items:center;padding:0}
.g-set .ic{width:22px;height:22px}
#p-goals .pgrid > .prow2.open{border:0;box-shadow:none;background:none;padding:0}   /* 2026-11-20: an open goal is a page, not a card: no card padding above its content */
/* v0.19.5 round 6 (Amuii: 「唔係叫你全部 unbold」「consistent form fill」): the one form field of the app —
   the question bold (structure) with its number in grey, 選填 in faint small words, the answer regular on one underline,
   hints are icons only (＋ to add, ✎ to change, the calendar); the primary fills the rest of the bottom row. */
.pe3-l{font-size:15px;font-weight:var(--fw-head);letter-spacing:-.01em}
.pe3-opt,.nf-q .pe3-opt{font-size:12px;font-weight:var(--fw-body);color:var(--faint);margin-left:6px}
.pe3-f,.pe3-stages .se-in,.pe3 .chip.on,.pe3-desc{font-weight:var(--fw-body)}
.pe3-bar .lk.danger{margin-right:0}
.pe3 .tgf-open{min-width:44px;min-height:44px;justify-content:center;color:var(--faint)}
.pe3 .tgf-open .ic{width:20px;height:20px}
.nf-tags .tgf{border-bottom:1px solid var(--line);min-height:48px}
.nf-tags .tgf-open{min-width:44px;min-height:44px;color:var(--faint)}
.nf-r[hidden]{display:none}
/* v0.19.5 (Amuii: 「分組撳落去冇反應」): the choices open right under the button on phones too (they were fixed to the
   bottom of the screen, under the tab bar); 分組 opens from its left edge, 排序 at the right end from its right edge.
   The icon in front of 分組 is the size of 篩選's. */
.pk{position:relative}
.pk .pk-p{position:absolute}
.pk[data-pk="wgroup"] .pk-p{left:0;right:auto}
.pk-b .ic.pk-ic{width:20px;height:20px;margin-right:2px}
/* v0.19.5: the share card's mark tick — free accounts see a small lock after its name (a tap opens the upgrade sheet) */
.shs-mark .shs-lock{width:16px;height:16px;color:var(--muted);margin-left:2px}
/* v0.19.5: the GIF's two sliders (每個階段 / 完成圖停留): the question in bold with the seconds at its right; a 2px ink line,
   the part to the left of the handle in the accent colour, a 20px square handle; 44px to tap. */
.shs-rg{display:block;margin-top:20px}
.shs-rg .flab{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0}
.shs-rg .flab b{font-weight:var(--fw-head);font-variant-numeric:tabular-nums}
.shs-range{-webkit-appearance:none;appearance:none;display:block;width:100%;height:44px;margin:0;background:transparent;cursor:pointer;accent-color:var(--acc)}
.shs-range::-webkit-slider-runnable-track{height:4px;background:linear-gradient(var(--acc),var(--acc)) 0 0/var(--p,50%) 100% no-repeat,linear-gradient(var(--ink),var(--ink)) 0 50%/100% 2px no-repeat}
.shs-range::-moz-range-track{height:2px;background:var(--ink)}
.shs-range::-moz-range-progress{height:4px;background:var(--acc)}
.shs-range::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;margin-top:-8px;border:2px solid var(--ink);border-radius:0;background:var(--acc)}
.shs-range::-moz-range-thumb{width:20px;height:20px;border:2px solid var(--ink);border-radius:0;background:var(--acc)}
.shs-range:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* v0.19.5 第四批 (Amuii: 「3 個排序點解唔同」): one sort button everywhere (pick.js) — 「排序：重要性 ↓」.
   The sort's arrow has a stem (a ▾ reads as "expand"); the old seg + <select> sorts are gone. */
.pk-b .ic.pk-t{width:16px;height:16px}
.plf .pl-c0:has(.pk){align-items:center;padding:0 8px;overflow:visible}
.pl-c0 .pk .pk-p{left:0;right:auto}
/* the planner's header is 40px: the sort button fills it; its 44px tap area sticks out invisibly (rule 17) */
.pl-c0 .pk-b{min-height:38px;height:38px;position:relative}
.pl-c0 .pk-b::after{content:"";position:absolute;left:0;right:0;top:-3px;bottom:-3px}
/* the phone's wider names column is the 排期 page's (.plf); the landing page's example planner keeps its own 48px column,
   otherwise its deadline diamond lands 120px past the right edge (ui-check: 「the deadline diamond and its words are in view」) */
@media (max-width:699px){ .lp-pl .pl:not(.pl-mini){--pl-nw:inherit} }

/* v0.20.0 回顧 report: numbered parts under the month, one question each. Blocks and space divide; no cards, no shadows. */
.rp-sec{display:flex;flex-direction:column;border-top:1px solid var(--ink);padding-top:12px}
.rp-sec>.lab{margin:0 0 12px;display:flex;gap:8px;align-items:baseline}
.rp-n{font-family:var(--f-num);font-weight:var(--fw-head);color:var(--ink)}
.rp-note{display:block;margin-top:6px;font-size:12px;font-weight:var(--fw-label);color:var(--muted)}
.rp-band{display:flex;gap:2px;height:32px}
.rp-band i{display:block;min-width:2px}
.rp-leg{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:0 28px;margin-top:10px}
.rp-lr{display:grid;grid-template-columns:10px minmax(0,1fr) auto 40px;gap:10px;align-items:center;padding:8px 0;font-size:14px}
.rp-lr i{width:10px;height:10px}
.rp-lr span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-lr b{font-family:var(--f-num);font-weight:var(--fw-head)}
.rp-lr em{font-style:normal;color:var(--muted);font-size:12px;text-align:right;font-family:var(--f-num)}
.rp-lr.on span{font-weight:var(--fw-head)}
.rp-sec>.foot{margin:8px 0 0}
.rp-goal{display:flex;flex-direction:column;gap:8px;width:100%;min-height:44px;border:0;background:none;padding:12px 0;font:inherit;color:var(--ink);text-align:left;cursor:pointer}
.rp-gh{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.rp-name{font-weight:var(--fw-head);font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-pct{font-family:var(--f-num);font-weight:var(--fw-head);font-size:15px;flex:none}
.rp-bar{display:flex;height:8px;background:var(--line)}
.rp-bar i{display:block;background:var(--ink)}
.rp-bar i.new{background:var(--acc)}
.rp-sub{font-size:13px;color:var(--muted);line-height:1.5}
@media (hover:hover){.rp-goal:hover .rp-name{text-decoration:underline}}
.rp-ba{display:flex;gap:12px}
.rp-fig{display:flex;flex-direction:column;gap:6px;width:min(160px,46%);font-size:12px;font-weight:var(--fw-label);color:var(--muted)}
.rp-fig img{width:100%;aspect-ratio:3/4;object-fit:cover;background:var(--line)}
.rp-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px 40px}
.rp-th{margin:0 0 10px;font-size:13px;font-weight:var(--fw-label)}
.rp-bars{display:flex;gap:6px;align-items:stretch;height:150px}
.rp-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;gap:4px;border:0;background:none;padding:0;font:inherit;color:var(--ink);text-align:center}
button.rp-col{cursor:pointer}
.rp-col em{font-style:normal;font-family:var(--f-num);font-size:11.5px;font-weight:var(--fw-label);color:var(--muted);white-space:nowrap}
.rp-col i{display:block;background:var(--line);min-height:2px}
.rp-col b{font-size:12px;font-weight:var(--fw-label);color:var(--muted)}
.rp-col.on i{background:var(--acc)}
.rp-col.on em,.rp-col.on b{color:var(--ink)}
.rp-say{margin:12px 0 0;font-size:14px;line-height:1.5}
.rp-ch{display:flex;justify-content:space-between;align-items:center;gap:8px 20px;flex-wrap:wrap;padding:10px 0;}
.rp-ch p{margin:0;font-size:15px;font-weight:var(--fw-label);line-height:1.5;flex:1 1 280px}
.rp-ch .lk{min-height:44px;flex:none}

/* v0.20.0 round 2: the report opens with words (the month's 今日辛苦了). Lines rise one by one when a month is first shown. */
.rp-hello{margin:14px 0 18px;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(26px,3.6vw,44px);line-height:1.2;letter-spacing:-.02em;max-width:22em}
.rp-letter{display:flex;flex-direction:column}
.rp-line{margin:0}
.rp-letter .rp-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-height:44px;padding:12px 0;border:0;background:none;font:inherit;font-size:clamp(17px,1.7vw,21px);font-weight:var(--fw-label);line-height:1.5;color:var(--ink);text-align:left;width:100%}
.rp-letter .rp-line:last-child{border-bottom:0}
.rp-go{cursor:pointer}
.rp-tx{flex:1 1 0;min-width:0}
.rp-go>svg{width:20px;height:20px;flex:none;color:var(--muted)}
.rp-go .rp-ba{flex:1 0 100%;margin-top:4px}
@media (hover:hover){.rp-go:hover>svg{color:var(--ink)}}
@keyframes rpIn{from{opacity:0;transform:translateY(14px)}}
@keyframes rpGrowX{from{transform:scaleX(0)}}
@keyframes rpGrowY{from{transform:scaleY(0)}}
.hm-go .rp-line{animation:rpIn .5s calc(var(--i,0)*120ms) cubic-bezier(.2,.8,.2,1) both}
.hm-go .rp-band{transform-origin:left;animation:rpGrowX .8s .2s cubic-bezier(.2,.8,.2,1) both}
.hm-go .rp-bar i.new{transform-origin:left;animation:rpGrowX .9s .4s cubic-bezier(.2,.8,.2,1) both}
.hm-go .rp-col i{transform-origin:bottom;animation:rpGrowY .7s .3s cubic-bezier(.2,.8,.2,1) both}
@media (prefers-reduced-motion:reduce){.hm-go .rp-line,.hm-go .rp-band,.hm-go .rp-bar i.new,.hm-go .rp-col i{animation:none}}

/* 2026-11-14 排期：展出任務摺埋都拉得；菱形旁邊寫日期；拉緊嗰粒嘅日期黃底 */
.pl-dm .pl-tkl b{font-weight:var(--fw-head)}
.pl-dm.drg span{background:var(--acc);color:var(--ink);padding:1px 4px;z-index:6}
.pl-dm.drg{z-index:6}
/* 2026-11-14 展出任務：倒推（展前 N 天）同直接揀日期兩樣都有 */
.tk-ed:has(.tk-dt) .tk-scale,.tk-er:has(.tk-dt){grid-template-columns:minmax(130px,1.1fr) minmax(160px,2fr) 128px 112px 26px}
.tk-dt{min-height:44px;justify-content:flex-start;white-space:nowrap;font-weight:var(--fw-label)}
.tk-dtb{background:none;border:0;padding:0;margin:-10px 0;min-height:44px;font:inherit;color:inherit;cursor:pointer;display:inline-flex;align-items:center}
.tk-dtb:hover .tc{background:var(--acc);color:var(--ink)}
@media (max-width:743px){
  .tk-er:has(.tk-dt){grid-template-columns:minmax(0,1fr) auto 26px;grid-template-areas:"n v x" "t dt dt"}
  .tk-er:has(.tk-dt) .tk-dt{grid-area:dt} .tk-er:has(.tk-dt) .tk-track{margin:0}
}
/* 窄欄（電腦版展出列表只有約 340px）：按容器闊度排，同手機一樣上下兩行 */
.tk-ed{container-type:inline-size}
@container (max-width:600px){
  .tk-ed .tk-scale{display:flex} .tk-ed .tk-scale > span:first-child,.tk-ed .tk-scale > span:last-child{display:none} .tk-ed .tk-ticks{flex:1;margin-right:38px}
  .tk-ed .tk-er{grid-template-columns:minmax(0,1fr) auto 26px;grid-template-areas:"n v x" "t t t";gap:2px 10px;padding:8px 0 4px}
  .tk-ed .tk-name{grid-area:n} .tk-ed .tk-dv{grid-area:v} .tk-ed .tk-er .x{grid-area:x} .tk-ed .tk-track{grid-area:t;margin:0 38px 0 0}
  .tk-ed .tk-er:has(.tk-dt){grid-template-areas:"n v x" "t dt dt"}
  .tk-ed .tk-er:has(.tk-dt) .tk-dt{grid-area:dt} .tk-ed .tk-er:has(.tk-dt) .tk-track{margin:0}
}

/* v0.20.0 round 4: 今日要做 · 顯示：7 天內 ▾ — the choice sits beside the heading, its panel opens under it to the right */
.cq-hl{display:flex;align-items:center;gap:var(--sp-3);min-width:0}
.cq-hl .lab{white-space:nowrap}
.cq-pk .pk-b{min-height:44px;color:var(--ink)}
/* 2026-11-20 (Amuii: 「remove the title, make the selected filter as title」): 今日要做's range is its heading */
.cq-pk .pk-b b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:20px;letter-spacing:-.01em;color:var(--ink)}
.pk.cq-pk .pk-p{left:0;right:auto;min-width:220px}
.pk-p .pk-fh{margin:8px 14px 0}
.pk-p .pk-tg{display:flex;width:100%;padding:0 14px;box-sizing:border-box}
.cq-none{margin:var(--sp-1) 0 var(--sp-2)}

/* v0.20.0 round 5 (Amuii: 「desktop so bad layout… put the note on the left bar」「just smaller the button」「輸入格 sticky to bottom」):
   今日要做 sits in the left column under the time table; the column scrolls on its own (it is taller than the window now),
   and the add field stays at the column's bottom while the list is in view. Water and stretch keep their rows; their
   buttons are quiet secondary ones (＋ and words, no fill: one yellow per screen). */
@media (min-width:744px){
  .t-rail{max-height:calc(100vh - var(--rail-top,96px) - 8px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}
  .t-rail > *{flex-shrink:0}
  .t-rail #conQ:not([hidden]){margin:var(--sp-1) 0 var(--sp-3)}
  .t-rail #conQ > .cq-h .lab{font-size:17px}
  .t-rail #conQ .cq-r .tk-n,.t-rail #conQ .cq-ain{font-size:15px}
  .t-rail #conQ .cq-add{position:sticky;bottom:0;z-index:1;background:var(--soft);padding-bottom:var(--sp-2)}
  .t-body #conQ:not([hidden]){margin:0 0 var(--sp-3)}
}
@media (min-width:1024px){ .t-rail .rl-tog{top:0} }
.cq-pl-s{display:none}
@container (max-width:420px){ .cq-pl-f{display:none} .cq-pl-s{display:inline} #conQ .cq-hl{gap:8px} }
.bd3-add,.t-rail .bd3-add{height:auto;min-height:44px;min-width:0;padding:0;gap:var(--sp-1);background:none;color:var(--ink);font-size:13px;font-weight:var(--fw-head)}
.bd3-add .ic{width:20px;height:20px;stroke-width:2.4}

/* v0.20.0 round 6 (Amuii: 「dont show scroll bar」「+new task sticky to bottom… put it at the bottom」「drinking stretching
   button right side, dont put 2nd line」「dont use grey card… just black divider. left bar have 2 section」):
   section 1 = clock, start, time table, water, stretch; a black line; section 2 = 今日要做, the column's last part, its
   add field at the column's bottom. Water / stretch: pictures left (they wrap when there are many), the button right,
   centred on the first row of pictures, never moving. */
@media (min-width:744px){
  .t-rail{height:var(--rail-h,calc(100vh - var(--rail-top,96px) - 8px));max-height:none;scrollbar-width:none;-ms-overflow-style:none}
  .t-rail::-webkit-scrollbar{display:none;width:0;height:0}
  .t-rail #conQ:not([hidden]){background:none!important;margin:0!important;padding-right:0!important;padding-bottom:0!important;padding-left:0!important}
  .t-rail > #cqFoot{margin-top:auto;position:sticky;bottom:0;z-index:1;background:var(--bg);padding:var(--sp-1) 0 var(--sp-2);border-top:0!important}
  .t-rail .bd3{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:var(--sp-3)}
  .t-rail .bd3-add{justify-self:end;margin-top:calc((var(--pic-h,var(--sp-4)) - var(--sp-4)) / 2)}
  .t-rail .bd3-p{flex-wrap:wrap;--pic-h:39px}
  .t-rail .bd3:has(.fig){--pic-h:36px}
  body.rail-min .t-rail{height:calc(100vh - var(--rail-top,96px) - 16px)}
}
.t-tl[hidden]{display:none}
@media (min-width:744px){ .t-body #tTl:not([hidden]){padding:0 0 18px} }
@media (max-width:743px){ #tTl{order:4;padding:12px 0} }

/* v0.20.0 round 7 (Amuii: 「why all divider lines so different」「目標 tab… dont want the border」「dont put 時間線 name,
   no divider between slogan and timeline, too much space」「top alignment… messy padding」「2 已完成 not same」):
   ONE rule for lines, in two tokens — never write a line colour or width anywhere else:
   --rule     black 1px = the page's structure: under the top bar, the left column's edge, the left column's two sections.
   --rule-row grey 1px  = rows inside a list or table: the timeline's date row, the goal grid, input underlines.
   Between sections: no line, --sec-gap of white space. tools/ui-check.mjs "one line style" checks it. */
:root{--rule:1px solid var(--ink);--rule-row:1px solid var(--line);--sec-gap:24px;--pg-top:0px}   /* 2026-11-23 (Amuii: 「窄D… the original 排期 is almost just 8px」): every page's first row sits 8px under the top bar (the bar's own margin), no extra step */
.bd3 + .bd3{border-top:0!important}
.hc2-go{border-top:var(--rule)}
/* the timeline on Today: no heading, no line above it, 24px above and below */
.pl-tday{border-top:0!important;margin:0!important}
.pl-tday .pl-mh{display:none}
.pl-mini .pl-hd{}
@media (min-width:744px){
  .t-body #whyQ{padding-bottom:var(--sec-gap)!important;border-bottom:0!important}
  .t-body #tTl:not([hidden]){padding-bottom:0!important}
}
@media (max-width:743px){ #tTl{padding-bottom:0!important} }
/* goal tabs: words only, like 排序's choices (.seg.pg-srt): picked = black bold, underlined; others grey; no frame, no fill.
   The goal under them has no frame either and starts at the same left edge as the sentence and the timeline. */
#projArea .ptabs-row{align-items:center;gap:var(--sp-1)}
#projArea .ptabs-lab{padding:0 var(--sp-2) 0 0}
#projArea .ptabs{margin:0;gap:0;align-items:center}
#projArea .ptab,#projArea .ptab.on{border:0!important;background:none!important;padding:0 var(--sp-2)!important;min-height:44px;font-size:14px;color:var(--muted);text-underline-offset:6px;border-radius:0!important}
#projArea .ptab .pt-ty{font-size:14px;font-weight:var(--fw-body)!important;color:var(--muted)}
#projArea .ptab.on .pt-ty{color:var(--ink);font-weight:var(--fw-head)!important;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
#projArea .ptab.add{color:var(--faint);padding:0 var(--sp-2)!important}
#projArea .ptab.add .ic{width:20px;height:20px}
#projArea .ptab.add:hover{color:var(--ink)}
#projArea .ppanel{border:0!important;padding:0!important;margin-top:var(--sp-3);background:none}
/* every page's first line starts where the clock starts (the left column sits 16px under the top bar) */
@media (min-width:1024px){ body[data-rail="side"] .main > .panel:not(#p-today):not(#p-goals){padding-top:var(--pg-top)} }   /* 目標 already starts 16px down (#gBar) */
/* 已完成: one look everywhere (time table, 待辦) — grey 13px words + ▾, turns over when open */
.tl-donen,.cq-dnb,body[data-panel] #app :is(.tl-donen,.cq-dnb){display:inline-flex;align-items:center;gap:var(--sp-1);min-height:44px;padding:0;font-size:13px;font-weight:var(--fw-body);color:var(--muted)!important;border:0;background:none;cursor:pointer}
:is(.tl-donen,.cq-dnb) .ic{width:16px!important;height:16px!important;transition:transform .2s}
.tl-donen[aria-expanded="true"] .ic,.cq-dnb[aria-pressed="true"] .ic{transform:rotate(180deg)}
.cq-dnb{margin:-8px 0}
/* round 7b (Amuii: 「點樣睇到呢個 tab 點擊係換下面呀」 → picked A): a tab bar. One full-width grey line (--rule-row) under
   the tabs, as wide as the goal below; the picked tab is black and stands on it with a 2px black bar (a marker, not a
   divider); the others grey. 「目標」 is a small grey label above, like 待辦 / 白板 on 想法. The goal starts right under the line. */
#projArea .ptabs-row{display:block;}
#projArea .ptabs-lab{display:block;padding:0;margin:0 0 var(--sp-1);font-family:var(--f-body);font-size:10.5px;font-weight:var(--fw-label)!important;color:var(--muted);letter-spacing:.04em}
#projArea .ptabs{gap:var(--sp-4);margin-bottom:-1px}
#projArea .ptab,#projArea .ptab.on{padding:0!important;min-height:44px;box-shadow:none}
#projArea .ptab .pt-ty{font-size:15px}
#projArea .ptab.on{box-shadow:inset 0 -2px 0 var(--ink)!important}
#projArea .ptab.on .pt-ty{text-decoration:none}
#projArea .ptab:not(.on):not(.add):hover .pt-ty{color:var(--ink)}
#projArea .ptab.add{padding:0 var(--sp-1)!important}
#projArea .ppanel{margin-top:var(--sp-3)}
#projArea .ptabs{align-items:flex-end;height:auto;min-height:0;gap:var(--sp-1);margin-left:-8px}
#projArea .ptab,#projArea .ptab.on{padding:0 var(--sp-2)!important;min-width:44px;justify-content:center}
#projArea .ptab.add{padding:0 var(--sp-3)!important}
/* round 7c (Amuii: 「手機 ver 可唔可以比 user 自己 reorder today page」): on a phone, the five parts under 開始創作 take the
   order set in 設定 › 今日頁次序 (today.js applyTodayOrder sets --o-*; the defaults are the order before) */
@media (max-width:743px){
  #p-today #whyQ{order:0!important} #p-today #hero{order:1!important}
  #p-today #conQ{order:var(--o-conQ,10)!important} #p-today #tlTile{order:var(--o-tlTile,11)!important} #p-today #water{order:var(--o-water,12)!important}
  #p-today #tTl{order:var(--o-tTl,13)!important} #p-today #projArea{order:var(--o-projArea,14)!important}
}
@media (min-width:744px){ .mefold:has(details[data-fold="tord"]){display:none} }
.tord{list-style:none;margin:0;padding:0}
.tord-r{display:flex;align-items:center;gap:12px;min-height:52px;background:var(--bg);cursor:grab;-webkit-touch-callout:none;user-select:none}
.tord-n{font-size:12px;font-weight:var(--fw-label);color:var(--muted);font-variant-numeric:tabular-nums}
.tord-r b{font-size:15px;font-weight:var(--fw-label)}
.tord-r.dragging{background:var(--ink)!important;color:var(--bg)!important}
.tord-r.dragging .tord-n{color:var(--bg)}
.tord + .foot{margin-top:8px}
/* round 7c-2 (Amuii: 「比佢揀 show 唔 show all elements」): every part follows the list (the sentence and 開始創作 too);
   a part ticked off is hidden on this phone's Today; in the list its name turns grey */
@media (max-width:743px){
  #p-today #whyQ{order:var(--o-whyQ,0)!important} #p-today #hero{order:var(--o-hero,1)!important}
  #p-today .t-off{display:none!important}
}
.tord-t{flex:1;min-width:0;justify-content:flex-start;font-size:15px}
.tord-r.off .tord-t{color:var(--muted)}
/* 2026-11-14 (Amuii: 「reorder should put reorder handle」): 今日頁次序 rows drag by a grip at the right end (the time
   table editor's grip look: muted, no frame); the row itself no longer drags; 44px to press, the page doesn't scroll from it */
.tord-r{cursor:default}
.tord-g{display:grid;place-items:center;width:44px;height:44px;margin-right:-10px;color:var(--muted);cursor:grab;touch-action:none;flex:none}
.tord-g .ic{width:20px;height:20px;stroke-width:3.2}
.tord-r.dragging .tord-g{color:var(--bg)}
/* 2026-11-14 (Amuii: 「模組上下嘅空白有問題，唔統一」): on a phone every part of Today sits --sec-gap (24px) from the next,
   whatever order it is in: the parts carry no space of their own above or below (cards keep their inside padding), the
   column puts the gap between them */
@media (max-width:743px){
  #p-today .tday{row-gap:var(--sec-gap)}
  #p-today :is(#whyQ,#hero,#conQ,#tlTile,#water,#tTl,#projArea):not([hidden]){margin-top:0!important;margin-bottom:0!important}
  #p-today :is(#whyQ,#hero,#tlTile,#water,#tTl,#projArea){padding-bottom:0!important}
  #p-today #hero{padding-top:0!important}
  #p-today #water .bd3:first-child{padding-top:0} #p-today #water .bd3:last-child{padding-bottom:0}
}
/* the 「目標」 label above the goal tabs is gone (Amuii: 「目標嘅 Title 字，唔該拎走」): the tabs and the goal say it */
#projArea .ptabs-lab{display:none!important}
@media (max-width:743px){
  /* the 44px rows inside these parts (時間表's date line, the ＋ 喝一杯 button, the goal grid's last line) are taller than
     what you see: their extra height is taken back (rule 17), so the space you see between any two parts is the same 24px */
  #p-today #tlTile:not([hidden]){margin-top:-12px!important;margin-bottom:-10px!important}
  #p-today #water:not([hidden]){margin-top:-10px!important;margin-bottom:-13px!important}
  #p-today #projArea:not([hidden]){margin-bottom:-16px!important}
}
@media (max-width:743px){
  /* the first thing under the top bar starts 24px under its buttons (they end 9px above the column); the 「今天已有 N 位
     創作者開工」 line carries no space of its own either — the column's 24px gap follows it like every other part */
  #p-today .tday{padding-top:calc(var(--sec-gap) - var(--sp-2))}
  #p-today .rl-clock{padding:0!important}
}
/* 2026-11-14: the gallery's always-there slots (projects.js galleryHtml) take no place of their own */
.gal-s{display:contents}
/* 2026-11-14 (Amuii: 「手機版同電腦版個樣係咪唔一樣？點解仲係用緊灰色」): on a phone 今日要做 has no grey card either,
   the same as the computer's left column since round 6 — no fill, no inside padding; the 24px gap separates it */
@media (max-width:743px){
  #p-today #conQ:not([hidden]){background:none!important;padding-right:0!important;padding-bottom:0!important;padding-left:0!important;border-right:0!important;border-bottom:0!important;border-left:0!important}
}
@media (max-width:743px){ #p-today #conQ:not([hidden]){margin-top:-10px!important} }   /* its heading line is 44px tall (顯示 ▾ · 排期 ›) */

/* v0.20.1 回顧 as moving pictures (Amuii: 「一個資料只出現一次、數量逐個見到；動畫入畫面先播一次；方格亮起、數字滾動、
   條形生長；開咗減少動態效果就關」). A part marked data-anim waits (.rp-wait = its first frame) until it is in view, then
   plays once (.rp-play). Drawn without either class it is simply finished. */
.rp-top{display:flex;flex-direction:column;border-top:var(--rule);padding-top:12px;margin-bottom:var(--sec-gap)}
.rp-top>.lab{margin:0 0 6px}
.rp-big{display:block;font-size:clamp(56px,8vw,112px);line-height:.9;letter-spacing:-.04em}
.rp-top .rp-note{margin:8px 0 0}
.rp-cal{margin-top:16px;--step:45ms}
.rp-cal-y{--step:7ms}
/* the biggest day: lights last, 「最多 7h」 in its square (its hours said once) */
.hm-c.rp-best{outline:2px solid var(--ink);outline-offset:-2px;z-index:1}
.rp-bt{font-size:clamp(10px,1vw,12.5px);font-weight:var(--fw-head);line-height:1.15;white-space:nowrap}
.rp-fin{margin-top:var(--sec-gap)}
.rp-fin>.lab,.rp-tr>.lab,.rp-st>.lab{margin:0 0 8px}
.rp-marks{display:flex;flex-direction:column;gap:var(--sec-gap);margin:var(--sec-gap) 0}
.rp-trs{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.rp-trs::-webkit-scrollbar{display:none}
.rp-tc{flex:none;display:flex;flex-direction:column;gap:6px;width:96px;border:0;padding:0;background:none;font:inherit;color:var(--ink);text-align:left;cursor:pointer}
.rp-ti{display:block;width:96px;height:120px;background:var(--line);overflow:hidden}
.rp-ti img{width:100%;height:100%;object-fit:cover;display:block}
.rp-tb .rp-ti{background:var(--soft)}
.rp-tb .rp-ti .bdp{display:block;width:100%;height:100%}
.rp-td{font-size:12px;font-weight:var(--fw-label);color:var(--muted);font-variant-numeric:tabular-nums}
@media (hover:hover){.rp-tc:hover .rp-ti{outline:2px solid var(--ink);outline-offset:-2px}}
.rp-sq,.rp-cells{display:flex;flex-wrap:wrap;gap:3px}
.rp-sq i,.rp-cells i{display:block;width:12px;height:12px;background:var(--ink)}
.rp-cells{margin-top:2px}
.rp-cells i{background:var(--acc);box-shadow:inset 0 0 0 1px var(--ink)}
.rp-gs{display:flex;flex-direction:column}
/* bars: each sits in its own track (its height = its share) */
.rp-trk{flex:1 1 auto;position:relative;min-height:0;display:flex;align-items:flex-end}
.rp-trk i{width:100%}
.rp-col>i{display:none}

/* waiting: the first frame */
.rp-wait .rp-big{opacity:.001}
.rp-wait.rp-cal .hm-c.lit,.rp-wait .rp-cal .hm-c.lit{opacity:0;transform:scale(.6)}
.rp-wait.rp-band i{transform:scaleX(0)}
.rp-wait .rp-bar i.new{transform:scaleX(0)}
.rp-wait .rp-cells i,.rp-wait.rp-sq i{background:var(--line);box-shadow:none}
.rp-wait.rp-bars .rp-trk i{transform:scaleY(0)}
.rp-wait.rp-trs .rp-tc,.rp-wait .rc{opacity:0;transform:translateX(28px)}
.rp-wait.rp-letter .rp-line{opacity:0;transform:translateY(14px)}
/* playing once */
.rp-play .rp-big{animation:rpFade .2s both}
.rp-play.rp-cal .hm-c.lit{animation:hmIn .35s calc(var(--i,0)*var(--step)) cubic-bezier(.2,.8,.2,1) both}
.rp-play.rp-band i{transform-origin:left;animation:rpGrowX .45s calc(var(--i,0)*380ms) cubic-bezier(.2,.8,.2,1) both}
.rp-play .rp-bar i.new{transform-origin:left;animation:rpGrowX .9s .25s cubic-bezier(.2,.8,.2,1) both}
.rp-play .rp-cells i{animation:rpLitA .25s calc(.3s + var(--i,0)*40ms) both}
.rp-play.rp-sq i{animation:rpLitI .2s calc(var(--i,0)*35ms) both}
.rp-play.rp-bars .rp-trk i{transform-origin:bottom;animation:rpGrowY .6s calc(var(--i,0)*90ms) cubic-bezier(.2,.8,.2,1) both}
.rp-play.rp-trs .rp-tc,.rp-play .rc{animation:rpSlide .45s calc(var(--i,0)*90ms) cubic-bezier(.2,.8,.2,1) both}
.rp-play.rp-letter .rp-line{animation:rpIn .5s calc(var(--i,0)*120ms) cubic-bezier(.2,.8,.2,1) both}
.rp-play .rp-bt{animation:rpFade .3s both;animation-delay:calc(var(--last,0)*var(--step) + .3s)}
@keyframes rpFade{from{opacity:0}}
@keyframes rpSlide{from{opacity:0;transform:translateX(28px)}}
@keyframes rpLitA{from{background:var(--line);box-shadow:none}}
@keyframes rpLitI{from{background:var(--line)}}
@keyframes rpGrowY{from{transform:scaleY(0)}}
@media (prefers-reduced-motion:reduce){
  .rp-wait *,.rp-play *,.rp-wait,.rp-play{animation:none!important;transition:none!important}
  .rp-wait .rp-big,.rp-wait .hm-c.lit,.rp-wait .rp-tc,.rp-wait .rc,.rp-wait .rp-line{opacity:1!important;transform:none!important}
}

/* 2026-11-15 (Amuii: 「今日要做嗰啲格仔同下面時間表佢格仔又唔一樣」「字體大大細細」): 今日要做's rows ARE the time table's
   rows — 40px, the tick 20px at the same place, the name 14px, its goal in small grey words, the days left as plain grey
   words at the right end like a block's length (late in red); the heading 15px like 目標's. One look, phone and computer. */
#conQ .cq-r{min-height:40px;padding:0 var(--sp-1);gap:0 var(--sp-2)}
#conQ .cq-r .tl-box{width:20px;height:20px}
#conQ .cq-r .tk-n,#conQ .cq-ain,.t-rail #conQ .cq-r .tk-n,.t-rail #conQ .cq-ain{font-size:14px!important;font-weight:var(--fw-body)}
#conQ .cq-r .tk-n small{font-size:12px;font-weight:var(--fw-body);color:var(--muted)}
#conQ .cq-r .tc.tcn{background:none!important;padding:0!important;font-size:12px;font-weight:var(--fw-body);color:var(--muted)}
#conQ .cq-r .tc.tcn.late{color:var(--red,#d6342c);font-weight:var(--fw-label)}
#conQ .cq-r .tc.tcn.today{color:var(--ink);font-weight:var(--fw-label)}
#conQ > .cq-h .lab,.t-rail #conQ > .cq-h .lab{font-size:15px!important;font-weight:var(--fw-head)}
#conQ .cq-add{min-height:40px}
/* phones: only the spacing gets smaller (design rule) — the parts of Today sit 16px apart, not 24 */
@media (max-width:743px){ #p-today{--sec-gap:16px} }
@media (min-width:744px){ .t-rail #conQ .cq-r .tk-n,.t-rail #conQ .cq-ain{font-size:15px!important} }   /* the left column's time table names are 15px */

/* v0.20.1 round 2 (Amuii: 「首頁可以迫啲…但係呢啲係俾人閱讀嘅大量資訊，全部黐埋一舊」「要有閱讀嘅感覺、閱讀嘅空間」):
   the recap reads like an article. A reading width on a computer; parts stand apart in white space (no lines); each part:
   its number and name small, ONE headline with the point, then its picture. Charts stay short. */
#stBody{max-width:720px}
#p-stats{--read-gap:64px}
@media (max-width:743px){ #p-stats{--read-gap:44px} }
#p-stats .rp-sec{border-top:0;padding-top:0;margin-top:var(--read-gap)}
#p-stats .rp-sec>.lab{margin:0 0 10px;color:var(--muted)}
#p-stats .rp-hl{margin:0 0 20px;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(22px,2.6vw,30px);line-height:1.25;letter-spacing:-.02em;text-wrap:balance}
#p-stats .rp-th{margin:0 0 16px;font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(18px,2vw,22px);line-height:1.3;letter-spacing:-.01em}
#p-stats .rp-top{border-top:0;padding-top:0;margin-top:8px}
#p-stats .rp-top .rp-note + .rp-note{margin-top:2px}
#p-stats .rp-marks{gap:calc(var(--read-gap) * .6);margin:var(--read-gap) 0 0}
#p-stats .rp-two{display:flex;flex-direction:column;gap:calc(var(--read-gap) * .75)}
#p-stats .rp-bars{height:120px}
@media (max-width:743px){ #p-stats .rp-bars{height:96px} }
#p-stats .rp-leg{grid-template-columns:1fr;margin-top:14px}
#p-stats .rp-goal{padding:16px 0}
#p-stats .rp-sub{margin-top:2px}
#p-stats .rp-ch{padding:14px 0}
#p-stats .st-dues{margin-top:var(--read-gap)}
.rp-cr + .rp-cr{margin-top:16px}
.rp-cl{margin:0 0 8px;font-size:14px;font-weight:var(--fw-label)}
/* two months: two thin bars on one scale */
.rp-hb{display:flex;flex-direction:column;gap:10px}
.rp-hr{display:grid;grid-template-columns:48px minmax(0,1fr) 64px;gap:12px;align-items:center;font-size:13px;color:var(--muted)}
.rp-hr b{font-weight:var(--fw-label)}
.rp-hr em{font-style:normal;font-family:var(--f-num);font-weight:var(--fw-head);text-align:right}
.rp-ht{height:14px;background:var(--soft)}
.rp-ht i{display:block;height:100%;background:var(--line);min-width:2px}
.rp-hr.on{color:var(--ink)}
.rp-hr.on .rp-ht i{background:var(--acc)}
.rp-wait.rp-hb .rp-ht i{transform:scaleX(0)}
.rp-play.rp-hb .rp-ht i{transform-origin:left;animation:rpGrowX .7s calc(var(--i,0)*250ms) cubic-bezier(.2,.8,.2,1) both}
.rp-gl{display:inline;border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;letter-spacing:inherit;cursor:pointer;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;text-decoration-color:var(--line)}
@media (hover:hover){.rp-gl:hover{text-decoration-color:var(--ink)}}
/* ===== 2026-11-15 user feedback: goal tabs carry the goal's name; 計時記錄; 調整時間 ===== */
/* 今日 goal tabs: the type's icon + the goal's own name (cut with … past 7 characters' width; the whole name is in the panel below) */
#projArea .ptab{gap:var(--sp-2)}
#projArea .ptab > .ic{width:20px;height:20px;flex:none}
#projArea .ptab .pt-n{max-width:7em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 白板 pen: widths (a line as thick as the stroke) then colours (squares), only while the pen is picked. Picked = the tools' grey
   square; wide screens: in the bar after the tools; narrow: its own line on top of the tools, same bar */
/* 新增目標: the type's own actions, one line right under its stages (還原 red on the left → 設為預設 → 修改類型) */
.nf-sta{display:flex;flex-wrap:wrap;align-items:center;gap:0 20px;margin-top:4px}
.nf-sta:empty{display:none}
.nf-sta .lk{min-height:44px;display:inline-flex;align-items:center;gap:6px;font-size:14px}
.nf-sta .lk.icl{color:var(--ink)}
.nf-sta .lk .ic{width:20px;height:20px}
/* 專注畫面: 調整時間 under the number it changes */
.fx-adj{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:4px 0 0;padding:0;border:0;background:none;color:inherit;font:inherit;font-size:15px;font-weight:var(--fw-head);cursor:pointer;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
.fx-adj .ic{width:20px;height:20px}
.fx-pr .btn{min-height:44px}

.hc2-nb{display:inline-flex;align-items:baseline;min-height:44px;margin:-7px 0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent)}
.tl-fqt{min-height:44px;margin:-2px 0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-align:right}
.tl-fqt small{text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}
.fl-wrap .sheet-body{padding-top:0}
.fl-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-top:16px}
.fl-top [data-zh]{margin-left:auto;align-self:center}   /* how to zoom, beside ✕ */
.fl-sum{display:flex;align-items:baseline;gap:12px;margin:0 0 12px}
.fl-sum b{font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(48px,12vw,72px);line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.fl-sum span{font-size:14px;color:var(--muted)}
/* 今日 goal panel (Amuii crossed it out): the show's name is not repeated beside the days left */
#projArea .pp-h .due-con{display:none}
/* 設定 › 類型與階段 round 2: one line per type (icon · name · its stages in grey · ✎); the line opens the type's window */
.ty-list{display:flex;flex-direction:column}
.ty-r{display:grid;grid-template-columns:22px auto minmax(0,1fr) 20px;align-items:center;gap:10px;min-height:48px;padding:0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.ty-r:last-child{border-bottom:0}
.ty-r .ic{width:20px;height:20px}
.ty-r .ic:last-child{color:var(--muted)}
.ty-rn{font-size:15px;font-weight:var(--fw-head);white-space:nowrap}
.ty-r small{min-width:0;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 白板 round 3 (Amuii: 「只可以一行」): the pen's one button sits right after the tools; its card opens upward from the bar */
/* phones: the board's top is one line too — the goal is its target icon (filled in once the board is in a goal) */
@media (max-width:699px){
  .wb-sheet .wb-top{flex-wrap:nowrap}
  .wb-goal{order:0;flex:0 0 44px;width:44px;max-width:none;justify-content:center;padding:0}
  .wb-goal .wb-gl{display:none}
}
/* 類型窗口: 刪除類型 red leftmost, 還原原始階段 beside it, 儲存 right */
.tc-l{display:flex;align-items:center;gap:20px}
.tc-l .lk{min-height:44px;display:inline-flex;align-items:center;gap:6px;font-size:14px}
.tc-l .lk.icl{color:var(--ink)}
.tc-l .lk .ic{width:20px;height:20px}
/* 設定: deleted types folded under the list (the 已完成 look); a row there has 加回 on the right */
.setbar .ty-gone,.ty-gone{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0;font-size:13px;font-weight:var(--fw-label);color:var(--muted);border:0;background:none;cursor:pointer}
.ty-gone .ic{width:16px;height:16px;transition:transform .2s}
.ty-gone[aria-expanded="true"] .ic{transform:rotate(180deg)}
.ty-off .ty-rx{cursor:default;color:var(--muted)}
.ty-off .ty-rx .lk{min-height:44px;display:inline-flex;align-items:center;gap:4px;color:var(--ink);font-size:14px;justify-self:end}
.ty-off .ty-rx .lk .ic{width:20px;height:20px;color:var(--ink)}
.ty-off .ty-rx{grid-template-columns:22px auto minmax(0,1fr) auto}
/* 白板 selection bar (2026-11-16, Amuii): 刪除 left · the actions spread evenly over the room between · 完成 right; every
   action keeps its name on a phone (icon over a short word) */
.tpbar.wb-bar:not(.tp-ask) .wb-acts{flex:1 1 auto;min-width:0;justify-content:space-evenly;margin-left:8px}
body.tpbar-on .tpbar.wb-bar:not(.tp-ask) .wb-acts + .edbar-go{margin-left:8px}
@media (max-width:699px){
  .tpbar.wb-bar:not(.tp-ask) .wb-acts{margin-left:4px}
  .tpbar.wb-bar:not(.tp-ask) .wb-acts .wb-sb{flex:1 1 0;min-width:0;padding:2px 0}
  .wb-bar .wb-sb span{max-width:100%;overflow:hidden;text-overflow:clip}
}
/* 2026-11-16 colours, compact (Amuii: 「啲格仔黐實，冇空白」): one row of touching squares that scrolls sideways */
.cs-row{display:flex;align-items:stretch;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;gap:0}
.cs-row::-webkit-scrollbar{display:none}
.cs-row .swb{flex:0 0 44px;width:44px;height:44px;padding:0;border:0;position:relative;background:var(--sw);box-shadow:none;cursor:pointer}
.cs-row .swb.cc::after{display:none}
.cs-row .swb[aria-checked="true"]{box-shadow:inset 0 0 0 3px var(--bg),inset 0 0 0 5px var(--ink)}
.cs-row .sw-own{display:grid;place-items:center;background:var(--bg);color:var(--ink);overflow:hidden}
.cs-row .sw-own input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;border:0;padding:0}
.cs-row .sw-own svg{width:18px;height:18px}
.cs-row .pl-crm{flex:0 0 44px;display:grid;place-items:center;height:44px;padding:0;border:0;background:var(--bg);color:var(--red,#d6342c)}
.cs-row .cs-gap{flex:0 0 8px}
/* 白板 pen strip: right above the bottom bar, as wide as it; width slider + the stroke, then the colours */
.wb-pnb{flex:none;margin-left:4px}
.wb-pnb i{display:block;width:22px;min-height:2px;transform:rotate(-30deg)}
.wb-pnb[aria-expanded="true"]{background:var(--soft)}
.wb-pstrip{position:fixed;z-index:var(--z-combo);background:var(--bg);border-top:var(--rule);padding:4px 12px 0;box-sizing:border-box}
.wb-pwr{display:flex;align-items:center;gap:10px;min-height:44px}
.wb-pwl{flex:none;display:grid;place-items:center;width:20px}
.wb-pwl i{display:block;width:16px;background:var(--muted)}
.wb-pwv{flex:none;display:grid;place-items:center;width:44px;height:44px}
.wb-pwv i{display:block;width:30px;transform:rotate(-30deg)}
.wb-rng{flex:1;min-width:0;height:44px;margin:0;background:none;-webkit-appearance:none;appearance:none;cursor:pointer}
.wb-rng::-webkit-slider-runnable-track{height:2px;background:var(--ink)}
.wb-rng::-moz-range-track{height:2px;background:var(--ink)}
.wb-rng::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;margin-top:-10px;background:var(--ink);border:0;border-radius:0}
.wb-rng::-moz-range-thumb{width:22px;height:22px;background:var(--ink);border:0;border-radius:0}
.wb-pstrip .cs-row{margin:0 -12px}
/* every other colour card on a phone (排期, 外觀…): the same compact rows, no gaps */
/* every colour stays in sight (no sideways scrolling inside a card): as many touching 44px squares a row as fit */
@media (max-width:699px){
  .pl-cp .pl-cols{display:grid!important;grid-template-columns:repeat(auto-fill,44px)!important;gap:0;padding:0}
  .pl-cp .pl-cols .swb{width:44px;height:44px}
  .pl-cp .pl-cols .swb.cc::after{width:100%;height:100%;box-shadow:none}
  .pl-cp .pl-cols .swb[aria-checked="true"]::after{outline:0;box-shadow:inset 0 0 0 3px var(--bg),inset 0 0 0 5px var(--ink)}
  .pl-cp{max-height:none}
}
body.tpbar-on .tpbar.wb-bar:not(.tp-ask) .wb-tools ~ .edbar-go{margin-left:auto}
/* 專注畫面 (2026-11-16): 收起 · 計時方式 · 提示音 in one row right above 今天先到這裡; 收起 on the left, the rest pushed right */
.fx-ctl{display:flex;align-items:center;gap:8px;padding-top:12px;border-top:2px solid var(--acc-ink)}
.fx-ctl .fx-modeb{margin-left:auto}
.fx .fx-ctl .fx-hideb{padding:0;gap:6px}
.fx .fx-modes{border-bottom:0;padding:12px 0}
/* closed, the ▾ points up: its choices open above it */
.fx-ctl .fx-modeb .ic:last-child{transform:rotate(180deg)}
.fx-ctl .fx-modeb[aria-expanded="true"] .ic:last-child{transform:none}
.fx-ctl + .fx-btns{padding-top:8px}

/* 計時記錄 round 4 (2026-11-16, Amuii: 排期 way, handles you can see): 今日 strip · the picked stretch on a 15-minute scale with
   a handle on each side · its line · 刪除 */
.fl-h{display:flex;align-items:center;gap:8px;min-height:44px}
.fl-ts{flex:none;display:flex;align-items:center;gap:6px;font-size:16px;font-variant-numeric:tabular-nums}
.fl-ts b{font-weight:var(--fw-head)}
.fl-ts i{font-style:normal;color:var(--muted)}
.fl-h small{flex:1;min-width:0;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fl-d{flex:none;min-width:56px;text-align:right;font-family:var(--f-num);font-weight:var(--fw-head);font-size:17px;font-variant-numeric:tabular-nums}
.fl-day{margin:0 0 20px}
.fl-dtr{position:relative;height:44px;background:var(--soft)}
.fl-db{position:absolute;top:8px;bottom:8px;min-width:6px;padding:0;border:0;background:color-mix(in srgb,var(--acc) 70%,var(--ink) 0%);cursor:pointer}
.fl-db::before{content:"";position:absolute;inset:-8px -6px}
.fl-db.run{background:var(--line)}
.fl-db.on{box-shadow:0 0 0 2px var(--ink)}
.fl-dax{display:flex;justify-content:space-between;margin-top:4px;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.fl-ed{padding:0 0 8px}
.fl-ax{position:relative;height:20px;margin:0 0 4px}
.fl-tk{position:absolute;top:0;bottom:-70px;width:0;border-left:1px solid var(--line);pointer-events:none}
.fl-tk span{position:absolute;top:0;left:4px;font-size:11px;font-style:normal;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.fl-tk:last-child span{left:auto;right:4px}
.fl-tk.hr{border-left-color:var(--muted)}
.fl-tr{position:relative;height:56px;margin:0 0 8px;touch-action:none}
.fl-nb{position:absolute;top:10px;bottom:10px;background:var(--soft);background-image:repeating-linear-gradient(-45deg,transparent 0 6px,color-mix(in srgb,var(--ink) 10%,transparent) 6px 8px)}
.fl-now{position:absolute;top:-4px;bottom:-4px;width:0;border-left:2px solid var(--red,#d6342c);pointer-events:none}
.fl-now span{position:absolute;bottom:-18px;left:-12px;font-size:11px;font-style:normal;font-weight:var(--fw-head);color:var(--red,#d6342c);white-space:nowrap}
.fl-blk{position:absolute;top:6px;bottom:6px;min-width:2px;background:var(--acc);box-shadow:inset 0 0 0 2px var(--ink)}
.fl-blk.run{background:var(--line);box-shadow:none}
/* the handles: a black bar on each side with two grip lines, 44px to press, always shown */
.fl-hd{position:absolute;top:-6px;bottom:-6px;width:44px;padding:0;border:0;background:none;cursor:ew-resize;touch-action:none;z-index:1}
.fl-hd.l{left:-22px} .fl-hd.r{right:-22px}
.fl-hd::after{content:"";position:absolute;left:15px;top:4px;bottom:4px;width:14px;background:var(--ink);background-image:linear-gradient(90deg,transparent 4px,var(--bg) 4px 5px,transparent 5px 9px,var(--bg) 9px 10px,transparent 10px)}
.fl-blk.drag{background:color-mix(in srgb,var(--acc) 80%,var(--ink))}
.fl-blk.hint .fl-hd.l{animation:flNudgeL .6s ease-in-out 2 alternate}
.fl-blk.hint .fl-hd.r{animation:flNudgeR .6s ease-in-out 2 alternate}
@keyframes flNudgeL{to{transform:translateX(-6px)}} @keyframes flNudgeR{to{transform:translateX(6px)}}
@media (prefers-reduced-motion:reduce){ .fl-blk.hint .fl-hd{animation:none} }
.fl-del{min-height:44px;padding:0;font-size:14px}
.fl-old{margin-top:12px;border-top:var(--rule-row);padding-top:4px}
.fl-old .fl-del{margin-left:8px}

/* ---------- v0.20.1 round 6 (2026-11-16) ---------- */
/* 專注畫面: 計時方式 · 提示音 on the left; 縮小 beside the main button, on its left, the same height */
.fx-ctl .fx-modeb{margin-left:0;padding-left:0}
.fx-btns.one{grid-template-columns:auto minmax(0,1fr)}
.fx-btns.two{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr)}
.fx-b.fx-shrink{padding:0 16px;font-family:inherit;font-size:17px;font-weight:var(--fw-head);gap:6px}
.fx-b.fx-shrink .ic{width:22px;height:22px}
.fx.gen .fx-shrink{border-color:var(--ink)}
@media (max-width:600px){
  .fx-btns{gap:8px}
  .fx-btns.two .fx-b{font-size:16px;gap:6px;padding:0 8px}
  .fx-btns.two .fx-b .ic{width:20px;height:20px}
  .fx-btns.two .fx-shrink{padding:0 12px}
  .fx-btns.two .fx-shrink span{display:none}
}
/* 計時記錄: the handles stand outside the block (a short stretch still shows its length): a black bar with an arrow
   pointing the way it pulls, 44px to press; the row zooms (pinch / wheel) and moves (drag) */
.fl-ax,.fl-tr{touch-action:none;overflow-x:clip;cursor:grab}
.fl-ax{height:24px;margin:0}
.fl-bg{position:absolute;inset:0;pointer-events:none}
.fl-tk:last-child span{left:4px;right:auto}
.fl-tk.end span{left:auto;right:4px}
.fl-blk{min-width:3px}
.fl-hd{top:0;bottom:0;width:44px}
.fl-hd.l{left:auto;right:100%} .fl-hd.r{right:auto;left:100%}
.fl-hd::after{top:0;bottom:0;width:18px;background:var(--ink);background-image:none}
.fl-hd.l::after{left:auto;right:0} .fl-hd.r::after{left:0}
.fl-hd::before{content:"";position:absolute;top:50%;width:7px;height:7px;margin-top:-4px;border:solid var(--bg);border-width:0 0 2px 2px;z-index:1}
.fl-hd.l::before{right:4px;transform:rotate(45deg)}
.fl-hd.r::before{left:4px;transform:rotate(-135deg)}
/* the page never zooms on a phone: no double-tap zoom anywhere (the board and the timer record keep their own pinch) */
html,body{touch-action:manipulation}
/* 修改目標 (2026-11-16, a user + Amuii: 「全部做乜嘢至中」): everything in the form starts on the left — the 達標 chips (a column,
   so they took the row's centring), and the ＋ beside IP / 角色 (it filled the row and centred its icon) */
.pe3-crit{align-items:flex-start}
.pe3 .tgf-open{justify-content:flex-start}
/* v0.20.1 round 3: 意見 = one seg (更新｜寫意見｜投票) and one pane at a time, so what you came for is on the first screen */
.fbx-tabs{margin:0 0 20px}
.fbx-tabs button{flex:1}
.fbx-p[hidden]{display:none}
.fb-sheet .sheet.wide{max-width:640px}
.fb-sheet .fbx-p .sheet-f{margin-top:16px}
@media (max-width:899px){ .fb-sheet .fbx-p .sheet-f{position:static;margin:16px 0 0;padding:0;border-top:0} }

/* 2026-11-16: another day picked on Today: a grey band above the time table, 回到今日 at its right */
.tl-other{display:flex;align-items:center;gap:var(--sp-3);background:var(--soft);padding:var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-3);margin:0 0 var(--sp-2)}
.tl-other b{flex:1;min-width:0;font-size:17px;font-weight:var(--fw-head);line-height:1.3}
.tl-other .tl-back{flex:none;margin:0;min-height:44px;font-size:14px;white-space:nowrap}
/* round 2: the band sticks at the top of its column (phone: under the top bar; computer: top of the left column) */
.tl-other-w:empty{display:none}
.tl-other-w{position:sticky;top:calc(var(--hdr-h,54px) + env(safe-area-inset-top,0px));z-index:30;background:var(--bg);padding-top:var(--sp-1)}
@media (min-width:744px){ .tl-other-w{top:0} }
.tl-swap{animation:tlSwap .28s ease-out}
@keyframes tlSwap{from{opacity:.25}to{opacity:1}}
/* 2026-11-16 (Amuii: 「所有 tabs 統一一種做法」): every tab / single choice (.seg) is like the main menu — words only, no frame,
   no fill; the picked one is black bold with an underline in the user's own colour; the others grey. Goal tabs and 排序 too. */
.seg{border:0;background:none;gap:4px 18px;flex-wrap:wrap}
.seg button{flex:none;padding-left:0;padding-right:0;border-radius:0;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-1)}
.seg button .ic{width:20px;height:20px;flex:none}   /* 2026-11-20 (Amuii: 「add icon for timeline view and card view」): a tab may lead with an icon */   /* 2026-11-20 (Amuii: 「alignment 講咗 100000 次」): the component itself is 44px on every screen (it used to be only on phones, so every page patched its own) */
.seg button+button{border-left:0}
.seg button[aria-pressed="true"]{background:none;box-shadow:inset 0 -3px 0 var(--acc)}
html[data-rad="on"] .seg,html[data-rad="on"] .seg button{border-radius:0}
.seg.pg-srt button[aria-pressed="true"],#projArea .ptab.on .pt-ty{text-decoration:none}
.seg.pg-srt button[aria-pressed="true"]{box-shadow:inset 0 -3px 0 var(--acc)}
#projArea .ptab.on{box-shadow:inset 0 -3px 0 var(--acc)!important}
.fbx-tabs{gap:24px}
.fbx-tabs button{flex:none;font-size:17px;min-height:48px}
.lp-top .seg{gap:0}
.fbx-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding-bottom:20px;position:sticky;top:0;z-index:3;background:var(--bg)}   /* the tabs are this sheet's title row: they stay on top like .sheet-h */
.fbx-top .fbx-tabs{margin:0}
.pl-mini .pl-grp,.pl-mini .pl-sc{cursor:pointer}
.fbx-top .sh-xi{margin:0 0 0 auto;flex:none}
/* 2026-11-16 展出頁 (Amuii: 「太多字、太多日期」): 新增 left like Goals, 任務範本 · 出發地 right; a row = cover · name ·
   countdown chip · venue · task bar; done shows fold away; detail = address (copy) · pictures 2×2 · tasks · things to bring */
.cn-bar{display:flex;align-items:center;gap:16px;margin:16px 0 4px}
.cn-bar[hidden]{display:none}
.cn-bar .pc-add,.cn-pkadd{flex:1;min-height:52px;flex-direction:row;align-items:center;justify-content:flex-start;padding:0 var(--sp-3)}
.cn-bar .pc-add:hover,.cn-bar .pc-add:active,.cn-pkadd:hover,.cn-pkadd:active{background:var(--acc);color:#111}
.cn-acts{white-space:nowrap;flex:none}
.cn-acts .cn-ob span{max-width:6em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cn-h{grid-template-columns:minmax(0,1fr) 20px}
.cn-h.has-cov{grid-template-columns:56px minmax(0,1fr) 20px}
.cn-cov{width:56px;height:56px;background:var(--soft);overflow:hidden}
.cn-cov img{width:100%;height:100%;object-fit:cover;display:block}
.cn-sub{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.cn-prog{display:flex;align-items:center;gap:10px;margin-top:4px}
.cn-prog b{font-family:var(--f-num);font-size:13px;font-weight:var(--fw-head);font-variant-numeric:tabular-nums;color:var(--muted)}
.cn-pastb{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin-top:8px;padding:0;font-size:13px;font-weight:var(--fw-label);color:var(--muted);border:0;background:none;cursor:pointer}
.cn-pastb .ic{width:16px;height:16px;transition:transform .2s}
.cn-pastb[aria-expanded="true"] .ic{transform:rotate(180deg)}
.cn-addr{display:flex;align-items:center;gap:6px;font-size:13.5px}
.cn-addr>span{min-width:0}
.cn-cp{flex:none;width:44px;height:44px;margin:-12px -10px -12px 0;display:grid;place-items:center;border:0;background:none;color:var(--muted);cursor:pointer}
.cn-cp .ic{width:20px;height:20px}
.cn-cp:hover{color:var(--ink)}
.cn-bp{font-size:13px;color:var(--muted)}
/* ---- 展會圖片 .cn-imgs: the one rule for the show page's pictures (2026-11-20, Amuii: 「why the gallery not full width」
   「呢d補丁係萬惡之源」). Pictures = a justified gallery: every row one height (--h), each picture as wide as its own shape
   (--r, learnt when it loads, cons.js learnRatio), the row always filling the width — the last row too (it crops,
   object-fit:cover). Places without a picture = upload slots (upZone, variant .cn-up: icon over the name, no hint) sharing
   one row equally (all of them in one row). A picture's grow is its shape ×100 (a grow under 1 would leave the row short). */
.cn-imgs{--h:180px;display:flex;flex-wrap:wrap;gap:var(--sp-2);margin:0;padding:0}
@container cnpg (max-width:799px){ .cn-imgs{--h:140px} }
.cn-im{position:relative;flex:calc(var(--r,1.333) * 100) 1 calc(var(--h) * var(--r,1.333));height:var(--h);min-width:0;margin:0;overflow:hidden;background:var(--soft)}
.cn-imb{display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:zoom-in}
.cn-im img{display:block;width:100%;height:100%;object-fit:cover}
.cn-imgs[data-n="0"]{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.upz.cn-up{--upz-h:var(--h-drop);--upz-dir:column;--upz-jc:center;--upz-gap:var(--sp-1);--upz-pad:var(--sp-2);--upz-ta:center;--upz-hint:none;--upz-ps:none}   /* upZone's own knobs (.upz-go) */
html[data-rad="on"] .cn-im{border-radius:var(--rad)}


.cn-pack{margin-top:8px}
.cn-ph{width:100%;border:0;background:none;font:inherit;color:var(--ink);cursor:pointer;text-align:left;min-height:44px}
.cn-pn{font-family:var(--f-num);font-size:13px;font-weight:var(--fw-head);color:var(--muted);font-variant-numeric:tabular-nums}
.cn-ph .cn-chev{width:18px;height:18px;transition:transform .2s}
.cn-ph[aria-expanded="true"] .cn-chev{transform:rotate(180deg)}
.tk-r{grid-template-columns:22px minmax(0,1fr) auto}
.pk-r{grid-template-columns:22px minmax(0,1fr) auto 32px;cursor:default}
.pk-ck{width:44px;height:44px;margin:-11px;display:grid;place-items:center;border:0;background:none;cursor:pointer;padding:0}
.pk-n{min-width:0;border:0;border-bottom:1px solid transparent;background:none;font:inherit;font-size:14px;color:var(--ink);padding:4px 0}
.pk-n:focus{outline:none;border-bottom-color:var(--ink)}
.pk-r.done .pk-n{color:var(--muted)}
.pk-q{height:32px}
.pk-q .np-b{width:32px}
.pk-q input{width:40px;font-size:15px}
.pk-del{width:44px;height:44px;margin:-6px;display:grid;place-items:center;border:0;background:none;color:var(--faint);cursor:pointer}
.pk-del .ic{width:18px;height:18px}
.pk-del:hover{color:var(--red,#c00)}
.cn-pkadd{width:100%;margin-top:8px}
.cn-pkf{display:flex;justify-content:flex-end;margin-top:4px}
/* 2026-11-16: 修改展會 = one gear top-right of the open show (like a goal); delete is in its window */
.cn-ih{display:flex;align-items:flex-start;gap:8px}
.cn-ih .cn-info{flex:1;min-width:0}
.cn-gear{flex:none;width:44px;height:44px;margin:-12px -12px 0 0;justify-content:center}
.cn-gear .ic{width:20px;height:20px}
.cn-row{position:relative}
.cn-row.open .cn-gear{position:absolute;top:6px;right:24px;margin:0}
.cn-row.open .cn-h .cn-t{padding-right:44px}
.cf-sheet .sheet-f{flex-direction:row;align-items:center;gap:12px}
.sheet.cf-sheet .sheet-f > button[type="submit"],.cf-sheet .sheet .sheet-f > button[type="submit"]{flex:1 1 0;width:auto}
.cf-sheet .sheet-f{flex-wrap:nowrap!important}
.cf-sheet .sheet-f .lk.danger{flex:none;min-height:44px}
/* 2026-11-16 round 2 (Amuii): 展會數據一行（公里太長就縮字）; a show opens on its own page:
   wide = left 300px what you look at (countdown, small map, address, pictures 2×2) | right the tabs of what you do;
   narrow = the same, one above the other, pictures four in a row */

.cn-h .cn-chev{align-self:center;width:18px;height:18px;color:var(--muted)}
.cnp[hidden],#p-cons .cn-wrap[hidden]{display:none}
.cnp{container-type:inline-size;display:grid;gap:20px;align-items:start}
@media (min-width:1024px){ .cnp{grid-template-columns:300px minmax(0,1fr);gap:32px} .cnp-l{position:sticky;top:var(--pg-top,0)} }
.cnp-l{display:flex;flex-direction:column;gap:12px;min-width:0}
.cnp-r{min-width:0}
.cnp-h{display:flex;align-items:flex-start;gap:8px}
.cnp-crumb{flex:1;min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;min-height:44px;margin:0;padding:0;border:0;background:none;color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.cnp-crumb .idt-crg{font-size:13px;color:var(--muted);font-weight:var(--fw-label)}
.cnp-crumb .idt-crs{color:var(--muted)}
.cnp-crumb .idt-crn{font-family:var(--f-num);font-weight:var(--fw-head);font-size:22px;line-height:1.2;letter-spacing:-.02em;overflow-wrap:anywhere}
.cnp .cn-gear{position:static;margin:0 -12px 0 0}
.cnp-cd{display:flex;flex-direction:column;gap:6px}
.cnp-cd .cn-prog{margin:0}
.cnp-map{height:160px;background:var(--soft);position:relative}
.cnp .cn-info{padding:0}
.cnp .cn-addr{margin:0}
.cnp .cn-bp{margin:0}
.cnp-tabs{margin:0 0 8px}
.cnp-tabs button{flex:1}
.cnp-n{font-family:var(--f-num);font-size:12px;color:var(--muted);font-weight:var(--fw-label);margin-left:4px}
.cnp .cn-th{justify-content:flex-end;border-bottom:0;padding:0 0 4px}
.cnp .cn-pack{margin:0}
/* 2026-11-16 round 6 (Amuii): show list = goal cards; show page = goal page (g-top, pr-h + big %), two lists side by side,
   then the route and the pictures. No tabs, no extra lines. */
#cnList .cn-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}
.cn-card.past .pc-name{color:var(--muted)}
#cnList .cn-pastb{margin:0 0 8px}
.cn-kpis{margin-top:0}   /* 2026-11-20 (Amuii: 「同地圖中間咁多空白」): only the map block's own 16px gap */
@media (max-width:1023px){ #p-cons .cn-mapcol{order:2} #p-cons .cn-listcol{order:1} #p-cons .cn-wrap{display:flex;flex-direction:column} }
.cnp{display:block}
.cnp .g-top{margin-bottom:var(--sp-3)}
.cnp-card{container-type:inline-size;border:0;padding:0;background:none}
.cnp-card > .pr-h{width:100%;margin-bottom:var(--sp-4)}
.cnp-lists{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;align-items:start}
@container (min-width:700px){ .cnp-lists{grid-template-columns:repeat(2,minmax(0,1fr))} .cnp-go{grid-template-columns:minmax(0,1fr) minmax(0,1fr)} }
.cn-col{min-width:0;border-top:0}
.cn-col .cn-th{border-bottom:0;padding:0 0 4px;justify-content:space-between;min-height:44px}
.cn-col .cn-th .lab{flex:0 1 auto;font-size:13px}
.cn-col .tk-r:last-of-type{border-bottom:0}
.cn-col .cn-pkadd{margin-top:8px}
.cn-donen{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0;margin-top:4px;font-size:13px;font-weight:var(--fw-label);color:var(--muted);border:0;background:none;cursor:pointer}
.cn-donen .ic{width:16px;height:16px;transition:transform .2s}
.cn-donen[aria-expanded="true"] .ic{transform:rotate(180deg)}
.pk-r{grid-template-columns:22px minmax(0,1fr) auto 32px}
.pk-qn{min-width:44px;min-height:44px;margin:-8px 0;padding:0 6px;border:0;background:none;color:var(--muted);font:inherit;font-size:13px;font-variant-numeric:tabular-nums;cursor:pointer;text-align:right}
.pk-qn:hover{color:var(--ink)}
.pk-st{margin:-6px 0}
.pk-st .np-b{width:36px;height:32px}
.pk-st b{min-width:36px;line-height:32px}
.cnp-go{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:40px;align-items:start}
.cnp-go .cnp-map{height:220px}
.cn-addr{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0;font-size:15px;font-weight:var(--fw-label)}
.cn-cp{font-size:13px;min-height:44px}
.cn-cp .ic{width:20px;height:20px}
.cn-bp{margin:0;font-size:14px;color:var(--muted)}
.cnp .cn-tasks{border-top:0}
/* 2026-11-17 (Amuii round 7): shows on the goal page's grid and the app's own parts.
   List: left 新增 · 篩選 · 分組 ……… 排序 + cards; right 出發地 · numbers · map. Page: g-top (44px, the 收起 line),
   title with no box, lists left (今日要做 rows), 300px column right (map, venue lines, pictures). */
@media (min-width:1024px){ #p-cons .cn-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:start} #p-cons .cn-mapcol{position:sticky;top:var(--pg-top,0)} }
@media (max-width:1023px){ #p-cons .cn-wrap{display:flex;flex-direction:column;gap:24px} #p-cons .cn-mapcol{order:2} #p-cons .cn-listcol{order:1} }
#p-cons .cn-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
#p-cons .cn-bar > .pc-add{flex:1 1 200px;width:auto}
#p-cons .cn-bar .wf-end{margin-left:auto}
.cn-gh{margin:8px 0}
.cn-orig{display:flex;align-items:center;min-height:44px;margin:-10px 0 4px}
.cn-ob{gap:6px;font-size:14px}
.cn-ob .pk-l{color:var(--muted);font-weight:var(--fw-body)}
.cn-ob b{font-weight:var(--fw-head)}
.cn-ob .ic{width:20px;height:20px}
.cn-ob .ic.cn-obe{width:16px;height:16px;color:var(--muted)}
#p-cons .cn-mapcol .cn-kpis{margin:0 0 16px}
#p-cons .cn-listcol .cn-kpis{display:none}
.rl-tog.lk{color:var(--muted)!important;font-weight:var(--fw-body)!important}
.cnp .g-top{min-height:44px;margin:0 0 var(--sp-3);align-items:center}
.cnp .g-crumb{min-height:44px;margin:0}
.cnp .g-crumb .lk{min-height:44px;padding:0}
.cnp-card{border:0;padding:0;background:none;box-shadow:none}
.cnp-card > .pr-h{width:100%;margin:0 0 var(--sp-4)}
.cnp-wa{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
@media (min-width:1024px){ .cnp-wa{grid-template-columns:minmax(0,1fr) 300px} }
.cnp-lists{display:flex;flex-direction:column;gap:var(--sec-gap,24px);min-width:0}
.cnp-lists .cq-h{display:flex;align-items:center;gap:var(--sp-3);min-height:44px}
.cnp-lists .cq-h .tl-adj{margin:0}
.cnp-lists .cn-col .tk-r:last-of-type{border-bottom:0}
.cnp-lists .pk-r{grid-template-columns:20px minmax(0,1fr) auto}
.cnp-lists .pk-qn{min-height:40px;margin:0}
.cnp-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.cnp-side .cnp-map{height:200px}
.cn-ln .cn-cp .ic{width:20px;height:20px}
.cn-ln .cn-cp:hover{color:var(--ink)}
.tk-sh{margin:16px 0 4px}
.cnp-lists{align-items:stretch}
.cnp-lists .tk-r.cq-r{min-height:40px;padding-top:0;padding-bottom:0}
.cn-orig{margin:0 0 8px;min-height:44px}
.cn-ob{min-height:44px;flex-wrap:nowrap;white-space:nowrap}
#p-cons #cnSech{margin-top:0}
#p-cons .cn-orig{padding:0;height:44px;margin:0 0 12px}
#p-cons .cn-ob{padding:0}
#p-cons .cn-bar{flex-wrap:nowrap} #p-cons .cn-bar > .pc-add{flex:1 1 0;min-width:0}
@media (min-width:1024px){ #p-cons .cn-wrap{grid-template-columns:minmax(0,3fr) minmax(0,2fr)} }
#p-cons .cn-bar{flex-wrap:wrap;row-gap:4px} #p-cons .cn-bar > .pc-add{flex:1 1 160px}
#p-cons .cn-ctl{display:flex;align-items:center;gap:12px;flex:1 1 auto;min-width:0} #p-cons .cn-ctl .wf-end{margin-left:auto}
/* ---------- v0.20.1 round 8: 展出 list = top row (numbers · set off | map), then shows | year ---------- */
#p-cons .cn-v8{display:flex;flex-direction:column;gap:var(--sec-gap,24px)}
#p-cons .cn-v8 .cn-top{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:stretch}
#p-cons .cn-v8 .cn-stats{display:flex;flex-direction:column;gap:12px;min-width:0}
#p-cons .cn-v8 .cn-kpis{margin:0}
#p-cons .cn-v8 .cn-orig{margin:0;border:0;padding:0;height:44px}
#p-cons .cn-v8 .cn-map{height:240px;min-height:0}
#p-cons .cn-v8 .cn-lbody{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sec-gap,24px);align-items:start}
#p-cons .cn-v8 .cn-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#p-cons .cn-v8 .cn-yearcol[hidden]{display:none}
@media (min-width:1024px){
  #p-cons .cn-v8 .cn-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  #p-cons .cn-v8 .cn-map{height:auto;min-height:220px}
  #p-cons .cn-v8 .cn-lbody{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:32px}
  #p-cons .cn-v8 .cn-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #p-cons .cn-v8 .cn-yearcol{position:sticky;top:var(--pg-top,16px)}
}
.cn-yh{display:flex;align-items:center;gap:4px;height:44px;margin:0 0 8px}
.cn-yt{font-family:var(--f-num);font-size:20px;font-weight:var(--fw-head);letter-spacing:-.02em;min-width:56px;text-align:center}
.cn-yn{width:44px;height:44px;display:grid;place-items:center;padding:0;margin:0 -12px}
.cn-yn .ic{width:20px;height:20px}
.cn-yh .cn-yn:first-child{margin-left:-12px}
.cn-year{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}
.cn-ym{cursor:default}
.cn-ym:hover .hm-mh{border-bottom-width:1px;padding-bottom:4px}
.cn-ym .hm-mh{}
.cn-ym .hm-mh b{font-size:14px}
.cn-ym .hm-c{padding:0;box-shadow:none;background:var(--soft)}
.cn-ym .hm-c.out{background:transparent}
.cn-ym .hm-c.cn-on{background:var(--ink);cursor:pointer;border:0}
.cn-ym .hm-c.cn-on.past{background:var(--muted)}
@media (max-width:1023px){ .cn-year{grid-template-columns:repeat(4,minmax(0,1fr))} }
@container (max-width:420px){ .cn-year{grid-template-columns:repeat(3,minmax(0,1fr))} }
/* show page: lists take half, 已完成 at the title's right (as 打卡), 設定展會日期 as a button */
@media (min-width:1024px){ .cnp-wa{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px} }
.cnp-lists .cq-h .cn-donen{margin:0 0 0 auto}
.cn-setd{min-height:44px;margin-top:4px;font-size:14px;font-weight:var(--fw-label)}
.cn-setd .ic{width:20px;height:20px}
#p-cons .cn-v8 .cn-ctl .cn-pastb{margin:0;min-height:44px}
#p-cons .cn-v8 .cn-listcol{order:0;grid-column:auto;grid-row:auto}
/* round 8 cards: pin top-left, type top-right on the cover; 還有 N 天 left of the bar */
.pc8 .pc-cov{position:relative}
.pc8 .pc-cov .pc-pin{position:absolute;left:0;top:0;margin:0;background:var(--bg);opacity:1}
.pc8 .pc-cov .pc-pin:not(.on) .ic{opacity:.5}
.pc8 .pc-ty{position:absolute;right:0;top:0;display:inline-flex;align-items:center;gap:var(--sp-1);height:28px;padding:0 var(--sp-2);background:var(--bg);font-size:12px;font-weight:var(--fw-head);color:var(--ink);max-width:70%}
.pc8 .pc-ty .ic{width:16px;height:16px;flex:none}
.pc8 .pc-ty span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc8 .pc-left{flex:none;font-size:12.5px;font-weight:var(--fw-head);color:var(--muted);white-space:nowrap}
.pc8 .pc-left.key{color:var(--ink)}
.pc8 .pc-left.late{color:var(--danger,#d22)}
.pc8 .pc-noimg{background:var(--soft)}
.tc-ics{display:flex;flex-wrap:wrap;gap:4px}
.tc-ic{width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;background:none;color:var(--muted);cursor:pointer}
.tc-ic .ic{width:22px;height:22px}
.tc-ic[aria-pressed="true"]{color:var(--ink);box-shadow:inset 0 -3px 0 var(--acc)}
/* round 8 (Amuii: 類型格仔間距唔同): one gap between every tile, inside a group and between groups */
.nf-types{gap:12px 8px!important;align-items:flex-end}
.nf-types .nf-tgr{gap:8px}
/* round 8 (Amuii): 收起 = a small boxed arrow sitting on the middle of the column's edge line; 44px to tap, no word */
@media (min-width:1024px){
  .t-rail .rl-tog.rl-v8,body.rail-min .t-rail .rl-tog.rl-v8{position:fixed;top:50%;left:calc(var(--rail-edge,0px) - 22px);transform:translateY(-50%);z-index:var(--z-bar,20);
    display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;background:none;box-shadow:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;cursor:pointer;text-decoration:none}
  .rl-v8 .rl-box{display:grid;place-items:center;width:22px;height:22px;background:var(--bg);border:var(--rule);color:var(--ink)}
  .rl-v8 .rl-box .ic{width:14px;height:14px;stroke-width:2.4}
  .rl-v8:hover .rl-box,.rl-v8:focus-visible .rl-box{background:var(--acc)}
  .t-rail > .rl-tog.rl-v8 + *{border-top:0!important}
}
/* round 9 (Amuii): the top row spans the whole width; numbers 2×2 so a long number never widens the column */
#p-cons .cn-v8 > *{align-self:stretch;width:100%}
@media (min-width:1024px){
  #p-cons .cn-v8 .cn-top{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
  #p-cons .cn-v8 .cn-map{height:auto;min-height:260px}
  #p-cons .cn-v8 .cn-lbody{grid-template-columns:minmax(0,1fr) 300px}
}
.cn-year{grid-template-columns:minmax(0,1fr)!important;gap:16px}
.cn-year.all{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.cn-yh{justify-content:flex-start;gap:12px}
.cn-yall{min-height:44px;font-size:13px;font-weight:var(--fw-label)}
/* card title row: pin · title ……… type */
.pc8 .pc-tr{display:flex;align-items:flex-start;gap:var(--sp-1);min-width:0}
.pc8 .pc-tr .pc-pin{flex:none;width:28px;height:28px;margin:-3px 0 0 -6px}
.pc8 .pc-tr .pc-pin .ic{width:18px;height:18px}
.pc8 .pc-tr .pc-name{flex:1;min-width:0}
.pc8 .pc-tr .pc-ty{position:static;flex:none;height:auto;padding:var(--sp-1) 0 0;background:none;color:var(--muted);max-width:45%}
/* ---------- round 9: show page = left (do) | right (look up, 280) ---------- */
@media (min-width:1024px){
}
.cnp-nm{all:unset;cursor:pointer;font-family:var(--f-num);font-size:clamp(22px,2.4vw,32px);font-weight:var(--fw-head);line-height:1.15;color:var(--ink)}
.cnp-nm:hover{text-decoration:underline}
.cnp-cd{font-family:var(--f-num);font-size:clamp(44px,6vw,80px);font-weight:var(--fw-head);letter-spacing:-.03em;line-height:1}
.cnp-pg{max-width:360px}
.cn-crn{min-height:44px;padding:0;font:inherit;font-weight:var(--fw-head);color:var(--ink)}
.cn-tr{display:grid;grid-template-columns:20px 52px minmax(0,1fr);align-items:center;gap:10px;min-height:40px}
.cn-dd{font-family:var(--f-num);font-size:14px;font-weight:var(--fw-head);text-align:right;color:var(--ink);font-variant-numeric:tabular-nums}
.cn-dd.late{color:var(--danger,#d22)}
.cn-tr.dn .tk-n,.pk-card.dn .pk-cn{text-decoration:line-through;color:var(--muted)}
.pk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}
@media (max-width:699px){ .pk-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px} }
.pk-card{display:flex;flex-direction:column;min-width:0;background:var(--bg)}
.pk-im{display:grid;place-items:center;width:100%;aspect-ratio:1/1;padding:0;border:0;background:var(--soft);color:var(--muted);cursor:pointer;overflow:hidden}
.pk-im .ic{width:24px;height:24px}
.pk-im.has{cursor:default}
.pk-im img{width:100%;height:100%;object-fit:cover;display:block}
.pk-cb{display:flex;align-items:flex-start;gap:6px;min-height:44px;padding:8px 0 0;cursor:pointer}
.pk-cb .tl-box{flex:none}
.pk-cn{font-size:14px;font-weight:var(--fw-label);line-height:20px;min-width:0;overflow-wrap:anywhere}
.pk-cq{display:flex;align-items:baseline;gap:6px;padding-left:26px}
.pk-cq b{font-family:var(--f-num);font-size:22px;font-weight:var(--fw-head);line-height:1}
.pk-w{font-size:13px;font-weight:var(--fw-label);color:var(--muted)}
.pk-card.dn .pk-im{opacity:.45}
.cn-fill{min-height:44px;font-size:14px;font-weight:var(--fw-label);padding:0}
.cn-fill .ic{width:20px;height:20px}
/* 調整 sheets */
.pk-tpl{display:grid;grid-template-columns:44px minmax(0,1fr) 72px auto 44px;gap:8px;align-items:center}
.pk-ti{width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;background:var(--soft);color:var(--muted);cursor:pointer;overflow:hidden}
.pk-ti img{width:100%;height:100%;object-fit:cover}
.pk-ti .ic{width:20px;height:20px}
.pk-wt{min-width:0;border:0;border-bottom:var(--rule-row);background:none;font:inherit;font-size:14px;padding:6px 0}
.pk-tpl .pk-n{min-width:0}
/* round 9: the 打卡 column slides when it folds (a show's page folds it by itself) */
/* pictures on a phone: two small squares a row, not four full-width upload strips */
@media (max-width:1023px){ .cn-year:not(.all){grid-template-columns:repeat(3,minmax(0,1fr))!important} }
/* ---------- round 9 (Amuii: 「點解組件咁亂」): ‹ › range control = the same family as .seg — words and bare arrows,
   no grey boxes, the same height and type as the choices beside it. One rule for 回顧, 排期, 目標時間線. ---------- */
.pnav{border:0!important;background:none!important;gap:0;align-items:center}
.pnav > button{height:44px;min-width:0;padding:0 6px;border:0!important;background:none!important;font-size:14px;font-weight:var(--fw-head)}
.pnav > button + button{border-left:0!important}
.pnav > .pnav-a{width:36px;padding:0}
.pnav .ic{width:18px;height:18px}
@media (hover:hover){ .pnav > button:not(:disabled):hover{background:none!important;color:var(--ink);text-decoration:underline} }
/* 回顧: 月｜年 and ‹ 2026年11月 › are one group, together on the left */
.st-head{justify-content:flex-start!important;gap:8px 24px!important;flex-wrap:wrap}
.st-head .st-nav{margin-left:0!important}
/* round 9 (Amuii: 「回顧唔係頂到盡 full width」): the recap uses the page's full width */
#stBody{max-width:none}
/* round 9: the yellow frame shows inside a column that scrolls on its own (an outer ring was cut off there) */
@keyframes hlflashIn{0%,60%{box-shadow:inset 0 0 0 3px var(--acc-ink),inset 0 0 0 8px var(--acc)}100%{box-shadow:inset 0 0 0 0 transparent}}
.t-rail .hl-flash,.setbar .hl-flash{animation-name:hlflashIn}
/* round 9 (Amuii): the 收起 arrow is always on top — above 排期 (full screen) and a board docked beside the column */
@media (min-width:1024px){ .t-rail .rl-tog.rl-v8,body.rail-min .t-rail .rl-tog.rl-v8{z-index:68} }
/* folded: the same small box, nothing grows (it used to take the old 64px strip's size), no grey line above it */
body.rail-min .rl-tog.rl-v8{min-height:44px!important;height:44px!important;width:44px!important;flex-direction:row!important;border:0!important}
body.rail-min .rl-v8 .rl-box{width:22px;height:22px}
body.rail-min .rl-v8 .rl-box .ic{width:14px!important;height:14px!important}
.rl-tog.rl-v8::before,.rl-tog.rl-v8::after{display:none!important}
.t-rail > .rl-tog.rl-v8{border:0!important}
.t-rail > .rl-tog.rl-v8 + *{border-top:0!important}
/* round 9 (Amuii): the pen's width and colours share one row; the width slider is narrow; on a computer every colour shows
   at once (rows wrap, nothing to drag); on a phone the colours stay one row that scrolls */
.wb-pstrip{display:flex;align-items:center;gap:12px;flex-wrap:nowrap}
.wb-pstrip .wb-pwr{flex:0 0 auto;gap:6px}
.wb-pstrip .wb-rng{width:110px}
.wb-pstrip .cs-row{flex:1 1 auto;min-width:0}
@media (min-width:700px) and (hover:hover){ .wb-pstrip .cs-row{flex-wrap:wrap;overflow:visible} .wb-pstrip .cs-row .swb,.wb-pstrip .cs-row .pl-crm{flex-basis:32px;width:32px;height:32px} }
/* round 9 (Amuii: 專注條貼頂線，唔好有白隙): the pinned focus bar sits right on the header's line, no gap */
.fxbar{top:calc(var(--hdr-h,68px) - 1px + env(safe-area-inset-top,0px));border-top-width:2px;margin-top:-1px}   /* 2026-11-20 (Amuii: 「focus bar 唔好同 top bar 有白 gap」「冇咗上面框線」): its own 2px top line lies over the header's line */
body.fxbar-on #hdr{margin-bottom:0}   /* no white gap between the header and the focus bar (the bar keeps the space under itself) */

/* round 10b (Amuii: 「箭嘴碌嘅時候會滑」「灰色」「穿咗 main nav」「收起要拍實頂部橫線」): the column's edge is one black line
   from the top bar's line to the bottom of the window, fixed like the column; ‹ is bent into it at the middle of the
   window. The strip lets taps through except on the arrow. The column itself stays under the top bar, no forced height. */
@media (min-width:1024px){
  .t-rail{border-right:0!important}
  .t-rail .rl-tog.rl-v8,body.rail-min .t-rail .rl-tog.rl-v8{position:fixed!important;top:var(--rail-line-t,68px)!important;bottom:0!important;height:auto!important;min-height:0!important;width:44px!important;
    left:calc(var(--rail-edge,0px) - var(--h-tap) + 1px)!important;transform:none!important;margin:0!important;padding:0!important;border:0!important;z-index:14!important;pointer-events:none;
    background:linear-gradient(var(--ink),var(--ink)) calc(var(--h-tap) - 1px) 0/1px 100% no-repeat!important;display:block!important;transition:none!important}
  /* 2026-11-20 (Amuii: 「我想撳展開箭咀，你偵測我撳收起」): the line's 44px tap strip lies on 今日's side of the line only —
     the line is its right edge — so it never covers the plan's first column */
  .rl-v8 .rl-hit{position:absolute;left:0;top:calc(50% - 32px);width:var(--h-tap);height:64px;pointer-events:auto;cursor:pointer;background:linear-gradient(var(--bg),var(--bg)) calc(var(--sp-4) - 3px + 20px) 0/5px 100% no-repeat}   /* 2026-11-20 (Amuii: 「我想撳展開箭咀，你偵測我撳收起」): the 44px to tap lie on 今日's side of the line, not over the plan's first column */
  .rl-v8 .rl-ln{width:44px;height:64px;display:block;fill:none;stroke:var(--ink);stroke-width:1px;vector-effect:non-scaling-stroke;stroke-linejoin:miter;position:relative;left:calc(var(--sp-4) - 3px);pointer-events:none}   /* drawn on the line; only the box left of it takes the tap */
  /* 2026-11-19 (Amuii: 「起晒格仲要斷開」): the line and the arrow are one line — the same pixels (x 22–23), no thicker part on hover */
  .rl-v8:hover .rl-ln,.rl-v8:focus-visible .rl-ln{stroke-width:1px}
  body.rail-min .tday{--rail-w:0px}
  body.rail-min[data-rail="side"] .main{--rail-w:0px}
  body.rail-min .t-rail{padding:0!important;width:0;overflow:visible}
  /* 2026-11-19 (Amuii: 「那條線會壓在上面」): the old column line (::after, v0.19.5) drew a second line 16px right of this one */
  body:not(.set-open) .t-rail::after{display:none}
}
}
/* 2026-11-17 round 10 (Amuii): 展出 = two columns. Left: the map, then the shows. Right: 出發地 → numbers (no lines) →
   calendar. Phones: one column in that order. */
#p-cons .cn-v8 .cn-listcol{display:flex;flex-direction:column;gap:var(--sec-gap,24px);min-width:0}
#p-cons .cn-v8 .cn-listcol .cn-map{height:260px;min-height:0}
#p-cons .cn-v8 .cn-side{display:flex;flex-direction:column;gap:var(--sec-gap,24px);min-width:0}
#p-cons .cn-v8 .cn-orig{margin:0;border:0;padding:0;height:auto;min-height:44px}
@media (min-width:1024px){
  #p-cons .cn-v8 .cn-lbody{grid-template-columns:minmax(0,1fr) 340px;gap:32px}
  #p-cons .cn-v8 .cn-listcol .cn-map{height:320px}
  #p-cons .cn-v8 .cn-side{position:sticky;top:var(--pg-top,16px)}
}
/* the calendar: ‹ year › then 未來三個月｜全年; each day carries its number; show days in the show colour, past shows black */
.cn-yh{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap;height:auto;min-height:var(--h-tap)}   /* a narrow column: 未來三個月｜全年 goes under the year instead of out of the window */
.cn-yh .cn-yseg{margin-left:auto}
.cn-yh .cn-yt{white-space:nowrap}
.cn-ym .hm-c.cn-d{display:grid;place-items:center;aspect-ratio:1/1;padding:0;border:0;box-shadow:none;background:none;font-size:11px;font-weight:var(--fw-label);color:var(--muted);font-variant-numeric:tabular-nums;line-height:1}
.cn-ym .hm-c.out{background:none}
.cn-ym .hm-c.cn-d.td{box-shadow:inset 0 0 0 1.5px var(--ink);color:var(--ink);font-weight:var(--fw-head)}
.cn-ym .hm-c.cn-on{background:var(--c1);color:#fff;font-weight:var(--fw-head);cursor:pointer}
.cn-ym .hm-c.cn-on.past{background:var(--ink);color:var(--bg)}
.cn-ym .hm-c.cn-on:hover{outline:2px solid var(--ink);outline-offset:-2px}
/* a show's pictures (Amuii 揀 A): no picture yet = a full-width 88px upload strip, icon and words in one row */
/* round 10 (Amuii: 「調整要貼標題旁邊」, 「兩粒字都分兩行」): the list head is 今日's — title · ⚙ 調整 right beside it ………
   已完成 N 項 ▾ at the far right; nothing wraps. Rows = tick · name ……… the goals' countdown (red when late). */
/* the show's name, countdown and progress head the right column (the facts you look up), not the list you work through */
/* round 10 (Amuii): the pin sits left of the title (as in 排期), never over the type; the show a goal follows = its icon + name,
   lined up with the title's left edge */
.pc8 .pc-tr .pc-pin{position:static!important;top:auto;right:auto}
.pc8 .pc-tr{display:flex;align-items:flex-start;gap:var(--sp-1)}
.pc8 .pc-meta .due-con{display:inline-flex;align-items:center;gap:var(--sp-2);font-size:12.5px;font-weight:var(--fw-label);color:var(--muted);margin:0;padding:0;border:0;background:none}
.pc8 .pc-meta .due-con .ic{width:16px;height:16px;flex:none}
/* round 10 (Amuii: 「呢個排版我睇閪呀」): 回顧 has one big number — the hours. The month and the thank-you line sit small
   above it; the calendar's depth of yellow says how long you created (no black days); today has a frame. */
#p-stats .st-title{font-size:clamp(20px,2vw,26px)!important;font-weight:var(--fw-head);line-height:1.2;margin:0}
#p-stats .st-title small{font-size:1em;font-weight:var(--fw-head)}
#p-stats .rp-hello{font-size:15px!important;font-weight:var(--fw-label)!important;color:var(--muted);min-height:0!important;padding:4px 0 0!important;border:0!important}
#p-stats .rp-top{margin-top:16px!important}
#p-stats:not(:has(.hm-cust)) .hl1{background:color-mix(in srgb,var(--acc) 22%,var(--bg))!important;color:var(--ink)!important}
#p-stats:not(:has(.hm-cust)) .hl2{background:color-mix(in srgb,var(--acc) 48%,var(--bg))!important;color:var(--ink)!important}
#p-stats:not(:has(.hm-cust)) .hl3{background:color-mix(in srgb,var(--acc) 74%,var(--bg))!important;color:var(--ink)!important}
#p-stats:not(:has(.hm-cust)) .hl4{background:var(--acc)!important;color:var(--ink)!important;font-weight:var(--fw-head)}
#p-stats:not(:has(.hm-cust)) .hm-c.hl4.due::after{border-right-color:var(--ink)}
#p-stats .hm-c.td{outline:2px solid var(--ink);outline-offset:-2px}
#p-stats .hm-c.fu{background:none!important;box-shadow:inset 0 0 0 1px var(--line)}
/* round 10 (Amuii: 「黑框淨係包住上面，冇包住 Action Bar」): the window's frame runs round its action row too */
body.tpbar-on :is(.tp-sheet .tpbar,.edbar-blk){border:1px solid var(--ink)!important;border-top-width:2px!important;box-sizing:border-box}   /* the sheet's foot: framed like the sheet (all widths), so 圓角 rounds a box, not a line */
/* round 10: 用品 rows = 今日's rows; 調整 opens one in place with 修改目標's questions */
.pk-ed .pk-r{}
.pk-ed .pk-hd{width:100%;border:0;background:none;font:inherit;color:var(--ink);text-align:left;cursor:pointer;padding:0;display:flex!important;align-items:center;gap:10px;min-height:48px}
.pk-ed .pk-hd .tk-n{flex:1 1 auto;min-width:0;font-size:14px;font-weight:var(--fw-label)}
.pk-ed .pk-hd .pc-left{flex:none;font-size:12.5px;font-weight:var(--fw-label);color:var(--muted);white-space:nowrap}
.pk-ed .pk-hd .ic{width:18px;height:18px;color:var(--faint);flex:none}
.pk-ed .pk-r.open .pk-hd .ic{color:var(--ink)}
.pk-form{display:flex;flex-direction:column;gap:20px;padding:8px 0 20px}
.pk-form .pk-in{flex:1 1 auto;min-width:0;border:0;background:none;font:inherit;font-size:16px;color:var(--ink);padding:0;outline:none}
.pk-form .pe3-f:focus-within{border-bottom-color:var(--ink)}
.pk-form .pk-win{max-width:120px}
.pk-form .pk-ti.has{width:88px;height:88px;padding:0;border:0;background:none;cursor:pointer}
.pk-form .pk-ti.has img{width:100%;height:100%;object-fit:cover;display:block}
.pk-form .pk-delb{align-self:flex-start;min-height:44px}
/* round 10: 新增／修改展會 = the form of 修改目標 — numbered bold questions, answers on one underline, no box, no grey */
.cf-sheet .cf-q{margin:0 0 28px}
.cf-sheet .cf-l.pe3-l{display:flex;align-items:baseline;gap:10px;font-size:15px;font-weight:var(--fw-head);margin:0 0 8px}
.cf-sheet .cf-l.pe3-l i{font-style:normal;font-size:12px;font-weight:var(--fw-label);color:var(--muted);width:18px;font-variant-numeric:tabular-nums}
.cf-sheet :is(.cf-in,input.inp){border:0!important;border-bottom:1px solid var(--line)!important;background:none!important;border-radius:0!important;padding:10px 0!important;min-height:48px;font-size:16px;box-shadow:none!important}
.cf-sheet :is(.cf-in,input.inp):focus{border-bottom-color:var(--ink)!important;outline:none}
.cf-sheet .cf-q > .opt,.cf-sheet .nchip.opt{display:none}
.cf-sheet .cf-q.q1,.cf-sheet .cf-q.q2,.cf-sheet .cf-vbox,.cf-sheet .cf-q.q4,.cf-sheet .cf-q.q5,.cf-sheet .cf-q.q6{order:0!important}
/* round 10: the show's facts, each on a line — value + ✎, or the question in grey + ＋; typed in place on one underline */
/* round 10: the task editor reads like 排期 — names left, days right, show days a blue block, tasks diamonds on their day */
.tk-ed .tk-er{display:grid!important;grid-template-columns:minmax(96px,32%) minmax(0,1fr) 44px;align-items:center;gap:0 12px;min-height:52px;padding:0!important}
.tk-ed .tk-er.tk-head{min-height:28px;border-bottom:0}
.tk-ed .tk-name{min-width:0;width:100%;border:0;background:none;font:inherit;font-size:14px;font-weight:var(--fw-label);color:var(--ink);padding:8px 0;outline:none;border-bottom:1px solid transparent}
.tk-ed .tk-name:focus{border-bottom-color:var(--ink)}
.tk-ed .tk-ticks{position:relative;height:28px}
.tk-ed .tk-ticks i{position:absolute;bottom:0;height:8px;border-left:1px solid var(--line)}
.tk-ed .tk-ticks i span{position:absolute;bottom:10px;left:0;transform:translateX(-50%);font-size:11px;font-weight:var(--fw-label);color:var(--muted);white-space:nowrap;font-style:normal}
.tk-ed .tk-ticks i:last-of-type span{transform:translateX(-100%)}
.tk-ed .tk-ticks i:first-child span{transform:none}
.tk-ed .tk-track{position:relative;height:52px;cursor:ew-resize;touch-action:pan-y}
.tk-ed .tk-track::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid var(--line)}
.tk-ed .tk-show{position:absolute;right:0;top:12px;bottom:12px;width:6px;background:var(--c1)}
.tk-ed .tk-today{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--acc)}
.tk-ed .tk-h{position:absolute;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;background:var(--ink);transform:rotate(45deg);border:0;padding:0;z-index:1}
.tk-ed .tk-h::after{content:"";position:absolute;inset:-16px}
.tk-ed .tk-h:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.tk-ed .tk-er.dragging .tk-h{background:var(--acc);box-shadow:0 0 0 1px var(--ink)}
.tk-ed .tk-dl{position:absolute;top:2px;margin-left:12px;border:0;background:none;padding:0 2px;font:inherit;font-size:12px;font-weight:var(--fw-label);color:var(--ink);white-space:nowrap;cursor:pointer;min-height:20px}
.tk-ed .tk-dl.r{margin-left:0;transform:translateX(calc(-100% - 12px))}
.tk-ed .tk-dl:hover{text-decoration:underline}
.tk-ed .tk-del{width:44px;height:44px;display:grid;place-items:center;border:0;background:none;color:var(--faint);cursor:pointer}
.tk-ed .tk-del .ic{width:18px;height:18px}
.tk-ed .tk-del:hover{color:var(--danger,#d22)}
.tk-ed .tk-add{margin-top:12px}
.tk-ed .tk-scale,.tk-ed .tk-dv,.tk-ed .tk-line{display:none}
/* round 9 rule, restored (Amuii: 「日期擺喺名稱前面」): tick · days (one column, right-aligned figures) · name */
/* round 10b (Amuii: 「直落四個標題亂到嘔」「條灰線係乜」): an item opens as 2×2 — 01 名稱 | 02 數量 / 03 重量 | 04 圖片.
   One look per kind of answer: typing = an underline exactly as wide as the field (重量 short, g right after it);
   a number = − N ＋ (no line); a picture = a 64px square. 刪除 bottom right. */
.pk-form{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 24px;align-items:start;padding:8px 0 20px}
.pk-form .pe3-q{margin:0;min-width:0}
.pk-form .pe3-l{margin:0 0 8px}
.pk-form .pe3-f{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0;border:0!important}
.pk-form .pe3-f .pk-in{border-bottom:1px solid var(--line);padding:8px 0;min-height:44px;box-sizing:border-box}
.pk-form .pe3-f .pk-in:focus{border-bottom-color:var(--ink)}
.pk-form .pe3-q:first-child .pe3-f{display:flex}
.pk-form .pe3-q:first-child .pk-in{width:100%}
.pk-form .pk-win{width:96px;max-width:96px;flex:none}
.pk-form .pk-ti.has,.pk-form .pk-up{width:64px;height:64px}
.pk-form .pk-up{min-height:0!important}
.pk-form .pk-up .upz-go{width:64px;height:64px;min-height:0!important;padding:0!important;justify-content:center!important}
.pk-form .pk-up .upz-tx,.pk-form .pk-up [data-paste]{display:none!important}
.pk-form .pk-delb{grid-column:2;justify-self:end}
@media (max-width:420px){ .pk-form{gap:16px 12px} .pk-form .np-q.sm .np-b{width:36px} }
/* a show's pictures: computer = one row of four; phone = four full-width strips one under another; a picture is at most 160px tall */
/* the calendar's day numbers sit in the middle of their square */
.cn-ym .hm-c.cn-d{justify-content:center!important;align-items:center!important;text-align:center}
/* ticked = 今日's tick exactly (grey square, black tick, the name struck through) */
/* the venue typed on its own line */
/* round 10b (Amuii: 「短嘅設定一行搞掂」): a setting = one line, its name left, its control right; no descriptions */
.set-ln{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-height:52px;padding:4px 0}   /* 2026-11-21 (Amuii: 「title align with the toggle」): the name sits on the first control line, not between two */
.set-lt{font-size:14px;font-weight:var(--fw-head);color:var(--ink);flex:0 0 auto;min-height:var(--h-tap);display:flex;align-items:center}
.set-lc{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:1 1 auto;min-width:0;flex-wrap:wrap}
.set-lc > .sw{min-height:var(--h-tap)}   /* a switch takes a whole 44px line, so the name beside it lines up with it */   /* a control too wide for the column goes to the next line whole (a counter keeps its unit, .np-qrow) */
.set-lc .seg{margin:0}
.set-end{justify-content:space-between;align-items:center;flex-wrap:wrap;min-height:44px}
.set-end > .foot{margin:0}
.set-cols .set-lc{gap:14px}
.set-sw{display:flex;flex-direction:column;align-items:center;gap:2px}
.set-sw small{font-size:11px;font-weight:var(--fw-label);color:var(--muted);white-space:nowrap}
.set-sw .cbtn,.set-sw button{min-width:44px;min-height:32px}
.set-card{margin:0 0 12px}
.set-rng{flex:1 1 auto;max-width:180px;accent-color:var(--ink)}
.set-rl{font-size:12px;font-weight:var(--fw-label);color:var(--muted);white-space:nowrap;min-height:var(--h-tap);display:inline-flex;align-items:center}   /* a plain value takes the 44px line a control would, so its name lines up */
.set-ln .stepper{margin:0}
.set-ln .np-qrow{margin:0}
.set-tog{margin:0}
.lk-pv{max-width:320px;margin:0 0 8px auto;transform-origin:right top}
.atab .se-b .ic{width:18px;height:18px}
/* ===== round 11: 展出 list on one grid (replaces the .cn-v8 patches) =====
   phone: one column, 16px sides (the page's), every block --sec-gap apart:
   sticky [＋ 新增展會 ……… 已完成 N 場 ▾] · shows (one full-width row each) · calendar · 出發地 + map · four small numbers
   computer: main 8 | side 4 (12-column page, 24px gutter) */
#p-cons .cn-v10{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sec-gap,var(--sp-4));align-items:start}
#p-cons .cn-v10 .cn-main,#p-cons .cn-v10 .cn-side10{display:flex;flex-direction:column;gap:var(--sec-gap,var(--sp-4));min-width:0}
#p-cons .cn-v10 .cn-side10[hidden]{display:none}
@container pnl (min-width:800px){
  #p-cons .cn-v10{grid-template-columns:minmax(0,1fr) var(--side-w);column-gap:var(--sp-4)}
  #p-cons .cn-v10 .cn-side10{position:sticky;top:var(--pg-top,16px)}
}
/* the sticky row: 新增 fills the left, the controls on the right, both 52px, one line under it (as the goals' grid head) */
#p-cons .cn-bar10{position:sticky;top:calc(var(--hdr-h,54px) + env(safe-area-inset-top,0px));z-index:3;background:var(--bg);display:flex;align-items:center;gap:var(--sp-3);padding:0 0 var(--sp-2);margin:0;box-shadow:0 1px 0 var(--line)}
@media (min-width:1024px){ #p-cons .cn-bar10{top:calc(var(--hdr-h,64px) + env(safe-area-inset-top,0px))} }
#p-cons .cn-bar10[hidden]{display:none}
#p-cons .cn-bar10 .pc-add{flex:1 1 auto;min-width:0;width:auto;margin:0;height:52px}
#p-cons .cn-bar10 .cn-ctl{display:flex;align-items:center;gap:var(--sp-3);flex:0 0 auto;margin:0;border:0}
/* shows: computer = three cards a row (as goals); phone = one full-width row: 64px cover (none: no space) · name / 40 天 ━━ 18% */
#p-cons .cn-v10 .cn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-3)}
/* calendar: phone = one month a row, full width; computer side = one column too */
#p-cons .cn-v10 .cn-year{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--sp-3)}
#p-cons .cn-v10 .cn-year.all{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media (max-width:1023px){ #p-cons .cn-v10 .cn-year.all{grid-template-columns:minmax(0,1fr)!important} }
#p-cons .cn-v10 .cn-ym .hm-mini{gap:0;border:0}   /* 2026-11-20 (Amuii: 「年曆唔要 grid」): square days, no lines */
#p-cons .cn-v10 .cn-ym .hm-c{font-size:12.5px;aspect-ratio:1/1;min-height:0;box-shadow:none}
#p-cons .cn-v10 .cn-ym .hm-c:not(.cn-on):not(.td){font-weight:var(--fw-body);color:var(--faint)}   /* a day not chosen = the action bar's unchosen words (seg): light, the same size */
/* how to get there: 出發地 one line, the map right under it */
#p-cons .cn-v10 .cn-go{display:flex;flex-direction:column;gap:var(--sp-2)}
#p-cons .cn-v10 .cn-orig{margin:0;padding:0;border:0;min-height:44px;height:auto}
#p-cons .cn-v10 .cn-map{height:220px;min-height:0;width:100%}
/* the numbers: one row of four, small */
#p-cons .cn-kp4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-2)}
#p-cons .cn-kp4[hidden]{display:none}
#p-cons .cn-k4{display:flex;flex-direction:column;gap:var(--sp-1);min-width:0}
#p-cons .cn-k4 b{font-family:var(--f-num);font-size:20px;font-weight:var(--fw-head);line-height:1.1;font-variant-numeric:tabular-nums}
#p-cons .cn-k4 small{font-size:12px;font-weight:var(--fw-label);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ===== round 11: a show's page on the same grid ===== */
.cnp-top{display:flex;align-items:center;gap:var(--sp-1);min-width:0;margin:0 0 var(--sec-gap,var(--sp-4))}
.cnp-back{flex:none;width:44px;height:56px;display:grid;place-items:center;margin-left:-12px;border:0;background:none;color:var(--ink);cursor:pointer;padding:0}
.cnp-back .ic{width:32px;height:32px;stroke-width:2.4}
.cnp-tn,.cnp-top .cn-edN .pk-in{flex:0 1 auto;min-width:0;border:0;background:none;padding:0;font-family:var(--f-num);font-size:clamp(28px,4.2vw,56px);font-weight:var(--fw-head);letter-spacing:-.02em;line-height:1.1;color:var(--ink);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.cnp-top .cn-edN{flex:1 1 auto;min-width:0;display:flex}
.cnp-top .cn-edN .pk-in{width:100%;border-bottom:1px solid var(--ink);outline:none;cursor:text}
.cnp10{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sec-gap,var(--sp-4));align-items:start}
.cnp10 .cnp-main,.cnp10 .cnp-side{display:flex;flex-direction:column;gap:var(--sec-gap,var(--sp-4));min-width:0}
/* 2026-11-20 (Amuii 做): by the page's own width (it sits beside 今日's column): right column 280–380px (about 28%), sticky,
   its map filling the rest of the screen's height; under 800px (the left would be narrower than ~480) one column */
#cnPage{container:cnpg / inline-size}
@container cnpg (min-width:800px){
  .cnp10 .cnp-side{position:sticky;top:calc(var(--stick-t) + var(--pg-top,16px));height:calc(100dvh - var(--side-y,180px) - var(--sp-3))}   /* the side's own top (--side-y, set by cons.js) → no scroll on the first screen */
  .cnp10 .cnp-side .cnp-map{flex:1 1 auto;height:auto;min-height:220px} }
@container cnpg (max-width:799px){
  /* one column (phone / narrow): the same order and step as an open goal (2026-11-20 Amuii: 「展出 mobile 次序跟目標頁」「inconsistent
     padding」) — days · bar · %, the facts, the pictures, the lists (the work), then the map and the goals; 16px between parts */
  .cnp10{gap:var(--sp-3)}
  .cnp10 .cnp-main,.cnp10 .cnp-side{display:contents}
  .cnp10 .cnp-side > *{margin:0}
  .cnp10 .cnp-hd{order:1}.cnp10 .cn-info{order:2}.cnp10 .cn-imgs{order:3}.cnp10 .cnp-lists{order:4}.cnp10 .cnp-map{order:5}.cnp10 .cn-goals{order:6}
}
.cnp10 .cnp-cd{font-family:var(--f-num);font-size:clamp(44px,5vw,72px);font-weight:var(--fw-head);letter-spacing:-.03em;line-height:1}
.cnp10 .cnp-pg{max-width:none}
.cnp10 .cn-sg{border:0;background:none;padding:0;min-height:44px;font:inherit;font-weight:var(--fw-label);color:var(--ink);cursor:pointer;text-align:left}
.cnp10 .cn-sg:hover{text-decoration:underline}
.cnp10 .cn-sg.empty{font-weight:var(--fw-body);color:var(--muted)}
.cnp10 .cn-dot{color:var(--faint)}
.cnp10 .cn-mut{color:var(--muted);font-size:13px}
.cnp10 .cn-cp{width:44px;height:44px;margin:calc(-1 * var(--sp-2)) 0 calc(-1 * var(--sp-2)) calc(-1 * var(--sp-2));display:grid;place-items:center;border:0;background:none;color:var(--muted);cursor:pointer}
.cnp10 .cn-cp .ic{width:16px;height:16px}
.cnp10 .cn-lnD .dfield .ic{display:none}
.cnp10 .cn-lnD .dfield{min-height:44px;font-weight:var(--fw-label)}
.cnp10 .cn-ed{display:inline-flex;flex:1 1 160px;min-width:0}
.cnp10 .cn-ed .pk-in{flex:1 1 auto;min-width:0;border:0;border-bottom:1px solid var(--ink);background:none;font:inherit;font-size:16px;height:calc(var(--sp-3) + var(--sp-1));line-height:calc(var(--sp-3) + var(--sp-1));padding:0;outline:none}
.cnp10 .cn-lnV .cn-vp{flex:1 1 auto;min-width:0}
.cnp10 .cn-lnV .cf-in{border:0!important;border-bottom:1px solid var(--ink)!important;background:none!important;padding:0!important;min-height:0;height:calc(var(--sp-3) + var(--sp-1));line-height:calc(var(--sp-3) + var(--sp-1));font-size:16px}
.cnp10 .cnp-map{height:220px;width:100%}
.cnp10 .cn-goals{display:flex;flex-direction:column}
.cnp10 .cn-gl{display:flex;align-items:center;gap:var(--sp-2);width:100%;min-height:52px;padding:var(--sp-2) 0;border:0;background:none;font:inherit;text-align:left;color:var(--ink);cursor:pointer}
.cnp10 .cn-gl > .ic:first-child{width:20px;height:20px;color:var(--muted);flex:none}
.cnp10 .cn-gl > .ic:last-child{width:18px;height:18px;color:var(--faint);flex:none}
.cnp10 .cn-gl span{flex:1 1 auto;min-width:0;font-size:14px}
.cnp10 .cn-gl small{display:block;font-size:12.5px;color:var(--muted);margin-top:var(--sp-1)}
/* the lists, pictures and ticks keep their agreed look (round 10) — scoped to the new grid */
.cnp10 .cnp-lists{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sec-gap,var(--sp-4))}
.cnp10 .cq-h{display:flex;align-items:center;gap:var(--sp-3);min-height:44px;margin-bottom:var(--sp-1)}
.cnp10 .cq-h .cn-h{display:block!important;flex:0 0 auto!important;width:auto!important;padding:0!important;margin:0!important;white-space:nowrap;font-size:20px;font-weight:var(--fw-head);color:var(--ink)}
.cnp10 .cq-h .tl-adj,.cnp10 .cq-h .cn-donen{flex:0 0 auto;white-space:nowrap;width:auto;margin:0}
.cnp10 .cq-h .cn-donen{margin-left:auto}
.cnp10 .cn-tr{display:flex!important;align-items:center;gap:var(--sp-2);min-height:40px;cursor:pointer}
.cnp10 .cn-tr .tk-n{flex:1 1 auto;min-width:0;font-size:14px}
.cnp10 .cn-tr .cn-dcol{flex:0 0 52px;text-align:right}
.cnp10 .pc-left{font-size:12.5px;font-weight:var(--fw-head);color:var(--muted);white-space:nowrap}
.cnp10 .pc-left.key{color:var(--ink)}
.cnp10 .pc-left.late{color:var(--danger,#d22)}
.cnp10 .cn-tr.dn .tk-n,.cnp10 .pk-card.dn .pk-cn{text-decoration:line-through;color:var(--muted)}
.cnp10 .tl-box{border:1.5px solid var(--faint);background:var(--bg);width:20px;height:20px;display:grid;place-items:center;flex:none}
.cnp10 .tl-box .ic{width:13px;height:13px;stroke-width:3;opacity:0}
.cnp10 :is(.cn-tr.dn,.pk-card.dn) .tl-box{background:var(--soft);border-color:var(--muted)}
.cnp10 :is(.cn-tr.dn,.pk-card.dn) .tl-box .ic{opacity:1;color:var(--ink)}
.cnp10 .pk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-3)}
@media (min-width:700px){ .cnp10 .pk-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
.cnp10 .pk-cq{font-size:12.5px;font-weight:var(--fw-label);color:var(--muted);padding:0 0 var(--sp-2) var(--sp-4)}
#p-cons .cn-bar10 .pc-add{height:52px!important;min-height:52px!important;aspect-ratio:auto!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:var(--sp-3)!important;padding:0 var(--sp-3)!important}
#p-cons .cn-bar10 .pc-add .ic{width:22px;height:22px}
/* round 11: a goal's page starts with the same very big 「‹ name」 line; actions right; the row below drops the name */
.g-top11{display:flex;align-items:center;gap:var(--sp-1);min-width:0}
.g-top11 .g-acts{flex:none;display:flex;align-items:center;gap:var(--sp-2);margin-left:0}
#p-goals .prow2.open .pr-h:not(.idt-crumb) .pr-name{display:none}
/* round 11 (Amuii: 「頁點解跌咗落去、點解咁多空白、分頁入面冇排序」): the grid's head is one line on one baseline —
   頁 · 01 分鏡 … 05 嵌字 ……… 排序：重要性 ↓ — everything sits on the bottom; its line is the first row's top edge;
   the sort is there on 今日 and on the goal's own page alike */
.vgrid .vg-h{align-items:end!important;padding:0 0 var(--sp-2)!important;margin-bottom:0!important}
.vgrid .vg-h > *{align-self:end!important}
.vgrid .vg-u{padding-bottom:var(--sp-1)}
/* round 11 (Amuii: 「作品篩選列要同格仔表頭一模一樣，碌嘅時候黐頂」): same height, same bottom line, sticky under the top bar */
#p-works .wf-bar{position:sticky;top:calc(var(--hdr-h,54px) + env(safe-area-inset-top,0px));z-index:3;background:var(--bg);display:flex;gap:12px;padding:0;box-shadow:0 1px 0 var(--line)}   /* the page row (.pg-bar: 44px, centred, its gap under it), kept on screen while the wall scrolls */
@media (min-width:1024px){ #p-works .wf-bar{top:calc(var(--hdr-h,64px) + env(safe-area-inset-top,0px))} }
/* round 12 (Amuii): 展出 list = map on top with its four numbers under it, then one sticky row
   [篩選：未來 ▾ · ⌂ 出發地 旺角 ✎ ……… ＋ 新增展會], then the shows; calendar beside (computer) / last (phone) */
#p-cons .cn-v10 .cn-main > .cn-go{gap:var(--sp-3)}
#p-cons .cn-v10 .cn-main .cn-map{height:240px}
@media (min-width:1024px){ #p-cons .cn-v10 .cn-main .cn-map{height:320px} }
#p-cons .cn-bar10{flex-wrap:wrap;row-gap:var(--sp-1)}
#p-cons .cn-bar10 .cn-ctl{flex:1 1 auto;min-width:0;flex-wrap:wrap;gap:var(--sp-1) var(--sp-3)}
#p-cons .cn-bar10 .cn-ob{min-height:44px;display:inline-flex;align-items:center;gap:var(--sp-2);white-space:nowrap;font-size:12.5px;font-weight:var(--fw-label);color:var(--muted)}
#p-cons .cn-bar10 .cn-ob b{color:var(--ink);font-weight:var(--fw-head)}
#p-cons .cn-bar10 .cn-ob .ic{width:18px;height:18px}
#p-cons .cn-bar10 .pc-add{flex:0 0 auto!important;width:auto!important;margin-left:auto}
@media (max-width:699px){
  /* phone: one line — the funnel and the house already say 篩選 and 出發地 */
  #p-cons .cn-bar10{flex-wrap:nowrap;gap:var(--sp-2)}
  #p-cons .cn-bar10 .cn-ctl{flex-wrap:nowrap;gap:var(--sp-2)}
  #p-cons .cn-bar10 .cn-ob > span{display:none}
  #p-cons .cn-bar10 .cn-ob .cn-obe{display:none}
  #p-cons .cn-bar10 .pc-add{padding:0 var(--sp-3)!important}
}
/* round 12: a show's pictures by how many there are (phone and computer alike) — none: four slots in a row;
   1–3: the first big across, the rest three in a row; four: 2×2. Each picture carries its name top-left (.gal-tl). */
/* empty slots in the small cells: the upload icon over the name, no hint, no paste button text squeezed in */
/* countdown and progress on one line */
/* 用品: small squares, four a row on a phone, six on a computer; ×2 big on top; tick + name ……… weight */
.cnp10 .pk-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))!important;gap:var(--sp-2)}   /* 2026-11-20: cards ≥120px, more per row when there is room */
.cnp10 .pk-card{position:relative;display:flex;flex-direction:column;min-width:0}
.cnp10 .pk-card .pk-im,.cnp10 .pk-card .pk-up{width:100%;aspect-ratio:1/1;height:auto;min-height:0!important}
.cnp10 .pk-card .pk-im img{width:100%;height:100%;object-fit:cover;display:block}
.cnp10 .pk-card .pk-up .upz-go{min-height:0!important;height:100%;padding:0!important;justify-content:center!important;align-items:center!important}
.cnp10 .pk-card .pk-up .upz-tx,.cnp10 .pk-card .pk-up [data-paste]{display:none!important}
.cnp10 .pk-cb{display:flex;align-items:center;gap:var(--sp-1);min-height:36px;padding:var(--sp-1) 0;cursor:pointer;min-width:0}
.cnp10 .pk-cb .tl-box{width:16px;height:16px}
.cnp10 .pk-cb .pk-cn{flex:1 1 auto;min-width:0;font-size:12px;font-weight:var(--fw-label);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cnp10 .pk-cb .pk-w{flex:none;font-size:11px;font-weight:var(--fw-label);color:var(--muted)}
.cnp10 .cq-h .cn-mut{font-size:13px;font-weight:var(--fw-label);color:var(--muted);white-space:nowrap}
.cnp10 .cnp-main{container:cnmain / inline-size}
@container cnmain (min-width:880px){ .cnp10 .cnp-lists{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:var(--sp-4)} }   /* 2026-11-20 (Amuii: 「已經咁寬，任務同用品要變 2 column」) */
/* round 13: 用品 squares — the tick sits on the picture's top-left (more room for the name); the count uses the pictures'
   own label (.gal-tl) exactly, in the top-right corner; the weight is a bare number (the total above says kg) */
.cnp10 .pk-card .pk-cb .tl-box{position:absolute;top:4px;left:4px;z-index:1;width:20px;height:20px;background:var(--bg)}
.cnp10 .pk-card .pk-cb{padding:var(--sp-1) 0}
.cnp10 .pk-card .gal-tl{left:auto;right:0;top:0;z-index:1;pointer-events:none}
.cnp10 .pk-card{cursor:default}
/* the countdown line right under the name */
.cnp-top + .cnp-hd{display:flex;align-items:center;gap:var(--sp-3);margin:calc(-1 * var(--sp-3)) 0 var(--sec-gap,var(--sp-4))}
.cnp-top + .cnp-hd .cnp-cd{flex:none;font-family:var(--f-num);font-size:clamp(28px,3.4vw,44px);font-weight:var(--fw-head);letter-spacing:-.02em;line-height:1}
.cnp-top + .cnp-hd .cnp-pg{flex:1 1 auto;min-width:0;max-width:480px}
/* 展出 list: the filter's list opens down, inside the screen (it opened upwards, off the page) */
/* round 14 (Amuii: 「標籤用返現成」「圖片 show 唔晒」): a picture's label is the goals' big-picture label (.gal-tag, black,
   top-left); the count on a supply sits top-right in the same label. Show pictures are never cropped: list thumbnails
   are 4:3 like the posters, and every picture on a show's page shows whole (contain) inside its 4:3 frame. */
/* the image tag at the top-right (a supply's ×N: the tick sits top-left) — the component's own variant */
.gal-tag[data-at="r"]{left:auto;right:0;pointer-events:none}
.cnp10 .pk-card .pk-im,.cnp10 .pk-card .pk-up{aspect-ratio:4/3!important}
.cnp10 .pk-card .pk-im img{object-fit:contain!important;background:var(--soft)}
/* ===== 2026-11-17 design system: one look = one meaning (Amuii: 「見到底線就知道可以填字」) =====
   underline (grey 1px, black when focused) = you can type here — inputs only
   1px frame = a thing you tap (buttons, cards, add, grid cells) · 3px accent bar = chosen (tabs, seg)
   solid fill = a state (ticked, dragging, today) · grey words = secondary · black 1px full-width = the app's frame
   (top bar, left column edge) · whitespace = groups.
   So every line that only separated rows, heads or months goes; separation is space, and a sticky head is a solid band. */
:is(.at-h,.cn-gl,.hm-mh,.cn-ym .hm-mh,.pc-cov,.pl-hd,.ptabs-row,.rp-ch,.rp-goal,.rp-lr,.st-due,.tile.mefold,.tk-r,.cq-r,.cn-tr,.tplrow,.ty-r,.vg-h,.bd-own,.con-q,.sb-h,.tord-r,.pk-ed .pk-r,.tk-ed .tk-er,.cn-row,.cn-th,.cn-orig,.wk-stats > div){border-bottom:0!important}
:is(.vg-h,.vgrid .vg-h,#p-cons .cn-bar10,#p-works .wf-bar,.pl-hd){box-shadow:none!important;background:var(--bg)}
/* rows stay apart by their height and a little space */
:is(.tk-r,.cq-r,.cn-tr,.ty-r,.tplrow,.rp-goal,.st-due,.tord-r,.cn-gl,.tk-ed .tk-er,.pk-ed .pk-r):not(:last-child){margin-bottom:var(--sp-1)}   /* between rows only: the last one adds nothing under the list */
/* a row you tap says so: a grey icon at its end (✎ › already there) and a light band under the pointer */
:is(.ty-r,.tplrow,.rp-goal,.st-due,.cn-gl,.pk-hd):hover{background:var(--soft)}
/* the chosen tab is its 3px bar; no grey line across the whole row */
.ptabs-row{box-shadow:none!important}
/* − N ＋ is a thing you tap: a full frame, never a lone underline */
.np-q.sm{border:1.5px solid var(--ink)!important}
/* round 15: countdown line is one row (Safari stacked it centred); the supply tick sits flush in the picture's corner */
.cnp-top + .cnp-hd{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:left}
.cnp-top + .cnp-hd .cnp-pg{display:flex!important;align-items:center;gap:var(--sp-2);flex:1 1 auto!important;width:auto!important}
.cnp-top + .cnp-hd .cnp-pg .pp-bar{flex:1 1 auto}
.cnp10 .pk-card .pk-cb .tl-box{top:0!important;left:0!important}

/* ===== 2026-11-17 spacing system (Amuii) — every distance means something; only these may be used =====
   --sp-1 4px  inside one control (icon and its word, tick and its name)
   --sp-2 8px  between items of one group (rows, cards, chips)
   --sp-3 16px padding inside a block; a heading to its content
   --sp-4 24px between blocks (phones 16px) = --sec-gap
   control heights: --h-tap 44px (the smallest thing you tap), --h-row 52px (rows, 新增, bars), --h-drop 88px (upload slot)
   label padding: --pad-tag; thumbnails: --gap-thumb. Text in one row lines up by baseline, never by a padding nudge.
   A 44px tap area on a small icon is absorbed with calc((var(--h-tap) - icon) / -2), not a typed number. */
:root{--sp-1:4px;--sp-2:8px;--sp-3:16px;--sp-4:24px;--sec-gap:var(--sp-4);--h-tap:44px;--h-row:52px;--h-drop:88px;--pad-tag:2px 6px;--gap-thumb:4px}
@media (max-width:699px){ :root{--sp-4:16px} }
/* round 15 (Amuii: 「今日分區好亂，睇唔出係唔同分區」): on a phone every part of 今日 is one block, --sec-gap apart;
   the negative margins that ate that space (tlTile, water, conQ, projArea) are gone */
@media (max-width:1023px){
  #p-today .tday{row-gap:var(--sec-gap)!important}
  #p-today :is(#hero,#tlTile,#water,#conQ,#whyQ,#tTl,#projArea):not([hidden]){margin-top:0!important;margin-bottom:0!important}
}
/* round 15 (Amuii: 「已完成爆開三行，拎走『排序：』偷位」): in the grid's head the sort shows only its choice and arrow;
   已完成 N 項 never wraps */
/* round 15 (Amuii: 「分頁同進度條兩個黃色太似，冇層次」): yellow is creation (the progress bar); the chosen goal tab is a
   2px black bar, as the 分頁列 rule says */
#projArea .ptab.on{box-shadow:inset 0 -2px 0 var(--ink)!important}
/* round 15 (Amuii: 「置頂嘅篩選分組俾專注模式擋住」): while the focus bar sticks under the top bar, every other sticky head
   (goal grid head, 展出 row, 作品 filter row) sticks right under the focus bar instead of behind it */
:root{--stick-t:calc(var(--hdr-h,54px) + env(safe-area-inset-top,0px))}
body.fxbar-on{--stick-t:calc(var(--hdr-h,54px) + env(safe-area-inset-top,0px) + var(--fx-h,56px))}
.vgrid .vg-h,#p-cons .cn-bar10,#p-works .wf-bar{top:var(--stick-t)!important}
#p-cons .cn-bar10{flex-direction:column!important;align-items:stretch!important;flex-wrap:nowrap!important;gap:var(--sp-1)!important}
#p-cons .cn-bar10 .cn-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1) var(--sp-3);width:100%}
#p-cons .cn-bar10 .cn-ctl .wf-end{margin-left:auto}
#p-cons .cn-bar10 .cn-orig{display:flex!important;align-items:center;gap:var(--sp-3);width:100%;min-height:var(--h-row)}
#p-cons .cn-bar10 .cn-orig .cn-ob{flex:1 1 auto;min-width:0;overflow:hidden}
#p-cons .cn-bar10 .cn-orig .cn-ob b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#p-cons .cn-bar10 .cn-orig .pc-add{flex:0 0 auto!important;margin-left:auto}
/* round 15 (Amuii: 「目標分頁一大排高度唔同，好核突」): every goal tab (and ＋) is one 44px line on one baseline */
#projArea .ptabs{align-items:flex-end!important}
#projArea .ptab{height:var(--h-tap)!important;min-height:var(--h-tap)!important;margin-top:0!important;margin-bottom:0!important;align-self:flex-end!important;white-space:nowrap}
#projArea .ptab .pt-ty{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* round 15: 用品 head = title · ⚙調整 ……… 總重 · 已完成 (one push: the weight) */
.cnp10 .cq-h .cn-mut{margin-left:auto}
.cnp10 .cq-h .cn-mut + .cn-donen{margin-left:0}
/* filter panel: a section label (地區) lines up with the options under it, inside the frame */
#app .pk-p p.lab{width:100%;margin:var(--sp-2) 0 0!important;padding:0 var(--sp-2)!important;box-sizing:border-box}
/* goal grid head: 已完成 N 項 and the sort read the same (13px, grey name, bold choice) and sit on the stage names' line */
/* 2026-11-19: the grid header is one component — the same on 今日 and on an open goal (was #projArea only) */
/* 2026-11-18 (Amuii): on a phone the names column drags to select (the time line beside it scrolls) */
.plf .pl-sc .pl-n [data-isel]{touch-action:none}
/* 2026-11-18 (Amuii: 「回顧一格格一大格」「電腦版 2×3」「每一格一個特大數字或重點字」「第一行左邊當前月份，控件同一行靠右」)
   回顧: head = period (big, left) ……… 月｜年 · ‹ ›; one wish sentence; then every part is a grey block (--soft) with
   three kinds of type only: grey title 01, one big figure, its content. Phone one column, computer two. */
#p-stats .st-head{display:flex!important;flex-wrap:nowrap;align-items:center;justify-content:flex-start!important;gap:var(--sp-3)!important}
#p-stats .st-head .st-title{margin:0 auto 0 0;padding:0;border:0;background:none;color:var(--ink);font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(24px,3vw,36px);line-height:1.1;letter-spacing:-.02em;cursor:pointer;text-align:left;min-width:0;white-space:nowrap}
#p-stats .st-head .st-seg{margin:0}
#p-stats .st-head .st-nav{margin:0!important;flex:none}
#stBody{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sec-gap);max-width:none}
@media (min-width:1024px){ #stBody{grid-template-columns:repeat(2,minmax(0,1fr))} }
#stBody>:not(.rp-sec){grid-column:1/-1}
#p-stats .rp-hello{margin:var(--sp-2) 0 0!important;padding:0!important}
#p-stats .rp-sec{margin:0!important;padding:var(--sp-3);background:var(--soft);border:0;min-width:0}
#p-stats .rp-sec>.lab{margin:0 0 var(--sp-2)!important;color:var(--muted)}
#p-stats .rp-hl{margin:0 0 var(--sp-3)!important;font-size:clamp(26px,3vw,36px)!important}
#p-stats .rp-sec .rp-top{margin:0!important;padding:0;border:0}
#p-stats .rp-sec .rp-note{margin:var(--sp-1) 0 var(--sp-3)}
#p-stats .rp-sec .lab:not(.rp-sec>.lab){color:var(--muted)}
#p-stats .rp-sec .st-foot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);margin-top:var(--sp-3)}
#p-stats .rp-sec .st-foot>.foot{flex:1 0 100%;margin:0}
#p-stats .rp-sec .st-foot .hm-leg{margin:0}
#p-stats .rp-sec .st-foot .pl-fw{margin-left:auto}
#p-stats .rp-sec .st-foot .pl-fw .lk{min-height:var(--h-tap);min-width:var(--h-tap);justify-content:center}
#p-stats .st-heat{left:auto;right:0}
#p-stats .rp-sec .rp-cl{margin:0 0 var(--sp-2)}
/* the biggest day: hours only in its cell, so nothing runs out of it */
#p-stats .hm-c .dh{max-width:100%;overflow:hidden;white-space:nowrap}
#p-stats .st-heat{width:min(280px,calc(100vw - 2 * var(--sp-3)))}
/* 趨勢: its first headline is the block's big words */
#p-stats .rp-sec .rp-t:first-child .rp-th{font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(26px,3vw,36px);line-height:1.2;letter-spacing:-.02em;margin:0 0 var(--sp-3)}
/* round 2: 01 = title ……… legend · gear on one row; the big number and its grey line on one row; then the calendar */
#p-stats .rp-sec>.st-foot{display:flex;flex-wrap:nowrap;align-items:center;gap:var(--sp-2);margin:0 0 var(--sp-2)}
#p-stats .rp-sec>.st-foot>.lab{margin:0 auto 0 0;color:var(--muted);white-space:nowrap}
#p-stats .rp-sec>.st-foot .pl-fw{margin-left:0;margin-right:calc(var(--sp-3) * -0.75)}
#p-stats .rp-sec>.rp-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-1) var(--sp-3);margin:0 0 var(--sp-3)!important}
#p-stats .rp-sec>.rp-top .rp-note{margin:0}
#p-stats .rp-sec>.st-foot>.lab{white-space:normal;min-width:0;flex:1 1 auto}
#p-stats .rp-sec>.st-foot .hm-leg{flex:none}
#p-stats .rp-sec>.st-foot .hm-leg>span:not(.hl-w){display:none}
/* round 3 (Amuii): ‹ › then 月｜年 at the right, away from the title; 月｜年 as wide as its words */
#p-stats .st-head .st-seg{min-width:0}
#p-stats .st-head .st-seg button{min-width:var(--h-tap);padding:0 var(--sp-2)}
/* round 3: the summary opens the recap, full width; its three figures sit side by side with no lines */
#stBody>.rp-sec:first-child{grid-column:1/-1}
/* round 4 (Amuii: 「格仔框線點解會分離」): the cells a goal moved sit edge to edge, sharing their lines, like the goal grid */
#p-stats .rp-cells{gap:0;padding:0 1px 1px 0}
#p-stats .rp-cells i{box-shadow:none;border:1px solid var(--ink);margin:0 -1px -1px 0}
/* 2026-11-18 (Amuii: 「展出卡個名最大、圖係輔助」「冇圖出灰色」「睇唔出係一張卡」「兩行」「進度條 full width」「釘置中」):
   a show = a framed card (1px, the vocabulary's "can be tapped"), the picture flush at the left (no white edge), grey when
   there is none; row 1 = pin · name (big) · city · country; row 2 = N 天 ━━━ % (the bar fills the row) */
/* 2026-11-22 (Amuii: 「cover image can more big」「change the component dont 補丁」): the show card is this one block (five
   older layers with !important removed). The picture is 4:3 at the card's full height, flush left, cropped to fill; grey
   when there is none. The card's own corners clip it (no rounded picture inside the card). */
#p-cons .cn-v10 .cn-grid{grid-template-columns:minmax(0,1fr)}
#p-cons .cn-v10 .cn-card{--cn-cov:128px;display:grid;grid-template-columns:var(--cn-cov) minmax(0,1fr);align-items:stretch;gap:0;padding:0;min-height:calc(var(--cn-cov) * .75);border:1px solid var(--line);background:var(--bg);overflow:hidden;margin:0}
#p-cons .cn-v10 .cn-card .pc-cov{display:block;width:auto;height:100%;aspect-ratio:auto;border:0;border-radius:0}
#p-cons .cn-v10 .cn-card .pc-cov .ph-box,#p-cons .cn-v10 .cn-card .pc-cov .pc-noimg{display:block;width:100%;height:100%;background:var(--soft)}
#p-cons .cn-v10 .cn-card .pc-cov img{width:100%;height:100%;object-fit:cover}
#p-cons .cn-v10 .cn-card .pc-body{display:flex;flex-direction:column;justify-content:center;gap:var(--sp-2);padding:var(--sp-3);min-width:0}
#p-cons .cn-v10 .cn-card .pc-tr{display:flex;align-items:center;gap:var(--sp-1);min-width:0}
#p-cons .cn-v10 .cn-card .pc-tr .pc-pin{margin:0 0 0 calc(var(--sp-2) * -0.75)}
#p-cons .cn-v10 .cn-card .pc-name{flex:1 1 auto;min-width:0;font-family:var(--f-num);font-size:20px;font-weight:var(--fw-head);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0}
#p-cons .cn-v10 .cn-card .pc-tr .pc-ty{flex:0 1 auto;max-width:45%;padding:0;align-self:center}
#p-cons .cn-v10 .cn-card .pc-prog{display:flex;align-items:center;gap:var(--sp-2)}
#p-cons .cn-v10 .cn-card .pc-prog .pp-bar{flex:1 1 auto;max-width:none}
#p-cons .cn-v10 .cn-card .pc-left{font-family:inherit;font-size:12.5px;font-weight:var(--fw-head)}
@media (min-width:1024px){ #p-cons .cn-v10 .cn-card{--cn-cov:160px} }
@media (max-width:1023px){ #p-cons .cn-v10 .cn-grid{gap:var(--sp-2)} }
/* the list column on a computer is narrow (three cards were 168px wide, no room for the bar): one card a row there too */
#p-cons .cn-v10 .cn-grid{grid-template-columns:minmax(0,1fr)!important;gap:var(--sp-2)}
/* round 5 (Amuii: 「啲字細到」「明明有進度點解冇顏色」「點解會爛」): each goal's two sentences in readable black type;
   names are plain bold (no underline: a line under text means you can type there); the figure in big words is marked
   with a band behind its lower half, sitting on the text */
#p-stats .rp-sub{font-size:16px;line-height:1.55;color:var(--ink);margin-top:var(--sp-2)}
#p-stats .rp-gh{align-items:baseline}
#p-stats .rp-gh .rp-gl{font-size:17px;font-weight:var(--fw-head)}
#p-stats .rp-gl{text-decoration:none}
#p-stats .rp-hl .mk{background:linear-gradient(transparent 60%,var(--acc) 60%);padding:0;box-shadow:none}
/* 2026-11-18 (Amuii: 「每一版頂頭嘅空白位唔一致」): on a phone every page starts the same distance under the top bar
   (16px = --sp-3, what 目標 had); the computer already starts every page at the clock's top (--pg-top) */
@media (max-width:1023px){
  :root{--pg-top:var(--sp-2)}   /* 2026-11-23: a phone's bar has no margin under it, so the page's own 8px is the token */
  .panel:not([hidden]) > :first-child{margin-top:var(--pg-top)!important}
  #gBar > :first-child{margin-top:0}
}
/* 2026-11-19 (Amuii: 目標頁排期／卡片): the tab already says 排期, the plan's own 時間線 title isn't repeated */
#gTl .pl-mh > b{visibility:hidden}
/* 2026-11-19: 排期｜卡片 row now comes first; on a computer it keeps the clock's top line (as 新增目標 did) */
#gWrap > #gBar{margin-top:var(--pg-top)}   /* the page's top step (the same token as every page) */
#gWrap:not(:has(.prow2.open)){display:contents}   /* only an open goal needs the wrapper as a box (its two columns); otherwise the page is as before */
/* 2026-11-19 (Amuii: 排期 = the entire module): the plan on the Goals page, under 排期｜卡片, above the tabs on a phone */
.plf[data-ingoals]{top:var(--dock-t,0px);left:var(--dock-l,0px);bottom:var(--dock-b,0px);padding-top:0;z-index:13}   /* under the column line and its arrow (14) */
html:has(.plf.pl-docked){overflow:hidden}   /* 2026-11-20 (Amuii: 「scroll 右邊，左邊 bar 都跟住 scroll」): a docked plan covers the page, so the page under it doesn't scroll (and doesn't carry 今日's column with it) */
#gBar .pg-bar{min-height:var(--h-tap)}
.plf[data-ingoals] .pl-tt,.plf[data-ingoals] [data-save]{display:none}
/* the column is sticky (its own layer): lift it over the Goals-page plan so the arrow's right half and its tap area show */
@media (min-width:1024px){ body:has(.plf[data-ingoals]) .t-rail{z-index:14} }
/* 2026-11-19 (Amuii: 「條線突然跳去左邊」「open and close should be smooth」): the column's line glides to its new place */
/* 2026-11-19 (Amuii: 「成條線都可以點擊」): the whole line opens / closes the column (toggleRail glides it with the page) */
@media (min-width:1024px){ .t-rail .rl-tog.rl-v8,body.rail-min .t-rail .rl-tog.rl-v8{pointer-events:auto!important;cursor:pointer} }

/* 2026-11-19 (Amuii: 「一個組件出兩個樣」): 調整 is one component — 14px, bold, black, sitting right after its heading */
.tl-adj{display:inline-flex;align-items:center;gap:var(--sp-1);min-height:44px;padding:0;font-size:14px;font-weight:var(--fw-head);color:var(--ink)}
/* 2026-11-20 (Amuii: 「breadcrumb 名搬返左邊」「圖片搬返左邊，用返原本排法」「% 天數兩套 UI」): an open goal and an open show
   share one header — 「‹ name」 on top at the left, full width — and one progress block (cnp-hd: big days left · bar · %)
   with the facts as rows (cn-ln) at the top of the right column; everything else keeps its own original place. */
@container cnpg (min-width:800px){ .cnp-side > .cnp-hd{margin:0 0 var(--sp-2)} .cnp-side > .cn-info{margin:0 0 var(--sp-4)} }   /* two columns only; one column goes by the 16px step */
/* 2026-11-20 (Amuii: 「40 天頂到最頂」): on a computer the right column starts at the very top of the page, beside the
   name — the name and the work are the left column */
/* 2026-11-20 (Amuii 做): the right column is 280–380px (about 28%), no longer a fixed 300; a show's page goes by its own
   width (it sits beside 今日's column) — under 800px it is one column (cnpg rules above) */
#p-cons{container:pnl / inline-size}
@container pnl (min-width:800px){
  #cnPage:not([hidden]):has(.cnp10){display:grid;grid-template-columns:minmax(0,1fr) var(--side-w);column-gap:var(--sp-4);row-gap:var(--sp-3);align-items:start}
  #cnPage .cnp10{display:contents}
  #cnPage .cnp-top{grid-column:1;grid-row:1;margin:0}
  #cnPage .cnp-main{grid-column:1;grid-row:2;margin:0}
  #cnPage .cnp-side{grid-column:2;grid-row:1 / span 2;margin:0;width:auto}
}
#p-goals{container:pgl / inline-size}
@container pgl (min-width:800px){
  #gWrap:has(.prow2.open){display:grid;grid-template-columns:minmax(0,1fr) var(--side-w);column-gap:var(--sp-4);row-gap:var(--sp-3);align-items:start}
  #gWrap:has(.prow2.open) #projList,#p-goals .prow2.open{display:contents}
  #p-goals .prow2.open > .wa{display:contents!important}   /* beats the old .wa{display:flex!important} */
  #gWrap:has(.prow2.open){padding-top:var(--pg-top)}   /* the clock's top line, as every page */
  #gWrap:has(.prow2.open) > #gWhy,#gWrap:has(.prow2.open) > #gTl{display:none}
  #gWrap:has(.prow2.open) > #gBar{grid-column:1;grid-row:1;margin:0}
  #p-goals .prow2.open .wa-g{grid-column:1;grid-row:2;margin:0}
  #p-goals .prow2.open .gal{grid-column:2;grid-row:1 / span 2;margin:0;width:auto;position:sticky;top:var(--pg-top,16px)}
}
/* 目標頭 small (.gh-s, 今日's goal area — 2026-11-20 Amuii: 「align these 2 module」): the same head as an open goal; the days
   at heading size (the clock is 今日's one big number); 提早完成 is the quiet button (次要動作: icon + words, no frame) */

/* 2026-11-19 (Amuii: 「pro button 仲係爛」): 年費｜月費 is the app's one seg (words, the chosen one bold with a line) —
   on the yellow panel the line is ink, since a yellow line would vanish there */
.up-y .seg{position:relative}   /* above the yellow panel's own layers (it vanished without this) */
.up-y .seg button[aria-pressed="true"]{box-shadow:inset 0 -3px 0 var(--acc-ink)}
#gWrap > #gTl:empty{display:none}   /* 2026-11-20: an empty slot took a second gap under the top line (open goal 20px lower than an open show) */
/* 2026-11-20 (Amuii: 「排期工具列 間隔 logic」): the plan's top bar reads left to right in the order you use it —
   what you look at (排期｜卡片) · which days (‹ 今日 › 週｜月｜季) · narrow it (filter) ……… undo · redo · ＋ (目標／展出) · ⓘ.
   Icons only for undo, redo, filter, add and help; 8px inside a group, 24px between groups; one row on a phone too. */
.plf .pl-top{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sp-2)}
.plf .pl-top .pl-tools{display:contents}
.plf .pl-top .pl-new,.plf .pl-top .pl-ft,.plf .pl-top .pl-urt,.plf .pl-top .pl-hb .pl-lg,.plf .pl-top .pl-brk{display:none!important}
.plf .pl-top .pl-amw{display:inline-flex!important;order:6}
.plf .pl-top > .seg:first-child,.plf .pl-top > .pl-tt{order:1}
.plf .pl-top .pl-nav{order:2;margin-left:var(--sp-4);margin-right:0!important}
.plf .pl-top .pl-zoom,.plf .pl-top .pl-fw.pl-zsel{order:3;margin:0}   /* 週▾ is also a .pl-fw (picker): it stays right after ‹ 今日 ›, not with the filter */
.plf .pl-top .pl-fw{order:4;margin-left:var(--sp-4)}
.plf .pl-top .pl-ur{order:5}
.plf .pl-top [data-zh]{order:5;margin-left:auto;white-space:nowrap}   /* how to zoom: starts the right-hand group (the row's one push) */
@media (max-width:1023px){ .plf .pl-top [data-zh]{display:none} .plf .pl-top .pl-ur{margin-left:auto} }   /* no room: the walk-through (ⓘ) tells it */
.plf .pl-top .pl-hb{order:7}
.plf .pl-top .pl-go2{order:8}
.plf .pl-top > .seg:first-child{flex:none;white-space:nowrap}
.plf .pl-top .pl-zoom{margin-left:0!important;flex:none!important;min-width:0!important;gap:var(--sp-3)}
.plf .pl-top .pl-zoom button{min-width:0!important;padding:0!important}
/* phone: one row — undo / redo only once there is something to undo (then the row may take a second line) */
@media (max-width:699px){ .plf .pl-top{flex-wrap:wrap;padding:var(--sp-1) var(--sp-3);gap:var(--sp-1)}   /* 2026-11-20 (Amuii: 「why mobile padding 左邊」): the page's 16px gutter, as 卡片 */
  .plf .pl-top .pl-nav,.plf .pl-top .pl-fw{margin-left:0} .plf .pl-top .pl-hb{display:none!important}
  .plf .pl-top .pl-amw{margin-left:auto} }
/* 2026-11-20 (Amuii: 「pop up CTA height and map not full height」): 出發地 — the map fills the window between the field and
   the bottom row, so 儲存 sits at the bottom like every window (no empty half under it) */
.sheet-body:has(#orPick){flex-direction:column}
.sheet-body:has(#orPick) > .cf-q,.sheet-body:has(#orPick) #orPick{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.sheet-body:has(#orPick) .pp-map{flex:1 1 auto;min-height:240px}
.sheet-body:has(#orPick) > .sheet-f{margin-top:auto}
/* 2026-11-20 (Amuii: 「click location name，input field 要跌一格」): a fact turned into its field keeps its line — the field is
   44px to tap but sits on the row's 20px line, as the words did */
.cn-ln > .cn-ed{margin:0}   /* 2026-11-20 (Amuii: 「點解要咁樣衰」): a fact's field is exactly its 20px line — its underline sits under the words, never on the next line */
.cn-ln > .cn-ed .cf-in{min-height:0;height:calc(var(--sp-3) + var(--sp-1));padding:0;font:inherit;font-weight:var(--fw-label)}
.cn-ln > .cn-ed .pp-line{display:none}   /* the address has its own line under it */
/* 2026-11-20: the filter panel — every row one height with one line under it; a question = bold black words (one heading
   style for all); the chosen tab's line lies on the row's line */
.pl-fp .pin-tog{min-height:var(--h-row);margin:0;padding:0;box-shadow:inset 0 -1px 0 var(--line);align-items:stretch}
.pl-fp .pin-tog > span:first-child{display:flex;align-items:center}
.pl-fp .pin-tog .sw{align-self:center}
.pl-fp .pin-tog .seg{align-self:stretch;margin-bottom:-1px;gap:var(--sp-3)}
.pl-fp .pin-tog .seg button{height:auto;min-height:0}
/* 2026-11-20 (Amuii: 「task level detail page… main content in the right side bar」): an open item has no right column —
   its page is the whole width under its top line */
@media (min-width:1024px){ #p-goals .prow2.open > .idt{grid-column:1 / -1;grid-row:2;margin:0} #p-goals:not([hidden]):has(.prow2.open > .idt) > #gBar{grid-column:1 / -1} }

/* 2026-11-20 (Amuii: 「任務調整打開排期 pop up 呀」): one show's plan (任務 調整) is a pop-up — the page dimmed behind it, as every
   window; a phone keeps it full screen */
@media (min-width:700px){
  .plf[data-only]{inset:var(--sp-4) max(var(--sp-4),calc((100vw - 1200px) / 2));border:1px solid var(--ink)}
  body.plf-on:has(.plf[data-only])::after{content:"";position:fixed;inset:0;background:rgba(10,10,10,.42);z-index:calc(var(--z-full) - 1)}
}
/* 2026-11-20 (Amuii: 「排期範本 so broken」, 調整今日 as the model): one show's plan window — small title and ✕ on the first
   line, the template tabs (undo / redo at the right) on the second, the sheet's padding; the bottom bar as editorSheet's:
   two small actions, then 完成 filling the rest */
/* 2026-11-20 (Amuii: 「their position change, the top bar not align」): in 目標 the plan's top row starts where the
   卡片 view's row does — the page's own gutters, measured by placeDock() (planner.js) — so 排期｜卡片 never moves */
.plf[data-ingoals] .pl-top{min-height:calc(var(--dock-pt,0px) + var(--h-tap));align-content:flex-start;padding:var(--dock-pt,0px) var(--dock-pr,var(--sp-3)) var(--sp-1) var(--dock-pl,var(--sp-3))}   /* the page row (.pg-bar, 44px) at the 卡片 view's place */
.plf[data-only] .pl-top{flex-wrap:wrap;padding:var(--sp-4) var(--sp-4) var(--sp-3);gap:var(--sp-2)}
.plf[data-only] .pl-top .sheet-h{flex:1 0 100%;margin:0}
.plf[data-only] .pl-top .pl-tools{margin-left:auto}
.plf[data-only] .pl-bar .pl-sr{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);padding:var(--sp-1) var(--sp-2)}   /* the action row (editor.js act*): the primary fills the rest */
.plf[data-only] .pl-bar .edbar-go{min-height:var(--h-row);margin-left:0}
.plf[data-only] .pl-bar.tp-ask .pl-sr{flex-wrap:wrap}
.plf[data-only] .pl-bar .pl-sp{display:none}   /* the primary already fills the row */
@media (max-width:699px){ .plf[data-only] .pl-top{padding:var(--sp-3) var(--sp-3) var(--sp-2)} }

/* v0.20.5 (user: 「設定→外觀的顏色無法變更」): the appearance colour card sits in place under the swatches (.set-card),
   not as a floating panel — the floating rules opened it upward, out of the settings column. */
.set-card .pl-fp{position:static;left:auto;right:auto;top:auto;bottom:auto;width:100%;max-width:100%;max-height:none;margin-top:var(--sp-2)}
/* 2026-11-20 (Amuii: 「任務欄 min 360px；最理想 2 欄並排但要正常 show 到；字可以兩行；圖 grid min 2 column」):
   任務｜用品 sit side by side whenever 任務 gets 360px and 用品 gets two 120px squares (2 × 120 + gap + edge = 264px);
   narrower, they stack in one column. 用品 names wrap to two lines instead of being cut. */
@container cnmain (min-width:648px){ .cnp10 .cnp-lists{grid-template-columns:minmax(360px,1fr) minmax(264px,1fr)!important;gap:var(--sp-4)} }
.cnp10 .pk-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))!important}
.cnp10 .pk-cb .pk-cn{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
.cnp10 .pk-cb{align-items:flex-start}

/* 2026-11-20 (Amuii: 「圓角 doesn't apply to all component」): the parts that were missing from 圓角's list — the 新增 rows,
   upload slots, 回顧 sections, the show's map, supply pictures and the walk-through tip. Underline fields, ticks and list
   rows stay as they are. */
html[data-rad="on"] :is(.pc-add,.wb-add,.gal-bdnew,.upz,.rp-sec,.cnp-map,.pk-im,.pl-tip){border-radius:var(--rad)}
html[data-rad="on"] :is(.upz,.rp-sec,.cnp-map,.pk-im){overflow:clip}
/* 2026-11-20 (Amuii: 「remove all system dropdown」): 週｜月｜季 on a phone is the app's picker; the old select's frame goes */
.pl-zsel.pk{height:auto;max-width:none;padding:0;border:0;background:none;-webkit-appearance:none;appearance:none}
/* 2026-11-20 (Amuii: 「排期 click setting 會見唔到 setting」): the docked 排期 (fixed, over the page) covered Settings.
   Computer: Settings sits over the plan's right side (its own black line on the left). Phone: Settings is the page, so the
   plan steps aside while it is open, and the page scrolls again. */
@media (min-width:1024px){ body.set-open .setbar{z-index:14} }
@media (max-width:1023px){ body.set-open .plf.pl-docked{display:none} }
html:has(body.set-open):has(.plf.pl-docked){overflow:visible}
/* 2026-11-20 (Amuii: 「加一項係 todolist sticky bottom，點解搬咗上去」): 今日頁次序 numbers every part (order 10+), so the
   add field (no number) jumped to the top of the column; it always stays last, stuck to the bottom */
.t-rail > #cqFoot{order:999}
/* 2026-11-20 (Amuii: 「these fields are not same width, not same style」): every settings line is one grid — the name in a
   fixed column on the left, the control filling the rest — so every control starts and ends on the same lines.
   Single choices (seg) share the width equally; the font pickers fill it; the three colours take a third each. */
.set-ln .set-lt{flex:0 0 96px}
.set-ln .set-lc{justify-content:stretch}
.set-ln .set-lc > .seg{flex:1 1 auto;display:flex}
.set-ln .set-lc > .seg button{flex:1 1 0;min-width:0;white-space:nowrap}
.set-cols .set-lc > .set-sw{flex:1 1 0;align-items:flex-start}
.set-cols .set-lc > .set-sw{min-width:0}
.set-cols .set-lc > .set-sw > *{max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis}
/* 2026-11-20 (Amuii: 「相簿唔貼頂，拉闊就跳」): the side column spans both rows; when it was taller than the left, the grid
   shared the extra height between the two rows, so the title's row grew and pushed the pictures down by a different amount
   at every width. The first row is only as tall as the title (auto); the second row takes all the extra (1fr). */
@container pnl (min-width:800px){ #cnPage:not([hidden]):has(.cnp10){grid-template-rows:auto 1fr} }
@media (min-width:1024px){ #p-goals:not([hidden]):has(.prow2.open){grid-template-rows:auto 1fr} }
html[data-rad="on"] :is(.a-ic,.tp-ic,.se-b,.wk-yn,.c2d){border-radius:var(--rad2)}

/* ===== 今日頁分隔線 — one component (2026-11-20 Amuii: 「design system thinking」). Every part of 今日 is a .t-sec and starts
   at the black full-width line (--rule), with --sec-gap under it. today.js markSecs() adds .t-sec0 (no line) to a part that
   comes first in its column or right under 開始創作 / the slogan (they part themselves), and .t-sectop (no space) to the
   first. On a phone the line reaches over the 16px page margins. This is the only place these lines are written. */
#p-today .t-sec:not([hidden]){border-top:var(--rule)!important;padding-top:var(--sec-gap)!important}
#p-today .t-sec.t-sec0{border-top:0!important;border-image:none!important;padding-top:0!important}   /* no line, no space under a line: the column's own gap parts it */
#p-today .t-sec.t-sectop{padding-top:0!important}
@media (max-width:1023px){ #p-today .t-sec:not([hidden]):not(.t-sec0){border-top:1px solid transparent!important;border-image:linear-gradient(var(--ink),var(--ink)) 1 0 0 0 / 1px 0 0 0 / 0 var(--sp-3)!important} }
#p-today #hero #fxStart{border-top:0}

/* 設定 → 外觀 sliders (2026-11-20 Amuii: 「2 拉杆」): the app's slider (.shs-range) filling the line, the value it gives on its right */
.shs-rg.set-rg{display:flex;align-items:center;gap:var(--sp-3);width:100%;margin:0}
.set-rg .shs-range{flex:1 1 auto;min-width:0}
.set-rg b{flex:none;min-width:var(--h-tap);text-align:right;font-weight:var(--fw-label);font-variant-numeric:tabular-nums}

/* ===== 目標相簿間距 (2026-11-20 Amuii: 「inconsistent padding, so close with button and carousel, but so far from cover」):
   one rhythm on every page and width. Parts of one group are --sp-2 apart (the album's gap); a new group adds --sp-2 more
   (= --sp-3). Groups: 目標頭 (days · bar · % with 提早完成) · facts / description · the board · the picture (big picture,
   its upload line, the thumbnails). */
.gal > *{margin-top:0;margin-bottom:0}
.gal > * + .cn-info,.gal > * + .gal-bd,.gal > * + .gal-bdnew,
.gal > :is(.gal-bd,.gal-bdnew,.cn-info,.g-early,.cnp-hd) + .gal-s > *,.gal > :is(.gal-bd,.gal-bdnew,.cn-info,.g-early,.cnp-hd) + .gal-s:empty + .gal-s > *{margin-top:var(--sp-2)}
/* 資料行: a block with no icons at all (今日's description) starts at the left edge, no empty icon column */
.cn-info:not(:has(.ic)) .cn-ln > *{grid-column:1 / -1}

/* ===== 數字卡 (.st-kpis > .st-k; 展出頁、回顧) — 2026-11-20 Amuii: 「statistic so unique and not like every other card …
   should have 4 corners and 4 borders」. Each number is its own card like every other card in the app: a 1px line on all
   four sides, the corner setting, --sp-3 inside. As many per row as fit at 140px (2 on a phone, up to 4 on a computer);
   the number at heading size (a page has one very big number, and these are four). This is the whole component. */
.st-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:var(--sp-2)}
.st-k{min-width:0;padding:var(--sp-3);border:1px solid var(--line);border-radius:var(--rad);background:var(--bg)}
.st-k .lab{display:block;margin:0 0 var(--sp-2);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-k .big{display:block;font-size:clamp(24px,6vw,36px);line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-k .rp-note{display:block;margin-top:var(--sp-1)}

/* ===== 進度塊 (.cnp-hd: an open goal, 今日's goal, an open show) — the whole component. Computer: days · bar · % on one
   line, 提早完成 full width under it. Phone: days · bar · % · 提早完成, all on one line (see the phone rule below). */
.cnp-hd{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"cd pg" "go go";align-items:center;gap:var(--sp-2) var(--sp-3);min-width:0}
.cnp-hd > .cnp-cd{grid-area:cd;font-size:clamp(36px,4.4vw,56px);line-height:1}
.cnp-hd > .cnp-pg{grid-area:pg;min-width:0;margin:0;padding:0}   /* not the goal card's own space above its bar */
.cnp-hd:not(:has(> .cnp-cd)) > .cnp-pg{grid-column:1 / -1}
.cnp-hd > .g-early{grid-area:go;width:100%;min-height:var(--h-row);justify-content:center}
.cnp-hd.gh-s > .cnp-cd{font-size:clamp(24px,3vw,32px)}
/* 資料 (.cn-info) on a phone (2026-11-20 Amuii: 「頭 3 行一行過, description stand alone 一行」): the facts with an icon
   (type · date · show) run on one line and wrap when long; a line without an icon (the description) has its own line */
@media (max-width:743px){
  /* 2026-11-20 round 2 (Amuii: 「day + 1 progress bar + 提早完成 mobile 一行過，progress bar 做 full width」): one line —
     the days, the bar filling all the space between, its %, 提早完成 at the end */
  .cnp-hd{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"cd pg go";column-gap:var(--sp-2)}
  .cnp-hd > .cnp-cd{font-size:clamp(24px,7vw,32px)}
  .cnp-hd > .g-early{width:auto;min-height:var(--h-tap);padding:0 var(--sp-2);white-space:nowrap}
  .cn-info{flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-3)}
  .cn-info > .cn-ln{display:flex;align-items:center;gap:var(--sp-1);min-width:0}
  .cn-info > .cn-ln:not(:has(> .ic)){flex-basis:100%}
}

/* ===== 格仔頭 已完成 N 項 · 排序 (.vg-srtc; 今日目標區、目標頁、展出頁) — the whole component. 2026-11-20 Amuii: 「next to
   the last phase, not align to the right」: on a computer it starts right after the last stage column, in line with the
   item names below; on a phone it keeps the row's right end. Both words 13px so they share one text line. */
.vg-srtc{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-end;justify-content:flex-end;gap:var(--sp-3);min-width:0;padding-bottom:0;overflow:visible}
.vg-srtc .tl-donen{flex:none;white-space:nowrap;font-size:13px;margin-bottom:calc(-1 * var(--sp-2))}
.vg-srtc .pk-l{display:none}
.vg-srtc .pk-b{min-height:var(--h-tap);margin-bottom:calc(-1 * var(--sp-2));font-size:13px;font-weight:var(--fw-body)}
.vg-srtc .pk-b b{font-size:13px;font-weight:var(--fw-head);color:var(--ink)}
@media (min-width:1024px){ .vg-srtc{justify-content:flex-start;padding-left:var(--sp-3)} }

/* 加一項 on a phone (2026-11-20 Amuii: 「加一項 is today to do list … it should be at sticky bottom」): as in the computer's
   left column, the field is the to-do list's own foot (#cqFoot) — on a phone it stays at the bottom of the screen, right
   above the tab bar, wherever 今日 is scrolled. It sits under the header and its tab bar (z 15), so when the two meet — the
   iPhone's address bar or keyboard changes the height before --tabbar-h is measured again — the tab bar stays on top
   (2026-11-23 Amuii: 「快速記低任務嗰欄點解會穿過咗底下嗰個主選單」) */
@media (max-width:743px){
  #p-today #cqFoot{order:999;position:sticky;bottom:var(--tabbar-h,0px);z-index:14;background:var(--bg);padding:var(--sp-1) 0 var(--sp-2)}
}

/* ---------- v0.20.7 (2026-11-21, Amuii) ---------- */
/* 項目細節's 階段記錄 sits in the goal page's work area (.wa: .gal + .wa-g), so it takes the place of the goal's big picture */
.idt .wa > .wa-g{flex:1 1 0;min-width:0}
/* The app's one picture viewer (zoom.js): the picture box of 項目細節 (.idt-zoom), now a fixed frame the picture zooms in */
[data-zm]{touch-action:none;cursor:zoom-in}
[data-zm][data-zoomed="1"]{cursor:grab}
[data-zm][data-zoomed="1"]:active{cursor:grabbing}
[data-zm] img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
.idt-zoom{display:flex;align-items:center;justify-content:center;height:min(72vh,860px);overflow:hidden;background:var(--soft)}
.idt-zoom img{max-width:100%;max-height:100%;margin:0;object-fit:contain}
@media (max-width:600px){ .idt-zoom{height:62vh} }

/* v0.20.8 (Amuii: 「撳垃圾桶有時會誤 click 到摺起，太近」「hover 時浮一個收起小 arrow」「現在嗰行改做 arrow」「少少 motion 幫好多」)
   ① The line's 44px tap strip lies over the right 20px of 今日's rows: a tap there on a button (bin, tick, field…) goes
   to that button, not to 收起 (today.js railUnder); only taps on nothing fold the column.
   ② Hovering the strip, the arrow bent into the line follows the pointer up and down, and leans towards where it goes
   (‹ closes, › opens). Away from it, it rests in the middle as before. Phones have no strip. */
@media (min-width:1024px){
  /* (Amuii: 「條線接唔上，改字體大細更明顯」): the straight line (the strip's background) and the bent arrow (svg) were
     placed by two different sums (--h-tap - 1px vs --sp-4 - 3px + 22.5), which part company once 字體大細 zooms the app.
     Both now hang from the strip's right edge: the line is its last pixel column, the svg's line (x 22.5) sits on that
     column's centre (right:-21px). The svg draws only the bend (y 22–42); the strip's line is hidden just there, so the
     line is drawn once — no thicker part, no step, at any 字體大細. */
  .t-rail .rl-tog.rl-v8,body.rail-min .t-rail .rl-tog.rl-v8{background-position:right 0 top 0!important}
  .rl-v8 .rl-hit{width:100%;background:none;transition:top .14s cubic-bezier(.2,.7,.2,1)}
  .rl-v8 .rl-hit::before{content:"";position:absolute;right:-1px;top:22px;width:4px;height:20px;background:var(--bg);pointer-events:none}   /* one px past the edge: a zoomed line's soft edge is covered too */
  .rl-v8 .rl-ln{position:absolute;left:auto;right:-21px;top:0}
  .rl-v8.lit .rl-hit{top:calc(var(--rl-y,50%) - 32px)}
  .rl-v8.lit .rl-ln{transform-origin:22.5px 50%;animation:rlLean .9s ease-in-out infinite}
}
@keyframes rlLean{50%{transform:scaleX(1.5)}}
/* ③ The block on now: a small ▶ pointing at its row (it was a 4px bar), nudging towards it */
.tl-r2.cur::before{left:-14px;top:calc(50% - 6px);bottom:auto;width:0;height:0;background:none;border-style:solid;border-width:6px 0 6px 8px;border-color:transparent transparent transparent var(--ink);animation:curNudge 1.2s ease-in-out infinite}
.tl-r2.cur.draw::before{background:none;border-left-color:var(--acc-ink)}
@keyframes curNudge{50%{transform:translateX(3px)}}
/* ④ The last of 今日要做 ticked: 今日完成 shows over the list for a moment, where the tick was */
#conQ.flash{position:relative}
#conQ.flash::after{content:attr(data-win);position:absolute;inset:0;display:grid;place-items:center;background:var(--bg);color:var(--ink);outline:3px solid var(--ink);outline-offset:-3px;
  font-family:var(--f-num);font-weight:var(--fw-head);font-size:clamp(28px,3vw,40px);letter-spacing:-.03em;z-index:2;pointer-events:none;animation:cqWin 1.9s ease-out both}
@keyframes cqWin{0%{opacity:0;transform:scale(.96)}12%,70%{opacity:1;transform:none}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){ .rl-v8.lit .rl-ln,#conQ.flash::after{animation:none!important} }
/* 2026-11-23 (Amuii: 「the tips only show when user open this page, highlighted, auto fade out when user click anything」): one rule for every [data-zh] hint (排期, 計時記錄, 大圖) — util.js showHint() */
.foot[data-zh]{padding:0 var(--sp-1);background:var(--acc-tint);color:var(--ink);transition:opacity .4s ease}
body[data-hint="gone"] .foot[data-zh]{opacity:0;pointer-events:none}
html[data-rad="on"] .foot[data-zh]{border-radius:var(--rad2)}
#dayBar:empty{display:none}   /* 2026-11-23: an empty day bar took a 16px flex gap above 今日's column (the clock sat 16px under every page's first row) */
