/* QuickTasks mobile web (v0.17.0). Mobile-first: designed for one-handed phone use at 360px wide
   first, then widened. Dark/light follow the OS via prefers-color-scheme — there is no in-app
   toggle. Logical properties (inset-inline-*, margin-inline-*, text-align: start/end, …) are used
   throughout instead of left/right so a future RTL (Hebrew UI) flip only needs `dir` on <html> —
   see the report for what else that follow-up needs. */

:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-border: #e2e5ea;
  --text: #1a1d22;
  --muted: #6b7380;
  --accent: #2f6fed;
  --accent-ink: #ffffff;
  --danger: #d33b3b;
  --danger-bg: #fdeceb;
  --ok: #1f8a55;
  --high: #b45f0e;
  --critical: #c22a2a;
  --chip-bg: #eef1f5;
  --overlay-bg: #f5f6f8;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --panel: #161a21;
    --panel-border: #262c36;
    --text: #e6e9ef;
    --muted: #8b96a5;
    --accent: #5b8cff;
    --accent-ink: #0b1220;
    --danger: #f3776f;
    --danger-bg: #2a1616;
    --ok: #4caf7d;
    --high: #f0a93e;
    --critical: #e5484d;
    --chip-bg: #1d2229;
    --overlay-bg: #0e1116;
  }
}

* { box-sizing: border-box; }
/* Every shown/hidden region here (.signin, .app-view, .task-list, .detail-view, .detail-actions, …)
   is toggled purely via the `hidden` attribute in app.js, but several of those same selectors also
   set their own `display` (flex, for layout) — an AUTHOR rule, which beats the user-agent
   stylesheet's `[hidden]{display:none}` at equal specificity regardless of selector order. Without
   this, "hidden" elements still render. `!important` is deliberate and scoped to this one attribute
   selector so `hidden` always wins no matter what else this file sets on the same element. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

button, input, select { font: inherit; color: inherit; }
input { background: var(--panel); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  appearance: none; border: 1px solid transparent; border-radius: 10px;
  padding-block: 13px; padding-inline: 18px; font-size: 16px; font-weight: 600;
  cursor: pointer; min-height: 48px; line-height: 1;
}
.btn.block { display: block; width: 100%; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:active { filter: brightness(0.92); }
.btn.secondary { background: var(--chip-bg); color: var(--text); border-color: var(--panel-border); }
.btn:disabled { opacity: .55; cursor: default; }

.ghost-btn {
  appearance: none; background: transparent; border: 1px solid var(--panel-border);
  color: var(--text); border-radius: 8px; padding-block: 9px; padding-inline: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px;
}
.ghost-btn.small { padding-block: 7px; padding-inline: 10px; font-size: 13px; min-height: 34px; }
.ghost-btn.back-btn { border: none; padding-inline-start: 0; font-size: 16px; color: var(--accent); }

.icon-btn {
  appearance: none; background: transparent; border: 1px solid var(--panel-border);
  color: var(--text); border-radius: 8px; width: 40px; height: 40px; font-size: 18px;
  cursor: pointer; line-height: 1;
}
.icon-btn:active { filter: brightness(0.92); }

/* ---------------------------------------------------------------- banners / toast */
.banner {
  border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-block-end: 14px;
  background: var(--chip-bg); color: var(--text);
}
.banner.error { background: var(--danger-bg); color: var(--danger); }
.banner.info { background: var(--chip-bg); color: var(--muted); margin-block: 14px 0; }

.state-msg { color: var(--muted); text-align: center; padding: 40px 16px; font-size: 15px; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-b));
  transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 60; max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.error { background: var(--danger); color: #fff; }

/* ---------------------------------------------------------------- sign-in */
.signin {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: calc(24px + var(--safe-t)) calc(20px + var(--safe-r)) calc(24px + var(--safe-b)) calc(20px + var(--safe-l));
}
.signin-card { width: 100%; max-width: 380px; }
.brand { display: flex; align-items: center; gap: 12px; margin-block-end: 6px; }
.mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: .4px; flex: none;
}
.mark.small { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; }
/* The tile holds the LoopTo mark (brand/loopto-mark.svg), inset so the accent tile still
   reads as a tile rather than a tight crop. stroke=currentColor picks up --accent-ink. */
.mark svg { display: block; width: 62%; height: 62%; }
.brand h1 { font-size: 22px; margin: 0; }
.tag { color: var(--muted); margin: 0 0 24px; font-size: 15px; }

.field { display: block; margin-block-end: 16px; }
.field > span:first-child { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-block-end: 6px; }
.field-optional { font-weight: 400; color: var(--muted); text-transform: none; }
.field input {
  width: 100%; border: 1px solid var(--panel-border); border-radius: 10px;
  padding: 13px 14px; font-size: 16px; min-height: 48px;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
/* 0.16.0 create-task form (Title / Description) — same visual language as .field input above. */
.field textarea {
  width: 100%; border: 1px solid var(--panel-border); border-radius: 10px;
  padding: 12px 14px; font-size: 16px; line-height: 1.4; resize: vertical; min-height: 44px;
  background: var(--panel); color: var(--text); font-family: inherit;
}
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.token-row { display: flex; gap: 8px; align-items: stretch; }
.token-row input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.token-row .ghost-btn { flex: none; align-self: center; }
.hint { display: block; color: var(--muted); font-size: 12.5px; margin-block-start: 6px; line-height: 1.4; }

/* ---------------------------------------------------------------- app shell */
.app-view { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--panel);
  border-block-end: 1px solid var(--panel-border);
  padding: calc(10px + var(--safe-t)) calc(14px + var(--safe-r)) 10px calc(14px + var(--safe-l));
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topbar-row + .topbar-row { margin-block-start: 10px; }
.brand-mini { display: flex; align-items: center; gap: 8px; }
.brand-mini .title { font-weight: 700; font-size: 15px; }

.ws-switcher { flex: 1; min-width: 0; }
.ws-switcher select {
  width: 100%; border: 1px solid var(--panel-border); background: var(--chip-bg); color: var(--text);
  border-radius: 8px; padding: 9px 10px; font-size: 14px; font-weight: 600; min-height: 40px;
}

/* ---------------------------------------------------------------- view tabs (0.16.0) */
.view-tabs {
  display: flex; gap: 6px; padding: 10px calc(14px + var(--safe-r)) 0 calc(14px + var(--safe-l));
  max-width: 640px; margin-inline: auto; width: 100%;
}
.view-tab {
  flex: 1; appearance: none; border: 1px solid var(--panel-border); background: var(--panel);
  color: var(--muted); font-weight: 700; font-size: 14px; border-radius: 10px;
  padding-block: 11px; min-height: 44px; cursor: pointer;
}
.view-tab.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------------------------------------------------------------- pending workspace invitations (0.14.0) */
.pending-invites {
  padding: 14px calc(14px + var(--safe-r)) 0 calc(14px + var(--safe-l));
  max-width: 640px; margin-inline: auto; width: 100%;
}
.pending-invites-title {
  font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .04em; margin: 0 0 8px;
}
.pending-invites-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pending-invite-row {
  border-radius: 12px; background: var(--panel); border: 1px solid var(--panel-border);
  padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.pending-invite-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pending-invite-name { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.pending-invite-meta { font-size: 12.5px; color: var(--muted); }
.pending-invite-actions { display: flex; gap: 8px; flex: none; }
.pending-invite-actions .btn { padding-block: 9px; padding-inline: 14px; font-size: 14px; min-height: 38px; }

/* ---------------------------------------------------------------- task list */
.list-view {
  flex: 1; padding: 14px calc(14px + var(--safe-r)) calc(24px + var(--safe-b)) calc(14px + var(--safe-l));
  max-width: 640px; margin-inline: auto; width: 100%;
}
/* 0.16.0 — reserves room so the last row is never hidden behind #createFabBar (My tasks tab only). */
.list-view.has-fab { padding-block-end: calc(96px + var(--safe-b)); }
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.task-row { border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--panel-border); }
.task-row-btn {
  width: 100%; display: flex; align-items: stretch; gap: 12px; background: none; border: 0;
  padding: 0; text-align: start; cursor: pointer; color: inherit; min-height: 64px;
}
.task-row-btn:active { background: var(--chip-bg); }
.pri-bar { width: 5px; flex: none; background: var(--muted); }
.task-row.pri-high .pri-bar { background: var(--high); }
.task-row.pri-critical .pri-bar { background: var(--critical); }
.task-row-main { flex: 1; min-width: 0; padding: 12px 4px 12px 0; display: flex; flex-direction: column; gap: 6px; }
.task-row-text {
  font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.task-row-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* 0.99.24 — a subtask's display number ("283.1") before its title: small, muted, tabular so a column
   of them lines up, and inline so the row keeps its two clamped lines. A root has none. */
.task-number { color: var(--muted); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.chev { align-self: center; padding-inline-end: 12px; color: var(--muted); font-size: 20px; flex: none; }

/* 0.16.0 Handed off — the Dismiss action on a completed/cancelled row (app.js: assignedRowHtml).
   A block-level sibling of .task-row-btn, not nested inside it — a <button> can't contain one. */
.assigned-row-actions { padding: 10px 12px 12px; border-block-start: 1px solid var(--panel-border); }
.assigned-row-actions .btn { min-height: 42px; }

.status-pill {
  font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px;
  background: var(--chip-bg); color: var(--muted);
}
.status-pill.status-inprogress { background: var(--chip-bg); background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
/* v0.15.0 split-status-button. Reuses the existing --high/--danger variables rather than inventing
   new ones — Pending reads as "needs attention" (same tone the priority chips already use for High),
   Cancelled as "stopped" (same tone the error banner already uses). */
.status-pill.status-pending { background: var(--chip-bg); background: color-mix(in srgb, var(--high) 20%, transparent); color: var(--high); }
.status-pill.status-cancelled { background: var(--chip-bg); background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.pri-chip {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--chip-bg); background: color-mix(in srgb, var(--high) 18%, transparent); color: var(--high);
}
.pri-chip.pri-critical { background: var(--chip-bg); background: color-mix(in srgb, var(--critical) 18%, transparent); color: var(--critical); }
.ws-chip, .unclaimed-chip, .ack-chip {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--chip-bg); color: var(--muted);
}
.ack-chip { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }

/* ---------------------------------------------------------------- task detail */
.detail-view {
  position: fixed; inset: 0; z-index: 40; background: var(--overlay-bg);
  display: flex; flex-direction: column;
}
.detail-topbar {
  position: sticky; top: 0; background: var(--panel); border-block-end: 1px solid var(--panel-border);
  padding: calc(10px + var(--safe-t)) calc(14px + var(--safe-r)) 10px calc(14px + var(--safe-l));
}
.detail-body {
  flex: 1; overflow-y: auto; padding: 16px calc(16px + var(--safe-r)) 16px calc(16px + var(--safe-l));
  max-width: 640px; margin-inline: auto; width: 100%;
}
.detail-card { display: flex; flex-direction: column; gap: 14px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }
/* 0.99.24 — the subtask's number as its own line above the title in the detail view ("283.1"): the
   thing a person says to their agent, so it is readable and copyable on its own. Roots show nothing. */
.detail-number { color: var(--muted); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.detail-text { font-size: 21px; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.detail-desc { font-size: 15.5px; line-height: 1.55; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }

/* 0.17.0 subtasks — the "Subtask of" line (app.js: resolveSubtaskParent/renderDetail), first inside
   .detail-card when shown. A tappable chip row: same chevron affordance as .task-row-btn, but
   full-width like .banner since it reads as one contextual note, not a list. */
.subtask-of-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; appearance: none; border: 0;
  border-radius: 10px; padding: 12px 14px; background: var(--chip-bg); text-align: start; cursor: pointer;
}
.subtask-of-btn:active { filter: brightness(0.95); }
.subtask-of-text { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }

.kv-group { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; padding: 12px 14px; }
.kv { display: flex; gap: 10px; font-size: 14px; }
.kv .k { flex: none; width: 108px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv .v { flex: 1; overflow-wrap: anywhere; }

.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--chip-bg); }

.detail-meta { display: flex; flex-direction: column; gap: 4px; }
.muted { color: var(--muted); font-size: 13px; }

/* v0.15.0 split-status-button — the mandatory reason, shown in full ("a reason nobody reads is
   pointless" is the pilot's own bar). A banner, not a muted footnote: this is the whole point of
   marking a task Pending/Cancelled in the first place. */
.status-reason { border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.status-reason-pending { background: color-mix(in srgb, var(--high) 14%, transparent); color: var(--text); }
.status-reason-cancelled { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--text); }

/* 0.17.0 subtasks — the "Subtasks" section (app.js: loadSubtaskChildren), appended as its own block
   after .detail-card rather than inside it (see the doc comment on loadSubtaskChildren for why: it can
   arrive well after the card above has already rendered). Rows reuse .task-row/.task-row-btn/
   .status-pill wholesale (same list-row look as the main task list) — only the heading/summary here
   are new, and those in turn reuse .muted for the summary text rather than a bespoke style. */
.subtasks-section { margin-block-start: 20px; }
.subtasks-title {
  font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .04em; margin: 0 0 8px;
}
.subtasks-summary { margin: 0 0 10px; }

.detail-actions {
  position: sticky; bottom: 0; background: var(--panel); border-block-start: 1px solid var(--panel-border);
  padding: 12px calc(16px + var(--safe-r)) calc(12px + var(--safe-b)) calc(16px + var(--safe-l));
  display: flex; flex-direction: column; gap: 10px;
  max-width: 640px; margin-inline: auto; width: 100%;
}

/* 0.16.0 — the fixed "+ New task" affordance (#createFabBar), thumb-reachable and safe-area aware,
   same centering trick .detail-actions above already uses (inset-inline:0 + max-width + auto margins). */
.create-fab-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  padding: 12px calc(16px + var(--safe-r)) calc(12px + var(--safe-b)) calc(16px + var(--safe-l));
  background: var(--panel); border-block-start: 1px solid var(--panel-border);
  max-width: 640px; margin-inline: auto;
}

/* v0.15.0 — the inline mandatory-reason form (showReasonPrompt in app.js), built inside the SAME
   sticky .detail-actions footer the ordinary buttons occupy — no modal/dialog element anywhere in
   this app, matching its "no framework" rule. */
.reason-prompt { display: flex; flex-direction: column; gap: 10px; }
.reason-prompt-title { font-size: 16px; font-weight: 700; margin: 0; }
.reason-prompt-hint { font-size: 14px; color: var(--muted); margin: 0; }
.reason-prompt-input {
  width: 100%; border: 1px solid var(--panel-border); border-radius: 10px;
  padding: 12px 14px; font-size: 16px; line-height: 1.4; resize: vertical; min-height: 84px;
  background: var(--panel); color: var(--text); font-family: inherit;
}
.reason-prompt-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 0.16.0 Forward — showForwardPrompt in app.js, built the same inline way as showReasonPrompt above. */
.forward-select {
  width: 100%; border: 1px solid var(--panel-border); border-radius: 10px;
  padding: 12px 14px; font-size: 16px; min-height: 48px; background: var(--panel); color: var(--text);
}
.forward-ack-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; padding-block: 4px; }
.forward-ack-check input[type="checkbox"] { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- account view (0.19.0 passkeys) */
.settings-card {
  display: flex; flex-direction: column; gap: 10px;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--panel-border);
  padding: 14px;
}
.settings-card-title {
  font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}
.passkeys-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.passkey-row {
  border-radius: 10px; background: var(--chip-bg);
  padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.passkey-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.passkey-label { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; margin: 0; }
.passkey-meta { font-size: 12px; color: var(--muted); }
.passkey-actions { display: flex; gap: 6px; flex: none; }

/* ---------------------------------------------------------------- small screens / tablet */
@media (max-width: 359px) {
  .list-view, .detail-body, .detail-actions, .create-fab-bar { padding-inline: 10px; }
}
@media (min-width: 720px) {
  .signin-card { max-width: 420px; }
}

/* 0.23.3 — tag chips inside the edit prompt are buttons, not labels: they carry an  and remove
   themselves on tap. Sized past the 44px touch target on the cross alone would make the chips huge,
   so the WHOLE chip is the target — which is also what a thumb expects from a chip this small. */
.tag-chips-editable { margin: 4px 0 10px; }
.tag-chip-remove { border: 0; cursor: pointer; font-family: inherit; color: inherit; min-height: 32px; }
.tag-chip-remove span { opacity: 0.55; margin-inline-start: 2px; }
.tag-chip-remove:active { opacity: 0.6; }

/* 0.23.3 — tags on a list row sit in the same meta line as the status pill, one size down: they are
   context for the title, never competing with it. */
.row-tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; }
.row-tag-more { opacity: 0.65; }

/* ---------------------------------------------------------------- one-shot reminders (0.99.11) */
/* A row that needs YOU — a hand-off ack still owed, or a fired reminder waiting on your Got it — is
   lifted by its border, the one rule for both (app.js: taskRowHtml/assignedRowHtml set .needs-you).
   The chip inside says which; the row's own height budget is untouched. */
.task-row.needs-you { border-color: var(--accent); }
/* The armed marker: a bare glyph in the meta line, muted like the tags beside it. When the reminder
   is waiting on the reader the same span carries .ack-chip and reads as that accent chip instead. */
.reminder-chip { font-size: 12px; line-height: 1; color: var(--muted); }
.reminder-chip.ack-chip { font-size: 11px; line-height: normal; color: var(--accent); }
/* The "Reminder" line on the detail sheet — glyph beside two or three short lines. Text wraps under
   itself, never beside the glyph's column, so a long name or a seen-by list stays inside 360px. */
.reminder-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.reminder-glyph { flex: none; font-size: 16px; line-height: 1.3; }
.reminder-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.reminder-line.awaiting { color: var(--accent); font-weight: 600; }
.reminder-line.awaiting .muted { font-weight: 400; }
/* The datetime-local input inside the Remind me… prompt. .field input already gives it the panel
   look and 48px; the extras are for iOS Safari, whose date inputs carry an intrinsic minimum width
   that overflows a narrow column unless min-width is released, and whose value box collapses to a
   sliver of height unless it is told a minimum. Block, never inline, so it stacks under its label. */
.field input[type="datetime-local"] { display: block; min-width: 0; max-width: 100%; }
.field input[type="datetime-local"]::-webkit-date-and-time-value { text-align: start; min-height: 1.4em; }

/* 0.99.12 — the reminder prompt's quick chips ("in a minute … in a month"): wrap, never overflow 360px. */
.reminder-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.reminder-presets .chip {
  border: 1px solid var(--border, rgba(127,127,127,.35));
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  min-height: 36px;
  cursor: pointer;
}
.reminder-presets .chip:active { opacity: .7; }
