/* usefrontmost.com, the home page (round 78, 16 Nov 2026). The other pages
   keep style.css.
   Layout: the app's own screen. The top task in its sheet, set very large;
   the list under it, fading with age; at the foot the app's two keys, its
   picking bar while [AI] picks, and its bar over an open line. Colours,
   greys and marks are the app's (Theme.swift, Preferences.swift): the top
   task's [ ] and every age in the accent, a row's [ ] in grey. */
:root {
  /* the app's own light look: Theme.ownLightPageL, ownLightTopSheetL, the
     greys mirrored (1.148 - 1.0185 L), Accent.lightFill */
  --page: oklch(1 0 0);
  --sheet: oklch(0.960 0 0);
  --ink: oklch(0.201 0 0);
  --secondary: oklch(0.435 0 0);
  --hint: oklch(0.484 0 0);
  --placeholder: oklch(0.627 0 0);
  --rule: oklch(0.90 0 0);
  --accent: oklch(0.72 0.21 72);
  --on-accent: oklch(0.201 0 0);
  --glass: oklch(1 0 0 / 0.86);
  --mark-filter: none;
  --dock-mark: oklch(0.72 0.21 72);
  /* the app's shadow under its top sheet (Theme.topSheetShadow): light 0.10, r6, y3 */
  --lift: 0 3px 12px oklch(0 0 0 / 0.10);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --big: clamp(22px, min(5vw, 7.4vh), 54px);
  --task: clamp(16px, 1.5vw, 18px);
  --inset: clamp(18px, 3.2vw, 36px);
  --col: 760px;
  --edge: max(var(--pad), calc((100vw - var(--col)) / 2));
  --foot: calc(46px + env(safe-area-inset-bottom, 0px));
  --pad: max(24px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  /* the header's one row, the same on every page (pass 15) */
  --head-row: 36px;
  /* room for the line over the dock, download with [ ] <your top task> */
  --over: 24px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: oklch(0.159 0 0); --sheet: oklch(0.259 0 0); --ink: oklch(0.93 0 0);
    --secondary: oklch(0.70 0 0); --hint: oklch(0.64 0 0); --placeholder: oklch(0.50 0 0); --rule: oklch(0.30 0 0);
    --accent: oklch(0.80 0.21 72); --on-accent: oklch(0.159 0 0);
    --glass: oklch(0.259 0 0 / 0.86); --mark-filter: invert(1); --dock-mark: oklch(0.56 0.17 62); --lift: 0 5px 24px oklch(0 0 0 / 0.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: oklch(0.159 0 0); --sheet: oklch(0.259 0 0); --ink: oklch(0.93 0 0);
  --secondary: oklch(0.70 0 0); --hint: oklch(0.64 0 0); --placeholder: oklch(0.50 0 0); --rule: oklch(0.30 0 0);
  --accent: oklch(0.80 0.21 72); --on-accent: oklch(0.159 0 0);
  --glass: oklch(0.259 0 0 / 0.86); --mark-filter: invert(1); --dock-mark: oklch(0.56 0.17 62); --lift: 0 5px 24px oklch(0 0 0 / 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
/* The scroll bar: thin, no track, the rule's grey, on every page and in both looks (round 83).
   Browsers without scrollbar-width (Safari before 18.2) get the same from the -webkit- rules. */
html { scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
@supports not (scrollbar-width: thin) {
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
}
/* the band tucks as the page scrolls (pass 17): no scroll anchoring, which
   would scroll back up by what the band gave up and open it again */
html, body { overflow-anchor: none; }
body {
  margin: 0;
  background: var(--page); color: var(--ink);
  font: 400 15px/1.55 var(--mono);
  padding-inline: var(--pad);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  transition: background-color .35s, color .35s;
}
h1, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; padding: 0; border-radius: 0; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.4; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
input:focus-visible { outline: 0; }

.page { max-width: 1180px; margin-inline: auto; transition: opacity .2s; }
/* the header stays: the mark, the name, the downloads, the look */
.head { position: sticky; top: 0; z-index: 6; display: flex; gap: 10px; align-items: center; height: calc(var(--head-row) + 24px + env(safe-area-inset-top, 0px)); margin-inline: calc(-1 * var(--pad)); padding: calc(12px + env(safe-area-inset-top, 0px)) var(--pad) 12px; background: color-mix(in srgb, var(--page) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color .35s; }
/* the home page's h1 and the other pages' p.brand: one box, so the mark,
   the name and the look sit in the same place on every page */
.head h1, .head .brand { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.55; min-width: 0; }
.head a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.mark { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; width: 34px; height: 34px; filter: var(--mark-filter); transition: filter .35s; }
.grow { flex: 1; }

/* the downloads, in the app's own marks: [↓] iphone  [↓] mac. The arrow
   drops into its brackets now and then, and when the key is under a pointer. */
.gets { position: relative; display: flex; align-items: center; gap: 2px; }
.gets .word { color: var(--hint); font-size: 13px; margin-right: 6px; }
.get { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 10px; font-size: 15px; font-weight: 700; white-space: nowrap; transition: background-color .15s, transform .15s; }
.get .mk { color: var(--accent); display: inline-flex; }
.get .arrow { display: inline-block; animation: drop 5s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
.get + .get .arrow { animation-delay: .35s; }
@media (hover: hover) { .get:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); } .get:hover .arrow { animation-duration: .9s; } }
.get:active { transform: scale(0.95); }
@keyframes drop { 0%, 82% { transform: none; opacity: 1; } 86% { transform: translateY(-0.9em); opacity: 0; } 100% { transform: none; opacity: 1; } }
.head .get { height: var(--head-row); padding-block: 0; }
.soon { position: absolute; z-index: 9; right: 0; top: calc(100% + 8px); white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--page); font-size: 13px; }

/* the look (pass 17): sun | moon side by side in a small pill, the same on
   every page; a thumb in the page's colour sits under the look you're in
   and slides across when you switch. Its place comes from the look itself
   (as look.js applies it), so it is right from the first paint. */
.look { position: relative; flex: none; display: flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 5%, transparent); box-shadow: inset 0 0 0 1px var(--rule); }
.look button { position: relative; z-index: 1; width: 30px; height: calc(var(--head-row) - 6px); border-radius: 999px; display: grid; place-items: center; color: var(--hint); transition: color .25s; }
.look button[aria-pressed="true"] { color: var(--ink); }
/* the pressed key's ink also comes from the look itself, as the thumb's
   place does, so it is right from the first paint (look.js sets
   aria-pressed, for a screen reader, once the page has loaded) */
:root[data-theme="light"] #lookLight, :root[data-theme="dark"] #lookDark { color: var(--ink); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) #lookLight { color: var(--ink); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) #lookDark { color: var(--ink); } }
@media (hover: hover) { .look button:hover { color: var(--ink); } }
.look button:focus-visible { outline-offset: 1px; border-radius: 999px; }
.look button:active svg { transform: scale(0.85); }
.look svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.look .thumb { position: absolute; left: 3px; top: 3px; width: 30px; height: calc(100% - 6px); border-radius: 999px; background: var(--page); box-shadow: 0 1px 3px oklch(0 0 0 / 0.16), 0 0 0 0.5px oklch(0 0 0 / 0.06); transition: transform .3s cubic-bezier(0.2, 0.9, 0.3, 1.15), background-color .35s; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .look .thumb { transform: translateX(100%); } }
:root[data-theme="dark"] .look .thumb { transform: translateX(100%); }

/* the band: the app's top sheet, edge to edge from the top of the page,
   square, its soft shadow under it. The header and the top task sit on it.
   Pass 17 (q3 B): it stays at the top and the list scrolls under it; once
   the page is scrolled it tucks (home-tuck.js): the header slides away and
   the top task shrinks to one smaller line. */
.band { position: sticky; top: 0; z-index: 4; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); background: var(--sheet); box-shadow: var(--lift); transition: background-color .35s, opacity .2s; }
.band .head { position: static; max-width: 1180px; margin-inline: auto; padding-inline: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; clip-path: inset(0 -16px); transition: height .25s ease, padding .25s ease, opacity .2s, visibility 0s; }
.band-main { position: relative; max-width: var(--col); margin-inline: auto; }
.band-col { max-width: var(--col); margin-inline: auto; padding-bottom: clamp(16px, 3vh, 34px); transition: padding .25s ease; }
.band .top { background: none; border-radius: 0; padding-block: clamp(10px, 2.6vh, 30px) 0; transition: background-color .35s, padding .25s ease; }
.band .top .box, .band .top .title, .band .top input, .band .ghost { transition: font-size .25s ease; }
.band .top .under { max-height: 8em; overflow: hidden; transition: max-height .25s ease, opacity .2s; }
/* the header is cut at its top and bottom edges, so it slides away under
   the task as it tucks; not at its sides, where the mark's and the pill's
   focus rings reach past it */
/* tucked: the header leaves (hidden once it has slid away, so its keys
   take no focus), the top task is one line of 16 px (19 on a phone, below), cut with an
   ellipsis */
.band.tucked .head { height: env(safe-area-inset-top, 0px); padding-block: env(safe-area-inset-top, 0px) 0; opacity: 0; visibility: hidden; transition: height .25s ease, padding .25s ease, opacity .2s, visibility 0s .25s; }
.band.tucked .band-col { padding-bottom: 10px; }
.band.tucked .top { padding-block-start: 10px; }
.band.tucked .top .box, .band.tucked .top .title, .band.tucked .top input, .band.tucked .ghost { font-size: 16px; letter-spacing: -0.02em; }
.band.tucked .top .title { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band.tucked .top .under { max-height: 0; opacity: 0; }
.band.tucked .scan { top: 10px; }
/* home-tuck.js measures the tucked band with nothing moving */
.band.measuring, .band.measuring * { transition: none !important; }
.band .top.picked { background: color-mix(in srgb, var(--accent) 24%, var(--sheet)); border-radius: 18px; padding-block-end: 12px; }
body.pulling .band { opacity: 0.22; }
.stage { position: relative; max-width: var(--col); margin-inline: auto; min-width: 0; }
.front { display: grid; gap: clamp(10px, 1.4vw, 16px); padding-block: clamp(14px, 2.4vh, 28px) calc(var(--foot) + 58px + 8px + var(--over)); min-width: 0; }

/* the top task, in its sheet */
.top { background: var(--sheet); border-radius: clamp(20px, 2.6vw, 32px); padding: clamp(22px, min(4.4vw, 4.6vh), 56px) var(--inset); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px clamp(12px, 1.6vw, 24px); align-items: baseline; outline: 2px solid transparent; outline-offset: -2px; transition: background-color .35s; }
.top .box, .top .title, .top input { font-size: var(--big); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.top .box { color: var(--accent); white-space: nowrap; letter-spacing: -0.06em; }
.top .title { overflow-wrap: anywhere; min-width: 0; }
.top input { width: 100%; min-width: 0; caret-color: var(--accent); }
.top input::placeholder, .rows input::placeholder { color: var(--placeholder); opacity: 1; }
.top .age { color: var(--accent); font-size: var(--task); font-weight: 600; font-variant-numeric: tabular-nums; }
.top .under { grid-column: 2 / -1; color: var(--secondary); font-size: var(--task); max-width: 62ch; }
.under b { color: var(--accent); font-weight: 400; white-space: nowrap; }
.top.aim, .top.picked { outline-color: var(--accent); }
.top.picked { background: color-mix(in srgb, var(--accent) 24%, var(--sheet)); }
.box { display: inline-block; }
@media (hover: hover) { button.box:hover { color: var(--accent); } }
.grab { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pickable { cursor: pointer; user-select: none; -webkit-user-select: none; }
.pickable .grab { cursor: pointer; }
.dragging { opacity: 0.85; cursor: grabbing; position: relative; z-index: 4; }
/* done: the accent strikes the title through from the left, the box pops,
   then the task leaves; the next top task rises into the sheet with a spring */
.top .title, .rows .title { justify-self: start; }
.finishing .title { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 56% / 0 2px; animation: strike .26s cubic-bezier(0.3, 0, 0.2, 1) forwards, leave .14s .32s ease-in forwards; }
.top.finishing .title { background-size: 0 4px; animation-name: strike-top, leave; }
.finishing .box { color: var(--accent); animation: pop .3s cubic-bezier(0.16, 1, 0.3, 1), leave .14s .32s ease-in forwards; }
.finishing .age, .finishing .under { animation: leave .14s .32s ease-in forwards; }
@keyframes strike { to { background-size: 100% 2px; } }
@keyframes strike-top { to { background-size: 100% 4px; } }
@keyframes leave { to { opacity: 0; transform: translateX(10px); } }
@keyframes pop { 40% { transform: scale(1.3); } }
.rise > * { animation: rise .55s cubic-bezier(0.2, 0.9, 0.3, 1.25) backwards; }
.rise > .under { animation-delay: .06s; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }

/* the empty sheet writes by itself: other people's top tasks, typed and
   taken back, then what's first? again. A tap and the line is yours. */
.top .field { position: relative; min-width: 0; }
.ghost { position: absolute; inset: 0; display: flex; align-items: center; white-space: nowrap; overflow: hidden; pointer-events: none; font-size: var(--big); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; color: var(--ink); }
.ghost.ask { color: var(--placeholder); }
.ghost .caret { flex: none; width: 0.07em; height: 0.92em; margin-left: 0.05em; border-radius: 1px; background: var(--accent); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.field.ghosting input::placeholder { color: transparent; }
.field.ghosting input:focus::placeholder { color: var(--placeholder); }
.field input:focus ~ .ghost, .field input:not(:placeholder-shown) ~ .ghost { display: none; }

/* the list: a row's [ ] in grey, its age in the accent, both fading; what a
   task has (a time, a send to your AI) on a line under its title */
.rows { display: grid; gap: 2px; padding: 4px calc(var(--inset) - 12px) 0; font-size: var(--task); }
.rows li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 14px; align-items: baseline; padding: 7px 12px; border-radius: 12px; transition: opacity .3s, background-color .2s; }
.rows .box { color: var(--secondary); white-space: nowrap; }
.rows .title { font-weight: 600; overflow-wrap: anywhere; }
.rows .age { color: var(--accent); font-size: 0.86em; font-variant-numeric: tabular-nums; }
.rows .under { grid-column: 2 / -1; font-size: 0.82em; color: var(--secondary); }
.rows .struck { text-decoration: line-through; }
.rows li.picked { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.rows li.picked .box, .top.picked .box { color: var(--accent); }
.rows li.before::before, .rows li.after::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 1px; background: var(--accent); }
.rows li.before::before { top: -2px; }
.rows li.after::after { bottom: -2px; }
.rows input { width: 100%; min-width: 0; font-weight: 600; caret-color: var(--accent); border-bottom: 1.5px solid var(--accent); }
.rows li.line .box { color: var(--accent); }
.count { padding: 12px var(--inset) 0; font-size: 13px; color: var(--hint); }
.rows.done { padding-top: 0; }
.say { color: var(--secondary); font-size: var(--task); padding-inline: var(--inset); }

/* the foot. The list fades out behind it, the page solid by the line over
   the dock; the links sit under the keys. */
.scrim { position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; height: calc(var(--foot) + 58px + 44px + var(--over)); pointer-events: none; background: linear-gradient(to bottom, transparent, var(--page) 40%); }
.foot { position: fixed; z-index: 5; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; gap: 22px; font-size: 12px; color: var(--hint); }
.foot a { color: inherit; text-decoration: none; }
@media (hover: hover) { .foot a:hover { color: var(--ink); } }

/* the two keys, as in the app: [AI] in glass on the left, [+] in the accent
   on the right. Each taps, and pulls its dial. */
.keys { position: fixed; z-index: 7; left: var(--edge); right: var(--edge); bottom: var(--foot); display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
/* the downloads, between the keys: one dark pill, [↓] iphone | [↓] mac */
.dock { pointer-events: auto; position: relative; display: flex; height: 50px; border-radius: 999px; background: var(--ink); color: var(--page); box-shadow: 0 6px 18px oklch(0 0 0 / 0.18); transition: background-color .35s, color .35s; }
.dock .get { border-radius: 0; padding: 0 15px; gap: 6px; font-size: 14px; }
.dock .get:first-of-type { border-radius: 999px 0 0 999px; padding-left: 20px; }
.dock .get + .get { border-radius: 0 999px 999px 0; padding-right: 20px; box-shadow: inset 1px 0 0 color-mix(in srgb, var(--page) 22%, transparent); }
.dock .mk { color: var(--dock-mark); }
@media (hover: hover) { .dock .get:hover { background: color-mix(in srgb, var(--page) 14%, transparent); } }
/* the word over the dock: download, or once you have a top task of your
   own, one line, download with [ ] <your top task> (pass 17, home-dock.js);
   it steps aside while the dock says "soon" */
.dock .over { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); max-width: min(360px, calc(100vw - 2 * var(--pad))); overflow: hidden; text-overflow: ellipsis; font-size: 12px; letter-spacing: .04em; color: var(--hint); white-space: nowrap; pointer-events: none;
  /* pass 18 (his p4): frost behind it, so the rows scrolling past never
     read through: the page's colour at 85 %, blurred; solid where a
     browser has no backdrop blur */
  padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--page) 85%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .35s; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .dock .over { background: var(--page); } }
.dock .over .bx { color: var(--accent); font-weight: 700; }
.dock .over .t { color: var(--ink); font-weight: 700; letter-spacing: 0; }
.dock:has(.soon:not([hidden])) .over { visibility: hidden; }
.dock .soon { right: auto; top: auto; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); }
.key { pointer-events: auto; width: 58px; height: 58px; border-radius: 50%; font-weight: 700; font-size: 15px; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab; transition: background-color .35s; }
#aiKey { background: var(--glass); color: var(--accent); box-shadow: 0 0 0 1px var(--rule); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#aiKey.on { background: var(--accent); color: var(--on-accent); }
#plusKey { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px color-mix(in oklch, var(--accent) 35%, transparent); }

/* the bars that take the keys' place */
.bar { position: fixed; z-index: 7; bottom: var(--foot); display: flex; align-items: center; gap: 8px; }
.bar.pick { left: var(--edge); flex-wrap: wrap; max-width: calc(100vw - 2 * var(--pad)); }
.round, .pill { height: 50px; border-radius: 999px; background: var(--glass); box-shadow: 0 0 0 1px var(--rule); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; font-weight: 600; }
.round { width: 50px; font-size: 18px; font-weight: 400; color: var(--secondary); }
.pill { padding-inline: 18px; white-space: nowrap; }
.pill.go { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.times { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; margin: 0 -8px; border-radius: 22px; background: var(--page); }
.times button { padding: 9px 14px; border-radius: 999px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); font-size: 13px; }
@media (hover: hover) { .times button:hover { color: var(--accent); } }
.bar.tools { transition: opacity .18s ease-out; left: 50%; transform: translateX(-50%); gap: 4px; padding: 5px; border-radius: 999px; background: var(--glass); box-shadow: 0 0 0 1px var(--rule), 0 8px 24px oklch(0 0 0 / 0.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* seen by default, so the bar works if home-bar.js never runs; on a touch
   screen it waits unseen (opacity, so the line keeps its focus) while the
   keyboard rises */
.bar.tools.waiting { opacity: 0; pointer-events: none; }
/* pass 18 (his p6): on a phone's keyboard the bar sits flush on it
   (home-bar.js), drawn attached: square at its foot, its shadow cast up,
   nothing of it below the keyboard's top */
.bar.tools.on-keyboard { border-radius: 22px 22px 0 0; box-shadow: 0 0 0 1px var(--rule), 0 -6px 18px oklch(0 0 0 / 0.08); clip-path: inset(-32px -32px 0 -32px); }
.tools button { min-width: 56px; height: 42px; padding-inline: 14px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
@media (hover: hover) { .tools button:hover { background: color-mix(in oklch, var(--ink) 8%, transparent); } }
.tools button[aria-pressed="true"] { color: var(--accent); background: color-mix(in oklch, var(--accent) 18%, transparent); }
.tools svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.tools .go, .tools .go:hover { background: var(--accent); color: var(--on-accent); font-size: 17px; }
body.picking .foot { visibility: hidden; }
body.picking .front { padding-bottom: calc(var(--foot) + 130px); }

/* the dial a pulled key draws: a cord from its home, the time by the pointer */
body.pulling .page { opacity: 0.22; }
body.pulling { user-select: none; -webkit-user-select: none; cursor: grabbing; }
body.pulling .key { cursor: grabbing; }
.key.pulled { z-index: 1; transition: none; }
.dial { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.cord { position: fixed; height: 1.5px; margin-top: -0.75px; transform-origin: 0 50%; border-radius: 1px; background: color-mix(in srgb, var(--ink) 45%, transparent); }
.read { position: fixed; white-space: nowrap; line-height: 1; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--page); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* pass 18 (pass 16 p4): the nod's time is small */
.dial.small .read { padding: 6px 10px; font-size: 12px; }
/* pass 18 (pass 16 p2): a ghost pull's time lands under the ghost task */
.top .under.landed { animation: rise .55s cubic-bezier(0.2, 0.9, 0.3, 1.25) backwards; }

/* the QR, on the band beside the top task (pass 15), its top in line with
   the task's, for a phone held up to a big screen */
.scan { position: absolute; z-index: 1; left: calc(100% + 36px); top: clamp(10px, 2.6vh, 30px); transition: top .25s ease; display: grid; gap: 12px; justify-items: center; font-size: 12px; color: var(--secondary); }
.scan .qr-box { padding: 14px; background: oklch(1 0 0); border-radius: 16px; box-shadow: 0 0 0 1px var(--rule); }
/* pass 14: the code holds your list, so it grows with the room beside the column */
.scan { --qr: clamp(120px, calc((100vw - var(--col)) / 2 - 96px), 168px); }
.scan .qr { display: block; width: var(--qr); height: var(--qr); color: oklch(0.201 0 0); }
/* pass 17: the code inks in the first time it is seen, then swaps quietly
   (home-qr.js, Web Animations; none under reduced motion) */
.scan .qr .plate { fill: oklch(1 0 0); }
.scan > span { max-width: calc(var(--qr) + 28px); text-align: center; line-height: 1.4; }
.nojs { display: grid; gap: 14px; }

@media (max-width: 1159.98px) { .scan { display: none; } }
@media (max-width: 640px) {
  :root { --pad: max(18px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); --inset: 18px; }
  .head { gap: 4px; }
  .head a { gap: 6px; }
  .mark { width: 30px; height: 30px; }
  .gets .word { display: none; }
  .get { padding: 9px 7px; gap: 5px; font-size: 14px; }
  :root { --head-row: 32px; }
  .look button { width: 28px; }
  .look .thumb { width: 28px; }
  .front { padding-top: 10px; }
  /* pass 18 (his p7): tucked, the top task is still a little bigger than
     a row's title (rows are var(--task), 16 px on a phone) */
  .band.tucked .top .box, .band.tucked .top .title, .band.tucked .top input, .band.tucked .ghost { font-size: calc(var(--task) + 3px); }
  .top { grid-template-columns: auto minmax(0, 1fr); padding-block: 26px; }
  .top .age { display: none; }
  .rows { gap: 0; }
  .rows li { padding-block: 9px; }
  .pill { padding-inline: 12px; font-size: 13px; }
  .round, .pill { height: 46px; }
  .round { width: 46px; }
  .bar { gap: 6px; }
  .bar.pick { max-width: calc(100vw - 2 * var(--pad)); }
  .dock { height: 46px; }
  .dock .get { padding-inline: 10px; font-size: 13px; gap: 5px; }
  .dock .get:first-of-type { padding-left: 14px; }
  .dock .get + .get { padding-right: 14px; }
}
/* a doc page's header on a narrow phone: the name, iphone, mac and the
   sun | moon pill only fit in a row once the downloads drop their [↓] */
@media (max-width: 420px) { .head .get .mk { display: none; } }
@media (max-width: 370px) {
  :root { --big: 20px; --pad: 14px; }
  .head h1, .head .brand { font-size: 14px; }
  .mark { width: 26px; height: 26px; }
  .get { padding-inline: 5px; font-size: 13px; }
  .key { width: 52px; height: 52px; font-size: 14px; }
  .keys { gap: 6px; }
  .dock { height: 44px; }
  .dock .get { padding-inline: 8px; font-size: 12px; gap: 4px; }
  .dock .get:first-of-type { padding-left: 11px; }
  .dock .get + .get { padding-right: 11px; }
}
/* a short window on a wide screen: the rows sit closer so nothing scrolls */
@media (max-height: 720px) and (min-width: 641px) {
  .rows li { padding-block: 4px; }
  .top { padding-block: 20px; }
  .front { gap: 8px; padding-top: 8px; }
}
/* a short screen (a phone on its side): the links go, the keys sit lower */
@media (max-height: 520px) {
  :root { --foot: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body, .page, .top, .key, .mark, .look button, .look .thumb, .get, .rows li { transition: none; }
  .bar.tools, .band .head, .band.tucked .head, .band-col, .band .top, .band .top .box, .band .top .title, .band .top input, .band .ghost, .band .top .under, .scan { transition: none; }
  .rise > *, .top .under.landed, .ghost .caret, .finishing .box, .finishing .title, .finishing .age, .finishing .under, .get .arrow { animation: none; }
  .finishing .title { text-decoration: line-through; text-decoration-color: var(--accent); }
}
