/* Sleek Tasks: the app (task/app.js, task/views.js, task/sheet.js).
   Layout: Today and the projects down the left; the view on the right (Today, or a project's board,
   grid, list or calendar); a task's details in a sheet that slides in over the right edge. On a phone the left
   column becomes a row across the top and the sheet covers the view.
   Colours are Sleek Docs' tokens (doc/doc.css, --d-*), in light or dark (data-mode on <html>), with
   Tasks' own green as the accent, so a task's notes, which are a Docs document, look at home. */
:root { --d-accent: #12A36A; --t-col: #EFEFF3; }
:root[data-mode="dark"] { --t-col: #17171B; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--d-bg); color: var(--d-fg); font: 14px/1.45 var(--d-ff); -webkit-font-smoothing: antialiased; overflow: hidden; transition: opacity .2s ease; }
html.booting body { opacity: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
:is(button, input, select, a, [tabindex], [contenteditable]):focus-visible { outline: 2px solid var(--d-accent); outline-offset: 2px; }
.tk { display: flex; height: 100vh; height: 100dvh; padding-top: env(safe-area-inset-top, 0px); background: var(--d-app); }

/* ---------- Today and the projects ---------- */
.side { width: 244px; flex: none; display: flex; flex-direction: column; gap: 3px; padding: 12px 10px calc(10px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); border-right: 1px solid var(--d-line); min-height: 0; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; padding: 3px 6px 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.03em; color: var(--d-fg); text-decoration: none; border-radius: 8px; }
.brand img { display: block; width: 22px; height: auto; }
.brand a { display: inline-flex; align-items: center; gap: 9px; color: var(--d-muted); text-decoration: none; border-radius: 6px; transition: color .15s ease; } .brand a:hover, .brand a:focus-visible { color: var(--d-fg); }
.brand i { font-style: normal; font-weight: 400; color: var(--d-faint); margin: 0 -3px; } .brand b { font-weight: 700; }
.nav { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; min-height: 34px; padding: 5px 9px; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; flex: none; }
.nav:hover, .nav:focus-within { background: var(--d-hover); }
.nav.on { background: var(--d-soft); font-weight: 600; }
.nav > i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--d-accent)); flex: none; }
.nav > i.dot { border-radius: 50%; }
.nav > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav > em { font-style: normal; font-size: 12px; color: var(--d-faint); font-variant-numeric: tabular-nums; }
.nav input { flex: 1; min-width: 0; height: 24px; border: 1px solid var(--d-accent); border-radius: 6px; background: var(--d-bg); padding: 0 6px; }
.nav .more { width: 24px; height: 24px; display: none; place-items: center; border-radius: 6px; color: var(--d-muted); flex: none; font-size: 15px; line-height: 1; }
.nav:hover .more, .nav:focus-within .more, .nav .more[aria-expanded="true"] { display: grid; } .nav:hover > em, .nav:focus-within > em { display: none; }
.nav .more:hover { background: var(--d-hover); color: var(--d-fg); }
.nav.new { color: var(--d-muted); } .nav.new > i { background: none; box-shadow: inset 0 0 0 1.5px var(--d-faint); }
.side h4 { margin: 12px 8px 2px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--d-faint); font-weight: 600; }
.side-foot { margin-top: auto; padding: 10px 6px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--d-faint); }
.side-foot a { color: var(--d-muted); text-decoration: none; } .side-foot a:hover { color: var(--d-fg); text-decoration: underline; }
.side-foot button { border: 0; background: none; min-height: 26px; padding: 0 8px; border-radius: 7px; cursor: pointer; color: var(--d-muted); font-size: 12.5px; } .side-foot button:hover { background: var(--d-hover); color: var(--d-fg); }
.side-foot .grow { flex: 1; }

/* ---------- the view ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--d-bg); position: relative; }
.top { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px max(14px, env(safe-area-inset-right, 0px)) 8px 14px; border-bottom: 1px solid var(--d-line); flex-wrap: wrap; flex: none; }
.top h1 { margin: 0 auto 0 0; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tabs2 { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--d-hover); flex: none; }
.tabs2 button { height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--d-muted); font-size: 13px; font-weight: 500; }
.tabs2 button.on { background: var(--d-bg); color: var(--d-fg); box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.gbtn { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--d-line2); background: none; cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; flex: none; }
.gbtn:hover, .gbtn[aria-expanded="true"] { background: var(--d-hover); }
.pbtn { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--d-accent); color: var(--d-on-accent); cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; }
.body { flex: 1; min-height: 0; overflow: auto; padding: 14px max(14px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) 14px; }

/* what a task shows, wherever it appears */
.ck::before { content: ""; position: absolute; inset: -5px; }      /* room to press it */
.ck { position: relative; flex: none; width: 19px; height: 19px; border-radius: 6px; border: 1.6px solid var(--d-line2); background: none; padding: 0; cursor: pointer; display: inline-grid; place-items: center; transition: background .15s ease, border-color .15s ease; }
.ck::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .2s cubic-bezier(.3,1.6,.5,1); margin-top: -2px; }
.ck.on { background: var(--d-accent); border-color: var(--d-accent); } .ck.on::after { transform: rotate(-45deg) scale(1); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: color-mix(in srgb, var(--c, #8E8E93) 18%, transparent); color: color-mix(in srgb, var(--c, #8E8E93) 70%, var(--d-fg)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pill button { border: 0; background: none; padding: 4px 4px 4px 5px; margin: -4px -5px -4px -3px; cursor: pointer; font-size: 13px; line-height: 1; opacity: .7; } .pill button:hover { opacity: 1; }
.due { font-size: 12px; color: var(--d-muted); white-space: nowrap; font-variant-numeric: tabular-nums; } .due.late { color: var(--d-warn); font-weight: 600; }
.av { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c, #8E8E93); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center; }
.done-t { color: var(--d-faint); text-decoration: line-through; }
.subs { font-size: 12px; color: var(--d-muted); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.subs i { width: 34px; height: 4px; border-radius: 2px; background: var(--d-line2); overflow: hidden; display: block; } .subs i b { display: block; height: 100%; background: var(--d-accent); }
.noteflag { font-size: 12px; color: var(--d-faint); }

/* ---------- board ---------- */
.board { display: flex; gap: 12px; align-items: flex-start; min-height: 100%; }
.col { flex: 1 1 0; min-width: 240px; max-width: 340px; background: var(--t-col); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.col.shut { flex: 0 0 46px; min-width: 46px; cursor: pointer; }
.col.shut .cards, .col.shut .add, .col.shut .col-h b, .col.shut .col-h .cmore { display: none; } .col.shut .col-h { flex-direction: column; gap: 8px; padding: 6px 0; }
.col.over { box-shadow: inset 0 0 0 2px var(--d-accent); }
.col-h { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 12.5px; font-weight: 600; color: var(--d-muted); min-height: 30px; }
.col-h > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.col-h b { flex: 1; min-width: 0; font-weight: 600; color: var(--d-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-h input { flex: 1; min-width: 0; height: 24px; border: 1px solid var(--d-accent); border-radius: 6px; background: var(--d-bg); padding: 0 6px; font-weight: 600; }
.col-h button { width: 24px; height: 24px; border: 0; border-radius: 7px; background: none; cursor: pointer; color: var(--d-faint); font-size: 14px; line-height: 1; flex: none; } .col-h button:hover, .col-h button[aria-expanded="true"] { background: var(--d-hover); color: var(--d-fg); }
.cards { display: flex; flex-direction: column; gap: 8px; min-height: 34px; }
.tcard { display: flex; flex-direction: column; gap: 8px; padding: 11px 12px; border-radius: 12px; background: var(--d-raise); border: 1px solid var(--d-line); box-shadow: 0 1px 2px rgba(0,0,0,0.06); cursor: grab; text-align: left; border-left: 3px solid var(--c, transparent); touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tcard:hover { border-color: var(--d-line2); border-left-color: var(--c, var(--d-line2)); box-shadow: 0 6px 16px -8px rgba(0,0,0,0.3); }
.tcard .tt { font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.tcard .row2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; } .tcard .row2:empty { display: none; }
.tcard .sp { flex: 1; }
.dense .tcard { padding: 8px 10px; gap: 5px; } .dense .tcard .tt { font-size: 13.5px; }
.tcard.lifted { opacity: .3; }
.ghost { position: fixed; z-index: 80; pointer-events: none; margin: 0; transform: rotate(2deg) scale(1.03); box-shadow: 0 24px 50px -16px rgba(0,0,0,0.5); cursor: grabbing; transition: transform .12s ease; }
.mark { height: 3px; margin: -2px 2px; border-radius: 3px; background: var(--d-accent); flex: none; }
body.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; } body.dragging * { cursor: grabbing !important; }
.add { display: flex; } .add input { flex: 1; min-width: 0; height: 32px; border: 0; border-radius: 9px; background: none; padding: 0 8px; } .add input::placeholder { color: var(--d-faint); } .add input:focus { background: var(--d-raise); outline: 2px solid var(--d-accent); outline-offset: 0; }
.newcol { flex: none; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px dashed var(--d-line2); background: none; color: var(--d-muted); cursor: pointer; white-space: nowrap; } .newcol:hover { color: var(--d-fg); border-color: var(--d-accent); }
@keyframes land { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--d-accent) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.landed { animation: land .7s ease-out; }

/* ---------- list and Today ---------- */
.list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.list h4 { margin: 16px 6px 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--d-faint); font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.list h4.late { color: var(--d-warn); } .list h4 em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; }
.li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; min-width: 0; }
.li:hover, .li:focus-visible { background: var(--d-hover); }
.li .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.li .tagrow { display: inline-flex; gap: 4px; min-width: 0; overflow: hidden; }
.quick { display: flex; gap: 8px; margin: 0 0 6px; }
.quick input { flex: 1; min-width: 0; height: 40px; border-radius: 11px; border: 1px solid var(--d-line2); background: var(--d-bg); padding: 0 12px; }
.quick select { height: 40px; border-radius: 11px; border: 1px solid var(--d-line2); background: var(--d-bg); padding: 0 8px; max-width: 42%; }
.hello { max-width: 760px; margin: 2px auto 10px; } .hello b { display: block; font-size: 24px; letter-spacing: -0.02em; font-weight: 650; } .hello span { color: var(--d-muted); }
.empty { max-width: 760px; margin: 18px auto; padding: 26px; border-radius: 16px; border: 1px dashed var(--d-line2); color: var(--d-muted); text-align: center; } .empty b { display: block; color: var(--d-fg); font-size: 16px; margin-bottom: 4px; }

/* ---------- a task's details ---------- */
.sheet { position: absolute; top: 0; right: 0; bottom: 0; z-index: 10; width: min(420px, 100%); background: var(--d-raise); border-left: 1px solid var(--d-line2); box-shadow: -24px 0 50px -30px rgba(0,0,0,0.5); display: flex; flex-direction: column; animation: slide .25s cubic-bezier(.16,1,.3,1); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.sheet-h { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--d-line); flex: none; }
.sheet-h span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--d-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-h button { height: 30px; min-width: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 13px; color: var(--d-muted); } .sheet-h button:hover { background: var(--d-hover); color: var(--d-fg); } .sheet-h button.warn { color: var(--d-warn); }
.sheet-h .x { font-size: 19px; line-height: 1; }
.sheet-b { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px; }
.sheet .title { display: flex; gap: 10px; align-items: flex-start; } .sheet .title .ck { margin-top: 4px; }
.sheet .title textarea { flex: 1; min-width: 0; border: 0; background: none; font: 650 19px/1.25 var(--d-ff); letter-spacing: -0.02em; padding: 0; outline: none; resize: none; color: var(--d-fg); overflow: hidden; }
.fields { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 9px 10px; align-items: center; }
.fields > label { font-size: 12.5px; color: var(--d-muted); }
.fields select, .fields input[type=date], .fields input[type=text] { height: 32px; border-radius: 8px; border: 1px solid var(--d-line2); background: var(--d-bg); padding: 0 8px; min-width: 0; width: 100%; }
.fields .rowf { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 0; min-height: 32px; }
.fields .rowf input[type=date] { width: auto; flex: 1; min-width: 130px; }
.qd { height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--d-line2); background: none; cursor: pointer; font-size: 12px; color: var(--d-muted); } .qd:hover { color: var(--d-fg); border-color: var(--d-muted); }
.fields .tagin { flex: 1; min-width: 90px; height: 26px; border: 0; background: none; padding: 0 2px; outline: none; }
.sheet h5 { margin: 0 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--d-faint); font-weight: 600; }
.sub-l { display: flex; flex-direction: column; } .sub-l > div { display: flex; gap: 9px; align-items: center; padding: 3px 0; }
.sub-l input { flex: 1; min-width: 0; height: 30px; border: 0; background: none; padding: 0; outline: none; border-radius: 4px; }
.sub-l input.done-t { text-decoration: line-through; }
.sub-l button.rm { width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--d-faint); cursor: pointer; opacity: 0; } .sub-l > div:hover .rm, .sub-l .rm:focus-visible { opacity: 1; } .sub-l .rm:hover { background: var(--d-hover); color: var(--d-warn); }
.notebar { display: flex; gap: 2px; margin: 0 0 6px; }
.notebar button { min-width: 28px; height: 26px; padding: 0 7px; border: 0; border-radius: 7px; background: none; cursor: pointer; color: var(--d-muted); font-size: 13px; } .notebar button:hover { background: var(--d-hover); color: var(--d-fg); }
.note { min-height: 140px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--d-line2); background: var(--d-bg); cursor: text; }
.note:focus-within { border-color: var(--d-accent); }
.note .dk-doc { font-size: 14.5px; line-height: 1.6; max-width: none; min-height: 118px; --bleed: 0px; --bleed-full: 0px; }
.note .dk-doc > h1 { font-size: 22px; } .note .dk-doc > h2 { font-size: 18px; margin-top: 16px; } .note .dk-doc > h3 { font-size: 15.5px; }
.note .dk-empty::before { content: attr(data-ph); color: var(--d-faint); float: left; height: 0; pointer-events: none; }
.note-wait { color: var(--d-faint); font-size: 13px; }
.dk-fig-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s ease; }
.dk-fig:hover .dk-fig-tools, .dk-fig.ProseMirror-selectednode .dk-fig-tools { opacity: 1; }
.dk-fig-tools button { height: 26px; padding: 0 9px; border-radius: 8px; border: 0; background: rgba(20,20,24,0.78); color: #fff; font-size: 12px; cursor: pointer; }
.dk-fig.nocap:not(:hover):not(:focus-within) figcaption { display: none; }
.ProseMirror-selectednode { outline: 2px solid var(--d-accent); outline-offset: 3px; border-radius: 10px; }

/* ---------- grid (task/grid.js) and the cells every view edits with (task/fields.js) ---------- */
.gridw { min-width: max-content; }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--d-raise); border: 1px solid var(--d-line); border-radius: 14px; }
.grid th { position: sticky; top: -14px; z-index: 2; padding: 0; text-align: left; background: var(--d-app); border-bottom: 1px solid var(--d-line); white-space: nowrap; }
.grid th:first-child { border-top-left-radius: 13px; } .grid th:last-child { border-top-right-radius: 13px; }
.fh { display: flex; align-items: baseline; gap: 6px; width: 100%; height: 36px; padding: 0 12px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--d-muted); font-weight: 600; line-height: 36px; }
.fh:hover, .fh[aria-expanded="true"] { color: var(--d-fg); background: var(--d-hover); }
.fh small { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11.5px; color: var(--d-faint); } .fh i { font-style: normal; color: var(--d-accent); }
.grid th .fname { width: calc(100% - 12px); min-width: 110px; height: 28px; margin: 4px 6px; border: 1px solid var(--d-accent); border-radius: 7px; background: var(--d-bg); padding: 0 6px; font-weight: 600; }
.grid th.c-add { padding: 0 10px; width: 1%; } .grid th.c-add .gbtn { height: 26px; }
.grid td { height: 42px; padding: 3px 6px; border-bottom: 1px solid var(--d-line); vertical-align: middle; }
.grid tbody tr:last-child td { border-bottom: 0; } .grid tbody tr:not(.addrow):hover td { background: var(--d-hover); }
.grid .c-title { min-width: 250px; } .grid td.c-status, .grid td.c-select { min-width: 132px; } .grid td.c-date { min-width: 138px; } .grid td.c-person { min-width: 132px; } .grid td.c-tags { min-width: 150px; }
.grid td.c-text, .grid td.c-link { min-width: 170px; max-width: 280px; } .grid td.c-number { min-width: 96px; } .grid td.c-check { text-align: center; min-width: 84px; } .grid td.c-file { min-width: 84px; }
.grid td.late input { color: var(--d-warn); font-weight: 600; }
.tcell { display: flex; align-items: center; gap: 8px; } .tcell .ttl { flex: 1; font-weight: 500; }
.tcell .open { height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--d-line2); background: var(--d-raise); color: var(--d-muted); font-size: 12px; cursor: pointer; opacity: 0; flex: none; }
.grid tr:hover .open, .tcell .open:focus-visible { opacity: 1; } .tcell .open:hover { color: var(--d-fg); border-color: var(--d-muted); }
.addrow input { width: 100%; height: 32px; border: 0; border-radius: 8px; background: none; padding: 0 8px; } .addrow input::placeholder { color: var(--d-faint); } .addrow input:focus { background: var(--d-bg); outline: 2px solid var(--d-accent); outline-offset: 0; }
.cx { width: 100%; min-width: 0; height: 30px; border: 1px solid transparent; border-radius: 7px; background: none; padding: 0 6px; text-overflow: ellipsis; }
.cx:hover { border-color: var(--d-line2); } .cx:focus { border-color: var(--d-accent); background: var(--d-bg); outline: none; }
.cx.nil { color: var(--d-faint); }
.grid input[type=date].nil:not(:focus)::-webkit-datetime-edit { opacity: 0; } .grid tr:hover input[type=date].nil::-webkit-datetime-edit { opacity: .7; }
.grid input[type=date]::-webkit-calendar-picker-indicator { opacity: .3; cursor: pointer; } .grid tr:hover input[type=date]::-webkit-calendar-picker-indicator, .grid input[type=date]:focus::-webkit-calendar-picker-indicator { opacity: .8; }
/* the first column stays put while the rest scrolls sideways (-14px: flush with the edge, over the view's own margin) */
.grid th:first-child, .grid td.c-title { position: sticky; left: -14px; } .grid th:first-child { z-index: 3; }
.grid td.c-title { z-index: 1; background: var(--d-raise); box-shadow: 1px 0 0 var(--d-line); }
.grid tbody tr:not(.addrow):hover td.c-title { background: color-mix(in srgb, var(--d-fg) 5%, var(--d-raise)); }
.cx.num { text-align: right; font-variant-numeric: tabular-nums; } .cx::placeholder { color: var(--d-faint); }
select.cx.tint { appearance: none; -webkit-appearance: none; width: auto; max-width: 100%; height: 26px; padding: 0 11px; border-radius: 999px; border-color: transparent; font-size: 12.5px; font-weight: 600; cursor: pointer;
  background: color-mix(in srgb, var(--c, #8E8E93) 18%, transparent); color: color-mix(in srgb, var(--c, #8E8E93) 68%, var(--d-fg)); }
select.cx.tint:hover, select.cx.tint:focus { border-color: color-mix(in srgb, var(--c, #8E8E93) 60%, transparent); background: color-mix(in srgb, var(--c, #8E8E93) 24%, transparent); }
select.cx option { color: var(--d-fg); background: var(--d-raise); font-weight: 400; }
.lk { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 0 6px; }
.lk a { color: var(--d-accent); text-decoration: underline; text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lk .ed { flex: none; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--d-faint); cursor: pointer; opacity: 0; } .lk:hover .ed, .lk .ed:focus-visible { opacity: 1; } .lk .ed:hover { background: var(--d-hover); color: var(--d-fg); }
.tagcell { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; padding: 0 4px; cursor: text; }
.tagcell .tagin { flex: 1; min-width: 46px; width: 46px; height: 24px; border: 0; background: none; padding: 0 2px; outline: none; } .tagcell .tagin::placeholder { color: var(--d-faint); }
.fcell { display: inline-flex; border-radius: 8px; padding: 2px; } .fcell.over { outline: 2px solid var(--d-accent); background: var(--d-soft); }
.fthumb { position: relative; width: 48px; height: 32px; padding: 0; border: 1px solid var(--d-line); border-radius: 7px; overflow: hidden; background: var(--d-hover); cursor: zoom-in; display: block; }
.thumb { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.fthumb:has(.clip)::after, .tcard:has(.cardpic.clip)::after { content: "▶"; position: absolute; right: 3px; bottom: 2px; font-size: 9px; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.8); }
.fadd { height: 26px; padding: 0 8px; border: 1px dashed var(--d-line2); border-radius: 7px; background: none; color: var(--d-faint); font-size: 12.5px; cursor: pointer; white-space: nowrap; } .fadd:hover { color: var(--d-fg); border-color: var(--d-accent); }
.rep { flex: none; font-size: 12.5px; color: var(--d-faint); }
/* a picture on a card */
.tcard { position: relative; }
.cardpic { display: block; width: calc(100% + 24px); max-width: none; height: 118px; margin: -11px -12px 2px; object-fit: cover; border-radius: 10px 11px 0 0; background: var(--d-hover); pointer-events: none; }
.dense .cardpic { width: calc(100% + 20px); height: 82px; margin: -8px -10px 2px; }
.tcard:has(.cardpic.clip)::after { top: 96px; right: 8px; bottom: auto; font-size: 12px; }
/* a task's own fields, in its details */
.fields .rowf.own { min-height: 32px; } .fields .rowf.own > .cx:not(.tint), .fields .rowf.own > input.cx { height: 32px; border: 1px solid var(--d-line2); border-radius: 8px; background: var(--d-bg); padding: 0 8px; }
.fields .rowf.own .lk { padding: 0; flex: 1; } .fields .rowf.own .lk .ed { opacity: 1; }
.fields .fthumb { width: 108px; height: 72px; border-radius: 9px; }
/* the picture or clip, large */
.viewer { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: rgba(8,8,10,0.92); animation: fadein .18s ease; }
@keyframes fadein { from { opacity: 0; } }
.viewer-bar { display: flex; align-items: center; gap: 6px; padding: calc(10px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 10px max(12px, env(safe-area-inset-left, 0px)); color: #fff; flex: none; }
.viewer-bar span { flex: 1; min-width: 0; font-size: 13px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-bar button { height: 32px; min-width: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); background: none; color: #fff; cursor: pointer; font-size: 13px; } .viewer-bar button:hover { background: rgba(255,255,255,0.14); }
.viewer-in { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); color: #fff; }
.viewer-in img, .viewer-in video { max-width: 100%; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); border-radius: 10px; display: block; }

/* ---------- calendar (task/cal.js) ---------- */
.calnav { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; } .calnav b { min-width: 150px; text-align: center; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; } .calnav .gbtn { min-width: 34px; padding: 0 10px; }
.calw { overflow-x: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 660px; border: 1px solid var(--d-line); border-radius: 14px; overflow: hidden; background: var(--d-raise); }
.dow { padding: 7px 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--d-faint); font-weight: 600; background: var(--d-app); }
.day { min-width: 0; min-height: 112px; padding: 4px 5px 6px; border-top: 1px solid var(--d-line); border-left: 1px solid var(--d-line); display: flex; flex-direction: column; gap: 3px; transition: background .12s ease; }
.day:nth-child(7n+1) { border-left: 0; }
.day.out { background: var(--d-app); } .day.out .dn span { color: var(--d-faint); font-weight: 500; } .day.rest:not(.out) { background: color-mix(in srgb, var(--d-app) 45%, var(--d-raise)); }
.day.over, .nodate.over { background: var(--d-soft); box-shadow: inset 0 0 0 2px var(--d-accent); }
.dn { display: flex; align-items: center; justify-content: space-between; height: 24px; flex: none; }
.dn span { min-width: 22px; height: 22px; padding: 0 4px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.day.now .dn span { background: var(--d-accent); color: #fff; }
.dayadd { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--d-faint); cursor: pointer; opacity: 0; font-size: 13px; line-height: 1; } .day:hover .dayadd, .dayadd:focus-visible { opacity: 1; } .dayadd:hover { background: var(--d-hover); color: var(--d-fg); }
@media (hover: none) { .dayadd { opacity: .7; } .tcell .open, .lk .ed { opacity: 1; } }
.chip { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 3px 7px 3px 6px; border-radius: 7px; border-left: 3px solid var(--c, var(--d-accent)); background: color-mix(in srgb, var(--c, var(--d-accent)) 15%, var(--d-raise)); font-size: 12.5px; line-height: 1.35; cursor: grab; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; }
.chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip:hover { background: color-mix(in srgb, var(--c, var(--d-accent)) 26%, var(--d-raise)); } .chip.late { color: var(--d-warn); } .chip.lifted { opacity: .3; }
.chip.echo { background: none; border: 1px dashed color-mix(in srgb, var(--c, var(--d-accent)) 55%, transparent); border-left-width: 3px; color: var(--d-muted); cursor: pointer; opacity: .75; }
.chip.ghost { background: var(--d-raise); border: 1px solid var(--d-line2); border-left: 3px solid var(--c, var(--d-accent)); }
.dayin { width: 100%; height: 26px; border: 1px solid var(--d-accent); border-radius: 7px; background: var(--d-bg); padding: 0 6px; font-size: 12.5px; outline: none; }
.nodate { margin-top: 12px; padding: 10px 12px 12px; border-radius: 14px; border: 1px dashed var(--d-line2); transition: background .12s ease; }
.nodate h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--d-faint); font-weight: 600; } .nodate h4 em { font-style: normal; font-weight: 500; letter-spacing: 0; }
.loose { display: flex; flex-wrap: wrap; gap: 6px; } .loose .chip { max-width: 260px; } .loose .hint { color: var(--d-faint); font-size: 13px; }

/* small menus and messages */
.pop { position: absolute; z-index: 30; min-width: 220px; max-width: min(320px, calc(100% - 16px)); max-height: 70%; overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--d-raise); border: 1px solid var(--d-line2); box-shadow: var(--d-shadow); display: flex; flex-direction: column; gap: 1px; animation: popin .18s cubic-bezier(.16,1,.3,1); }
@keyframes popin { from { opacity: 0; transform: translateY(4px) scale(.98); } }
.pop h4 { margin: 0; padding: 8px 10px 3px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--d-faint); font-weight: 600; }
.pop label, .pop .mi { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; } .pop label:hover, .pop .mi:hover { background: var(--d-hover); }
.pop .mi.warn { color: var(--d-warn); }
.pop .mi.two { flex-direction: column; align-items: flex-start; gap: 0; } .pop .mi.two b { font-weight: 500; } .pop .mi.two i { font-style: normal; font-size: 12px; color: var(--d-muted); }
.opts { padding: 0 6px 4px; } .opts > div { display: flex; align-items: center; gap: 7px; padding: 2px 4px; } .opts i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, transparent); flex: none; }
.opts input { flex: 1; min-width: 0; height: 28px; border: 1px solid transparent; border-radius: 7px; background: none; padding: 0 6px; } .opts input:hover { border-color: var(--d-line2); } .opts input:focus { border-color: var(--d-accent); background: var(--d-bg); outline: none; }
.opts button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--d-faint); cursor: pointer; } .opts button:hover { background: var(--d-hover); color: var(--d-warn); }
.pop input[type=checkbox], .pop input[type=radio] { accent-color: var(--d-accent); }
.pop .sws { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 10px 8px; }
.pop .sws button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--d-raise); box-shadow: 0 0 0 1px var(--d-line2); background: var(--c); cursor: pointer; padding: 0; } .pop .sws button.on { box-shadow: 0 0 0 2px var(--d-fg); }
.pop .line { height: 1px; background: var(--d-line); margin: 5px 4px; }
.pop p { margin: 0; padding: 4px 10px 8px; font-size: 12.5px; color: var(--d-muted); }
.pop ol { margin: 0; padding: 2px 10px 8px 26px; font-size: 13px; color: var(--d-muted); display: flex; flex-direction: column; gap: 3px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: #1C1C21; color: #F2F2F5; font-size: 13.5px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); }

/* ---------- a phone ---------- */
@media (max-width: 760px) {
  .tk { flex-direction: column; }
  .side { width: auto; flex-direction: row; align-items: center; gap: 6px; border-right: 0; border-bottom: 1px solid var(--d-line); overflow-x: auto; padding: 8px max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px)); scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side h4, .brand i, .brand b, .side-foot .hide-s { display: none; } .brand a { font-size: 0; gap: 0; } .brand { padding: 0 4px 0 0; flex: none; }
  .nav { width: auto; flex: none; } .nav > em { display: none !important; } .nav .more { display: grid; }
  .side-foot { margin: 0; padding: 0; flex: none; flex-wrap: nowrap; }
  .col { min-width: min(280px, 78vw); } .top h1 { font-size: 16px; }
  .grid .c-title { min-width: 190px; } .tcell .noteflag, .tcell .rep { display: none; } .tcell .open { opacity: 1; padding: 0 7px; }
  .sheet { width: 100%; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .sheet, .landed, .pop, .viewer { animation: none; } .ck::after, .ghost { transition: none; } }

/* ---------- home: your boards (task/home.js) ----------
   The same start screen as Slides and Docs: Sleek / Tasks, a headline, New board and Today, then a tile for each
   board. A tile is a small picture of the board in its own colour; under the pointer it lifts and its colour
   blooms softly behind it. */
.tk.at-home .side, .tk.at-home .top { display: none; }
.tk.at-home .body { padding: 0; }
.home { min-height: 100%; background: radial-gradient(60% 46% at 12% -8%, color-mix(in srgb, var(--d-accent) 13%, transparent), transparent 70%), radial-gradient(50% 40% at 92% -6%, color-mix(in srgb, #7C5CFF 9%, transparent), transparent 70%); }
.home-in { max-width: 980px; margin: 0 auto; padding: 56px max(20px, env(safe-area-inset-right, 0px)) 72px max(20px, env(safe-area-inset-left, 0px)); }
.home-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.home-brand .brand { padding: 0; gap: 11px; font-size: 25px; letter-spacing: -0.045em; line-height: 1; } .home-brand .brand a { gap: 11px; } .home-brand .brand img { width: 34px; } .home-brand .brand i { margin: 0 -4px; }
.home-brand .grow { flex: 1; }
.home-v { height: 28px; min-width: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--d-line); background: none; color: var(--d-muted); font-size: 12.5px; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.home-v:hover, .home-v[aria-expanded="true"] { background: var(--d-hover); color: var(--d-fg); border-color: var(--d-line2); } .home-v:empty { display: none; }
.home h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.02; letter-spacing: -0.035em; margin: 10px 0 12px; font-weight: 650; text-wrap: balance; }
.home .lede { font-size: 18px; color: var(--d-muted); max-width: 56ch; margin: 0 0 26px; }
.home-acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 46px; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--d-line2); background: var(--d-raise); color: var(--d-fg); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease; }
.hbtn:hover { transform: translateY(-1px); border-color: var(--d-accent); box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--d-accent) 70%, transparent); }
.hbtn .plus { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--d-accent); color: #fff; font-size: 14px; line-height: 1; }
.hbtn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--d-accent); } .hbtn em { font-style: normal; font-weight: 500; color: var(--d-muted); font-size: 13px; }
.home-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; } .home-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 650; } .home-head span { color: var(--d-faint); font-size: 14px; }
.bd-grid { display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.bd { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; isolation: isolate; }
.bd-thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; text-decoration: none; isolation: isolate; background: color-mix(in srgb, var(--c) 9%, var(--t-col));
  box-shadow: 0 0 0 1px var(--d-line), 0 24px 50px -32px rgba(0,0,0,0.45); transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease; }
.bd-thumb::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background: radial-gradient(70% 70% at 18% 118%, var(--c), transparent 70%), radial-gradient(55% 60% at 96% -12%, var(--c), transparent 70%); }
.bd-thumb:hover, .bd-thumb:focus-visible { transform: translateY(-3px); outline: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 30px 60px -30px rgba(0,0,0,0.5); }
.bd-thumb:focus-visible { box-shadow: 0 0 0 2px var(--c), 0 30px 60px -30px rgba(0,0,0,0.5); }
.bd-thumb.empty { border: 1.5px dashed var(--d-line2); background: none; box-shadow: none; } .bd-thumb.empty::before { display: none; }
.bd-cols { position: absolute; inset: 15% 8% 0; display: flex; gap: 5%; }
.bd-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 8px 6px; border-radius: 8px 8px 0 0; background: color-mix(in srgb, var(--d-fg) 6%, transparent); }
.bd-col > i { height: 4px; width: 46%; border-radius: 2px; background: var(--c); margin-bottom: 2px; }
.bd-col > b { height: 15px; border-radius: 4px; background: var(--d-bg); box-shadow: 0 1px 2px rgba(0,0,0,0.14); }
.bd-col.done > b { opacity: .5; } .bd-col.done > i { opacity: .45; }
.bd-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }      /* a picture of your own for the tile (core/thumb.js) */
.bd-bloom { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 10; z-index: -1; pointer-events: none; border-radius: 14px; will-change: opacity, transform;
  background: radial-gradient(60% 75% at 25% 75%, var(--c), transparent 72%), radial-gradient(60% 75% at 80% 30%, var(--c), transparent 72%);
  filter: blur(36px) saturate(1.6); opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .45s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.bd:has(.bd-thumb:hover) .bd-bloom, .bd:has(.bd-thumb:focus-visible) .bd-bloom { opacity: .7; transform: translateY(6px) scale(1.1); }
.bd.fresh .bd-thumb { box-shadow: 0 0 0 2px var(--c), 0 0 0 7px color-mix(in srgb, var(--c) 22%, transparent); }
.bd-meta { display: flex; align-items: flex-start; gap: 10px; padding: 0 2px; } .bd-meta > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bd-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bd-meta span { font-size: 13px; color: var(--d-faint); }
.bd-rename { width: calc(100% + 8px); margin: -4px 0 -1px -8px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--d-accent); background: var(--d-bg); font-weight: 600; font-size: 15px; outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--d-accent) 18%, transparent); }
.bd-more { flex: none; width: 32px; height: 32px; margin: -4px -4px 0 0; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; color: var(--d-muted); cursor: pointer; font-size: 18px; line-height: 1; transition: background .2s ease, color .2s ease; }
.bd-more:hover, .bd-more[aria-expanded="true"] { background: var(--d-hover); color: var(--d-fg); }
.brand a.crumb { color: var(--d-fg); font-weight: 700; }
@media (max-width: 760px) {
  .home-in { padding-top: 34px; } .home .lede { font-size: 16px; }
  .brand a.crumb { font-size: 13px; font-weight: 600; letter-spacing: 0; padding: 4px 9px; border-radius: 8px; background: var(--d-hover); }
  .home-brand .brand a { font-size: inherit; gap: 11px; } .home-brand .brand i, .home-brand .brand b { display: inline; }
}

/* ---------- motion between views (task/app.js: shift) ----------
   Into a board, the board opens out of its tile, and it draws back into the tile on the way home. Between a
   board's views the old one slides off as the new one slides on, the way the tabs run. Anything else passes
   through a soft fade and rise. */
.tk:not(.at-home) .body { view-transition-name: stage; } .tk:not(.at-home) .side { view-transition-name: side; } .tk:not(.at-home) .top { view-transition-name: topbar; }
::view-transition-group(*) { animation-duration: .44s; animation-timing-function: cubic-bezier(.3, .85, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
@keyframes vt-off-left { to { opacity: 0; transform: translateX(-32px); } } @keyframes vt-on-right { from { opacity: 0; transform: translateX(32px); } }
@keyframes vt-off-right { to { opacity: 0; transform: translateX(32px); } } @keyframes vt-on-left { from { opacity: 0; transform: translateX(-32px); } }
@keyframes vt-rise { from { opacity: 0; transform: translateY(14px); } } @keyframes vt-fade { to { opacity: 0; } }
html[data-shift="fwd"]::view-transition-old(stage) { animation: .22s cubic-bezier(.4, 0, 1, 1) both vt-off-left; } html[data-shift="fwd"]::view-transition-new(stage) { animation: .4s cubic-bezier(.2, .8, .2, 1) .06s both vt-on-right; }
html[data-shift="back"]::view-transition-old(stage) { animation: .22s cubic-bezier(.4, 0, 1, 1) both vt-off-right; } html[data-shift="back"]::view-transition-new(stage) { animation: .4s cubic-bezier(.2, .8, .2, 1) .06s both vt-on-left; }
html[data-shift="fade"]::view-transition-old(stage) { animation: .18s ease both vt-fade; } html[data-shift="fade"]::view-transition-new(stage) { animation: .42s cubic-bezier(.2, .8, .2, 1) .04s both vt-rise; }
html[data-shift="zoom"]::view-transition-group(stage) { animation-duration: .52s; animation-timing-function: cubic-bezier(.3, .9, .2, 1); border-radius: 14px; overflow: clip; }
html[data-shift="zoom"]::view-transition-old(stage), html[data-shift="zoom"]::view-transition-new(stage) { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
::view-transition-new(side):only-child { animation: .44s cubic-bezier(.2, .8, .2, 1) both vt-on-left; } ::view-transition-old(side):only-child { animation: .22s ease both vt-off-left; }
::view-transition-new(topbar):only-child { animation: .4s cubic-bezier(.2, .8, .2, 1) .08s both vt-rise; } ::view-transition-old(topbar):only-child { animation: .16s ease both vt-fade; }
/* where the browser has no view transitions, the new view rises into place */
.body.enter > * { animation: vt-rise .42s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } .body.enter > * { animation: none; } .bd-thumb, .bd-bloom, .hbtn { transition: none; } }
/* a change of view inside Tasks is not a change of page: what is not part of the movement simply stays (core/motion.css moves whole pages) */
html[data-shift]::view-transition-old(root) { animation: .2s ease both vt-fade; } html[data-shift]::view-transition-new(root) { animation: none; }
.home-foot { margin: 46px 2px 0; font-size: 13px; color: var(--d-faint); } .home-foot button { border: 0; background: none; padding: 0; color: var(--d-muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: 13px; } .home-foot button:hover { color: var(--d-fg); }

/* ---------- a grocery list (task/grocery.js) ----------
   One calm column made for the shop: a name you can type over and a ring of how much is in the basket, the day,
   an add box that offers what you have bought before, your usuals as chips, then the list by aisle. A tick
   blooms as it lands, and the thing glides down into the basket. */
.tk.at-list .top { display: none; }
.gl { min-height: 100%; background: radial-gradient(70% 40% at 0% -8%, color-mix(in srgb, var(--d-accent) 12%, transparent), transparent 70%); margin: -14px max(-14px, calc(-1 * env(safe-area-inset-right, 0px))) 0 -14px; }
.gl-in { max-width: 640px; margin: 0 auto; padding: 22px 20px 64px; }
.gl-back { display: inline-flex; align-items: center; gap: 4px; height: 32px; margin: 0 0 14px -8px; padding: 0 10px 0 4px; border-radius: 999px; color: var(--d-accent); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background .15s ease; }
.gl-back svg { width: 18px; height: 18px; } .gl-back:hover { background: var(--d-soft); }
.gl-kick { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--d-muted); font-weight: 650; display: flex; align-items: baseline; gap: 8px; }
.gl-kick small { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 12.5px; color: var(--d-faint); }
.gl-head { display: flex; align-items: center; gap: 16px; margin: 4px 0 14px; }
.gl-name { flex: 1; min-width: 0; margin: 0; font-size: clamp(30px, 6vw, 40px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 750; outline: none; border-radius: 10px; padding: 2px 6px; margin-left: -6px; overflow-wrap: anywhere; transition: background .15s ease, box-shadow .15s ease; }
.gl-name:hover { background: var(--d-hover); } .gl-name:focus { background: var(--d-raise); box-shadow: 0 0 0 2px var(--d-accent), 0 0 0 6px color-mix(in srgb, var(--d-accent) 18%, transparent); }
.gl-ring { position: relative; width: 58px; height: 58px; flex: none; }
.gl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gl-ring circle { fill: none; stroke-width: 5; } .gl-ring .bg { stroke: var(--d-line); } .gl-ring .fg { stroke: var(--d-accent); stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1); }
.gl-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.gl-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; border: 0; background: var(--d-hover); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background .15s ease, box-shadow .2s ease; }
.gl-chip svg { width: 15px; height: 15px; } .gl-chip.on { background: var(--d-soft); color: var(--d-accent); }
.gl-chip:hover, .gl-chip[aria-expanded="true"] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--d-accent) 50%, transparent), 0 8px 20px -12px var(--d-accent); } .gl-chip.plain { cursor: default; box-shadow: none !important; }
.gl-add { position: sticky; top: -14px; z-index: 5; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 7px; margin: 0 0 20px; border-radius: 999px; background: var(--d-raise); border: 1px solid var(--d-line2); box-shadow: 0 14px 34px -24px rgba(0,0,0,.5); transition: border-color .2s ease, box-shadow .25s ease; }
.gl-add:focus-within { border-color: var(--d-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--d-accent) 16%, transparent), 0 18px 40px -22px color-mix(in srgb, var(--d-accent) 60%, transparent); }
.gl-plus { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--d-accent); color: #fff; } .gl-plus svg { width: 18px; height: 18px; }
.gl-add input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 16px; outline: none; } .gl-add input::placeholder { color: var(--d-faint); }
.gl-add input:focus-visible { outline: none; }
.gl-sugg { position: absolute; left: 10px; right: 10px; top: calc(100% + 6px); padding: 6px; border-radius: 16px; background: var(--d-raise); border: 1px solid var(--d-line2); box-shadow: var(--d-shadow); display: flex; flex-direction: column; animation: popin .16s cubic-bezier(.16,1,.3,1); }
.gl-sugg button { display: flex; align-items: baseline; gap: 10px; height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; font-size: 15px; font-weight: 500; }
.gl-sugg button small { margin-left: auto; color: var(--d-faint); font-size: 12.5px; font-weight: 400; } .gl-sugg button:hover, .gl-sugg button.hl { background: var(--d-soft); }
.gl-again { margin: 0 0 22px; }
.gl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gl-ag { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--d-line2); background: var(--d-raise); font-weight: 500; font-size: 14px; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s ease, box-shadow .25s ease, opacity .2s ease; }
.gl-ag i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--d-soft); color: var(--d-accent); }
.gl-ag:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--d-accent) 60%, transparent); box-shadow: 0 10px 22px -14px var(--d-accent); }
.gl-ag.going { transform: translateY(-10px) scale(.8); opacity: 0; pointer-events: none; }
.gl-empty { padding: 26px 22px; border-radius: 18px; border: 1px dashed var(--d-line2); color: var(--d-muted); text-align: center; } .gl-empty b { display: block; color: var(--d-fg); font-size: 16px; margin-bottom: 4px; }
.gl-aisle { margin: 0 0 14px; }
.gl-aisle h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 13px; font-weight: 650; color: var(--d-muted); }
.gl-aisle h2 i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); } .gl-aisle h2 em { margin-left: auto; font-style: normal; font-weight: 500; color: var(--d-faint); font-variant-numeric: tabular-nums; }
.gl-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 2px; border-bottom: 1px solid var(--d-line); }
.gl-aisle .gl-row:last-child, .gl-bin .gl-row:last-child { border-bottom: 0; }
.gl-nm { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.gl-row.got .gl-nm { color: var(--d-faint); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--d-faint) 60%, transparent); }
.gl-row.fresh { animation: gl-in .7s cubic-bezier(.2,.8,.2,1); }
@keyframes gl-in { 0% { background: color-mix(in srgb, var(--d-accent) 20%, transparent); transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; transform: none; } 100% { background: transparent; } }
.gl-tick { position: relative; flex: none; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid var(--d-line2); background: none; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.gl-tick::before { content: ""; position: absolute; inset: -8px; }
.gl-tick svg { width: 15px; height: 15px; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.gl-tick:hover { border-color: var(--d-accent); }
.gl-tick.on { background: var(--d-accent); border-color: var(--d-accent); } .gl-tick.on svg { transform: scale(1); }
.gl-tick.burst { animation: gl-burst .5s ease-out; }
@keyframes gl-burst { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--d-accent) 60%, transparent); transform: scale(.86); } 50% { transform: scale(1.12); } 100% { box-shadow: 0 0 0 14px transparent; transform: scale(1); } }
.gl-q { flex: none; min-width: 38px; height: 28px; padding: 0 9px; border-radius: 999px; border: 0; background: var(--d-hover); font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s ease; }
.gl-q.one { background: none; color: var(--d-faint); font-weight: 500; } .gl-q:hover { background: var(--d-soft); color: var(--d-accent); }
span.gl-q { cursor: default; } span.gl-q:hover { background: none; color: var(--d-faint); }
.gl-step { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 2px; border-radius: 999px; background: var(--d-soft); animation: popin .18s cubic-bezier(.16,1,.3,1); }
.gl-step button { width: 30px; height: 28px; border: 0; border-radius: 999px; background: var(--d-raise); color: var(--d-accent); font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer; } .gl-step button:disabled { opacity: .4; cursor: default; }
.gl-step b { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.gl-more { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--d-faint); cursor: pointer; font-size: 17px; line-height: 1; opacity: 0; transition: opacity .15s ease, background .15s ease; }
.gl-row:hover .gl-more, .gl-more:focus-visible, .gl-more[aria-expanded="true"] { opacity: 1; } .gl-more:hover { background: var(--d-hover); color: var(--d-fg); }
@media (hover: none) { .gl-more { opacity: .6; } }
.gl-basket { margin: 18px 0 0; border-radius: 16px; background: var(--d-hover); }
.gl-bh { display: flex; align-items: center; gap: 9px; width: 100%; height: 50px; padding: 0 14px; border: 0; background: none; font-weight: 650; font-size: 14.5px; cursor: pointer; border-radius: 16px; }
.gl-bh svg { width: 18px; height: 18px; color: var(--d-accent); } .gl-bh em { font-style: normal; font-weight: 500; color: var(--d-muted); }
.gl-bh .chev { margin-left: auto; display: grid; transition: transform .3s cubic-bezier(.2,.8,.2,1); } .gl-bh .chev svg { width: 16px; height: 16px; color: var(--d-faint); } .gl-basket.open .chev { transform: rotate(90deg); }
.gl-bin { padding: 0 14px 6px; animation: vt-rise .3s cubic-bezier(.2,.8,.2,1); }
.gl-finish { display: block; width: 100%; height: 54px; margin: 18px 0 0; border: 0; border-radius: 999px; background: var(--d-fg); color: var(--d-bg); font-weight: 650; font-size: 16px; cursor: pointer; transition: transform .2s ease, box-shadow .25s ease; }
.gl-finish:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -18px rgba(0,0,0,.6); }
.gl-ask { margin: 18px 0 0; padding: 16px; border-radius: 18px; background: var(--d-raise); border: 1px solid var(--d-line2); box-shadow: 0 20px 44px -30px rgba(0,0,0,.5); animation: vt-rise .3s cubic-bezier(.2,.8,.2,1); }
.gl-ask p { margin: 0 0 12px; font-size: 15px; } .gl-ask > div { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-btn { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--d-line2); background: var(--d-raise); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: transform .2s ease, box-shadow .25s ease, background .15s ease; }
.gl-btn.pri { background: var(--d-accent); border-color: var(--d-accent); color: #fff; } .gl-btn.pri:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -14px var(--d-accent); }
.gl-btn.quiet { border-color: transparent; background: none; color: var(--d-muted); } .gl-btn.quiet:hover { color: var(--d-fg); background: var(--d-hover); }
.gl-done { text-align: center; padding-top: 22px; } .gl-done .gl-back { float: left; }
.gl-bigtick { clear: both; width: 96px; height: 96px; margin: 44px auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--d-accent); color: #fff; box-shadow: 0 0 0 12px color-mix(in srgb, var(--d-accent) 14%, transparent), 0 26px 60px -20px var(--d-accent); animation: gl-bloom .8s cubic-bezier(.2,.9,.3,1.3); }
.gl-bigtick svg { width: 46px; height: 46px; }
@keyframes gl-bloom { 0% { transform: scale(.4); opacity: 0; box-shadow: 0 0 0 0 transparent; } }
.gl-done h1 { margin: 0 0 8px; font-size: 40px; letter-spacing: -0.035em; } .gl-done p { margin: 0 0 6px; color: var(--d-muted); font-size: 16px; }
.gl-done-acts { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; }
/* the list's card on Today */
.gl-card { position: relative; margin: 4px 0 12px; padding: 14px 16px 8px; border-radius: 18px; background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%), var(--d-raise); border: 1px solid var(--d-line); box-shadow: 0 20px 40px -32px rgba(0,0,0,.45); }
.gl-card-h { display: flex; align-items: center; gap: 12px; }
.gl-card-h .ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--c); color: #fff; } .gl-card-h .ic svg { width: 20px; height: 20px; }
.gl-card-h .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .gl-card-h .tx b { font-size: 15.5px; } .gl-card-h .tx small { color: var(--d-muted); font-size: 12.5px; }
.gl-open { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--d-soft); color: var(--d-accent); font-weight: 650; cursor: pointer; } .gl-open:hover { background: color-mix(in srgb, var(--d-accent) 22%, transparent); }
.gl-bar { height: 5px; margin: 12px 0 4px; border-radius: 3px; background: var(--d-line); overflow: hidden; } .gl-bar i { display: block; height: 100%; background: var(--d-accent); border-radius: 3px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.gl-card .gl-row { min-height: 44px; } .gl-card .gl-row:last-of-type { border-bottom: 0; } .gl-card .gl-nm { font-size: 15px; }
.gl-cmore { padding: 8px 2px 6px; color: var(--d-muted); font-size: 13px; } .gl-cmore button { border: 0; background: none; padding: 0; color: var(--d-accent); font-weight: 600; cursor: pointer; }
/* menus: an aisle's colour beside its name, and the one it is in */
.pop .mi.gl-ai::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.pop .mi[aria-current="true"]::after { content: "✓"; margin-left: auto; color: var(--d-accent); font-weight: 700; }
.pop .gl-pick { justify-content: space-between; } .pop .gl-pick input { height: 30px; border: 1px solid var(--d-line2); border-radius: 8px; background: var(--d-bg); padding: 0 6px; }
/* in the column of boards, and on home */
.nav .gl-i { width: 14px; height: 14px; flex: none; color: var(--c); display: grid; margin: 0 -2px; } .nav .gl-i svg { width: 14px; height: 14px; } .nav.shopped > span { color: var(--d-faint); }
.bd-list { position: absolute; inset: 0; display: flex; align-items: center; gap: 7%; padding: 0 9%; }
.bd-bk { width: 30%; aspect-ratio: 1; flex: none; border-radius: 22%; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 14px 30px -14px var(--c); } .bd-bk svg { width: 56%; height: 56%; }
.bd-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.bd-lines span { display: flex; align-items: center; gap: 8px; } .bd-lines i { width: 11px; height: 11px; border-radius: 50%; border: 1.6px solid color-mix(in srgb, var(--d-fg) 30%, transparent); flex: none; }
.bd-lines b { height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--d-fg) 22%, transparent); }
.bd-lines .got i { background: var(--c); border-color: var(--c); } .bd-lines .got b { opacity: .45; }
.bd-gl.shopped .bd-thumb { opacity: .6; } .bd-gl.shopped .bd-name { color: var(--d-muted); }
@media (max-width: 760px) { .gl { margin: -14px -14px 0; } .gl-in { padding: 16px 16px 64px; } .gl-nm { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .gl-row.fresh, .gl-tick.burst, .gl-bigtick, .gl-step, .gl-bin, .gl-ask, .gl-sugg { animation: none; } .gl-ag, .gl-ring .fg, .gl-bar i { transition: none; } }
